/* ============================================================
   BotTrading — "Light Fintech" theme (v2, radical redesign)
   White canvas, bold ink type, electric-blue accent, list-style
   bots, split hero with a live product panel, sidebar dashboard.
   ============================================================ */
:root {
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --bg-ink: #0a0f1f;          /* dark footer / contrast blocks */
  --ink: #0b1020;             /* headings */
  --body: #39435c;            /* body text */
  --muted: #6b7590;
  --dim: #97a0b6;
  --line: #e9ecf3;
  --line-2: #dbe0ec;
  --brand: #2f5bff;
  --brand-2: #1b39c9;
  --brand-soft: rgba(47, 91, 255, 0.08);
  --up: #10b877;
  --down: #f04438;
  --amber: #f59e0b;
  --radius: 18px;
  --radius-sm: 11px;
  --maxw: 1180px;
  --mono: "JetBrains Mono", "Roboto Mono", ui-monospace, monospace;
  --sans: "Inter", system-ui, sans-serif;
  --head: "Space Grotesk", var(--sans);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --sh-sm: 0 1px 2px rgba(16, 24, 40, 0.05), 0 1px 3px rgba(16, 24, 40, 0.08);
  --sh: 0 12px 30px -14px rgba(16, 24, 40, 0.22);
  --sh-lg: 0 34px 70px -26px rgba(16, 24, 40, 0.32);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--bg); color: var(--body); line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.mono { font-family: var(--mono); font-feature-settings: "tnum" 1; }
.pos { color: var(--up); }
.hidden { display: none !important; }
/* legacy glow elements are unused in light theme */
.bg-glow { display: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; position: relative; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-weight: 600; font-size: 0.92rem;
  padding: 12px 20px; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  transition: transform 0.14s var(--ease), box-shadow 0.16s, background 0.16s, border-color 0.16s, color 0.16s;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 22px -10px rgba(47, 91, 255, 0.7); }
.btn-primary:hover { background: var(--brand-2); transform: translateY(-1px); box-shadow: 0 16px 30px -12px rgba(47, 91, 255, 0.75); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-2); box-shadow: var(--sh-sm); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #1a2338; transform: translateY(-1px); }
.btn-lg { padding: 15px 28px; font-size: 1rem; }
.btn-sm { padding: 9px 16px; font-size: 0.84rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 16px; padding: 15px 24px; max-width: var(--maxw); margin: 0 auto; }
.nav.solid { backdrop-filter: blur(12px); background: rgba(255, 255, 255, 0.82); border-bottom: 1px solid var(--line); max-width: none; padding-left: max(24px, calc((100vw - var(--maxw)) / 2)); padding-right: max(24px, calc((100vw - var(--maxw)) / 2)); }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 700; font-size: 1.18rem; color: var(--ink); letter-spacing: -0.01em; }
.brand .mark { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; background: var(--brand); color: #fff; font-size: 1rem; box-shadow: 0 6px 14px -4px rgba(47, 91, 255, 0.6); }
.brand b { color: var(--brand); }
.nav-links { display: flex; gap: 28px; margin-left: 20px; }
.nav-links a { color: var(--muted); font-size: 0.92rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; gap: 10px; margin-left: auto; align-items: center; }
.nav-user { color: var(--ink); font-weight: 600; font-size: 0.9rem; }

/* ============================================================
   HERO — split: copy left, live product panel right
   ============================================================ */
.hero-split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; padding: 56px 0 40px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 600; color: var(--brand); background: var(--brand-soft); padding: 7px 14px; border-radius: 999px; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 3px rgba(16, 184, 119, 0.18); }
.hero-copy h1 { font-family: var(--head); font-size: clamp(2.5rem, 5.4vw, 4rem); line-height: 1.02; letter-spacing: -0.035em; color: var(--ink); margin: 20px 0 18px; font-weight: 700; }
.hero-copy h1 .grad { color: var(--brand); }
.hero-copy .lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 520px; margin-bottom: 26px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-trust { display: flex; align-items: center; gap: 18px; margin-top: 26px; color: var(--muted); font-size: 0.86rem; }
.hero-trust .stars { color: var(--amber); letter-spacing: 2px; }
.hero-trust b { color: var(--ink); }

