/* The Dream Forex Trading — "Crimson Pulse": one committed dark look.
   Black ground with a faint chart grid, red accent, logo gold for zones. Condensed uppercase display type, slanted controls. */
:root {
  color-scheme: dark;
  --bg: #0B0B0E; --panel: #131318; --panel-2: #1B1B22; --line: #2A2A33; --grid: rgba(255,255,255,.028);
  --fg: #F4F4F6; --muted: #9A9AA7;
  --red: #FF3B4F; --red-ink: #0B0B0E; --gold: #E0AE4C; --zone: #E0AE4C; --bull: #2FD47C; --bear: #FF3B4F;
  --font-display: "Oswald", "Arial Narrow", Impact, sans-serif;
  --font-body: "Barlow", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --slant: 12px;
}
* { box-sizing: border-box }
[hidden] { display: none !important }
html { background: var(--bg); padding-top: env(safe-area-inset-top, 0px) }
body {
  margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-body); font-size: 16px; line-height: 1.55; overflow-x: hidden;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px;
}
img { max-width: 100% }
a { color: inherit }
h1, h2, h3 { font-family: var(--font-display); text-transform: uppercase; line-height: .95; margin: 0; text-wrap: balance; font-weight: 700; letter-spacing: .005em }
h1 { font-size: clamp(2.6rem, 7vw, 5rem) }
h2 { font-size: clamp(2rem, 4.6vw, 3.3rem) }
h3 { font-size: 1.35rem; font-weight: 600; line-height: 1.1 }
h1:focus { outline: none }
p { margin: 0 }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)) }
.eyebrow { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--red); font-weight: 500 }
.muted { color: var(--muted) }
.fg { color: var(--fg) }
.small { font-size: .82rem }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums }
.outline { color: transparent; -webkit-text-stroke: 2px var(--red) }
@supports not (-webkit-text-stroke: 1px black) { .outline { color: var(--red) } }
.mt-6 { margin-top: 6px } .mt-10 { margin-top: 10px } .mt-14 { margin-top: 14px } .ml-6 { margin-left: 6px }
.minw0 { min-width: 0 } .measure { max-width: 52ch }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px }

/* Header */
header.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: rgba(11,11,14,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line) }
.top .wrap { display: flex; align-items: center; gap: 22px; height: 64px }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; text-transform: uppercase; letter-spacing: .02em; flex-shrink: 0 }
.brand img { height: 38px; width: auto; display: block }
.brand span { line-height: 1; display: flex; flex-direction: column }
.brand small { font-family: var(--font-mono); font-size: .56rem; letter-spacing: .2em; color: var(--gold); margin-top: 3px; font-weight: 500 }
.navscroll { overflow-x: auto; min-width: 0; flex: 1; scrollbar-width: none; align-self: stretch }
.navscroll::-webkit-scrollbar { display: none }
nav ul { display: flex; list-style: none; margin: 0; padding: 0; white-space: nowrap; height: 100% }
nav a { display: flex; align-items: center; height: 100%; padding: 0 13px; text-decoration: none; font-family: var(--font-display); text-transform: uppercase; font-size: .95rem; letter-spacing: .05em; color: var(--muted); border-bottom: 3px solid transparent; font-weight: 500 }
nav a:hover { color: var(--fg) }
nav a.active { color: var(--fg); border-bottom-color: var(--red) }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; padding: 13px 30px; font: 600 1rem var(--font-display); text-transform: uppercase; letter-spacing: .06em; cursor: pointer; text-decoration: none; white-space: nowrap; clip-path: polygon(var(--slant) 0, 100% 0, calc(100% - var(--slant)) 100%, 0 100%); transition: background .15s, color .15s }
.btn-red { background: var(--red); color: var(--red-ink) }
.btn-red:hover, .btn-red:focus-visible { background: var(--fg) }
.btn-line { background: var(--panel-2); color: var(--fg) }
.btn-line:hover, .btn-line:focus-visible { background: var(--line) }
.btn-dark { background: var(--bg); color: var(--fg) }
.btn-dark:hover, .btn-dark:focus-visible { background: #000 }
.top .btn { padding: 9px 22px; font-size: .88rem }
@media (max-width: 560px) {
  .top .top-join { display: none }
  .brand span { display: none }
  /* Phones: logo + account on the first row, the full menu on its own row below. */
  .top .wrap { flex-wrap: wrap; height: auto; padding-block: 8px 0; gap: 4px 14px }
  .brand { margin-right: auto }
  .navscroll { order: 3; flex-basis: 100%; height: 40px }
  nav a { padding: 0 10px; font-size: .9rem }
}

.chip { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px 4px 12px; background: var(--panel-2); color: var(--muted); white-space: nowrap; clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%) }
.chip.live { color: var(--bull) }
.chip.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--bull) }
.chip.soon { color: var(--gold) }
.chip.sample { color: var(--gold); background: rgba(224,174,76,.12) }

.band { padding-block: 64px; border-bottom: 1px solid var(--line) }
.band.tight { padding-block: 40px }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px }

/* Hero */
.hero { padding-block: 56px 36px }
.hero-top { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center }
.hero-top > div { min-width: 0 }
.hero h1 { font-size: clamp(3rem, 8.4vw, 7.2rem); line-height: .86; letter-spacing: -.005em; margin-top: 18px }
.hero-logo { width: clamp(220px, 28vw, 380px); height: auto; display: block; filter: drop-shadow(0 10px 40px rgba(224,174,76,.18)) }
.hero-row { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end; margin-top: 34px }
.hero-row > * { min-width: 0 }
.lede { font-size: 1.12rem; color: var(--muted); max-width: 56ch }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); border-left: 1px solid var(--line) }
.kpis div { padding: 4px 18px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; min-width: 0 }
.kpis b { font-family: var(--font-display); font-size: 2.2rem; line-height: 1; font-weight: 600 }
.kpis span { font-size: .8rem; color: var(--muted); line-height: 1.3 }
@media (max-width: 860px) {
  .hero-top, .hero-row { grid-template-columns: 1fr }
  .hero-logo { order: -1; width: 200px }
}
@media (max-width: 420px) { .kpis div { padding: 4px 10px } .kpis b { font-size: 1.6rem } }

