/* ICT Blueprint — Premium Dark design system */
:root {
  --bg: #0a0b0d;
  --bg-2: #0f1013;
  --card: #131418;
  --card-2: #17191e;
  --card-3: #1c1f25;
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .12);
  --text: #e9e7e2;
  --text-2: #b9bbc1;
  --muted: #858993;
  --gold: #c9a45c;
  --gold-2: #e3c68a;
  --gold-soft: rgba(201, 164, 92, .12);
  --green: #22ab94;
  --red: #f23645;
  --blue: #5b8def;
  --purple: #a77bdb;
  --r: 14px;
  --r-sm: 9px;
  --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 18px 40px -24px rgba(0, 0, 0, .8);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
  --nav-h: 66px;
  --tape-h: 76px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.6;
  padding-top: calc(var(--nav-h) + var(--tape-h)); -webkit-font-smoothing: antialiased; overflow-x: hidden;
  background-image: radial-gradient(1200px 500px at 75% -10%, rgba(201, 164, 92, .06), transparent 60%), radial-gradient(900px 400px at 0% 10%, rgba(91, 141, 239, .035), transparent 60%);
  background-attachment: fixed;
}
body.lock { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.02em; line-height: 1.15; }
p { margin: 0; }
::selection { background: rgba(201, 164, 92, .35); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 28px; }
.ic { width: 18px; height: 18px; flex: none; vertical-align: -3px; }
.mono { font-family: var(--mono); font-feature-settings: 'tnum'; }
.muted { color: var(--muted); }
.dim { color: var(--text-2); }
.gold { color: var(--gold); }
.pos { color: var(--green) !important; }
.neg { color: var(--red); }
.xs { font-size: 12px; }
.sm { font-size: 13.5px; }
.big { font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.kicker { font-family: var(--mono); font-size: 11.5px; letter-spacing: .18em; color: var(--gold); text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.kicker::before { content: ''; width: 18px; height: 1px; background: var(--gold); opacity: .7; }
.link { display: inline-flex; align-items: center; gap: 6px; color: var(--gold-2); font-weight: 500; transition: gap .2s, color .2s; }
.link .ic { width: 15px; height: 15px; }
.link:hover { gap: 10px; color: var(--gold); }
kbd { font-family: var(--mono); font-size: 10.5px; color: var(--muted); border: 1px solid var(--line-2); border-radius: 5px; padding: 1px 6px; background: var(--card-2); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 44px; padding: 0 20px; border-radius: 10px; font-weight: 600; font-size: 14.5px; transition: transform .15s, background .2s, border-color .2s, box-shadow .2s, color .2s; white-space: nowrap; }
.btn.sm { height: 36px; padding: 0 14px; font-size: 13.5px; }
.btn.full { width: 100%; }
.btn-gold { background: linear-gradient(180deg, #d9b873, #b8914a); color: #16130c; box-shadow: 0 8px 24px -10px rgba(201, 164, 92, .6), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 12px 28px -10px rgba(201, 164, 92, .75), inset 0 1px 0 rgba(255, 255, 255, .4); }
.btn-ghost { background: var(--card-2); border: 1px solid var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: rgba(201, 164, 92, .45); background: var(--card-3); }
.btn-outline { border: 1px solid rgba(201, 164, 92, .5); color: var(--gold-2); }
.btn-outline:hover { background: var(--gold-soft); }
.btn-done { background: rgba(34, 171, 148, .12); color: var(--green); border: 1px solid rgba(34, 171, 148, .4); }
.btn-text { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.btn-text:hover { color: var(--text); }
.icon-btn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px; border-radius: 9px; color: var(--text-2); border: 1px solid var(--line); background: var(--card); transition: .2s; }
.icon-btn:hover { color: var(--text); border-color: var(--line-2); }

/* ---------- topbar ---------- */
.topbar { position: fixed; inset: 0 0 auto 0; z-index: 50; background: rgba(10, 11, 13, .82); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid var(--line); }
.nav { height: var(--nav-h); display: flex; align-items: center; gap: 22px; }
.brand { display: flex; align-items: center; gap: 11px; flex: none; }
.brand .logo { width: 36px; height: 36px; display: block; }
.brand b { display: block; font-size: 14.5px; letter-spacing: .14em; font-weight: 800; }
.brand small { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .3em; color: var(--gold); text-transform: uppercase; margin-top: -1px; }
.nav-menu { flex: 1; display: flex; justify-content: center; }
.nav-list { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.ni { position: relative; display: flex; align-items: center; }
.nl { display: flex; align-items: center; gap: 4px; padding: 8px 11px; border-radius: 8px; color: var(--text-2); font-size: 14px; font-weight: 500; transition: color .2s, background .2s; }
.nl .chev { width: 14px; height: 14px; opacity: .6; transition: transform .25s; }
.ni:hover .nl, .ni.open .nl { color: var(--text); background: rgba(255, 255, 255, .035); }
.ni.active .nl { color: var(--gold-2); }
.ni.active .nl::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: -13px; height: 2px; background: var(--gold); border-radius: 2px; }
.dd-t { display: none; }
.dd { position: absolute; top: calc(100% + 12px); left: 50%; min-width: 250px; transform: translate(-50%, 6px); opacity: 0; visibility: hidden; pointer-events: none; background: rgba(21, 23, 28, .98); border: 1px solid var(--line-2); border-radius: 12px; padding: 7px; box-shadow: 0 24px 50px -12px rgba(0, 0, 0, .7); transition: opacity .2s, transform .2s, visibility .2s; }
.dd::before { content: ''; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.ni:hover .dd, .ni.open .dd { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); }
.ni:hover .nl .chev, .ni.open .nl .chev { transform: rotate(180deg); }
.dd a { display: block; padding: 8px 11px; border-radius: 8px; transition: background .15s; }
.dd a:hover { background: rgba(255, 255, 255, .05); }
.dd b { display: block; font-size: 13.5px; font-weight: 500; }
.dd small { display: block; font-size: 11.5px; color: var(--muted); }
.dd a:first-child b { color: var(--gold-2); }
.nav-right { display: flex; align-items: center; gap: 8px; flex: none; }
.lang { display: inline-flex; height: 38px; border: 1px solid var(--line); border-radius: 9px; padding: 3px; background: var(--card); font-family: var(--mono); font-size: 12px; }
.lang span { display: grid; place-items: center; padding: 0 9px; border-radius: 6px; color: var(--muted); transition: .2s; }
.lang span.on { background: var(--gold-soft); color: var(--gold-2); }
#userBtn.signed { border-color: var(--line-2); color: var(--text); gap: 8px; padding-left: 5px; }
.avatar { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; background: linear-gradient(135deg, #d9b873, #9b7637); color: #16130c; font-weight: 700; font-size: 12px; }
.uname { max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
.burger { display: none; }
.tape-wrap { height: var(--tape-h); border-top: 1px solid var(--line); overflow: hidden; background: rgba(13, 14, 17, .7); }
#tape { height: var(--tape-h); }

/* ---------- page enter ---------- */
#app.enter > * { animation: rise .45s cubic-bezier(.2, .7, .2, 1) both; }
#app.enter > *:nth-child(2) { animation-delay: .05s; }
#app.enter > *:nth-child(3) { animation-delay: .1s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { #app.enter > * { animation: none; } html { scroll-behavior: auto; } }

/* ---------- hero ---------- */
.hero { padding: 56px 0 28px; position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(34px, 3.8vw, 56px); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; margin: 20px 0 22px; }
.hero h1 span { display: block; }
.hero h1 .gold { background: linear-gradient(90deg, #ecd29a, #c9a45c 60%, #a8823f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 17px; color: var(--text-2); max-width: 520px; }
.btns { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.stats { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 34px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.stats b { display: block; font-family: var(--mono); font-size: 24px; font-weight: 600; }
.stats span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.hero-visual { position: relative; }
.hero-glow { position: absolute; inset: 10% -5% -10% 10%; background: radial-gradient(closest-side, rgba(201, 164, 92, .13), transparent); z-index: -1; filter: blur(20px); }
.tvwin { background: #0d0e11; border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(201, 164, 92, .06); }
.tvbar { display: flex; align-items: center; gap: 14px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--text-2); background: #111216; }
.tvdots { display: flex; gap: 6px; }
.tvdots i { width: 9px; height: 9px; border-radius: 50%; background: #2a2c33; }
.tvohlc { color: var(--muted); font-size: 11px; }
.tvohlc em { font-style: normal; color: var(--text-2); margin-right: 6px; }
.tvtag { margin-left: auto; font-family: var(--mono); font-size: 10px; letter-spacing: .15em; color: var(--gold); border: 1px solid rgba(201, 164, 92, .35); padding: 2px 7px; border-radius: 5px; }
.tvbody { padding: 6px 4px 0; }

/* ---------- SVG charts ---------- */
.ict-chart { width: 100%; height: auto; display: block; }
.ict-chart .cg { stroke: rgba(255, 255, 255, .035); stroke-width: 1; }
.ict-chart .cu { fill: #22ab94; }
.ict-chart .cd { fill: #f23645; }
.ict-chart .cuw { stroke: #22ab94; stroke-width: 1.2; }
.ict-chart .cdw { stroke: #f23645; stroke-width: 1.2; }
.ict-chart .cl { font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: .02em; }
.ict-chart .ct { font-family: var(--mono); font-size: 11.5px; fill: var(--text-2); font-weight: 600; }
.ict-chart .cx { font-family: var(--mono); font-size: 10px; fill: var(--muted); }

/* ---------- quotes ---------- */
.quotes-wrap { padding-top: 18px; }
.quotes-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 12px; flex-wrap: wrap; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(34, 171, 148, .6); animation: pulse 2s infinite; }
.kicker .live-dot + * { margin: 0; }
.quotes-head .kicker::before { display: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34, 171, 148, .55); } 70% { box-shadow: 0 0 0 8px rgba(34, 171, 148, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 171, 148, 0); } }
.quotes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.quote { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 12px; height: 168px; overflow: hidden; transition: border-color .2s, transform .2s; }
.quote:hover { border-color: rgba(201, 164, 92, .4); transform: translateY(-2px); }
.quote-w { position: absolute; inset: 22px 0 0 0; }
.quote-w { inset: 4px 0 0 0; }
.quote-hit { position: absolute; inset: 0; z-index: 2; }
.quote-lbl { display: none; position: absolute; top: 9px; left: 14px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; color: var(--gold); z-index: 1; }

/* ---------- panels ---------- */
.panels { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.15fr) minmax(0, 1.05fr); gap: 18px; padding-top: 30px; align-items: start; }
.panel-col { display: grid; gap: 18px; }
.panel { background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); min-width: 0; }
.panel-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.panel-h h3 { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 9px; letter-spacing: -.01em; }
.panel-h h3 .ic { color: var(--gold); }
.panel.warn { border-color: rgba(242, 54, 69, .2); }

.cl-thumb { position: relative; display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #0d0e11; }
.cl-thumb .ict-chart { opacity: .9; transition: opacity .2s, transform .4s; }
.cl-thumb:hover .ict-chart { opacity: 1; transform: scale(1.02); }
.cl-play { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; display: grid; place-items: center; border-radius: 50%; background: rgba(201, 164, 92, .92); color: #16130c; box-shadow: 0 8px 24px rgba(0, 0, 0, .5); transition: transform .2s; }
.cl-play .ic { width: 18px; height: 18px; fill: currentColor; margin-left: 2px; }
.cl-thumb:hover .cl-play { transform: scale(1.08); }
.cl-meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.cl-meta .ic { width: 13px; height: 13px; }
.cl-title { font-size: 18px; margin: 6px 0 12px; }
.prog { display: flex; align-items: center; gap: 12px; }
.prog-bar { flex: 1; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.prog-bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #a8823f, #e3c68a); transition: width .6s; }
.panel .prog + .muted { margin: 6px 0 16px; }
.cl-next { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.cl-next a { display: flex; align-items: center; gap: 8px; padding: 6px 8px; margin: 0 -8px; border-radius: 7px; font-size: 13.5px; color: var(--text-2); }
.cl-next a:hover { background: rgba(255, 255, 255, .04); color: var(--text); }
.cl-next .ic { width: 15px; height: 15px; color: var(--muted); }

.lib { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lib-tile { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 14px 14px 14px; border-radius: 11px; background: var(--card-3); border: 1px solid var(--line); min-height: 104px; transition: border-color .2s, transform .2s, background .2s; }
.lib-tile:hover { border-color: rgba(201, 164, 92, .45); transform: translateY(-2px); background: #1f2229; }
.lib-n { font-size: 10.5px; color: var(--gold); letter-spacing: .1em; }
.lib-tile b { font-size: 14.5px; font-weight: 600; }
.lib-s { font-size: 12px; color: var(--muted); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lib-a { position: absolute; top: 13px; right: 12px; width: 15px; height: 15px; color: var(--muted); transition: transform .2s, color .2s; }
.lib-tile:hover .lib-a { color: var(--gold); transform: translateX(3px); }
.cal { height: 430px; margin: 0 -8px -8px; }

/* sessions */
.sess-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 14px; }
.sess-clocks { display: flex; gap: 20px; text-align: right; }
.tl { position: relative; height: 52px; border-radius: 9px; background: rgba(255, 255, 255, .025); border: 1px solid var(--line); margin-bottom: 12px; overflow: hidden; }
.tl-hours span { position: absolute; top: 1px; font-family: var(--mono); font-size: 9px; color: var(--muted); transform: translateX(3px); }
.tl-hours span:last-child { transform: translateX(-18px); }
.tl-seg { position: absolute; height: 6px; border-radius: 4px; opacity: .45; }
.tl-seg.on { opacity: 1; box-shadow: 0 0 10px currentColor; }
.tl-seg.s0, .dot.s0 { background: #8b8f98; color: #8b8f98; }
.tl-seg.s1, .dot.s1 { background: var(--blue); color: var(--blue); }
.tl-seg.s2, .dot.s2 { background: var(--gold); color: var(--gold); }
.tl-now { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--text); box-shadow: 0 0 8px rgba(255, 255, 255, .6); }
.sess-row { display: grid; grid-template-columns: 10px 1fr auto auto; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; font-size: 13.5px; border: 1px solid transparent; transition: .3s; }
.sess-row + .sess-row { margin-top: 2px; }
.sess-row.on { background: var(--gold-soft); border-color: rgba(201, 164, 92, .35); }
.sess-row.on .sess-name { color: var(--gold-2); font-weight: 600; }
.sess-row.kz { grid-template-columns: 10px 1fr auto auto 64px; font-size: 13px; }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot.kzd { background: var(--gold); }
.dot.sb { background: var(--purple); }
.pill { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; padding: 2px 7px; border-radius: 5px; color: var(--muted); border: 1px solid var(--line-2); text-align: center; }
.pill-gold { color: #16130c; background: var(--gold); border-color: var(--gold); }
.sess-sub { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 18px 0 6px; }
.sess-foot { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-2); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sess-foot .ic { width: 15px; height: 15px; color: var(--gold); }
.sess-foot b { color: var(--text); font-weight: 600; }

/* ---------- section heads / grids ---------- */
.block { padding-top: 64px; }
.page { padding-top: 40px; padding-bottom: 30px; min-height: 60vh; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 700; margin: 10px 0 6px; }
.sec-head p { max-width: 620px; }
.h3 { font-size: 18px; font-weight: 600; margin-bottom: 14px; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.ccard { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: transform .25s, border-color .25s, box-shadow .25s; box-shadow: var(--shadow); }
.ccard:hover { transform: translateY(-4px); border-color: rgba(201, 164, 92, .4); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(201, 164, 92, .08); }
.ccard-chart { background: #0d0e11; border-bottom: 1px solid var(--line); padding: 4px 2px 0; }
.ccard-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ccard-top { display: flex; justify-content: space-between; align-items: center; }
.ccard h3 { font-size: 17px; font-weight: 600; }
.ccard p { color: var(--muted); font-size: 13.5px; line-height: 1.55; flex: 1; }
.ccard .link { font-size: 13.5px; margin-top: 4px; }
.lvl { font-family: var(--mono); font-size: 10.5px; letter-spacing: .05em; padding: 3px 8px; border-radius: 5px; border: 1px solid; }
.lvl1 { color: #7fd1bf; border-color: rgba(34, 171, 148, .35); background: rgba(34, 171, 148, .08); }
.lvl2 { color: #9db8f3; border-color: rgba(91, 141, 239, .35); background: rgba(91, 141, 239, .08); }
.lvl3 { color: var(--gold-2); border-color: rgba(201, 164, 92, .4); background: var(--gold-soft); }
.done-ic { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(34, 171, 148, .15); color: var(--green); }
.done-ic .ic { width: 13px; height: 13px; }

.secs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.secs.small { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sec-tile { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 20px; background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: transform .25s, border-color .25s; min-height: 220px; }
.sec-tile:hover { transform: translateY(-4px); border-color: rgba(201, 164, 92, .4); }
.sec-num { position: absolute; right: 14px; top: 8px; font-size: 44px; font-weight: 600; color: rgba(255, 255, 255, .04); letter-spacing: -.04em; }
.sec-ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); border: 1px solid rgba(201, 164, 92, .25); margin-bottom: 6px; }
.sec-tile h3 { font-size: 16px; font-weight: 600; }
.sec-tile p { font-size: 13px; color: var(--muted); line-height: 1.5; flex: 1; }
.sec-foot { display: flex; justify-content: space-between; align-items: center; color: var(--gold-2); padding-top: 10px; border-top: 1px solid var(--line); }
.sec-foot .ic { width: 15px; height: 15px; transition: transform .2s; }
.sec-tile:hover .sec-foot .ic { transform: translateX(4px); }

.path { background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden; }
.path::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; }
.path.lv1::before { background: linear-gradient(90deg, var(--green), transparent); }
.path.lv2::before { background: linear-gradient(90deg, var(--blue), transparent); }
.path.lv3::before { background: linear-gradient(90deg, var(--gold), transparent); }
.path-top { display: flex; justify-content: space-between; }
.path h3 { font-size: 24px; font-weight: 700; }
.path p { font-size: 14px; }
.path-list { list-style: none; padding: 0; margin: 8px 0 0; counter-reset: p; display: grid; gap: 2px; }
.path-list a { display: flex; align-items: center; gap: 10px; padding: 7px 8px; margin: 0 -8px; border-radius: 8px; font-size: 14px; color: var(--text-2); transition: background .15s, color .15s; }
.path-list a:hover { background: rgba(255, 255, 255, .04); color: var(--text); }
.chk { width: 20px; height: 20px; border-radius: 6px; border: 1px solid var(--line-2); display: grid; place-items: center; flex: none; }
.chk .ic { width: 12px; height: 12px; opacity: 0; }
.is-done .chk { background: rgba(34, 171, 148, .15); border-color: rgba(34, 171, 148, .5); color: var(--green); }
.is-done .chk .ic { opacity: 1; }
.is-done a { color: var(--text); }
.overall { min-width: 260px; display: grid; gap: 6px; justify-items: start; }
.overall .prog { width: 100%; }

/* ---------- section page ---------- */
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.crumbs a:hover { color: var(--gold-2); }
.crumbs span { color: var(--text-2); }
.sec-hero { display: flex; gap: 28px; align-items: flex-start; padding: 28px; border-radius: var(--r); border: 1px solid var(--line); background: linear-gradient(120deg, rgba(201, 164, 92, .08), transparent 50%), var(--card); margin-bottom: 26px; }
.sec-hero-n { font-size: 72px; line-height: .9; font-weight: 600; color: var(--gold); opacity: .85; }
.sec-hero h1 { font-size: clamp(28px, 4vw, 42px); margin: 8px 0 10px; }
.sec-hero .prog { max-width: 360px; margin-top: 18px; }
.toc-list { display: grid; gap: 12px; }
.toc-item { display: grid; grid-template-columns: 52px 220px 1fr 24px; gap: 20px; align-items: center; padding: 14px 18px 14px 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); transition: border-color .2s, transform .2s, background .2s; }
.toc-item:hover { border-color: rgba(201, 164, 92, .4); transform: translateX(4px); background: var(--card-2); }
.toc-n { font-size: 15px; color: var(--gold); text-align: center; }
.toc-chart { border-radius: 8px; overflow: hidden; background: #0d0e11; border: 1px solid var(--line); }
.toc-txt h3 { font-size: 17px; margin: 8px 0 4px; }
.toc-txt p { font-size: 13.5px; color: var(--muted); }
.toc-txt .ccard-top { justify-content: flex-start; gap: 10px; }
.toc-a { color: var(--muted); }
.toc-item:hover .toc-a { color: var(--gold); }

/* ---------- concept page ---------- */
.concept { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 36px; align-items: start; }
.toc { position: sticky; top: calc(var(--nav-h) + var(--tape-h) + 24px); background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; max-height: calc(100vh - var(--nav-h) - var(--tape-h) - 48px); overflow: auto; }
.toc-sec { display: grid; gap: 2px; padding: 4px 6px 14px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.toc-sec b { font-size: 15px; }
.toc-lbl { padding: 4px 6px 6px; text-transform: uppercase; letter-spacing: .12em; font-size: 10.5px; }
.toc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.toc li a { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 4px; padding: 8px 8px; border-radius: 8px; font-size: 13.5px; color: var(--text-2); border-left: 2px solid transparent; transition: .15s; }
.toc li a .mono { font-size: 11px; color: var(--muted); }
.toc li a:hover { background: rgba(255, 255, 255, .04); color: var(--text); }
.toc li a.on { background: var(--gold-soft); color: var(--gold-2); border-left-color: var(--gold); }
.toc li a .ic { width: 14px; height: 14px; color: var(--green); }
.c-head { margin-bottom: 22px; }
.c-badges { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.c-head h1 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; margin: 14px 0 12px; letter-spacing: -.03em; }
.c-head .lead { max-width: 780px; }
.chart-card { background: #0d0e11; border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.chart-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: #111216; font-size: 13px; flex-wrap: wrap; }
.chart-bar > span:first-child { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.chart-bar .ic { color: var(--gold); }
.chart-body { padding: 10px 6px 4px; }
.chart-foot { display: flex; gap: 18px; align-items: center; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.chart-foot .link { margin-left: auto; }
.leg { display: inline-flex; align-items: center; gap: 6px; }
.leg i { width: 10px; height: 10px; border-radius: 2px; }
.lg-g { background: var(--green); } .lg-r { background: var(--red); } .lg-y { background: var(--gold); }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.info { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; }
.info.wide { grid-column: 1 / -1; }
.info h3 { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.info p { color: var(--text-2); font-size: 15px; line-height: 1.7; }
.info-n { font-family: var(--mono); font-size: 11px; color: var(--gold); border: 1px solid rgba(201, 164, 92, .35); border-radius: 5px; padding: 1px 6px; }
.info.tip { background: linear-gradient(120deg, rgba(201, 164, 92, .09), transparent 60%), var(--card); border-color: rgba(201, 164, 92, .25); }
.info.tip h3 { color: var(--gold-2); }
.info.tip .ic { color: var(--gold); }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 10px; }
.steps li { counter-increment: s; position: relative; padding-left: 40px; color: var(--text-2); line-height: 1.6; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; font-family: var(--mono); font-size: 12px; color: var(--gold-2); background: var(--gold-soft); border: 1px solid rgba(201, 164, 92, .3); }
.related { margin-top: 30px; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 99px; background: var(--card-2); border: 1px solid var(--line-2); font-size: 13.5px; transition: .2s; }
.chip .ic { width: 14px; height: 14px; color: var(--muted); }
.chip:hover { border-color: rgba(201, 164, 92, .5); color: var(--gold-2); }
.chip:hover .ic { color: var(--gold); }
.c-actions { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.pn { display: flex; gap: 10px; flex-wrap: wrap; }
.pn .btn { height: auto; min-height: 52px; padding: 8px 16px; text-align: left; }
.pn .btn span { display: grid; }
.pn small { font-size: 11px; color: var(--muted); font-weight: 500; }

/* concepts archive */
.all-c { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.all-col { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
.all-h { display: flex; gap: 8px; font-weight: 600; font-size: 14px; padding: 4px 6px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.all-i { display: flex; justify-content: space-between; align-items: center; padding: 6px; border-radius: 7px; font-size: 13.5px; color: var(--text-2); }
.all-i:hover { background: rgba(255, 255, 255, .04); color: var(--gold-2); }
.lvl-dot { width: 6px; height: 6px; border-radius: 50%; }
.lvl-dot.l1 { background: var(--green); } .lvl-dot.l2 { background: var(--blue); } .lvl-dot.l3 { background: var(--gold); }

/* glossary */
.gl-tools { position: sticky; top: calc(var(--nav-h) + var(--tape-h)); z-index: 5; background: rgba(10, 11, 13, .92); backdrop-filter: blur(10px); padding: 12px 0; margin-bottom: 14px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.field-ic { position: relative; display: flex; align-items: center; flex: 0 1 340px; }
.field-ic .ic { position: absolute; left: 12px; color: var(--muted); width: 16px; height: 16px; }
.field-ic input { width: 100%; height: 40px; padding: 0 12px 0 36px; }
input, select { font: inherit; font-size: 14px; color: var(--text); background: var(--card-2); border: 1px solid var(--line-2); border-radius: 9px; outline: none; transition: border-color .2s, box-shadow .2s; }
input:focus, select:focus { border-color: rgba(201, 164, 92, .6); box-shadow: 0 0 0 3px rgba(201, 164, 92, .12); }
.az { display: flex; gap: 4px; flex-wrap: wrap; }
.az a { font-family: var(--mono); font-size: 12px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 6px; color: var(--muted); border: 1px solid var(--line); }
.az a:hover { color: var(--gold-2); border-color: rgba(201, 164, 92, .4); }
.gl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gl-i { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; display: grid; gap: 6px; align-content: start; transition: border-color .3s, box-shadow .3s; }
.gl-i:hover { border-color: var(--line-2); }
.gl-i.flash { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 164, 92, .15); }
.gl-t { font-weight: 600; font-size: 15.5px; color: var(--gold-2); }
.gl-i p { color: var(--text-2); font-size: 14px; }

/* market terminal */
.term { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 16px; }
.term-side { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; max-height: 760px; overflow: auto; }
.term-side .field-ic { margin-bottom: 8px; }
.term-gh { font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; color: var(--gold); text-transform: uppercase; padding: 12px 8px 6px; }
.term-s { display: grid; padding: 8px 10px; border-radius: 8px; border-left: 2px solid transparent; transition: .15s; }
.term-s b { font-size: 13.5px; font-weight: 600; }
.term-s span { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.term-s:hover { background: rgba(255, 255, 255, .04); }
.term-s.on { background: var(--gold-soft); border-left-color: var(--gold); }
.term-s.on b { color: var(--gold-2); }
.term-main { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.term-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 12px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.term-info { flex: 1; min-width: 260px; min-height: 120px; }
.tf { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: var(--card-2); }
.tf button { font-family: var(--mono); font-size: 12px; padding: 6px 10px; border-radius: 6px; color: var(--muted); transition: .15s; }
.tf button:hover { color: var(--text); }
.tf button.on { background: var(--gold-soft); color: var(--gold-2); }
.term-chart { height: 620px; }
.quotes-tbl { height: 560px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 6px; }

/* tools */
.tools { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 18px; align-items: start; }
.tool-nav { display: grid; gap: 8px; }
.tool-nav a { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); transition: .2s; }
.tool-nav a .ic { color: var(--muted); margin-top: 2px; }
.tool-nav a b { display: block; font-size: 14px; font-weight: 600; }
.tool-nav a small { display: block; font-size: 12px; color: var(--muted); line-height: 1.45; }
.tool-nav a:hover { border-color: var(--line-2); }
.tool-nav a.on { border-color: rgba(201, 164, 92, .45); background: linear-gradient(120deg, var(--gold-soft), transparent 70%), var(--card); }
.tool-nav a.on .ic, .tool-nav a.on b { color: var(--gold-2); }
.tool-panel { padding: 24px; }
.tool-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.fld { display: grid; gap: 6px; }
.fld span { font-size: 12.5px; color: var(--muted); }
.fld input, .fld select { height: 44px; padding: 0 12px; font-family: var(--mono); }
.tool-out { margin: 22px 0 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.kv { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 10px; background: var(--card-3); border: 1px solid var(--line); }
.kv span { font-size: 13px; color: var(--muted); }
.kv b { font-size: 16px; font-weight: 600; }
.kv.hl { border-color: rgba(201, 164, 92, .45); background: linear-gradient(120deg, var(--gold-soft), transparent), var(--card-3); }
.kv.hl b { color: var(--gold-2); }
.kv.tg b { color: var(--green); }
.kv.neg b { color: var(--red); }
.rr-vis { grid-column: 1 / -1; display: flex; height: 10px; border-radius: 6px; overflow: hidden; gap: 2px; }
.rr-r { background: var(--red); opacity: .8; }
.rr-g { background: var(--green); opacity: .8; }
.tool-panel .sess { margin-top: 4px; }

/* community */
.res { display: grid; gap: 8px; }
.res-i { display: grid; gap: 2px; padding: 12px 14px; border-radius: 10px; background: var(--card-3); border: 1px solid var(--line); transition: .2s; }
.res-i b { font-size: 14px; display: flex; align-items: center; gap: 8px; }
.res-i b .ic { width: 14px; height: 14px; color: var(--muted); }
.res-i span { font-size: 13px; color: var(--muted); }
.res-i:hover { border-color: rgba(201, 164, 92, .4); }
.nf { text-align: center; display: grid; justify-items: center; gap: 16px; padding-top: 100px; }
.nf .kicker::before { display: none; }

/* modals */
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(5, 6, 8, .72); backdrop-filter: blur(6px); display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; animation: fade .18s; }
.modal[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.search-box, .profile-box { width: 100%; max-width: 640px; background: #15171c; border: 1px solid var(--line-2); border-radius: 16px; box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .9); overflow: hidden; animation: rise .22s; }
.search-in { display: flex; align-items: center; gap: 12px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.search-in .ic { color: var(--gold); }
.search-in input { flex: 1; height: 58px; border: 0; background: none; box-shadow: none; font-size: 16px; padding: 0; }
.search-res { max-height: 52vh; overflow: auto; padding: 8px; }
.sr { display: grid; grid-template-columns: 70px 1fr; column-gap: 12px; padding: 10px 12px; border-radius: 10px; align-items: baseline; }
.sr.on, .sr:hover { background: rgba(201, 164, 92, .1); }
.sr-ty { grid-row: span 2; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; color: var(--gold); text-transform: uppercase; padding-top: 3px; }
.sr b { font-size: 14.5px; font-weight: 600; }
.sr-sub { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-empty { padding: 24px; text-align: center; }
.search-foot { padding: 10px 16px; border-top: 1px solid var(--line); }
.profile-box { max-width: 420px; padding: 24px; display: grid; gap: 14px; }
.profile-box h3 { font-size: 19px; }
.profile-box .fld input { font-family: var(--font); }
.profile-act { display: grid; grid-template-columns: auto 1fr auto auto; gap: 8px; align-items: center; }

/* footer */
.footer { margin-top: 90px; border-top: 1px solid var(--line); background: #08090b; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-top: 48px; padding-bottom: 36px; }
.foot-grid p { margin-top: 12px; max-width: 380px; }
.foot-grid h4 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-family: var(--mono); margin-bottom: 14px; font-weight: 500; }
.foot-grid > div > a:not(.brand) { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text-2); padding: 4px 0; }
.foot-grid > div > a:not(.brand):hover { color: var(--gold-2); }
.foot-grid .ic { width: 13px; height: 13px; }
.foot-bot { display: flex; justify-content: space-between; padding-top: 18px; padding-bottom: 24px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 1240px) {
  .nav { gap: 14px; }
  .nl { padding: 8px 8px; font-size: 13.5px; }
  .icon-btn kbd { display: none; }
  .quotes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .panels { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .panels > .panel-col { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
  .secs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .all-c { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1080px) {
  .burger { display: inline-flex; }
  .nav-menu { position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0; background: rgba(10, 11, 13, .98); display: block; padding: 14px 20px 40px; overflow: auto; transform: translateX(100%); transition: transform .3s cubic-bezier(.2, .7, .2, 1); z-index: 60; }
  body.nav-open .nav-menu { transform: none; }
  body.nav-open { overflow: hidden; }
  .nav-list { flex-direction: column; gap: 0; }
  .ni { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .nl { flex: 1; padding: 15px 4px; font-size: 16px; }
  .nl .chev { display: none; }
  .ni.active .nl::after { display: none; }
  .dd-t { display: grid; place-items: center; width: 44px; height: 44px; color: var(--muted); }
  .dd-t .ic { transition: transform .25s; }
  .ni.open .dd-t .ic { transform: rotate(180deg); }
  .dd { position: static; transform: none; min-width: 0; width: 100%; opacity: 1; visibility: visible; pointer-events: auto; display: none; box-shadow: none; background: var(--card); margin-bottom: 12px; }
  .ni:hover .dd { transform: none; }
  .ni.open .dd { display: block; transform: none; }
  .ni:not(.open):hover .dd { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .concept { grid-template-columns: 1fr; }
  .toc { position: static; max-height: none; }
  .toc ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .term, .tools { grid-template-columns: 1fr; }
  .term-side { max-height: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 10px; }
  .term-side .field-ic { grid-column: 1 / -1; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .toc-item { grid-template-columns: 40px 160px 1fr; }
  .toc-a { display: none; }
}
@media (max-width: 760px) {
  :root { --nav-h: 60px; --tape-h: 76px; }
  .wrap { padding: 0 16px; }
  body { font-size: 14.5px; }
  .brand small { display: none; }
  .brand b { font-size: 13px; letter-spacing: .1em; }
  #userBtn { padding: 0 10px; }
  .uname { display: none; }
  .icon-btn { padding: 0 9px; }
  .lang span { padding: 0 7px; }
  .hero { padding-top: 32px; }
  .stats { grid-template-columns: repeat(2, auto); gap: 18px 34px; }
  .tvohlc { display: none; }
  .quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .panels { grid-template-columns: 1fr; }
  .panels > .panel-col { grid-template-columns: 1fr; }
  .g2, .g3, .g4, .gl, .info-grid { grid-template-columns: 1fr; }
  .secs, .secs.small { grid-template-columns: 1fr; }
  .sec-tile { min-height: 0; }
  .all-c { grid-template-columns: 1fr; }
  .toc ul { grid-template-columns: 1fr; }
  .toc-item { grid-template-columns: 1fr; gap: 10px; padding: 14px; }
  .toc-n { text-align: left; }
  .sec-hero { flex-direction: column; gap: 10px; padding: 22px; }
  .sec-hero-n { font-size: 48px; }
  .term-side { grid-template-columns: 1fr; }
  .term-chart { height: 460px; }
  .sess-row.kz { grid-template-columns: 10px 1fr auto; }
  .sess-row.kz > .dim, .sess-row.kz > span:last-child:empty { display: none; }
  .foot-grid { grid-template-columns: 1fr; gap: 26px; }
  .foot-bot { flex-direction: column; gap: 6px; }
  .c-actions { flex-direction: column; align-items: stretch; }
  .pn { flex-direction: column; }
  .pn .btn { justify-content: space-between; }
  .cal { height: 400px; }
  .profile-act { grid-template-columns: 1fr 1fr; }
  .profile-act > span { display: none; }
  .profile-act #pOut2 { grid-column: 1 / -1; justify-self: start; }
  .sr { grid-template-columns: 1fr; }
  .sr-ty { grid-row: auto; padding: 0; }
}
@media (max-width: 380px) {
  .brand > span:last-child { display: none; }
}

/* TradingView embeds: match iframe color-scheme so transparent widgets don't get an opaque white canvas */
.tradingview-widget-container iframe { color-scheme: normal; }
@media (min-width: 1081px) { .hero h1 span { white-space: nowrap; } }
@media (max-width: 1080px) { .nav-menu { visibility: hidden; transition: transform .3s cubic-bezier(.2, .7, .2, 1), visibility 0s .3s; } body.nav-open .nav-menu { visibility: visible; transition-delay: 0s; } }
/* concept page references */
.refs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.refs-lbl { margin: 16px 0 8px; text-transform: uppercase; letter-spacing: .12em; font-size: 10.5px; }
@media (max-width: 760px) { .refs { grid-template-columns: 1fr; } }
/* ticker tape: the embed iframe is 84px tall with its content top-aligned; show both rows (price + change) fully */
.tape-wrap { position: relative; }
#tape { height: var(--tape-h); overflow: hidden; }
#tape iframe { margin-top: -2px; }
/* dropdowns must sit above the ticker tape iframe (which would otherwise steal hover) */
.nav { position: relative; z-index: 3; }
.tape-wrap { z-index: 1; }
@media (min-width: 1081px) {
  .dd { z-index: 10; transition: opacity .2s, transform .2s, visibility 0s .25s; }
  .ni:hover .dd, .ni.open .dd { transition: opacity .2s, transform .2s, visibility 0s 0s; }
  .ni:not(:hover):not(.open) .dd { transition-delay: .12s, .12s, .25s; opacity: 0; }
}
/* Market terminal chart: tall enough that TradingView's in-chart dialogs (e.g. the indicator-limit popup,
   ~760px) fit completely, so their close (X) button is never clipped. Grows with the viewport up to 920px. */
.term-chart { height: clamp(800px, calc(100vh - var(--nav-h) - var(--tape-h) - 24px), 920px); scroll-margin-top: calc(var(--nav-h) + var(--tape-h) + 12px); }
@media (max-width: 760px) { .term-chart { height: 680px; } }
/* hero chart bar: note text instead of prices */
.tvohlc { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

/* ---------- accounts / auth ---------- */
.auth-box { position: relative; max-width: 440px; gap: 12px; }
.auth-page { margin: 20px auto; max-width: 440px; display: grid; gap: 14px; }
.au-close { position: absolute; top: 14px; right: 14px; height: 32px; padding: 0 6px; }
.btn-google { background: #fff; color: #1f1f1f; border: 1px solid #dadce0; font-weight: 600; }
.btn-google:hover { background: #f4f5f6; transform: translateY(-1px); }
.au-or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; }
.au-or::before, .au-or::after { content: ''; flex: 1; height: 1px; background: var(--line-2); }
.au-msg { font-size: 13.5px; padding: 10px 12px; border-radius: 9px; line-height: 1.5; }
.au-msg.err { background: rgba(242, 54, 69, .1); border: 1px solid rgba(242, 54, 69, .35); color: #ff9aa2; }
.au-msg.ok { background: rgba(34, 171, 148, .1); border: 1px solid rgba(34, 171, 148, .35); color: #7fd1bf; }
.au-msg .btn-text { color: inherit; }
.au-link { justify-self: end; margin-top: -6px; }
.au-switch { text-align: center; }
.au-switch .btn-text { color: var(--gold-2); }
.fld em { font-style: normal; font-size: 11.5px; }
.chk-row { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--text-2); line-height: 1.5; cursor: pointer; }
.chk-row input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--gold); flex: none; }
.btn.loading { opacity: .6; pointer-events: none; }
.btn-danger { background: rgba(242, 54, 69, .12); color: #ff8a93; border: 1px solid rgba(242, 54, 69, .45); }
.btn-danger:hover { background: rgba(242, 54, 69, .2); }
.acc-form { display: flex; gap: 10px; align-items: flex-end; margin-bottom: 14px; }
.acc-form .fld { flex: 1; }
.panel .kv + .kv { margin-top: 8px; }
.acc-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0 8px; }
#syncStatus { display: inline-flex; align-items: center; gap: 6px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 200; background: #1c1f25; border: 1px solid var(--line-2); color: var(--text); padding: 12px 18px; border-radius: 10px; font-size: 14px; box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .8); transition: opacity .25s, transform .25s; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.ok { border-color: rgba(34, 171, 148, .5); }
.toast.err { border-color: rgba(242, 54, 69, .5); }
.prose { max-width: 820px; }
.prose h1 { font-size: clamp(28px, 4vw, 40px); margin: 12px 0 10px; }
.prose h2 { font-size: 18px; margin: 28px 0 10px; color: var(--gold-2); }
.prose p, .prose li { color: var(--text-2); line-height: 1.75; }
.prose ul { padding-left: 20px; display: grid; gap: 6px; }
.prose .note { font-size: 13px; color: var(--muted); padding: 10px 14px; border: 1px dashed var(--line-2); border-radius: 9px; }
@media (max-width: 760px) { .acc-form { flex-direction: column; align-items: stretch; } }
