/* TradeGurukul.net — design tokens */
:root {
  --ink: #14213D;        /* primary text, navigation, buttons */
  --ink-2: #22335A;
  --saffron: #F2A541;    /* gurukul accent: arch, highlights */
  --saffron-deep: #B9741A;
  --green: #1E8E5A;      /* market up */
  --red: #C8423B;        /* market down */
  --paper: #F5F7FB;
  --line: #E1E6EF;
  --slate: #5B6476;
  --white: #FFFFFF;
  --radius-lg: 18px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(20,33,61,.06), 0 8px 24px -12px rgba(20,33,61,.18);
  --font-head: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --wrap: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.6 var(--font-body); color: var(--ink); background: var(--white); }
img, svg { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration-color: var(--saffron); text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { color: var(--saffron-deep); }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); font-weight: 600; }
h3 { font-size: 1.12rem; font-weight: 600; }
p { margin: 0 0 1em; }
.lead { font-size: 1.15rem; color: var(--slate); max-width: 62ch; }
.muted { color: var(--slate); }
.small { font-size: .875rem; }
.center { text-align: center; }
.warn { color: var(--red); font-weight: 600; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--saffron); padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 480px; } .narrow-left > * { max-width: 720px; }
.price, .stat-row dd, .facts dd, table td { font-variant-numeric: tabular-nums; }

/* ---------- Ticker tape + header ---------- */
.tape-bar { background: var(--ink); display: flex; align-items: center; min-height: 46px; }
.tape-bar .ticker { flex: 1; min-width: 0; }
.mkt-status { flex: none; display: flex; align-items: center; gap: .5rem; color: #C8D0E0; font-size: .8rem; padding: 0 16px; border-right: 1px solid rgba(255,255,255,.12); white-space: nowrap; }
.mkt-status i { width: 8px; height: 8px; border-radius: 50%; background: #8792A8; }
.mkt-status.is-open i { background: #3CC17F; box-shadow: 0 0 0 4px rgba(60,193,127,.2); }
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.nav-row { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-family: var(--font-head); font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; }
.brand b { color: var(--saffron-deep); font-weight: 700; }
.main-nav { display: flex; align-items: center; gap: 1.25rem; font-size: .95rem; }
.main-nav a { text-decoration: none; padding: .35rem 0; }
.main-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--saffron); }
.nav-sep { width: 1px; height: 24px; background: var(--line); }
.badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--saffron); color: var(--ink); font-size: .75rem; font-weight: 600; }
.nav-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font: 600 .95rem/1 var(--font-body); padding: .85rem 1.3rem; border-radius: 10px; border: 2px solid transparent; cursor: pointer; text-decoration: none; transition: background .15s, color .15s; }
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--ink-2); color: var(--white); }
.btn-ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.btn-saffron { background: var(--saffron); color: var(--ink); }
.btn-saffron:hover { background: #FFB75A; color: var(--ink); }
.btn-small { padding: .55rem .9rem; font-size: .875rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 0; color: var(--slate); font: inherit; font-size: .875rem; cursor: pointer; text-decoration: underline; }
.link-btn.danger { color: var(--red); }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 72px; background:
  linear-gradient(var(--white), rgba(255,255,255,.85)),
  repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 64px),
  repeating-linear-gradient(0deg, var(--line) 0 1px, transparent 1px 64px); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.hero h1 { max-width: 15ch; }