/* TradingView embeds */
.chartband { position: relative; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg); scroll-margin-top: 70px }
.tv .tradingview-widget-container { position: relative; height: 100% }
.tv .tradingview-widget-container__widget { height: 100% }
.tv-credit { position: absolute; right: max(16px, env(safe-area-inset-right, 0px)); bottom: 4px; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .06em; z-index: 1 }
.tv-credit a { color: var(--muted); text-decoration: none }
.tv-credit a:hover { color: var(--fg) }
.tv-chart { height: 480px; padding-bottom: 18px }
@media (max-width: 700px) { .tv-chart { height: 360px } }
.tv-tape { min-height: 46px; background: #000; border-bottom: 1px solid var(--line); overflow: hidden }
.tv-tape .tv-credit { display: none } /* the tape carries its own TradingView link */
.tv-chart .tv-credit { bottom: -16px; left: max(16px, env(safe-area-inset-left, 0px)); right: auto }

/* Red countdown band */
.redband { background: var(--red); color: var(--red-ink) }
.redband .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 40px; padding-block: 28px }
.redband .what { flex: 1; min-width: 240px }
.redband .eyebrow { color: var(--red-ink); opacity: .75 }
.redband h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-top: 6px }
.redband .when { font-weight: 500; margin-top: 4px }
.results-wrap { flex-direction: column; flex-wrap: nowrap !important; align-items: stretch !important }
.results-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px }
.results { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: rgba(11,11,14,.25); border: 1px solid rgba(11,11,14,.25) }
.results li { background: var(--red); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0 }
.r-title { font-weight: 600; font-size: .92rem; line-height: 1.25 }
.r-actual { font-family: var(--font-display); font-size: 2rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums }
.r-actual .sv { font-style: normal; font-size: 1.1rem; margin-left: 4px }
.r-fc { font-family: var(--font-mono); font-size: .72rem; opacity: .8 }
.bigcount { font-family: var(--font-display); font-size: clamp(2.6rem, 7vw, 4.6rem); font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: .02em }

/* Feature rows */
.headrow { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 32px }
.headrow p { max-width: 56ch; color: var(--muted); margin-top: 12px }
.rows { border-top: 1px solid var(--line) }
.rows > a, .rows > .row-static { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1.4fr) 130px 40px; gap: 24px; align-items: center; padding: 24px 4px; border-bottom: 1px solid var(--line); text-decoration: none; transition: background .15s, padding .15s }
.rows h3 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700 }
.rows p { color: var(--muted) }
.rows .arr { font-family: var(--font-display); font-size: 1.8rem; color: var(--red); transition: transform .15s }
.rows > a:hover { background: var(--panel); padding-left: 16px }
.rows > a:hover h3 { color: var(--red) }
.rows > a:hover .arr { transform: translateX(6px) }
.rows > .row-static h3 { color: var(--muted) }
@media (max-width: 760px) {
  .rows > a, .rows > .row-static { grid-template-columns: 1fr auto; gap: 8px 14px }
  .rows p { grid-column: 1 / -1; grid-row: 2 }
  .rows .arr, .rows > .row-static > span:last-child { display: none }
}

.steps-title { margin: 10px 0 36px }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding: 0; margin: 0; list-style: none }
.steps li { display: flex; flex-direction: column; gap: 10px; min-width: 0 }
.steps .num { font-family: var(--font-display); font-size: 5rem; line-height: .8; font-weight: 700 }
.steps p { color: var(--muted) }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr } }

/* Page heads */
.pagehead { padding-block: 52px 40px; border-bottom: 1px solid var(--line) }
.pagehead .wrap { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap }
.pagehead h1 { font-size: clamp(3rem, 9vw, 6.4rem); line-height: .88; margin-top: 12px }
.pagehead p { max-width: 60ch; color: var(--muted); margin-top: 16px }

/* Calendar */
.seg { display: inline-flex; gap: 4px }
.seg a { background: var(--panel-2); color: var(--muted); font: 600 .85rem var(--font-display); text-transform: uppercase; letter-spacing: .06em; padding: 9px 18px; text-decoration: none; clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%) }
.seg a[aria-pressed="true"] { background: var(--fg); color: var(--bg) }
.tablewrap { overflow-x: auto; border: 1px solid var(--line); background: var(--panel) }
table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 760px }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle }
th { font-family: var(--font-mono); font-weight: 500; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); background: #000 }
tr.day td { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .06em; font-size: .95rem; color: var(--red); background: var(--panel-2); padding-block: 8px }
tr:last-child td { border-bottom: 0 }
tr.next td { background: rgba(255,59,79,.1) }
tr.next td:first-child { box-shadow: inset 4px 0 0 var(--red) }
tr.past td { color: var(--muted) }
tr.weeksep td { background: var(--red); color: var(--red-ink); font: 700 1rem var(--font-display); text-transform: uppercase; letter-spacing: .1em; padding-block: 10px }
td.c-a { font-weight: 700 }
.sv { font-style: normal }
.sv.above { color: var(--bull) }
.sv.below { color: var(--red) }
.sv.inline { color: var(--muted) }
.redband .sv.above, .redband .sv.below, .redband .sv.inline { color: var(--red-ink) }
.legend { display: inline-flex; gap: 6px; align-items: center; margin-left: 10px; white-space: nowrap }
.legend .sv { margin-left: 6px }
.impact { display: inline-flex; gap: 3px }
.impact i { width: 6px; height: 16px; background: var(--line); transform: skewX(-12deg) }
.impact.high i { background: var(--red) }
.impact.medium i:nth-child(-n+2) { background: var(--gold) }
.impact.low i:first-child { background: var(--muted) }
td.cd { font-family: var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap }
.note { font-size: .88rem; color: var(--muted); margin-top: 12px }