/* live product panel */
.panelcard { background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--sh-lg); padding: 18px; position: relative; }
.panelcard::after { content: ""; position: absolute; inset: -1px; border-radius: 22px; padding: 1px; background: linear-gradient(160deg, rgba(47,91,255,.35), transparent 40%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.pc-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 14px; border-bottom: 1px solid var(--line); }
.pc-head .who { display: flex; align-items: center; gap: 9px; font-weight: 600; color: var(--ink); font-size: 0.92rem; }
.pc-head .who i { width: 26px; height: 26px; border-radius: 7px; background: var(--brand); display: inline-grid; place-items: center; color: #fff; font-style: normal; font-size: 0.85rem; }
.pc-live { font-family: var(--mono); font-size: 0.7rem; color: var(--up); display: inline-flex; align-items: center; gap: 6px; }
.pc-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--up); animation: blink 1.4s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.pc-bal { padding: 16px 6px 6px; }
.pc-bal .lbl { color: var(--muted); font-size: 0.78rem; }
.pc-bal .val { font-family: var(--mono); font-size: 2.1rem; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }
.pc-bal .chg { color: var(--up); font-family: var(--mono); font-size: 0.84rem; }
.pc-chart { margin: 6px 0 14px; }
.pc-chart svg { width: 100%; height: 96px; display: block; }
.pc-bot { display: flex; align-items: center; gap: 12px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.pc-bot .ic { width: 34px; height: 34px; border-radius: 9px; background: #fff; border: 1px solid var(--line); color: var(--brand); display: grid; place-items: center; }
.pc-bot .ic svg { width: 19px; height: 19px; }
.pc-bot .nm { flex: 1; }
.pc-bot .nm b { display: block; color: var(--ink); font-size: 0.9rem; }
.pc-bot .nm span { color: var(--muted); font-size: 0.76rem; font-family: var(--mono); }
.pc-bot .pnl { color: var(--up); font-family: var(--mono); font-weight: 700; }

/* ---------- brand strip ---------- */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.strip .wrap { display: flex; align-items: center; gap: 34px; padding-top: 18px; padding-bottom: 18px; flex-wrap: wrap; justify-content: center; }
.strip span { color: var(--dim); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.02em; }

/* ---------- sections ---------- */
.section { padding: 72px 0; }
.section.alt { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 46px; }
.section-head .tag { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--brand); }
.section-head h2 { font-family: var(--head); font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 700; letter-spacing: -0.03em; color: var(--ink); margin-top: 8px; }
.section-head p { color: var(--muted); margin-top: 12px; font-size: 1.02rem; }

/* ============================================================
   BOTS — wide list rows (NOT a card grid)
   ============================================================ */
.bot-list { display: flex; flex-direction: column; gap: 14px; max-width: 960px; margin: 0 auto; }
.bot-row { display: grid; grid-template-columns: 1.4fr 1.1fr auto; align-items: center; gap: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; box-shadow: var(--sh-sm); transition: transform 0.14s var(--ease), box-shadow 0.18s, border-color 0.18s; }
.bot-row:hover { transform: translateY(-2px); box-shadow: var(--sh); border-color: var(--line-2); }
.brow-main { display: flex; align-items: center; gap: 16px; }
.brow-ic { width: 50px; height: 50px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: 0 0 auto; }
.brow-ic svg { width: 25px; height: 25px; }
.brow-name { font-family: var(--head); font-weight: 700; font-size: 1.18rem; color: var(--ink); display: flex; align-items: center; gap: 10px; }
.brow-desc { color: var(--muted); font-size: 0.86rem; margin-top: 2px; }
.bot-risk { font-family: var(--mono); font-size: 0.62rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; padding: 2px 8px; border-radius: 5px; }
.risk-Low { color: var(--up); background: rgba(16, 184, 119, 0.12); }
.risk-Medium { color: var(--amber); background: rgba(245, 158, 11, 0.14); }
.risk-High { color: var(--down); background: rgba(240, 68, 56, 0.12); }
.brow-mid { display: flex; align-items: center; gap: 18px; }
.brow-mid .spark { width: 90px; height: 40px; flex: 0 0 auto; }
.brow-stats { display: flex; flex-direction: column; gap: 3px; font-size: 0.82rem; color: var(--muted); }
.brow-stats .rate { font-family: var(--mono); font-size: 1.35rem; font-weight: 700; color: var(--up); line-height: 1; }
.brow-stats .rate small { font-family: var(--sans); font-size: 0.72rem; color: var(--dim); font-weight: 500; }
.brow-stats .sub { font-family: var(--mono); }
.brow-buy { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.brow-price { font-family: var(--mono); font-weight: 700; font-size: 1.5rem; color: var(--ink); }
.brow-price small { display: block; font-family: var(--sans); font-size: 0.7rem; color: var(--dim); font-weight: 500; text-align: right; }

/* ---------- platforms / exchanges ---------- */
.exch-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.exch { display: flex; align-items: center; gap: 13px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 15px 16px; box-shadow: var(--sh-sm); transition: transform 0.14s var(--ease), box-shadow 0.18s; }
.exch:hover { transform: translateY(-2px); box-shadow: var(--sh); }
.exch-badge { width: 40px; height: 40px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-family: var(--head); font-weight: 700; font-size: 0.9rem; flex: 0 0 auto; }
.exch-logo { width: 40px; height: 40px; border-radius: 10px; object-fit: contain; background: var(--bg-soft); border: 1px solid var(--line); padding: 6px; flex: 0 0 auto; }
.exch b { display: block; color: var(--ink); font-size: 0.96rem; }
.exch span { color: var(--muted); font-size: 0.76rem; }

/* ---------- referral tiers (homepage) ---------- */
.ref-tier-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.ref-tier { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-align: center; box-shadow: var(--sh-sm); position: relative; overflow: hidden; }
.ref-tier::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--brand), #5b8cff); }
.ref-tier-lvl { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.ref-tier-pct { font-family: var(--mono); font-size: 2.6rem; font-weight: 700; color: var(--brand); letter-spacing: -0.03em; margin: 6px 0 8px; }
.ref-tier p { color: var(--muted); font-size: 0.86rem; }
.ref-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; box-shadow: var(--sh-sm); }
.ref-cta div { color: var(--body); font-size: 0.95rem; max-width: 640px; }
.ref-cta b { color: var(--ink); }

/* ---------- earnings model (principal-return) ---------- */
.money-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 14px; align-items: center; max-width: 960px; margin: 0 auto; }
.money-step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; text-align: center; box-shadow: var(--sh-sm); }
.money-step.highlight { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft), var(--sh); }
.money-no { width: 36px; height: 36px; border-radius: 11px; background: var(--brand-soft); color: var(--brand); display: inline-grid; place-items: center; font-family: var(--head); font-weight: 700; margin-bottom: 12px; }
.money-step > b { display: block; color: var(--ink); font-family: var(--head); font-size: 1.05rem; }
.money-step p { color: var(--muted); font-size: 0.9rem; margin-top: 5px; }
.money-arrow { color: var(--brand); font-size: 1.5rem; font-weight: 700; text-align: center; }
.money-foot { text-align: center; color: var(--muted); margin-top: 26px; font-size: 0.96rem; }

/* ---------- reviews ---------- */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.review { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--sh-sm); }
.review-stars { color: var(--amber); letter-spacing: 2px; font-size: 0.95rem; }
.review p { color: var(--body); margin: 12px 0 18px; font-size: 0.95rem; line-height: 1.6; }
.review-by { display: flex; align-items: center; gap: 11px; }
.review-av { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), #6a3df5); color: #fff; display: grid; place-items: center; font-weight: 700; font-family: var(--head); }
.review-by b { display: block; color: var(--ink); font-size: 0.92rem; }
.review-by small { color: var(--muted); font-size: 0.8rem; }