.hero .lead { margin-bottom: 1.75rem; }
.hero-facts { display: flex; gap: 2.5rem; margin: 2.25rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.hero-facts dt { font-size: .85rem; color: var(--slate); }
.hero-facts dd { margin: 0; font: 600 1.25rem var(--font-head); }
.terminal { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; border-top: 4px solid var(--saffron); }
.terminal-tabs { display: flex; gap: 4px; padding: 10px 10px 0; border-bottom: 1px solid var(--line); }
.terminal-tabs button { font: 500 .9rem var(--font-body); color: var(--slate); background: none; border: 0; padding: .6rem .9rem; border-radius: 8px 8px 0 0; cursor: pointer; }
.terminal-tabs button[aria-selected="true"] { color: var(--ink); background: var(--paper); box-shadow: inset 0 -3px 0 var(--green); }
.terminal-body { height: 380px; padding: 6px; }
.terminal-note { font-size: .8rem; color: var(--slate); padding: 10px 16px; margin: 0; background: var(--paper); }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-tight { padding: 36px 0 56px; }
.section-alt { background: var(--paper); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1.25rem; }
.section-title { margin: 0; }
.page-head { padding: 48px 0 28px; background: var(--paper); border-bottom: 1px solid var(--line); }
.page-head h1 { margin-bottom: .3em; }
.page-head-dark { background: var(--ink); color: var(--white); border: 0; }
.page-head-dark .lead { color: #C8D0E0; }
.page-head-dark .chip { color: #E8ECF4; border-color: rgba(255,255,255,.25); }
.page-head-dark .chip[aria-current="true"] { background: var(--saffron); color: var(--ink); border-color: var(--saffron); }
.crumbs { font-size: .875rem; color: var(--slate); margin-bottom: .75rem; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }

/* Learning paths: a row joined by the arch motif */
.paths { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.path { padding: 28px 28px 24px; text-decoration: none; position: relative; background: var(--white); }
.path + .path { border-left: 1px solid var(--line); }
.path::before { content: ""; display: block; width: 34px; height: 22px; border: 4px solid var(--saffron); border-bottom: 0; border-radius: 22px 22px 0 0; margin-bottom: 18px; }
.path p { color: var(--slate); margin: 0; }
.path:hover { background: var(--paper); color: var(--ink); }

/* ---------- Cards ---------- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card-media { position: relative; aspect-ratio: 17 / 10; display: block; overflow: hidden; }
.card-media .cover { width: 100%; height: 100%; }
.mode { position: absolute; left: 12px; bottom: 12px; background: rgba(255,255,255,.94); color: var(--ink); font-size: .78rem; font-weight: 600; padding: .3rem .6rem; border-radius: 6px; }
.mode-offline, .mode-hybrid { background: var(--saffron); }
.card-body { padding: 18px 18px 16px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 a { text-decoration: none; }
.card-kicker { font-size: .82rem; color: var(--slate); margin-bottom: .4rem; }
.card-text { color: var(--slate); font-size: .95rem; flex: 1; }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding-top: 12px; border-top: 1px solid var(--line); }
.price { font: 600 1.1rem var(--font-head); }
.price s { font: 400 .85rem var(--font-body); color: var(--slate); margin-left: .25rem; }
.price-lg { font-size: 2rem; margin: 0; }
.product-card h3 { font-size: 1.02rem; }

/* Batches */
.batch-list { display: grid; gap: 10px; }
.batch { display: grid; grid-template-columns: 72px 1fr auto auto; gap: 20px; align-items: center; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; }
.batch:hover { border-color: var(--ink); color: var(--ink); }
.batch time { text-align: center; font-size: .82rem; color: var(--slate); line-height: 1.1; border-right: 1px solid var(--line); padding-right: 16px; }
.batch time b { display: block; font: 700 1.6rem var(--font-head); color: var(--ink); }
.batch h3 { margin: 0 0 .15rem; } .batch p { margin: 0; color: var(--slate); font-size: .9rem; }
.batch-seats { font-size: .85rem; color: var(--green); font-weight: 600; }

/* Insights / posts */
.insight-row { padding: 16px 0; border-bottom: 1px solid var(--line); }
.insight-row h3 { margin: .35rem 0 .3rem; } .insight-row h3 a, .insight-card h3 a { text-decoration: none; }
.insight-row p { color: var(--slate); margin: 0; font-size: .95rem; }
.insight-card { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); border-left: 4px solid var(--green); }
.tag { display: inline-block; font-size: .78rem; font-weight: 600; padding: .15rem .55rem; border-radius: 6px; background: #E9F5EF; color: var(--green); }
.avatar { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); font: 600 .95rem var(--font-head); color: var(--ink); text-decoration: none; }
.avatar-sm { width: 34px; height: 34px; font-size: .8rem; }
.avatar-lg { width: 72px; height: 72px; font-size: 1.4rem; }
.avatar-mentor { background: var(--ink); color: var(--saffron); border-color: var(--ink); }
.badge-mentor { font: 600 .72rem var(--font-body); background: var(--saffron); color: var(--ink); padding: .12rem .45rem; border-radius: 5px; vertical-align: middle; }
.post { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.post-compact { padding: 14px 0; }
.post-compact p { margin: 0; font-size: .95rem; }
.post-main { flex: 1; min-width: 0; }
.post-meta { font-size: .9rem; margin-bottom: .3rem; }
.post-meta a { text-decoration: none; }
.post-body { margin-bottom: .5rem; overflow-wrap: anywhere; }
.post-foot { display: flex; gap: 1rem; align-items: center; margin: 0; }
.inline { display: inline; }

/* CTA band */
.cta-band { background: var(--ink); color: var(--white); padding: 52px 0; }
.cta-band-inner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; }
.cta-band h2 { margin-bottom: .25rem; } .cta-band p { color: #C8D0E0; margin: 0; }

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; margin-bottom: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.filters .chips { margin: 0; }
.chip { font-size: .875rem; padding: .4rem .85rem; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; background: var(--white); }
.chip:hover { border-color: var(--ink); }
.chip[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.search { flex: 1; min-width: 220px; }
.empty { text-align: center; padding: 48px 20px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--slate); }

/* ---------- Course page ---------- */
.course-hero { padding: 48px 0; background: linear-gradient(135deg, hsl(var(--hue) 55% 30%), hsl(calc(var(--hue) + 40) 60% 18%)); color: var(--white); }
.course-hero a { color: #E8ECF4; }
.course-hero .lead, .course-hero .crumbs { color: rgba(255,255,255,.8); }
.course-hero-grid { display: grid; grid-template-columns: 1fr 360px; gap: 48px; align-items: start; }
.facts { display: grid; grid-template-columns: repeat(4, auto); gap: 28px; margin: 1.75rem 0 0; justify-content: start; }
.facts dt { font-size: .82rem; opacity: .75; } .facts dd { margin: 0; font: 600 1.05rem var(--font-head); }
.buy-box { background: var(--white); color: var(--ink); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); display: grid; gap: 10px; }
.buy-box a { color: var(--ink); } .buy-box p { margin: 0; }
.venue { font-size: .92rem; }
.course-body { display: grid; grid-template-columns: 1fr 320px; gap: 56px; }
.course-body > div { max-width: 70ch; }
.curriculum { padding: 0; counter-reset: c; list-style: none; border: 1px solid var(--line); border-radius: var(--radius); }
.curriculum li { counter-increment: c; padding: 12px 16px 12px 56px; position: relative; }
.curriculum li + li { border-top: 1px solid var(--line); }
.curriculum li::before { content: counter(c); position: absolute; left: 16px; top: 11px; width: 26px; height: 26px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; font: 600 .8rem var(--font-head); }
.mentor-card { display: block; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; align-self: start; background: var(--white); }
.mentor-card .avatar { margin-bottom: 14px; }
.mentor-card h3 { margin-bottom: .2rem; }

/* ---------- Forms ---------- */
label { display: grid; gap: 6px; font-size: .92rem; font-weight: 500; }
input, select, textarea { font: inherit; color: var(--ink); width: 100%; padding: .7rem .85rem; border: 1px solid #CBD3E1; border-radius: var(--radius-sm); background: var(--white); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(242,165,65,.35); }
textarea { resize: vertical; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; }
.check input { width: auto; margin-top: .3rem; }
.stack { display: grid; gap: 16px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); }
.form-card.wide { max-width: 820px; }
.pay-methods { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.pay-methods legend { font-weight: 600; margin-bottom: 8px; }
.radio-card { display: flex; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); font-weight: 400; cursor: pointer; }
.radio-card:has(input:checked) { border-color: var(--ink); background: var(--paper); }
.radio-card input { width: auto; margin-top: .3rem; }
.radio-card small { display: block; color: var(--slate); }
.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin: 14px 0; font-size: .95rem; border-left: 4px solid; }
.alert-success { background: #E9F5EF; border-color: var(--green); }
.alert-error { background: #FBECEB; border-color: var(--red); }
.alert-info { background: #FEF4E6; border-color: var(--saffron); }
.auth-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.ticks { list-style: none; padding: 0; display: grid; gap: 10px; }
.ticks li { padding-left: 30px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 16px; height: 9px; border-left: 3px solid var(--green); border-bottom: 3px solid var(--green); transform: rotate(-45deg); }
.auth-page { background: var(--paper); display: grid; place-items: center; min-height: 100vh; padding: 20px; }
.auth-card { background: var(--white); padding: 32px; border-radius: var(--radius-lg); max-width: 440px; width: 100%; box-shadow: var(--shadow); }
.auth-logo { width: 240px; margin-bottom: 18px; }

/* ---------- Cart / checkout ---------- */
.checkout-grid { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }
.cart-table { display: grid; gap: 12px; }
.cart-line { display: grid; grid-template-columns: 84px 1fr 80px 110px auto; gap: 16px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); }
.cart-line h3 { margin: 0; font-size: 1rem; } .cart-line p { margin: 0; }
.cart-thumb { border-radius: 8px; overflow: hidden; aspect-ratio: 17/10; }
.cart-thumb .cover { width: 100%; height: 100%; }
.summary { background: var(--paper); border-radius: var(--radius-lg); padding: 24px; position: sticky; top: 90px; }
.summary dl { margin: 0 0 18px; } .summary dl div { display: flex; justify-content: space-between; padding: 6px 0; }
.summary dd { margin: 0; font-variant-numeric: tabular-nums; }
.summary .total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; font: 600 1.15rem var(--font-head); }
.summary-items { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; font-size: .92rem; }
.summary-items li { display: flex; justify-content: space-between; gap: 12px; }

/* Status pills & tables */
.status { display: inline-block; font-size: .78rem; font-weight: 600; padding: .2rem .55rem; border-radius: 6px; background: var(--paper); }
.status-paid { background: #E9F5EF; color: var(--green); }
.status-pending, .status-verifying, .status-reserved { background: #FEF4E6; color: var(--saffron-deep); }
.status-cancelled { background: #FBECEB; color: var(--red); }
.table-wrap { overflow-x: auto; margin-bottom: 32px; border: 1px solid var(--line); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th { text-align: left; font-weight: 600; font-size: .85rem; color: var(--slate); background: var(--paper); }
.table th, .table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table.compact td { padding: 9px 0; } .table.compact td:last-child { text-align: right; font-weight: 500; }
.actions { white-space: nowrap; text-align: right; }
.dash-head { display: flex; align-items: center; gap: 20px; }
.dash-head > div:nth-child(2) { flex: 1; } .dash-head h1 { font-size: 2rem; margin: 0; } .dash-head p { margin: 0; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0 0 36px; }
.stat-row div { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); }
.stat-row dt { font-size: .85rem; color: var(--slate); } .stat-row dd { margin: 0; font: 700 1.6rem var(--font-head); }
.admin-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.admin-fields .span-2 { grid-column: span 2; }
.admin-nav { margin: 14px 0 0; }

/* ---------- Market page ---------- */
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; }
.panel-title { font-size: 1.1rem; margin-bottom: 12px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.panel-head .panel-title { margin: 0; }
.market-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.symbol-form { display: flex; gap: 8px; }
.symbol-form input { width: 230px; padding: .5rem .75rem; text-transform: uppercase; }
.chart-split { display: grid; grid-template-columns: 1fr 330px; gap: 16px; }
.adv-chart { height: 520px; } .ta-gauge { height: 450px; }
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.calc-out { grid-column: span 2; display: block; background: var(--paper); border-radius: var(--radius); padding: 16px; font-size: .95rem; }
.calc-out b { font: 700 1.5rem var(--font-head); display: block; }
.network-grid { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.side { display: grid; gap: 20px; position: sticky; top: 90px; }
.composer { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px; margin-bottom: 20px; }
.composer textarea { border: 0; padding: 4px; box-shadow: none; }
.composer-foot { display: flex; justify-content: space-between; gap: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.composer-foot select { width: auto; padding: .45rem .7rem; }
.composer-locked { background: var(--paper); text-align: center; } .composer-locked p { margin: 0; }
.member-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 4px; }
.member-list a { display: flex; gap: 10px; align-items: center; text-decoration: none; padding: 8px; border-radius: 10px; }
.member-list a:hover { background: var(--paper); color: var(--ink); }
.member-list small { display: block; color: var(--slate); font-size: .8rem; }
.rules { padding-left: 1.1rem; margin: 0; display: grid; gap: 6px; font-size: .93rem; }
.mini-facts { display: grid; gap: 8px; margin: 0; font-size: .92rem; }
.mini-facts div { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 8px; }
.mini-facts dd { margin: 0; font-weight: 500; }
.msg { margin-bottom: 12px; } .msg p:last-of-type { margin-bottom: .5rem; }

/* Article */
.article { max-width: 760px; }
.article-chart { margin: 24px 0; padding: 8px; }
.prose p { line-height: 1.75; }
.note { font-size: .85rem; color: var(--slate); border-top: 1px solid var(--line); padding-top: 16px; margin-top: 32px; }
.link-list { padding-left: 1.1rem; display: grid; gap: 6px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #C8D0E0; padding: 56px 0 24px; font-size: .93rem; }
.site-footer a { color: #E8ECF4; text-decoration: none; }
.site-footer a:hover { color: var(--saffron); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid > div { display: grid; gap: 8px; align-content: start; }
.footer-grid h4 { color: var(--white); font-size: .95rem; margin: 0 0 4px; }
.footer-logo { width: 250px; margin-bottom: 8px; }
.footer-addr { line-height: 1.7; }
.disclaimer { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: 24px; font-size: .8rem; color: #8F9AB0; }
.disclaimer p { margin: 0; max-width: 90ch; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .course-hero-grid, .course-body, .checkout-grid, .network-grid, .market-grid, .two-col, .auth-wrap, .chart-split { grid-template-columns: 1fr; }
  .summary, .side { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: inline-flex; font: 600 .9rem var(--font-body); padding: .55rem .9rem; border: 2px solid var(--ink); border-radius: 10px; background: none; color: var(--ink); cursor: pointer; }
  .main-nav { display: none; position: absolute; top: 70px; left: 0; right: 0; background: var(--white); flex-direction: column; align-items: stretch; padding: 12px 20px 20px; gap: 4px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: .7rem 0; }
  .nav-sep { width: 100%; height: 1px; margin: 6px 0; }
  .ta-gauge { height: 420px; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4, .paths, .row-2, .admin-fields, .calc, .stat-row { grid-template-columns: 1fr; }
  .admin-fields .span-2, .calc-out { grid-column: auto; }
  .path + .path { border-left: 0; border-top: 1px solid var(--line); }
  .batch { grid-template-columns: 60px 1fr; }
  .batch-seats, .batch .price { grid-column: 2; }
  .cart-line { grid-template-columns: 70px 1fr; }
  .cart-line > :nth-child(n+3) { grid-column: 2; }
  .facts { grid-template-columns: 1fr 1fr; }
  .hero { padding: 40px 0 48px; }
  .hero-facts { gap: 1.5rem; }
  .terminal-body { height: 300px; }
  .cta-band-inner, .disclaimer, .dash-head { flex-direction: column; align-items: flex-start; }
  .mkt-status { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .symbol-form { width: 100%; } .symbol-form input { width: auto; flex: 1; }
  .adv-chart { height: 420px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
.main-nav a.btn { padding: .55rem .95rem; }

/* ===== News & analysis edition ===== */
.dash-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 28px; align-items: start; }
.idea-stack { display: grid; gap: 14px; }
.idea-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; }
.idea-card h3 { margin: .5rem 0 .35rem; } .idea-card h3 a { text-decoration: none; }
.idea-card .card-text { flex: 1; margin-bottom: .75rem; }
.idea-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sym { font: 600 .82rem var(--font-head); background: var(--ink); color: var(--white); padding: .2rem .55rem; border-radius: 6px; letter-spacing: .01em; }
.bias { display: inline-block; font-size: .78rem; font-weight: 600; padding: .18rem .55rem; border-radius: 999px; }
.bias-up { background: #E9F5EF; color: var(--green); }
.bias-down { background: #FBECEB; color: var(--red); }
.bias-flat { background: #EEF1F6; color: var(--slate); }
.bias-lg { font-size: 1rem; padding: .35rem .9rem; }
.levels { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 .75rem; }
.levels div { background: var(--paper); border-radius: 8px; padding: 8px 10px; }
.levels dt { font-size: .75rem; color: var(--slate); } .levels dd { margin: 0; font-size: .88rem; font-weight: 500; }
.idea-foot { margin: 0; padding-top: 10px; border-top: 1px solid var(--line); }
.quick-search { display: flex; gap: 8px; margin-top: 1.75rem; max-width: 520px; }
.quick-search input { flex: 1; }
.sub-head { font-size: 1rem; margin: 1.5rem 0 .5rem; }
.data-note { font-size: .8rem; color: var(--slate); padding-top: 14px; padding-bottom: 14px; margin: 0; }
.chart-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.chart-head .symbol-form input { background: rgba(255,255,255,.95); }
.symbol-info { min-height: 110px; margin-bottom: 14px; }
.panel-flush { padding: 0; overflow: hidden; }
.chart-split { grid-template-columns: 1fr 340px; }
.adv-chart { height: 600px; }
.ta-gauge { height: 470px; }
.quick-syms { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.fundamentals { min-height: 480px; } .profile-w { min-height: 360px; }
.news-grid { display: grid; grid-template-columns: 1fr 400px; gap: 40px; align-items: start; }
.news-item { padding: 20px 0; border-bottom: 1px solid var(--line); }
.news-item h2 { font-size: 1.25rem; margin: .4rem 0 .4rem; } .news-item h2 a { text-decoration: none; }
.news-item p:last-child { margin: 0; color: var(--slate); }
.news-lead h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.news-lead { padding-top: 6px; }
.news-feed { min-height: 640px; }
.pager { display: flex; gap: 10px; margin-top: 20px; }
.seg { display: inline-flex; background: var(--paper); border-radius: 10px; padding: 3px; }
.seg button { font: 500 .82rem var(--font-body); border: 0; background: none; padding: .4rem .7rem; border-radius: 8px; cursor: pointer; color: var(--slate); }
.seg button[aria-selected="true"] { background: var(--white); color: var(--ink); box-shadow: 0 1px 3px rgba(20,33,61,.12); }
.article-grid { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }
.article-grid .article { max-width: none; }
.view-box .bias { margin-bottom: 6px; }
.setup-box { border-color: var(--saffron); border-width: 2px; }
.dash-links { margin: 8px 0 8px; }
@media (max-width: 1020px) {
  .dash-grid, .news-grid, .article-grid { grid-template-columns: 1fr; }
  .chart-split { grid-template-columns: 1fr; }
  .adv-chart { height: 480px; }
}
@media (max-width: 640px) {
  .quick-search { flex-direction: column; }
  .levels { grid-template-columns: 1fr 1fr; }
  .chart-head .symbol-form { width: 100%; }
  .adv-chart { height: 420px; }
}