/* Calendar as cards on phones: time · impact · countdown / title / forecast · previous · actual */
@media (max-width: 640px) {
  .tablewrap { overflow: visible; border: 0; background: none }
  table { min-width: 0 }
  thead { display: none }
  table, tbody { display: block }
  tr.day, tr.weeksep { display: block; margin-top: 18px }
  tr.day td, tr.weeksep td { display: block; border: 0 }
  tr.ev { display: grid; grid-template-columns: auto auto 1fr; grid-template-areas: "time imp cd" "title title title" "f p a";
          gap: 6px 14px; padding: 14px; background: var(--panel); border: 1px solid var(--line); border-top: 0 }
  tr.ev td { padding: 0; border: 0; background: none !important; box-shadow: none !important }
  tr.ev.next { border-left: 4px solid var(--red); background: rgba(255,59,79,.1) }
  .c-time { grid-area: time; font-weight: 700 } .c-cur { display: none } .c-imp { grid-area: imp; align-self: center }
  td.cd { grid-area: cd; justify-self: end; color: var(--muted); font-size: .85rem }
  .c-title { grid-area: title; font-weight: 600; font-size: 1.02rem }
  .c-f { grid-area: f } .c-p { grid-area: p } .c-a { grid-area: a }
  .c-f, .c-p, .c-a { font-size: .9rem }
  .c-f::before, .c-p::before, .c-a::before { content: attr(data-label); display: block; font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 500 }
  .c-f:empty, .c-p:empty, .c-a:empty { display: none }
  .legend { margin: 6px 0 0; display: flex }
}
.notice { border: 1px solid var(--line); border-left: 4px solid var(--red); background: var(--panel); padding: 18px 20px }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start }
.split > * { min-width: 0 }
@media (max-width: 800px) { .split { grid-template-columns: 1fr } }
.dmsg { background: #1E1F22; border: 1px solid var(--line); padding: 16px; display: flex; gap: 12px }
.dmsg .av { width: 40px; height: 40px; border-radius: 50%; background: var(--red); flex-shrink: 0; display: grid; place-items: center; color: var(--red-ink); font: 700 1.1rem var(--font-display) }
.dmsg .embed { border-left: 4px solid var(--red); background: #2B2D31; border-radius: 4px; padding: 10px 12px; margin-top: 6px; font-size: .92rem }
.dmsg .embed b { display: block }

/* Tools */
.tools { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start }
.tool { background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--red); padding: 24px; display: flex; flex-direction: column; gap: 20px; min-width: 0 }
.tool h2 { font-size: 1.9rem }
.tool-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0 }
.field label { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted) }
.field input, .field select { font: 500 1.05rem var(--font-mono); color: var(--fg); background: var(--bg); border: 1px solid var(--line); padding: 10px 12px; width: 100%; border-radius: 0 }
.field input:focus, .field select:focus { border-color: var(--red); outline: none }
.result { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 1px; background: var(--line) }
.result div { background: var(--panel-2); padding: 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0 }
.result span { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted) }
.result b { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums }
.result .big { background: var(--red) }
.result .big span, .result .big b { color: var(--red-ink) }
.sessions { display: flex; flex-direction: column; gap: 12px }
.srow { display: grid; grid-template-columns: 90px 1fr 62px; gap: 12px; align-items: center }
.srow > span:first-child { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .04em }
.strack { position: relative; height: 24px; background: var(--bg); border: 1px solid var(--line); overflow: hidden }
.strack .on { position: absolute; top: 0; bottom: 0; background: rgba(255,59,79,.55) }
.strack .now { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--gold) }
.axis { display: grid; grid-template-columns: 90px 1fr 62px; gap: 12px; font-family: var(--font-mono); font-size: .68rem; color: var(--muted) }
.axis .ticks { display: flex; justify-content: space-between }
.state { font-family: var(--font-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted) }
.state.open { color: var(--bull) }
.clock { font-family: var(--font-display); font-size: 2.4rem; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums }
@media (max-width: 860px) { .tools { grid-template-columns: 1fr } }
@media (max-width: 440px) { .fields, .result { grid-template-columns: 1fr } .srow, .axis { grid-template-columns: 70px 1fr 52px } }

/* Footer */
footer { padding-block: 48px calc(36px + env(safe-area-inset-bottom, 0px)); background: #000 }
footer .wrap { display: flex; flex-direction: column; gap: 22px }
.foot-top { display: flex; align-items: flex-end; gap: 28px; flex-wrap: wrap }
.foot-top img { width: 170px; height: auto }
.bigname { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(3rem, 11vw, 8.5rem); line-height: .8; letter-spacing: -.01em }
footer p { font-size: .84rem; color: var(--muted); max-width: 100ch }

/* Account in the header */
.account { display: flex; align-items: center; gap: 10px; flex-shrink: 0 }
.account img, .avatar-fallback { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--panel-2); font: 700 .9rem var(--font-display); color: var(--gold) }
.account-name { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .04em; font-size: .9rem; max-width: 14ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.account form { margin: 0 }
.linkbtn, .signin { background: none; border: 0; padding: 0; color: var(--muted); font: 500 .85rem var(--font-body); cursor: pointer; text-decoration: none; white-space: nowrap }
.linkbtn:hover, .signin:hover { color: var(--fg) }
@media (max-width: 720px) { .account-name { display: none } }
a.link { color: var(--gold) }

/* Shared panels */
.wrap.narrow { max-width: 640px }
.card-panel { background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--red); padding: 26px; display: flex; flex-direction: column; gap: 16px }
.btn-discord { background: #5865F2; color: #fff }
.btn-discord:hover, .btn-discord:focus-visible { background: #4752C4 }
.devlogin { border-top: 1px dashed var(--line); padding-top: 16px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start }
.plain-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px }
.ctas form { margin: 0 }

/* Learning hub */
.progress-box { display: flex; flex-direction: column; gap: 6px; min-width: 220px }
.progress-box b { font-family: var(--font-display); font-size: 2rem; line-height: 1 }
.bar { height: 6px; background: var(--panel-2) }
.bar i { display: block; height: 100%; background: var(--gold) }
.levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px }
.level { min-width: 0 }
.level header { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-bottom: 12px; border-bottom: 3px solid var(--red) }
.level header h2 { font-size: 2rem }
a.lesson { display: grid; grid-template-columns: 20px 1fr auto; gap: 10px; align-items: start; padding: 14px 4px; border-bottom: 1px solid var(--line); text-decoration: none; transition: background .15s }
a.lesson:hover { background: var(--panel) }
a.lesson:hover b { color: var(--red) }
a.lesson div { min-width: 0 }
a.lesson b { display: block; font-weight: 600; font-size: 1.02rem }
a.lesson .muted { font-size: .88rem; display: block; line-height: 1.4; margin-top: 2px }
a.lesson .mark { color: var(--muted); padding-top: 3px; font-weight: 700 }
a.lesson.done .mark { color: var(--bull) }
a.lesson .len { font-family: var(--font-mono); font-size: .76rem; color: var(--muted); white-space: nowrap; padding-top: 3px }
@media (max-width: 860px) { .levels { grid-template-columns: 1fr } }

