/* SERPS. Fargene er plukket rett ut av logoen: bakgrunnen #0b1519 og de tre
   lysegrå stearinlysene. Strukturen er stonkfun.xyz sin. Rød og grønn er spart
   til long og short, slik at kortene leses som en handelsskjerm. */
:root {
  --bg: #0b1519;
  --bg-2: #0e1a1f;
  --panel: #101d23;
  --panel-2: #15242a;
  --line: #1c3037;
  --line-soft: #16272d;
  --text: #eef3f4;
  --muted: #93a6ae;
  --dim: #6a808a;
  --accent: #b9c9d1;
  --accent-soft: rgba(185, 201, 209, .12);
  --long: #4fcf8b;
  --short: #f2685f;
  --warn: #e8b567;
  --radius: 8px;
  --radius-lg: 14px;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: Sora, ui-sans-serif, system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

body { scrollbar-color: var(--line) var(--bg); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #274049; }

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------------------------------------------------------------- nav */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(11, 21, 25, .86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-in { display: flex; align-items: center; gap: 22px; height: 60px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; letter-spacing: -.5px; }
.brand img { display: block; width: 24px; height: 24px; border-radius: 6px; }
.nav-links { display: flex; gap: 20px; margin-left: 6px; }
.nav-links a { color: var(--muted); font-size: 14px; font-weight: 600; }
.nav-links a:hover, .nav-links a.on { color: var(--text); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px;
  border-radius: var(--radius); border: 1px solid transparent;
  background: var(--accent); color: #0b1519; font-weight: 700; font-size: 14px;
  cursor: pointer; transition: filter .15s ease, background .15s ease;
}
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn.lg { height: 44px; padding: 0 22px; font-size: 15px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; filter: none; }

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative; overflow: hidden;
  margin: 26px 0 22px;
  border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  background: radial-gradient(120% 140% at 12% 0%, #16282f 0%, #0e1a1f 48%, #0b1519 100%);
  padding: 48px 44px 52px;
}
.hero h1 {
  margin: 0 0 14px; font-size: clamp(32px, 4.4vw, 52px); font-weight: 800;
  letter-spacing: -.055em; line-height: 1.04; max-width: 15ch;
}
.hero p { margin: 0 0 26px; color: var(--muted); max-width: 46ch; line-height: 1.6; }
.hero-art {
  position: absolute; right: 0; top: 0; height: 100%; width: 46%;
  object-fit: cover; object-position: center; pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 42%);
  mask-image: linear-gradient(to right, transparent 0%, #000 42%);
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-note { color: var(--dim); font-size: 13px; }

/* ---------------------------------------------------------------- strips */
.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line-soft);
  border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; }
.strip div { background: var(--panel); padding: 14px 16px; }
.strip .k { color: var(--dim); font-size: 11px; text-transform: uppercase; letter-spacing: .09em; }
.strip .v { font-family: var(--mono); font-size: 18px; margin-top: 5px; }

.banner {
  display: flex; gap: 12px; align-items: flex-start;
  margin: 18px 0; padding: 13px 16px;
  border: 1px solid #3a3620; background: #1b1a10; border-radius: var(--radius);
  color: #e6d7a8; font-size: 13.5px; line-height: 1.55;
}
.banner b { color: var(--warn); }

/* ---------------------------------------------------------------- filters */
.bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 26px 0 14px; }
.bar h2 { margin: 0; font-size: 18px; letter-spacing: -.02em; }
.chips { display: flex; gap: 7px; flex-wrap: wrap; }
.chip {
  height: 30px; padding: 0 13px; display: inline-flex; align-items: center;
  border: 1px solid var(--line); border-radius: 999px; background: transparent;
  color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer;
}
.chip:hover { color: var(--text); border-color: var(--accent); }
.chip.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.spacer { margin-left: auto; }
.search {
  height: 38px; width: 260px; padding: 0 13px; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius); color: var(--text);
}
.search::placeholder { color: var(--dim); }
.search:focus { outline: none; border-color: var(--accent); }