/* ---------- metrics band ---------- */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,0.1); border-radius: 20px; overflow: hidden; margin: 20px 0; background-color: var(--bg-ink); }
.metric { padding: 34px 20px; text-align: center; background: var(--bg-ink); position: relative; }
.metric:not(:last-child)::after { content: ""; position: absolute; right: 0; top: 22%; height: 56%; width: 1px; background: rgba(255,255,255,0.1); }
.metric b { display: block; font-family: var(--mono); font-size: 2.1rem; font-weight: 700; color: #fff; letter-spacing: -0.02em; }
.metric span { color: rgba(255,255,255,0.55); font-size: 0.82rem; }

/* ---------- steps timeline ---------- */
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; max-width: 940px; margin: 0 auto; position: relative; }
.flow-step { text-align: center; padding: 0 22px; position: relative; }
.flow-step:not(:last-child)::after { content: ""; position: absolute; top: 26px; right: -0; left: 50%; width: 100%; height: 2px; background: repeating-linear-gradient(90deg, var(--line-2) 0 8px, transparent 8px 16px); z-index: 0; }
.flow-step .no { width: 54px; height: 54px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 16px; background: #fff; border: 1px solid var(--line-2); box-shadow: var(--sh-sm); font-family: var(--head); font-weight: 700; font-size: 1.3rem; color: var(--brand); position: relative; z-index: 1; }
.flow-step h3 { font-family: var(--head); font-size: 1.12rem; color: var(--ink); margin-bottom: 6px; }
.flow-step p { color: var(--muted); font-size: 0.9rem; }

/* ---------- features grid ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--sh-sm); transition: transform 0.14s var(--ease), box-shadow 0.18s; }
.feat:hover { transform: translateY(-3px); box-shadow: var(--sh); }
.feat .fi { width: 46px; height: 46px; border-radius: 13px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 14px; }
.feat .fi svg { width: 23px; height: 23px; }
.feat h3 { font-family: var(--head); font-size: 1.1rem; color: var(--ink); margin-bottom: 6px; }
.feat p { color: var(--muted); font-size: 0.9rem; }

/* ---------- faq (two-column) ---------- */
.faq-wrap { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 54px; align-items: start; }
.faq-aside { position: sticky; top: 96px; }
.faq-aside .tag { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--brand); }
.faq-aside h2 { font-family: var(--head); font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 700; letter-spacing: -0.03em; color: var(--ink); margin: 10px 0 14px; line-height: 1.06; }
.faq-aside p { color: var(--muted); font-size: 1rem; max-width: 340px; margin-bottom: 26px; }
.faq-help { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--sh-sm); flex-wrap: wrap; }
.faq-help-ic { width: 42px; height: 42px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: 0 0 auto; }
.faq-help-ic svg { width: 21px; height: 21px; }
.faq-help-txt { flex: 1; min-width: 0; }
.faq-help-txt b { display: block; color: var(--ink); font-size: 0.92rem; }
.faq-help-txt span { color: var(--muted); font-size: 0.82rem; }
.faq-help .btn { width: 100%; margin-top: 4px; }
.faq-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--sh-sm); overflow: hidden; }
.faq-panel details { border-bottom: 1px solid var(--line); padding: 4px 24px; }
.faq-panel details:last-child { border-bottom: 0; }
.faq-panel summary { cursor: pointer; padding: 20px 0; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px; transition: color 0.15s; }
.faq-panel summary:hover { color: var(--brand); }
.faq-panel summary::-webkit-details-marker { display: none; }
.faq-panel summary::after { content: "+"; width: 26px; height: 26px; flex: 0 0 auto; border-radius: 7px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-size: 1.2rem; font-weight: 400; line-height: 1; transition: background 0.15s, color 0.15s; }
.faq-panel details[open] summary::after { content: "\2013"; background: var(--brand); color: #fff; }
.faq-panel details[open] summary { color: var(--brand); }
.faq-panel p { color: var(--muted); padding: 0 0 20px; font-size: 0.93rem; line-height: 1.6; }

/* ---------- CTA (bright split card) ---------- */
.cta2 { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 30px; align-items: center; margin: 40px auto; padding: 48px 52px; border-radius: 30px; position: relative; overflow: hidden; color: #fff; background: linear-gradient(115deg, #2f5bff 0%, #3b5bfd 45%, #6a3df5 100%); }
.cta2::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 90% 10%, rgba(255,255,255,0.18), transparent 45%), linear-gradient(transparent 0 43px, rgba(255,255,255,0.06) 43px 44px) 0 0 / 100% 44px, linear-gradient(90deg, transparent 0 43px, rgba(255,255,255,0.06) 43px 44px) 0 0 / 44px 100%; pointer-events: none; }
.cta2-copy { position: relative; }
.cta2-tag { display: inline-block; font-size: 0.78rem; font-weight: 600; color: #fff; background: rgba(255,255,255,0.16); padding: 6px 14px; border-radius: 999px; }
.cta2-copy h2 { font-family: var(--head); font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.06; margin: 16px 0 12px; }
.cta2-copy p { color: rgba(255,255,255,0.82); margin-bottom: 24px; max-width: 440px; }
.btn-white { background: #fff; color: var(--brand); box-shadow: 0 12px 26px -12px rgba(0,0,0,0.4); }
.btn-white:hover { background: #f0f3ff; transform: translateY(-1px); }
.cta2-visual { position: relative; display: flex; justify-content: center; }
.cta2-card { width: 100%; max-width: 300px; background: #fff; color: var(--ink); border-radius: 18px; padding: 20px; box-shadow: 0 30px 60px -20px rgba(0,0,0,0.45); }
.cta2-card-head { display: flex; align-items: center; justify-content: space-between; font-size: 0.82rem; color: var(--muted); }
.cta2-live { font-family: var(--mono); font-size: 0.68rem; color: var(--up); }
.cta2-amt { font-family: var(--mono); font-size: 2.1rem; font-weight: 700; color: var(--up); letter-spacing: -0.02em; margin: 4px 0 2px; }
.cta2-amt small { font-size: 1.1rem; color: var(--dim); }
.cta2-spark { height: 40px; margin: 8px 0; }
.cta2-spark svg { width: 100%; height: 40px; display: block; }
.cta2-card-row { display: flex; align-items: center; justify-content: space-between; font-size: 0.86rem; font-weight: 600; padding-top: 12px; border-top: 1px solid var(--line); }

/* ---------- content / legal pages ---------- */
.doc { padding: 36px 0 64px; }
.doc .wrap { max-width: 820px; }
.doc-back { color: var(--muted); font-size: 0.9rem; display: inline-block; margin-bottom: 18px; }
.doc-back:hover { color: var(--brand); }
.doc h1 { font-family: var(--head); font-size: clamp(1.9rem, 4vw, 2.6rem); color: var(--ink); letter-spacing: -0.02em; }
.doc-updated { color: var(--dim); font-size: 0.85rem; margin: 8px 0 26px; font-family: var(--mono); }
.doc-lead { font-size: 1.08rem; color: var(--muted); margin-bottom: 20px; }
.doc h2 { font-family: var(--head); font-size: 1.3rem; color: var(--ink); margin: 30px 0 10px; }
.doc h3 { font-size: 1.02rem; color: var(--ink); margin: 20px 0 8px; }
.doc p, .doc li { color: var(--body); line-height: 1.75; margin-bottom: 12px; }
.doc ul { padding-left: 22px; margin-bottom: 14px; }
.doc a { color: var(--brand); }
.doc a:hover { text-decoration: underline; }
.doc-note { background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--amber); border-radius: 10px; padding: 16px 18px; margin: 18px 0; box-shadow: var(--sh-sm); }
.doc-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 20px 0; }
.doc-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--sh-sm); }
.doc-card h3 { margin-top: 0; }
.doc-card p { font-size: 0.92rem; color: var(--muted); margin: 0; }
.status-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); }
.status-row:last-child { border-bottom: 0; }
.status-ok { color: var(--up); font-family: var(--mono); font-size: 0.86rem; font-weight: 600; display: inline-flex; align-items: center; gap: 7px; }
.status-ok::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--up); }
.job-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin-bottom: 10px; box-shadow: var(--sh-sm); }
.job-row b { color: var(--ink); }
.job-row small { color: var(--muted); }
@media (max-width: 640px) { .doc-cards { grid-template-columns: 1fr; } }