.pagehead .eyebrow a { color: inherit; text-decoration: none }
.pagehead .eyebrow a:hover { text-decoration: underline }
.lesson-title { font-size: clamp(2.2rem, 6vw, 4.2rem) !important; line-height: .95 !important }
.lesson-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 48px; align-items: start }
.lesson-side { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 18px }
.lesson-side form { margin: 0; display: flex; flex-direction: column; gap: 10px; align-items: flex-start }
.done-note { color: var(--bull); font-weight: 600 }
.lesson-nav { display: flex; flex-direction: column; border-top: 1px solid var(--line) }
.lesson-nav a { display: flex; flex-direction: column; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 600 }
.lesson-nav a:hover { color: var(--red) }
@media (max-width: 900px) { .lesson-layout { grid-template-columns: 1fr } .lesson-side { position: static } }
.prose { max-width: 70ch; font-size: 1.06rem; line-height: 1.7 }
.prose > * + * { margin-top: 1em }
.prose h2 { font-size: 1.9rem; margin-top: 1.6em }
.prose h3 { font-size: 1.3rem; margin-top: 1.4em; color: var(--gold) }
.prose ul, .prose ol { padding-left: 1.3em }
.prose li + li { margin-top: .35em }
.prose strong { color: var(--fg) }
.prose a { color: var(--gold) }
.prose blockquote { margin: 1.2em 0; padding: 12px 18px; border-left: 4px solid var(--red); background: var(--panel); color: var(--fg) }
.prose code { font-family: var(--font-mono); font-size: .9em; background: var(--panel-2); padding: 1px 6px }
.prose table { min-width: 0; font-size: .95rem; border: 1px solid var(--line) }
.prose th { background: var(--panel-2) }

/* Journal */
.filterbar { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; overflow-x: auto }
.stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 24px }
.stats div { background: var(--panel); padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; min-width: 0 }
.stats span { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted) }
.stats b { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(3, 1fr) } }
@media (max-width: 480px) { .stats { grid-template-columns: repeat(2, 1fr) } }
.pos { color: var(--bull) } .neg { color: var(--red) }
.empty { border: 1px dashed var(--line); padding: 36px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start }
.side { font-family: var(--font-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700 }
.side.long { color: var(--bull) } .side.short { color: var(--red) }
.jtable td.j-edit a { color: var(--muted); font-size: .85rem }
.jtable td.j-edit a:hover { color: var(--fg) }
@media (max-width: 640px) {
  .jtable, .jtable tbody { display: block; min-width: 0 }
  .jtable thead { display: none }
  tr.jt { display: grid; grid-template-columns: auto auto 1fr auto; grid-template-areas: "date sym side r" "setup setup setup setup" "en st ex edit";
          gap: 6px 12px; padding: 14px; background: var(--panel); border-bottom: 1px solid var(--line) }
  tr.jt td { padding: 0; border: 0 }
  .j-date { grid-area: date; font-weight: 700 } .j-sym { grid-area: sym } .j-side { grid-area: side } .j-r { grid-area: r; justify-self: end }
  .j-setup { grid-area: setup } .j-en { grid-area: en } .j-st { grid-area: st } .j-ex { grid-area: ex } .j-edit { grid-area: edit; align-self: end }
  .j-en::before, .j-st::before, .j-ex::before { content: attr(data-label); display: block; font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted) }
}
.trade-form { gap: 18px }
.fields.three { grid-template-columns: repeat(3, 1fr) }
@media (max-width: 760px) { .fields.three { grid-template-columns: 1fr 1fr } }
@media (max-width: 440px) { .fields.three { grid-template-columns: 1fr } }
.field textarea { font: 400 1rem var(--font-body); color: var(--fg); background: var(--bg); border: 1px solid var(--line); padding: 10px 12px; width: 100%; resize: vertical }
.field textarea:focus { border-color: var(--red); outline: none }
.field input.invalid, .field select.invalid { border-color: var(--red) }
.form-errors { margin: 0; padding: 12px 16px 12px 32px; border-left: 4px solid var(--red); background: rgba(255,59,79,.08); color: var(--fg) }
.validation-message { color: var(--red); font-size: .85rem }
.btn.danger { color: var(--red) }
.confirm-delete { margin-top: 18px; padding: 18px; border: 1px solid var(--red); background: rgba(255,59,79,.08); display: flex; flex-wrap: wrap; gap: 12px; align-items: center }
.confirm-delete p { flex-basis: 100% }

/* Account forms */
.auth-form .field input { font: 500 1rem var(--font-body) }
.auth-form .btn { align-self: flex-start }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--muted); line-height: 1.4 }
.check input { margin-top: 3px; accent-color: var(--red); width: 16px; height: 16px; flex-shrink: 0 }
.form-errors li + li { margin-top: 4px }
ul.form-errors { list-style: none; padding-left: 16px }
.notice.ok { border-left-color: var(--bull); margin-bottom: 18px }
code.temp { font-family: var(--font-mono); font-size: 1.1rem; background: var(--bg); color: var(--gold); padding: 2px 8px; user-select: all }
.account-me { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit }
.account-me:hover .account-name { color: var(--red) }
.admin-link { font: 600 .72rem var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--gold); text-decoration: none; border: 1px solid var(--gold); padding: 3px 7px }
.admin-link:hover { background: var(--gold); color: var(--bg) }

/* Admin: members */
.btn-sm { padding: 7px 16px; font-size: .78rem; --slant: 8px }
.mtable td { vertical-align: middle }
.m-user b { display: block }
.m-actions { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center }
.m-actions form { margin: 0 }
@media (max-width: 760px) {
  .mtable, .mtable tbody { display: block; min-width: 0 }
  .mtable thead { display: none }
  tr.mt { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 14px; background: var(--panel); border-bottom: 1px solid var(--line) }
  tr.mt td { padding: 0; border: 0 }
  .m-status { justify-self: end } .m-email, .m-actions { grid-column: 1 / -1 }
  .m-joined::before, .m-last::before { content: attr(data-label) ": "; color: var(--muted) }
}