/* ---------------------------------------------------------------- coin cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
.card {
  border: 1px solid var(--line-soft); border-radius: var(--radius-lg); background: var(--panel);
  padding: 16px 17px 15px; display: block; transition: border-color .15s ease, transform .15s ease;
}
a.card:hover { border-color: var(--line); transform: translateY(-1px); }
.card-top { display: flex; align-items: center; gap: 11px; }
.avatar {
  width: 38px; height: 38px; border-radius: 10px; flex: none;
  display: grid; place-items: center; font-weight: 800; font-size: 14px;
  background: var(--panel-2); border: 1px solid var(--line); color: var(--accent);
}
.card-name { font-weight: 700; letter-spacing: -.01em; }
.card-sub { color: var(--dim); font-size: 12.5px; margin-top: 2px; }
.tag {
  font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  padding: 3px 7px; border-radius: 5px; border: 1px solid var(--line); color: var(--muted);
}
.tag.sim { border-color: #3a3620; background: #1b1a10; color: var(--warn); }
.tag.long { border-color: rgba(79, 207, 139, .35); background: rgba(79, 207, 139, .1); color: var(--long); }
.tag.short { border-color: rgba(242, 104, 95, .35); background: rgba(242, 104, 95, .1); color: var(--short); }

.pos {
  margin-top: 14px; border: 1px solid var(--line-soft); border-radius: var(--radius);
  background: var(--bg-2); padding: 12px 13px;
}
.pos-head { display: flex; align-items: baseline; gap: 8px; }
.pos-market { font-weight: 700; font-family: var(--mono); font-size: 15px; }
.pos-pnl { margin-left: auto; font-family: var(--mono); font-size: 17px; font-weight: 600; }
.up { color: var(--long); }
.down { color: var(--short); }
.rows { margin-top: 11px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.rows .k { color: var(--dim); font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; }
.rows .v { font-family: var(--mono); font-size: 13.5px; margin-top: 3px; }

.big { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 4px; }
.big .k { color: var(--dim); font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; }
.big-v { font-family: var(--mono); font-size: 30px; font-weight: 600; letter-spacing: -.02em; margin-top: 4px; }
.big .sub { color: var(--dim); font-size: 12px; margin-top: 5px; font-family: var(--mono); }

.tag.live { display: inline-flex; align-items: center; gap: 6px; color: var(--long);
  border-color: rgba(79, 207, 139, .3); background: rgba(79, 207, 139, .08); }
.tag.live i { width: 6px; height: 6px; border-radius: 50%; background: var(--long); animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .2; } }

/* ---------------------------------------------------------------- bildefelt */
.idrow { display: flex; gap: 16px; align-items: flex-start; }
.idrow .idfields { flex: 1; min-width: 0; }
.drop {
  position: relative; flex: none; width: 116px; height: 116px; overflow: hidden;
  display: grid; place-items: center; text-align: center; cursor: pointer;
  border: 1px dashed var(--line); border-radius: 12px; background: var(--bg-2);
  transition: border-color .15s ease, background .15s ease;
}
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop.filled { border-style: solid; border-color: var(--line); background: var(--bg-2); }
.drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.drop .hintbox { padding: 0 10px; }
.drop .hintbox b { display: block; font-size: 12px; font-weight: 700; letter-spacing: -.01em; }
.drop .hintbox small { display: block; margin-top: 5px; color: var(--dim); font-size: 10.5px; line-height: 1.45; }
.drop .swap {
  position: absolute; inset: auto 0 0 0; padding: 5px 0; font-size: 10.5px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--text);
  background: rgba(11, 21, 25, .82); opacity: 0; transition: opacity .15s ease;
}
.drop.filled:hover .swap { opacity: 1; }
.imgnote { margin-top: 8px; color: var(--dim); font-size: 11.5px; font-family: var(--mono); min-height: 15px; }
.imgnote button {
  margin-left: 8px; padding: 0; border: 0; background: none; color: var(--short);
  font-family: var(--sans); font-size: 11.5px; cursor: pointer;
}
.imgnote button:hover { text-decoration: underline; }

