/* 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; } }
/* Turnstile bot check (interaction-only: usually invisible) */
.au-captcha { display: flex; justify-content: center; }
.au-captcha:empty { display: none; }

/* ---------- install-as-app bar (PWA) ---------- */
.install-bar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 150; display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; background: #17191e; border: 1px solid rgba(201, 164, 92, .35); border-radius: 14px; box-shadow: 0 24px 50px -12px rgba(0, 0, 0, .85); animation: rise .3s; max-width: 520px; margin: 0 auto; }
.install-bar[hidden] { display: none; }
.install-bar img { border-radius: 10px; flex: none; }
.install-txt { display: grid; gap: 2px; flex: 1; min-width: 0; }
.install-txt b { font-size: 14px; }
.install-txt span { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.install-bar .icon-btn { height: 34px; padding: 0 6px; flex: none; }
/* installed app: respect the iPhone home indicator */
@media (display-mode: standalone) { body { padding-bottom: env(safe-area-inset-bottom, 0px); } }

/* ---------- header fit: desktop nav never wraps; phones show the hamburger ---------- */
.nl { white-space: nowrap; }
.ub-ic { display: none; }
.ub-ic .ic { width: 18px; height: 18px; }
.ni-lang { display: none; }
.lang-m button { display: grid; place-items: center; padding: 0 14px; border-radius: 6px; color: var(--muted); font-family: var(--mono); font-size: 13px; }
.lang-m button.on { background: var(--gold-soft); color: var(--gold-2); }
@media (min-width: 1081px) and (max-width: 1240px) {
  .nav { gap: 10px; }
  .brand small { display: none; }
  .nl { padding: 8px 7px; font-size: 13px; }
}
@media (max-width: 1080px) {
  .ni-lang { display: flex; align-items: center; justify-content: space-between; padding: 8px 0 4px; }
  .ni-lang .nl { flex: none; display: flex; align-items: center; gap: 8px; }
}
@media (max-width: 600px) {
  .nav { gap: 8px; }
  .brand { gap: 8px; min-width: 0; }
  .brand .logo { width: 32px; height: 32px; }
  .nav-right { gap: 6px; }
  #langT { display: none; }                         /* moved into the hamburger menu */
  #userBtn:not(.signed) { width: 38px; padding: 0; } /* icon-only sign-in */
  #userBtn:not(.signed) .ub-ic { display: grid; place-items: center; }
  #userBtn:not(.signed) .ub-tx { display: none; }
  #userBtn.signed { padding: 0 4px; }
  .icon-btn, .burger { width: 38px; padding: 0; justify-content: center; }
}
@media (max-width: 340px) { .brand b { font-size: 12px; letter-spacing: .06em; } }
/* The topbar's backdrop-filter makes it the containing block for the fixed mobile menu,
   so "bottom: 0" would stop at the header. Give the panel an explicit viewport height. */
@media (max-width: 1080px) {
  .nav-menu { bottom: auto; height: calc(100vh - var(--nav-h)); height: calc(100dvh - var(--nav-h)); }
}

/* ---------- iPhone install guide (bottom sheet) ---------- */
.ig-modal { align-items: flex-end; padding: 0; }
.ig-sheet { width: 100%; max-width: 520px; margin: 0 auto; background: #15171c; border: 1px solid var(--line-2); border-bottom: 0; border-radius: 18px 18px 0 0; padding: 22px 20px calc(20px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 16px; animation: igUp .28s cubic-bezier(.2, .7, .2, 1); }
@keyframes igUp { from { transform: translateY(40px); opacity: 0; } }
.ig-head { display: flex; gap: 14px; align-items: center; }
.ig-head img { border-radius: 12px; flex: none; }
.ig-head h3 { font-size: 18px; }
.ig-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ig-steps li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; line-height: 1.55; color: var(--text-2); }
.ig-steps b { color: var(--text); }
.ig-n { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-2); border: 1px solid rgba(201, 164, 92, .35); font-family: var(--mono); font-size: 12.5px; }
.ig-ic { width: 20px; height: 20px; vertical-align: -5px; color: #4f8ef7; margin: 0 2px; }
.ig-note { line-height: 1.5; }
@media (min-width: 761px) { .ig-modal { align-items: center; padding: 16px; } .ig-sheet { border-radius: 18px; border-bottom: 1px solid var(--line-2); } }

/* ---------- trade journal ---------- */
.j-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.j-actions .ic { width: 15px; height: 15px; }
.j-signin { text-align: center; display: grid; justify-items: center; gap: 12px; padding: 40px 20px; }
.j-big-ic { width: 40px; height: 40px; color: var(--gold); }
.j-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.j-filters select { height: 38px; padding: 0 10px; }
.j-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.j-kv { display: grid; gap: 4px; align-content: start; }
.j-kv b { font-size: 20px; }
.j-kv small { font-size: 11.5px; }
.j-eq { margin-bottom: 16px; }
.j-equity { width: 100%; height: 170px; display: block; }
.j-eq-lbl { font-family: var(--mono); font-size: 12px; fill: var(--gold-2); }
.j-eq-axis { font-family: var(--mono); font-size: 10px; fill: var(--muted); }
.j-empty-chart { height: 120px; display: grid; place-items: center; border: 1px dashed var(--line-2); border-radius: 10px; }
.j-groups { margin-bottom: 16px; }
.j-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.j-table th { text-align: left; font-weight: 500; color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.j-table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.j-trades tbody tr { cursor: pointer; transition: background .15s; }
.j-trades tbody tr:hover, .j-trades tbody tr:focus { background: rgba(255, 255, 255, .03); outline: none; }
.j-edit-cell { width: 44px; text-align: right; }
.j-edit-cell .icon-btn { height: 32px; padding: 0 7px; }
.j-badge { font-family: var(--mono); font-size: 10.5px; padding: 2px 7px; border-radius: 5px; border: 1px solid var(--line-2); color: var(--muted); }
.j-win { color: var(--green); border-color: rgba(34, 171, 148, .4); background: rgba(34, 171, 148, .08); }
.j-loss { color: #ff8a93; border-color: rgba(242, 54, 69, .4); background: rgba(242, 54, 69, .08); }
.j-be { color: var(--text-2); }
.j-open { color: var(--gold-2); border-color: rgba(201, 164, 92, .4); }
.j-dir { font-family: var(--mono); font-size: 11.5px; }
.j-dir.j-long { color: var(--green); }
.j-dir.j-short { color: #ff8a93; }
.j-form { max-width: 560px; position: relative; gap: 12px; max-height: calc(100vh - 40px); overflow: auto; }
.j-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.j-form .fld input, .j-form .fld select, .j-form textarea { height: 42px; padding: 0 12px; font-family: var(--font); width: 100%; }
.j-form textarea { height: auto; padding: 10px 12px; resize: vertical; font-size: 14px; }
.j-form .fld em { font-style: normal; font-size: 11px; }
.j-form .j-sym input { margin-top: 6px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 3px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--card-2); }
.seg button { height: 34px; border-radius: 6px; color: var(--muted); font-weight: 600; font-size: 13.5px; }
.seg button.on[data-dir="long"] { background: rgba(34, 171, 148, .15); color: var(--green); }
.seg button.on[data-dir="short"] { background: rgba(242, 54, 69, .14); color: #ff8a93; }
.j-preview { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--muted); padding: 10px 12px; border-radius: 9px; background: var(--card-3); border: 1px solid var(--line); }
.j-form-act { display: grid; grid-template-columns: auto 1fr auto auto; gap: 8px; align-items: center; }
.j-form-act > span { display: block; }
.tool-nav a.tool-journal { border-color: rgba(201, 164, 92, .3); }
.tool-nav a.tool-journal .ic, .tool-nav a.tool-journal b { color: var(--gold-2); }
@media (max-width: 1080px) { .j-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .j-grid { grid-template-columns: 1fr 1fr; }
  .j-form .j-notes, .j-form .j-sym { grid-column: 1 / -1; }
  /* trades table becomes cards */
  .j-trades thead { display: none; }
  .j-trades, .j-trades tbody, .j-trades tr, .j-trades td { display: block; width: 100%; }
  .j-trades tr { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; position: relative; }
  .j-trades td { border: 0; padding: 3px 0; display: flex; justify-content: space-between; gap: 10px; }
  .j-trades td::before { content: attr(data-l); color: var(--muted); font-size: 12px; }
  .j-trades td.j-edit-cell { position: absolute; top: 8px; right: 8px; width: auto; display: block; padding: 0; }
  .j-trades td.j-edit-cell::before { content: none; }
  .j-group th:nth-child(4), .j-group td:nth-child(4) { display: none; }
  .j-form-act { grid-template-columns: 1fr 1fr; }
  .j-form-act > :first-child { grid-column: 1 / -1; justify-self: start; }
}
/* equity curve: stretched shapes + crisp HTML labels */
.j-eq-wrap { position: relative; padding: 4px 64px 4px 34px; }
.j-eq-plot { position: relative; height: 190px; }
.j-eq-plot .j-equity { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.j-eq-zero, .j-eq-last { position: absolute; transform: translateY(-50%); font-family: var(--mono); font-size: 11.5px; white-space: nowrap; pointer-events: none; }
.j-eq-zero { right: calc(100% + 8px); color: var(--muted); }
.j-eq-last { left: calc(100% + 8px); font-weight: 600; font-size: 12.5px; }
@media (max-width: 760px) { .j-eq-wrap { padding: 4px 56px 4px 30px; } .j-eq-plot { height: 150px; } }

/* ---------- quizzes ---------- */
.qz-lesson { margin-top: 26px; border-color: rgba(201, 164, 92, .28); }
.qz-lesson > p { margin-bottom: 14px; }
.qz-q { border: 0; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.qz-q legend { font-weight: 600; font-size: 15px; margin-bottom: 8px; display: flex; gap: 10px; align-items: flex-start; line-height: 1.45; }
.qz-n { flex: none; width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; font-size: 12px; color: var(--gold-2); background: var(--gold-soft); border: 1px solid rgba(201, 164, 92, .3); }
.qz-opt { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--card-2); cursor: pointer; font-size: 14px; line-height: 1.45; color: var(--text-2); transition: border-color .15s, background .15s; text-align: left; width: 100%; }
.qz-opt:hover { border-color: rgba(201, 164, 92, .45); }
.qz-opt input { margin-top: 3px; accent-color: var(--gold); flex: none; }
.qz-opt:has(input:checked) { border-color: rgba(201, 164, 92, .6); background: var(--gold-soft); color: var(--text); }
.qz-opt.ok { border-color: rgba(34, 171, 148, .6); background: rgba(34, 171, 148, .1); color: var(--text); }
.qz-opt.bad { border-color: rgba(242, 54, 69, .55); background: rgba(242, 54, 69, .08); }
.qz-act { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.qz-lesson .au-msg { margin-top: 4px; }
.qz-level { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.qz-level > div { display: grid; gap: 2px; }
.qz-level b { font-size: 14px; }
.qz-level .btn { grid-column: 1 / -1; }
.qz-page .panel { max-width: 760px; margin: 0 auto; }
.qz-intro, .qz-result { text-align: center; display: grid; justify-items: center; gap: 14px; padding: 36px 22px; }
.qz-intro h1 { font-size: clamp(24px, 4vw, 34px); }
.qz-run { display: grid; gap: 16px; padding: 24px; }
.qz-top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); }
.qz-qtext { font-size: clamp(18px, 2.4vw, 22px); line-height: 1.4; }
.qz-opts { display: grid; gap: 10px; }
.qz-btn { align-items: center; }
.qz-btn:disabled { cursor: default; }
.qz-letter { flex: none; width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; font-size: 12px; border: 1px solid var(--line-2); color: var(--muted); }
.qz-btn.ok .qz-letter { border-color: var(--green); color: var(--green); }
.qz-btn.bad .qz-letter { border-color: var(--red); color: #ff8a93; }
.qz-feedback { padding: 12px 14px; border-radius: 10px; font-size: 14px; }
.qz-feedback.ok { background: rgba(34, 171, 148, .1); border: 1px solid rgba(34, 171, 148, .4); color: #7fd1bf; }
.qz-feedback.bad { background: rgba(242, 54, 69, .08); border: 1px solid rgba(242, 54, 69, .4); color: #ff9aa2; }
.qz-feedback .link { color: var(--gold-2); }
.qz-score { font-size: clamp(48px, 9vw, 72px); font-weight: 600; line-height: 1; }
.qz-review { display: grid; gap: 8px; justify-items: center; }
.qz-review .chips { justify-content: center; }

/* ---------- quiz: much clearer right / wrong ---------- */
.qz-opt { position: relative; flex-wrap: wrap; }
.qz-opt.ok { border: 2px solid #22ab94; background: rgba(34, 171, 148, .16); color: var(--text); box-shadow: 0 0 0 3px rgba(34, 171, 148, .12); }
.qz-opt.bad { border: 2px solid #f23645; background: rgba(242, 54, 69, .14); color: var(--text); box-shadow: 0 0 0 3px rgba(242, 54, 69, .1); animation: qzShake .35s; }
.qz-opt.dim { opacity: .45; }
.qz-opt.ok.mine { animation: qzPop .35s; }
.qz-tag { margin-left: auto; align-self: center; font-family: var(--mono); font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.qz-tag.ok { background: #22ab94; color: #06231e; }
.qz-tag.bad { background: #f23645; color: #fff; }
.qz-btn.ok .qz-letter { background: #22ab94; border-color: #22ab94; color: #06231e; font-weight: 700; }
.qz-btn.bad .qz-letter { background: #f23645; border-color: #f23645; color: #fff; font-weight: 700; }
.qz-otext { flex: 1; min-width: 0; }
.qz-qres { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-size: 14px; line-height: 1.45; }
.qz-qres.ok { background: rgba(34, 171, 148, .12); color: #7fe0cb; border: 1px solid rgba(34, 171, 148, .45); }
.qz-qres.bad { background: rgba(242, 54, 69, .1); color: #ffb3b9; border: 1px solid rgba(242, 54, 69, .45); }
.qz-qres b, .qz-feedback b { color: var(--text); }
.qz-fb-ic { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 15px; }
.qz-qres.ok .qz-fb-ic, .qz-feedback.ok .qz-fb-ic { background: #22ab94; color: #06231e; }
.qz-qres.bad .qz-fb-ic, .qz-feedback.bad .qz-fb-ic { background: #f23645; color: #fff; }
.qz-feedback { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.5; }
.qz-feedback.ok { animation: qzPop .35s; }
.qz-feedback.bad { animation: qzShake .35s; }
@keyframes qzShake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
@keyframes qzPop { 0% { transform: scale(.97); } 60% { transform: scale(1.02); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .qz-opt.bad, .qz-opt.ok.mine, .qz-feedback { animation: none; } }
@media (max-width: 480px) { .qz-tag { margin-left: 36px; margin-top: 6px; } }
/* lesson-quiz options: keep text beside the radio; result colours beat the "selected" gold */
.qz-opt > span:not(.qz-tag):not(.qz-letter) { flex: 1; min-width: 0; }
.qz-opt.ok, .qz-opt.ok:has(input:checked) { border: 2px solid #22ab94; background: rgba(34, 171, 148, .16); color: var(--text); }
.qz-opt.bad, .qz-opt.bad:has(input:checked) { border: 2px solid #f23645; background: rgba(242, 54, 69, .14); color: var(--text); }
.qz-qres > span:last-child { flex: 1; min-width: 0; }

/* ---------- Kill Zone notifications ---------- */
.panel-links { display: inline-flex; gap: 14px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.kzn-link { color: var(--gold); }
.kzn-link .ic { width: 14px; height: 14px; }
.kzn { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.kzn-h { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.kzn-h h3 { font-size: 17px; margin: 0 0 4px; }
.kzn-bell { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: rgba(201, 164, 92, .12); border: 1px solid rgba(201, 164, 92, .35); color: var(--gold); }
.kzn-bell .ic { width: 20px; height: 20px; }
.kzn-status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; padding: 6px 12px; border-radius: 99px; background: var(--card-2); border: 1px solid var(--line-2); color: var(--text-2); }
.kzn-status i { width: 8px; height: 8px; border-radius: 50%; background: #6b7280; }
.kzn-status.on { color: #7fe0cb; border-color: rgba(34, 171, 148, .45); background: rgba(34, 171, 148, .1); }
.kzn-status.on i { background: #22ab94; box-shadow: 0 0 0 4px rgba(34, 171, 148, .2); }
.kzn-lbl { font-size: 13.5px; font-weight: 600; color: var(--text); margin: 18px 0 8px; }
.kzn-zones { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; }
.kzn-z, .kzn-l { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--card-2); cursor: pointer; font-size: 14px; transition: border-color .15s, background .15s; }
.kzn-z span { flex: 1; min-width: 0; }
.kzn-z b { font-size: 13px; color: var(--text-2); font-weight: 500; }
.kzn-z input, .kzn-l input { width: 17px; height: 17px; accent-color: var(--gold); flex: none; margin: 0; }
.kzn-z:has(input:checked), .kzn-l:has(input:checked) { border-color: rgba(201, 164, 92, .55); background: rgba(201, 164, 92, .08); }
.kzn-leads { display: flex; flex-wrap: wrap; gap: 8px; }
.kzn-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.kzn-actions .ic { width: 16px; height: 16px; }
.kzn-offbtn { color: #ffb3b9; }
.kzn-note { font-size: 14px; line-height: 1.55; padding: 12px 14px; border-radius: 10px; background: var(--card-2); border: 1px solid var(--line-2); color: var(--text-2); margin-bottom: 12px; }
.kzn-note.bad { border-color: rgba(242, 54, 69, .45); color: #ffb3b9; background: rgba(242, 54, 69, .08); margin-top: 12px; }
.btn.is-busy { opacity: .6; pointer-events: none; }
@media (max-width: 560px) {
  .kzn-zones { grid-template-columns: 1fr; }
  .kzn-actions .btn { flex: 1 1 100%; }
}

/* ---------- Notifications page (#/alerts) ---------- */
.al-page .panel { padding: 20px; }
.al-device { margin-bottom: 16px; }
.al-dev-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.al-dev-row .kzn-status { margin-top: 6px; }
.al-dev-row .kzn-actions { margin-top: 0; }
.al-sec { position: relative; margin-bottom: 16px; }
.al-head { display: flex; gap: 14px; align-items: flex-start; }
.al-ht { flex: 1; min-width: 0; }
.al-ht h3 { font-size: 17px; margin: 0 0 4px; }
.al-body { margin-top: 6px; }
.al-sec.is-off .al-body { opacity: .45; }
.al-lock { font-size: 12.5px; color: var(--gold); background: rgba(201, 164, 92, .08); border: 1px solid rgba(201, 164, 92, .3); border-radius: 8px; padding: 6px 10px; margin-bottom: 12px; display: inline-block; }
.al-sw { position: relative; width: 46px; height: 26px; flex: none; cursor: pointer; }
.al-sw input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.al-sw i { position: absolute; inset: 0; border-radius: 99px; background: var(--card-3, #2a2d33); border: 1px solid var(--line-2); transition: background .2s, border-color .2s; }
.al-sw i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #9aa0a8; transition: transform .2s, background .2s; }
.al-sw input:checked + i { background: rgba(201, 164, 92, .35); border-color: var(--gold); }
.al-sw input:checked + i::after { transform: translateX(20px); background: var(--gold); }
.al-sw input:focus-visible + i { outline: 2px solid var(--gold); outline-offset: 2px; }
.al-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.al-chip { position: relative; cursor: pointer; }
.al-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.al-chip span { display: inline-block; padding: 7px 12px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--card-2); font-size: 13px; font-weight: 600; line-height: 1; color: var(--text-2); transition: .15s; }
.al-chip input:checked + span { border-color: var(--gold); background: rgba(201, 164, 92, .14); color: var(--text); }
.al-chip input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.al-mt { margin-top: 12px; }
.al-lbl-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.al-inline { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 14px; }
.al-time { height: 38px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--card-2); color: var(--text); padding: 0 10px; font: inherit; }
.al-news { display: grid; gap: 4px; max-height: 340px; overflow: auto; margin-bottom: 8px; }
.al-nrow { display: grid; grid-template-columns: 10px 112px 42px 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 8px; background: var(--card-2); font-size: 13.5px; }
.al-nrow.past { opacity: .5; }
.al-imp { width: 10px; height: 10px; border-radius: 3px; }
.al-imp.hi { background: #f23645; }
.al-imp.md { background: #f5a623; }
.al-nt { font-size: 12.5px; color: var(--text-2); }
.al-ntitle { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.al-form { display: grid; grid-template-columns: 1fr 1fr 1fr 1.3fr auto; gap: 10px; align-items: end; }
.al-form .btn { height: 44px; }
.al-form em { font-style: normal; font-size: 12px; }
.al-list { display: grid; gap: 6px; margin: 14px 0 8px; }
.al-arow { display: grid; grid-template-columns: 80px 1fr auto auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 9px; background: var(--card-2); border: 1px solid var(--line-2); font-size: 14px; }
.al-arow.fired { border-color: rgba(201, 164, 92, .45); }
.al-levels { display: grid; gap: 2px; font-size: 13.5px; }
.al-lvh, .al-lvr { display: grid; grid-template-columns: 80px 1fr 1fr 1fr; gap: 10px; padding: 7px 10px; align-items: center; }
.al-lvh { color: var(--muted); font-size: 12px; }
.al-lvr { background: var(--card-2); border-radius: 7px; }
.al-lvr em { font-style: normal; font-size: 11px; color: var(--muted); }
.al-lvr .hit, .al-lvr .hit em { color: var(--gold); }
.al-streak { font-size: 15px; padding: 12px 14px; border-radius: 10px; background: rgba(201, 164, 92, .08); border: 1px solid rgba(201, 164, 92, .3); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.kzn-card { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.kzn-card .kzn-h { margin: 0; flex: 1; min-width: 240px; }
/* market: watchlist */
.term-acts { display: flex; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.term-acts .btn { height: 34px; padding: 0 14px; font-size: 13px; }
.term-acts .btn .ic { width: 15px; height: 15px; }
.term-acts .btn.on { border-color: var(--gold); color: var(--gold); }
.term-watch .term-gh { color: var(--gold); }
.wl-dot { font-style: normal; color: var(--gold); font-size: 11px; }
@media (max-width: 760px) {
  .al-form { grid-template-columns: 1fr 1fr; }
  .al-form .btn { grid-column: 1 / -1; }
  .al-nrow { grid-template-columns: 10px 1fr auto; }
  .al-nrow .al-ntitle { grid-column: 2 / -1; white-space: normal; }
  .al-nrow > .muted { grid-column: 2 / -1; }
  .al-arow { grid-template-columns: 70px 1fr auto; }
  .al-arow .pill { display: none; }
  .al-lvh, .al-lvr { grid-template-columns: 64px 1fr 1fr 1fr; gap: 6px; font-size: 12.5px; }
  .al-page .panel { padding: 16px; }
}
.al-form > * { min-width: 0; }
.al-form .fld input, .al-form .fld select { width: 100%; min-width: 0; }

/* study streak banner (Learning Paths) */
.streak-bar { display: flex; align-items: center; gap: 14px; padding: 14px 18px; margin: 0 0 22px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--card); flex-wrap: wrap; }
.streak-bar.on { border-color: rgba(201, 164, 92, .4); background: linear-gradient(90deg, rgba(201, 164, 92, .12), rgba(201, 164, 92, .02)); }
.streak-fire { font-size: 26px; line-height: 1; filter: grayscale(1); opacity: .5; }
.streak-bar.on .streak-fire { filter: none; opacity: 1; }
.streak-txt { display: grid; gap: 2px; flex: 1; min-width: 180px; }
.streak-txt b { font-size: 16px; }
.streak-bar .link .ic { width: 14px; height: 14px; }

/* ---------- Chart exercises (#/practice) ---------- */
.px-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.px-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.px-chip { padding: 8px 13px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--card-2); color: var(--text-2); font-size: 13.5px; font-weight: 600; cursor: pointer; transition: .15s; }
.px-chip:hover { border-color: rgba(201, 164, 92, .45); }
.px-chip.on { border-color: var(--gold); background: rgba(201, 164, 92, .14); color: var(--text); }
.px-chip small { color: var(--muted); font-weight: 500; margin-left: 2px; }
.px-stats { display: flex; gap: 8px; flex-wrap: wrap; }
.px-stat { display: grid; gap: 2px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--card-2); min-width: 78px; }
.px-stat span { font-size: 11.5px; color: var(--muted); }
.px-stat b { font-size: 15px; }
.px-card { padding: 18px; }
.px-q p { font-size: 16px; line-height: 1.55; margin: 8px 0 4px; }
.px-q b { color: var(--gold); }
.px-tag { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; padding: 4px 9px; border-radius: 6px; }
.px-tag.bull { background: rgba(34, 171, 148, .14); color: #7fe0cb; }
.px-tag.bear { background: rgba(242, 54, 69, .12); color: #ffb3b9; }
.px-chart { margin: 12px 0; border-radius: 12px; border: 1px solid var(--line); background: #0d0e11; overflow: hidden; touch-action: manipulation; }
.px-svg { display: block; width: 100%; height: auto; cursor: crosshair; user-select: none; -webkit-user-select: none; }
.px-grid { stroke: rgba(255, 255, 255, .05); }
.px-ax { fill: #6b7079; font-size: 11px; font-family: var(--mono, monospace); }
.px-c line { stroke-width: 1.4; }
.px-c.up line, .px-c.up rect { stroke: #22ab94; fill: #22ab94; }
.px-c.dn line, .px-c.dn rect { stroke: #f23645; fill: #f23645; }
.px-hover { fill: rgba(201, 164, 92, .12); }
.px-hline { stroke: var(--gold); stroke-dasharray: 5 4; stroke-width: 1.2; }
.px-leg { stroke: rgba(201, 164, 92, .55); stroke-width: 1.5; stroke-dasharray: 3 4; }
.px-z { stroke-width: 1; }
.px-z.fvg { fill: rgba(201, 164, 92, .22); stroke: rgba(201, 164, 92, .7); }
.px-z.fvg2 { fill: rgba(201, 164, 92, .1); stroke: rgba(201, 164, 92, .35); stroke-dasharray: 3 3; }
.px-z.ob { fill: rgba(80, 140, 255, .18); stroke: rgba(110, 160, 255, .75); }
.px-z.prem { fill: rgba(242, 54, 69, .1); stroke: rgba(242, 54, 69, .35); }
.px-z.disc { fill: rgba(34, 171, 148, .12); stroke: rgba(34, 171, 148, .4); }
.px-z.ote { fill: rgba(201, 164, 92, .22); stroke: rgba(201, 164, 92, .75); }
.px-zl { font-size: 11.5px; font-weight: 700; fill: #e8d3a6; }
.px-zl.ob { fill: #a9c4ff; } .px-zl.prem { fill: #ffb3b9; } .px-zl.disc { fill: #7fe0cb; }
.px-l { stroke-width: 1.4; stroke-dasharray: 6 4; }
.px-l.liq { stroke: #f5a623; } .px-l.mss { stroke: #a9c4ff; } .px-l.eq { stroke: var(--gold); } .px-l.eq2 { stroke: rgba(255, 255, 255, .35); }
.px-ll { font-size: 11.5px; font-weight: 700; }
.px-ll.liq { fill: #f5a623; } .px-ll.mss { fill: #a9c4ff; } .px-ll.eq { fill: var(--gold); } .px-ll.eq2 { fill: #9aa0a8; }
.px-key { fill: none; stroke: #22ab94; stroke-width: 2; rx: 4; }
.px-mine { fill: none; stroke-width: 2; stroke-dasharray: 4 3; rx: 4; }
.px-mine.ok { stroke: #22ab94; } .px-mine.bad { stroke: #f23645; }
.px-mine-l { stroke-width: 2; } .px-mine-l.ok { stroke: #22ab94; } .px-mine-l.bad { stroke: #f23645; }
.px-fb { border-radius: 10px; padding: 0; font-size: 14.5px; line-height: 1.55; }
.px-fb:not(:empty) { padding: 12px 14px; border: 1px solid var(--line-2); background: var(--card-2); }
.px-fb.ok { border-color: rgba(34, 171, 148, .5); background: rgba(34, 171, 148, .08); }
.px-fb.bad { border-color: rgba(242, 54, 69, .5); background: rgba(242, 54, 69, .07); }
.px-fb p { margin: 6px 0 8px; color: var(--text-2); }
.px-res { display: flex; align-items: center; gap: 10px; font-size: 16px; flex-wrap: wrap; }
.px-ic { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; flex: none; }
.px-fb.ok .px-ic { background: #22ab94; color: #06231e; animation: qzPop .35s ease; }
.px-fb.bad .px-ic { background: #f23645; color: #fff; animation: qzShake .35s ease; }
.px-near { font-size: 13px; font-weight: 500; color: #f5a623; }
.px-act { display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.px-act .btn .ic { width: 16px; height: 16px; }
.px-foot { margin-top: 10px; text-align: right; }
.px-cta { display: flex; align-items: center; gap: 14px; margin-top: 26px; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(201, 164, 92, .35); background: linear-gradient(90deg, rgba(201, 164, 92, .12), rgba(201, 164, 92, .02)); color: var(--text); transition: border-color .15s, transform .15s; }
.px-cta:hover { border-color: var(--gold); transform: translateY(-1px); }
.px-cta > .ic:first-child { width: 26px; height: 26px; color: var(--gold); flex: none; }
.px-cta span { display: grid; gap: 2px; flex: 1; }
.px-cta small { color: var(--muted); font-size: 12.5px; }
.px-cta > .ic:last-child { width: 18px; height: 18px; color: var(--gold); }
@media (max-width: 760px) {
  .px-top { align-items: stretch; }
  .px-stats { width: 100%; }
  .px-stat { flex: 1; min-width: 0; }
  .px-card { padding: 14px; }
  .px-q p { font-size: 15px; }
  .px-act .btn { flex: 1; }
}

/* ---------- Journal v2: analysis, mistakes, screenshots ---------- */
.j-sec-h { margin: 30px 0 14px; }
.j-sec-h h2 { margin: 0 0 4px; }
.j-mist-panel { margin-bottom: 16px; }
.j-mist td:first-child { position: relative; }
.j-mbar { position: absolute; left: 0; top: 50%; transform: translateY(-50%); height: 70%; width: var(--w); max-width: 100%; background: rgba(242, 54, 69, .1); border-radius: 4px; z-index: 0; }
.j-mist td:first-child { z-index: 1; }
.j-mnote { margin: 12px 0 0; color: var(--text-2); }
.j-hist { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; align-items: end; height: 190px; padding-top: 18px; }
.j-hbar { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; min-width: 0; }
.j-hbar i { display: block; width: 100%; max-width: 34px; border-radius: 5px 5px 2px 2px; background: #4a4f58; }
.j-hbar i.pos { background: linear-gradient(180deg, #2fd0b3, #22ab94); }
.j-hbar i.neg { background: linear-gradient(180deg, #ff5a66, #f23645); }
.j-hbar small { font-size: 10px; color: var(--muted); white-space: nowrap; transform: rotate(-35deg); transform-origin: top center; margin-top: 6px; height: 22px; }
.j-hn { font-size: 11px; color: var(--text-2); min-height: 14px; }
.j-hcap { text-align: center; margin-top: 4px; }
.j-cam { font-size: 12px; }
.j-mdot { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: rgba(242, 54, 69, .18); color: #ff8a93; font-size: 11px; font-weight: 700; vertical-align: 1px; }
.j-mfld, .j-sfld { display: grid; gap: 6px; margin-top: 12px; }
.j-mfld > span, .j-sfld > span { font-size: 13px; font-weight: 600; }
.j-mfld em, .j-sfld em { font-style: normal; font-size: 12px; }
.j-mchips { display: flex; flex-wrap: wrap; gap: 6px; }
.j-mchips .al-chip span { font-size: 12.5px; padding: 6px 10px; font-weight: 500; }
.j-mchips .al-chip input:checked + span { border-color: rgba(242, 54, 69, .6); background: rgba(242, 54, 69, .12); color: var(--text); }
.j-shots { display: flex; flex-wrap: wrap; gap: 8px; }
.j-shot { position: relative; width: 104px; height: 74px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--card-2); overflow: hidden; }
.j-shot-img { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.j-shot-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.j-shot-x { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .7); color: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; }
.j-shot-x .ic { width: 12px; height: 12px; }
.j-shot-new { display: grid; place-items: center; align-content: center; gap: 4px; color: var(--text-2); font-size: 12px; cursor: pointer; border-style: dashed; }
.j-shot-new:hover { border-color: var(--gold); color: var(--gold); }
.j-shot-new .ic { width: 18px; height: 18px; }
.j-light { display: grid; place-items: center; padding: 20px; background: rgba(0, 0, 0, .88); z-index: 300; cursor: zoom-out; }
.j-light[hidden] { display: none; }
.j-light img { max-width: 100%; max-height: 100%; border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); }
.j-light-x { position: fixed; top: 14px; right: 14px; }
@media (max-width: 560px) {
  .j-hist { height: 160px; gap: 3px; }
  .j-shot { width: calc(33.33% - 6px); }
}

/* ---------- Daily plan (#/plan) ---------- */
.pl-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.pl-nav { display: flex; align-items: center; gap: 8px; }
.pl-nav input[type=date] { height: 40px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--card-2); color: var(--text); padding: 0 10px; font: inherit; color-scheme: dark; }
.pl-status { font-size: 13px; }
.pl-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.pl-main { display: grid; gap: 16px; min-width: 0; }
.pl-side { position: sticky; top: calc(var(--nav-h, 64px) + 70px); }
.pl-box .panel-h { flex-wrap: wrap; gap: 4px 12px; }
.pl-sym { border: 1px solid var(--line-2); border-radius: 12px; padding: 14px; margin-bottom: 12px; display: grid; gap: 10px; background: var(--card); }
.pl-sym-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pl-sym-h select { height: 38px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--card-2); color: var(--text); padding: 0 10px; font: 600 14px var(--mono, monospace); }
.pl-rm { margin-left: auto; }
.pl-seg { display: inline-flex; flex-wrap: wrap; }
.pl-seg button.on.b-bull { background: rgba(34, 171, 148, .18); color: #7fe0cb; border-color: rgba(34, 171, 148, .55); }
.pl-seg button.on.b-bear { background: rgba(242, 54, 69, .16); color: #ffb3b9; border-color: rgba(242, 54, 69, .5); }
.pl-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: -4px; }
.pl-q { font-size: 12px; padding: 5px 9px; border-radius: 99px; border: 1px dashed var(--line-2); background: none; color: var(--text-2); cursor: pointer; }
.pl-q:hover { border-color: var(--gold); color: var(--gold); }
.pl-fill { margin-left: 8px; display: inline-flex; align-items: center; gap: 4px; }
.pl-fill .ic { width: 13px; height: 13px; }
.pl-sym textarea, .pl-sym input, .pl-box textarea { width: 100%; }
.pl-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.pl-checks { display: grid; gap: 10px; }
.pl-res { display: grid; gap: 8px; }
.pl-res-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pl-res-row > b { min-width: 64px; }
.pl-bias-tag { font-style: normal; font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: var(--card-2); color: var(--muted); }
.pl-bias-tag.bull { background: rgba(34, 171, 148, .14); color: #7fe0cb; }
.pl-bias-tag.bear { background: rgba(242, 54, 69, .12); color: #ffb3b9; }
.pl-trades { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.pl-tr { font-size: 13px; padding: 6px 10px; border-radius: 8px; background: var(--card-2); border: 1px solid var(--line-2); }
.pl-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.pl-kpis div { padding: 10px; border-radius: 10px; background: var(--card-2); border: 1px solid var(--line-2); display: grid; gap: 2px; }
.pl-kpis span { font-size: 11.5px; color: var(--muted); }
.pl-kpis b { font-size: 18px; }
.pl-hlist { display: grid; gap: 4px; }
.pl-hrow { display: grid; gap: 4px; padding: 8px 10px; border-radius: 8px; font-size: 13px; color: var(--text-2); border: 1px solid transparent; }
.pl-hrow:hover { background: var(--card-2); }
.pl-hrow.on { border-color: rgba(201, 164, 92, .45); background: rgba(201, 164, 92, .06); }
.pl-hsyms { display: flex; flex-wrap: wrap; gap: 4px; }
@media (max-width: 980px) {
  .pl-grid { grid-template-columns: 1fr; }
  .pl-side { position: static; }
}
@media (max-width: 560px) {
  .pl-nav { width: 100%; }
  .pl-nav input[type=date] { flex: 1; min-width: 0; }
  .pl-nums { grid-template-columns: 1fr; }
  .pl-seg button { padding: 0 10px; font-size: 12.5px; }
}
.pl-seg button { padding: 0 12px; }
.pl-seg button.on { background: rgba(201, 164, 92, .15); color: var(--text); }

/* live TradingView price + chart on the alerts page and in the daily plan */
.al-live-h { display: flex; align-items: center; gap: 8px; margin-top: 16px; }
.al-live { display: grid; gap: 8px; margin-bottom: 14px; }
.al-live-q { min-height: 76px; }
.al-live-c { height: 380px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-2); }
.pl-live { min-height: 76px; margin: -2px 0; }
@media (max-width: 560px) { .al-live-c { height: 300px; } }

/* alerts v3: second form row, tags, device actions */
.al-form2 { grid-template-columns: 1fr 1fr 1fr 1.6fr; margin-top: 10px; }
.al-rep { align-self: center; font-size: 13px; }
.al-tags { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-left: 4px; vertical-align: middle; }
.al-tags i { font-style: normal; font-size: 11px; padding: 2px 7px; border-radius: 99px; background: var(--card); border: 1px solid var(--line-2); color: var(--text-2); }
.kzn-actions { flex-wrap: wrap; align-items: center; }
@media (max-width: 760px) { .al-form2 { grid-template-columns: 1fr 1fr; } .al-rep { grid-column: 1 / -1; } }

/* journal import */
.im-box { max-width: 560px; }
.im-steps { margin: 10px 0 14px; padding-left: 18px; display: grid; gap: 6px; color: var(--text-2); }
.im-pick { cursor: pointer; }
.im-out { margin-top: 14px; display: grid; gap: 6px; }

/* news page */
.news-tabs { display: inline-flex; flex-wrap: wrap; width: auto; margin-bottom: 14px; }
.news-tabs button { padding: 0 14px; }
.news-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; }
.news-box { height: 760px; }
@media (max-width: 980px) { .news-grid { grid-template-columns: 1fr; } .news-box { height: 620px; } }

/* bar replay */
.rp-bar { display: grid; grid-template-columns: 1fr 1fr 1.6fr 1fr auto; gap: 10px; align-items: end; margin-bottom: 16px; }
.rp-bar input[type=datetime-local] { color-scheme: dark; }
.rp-bar-b { display: flex; gap: 8px; }
.rp-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.rp-main { display: grid; gap: 10px; min-width: 0; }
.rp-info { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-2); }
.rp-chart { position: relative; height: 520px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line-2); background: #0d0e11; }
.rp-msg { position: absolute; inset: auto 0 0 0; padding: 10px 14px; z-index: 3; background: rgba(13,14,17,.85); }
.rp-msg[hidden] { display: none; }
.rp-ctrl { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rp-speed { display: inline-flex; align-items: center; gap: 6px; }
.rp-speed select { height: 38px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--card-2); color: var(--text); padding: 0 8px; }
.rp-pdchk { font-size: 13px; }
.rp-side { display: grid; gap: 16px; }
.rp-dir { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.rp-long { background: rgba(34,171,148,.16); color: #7fe0cb; border: 1px solid rgba(34,171,148,.5); }
.rp-short { background: rgba(242,54,69,.14); color: #ffb3b9; border: 1px solid rgba(242,54,69,.5); }
.rp-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rp-pos { display: grid; gap: 8px; margin: 10px 0; }
.rp-pos-h { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.rp-open { font-size: 22px; font-weight: 700; }
.rp-list { display: grid; gap: 6px; max-height: 320px; overflow: auto; }
.rp-tr { display: grid; grid-template-columns: auto auto 1fr auto; gap: 8px; align-items: center; font-size: 13px; padding: 6px 8px; border-radius: 8px; background: var(--card-2); }
@media (max-width: 980px) { .rp-grid { grid-template-columns: 1fr; } .rp-bar { grid-template-columns: 1fr 1fr; } .rp-date, .rp-bar-b { grid-column: 1 / -1; } .rp-bar-b .btn { flex: 1; } }
@media (max-width: 560px) { .rp-chart { height: 400px; } }

.al-idx-note { margin-top: 10px; }

/* community */
.cm-hero { display: grid; gap: 16px; margin-bottom: 16px; border-color: rgba(42, 171, 238, .35); background: linear-gradient(135deg, rgba(42, 171, 238, .10), rgba(201, 164, 92, .05)); }
.cm-hero-t { display: flex; gap: 14px; align-items: flex-start; }
.cm-hero-t h2 { margin: 0 0 6px; }
.cm-tg-ic { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; background: rgba(42, 171, 238, .16); border: 1px solid rgba(42, 171, 238, .4); }
.cm-bul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.cm-bul li { display: flex; gap: 8px; align-items: flex-start; color: var(--text-2); font-size: 14px; }
.cm-bul .ic { width: 16px; height: 16px; color: var(--gold); flex: none; margin-top: 2px; }
.cm-hero-b { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cm-row { margin-bottom: 16px; }
.cm-tpl { white-space: pre-wrap; font-family: var(--mono, monospace); font-size: 13px; line-height: 1.7; background: var(--card-3); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin: 10px 0 12px; color: var(--text-2); }
.cm-strip { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; border-color: rgba(42, 171, 238, .35); }
.cm-strip > div { flex: 1; min-width: 200px; }
.cm-strip p { margin: 2px 0 0; }
@media (max-width: 640px) { .cm-bul { grid-template-columns: 1fr; } .cm-tg-btn { width: 100%; justify-content: center; } }

/* ICT levels table */
.al-ict-r { grid-template-columns: 80px repeat(4, 1fr) !important; }
@media (max-width: 560px) { .al-ict-r { grid-template-columns: 62px repeat(4, 1fr) !important; font-size: 11.5px; gap: 6px !important; } }

/* replay challenge */
.rp-ch { display: grid; gap: 12px; margin-bottom: 16px; border-color: rgba(201, 164, 92, .4); }
.rp-ch-h { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.rp-ch-h h3 { margin: 0 0 4px; }
.rp-ch-h p { margin: 2px 0; }
.rp-ch .gold { color: var(--gold); }
.rp-ch-end { display: grid; gap: 8px; padding: 10px 12px; border-radius: 10px; background: var(--card-2); }
.rp-ch-send { display: flex; gap: 8px; align-items: end; flex-wrap: wrap; }
.rp-ch-send .fld { flex: 1; min-width: 180px; }
.rp-board { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; }
.rp-board li { display: grid; grid-template-columns: 28px 1fr auto auto; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 8px; background: var(--card-2); font-size: 13px; }

/* trade share card */
.j-card-box { max-width: 460px; display: grid; gap: 12px; }
.j-card-img { width: 100%; border-radius: 12px; border: 1px solid var(--line-2); }

.pl-light { padding: 9px 12px; border-radius: 9px; font-size: 13px; margin-bottom: 8px; border: 1px solid var(--line-2); background: var(--card-2); }
.pl-light-red { border-color: rgba(242, 54, 69, .45); background: rgba(242, 54, 69, .08); }
.pl-light-amber { border-color: rgba(240, 160, 60, .45); background: rgba(240, 160, 60, .08); }
.pl-light-green { border-color: rgba(34, 171, 148, .45); background: rgba(34, 171, 148, .08); }
.cm-ch { display: grid; gap: 8px; margin-bottom: 16px; border-color: rgba(201, 164, 92, .4); }
.cm-ch p { margin: 0; }

/* admin panel */
.ad-page .grid { margin-bottom: 16px; }
.ad-box { margin-bottom: 16px; }
.ad-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.ad-n { display: grid; gap: 2px; padding: 12px; border-radius: 10px; background: var(--card-2); border: 1px solid var(--line-2); }
.ad-n b { font-size: 22px; }
.ad-n span { font-size: 12px; color: var(--muted); }
.ad-sys { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.ad-sys > div { display: grid; gap: 4px; padding: 12px; border-radius: 10px; background: var(--card-2); }
.ad-sys span { font-size: 12px; color: var(--muted); }
.ad-list { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.ad-err li { font-size: 13px; }
.ad-good { border-color: rgba(34, 171, 148, .4); }
.ad-bad { border-color: rgba(242, 54, 69, .5); }

.rp-sc { display: grid; gap: 10px; margin-bottom: 16px; }
.rp-sc-b { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-start; }

/* about page */
.ab-stats { margin: 6px 0 26px; grid-template-columns: repeat(5, auto); }
.ab-row { margin-bottom: 18px; }
.ab-p { color: var(--text-2); line-height: 1.7; margin: 0 0 10px; }
.ab-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ab-list li { display: grid; gap: 2px; }
.ab-list span { color: var(--text-2); font-size: 14px; line-height: 1.6; }
.ab-h { font-size: 18px; margin: 10px 0 14px; }
.ab-offer { margin-bottom: 18px; }
.ab-offer .panel b { display: block; margin: 10px 0 4px; }
.ab-offer .panel p { margin: 0; }
.ab-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(201, 164, 92, .12); color: var(--gold); }
.ab-risk { font-size: 13px; color: var(--muted); padding: 10px 14px; border: 1px dashed var(--line-2); border-radius: 9px; }
@media (max-width: 900px) { .ab-offer { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .ab-offer { grid-template-columns: 1fr; } .ab-stats { grid-template-columns: repeat(2, auto); } }

/* public profiles */
.pf-page { max-width: 860px; }
.pf-top { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.pf-av { width: 64px; height: 64px; flex: none; border-radius: 16px; display: grid; place-items: center; font: 700 22px var(--mono); color: #e8e6e1; background: linear-gradient(135deg, #14324f, #1d4a72); border: 1px solid rgba(201, 164, 92, .35); }
.pf-av.sm { width: 34px; height: 34px; border-radius: 10px; font-size: 12px; }
.pf-nick { font-size: clamp(22px, 4vw, 30px); margin: 0; }
.pf-bio { margin: 4px 0; color: var(--text-2); }
.pf-h { font-size: 14px; margin: 18px 0 10px; display: flex; gap: 8px; align-items: center; color: var(--gold-2); }
.pf-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.pf-tile { background: var(--card-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.pf-tile b { display: block; font-size: 20px; }
.pf-tile span { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.pf-tile .up { color: var(--up, #26a69a); } .pf-tile .dn { color: var(--dn, #f23645); }
.pf-note { margin-top: 18px; font-size: 12.5px; color: var(--muted); padding: 10px 14px; border: 1px dashed var(--line-2); border-radius: 9px; }
.pf-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.pf-form { display: grid; gap: 12px; margin-top: 10px; }
.pf-at { display: flex; align-items: center; gap: 6px; }
.pf-at b { color: var(--muted); }
.pf-at input { flex: 1; min-width: 0; }
.pf-members { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.pf-m { display: flex; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--card-2); min-width: 0; }
.pf-m:hover { border-color: rgba(201, 164, 92, .5); }
.pf-m span:last-child { display: grid; min-width: 0; }
.pf-m small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#cmGroup { margin-top: 10px; }
#cmGroup[hidden], #pfView[hidden], .panel[hidden] { display: none; }

/* MT4/MT5 automatic sync (import dialog) */
.im-sync { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.im-sync h4 { display: flex; gap: 8px; align-items: center; margin: 0 0 6px; font-size: 15px; }
.im-sync code { font-family: var(--mono); font-size: 12px; word-break: break-all; }
.sy-dl { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.sy-st { color: var(--text-2); }
.sy-tok { display: flex; gap: 8px; align-items: center; padding: 10px; border: 1px solid rgba(201, 164, 92, .45); border-radius: 9px; background: var(--card-2); }
.sy-tok code { flex: 1; min-width: 0; user-select: all; }
.sy-warn { color: var(--gold-2); margin: 6px 0 0; }

/* admin: feature usage */
.ad-uh { font-size: 13px; color: var(--gold-2); margin: 0 0 8px; }
.ad-ut { width: 100%; border-collapse: collapse; font-size: 13px; }
.ad-ut th { text-align: right; font-weight: 500; color: var(--muted); font-size: 11px; padding: 2px 6px; }
.ad-ut td { padding: 4px 6px; border-top: 1px solid var(--line); text-align: right; }
.ad-ut td:first-child { text-align: left; }
@media (max-width: 900px) { .ad-usage { grid-template-columns: 1fr; } }
/* phone fixes: grid children may shrink (inputs and number cells were pushing past the screen edge) */
.rp-nums > *, .al-lvh > *, .al-lvr > * { min-width: 0; }
.rp-nums input { width: 100%; min-width: 0; }
@media (max-width: 560px) { .al-ict-r { grid-template-columns: 54px repeat(4, minmax(0, 1fr)) !important; font-size: 11px; gap: 4px !important; padding: 7px 6px; } }

/* logo lockup: mark + ICT / BLUEPRINT / AKADEMİ (same on phones) */
.brand .logo { width: 46px; height: 46px; }
.brand-t { display: block; line-height: 1; }
.brand-t b { display: block; font-size: 15px; line-height: 1.08; letter-spacing: .07em; font-weight: 800; color: var(--text); }
.brand-t small { display: block !important; margin-top: 4px; font-size: 9px; letter-spacing: .42em; }
@media (max-width: 760px) { .brand .logo { width: 40px; height: 40px; } .brand-t b { font-size: 13px; letter-spacing: .06em; } .brand-t small { font-size: 8px; letter-spacing: .36em; margin-top: 3px; } }
.brand > span.brand-t { display: block; }
@media (max-width: 380px) { .brand .logo { width: 36px; height: 36px; } .brand-t b { font-size: 12px; } .brand-t small { font-size: 7.5px; letter-spacing: .3em; } }