/* Language switch */
.langswitch { display: inline-flex; flex-shrink: 0; border: 1px solid var(--line) }
.langswitch a { padding: 5px 9px; font: 600 .75rem var(--font-mono); letter-spacing: .08em; color: var(--muted); text-decoration: none }
.langswitch a[aria-current="true"] { background: var(--fg); color: var(--bg) }
.langswitch a:hover:not([aria-current="true"]) { color: var(--fg) }

/* Member dashboard */
.dash { display: grid; grid-template-columns: 1fr 1.3fr; gap: 28px; align-items: start }
.dash > * { min-width: 0 }
.dash-card { background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--red); padding: 22px; display: flex; flex-direction: column; gap: 16px }
.dash-card header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap }
.dash-card h2 { font-size: 1.7rem }
.dash-card .stats { margin-bottom: 0; grid-template-columns: repeat(3, 1fr) }
.dash-card .empty { padding: 22px }
.dash-link { color: var(--gold); text-decoration: none; font-size: .9rem; white-space: nowrap }
.dash-link:hover { text-decoration: underline }
.today-news { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line) }
.today-news li { display: grid; grid-template-columns: 62px auto 1fr auto; gap: 12px; align-items: center; padding: 12px 2px; border-bottom: 1px solid var(--line) }
.today-news li.past { color: var(--muted) }
.today-news li.tn-empty { display: block; color: var(--muted) }
.tn-time { font-weight: 700 }
.tn-title { min-width: 0 }
.tn-cd, .tn-actual { white-space: nowrap; font-size: .9rem }
.tn-actual small { color: var(--muted) }
.tn-actual.above { color: var(--bull) } .tn-actual.below { color: var(--red) }
@media (max-width: 960px) { .dash { grid-template-columns: 1fr } }
@media (max-width: 480px) { .today-news li { grid-template-columns: 52px auto 1fr; } .tn-cd, .tn-actual { grid-column: 3; } .dash-card .stats { grid-template-columns: repeat(2, 1fr) } }

/* Class list (Learn) */
.class-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); max-width: 900px }
.class-list li { display: grid; grid-template-columns: 56px 1fr auto; gap: 16px; align-items: center; padding: 16px 4px; border-bottom: 1px solid var(--line) }
.class-num { font-size: 1.4rem; font-weight: 700; color: var(--red) }
.class-topic { display: flex; flex-direction: column; gap: 3px; min-width: 0 }
.class-topic b { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .03em; font-size: 1.2rem; font-weight: 600 }
.class-len { font-size: 1.05rem; color: var(--gold); white-space: nowrap }
@media (max-width: 480px) { .class-list li { grid-template-columns: 40px 1fr auto; gap: 10px } .class-num { font-size: 1.1rem } }
.class-videos { grid-column: 2 / -1; display: flex; flex-direction: column; gap: 10px; margin-top: 6px }
.class-videos video { width: 100%; aspect-ratio: 21 / 9; background: #000; border: 1px solid var(--line); display: block }
@media (max-width: 480px) { .class-videos { grid-column: 1 / -1 } }

/* Membership plan */
.plan-wrap { display: grid; grid-template-columns: 1fr 420px; gap: 48px; align-items: center }
.plan-wrap > * { min-width: 0 }
.rating { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; text-decoration: none; color: var(--muted) }
.rating .stars { color: var(--gold); letter-spacing: 2px }
.rating b { color: var(--fg); font-family: var(--font-display); font-size: 1.2rem }
.rating:hover { color: var(--fg) }
.plan-card { background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--gold); padding: 26px; display: flex; flex-direction: column; gap: 18px }
.plan-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap }
.price { display: flex; align-items: baseline; gap: 6px }
.price b { font-family: var(--font-display); font-size: 3rem; line-height: 1; font-weight: 700 }
.price span { color: var(--muted) }
.plan-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px }
.plan-list li { padding-left: 24px; position: relative }
.plan-list li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 700 }
@media (max-width: 860px) { .plan-wrap { grid-template-columns: 1fr } }

/* FAQ */
.faq { max-width: 820px; display: flex; flex-direction: column; gap: 10px }
.faq details { background: var(--panel); border: 1px solid var(--line) }
.faq summary { cursor: pointer; padding: 16px 20px; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .03em; font-size: 1.15rem; list-style: none; display: flex; justify-content: space-between; gap: 12px }
.faq summary::-webkit-details-marker { display: none }
.faq summary::after { content: "+"; color: var(--red); font-size: 1.4rem; line-height: 1 }
.faq details[open] summary::after { content: "−" }
.faq details p { padding: 0 20px 18px; color: var(--muted); max-width: 70ch }
.faq a { color: var(--gold) }

/* Footer links */
.footlinks { display: flex; flex-wrap: wrap; gap: 8px 22px }
.footlinks a { color: var(--fg); text-decoration: none; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .05em; font-size: .9rem }
.footlinks a:hover { color: var(--red) }

/* Phone join bar */
.mobile-cta { display: none }
@media (max-width: 560px) {
  .mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px;
                background: rgba(11,11,14,.96); backdrop-filter: blur(8px); border-top: 1px solid var(--line);
                padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)) }
  .mobile-cta span { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .04em; font-size: .9rem; line-height: 1.1 }
  .mobile-cta .btn { padding: 11px 22px; font-size: .9rem }
  footer { padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px)) }
}

.blazor-error-boundary { background: #b32121; padding: 1rem; color: white }
.blazor-error-boundary::after { content: "An error has occurred." }

/* Journal: $ P/L, balance, goals */
.pagehead .ctas { margin-top: 0 }
.stats b small { font-size: .55em; font-weight: 500; margin-left: 4px }
.stats div > small { font-size: .8rem; font-variant-numeric: tabular-nums }
.notice.ok { border-left-color: var(--bull); margin-bottom: 18px }
.balance-bar { display: grid; grid-template-columns: repeat(3, auto) 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-top: 3px solid var(--gold); margin-bottom: 14px }
.balance-bar > div, .balance-bar > p { background: var(--panel); padding: 14px 18px; display: flex; flex-direction: column; gap: 6px; min-width: 0 }
.balance-bar > p { justify-content: center; display: block; line-height: 1.5 }
.balance-bar span { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted) }
.balance-bar b { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap }
.balance-bar > div:first-child b { color: var(--gold) }
@media (max-width: 760px) { .balance-bar { grid-template-columns: repeat(3, 1fr) } .balance-bar > p { grid-column: 1 / -1 } }
@media (max-width: 440px) { .balance-bar { grid-template-columns: 1fr 1fr } .balance-bar > div:first-child { grid-column: 1 / -1 } }
.jtable td.j-bal { color: var(--muted) }
@media (max-width: 640px) {
  tr.jt { grid-template-areas: "date sym side r" "setup setup setup setup" "en st ex edit" "pnl bal bal bal" }
  .j-pnl { grid-area: pnl } .j-bal { grid-area: bal }
  .j-pnl::before, .j-bal::before { content: attr(data-label); display: block; font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted) }
}