.liqbar { margin-top: 12px; }
.liqbar .track { height: 6px; border-radius: 999px; background: #14262b; overflow: hidden; display: flex; }
.liqbar .fill { background: linear-gradient(90deg, var(--short), var(--warn)); }
.liqbar .rest { background: #1c3c45; }
.liqbar .lab { display: flex; justify-content: space-between; margin-top: 6px; color: var(--dim); font-size: 11px; }

.empty { border: 1px dashed var(--line); border-radius: var(--radius-lg); padding: 44px; text-align: center; color: var(--muted); }

/* ---------------------------------------------------------------- forms */
.cols { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; align-items: start; }
.panel { border: 1px solid var(--line-soft); border-radius: var(--radius-lg); background: var(--panel); padding: 20px 22px; }
.panel h3 { margin: 0 0 4px; font-size: 16px; letter-spacing: -.01em; }
.panel .hint { color: var(--dim); font-size: 13px; margin: 0 0 18px; line-height: 1.55; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 7px; }
.field input[type=text], .field textarea, .field select {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 11px 13px; color: var(--text);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); }
.field textarea { min-height: 84px; resize: vertical; line-height: 1.5; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.err { color: var(--short); font-size: 13px; min-height: 18px; margin-top: 4px; }
.ok { color: var(--long); font-size: 13px; }

.seg { display: flex; gap: 8px; }
.seg button {
  flex: 1; height: 40px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--bg-2); color: var(--muted); font-weight: 700; cursor: pointer;
}
.seg button.on.long { border-color: var(--long); color: var(--long); background: rgba(79, 207, 139, .1); }
.seg button.on.short { border-color: var(--short); color: var(--short); background: rgba(242, 104, 95, .1); }
.seg button.on.plain { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

/* ---------------------------------------------------------------- leverage */
.lev-head { display: flex; align-items: baseline; gap: 10px; }
.lev-val { font-family: var(--mono); font-size: 34px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.lev-cap { color: var(--dim); font-size: 12.5px; margin-left: auto; }
.lev-wrap { margin-top: 16px; }
input[type=range].lev {
  -webkit-appearance: none; appearance: none; width: 100%; height: 26px; background: transparent; cursor: pointer;
}
input[type=range].lev::-webkit-slider-runnable-track {
  height: 6px; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent) var(--pct, 0%), #14262b var(--pct, 0%));
}
input[type=range].lev::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 20px; height: 20px; margin-top: -7px;
  border-radius: 50%; background: var(--text); border: 4px solid var(--accent); box-shadow: 0 0 0 4px rgba(185, 201, 209, .14);
}
input[type=range].lev::-moz-range-track { height: 6px; border-radius: 999px; background: #14262b; }
input[type=range].lev::-moz-range-progress { height: 6px; border-radius: 999px; background: var(--accent); }
input[type=range].lev::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%; background: var(--text); border: 4px solid var(--accent);
}
.ticks { display: flex; justify-content: space-between; margin-top: 8px; }
.ticks span { font-family: var(--mono); font-size: 11.5px; color: var(--dim); width: 20px; text-align: center; }
.ticks span.on { color: var(--accent); font-weight: 700; }
.ticks span.off { color: #2e4249; text-decoration: line-through; }

/* ---------------------------------------------------------------- market picker */
.picker { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); overflow: hidden; }
.picker-head { display: flex; gap: 8px; padding: 10px; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap; }
.picker-list { max-height: 260px; overflow-y: auto; }
.mrow {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; cursor: pointer;
  border-bottom: 1px solid var(--line-soft);
}
.mrow:hover { background: var(--panel-2); }
.mrow.on { background: var(--accent-soft); }
.mrow .sym { font-family: var(--mono); font-weight: 600; width: 96px; }
.mrow .px { font-family: var(--mono); color: var(--muted); font-size: 13px; }
.mrow .ch { font-family: var(--mono); font-size: 13px; margin-left: auto; }
.mrow .lev { font-size: 11px; color: var(--dim); width: 52px; text-align: right; }

/* ---------------------------------------------------------------- flow */
.flow { display: grid; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; }
.flow div { background: var(--bg-2); padding: 12px 14px; display: flex; align-items: baseline; gap: 10px; }
.flow .lbl { color: var(--muted); font-size: 13px; }
.flow .amt { margin-left: auto; font-family: var(--mono); }
.flow .pctlab { color: var(--dim); font-size: 11.5px; font-family: var(--mono); }

table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
table.tbl th { text-align: left; color: var(--dim); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; padding: 9px 10px; border-bottom: 1px solid var(--line); font-weight: 600; }
table.tbl td { padding: 10px; border-bottom: 1px solid var(--line-soft); font-family: var(--mono); font-size: 13.5px; }
table.tbl tr:hover td { background: var(--panel); }
table.tbl tr.sum td { background: var(--bg-2); color: var(--text); border-top: 1px solid var(--line); border-bottom: none; }
table.tbl tr.sum:hover td { background: var(--bg-2); }
.num { text-align: right; }

/* ---------------------------------------------------------------- how */
.prose { max-width: 74ch; }
.prose h2 { font-size: 24px; letter-spacing: -.03em; margin: 40px 0 10px; }
.prose h3 { font-size: 16px; margin: 26px 0 6px; }
.prose p, .prose li { color: #cbdadd; line-height: 1.72; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--text); }
.step { display: flex; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line-soft); }
.step .no { font-family: var(--mono); color: var(--accent); font-size: 13px; width: 26px; flex: none; padding-top: 2px; }
.step h4 { margin: 0 0 5px; font-size: 15px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }

.foot { margin: 56px 0 30px; padding-top: 22px; border-top: 1px solid var(--line-soft); color: var(--dim); font-size: 13px; display: flex; gap: 18px; flex-wrap: wrap; }
.foot a:hover { color: var(--text); }
.disclaim { max-width: 70ch; line-height: 1.6; }

@media (max-width: 900px) {
  .cols { grid-template-columns: 1fr; }
  .hero { padding: 34px 22px 36px; }
  .hero-art { display: none; }
  .nav-links { display: none; }
}