/* ---------- footer (LIGHT) ---------- */
.footer { background: #fff; color: var(--muted); margin-top: 60px; border-top: 3px solid var(--brand); }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr 1fr; gap: 30px; padding: 56px 24px 36px; }
.footer .brand { color: var(--ink); }
.footer-brand p { margin: 16px 0; max-width: 300px; font-size: 0.9rem; color: var(--muted); line-height: 1.6; }
.footer-social { display: flex; gap: 10px; margin-bottom: 16px; }
.footer-social a { width: 38px; height: 38px; border-radius: 11px; background: var(--bg-soft); border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink); transition: all 0.15s; }
.footer-social a:hover { background: var(--brand); border-color: var(--brand); color: #fff; transform: translateY(-2px); }
.footer-social svg { width: 17px; height: 17px; }
.footer-coins { display: flex; flex-wrap: wrap; gap: 6px; }
.footer-coins span { font-family: var(--mono); font-size: 0.68rem; color: var(--muted); background: var(--bg-soft); border: 1px solid var(--line); padding: 3px 8px; border-radius: 5px; }
.footer-col h4 { color: var(--ink); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 14px; }
.footer-col a { display: block; color: var(--muted); font-size: 0.9rem; padding: 6px 0; transition: color 0.15s; }
.footer-col a:hover { color: var(--brand); }
.footer-domain { font-family: var(--mono); font-size: 0.82rem; color: var(--brand); font-weight: 600; margin-top: -6px; }
.footer-company { padding: 20px 24px 0; font-size: 0.78rem; color: var(--dim); line-height: 1.6; max-width: var(--maxw); margin: 0 auto; }
.footer-company b { color: var(--muted); }
.footer-company a { color: var(--brand); }
.footer-company a:hover { text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px 24px 22px; font-size: 0.82rem; color: var(--dim); max-width: var(--maxw); margin: 0 auto; }

/* ============================================================
   AUTH — split screen (brand panel + form)
   ============================================================ */
.auth-split { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 100vh; }
/* left brand panel */
.auth-aside { position: relative; background: radial-gradient(120% 120% at 15% 10%, #1f39a8 0%, #0a1230 55%, #070b1c 100%); color: #fff; padding: 40px 48px; display: flex; flex-direction: column; overflow: hidden; }
.auth-aside::before { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 0 43px, rgba(255,255,255,0.04) 43px 44px) 0 0 / 100% 44px, linear-gradient(90deg, transparent 0 43px, rgba(255,255,255,0.04) 43px 44px) 0 0 / 44px 100%; pointer-events: none; }
.auth-aside-brand { color: #fff; font-size: 1.35rem; position: relative; }
.auth-aside-brand .mark { background: #fff; color: var(--brand); }
.auth-aside-brand b { color: #9fc0ff; }
.auth-aside-mid { margin: auto 0; position: relative; }
.auth-aside-mid h2 { font-family: var(--head); font-size: clamp(1.6rem, 2.6vw, 2.3rem); font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; margin-bottom: 26px; }
.auth-points { list-style: none; display: flex; flex-direction: column; gap: 13px; margin-bottom: 30px; }
.auth-points li { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,0.9); font-size: 0.98rem; }
.auth-points li span { width: 24px; height: 24px; border-radius: 50%; background: rgba(63,245,139,0.16); color: #4ef0a0; display: grid; place-items: center; font-size: 0.8rem; flex: 0 0 auto; }
.auth-aside-stat { display: flex; gap: 32px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,0.12); }
.auth-aside-stat b { display: block; font-family: var(--mono); font-size: 1.5rem; font-weight: 700; }
.auth-aside-stat span { color: rgba(255,255,255,0.6); font-size: 0.8rem; }
.auth-aside-quote { position: relative; color: rgba(255,255,255,0.72); font-size: 0.9rem; font-style: italic; line-height: 1.5; }
.auth-aside-quote b { color: #fff; font-style: normal; }
/* right form panel */
.auth-panel { display: grid; place-items: center; padding: 40px 24px; background: var(--bg); }
.auth-inner { width: 100%; max-width: 400px; }
.auth-mobile-brand { display: none; justify-content: center; margin-bottom: 24px; font-size: 1.35rem; color: var(--ink); }
.auth-inner h1 { font-family: var(--head); font-size: 1.8rem; color: var(--ink); letter-spacing: -0.02em; }
.auth-sub { color: var(--muted); margin: 6px 0 22px; font-size: 0.95rem; }
.auth-tabs { display: flex; gap: 4px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 4px; margin-bottom: 22px; }
.auth-tab { flex: 1; padding: 11px; border: 0; background: none; color: var(--muted); font-weight: 600; font-family: var(--sans); border-radius: 9px; cursor: pointer; transition: all 0.15s; }
.auth-tab.active { background: #fff; color: var(--ink); box-shadow: var(--sh-sm); }
.auth-form { display: flex; flex-direction: column; gap: 15px; }
.auth-form label { display: flex; flex-direction: column; gap: 6px; font-size: 0.82rem; color: var(--ink); font-weight: 600; }
.auth-form input, .auth-form select { width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: #fff; color: var(--ink); font-family: var(--sans); font-size: 0.94rem; outline: none; transition: border-color 0.15s, box-shadow 0.15s; }
.auth-form input:focus, .auth-form select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.auth-form .opt { color: var(--dim); font-weight: 400; }
.phone-row { display: flex; gap: 8px; }
.phone-row select { flex: 0 0 auto; width: 130px; }
.phone-row input { flex: 1; min-width: 0; }
.auth-err { color: var(--down); font-size: 0.86rem; min-height: 18px; text-align: center; margin-top: 8px; }
.auth-switch { text-align: center; color: var(--muted); font-size: 0.9rem; margin-top: 10px; }
.auth-switch a { color: var(--brand); font-weight: 600; cursor: pointer; }
.auth-switch a:hover { text-decoration: underline; }

/* ============================================================
   DASHBOARD — sidebar shell
   ============================================================ */
.app { display: grid; grid-template-columns: 244px 1fr; min-height: 100vh; }
.rail { position: sticky; top: 0; align-self: start; height: 100vh; background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 22px 16px; }
.rail-brand { margin: 4px 8px 26px; }
.rail-nav { display: flex; flex-direction: column; gap: 4px; }
.rail-link { display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-radius: 11px; color: var(--muted); font-weight: 500; font-size: 0.92rem; cursor: pointer; transition: background 0.15s, color 0.15s; }
.rail-link:hover { background: var(--bg-soft); color: var(--ink); }
.rail-link.active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.rail-link .ic { width: 18px; text-align: center; }
.rail-foot { margin-top: auto; padding: 12px 8px 0; border-top: 1px solid var(--line); }
.rail-user { font-size: 0.86rem; color: var(--ink); font-weight: 600; margin-bottom: 4px; }
.rail-user small { display: block; color: var(--dim); font-weight: 400; font-size: 0.76rem; }

.main { background: var(--bg-soft); min-width: 0; }
.topbar { display: flex; align-items: center; gap: 14px; padding: 22px 34px; border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 20; }
.topbar h1 { font-family: var(--head); font-size: 1.4rem; color: var(--ink); }
.topbar .sp { margin-left: auto; }
.dash { padding: 28px 34px 70px; max-width: 1120px; }

.dash-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.kpi { padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--sh-sm); display: flex; flex-direction: column; gap: 4px; }
.kpi span { color: var(--muted); font-size: 0.78rem; }
.kpi b { font-family: var(--mono); font-size: 1.7rem; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }
.kpi small { color: var(--dim); font-size: 0.74rem; }
.kpi b.pos { color: var(--up); }

.dash-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 22px; align-items: start; margin-bottom: 34px; }
.dash-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 4px 0 16px; }
.dash-head h2 { font-family: var(--head); font-size: 1.3rem; color: var(--ink); }
.pill { font-family: var(--mono); font-size: 0.74rem; font-weight: 600; color: var(--brand); background: var(--brand-soft); padding: 4px 11px; border-radius: 999px; }
.empty { color: var(--muted); text-align: center; padding: 32px; border: 1px dashed var(--line-2); border-radius: var(--radius); font-size: 0.9rem; background: #fff; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--sh-sm); }

.dash-side { display: flex; flex-direction: column; gap: 18px; }
.dash-side .card { padding: 22px; }
.dash-side h3 { font-family: var(--head); font-size: 1.05rem; color: var(--ink); margin-bottom: 12px; }
.side-form { display: flex; flex-direction: column; gap: 13px; }
.side-form label { display: flex; flex-direction: column; gap: 6px; font-size: 0.8rem; color: var(--ink); font-weight: 600; }
.side-form input, .side-form select { padding: 11px 13px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: #fff; color: var(--ink); font-family: var(--sans); font-size: 0.92rem; outline: none; transition: border-color 0.15s; }
.side-form input:focus, .side-form select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }

/* deposit address widget */
.dep-addr { display: flex; gap: 14px; align-items: center; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.dep-addr img { width: 88px; height: 88px; border-radius: 8px; background: #fff; border: 1px solid var(--line); flex: 0 0 auto; }
.dep-addr-box { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.dep-net { font-size: 0.72rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.dep-addr-box code { font-family: var(--mono); font-size: 0.72rem; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 7px; padding: 6px 8px; word-break: break-all; line-height: 1.35; }
.side-hint { color: var(--muted); font-size: 0.78rem; margin-top: 2px; }
.ref-box { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.ref-lbl { color: var(--muted); font-size: 0.76rem; margin-bottom: 6px; }
.ref-code { font-family: var(--mono); font-weight: 700; font-size: 1.25rem; letter-spacing: 0.08em; color: var(--brand); margin-bottom: 10px; }
.ref-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.ref-stats div { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 12px; text-align: center; }
.ref-stats b { display: block; font-family: var(--mono); font-size: 1.25rem; font-weight: 700; color: var(--ink); }
.ref-stats .pos, .ref-stats div:first-child b { color: var(--up); }
.ref-stats span { color: var(--muted); font-size: 0.74rem; }
.ref-tiers { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 6px; }
.ref-tiers span { font-family: var(--mono); font-size: 0.72rem; color: var(--brand); background: var(--brand-soft); padding: 3px 9px; border-radius: 6px; }
.dash-market { margin-bottom: 34px; }

/* active bots */
.active-bots { display: flex; flex-direction: column; gap: 14px; }
.abot { padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--sh-sm); }
.abot-top { display: flex; align-items: center; justify-content: space-between; }
.abot-name { font-family: var(--head); font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.abot-earned { text-align: right; font-size: 0.72rem; color: var(--muted); }
.abot-earned b { display: block; color: var(--up); font-family: var(--mono); font-size: 1.2rem; letter-spacing: -0.02em; }
.abot-sub { color: var(--muted); font-size: 0.82rem; margin: 6px 0 12px; font-family: var(--mono); }
.pbar { height: 7px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.pbar-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), #5b8cff); transition: width 0.6s var(--ease); }
.abot-foot { display: flex; justify-content: space-between; font-size: 0.76rem; color: var(--muted); margin-top: 8px; font-family: var(--mono); }

/* support tickets */
.ticket-list { display: flex; flex-direction: column; gap: 14px; }
.ticket-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--sh-sm); }
.ticket-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.ticket-top b { color: var(--ink); font-family: var(--head); }
.ticket-top small { color: var(--muted); font-size: 0.78rem; }
.tthread { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.tmsg { max-width: 85%; padding: 9px 12px; border-radius: 12px; font-size: 0.88rem; }
.tmsg.user { align-self: flex-end; background: var(--brand-soft); border: 1px solid rgba(47,91,255,.18); }
.tmsg.admin { align-self: flex-start; background: var(--bg-soft); border: 1px solid var(--line); }
.tmsg-from { display: block; font-size: 0.68rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.tmsg p { color: var(--ink); margin: 3px 0; white-space: pre-wrap; word-break: break-word; }
.tmsg time { font-size: 0.68rem; color: var(--dim); font-family: var(--mono); }
.treply { display: flex; gap: 8px; flex-wrap: wrap; }
.treply input { flex: 1; min-width: 160px; }
.tclosed { font-size: 0.82rem; color: var(--muted); font-style: italic; }
#support textarea, .side-form textarea { width: 100%; padding: 11px 13px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: #fff; color: var(--ink); font-family: var(--sans); font-size: 0.92rem; outline: none; resize: vertical; }
#support textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }

/* settings panel */
.settings-panel { padding: 20px; margin-top: 14px; }
.set-block { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 9px; }
.set-block:last-of-type { border-bottom: 0; }
.set-lbl { font-size: 0.82rem; font-weight: 600; color: var(--ink); }
.set-inp { width: 100%; padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: #fff; color: var(--ink); font-family: var(--sans); font-size: 0.9rem; outline: none; transition: border-color 0.15s; }
.set-inp:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.set-row { display: flex; gap: 8px; }
.set-row .set-inp { flex: 1; }
.set-row .btn { flex: 0 0 auto; }
.set-hint { font-size: 0.8rem; color: var(--muted); }
.set-msg { font-size: 0.84rem; text-align: center; margin-top: 6px; min-height: 16px; }
.set-msg.ok { color: var(--up); }
.set-msg.bad { color: var(--down); }
.twofa-on { font-size: 0.86rem; color: var(--ink); background: rgba(16,184,119,.1); border: 1px solid rgba(16,184,119,.25); border-radius: 10px; padding: 10px 12px; }
.twofa-setup { display: flex; align-items: center; gap: 12px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.twofa-qr { width: 96px; height: 96px; border-radius: 8px; background: #fff; border: 1px solid var(--line); flex: 0 0 auto; }
.twofa-key { font-family: var(--mono); font-size: 0.72rem; color: var(--ink); word-break: break-all; line-height: 1.4; }
.kyc-pending { font-size: 0.86rem; color: var(--ink); background: rgba(245,158,11,.1); border: 1px solid rgba(245,158,11,.28); border-radius: 10px; padding: 10px 12px; }
.kyc-upload { display: block; text-align: center; border: 1px dashed var(--line-2); border-radius: 10px; padding: 12px; font-size: 0.86rem; color: var(--muted); cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.kyc-upload:hover { border-color: var(--brand); background: var(--brand-soft); }
/* admin kyc cards */
.kyc-admin-list { display: flex; flex-direction: column; gap: 12px; }
.kyc-card { display: grid; grid-template-columns: 1.4fr auto auto; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--sh-sm); }
.kyc-info b { color: var(--ink); }
.kyc-info small { color: var(--muted); }
.kyc-imgs { display: flex; gap: 10px; }
.kyc-thumb { display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: pointer; }
.kyc-thumb img { width: 68px; height: 68px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); background: var(--bg-soft); }
.kyc-thumb small { color: var(--muted); font-size: 0.7rem; }
@media (max-width: 760px) { .kyc-card { grid-template-columns: 1fr; } }
.payout-inp { font-family: var(--mono); font-size: 0.76rem; }
.auto-row { display: flex; gap: 8px; }
.auto-row select { flex: 1; }
.auto-status { font-family: var(--mono); font-size: 0.74rem; color: var(--muted); margin-top: 6px; }
.auto-status.on { color: var(--up); }

/* projected earnings panel */
.earn-panel { padding: 20px; margin-top: 14px; }
.earn-amt { font-family: var(--mono); font-size: 2rem; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; margin-top: 4px; }
.earn-sub { color: var(--muted); font-size: 0.82rem; }
.earn-chart { margin: 12px 0 6px; }
.earn-chart svg { width: 100%; height: 90px; display: block; }
.earn-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 6px; }
.earn-stats div { text-align: center; }
.earn-stats span { color: var(--muted); font-size: 0.72rem; display: block; margin-bottom: 2px; }
.earn-stats b { font-family: var(--mono); font-size: 1.02rem; color: var(--ink); }

/* markets widget */
.markets-list { display: flex; flex-direction: column; }
.mkt-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mkt-row:last-child { border-bottom: 0; }
.mkt-coin { display: flex; align-items: center; gap: 10px; }
.mkt-ic { width: 30px; height: 30px; border-radius: 8px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 700; font-size: 0.95rem; flex: 0 0 auto; }
.mkt-coin b { display: block; font-size: 0.88rem; color: var(--ink); }
.mkt-coin span { font-size: 0.72rem; color: var(--muted); }
.mkt-spark { width: 70px; height: 26px; }
.mkt-price { text-align: right; }
.mkt-price b { display: block; font-family: var(--mono); font-size: 0.86rem; color: var(--ink); }
.mkt-price span { font-family: var(--mono); font-size: 0.72rem; }
.mkt-price .neg { color: var(--down); }

/* live trading panel */
.live-panel { padding: 20px; margin-top: 14px; }
.live-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.live-title { display: flex; align-items: center; gap: 8px; font-family: var(--head); font-weight: 700; color: var(--ink); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 3px rgba(16,184,119,.18); animation: blink 1.4s infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
.live-pairs { display: flex; gap: 5px; }
.live-pair { font-family: var(--mono); font-size: 0.72rem; font-weight: 600; color: var(--muted); background: var(--bg-soft); border: 1px solid var(--line); border-radius: 7px; padding: 4px 8px; cursor: pointer; transition: all 0.15s; }
.live-pair.on { background: var(--brand-soft); border-color: transparent; color: var(--brand); }
.live-quote { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 4px; flex-wrap: wrap; }
.live-quote b { font-family: var(--mono); font-size: 1.5rem; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }
.live-quote .neg { color: var(--down); }
.live-sub { margin-left: auto; font-family: var(--mono); font-size: 0.78rem; color: var(--muted); }
.live-chart svg { width: 100%; height: 96px; display: block; }
.live-feed { margin-top: 10px; border-top: 1px solid var(--line); }
.trade-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 0.82rem; animation: tradeIn 0.35s var(--ease); }
.trade-row:last-child { border-bottom: 0; }
@keyframes tradeIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.t-side { font-family: var(--mono); font-size: 0.66rem; font-weight: 700; padding: 2px 7px; border-radius: 5px; }
.t-side.buy { color: var(--up); background: rgba(16,184,119,.12); }
.t-side.sell { color: var(--down); background: rgba(240,68,56,.12); }
.t-pair { font-family: var(--mono); color: var(--body); }
.t-pnl { margin-left: auto; font-family: var(--mono); font-weight: 700; }
.t-pnl.neg { color: var(--down); }

/* market grid inside dashboard */
.bots-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.bot { padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--sh-sm); position: relative; transition: transform 0.14s var(--ease), box-shadow 0.18s; }
.bot:hover { transform: translateY(-3px); box-shadow: var(--sh); }
.bot .bot-risk { position: absolute; top: 18px; right: 18px; }
.bot-name { font-family: var(--head); font-size: 1.15rem; font-weight: 700; color: var(--ink); }
.bot-blurb { color: var(--muted); font-size: 0.86rem; margin: 4px 0 10px; min-height: 38px; }
.bot-spark { width: 100%; height: 34px; display: block; margin: 2px 0 10px; }
.bot-rate { font-family: var(--mono); font-weight: 700; font-size: 1.7rem; color: var(--up); }
.bot-rate small { font-family: var(--sans); font-size: 0.78rem; color: var(--dim); font-weight: 500; }
.bot-meta { display: flex; flex-direction: column; gap: 4px; margin: 12px 0; font-size: 0.82rem; color: var(--muted); }
.bot-meta b { color: var(--ink); }
.bot-price { font-family: var(--mono); font-weight: 700; font-size: 1.4rem; color: var(--ink); }
.bot-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--line); }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--sh-sm); }
.tbl { width: 100%; border-collapse: collapse; font-size: 0.86rem; min-width: 560px; }
.tbl th { text-align: left; padding: 14px 16px; color: var(--muted); font-weight: 600; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.tbl td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; color: var(--body); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr:hover td { background: var(--bg-soft); }
.tbl small { color: var(--dim); }
.tnote { color: var(--muted); font-size: 0.8rem; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--mono); }
.st { font-family: var(--mono); font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; padding: 3px 9px; border-radius: 6px; }
.st-pending { color: var(--amber); background: rgba(245, 158, 11, 0.13); }
.st-done { color: var(--up); background: rgba(16, 184, 119, 0.13); }
.st-rejected { color: var(--down); background: rgba(240, 68, 56, 0.12); }
.row-actions { display: flex; gap: 8px; }

/* admin */
.search-inp { padding: 11px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: #fff; color: var(--ink); font-family: var(--sans); outline: none; min-width: 240px; }
.search-inp:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.credit-box { padding: 20px; margin-bottom: 16px; }
.credit-box h3 { font-family: var(--head); font-size: 1rem; color: var(--ink); margin-bottom: 12px; }
.credit-form { display: flex; gap: 10px; flex-wrap: wrap; }
.credit-form input { flex: 1; min-width: 160px; padding: 11px 13px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: #fff; color: var(--ink); font-family: var(--sans); outline: none; }
.credit-form input:focus { border-color: var(--brand); }

/* deposit wallets (read-only status) */
.wallet-list { display: flex; flex-direction: column; gap: 10px; }
.wallet-row { display: grid; grid-template-columns: 120px 1fr auto; align-items: center; gap: 12px; }
.wallet-row.ro { padding: 10px 12px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; }
.wallet-coin b { display: block; font-family: var(--head); color: var(--ink); }
.wallet-coin span { font-size: 0.74rem; color: var(--muted); }
.wallet-sample { min-width: 0; font-family: var(--mono); font-size: 0.76rem; color: var(--body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wallet-status { font-family: var(--mono); font-size: 0.74rem; color: var(--muted); white-space: nowrap; text-align: right; }
.wallet-status.ok { color: var(--up); }
.wallet-status.err { color: var(--down); }
.pill.off { color: var(--down); background: rgba(240,68,56,.1); }

/* admin analytics */
.an-totals { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 16px; }
.an-total { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--sh-sm); }
.an-total span { color: var(--muted); font-size: 0.78rem; display: block; }
.an-total b { font-family: var(--mono); font-size: 1.4rem; color: var(--ink); }
.an-total.online { border-color: rgba(16,184,119,.35); background: linear-gradient(160deg, rgba(16,184,119,.08), #fff); }
.an-total.online span { display: inline-flex; align-items: center; gap: 6px; }
.an-total.online b { color: var(--up); }
.an-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.an-card { padding: 18px; }
.an-card h3 { font-family: var(--head); font-size: 1rem; color: var(--ink); margin-bottom: 12px; }
.an-chart svg rect { transition: opacity 0.15s; }
.an-chart svg rect:hover { opacity: 0.7; }
.an-bars { display: flex; flex-direction: column; gap: 9px; }
.an-bar { display: grid; grid-template-columns: 110px 1fr 32px; align-items: center; gap: 10px; font-size: 0.84rem; }
.an-bar-lbl { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.an-bar-track { height: 8px; background: var(--bg-soft); border-radius: 999px; overflow: hidden; }
.an-bar-fill { height: 100%; background: linear-gradient(90deg, var(--brand), #5b8cff); border-radius: 999px; }
.an-bar-n { font-family: var(--mono); color: var(--muted); text-align: right; }
@media (max-width: 900px) { .an-totals { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .an-grid { grid-template-columns: 1fr; } }

/* cold-wallet destination inputs */
.cold-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; margin-bottom: 14px; }
.cold-row { display: flex; flex-direction: column; gap: 6px; }
.cold-lbl { font-family: var(--head); font-weight: 700; color: var(--ink); font-size: 0.9rem; }
.cold-lbl small { font-family: var(--sans); font-weight: 400; color: var(--muted); font-size: 0.74rem; margin-left: 6px; }
.cold-inp { width: 100%; font-family: var(--mono); font-size: 0.76rem; }
@media (max-width: 760px) { .cold-list { grid-template-columns: 1fr; } }
.gas-wallets { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.gas-note { font-size: 0.82rem; color: var(--muted); margin-bottom: 4px; }
.gas-note b { color: var(--ink); }
@media (max-width: 760px) {
  .wallet-row { grid-template-columns: 1fr auto; }
  .wallet-sample { grid-column: 1 / -1; order: 3; }
}

/* section headings reused on admin/dashboard sub-sections */
.main .dash-head h2, .dash .dash-head h2 { font-size: 1.25rem; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; border: 1px solid rgba(255,255,255,.12); padding: 13px 22px; border-radius: 12px; font-weight: 600; font-size: 0.88rem; box-shadow: var(--sh-lg); opacity: 0; pointer-events: none; z-index: 900; transition: opacity 0.25s, transform 0.25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.bad, .toast.err { background: var(--down); }

/* auth split-screen → single column on mobile (show form, hide brand panel) */
@media (max-width: 820px) {
  .auth-split { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .auth-mobile-brand { display: flex; }
}
@media (max-width: 600px) {
  .section { padding: 48px 0; }
  .hero-split { padding: 30px 0 20px; }
  .reviews-grid, .exch-grid, .ref-tier-grid, .metrics, .dash-cards { grid-template-columns: 1fr; }
  .cta2 { padding: 30px 22px; }
  .nav { gap: 8px; padding: 12px 16px; }
  .nav .nav-actions { gap: 7px; }
  .nav .nav-actions .btn { padding: 9px 13px; font-size: 0.85rem; }
  .wrap { padding: 0 18px; }
}

@media (max-width: 940px) {
  .hero-split, .dash-grid, .feat-grid, .bots-grid, .flow, .faq-wrap { grid-template-columns: 1fr; }
  .exch-grid, .ref-tier-grid, .metrics, .reviews-grid { grid-template-columns: 1fr 1fr; }
  .metric:not(:last-child)::after { display: none; }
  .money-flow { grid-template-columns: 1fr; }
  .money-arrow { transform: rotate(90deg); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .cta2 { grid-template-columns: 1fr; padding: 34px 26px; gap: 26px; }
  .cta2-visual { justify-content: flex-start; }
  .faq-wrap { gap: 30px; }
  .faq-aside { position: static; }
  .flow-step:not(:last-child)::after { display: none; }
  .flow-step { padding: 0 0 24px; }
  .dash-cards { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .bot-row { grid-template-columns: 1fr; gap: 16px; }
  .brow-buy { flex-direction: row; align-items: center; justify-content: space-between; }
  .app { grid-template-columns: 1fr; }
  .rail { position: static; height: auto; flex-direction: row; align-items: center; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--line); padding: 12px 16px; }
  .rail-brand { margin: 0 16px 0 4px; }
  .rail-nav { flex-direction: row; flex-wrap: wrap; }
  .rail-foot { margin: 0 0 0 auto; border-top: 0; padding: 0; }
  .topbar, .dash { padding-left: 20px; padding-right: 20px; }
}