.year-nav a { cursor: pointer }
.year-nav a[aria-pressed="true"] { cursor: default; font-variant-numeric: tabular-nums }
.goal-sum { grid-template-columns: repeat(4, 1fr) }
@media (max-width: 640px) { .goal-sum { grid-template-columns: 1fr 1fr } }

.goal-chart { background: var(--panel); border: 1px solid var(--line); padding: 16px 18px 10px; margin-bottom: 24px }
.gc-legend { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px }
.gc-key { width: 12px; height: 12px; display: inline-block }
.gc-key.goal { border: 2px solid var(--gold); margin-left: 0 }
.gc-key.res { background: var(--bull); margin-left: 12px }
.gc-plot { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; height: 200px }
.gc-month { display: flex; flex-direction: column; min-width: 0 }
.gc-area { position: relative; flex: 1 }
.gc-zero { position: absolute; left: -2px; right: -2px; height: 1px; background: var(--line); display: block }
.gc-bar { position: absolute; display: block; width: min(38%, 22px) }
.gc-bar.goal { right: 50%; margin-right: 1px; border: 2px solid var(--gold); background: rgba(224,174,76,.08) }
.gc-bar.res { left: 50%; margin-left: 1px; background: var(--bull) }
.gc-bar.res.neg { background: var(--red) }
.gc-label { padding-top: 6px; text-align: center; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted) }

.goal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 24px }
@media (max-width: 900px) { .goal-grid { grid-template-columns: repeat(3, 1fr) } }
@media (max-width: 640px) { .goal-grid { grid-template-columns: 1fr 1fr } }
@media (max-width: 380px) { .goal-grid { grid-template-columns: 1fr } }
.goal-card { background: var(--panel); padding: 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0 }
.goal-card.met { background: linear-gradient(180deg, rgba(47,212,124,.08), var(--panel) 60%) }
.goal-card h3 { font-size: 1.15rem }
.goal-card label, .goal-card .gr { display: flex; flex-direction: column; gap: 4px }
.goal-card label span, .goal-card .gr span { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted) }
.goal-card input { font: 600 1.05rem var(--font-mono); color: var(--fg); background: var(--bg); border: 1px solid var(--line); padding: 8px 10px; width: 100%; min-width: 0 }
.goal-card input:focus { border-color: var(--gold); outline: none }
.goal-card .gr b { font-size: 1.15rem; font-variant-numeric: tabular-nums }
.gbar { height: 6px; background: var(--panel-2); overflow: hidden }
.gbar i { display: block; height: 100%; background: var(--gold) }
.goal-card.met .gbar i { background: var(--bull) }
.gnote { font-size: .8rem }
.goal-card.met .gnote { color: var(--bull) }
.balance-set { scroll-margin-top: 90px }
.balance-set .field { max-width: 520px }
.balance-set .ctas { margin-top: 0 }
.stats b span { font: inherit; letter-spacing: normal; text-transform: none; color: inherit }
.stats b span.muted { color: var(--muted) } .stats b span.pos { color: var(--bull) } .stats b span.neg { color: var(--red) }
.jtable td.j-date, .jtable td.j-pnl, .jtable td.j-bal { white-space: nowrap }

/* Mentoring */
.steps-mini { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line) }
.steps-mini li { background: var(--panel); padding: 12px 14px; display: flex; gap: 10px; align-items: center; font-size: .92rem }
.steps-mini b { font-family: var(--font-display); color: var(--red); font-size: 1.4rem; line-height: 1 }
@media (max-width: 640px) { .steps-mini { grid-template-columns: 1fr } }
.mentor-form { display: flex; flex-direction: column; gap: 22px }
.mentor-form fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0 }
.mentor-form legend { font-family: var(--font-display); text-transform: uppercase; font-size: 1.3rem; letter-spacing: .02em; margin-bottom: 12px; padding: 0 }
.mentor-form .ctas { margin-top: 0 }
.topic-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px }
.topic-grid.compact { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)) }
@media (max-width: 760px) { .topic-grid { grid-template-columns: 1fr 1fr } }
.pick { position: relative; display: block; cursor: pointer; min-width: 0 }
.pick input { position: absolute; opacity: 0; width: 1px; height: 1px }
.pick > span { display: flex; align-items: center; min-height: 48px; padding: 10px 14px; background: var(--panel); border: 1px solid var(--line); font-weight: 600; font-size: .95rem; transition: border-color .15s, background .15s }
.pick:hover > span { border-color: var(--muted) }
.pick input:checked + span { border-color: var(--red); background: rgba(255,59,79,.1) }
.pick input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px }
.mentor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px }
.mentor-card > .mc-body { flex-direction: column; align-items: stretch; gap: 10px; padding: 16px; height: 100%; font-weight: 400 }
.mc-head { display: flex; gap: 12px; align-items: center }
.mc-head b { display: block; font-family: var(--font-display); text-transform: uppercase; font-size: 1.15rem; letter-spacing: .02em }
.mc-head small { display: block; color: var(--muted); font-size: .85rem }
.mc-avatar { width: 44px; height: 44px; flex-shrink: 0; display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--gold); color: var(--gold); font-family: var(--font-display); font-size: 1.1rem }
.mc-bio { color: var(--muted); font-size: .9rem; line-height: 1.45 }
.mc-tags { display: flex; flex-wrap: wrap; gap: 6px }
.mc-match { display: none; color: var(--bull); font-family: var(--font-mono); letter-spacing: .06em; text-transform: uppercase; font-size: .68rem }
.mentor-card.covers .mc-match { display: block }
.mentor-card.covers > .mc-body { border-color: rgba(47,212,124,.55) }
.mentor-card.covers input:checked + .mc-body { border-color: var(--red) }
.sub-h { font-size: 1.6rem; margin: 36px 0 14px }
.req-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line) }
.req-list li { display: grid; grid-template-columns: 70px 1fr auto auto; gap: 14px; align-items: center; padding: 12px 16px; background: var(--panel); border-bottom: 1px solid var(--line) }
.req-list li:last-child { border-bottom: 0 }
@media (max-width: 560px) { .req-list li { grid-template-columns: 1fr auto } }
.book-layout { display: grid; grid-template-columns: 320px 1fr; gap: 20px; align-items: start }
@media (max-width: 900px) { .book-layout { grid-template-columns: 1fr } }
.book-summary blockquote, .admin-reqs blockquote { margin: 0; padding: 12px 14px; border-left: 3px solid var(--gold); background: var(--panel-2); white-space: pre-wrap; overflow-wrap: anywhere; font-size: .95rem }
.book-summary .btn { align-self: flex-start }
.book-tips { margin: 0; padding-left: 18px; color: var(--muted); display: flex; flex-direction: column; gap: 6px }
.book-cal iframe { width: 100%; height: 720px; border: 0; background: #fff; display: block }
.book-cal .note { display: flex; flex-wrap: wrap; align-items: center; gap: 8px }
.admin-tabs { margin-bottom: 22px; flex-wrap: wrap }
.admin-reqs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px }
.admin-reqs .card-panel { gap: 10px; border-top-color: var(--gold) }
.admin-reqs form { margin: 0 }
.ar-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center }
.mentor-edit { margin-bottom: 28px }
.mentor-edit textarea, .mentor-edit input:not([type=checkbox]) { width: 100% }

/* Merch shop */
.merch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px }
.merch-card { background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; transition: border-color .15s }
.merch-card:hover { border-color: var(--gold) }
.merch-img { position: relative; aspect-ratio: 1 / 1; background: radial-gradient(circle at 50% 40%, #1d1a12, var(--panel-2) 70%); display: grid; place-items: center; overflow: hidden }
.merch-img img { width: 100%; height: 100%; object-fit: cover; display: block }
.merch-img img.placeholder { width: 55%; height: auto; object-fit: contain; opacity: .35 }
.merch-img .chip { position: absolute; top: 12px; left: 12px }
.merch-card.sold .merch-img img { filter: grayscale(1); opacity: .5 }
.merch-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; flex: 1 }
.merch-body h3 { font-size: 1.25rem }
.merch-price { font-size: 1.2rem; color: var(--gold) }
.merch-body .btn { align-self: flex-start; margin-top: auto }
.merch-sizes { display: flex; flex-wrap: wrap; gap: 6px }
.merch-colors { display: flex; flex-direction: column; gap: 8px }
.swatches { display: flex; flex-wrap: wrap; gap: 8px }
.swatch { width: 28px; height: 28px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); outline-offset: 3px; transition: transform .15s }
.swatch:hover { transform: scale(1.12) }
.swatch[aria-pressed="true"] { box-shadow: inset 0 0 0 1px rgba(255,255,255,.25), 0 0 0 2px var(--panel), 0 0 0 4px var(--gold) }
.merch-colors-admin { margin-top: 18px; display: flex; flex-direction: column; gap: 12px }
.mcolor-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 12px }
.mcolor-form { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; flex: 1; min-width: 0 }
.mcolor-form input[type=color] { width: 42px; height: 38px; padding: 2px; background: none; border: 1px solid var(--line); cursor: pointer }
.mcolor-form input[name="Color.Name"] { flex: 1; min-width: 140px }
.mcolor-form input[type=file] { max-width: 230px; font-size: .8rem }
.mcolor-order { width: 70px }
.mcolor-img { width: 56px; height: 56px; flex: none; display: grid; place-items: center; background: var(--panel-2) }
.mcolor-img img { width: 100%; height: 100%; object-fit: cover }
.mcolor-dot { width: 28px; height: 28px; border-radius: 50% }
.mcolor-new { border-top: 1px dashed var(--line); padding-top: 14px }
.mcolor-mini { display: inline-flex; gap: 3px; margin-top: 4px }
.mcolor-mini i { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25) }
.merch-sizes span { font-family: var(--font-mono); font-size: .72rem; padding: 3px 8px; border: 1px solid var(--line); color: var(--muted) }
.btn.disabled { opacity: .55; cursor: default; pointer-events: none }
.merch-empty { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; border: 1px dashed var(--line); padding: 32px }
.merch-empty img { width: 180px; height: auto; opacity: .85 }
.merch-empty h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: 10px }
.merch-empty > div { flex: 1; min-width: 220px }
.merch-thumb img { width: 48px; height: 48px; object-fit: cover; display: block }
.merch-admin-img img { width: 140px; height: 140px; object-fit: cover; border: 1px solid var(--line); display: block; margin-bottom: 6px }
.mentor-edit input[type=file] { color: var(--muted) }
.mentor-edit select { width: 100% }

/* Header menu with 8 items: tighter on mid-size screens, and a fade on the side that has more items */
@media (max-width: 1280px) { nav a { padding: 0 9px; font-size: .9rem; letter-spacing: .03em } .top .wrap { gap: 14px } }
@media (max-width: 1100px) { .brand span { display: none } }
.navscroll.more-right { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent) }
.navscroll.more-left { -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%); mask-image: linear-gradient(90deg, transparent, #000 15%) }
.navscroll.more-left.more-right { -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent) }

/* Discord sign-in */
.btn-discord { background: #5865F2; color: #fff; gap: 12px }
.btn-discord:hover, .btn-discord:focus-visible { background: #4752C4 }
.discord-panel .btn-discord { align-self: stretch; padding-block: 16px; font-size: 1.1rem }
.discord-panel .plain-steps { padding-left: 18px }
.pw-login { margin-top: 18px }
.pw-login > summary { cursor: pointer; color: var(--muted); font-size: .9rem; padding: 8px 0; list-style-position: inside }
.pw-login > summary:hover { color: var(--fg) }
.pw-login[open] > summary { margin-bottom: 10px }
.account-wrap { display: flex; flex-direction: column; gap: 18px }
.discord-link { border-top-color: #5865F2; gap: 12px }
.discord-link .btn { align-self: flex-start }
.dl-row { display: flex; gap: 12px; align-items: center }
.dl-row img { border-radius: 50% }
.dl-row div { display: flex; flex-direction: column; gap: 2px }
.discord-link form { margin: 0 }
.m-discord { display: flex; align-items: center; gap: 6px }
.m-discord img { width: 20px; height: 20px; border-radius: 50% }

/* Practice chart */
.px-token { display: none }
.px { display: flex; flex-direction: column; gap: 10px }
.px-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 10px 18px; padding: 10px 12px; background: var(--panel); border: 1px solid var(--line) }
.px-group { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 10px }
.px-field { display: flex; flex-direction: column; gap: 4px; min-width: 0 }
.px-field.inline { flex-direction: row; align-items: center; gap: 8px }
.px-field > span { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 6px }
.px-field input, .px-field select { font: 500 .92rem var(--font-mono); color: var(--fg); background: var(--bg); border: 1px solid var(--line); padding: 7px 9px; min-width: 0; color-scheme: dark }
.px-field input:focus, .px-field select:focus { border-color: var(--gold); outline: none }
.px-tf a { cursor: pointer; padding: 7px 12px }
.px-clock { font-size: .85rem; color: var(--gold); padding: 7px 0; white-space: nowrap }
.px-tool { background: var(--panel-2); color: var(--fg); border: 1px solid var(--line); font: 600 .82rem var(--font-body); padding: 7px 11px; cursor: pointer }
.px-tool:hover { border-color: var(--muted) }
.px-tool[aria-pressed="true"] { border-color: var(--gold); color: var(--gold); background: rgba(224,174,76,.1) }
.px-main { display: grid; grid-template-columns: 1fr 300px; gap: 10px; align-items: start }
@media (max-width: 980px) { .px-main { grid-template-columns: 1fr } }
.px-chartwrap { position: relative; border: 1px solid var(--line); background: var(--bg); min-width: 0 }
.px-chart { height: min(68vh, 600px); min-height: 360px }
.px-overlay { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 3 }
.px-hint { position: absolute; left: 12px; top: 12px; z-index: 5; background: rgba(11,11,14,.9); border: 1px solid var(--gold); color: var(--fg); padding: 6px 10px; font-size: .85rem; max-width: calc(100% - 90px) }
.px-loading { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; text-align: center; padding: 20px; color: var(--muted); background: rgba(11,11,14,.85) }
.px-side { display: flex; flex-direction: column; gap: 10px; min-width: 0 }
.px-card { background: var(--panel); border: 1px solid var(--line); padding: 14px; display: flex; flex-direction: column; gap: 10px }
.px-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px }
.px-fields input { width: 100% }
.px-pick { background: none; border: 0; color: var(--gold); cursor: pointer; font-size: .95rem; padding: 0; line-height: 1 }
.px-calc { color: var(--muted); min-height: 1.2em }
.px-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px }
.btn-buy { background: var(--bull); color: #0B0B0E } .btn-buy:hover { background: #5fe39b }
.btn-sell { background: var(--red); color: #0B0B0E } .btn-sell:hover { background: #ff6878 }
.px-note { line-height: 1.4 }
.px-pos { display: flex; flex-direction: column; gap: 6px; font-size: .88rem }
.px-pos div { display: flex; justify-content: space-between; gap: 10px }
.px-pos span { color: var(--muted) }
.px-session { font-size: .85rem; line-height: 1.5 }
.px-trades { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; max-height: 220px; overflow: auto; font-size: .8rem }
.px-trades li { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; padding: 4px 0; border-bottom: 1px solid var(--line); font-family: var(--font-mono) }
.px-trades li .muted { font-size: .72rem }
.kbd { font-family: var(--font-mono); font-size: .75rem; border: 1px solid var(--line); padding: 1px 6px; background: var(--panel-2) }
.px-trades li b { margin-left: auto }

/* Slide-in on scroll (site.js adds .rv below the fold, .rv-in when it scrolls into view) */
@media (prefers-reduced-motion: no-preference) {
  .rv { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2,.7,.2,1) var(--rv-delay, 0ms), transform .7s cubic-bezier(.2,.7,.2,1) var(--rv-delay, 0ms) }
  .rows > .rv, .steps > .rv, .results > .rv { transform: translateX(-36px) }
  .rv.rv-in { opacity: 1; transform: none }

  /* Page header and home hero: a short entrance when the page opens. */
  @keyframes df-rise { from { opacity: 0; transform: translateY(22px) } to { opacity: 1; transform: none } }
  .pagehead .wrap > *, .hero-top > *, .hero-row > * { animation: df-rise .75s cubic-bezier(.2,.7,.2,1) both }
  .pagehead .wrap > :nth-child(2), .hero-top > :nth-child(2), .hero-row > :nth-child(2) { animation-delay: .12s }
  .hero-row > * { animation-delay: .18s }
  .hero-row > :nth-child(2) { animation-delay: .28s }
}

/* Admin: add admin by Discord ID */
.add-admin { margin-bottom: 18px; gap: 12px; border-top-color: #5865F2 }
.add-admin-row { display: flex; gap: 10px; flex-wrap: wrap }
.add-admin-row input { flex: 1; min-width: 220px; font: 500 1rem var(--font-mono); color: var(--fg); background: var(--bg); border: 1px solid var(--line); padding: 9px 11px }
.add-admin-row input:focus { border-color: #5865F2; outline: none }
.add-admin-row select { font: 500 .95rem var(--font-body); color: var(--fg); background: var(--bg); border: 1px solid var(--line); padding: 9px 10px; color-scheme: dark }
.mc-avatar.mc-photo { border-radius: 50%; object-fit: cover; padding: 0; border-color: #5865F2 }
.mentor-banner { display: block; text-decoration: none; margin-bottom: 18px; border-left-color: #5865F2 } .mentor-banner:hover { background: var(--panel-2) }
.hours-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px 12px }
.hours-day { display: flex; flex-direction: column; gap: 4px }
.hours-day span { font: 500 .78rem var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted) }

/* Mentoring: slots and booked session */
.slot-form { display: flex; flex-direction: column; gap: 18px }
.slot-day h4 { font: 600 1.05rem var(--font-display); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; color: var(--gold) }
.slot-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 8px }
.pick.slot > span { justify-content: center; font: 600 .95rem var(--font-mono); min-height: 44px; white-space: nowrap }
.booked-card { border-top-color: var(--bull); gap: 14px }
.booked-when { font-size: clamp(1.8rem, 4vw, 2.6rem) }
.book-summary .dl-row div { display: flex; flex-direction: column }
.booked-line { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; color: var(--gold) }
