/* ===========================================================================
   SAM Trading — "Trading Terminal" dark theme
   Deep navy/black canvas, neon-blue glow, glass surfaces, motion.
   All legacy class names + CSS vars are preserved so every template keeps
   working; tokens are simply redefined for the dark palette.
   =========================================================================== */
:root {
  /* Blues / neon accent */
  --blue-700: #1d4ed8;
  --blue-600: #2f6bff;
  --blue-500: #4f8bff;
  --blue-400: #7aa9ff;
  --cyan:     #22d3ee;
  --neon:     #5b9bff;
  /* repurposed legacy "light" tokens → dark surfaces / translucent accents */
  --blue-100: rgba(95, 139, 255, .16);   /* chip / meter track fills        */
  --blue-050: #0c1430;                    /* elevated dark section bg        */
  --navy:     #eaf1ff;                    /* now the HEADING colour (light)  */

  /* Canvas + surfaces */
  --bg:       #05070f;
  --bg-2:     #080c1a;
  --panel:    #0c1226;
  --panel-2:  #0f1733;
  --glass:    rgba(20, 32, 68, .55);

  /* Text */
  --ink:      #e8eefc;
  --slate:    #93a3cc;
  --line:     rgba(120, 156, 255, .14);
  --line-2:   rgba(120, 156, 255, .26);
  --white:    #ffffff;

  /* Status */
  --green:    #22e08a;
  --red:      #ff5d6c;
  --amber:    #ffb43d;

  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4), 0 2px 8px rgba(0,0,0,.3);
  --shadow-md: 0 12px 36px rgba(0,0,0,.45);
  --shadow-lg: 0 30px 80px rgba(0,0,0,.6);
  --glow:      0 0 0 1px rgba(95,139,255,.25), 0 0 36px rgba(79,139,255,.30);
  --glow-soft: 0 0 60px rgba(79,139,255,.18);

  --maxw: 1180px;
  --font:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Space Grotesk", var(--font);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* layered atmosphere: faint grid + neon bloom that sits behind everything */
  background-image:
    radial-gradient(900px 520px at 82% -8%,  rgba(79,139,255,.16),  transparent 60%),
    radial-gradient(800px 520px at -5% 8%,   rgba(34,211,238,.10),  transparent 55%),
    linear-gradient(rgba(120,156,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,156,255,.035) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 46px 46px, 46px 46px;
  background-attachment: fixed;
}
a { color: var(--blue-400); text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.12; color: var(--navy); margin: 0 0 .4em; letter-spacing: -.02em; font-weight: 600; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
p { margin: 0 0 1rem; }
img { max-width: 100%; }
::selection { background: rgba(79,139,255,.35); color: #fff; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* gradient text helper */
.grad {
  background: linear-gradient(110deg, var(--blue-400), var(--cyan) 60%, var(--blue-500));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .74rem 1.3rem; border-radius: 12px; font-weight: 600;
  font-size: .95rem; cursor: pointer; border: 1px solid transparent;
  transition: transform .14s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
  white-space: nowrap; position: relative;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  color: #fff; box-shadow: 0 8px 24px rgba(47,107,255,.35), inset 0 1px 0 rgba(255,255,255,.18);
}
.btn--primary:hover { box-shadow: 0 10px 34px rgba(47,107,255,.6), 0 0 0 1px rgba(122,169,255,.5); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: rgba(120,156,255,.10); }
.btn--outline { background: rgba(255,255,255,.02); color: var(--blue-400); border-color: var(--line-2); }
.btn--outline:hover { border-color: var(--blue-500); box-shadow: var(--glow-soft); color: var(--blue-400); transform: translateY(-2px); }
.btn--block { width: 100%; justify-content: center; }
.btn--lg { padding: .98rem 1.7rem; font-size: 1.05rem; }
.btn--danger { background: rgba(255,93,108,.08); color: var(--red); border-color: rgba(255,93,108,.4); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 11, 24, .72); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { max-width: var(--maxw); margin: 0 auto; padding: .72rem 22px;
  display: flex; align-items: center; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: .55rem; font-weight: 800; }
.brand__mark { filter: drop-shadow(0 0 10px rgba(79,139,255,.6)); }
.brand__name { font-family: var(--display); font-size: 1.24rem; color: #fff; letter-spacing: -.02em; font-weight: 700; }
.brand__accent { color: var(--blue-400); }
.nav__links { display: flex; gap: 1.4rem; margin-left: .5rem; }
.nav__links a { color: var(--slate); font-weight: 500; position: relative; }
.nav__links a::after { content:""; position:absolute; left:0; bottom:-4px; height:2px; width:0; background: var(--blue-500); transition: width .25s ease; border-radius: 2px; }
.nav__links a:hover { color: #fff; }
.nav__links a:hover::after { width: 100%; }
.nav__cta { margin-left: auto; display: flex; gap: .5rem; align-items: center; }

/* ---------- Ticker tape ---------- */
.ticker { border-bottom: 1px solid var(--line); background: rgba(8,12,26,.6); overflow: hidden; }
.ticker__track { display: flex; gap: 2.6rem; padding: .55rem 0; white-space: nowrap;
  width: max-content; animation: ticker 38s linear infinite; }
.ticker__item { display: inline-flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--slate); font-variant-numeric: tabular-nums; }
.ticker__sym { font-weight: 700; color: var(--ink); letter-spacing: .02em; }
.ticker__up { color: var(--green); } .ticker__dn { color: var(--red); }
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero__inner { max-width: var(--maxw); margin: 0 auto; padding: 92px 22px 88px;
  display: grid; grid-template-columns: 1.04fr .96fr; gap: 52px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; font-size: .76rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--blue-400);
  background: rgba(79,139,255,.10); border: 1px solid var(--line-2);
  padding: .42rem .85rem; border-radius: 999px; margin-bottom: 1.2rem;
}
.eyebrow .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 0 rgba(34,224,138,.6); animation: pulse 2s infinite; }
.hero h1 { margin-bottom: .5rem; }
.hero p.lead { font-size: 1.18rem; color: var(--slate); max-width: 31rem; }
.hero__actions { display: flex; gap: .8rem; margin-top: 1.7rem; flex-wrap: wrap; }
.hero__trust { margin-top: 1.9rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__trust .stat { display: flex; flex-direction: column; }
.hero__trust .stat b { font-family: var(--display); color: #fff; font-size: 1.35rem; line-height: 1; }
.hero__trust .stat span { color: var(--slate); font-size: .82rem; margin-top: .25rem; }
.hero__trust .stat + .stat { padding-left: 1rem; border-left: 1px solid var(--line); }

/* hero visual stack */
.hero__visual { position: relative; }
.hero__visual::before { /* glow halo behind the card */
  content:""; position:absolute; inset:-12% -8% -18% -8%;
  background: radial-gradient(60% 60% at 60% 35%, rgba(79,139,255,.32), transparent 70%);
  filter: blur(8px); z-index:0; animation: float 9s ease-in-out infinite;
}

/* ---------- Live chart panel (hero) ---------- */
.chart-card {
  position: relative; z-index: 1;
  background: linear-gradient(180deg, rgba(20,30,64,.85), rgba(10,15,34,.92));
  border: 1px solid var(--line-2); border-radius: 22px; padding: 18px 18px 12px;
  box-shadow: var(--shadow-lg), var(--glow-soft); backdrop-filter: blur(6px);
}
.chart-card__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.chart-card__pair { font-family: var(--display); font-weight: 700; font-size: 1.05rem; color: #fff; display:flex; align-items:center; gap:.5rem; }
.chart-card__price { font-variant-numeric: tabular-nums; color: var(--green); font-weight: 700; }
.live-badge { font-size: .68rem; font-weight: 800; letter-spacing: .06em; color: var(--green);
  background: rgba(34,224,138,.12); border: 1px solid rgba(34,224,138,.3);
  padding: .22rem .5rem; border-radius: 999px; display:inline-flex; align-items:center; gap:.35rem; }
.live-badge i { width:6px; height:6px; border-radius:50%; background: var(--green); animation: pulse 1.6s infinite; }
.chart-svg { width: 100%; height: 168px; display: block; }
.chart-grid line { stroke: rgba(120,156,255,.10); stroke-width: 1; }
.chart-line { fill: none; stroke: url(#lg); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 2.4s ease-out forwards .2s; filter: drop-shadow(0 0 8px rgba(79,139,255,.6)); }
.chart-area { fill: url(#ag); opacity: 0; animation: fadein 1.4s ease forwards 1.6s; }
.candle { transform-origin: bottom; transform-box: fill-box; animation: grow .55s cubic-bezier(.2,.8,.2,1) backwards; }
.candle--up rect, .candle--up line { stroke: var(--green); }
.candle--up rect { fill: rgba(34,224,138,.85); }
.candle--dn rect, .candle--dn line { stroke: var(--red); }
.candle--dn rect { fill: rgba(255,93,108,.85); }
.chart-dot { fill: var(--cyan); filter: drop-shadow(0 0 6px var(--cyan)); animation: pulse-dot 1.8s ease-in-out infinite; }
.chart-foot { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 10px; }
.chart-foot .f { background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 12px; padding: 9px 11px; }
.chart-foot .f span { color: var(--slate); font-size: .72rem; display:block; }
.chart-foot .f b { font-family: var(--display); color:#fff; font-size: .98rem; }
.chart-foot .f .chip--call { color: var(--green); } .chart-foot .f .chip--put { color: var(--red); }
.conf-mini { height: 6px; background: var(--blue-100); border-radius: 999px; overflow: hidden; margin-top: 6px; }
.conf-mini > i { display:block; height:100%; width:0; background: linear-gradient(90deg, var(--blue-400), var(--cyan)); border-radius:999px; animation: fill 1.6s ease forwards 1.2s; }

/* floating mini badge on the chart */
.float-tag { position:absolute; z-index:2; background: var(--glass); border:1px solid var(--line-2);
  border-radius: 12px; padding: .5rem .7rem; font-size:.78rem; color: var(--ink);
  box-shadow: var(--shadow-md); backdrop-filter: blur(10px); display:flex; align-items:center; gap:.5rem; }
.float-tag b { color:#fff; }
.float-tag--a { top: -18px; right: 8%; animation: float 6s ease-in-out infinite; }
.float-tag--b { bottom: -16px; left: -14px; animation: float 7.5s ease-in-out infinite reverse; }
.float-tag .ic { width:26px; height:26px; border-radius:8px; display:grid; place-items:center; background: rgba(79,139,255,.16); color: var(--blue-400); }

/* ---------- Sections ---------- */
section.block { padding: 84px 0; position: relative; }
.section-head { text-align: center; max-width: 42rem; margin: 0 auto 52px; }
.section-head p { color: var(--slate); font-size: 1.12rem; }
.kicker { display:inline-block; font-size:.76rem; font-weight:700; letter-spacing:.12em; text-transform:uppercase;
  color: var(--blue-400); margin-bottom:.7rem; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  position: relative; background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform .25s ease, box-shadow .3s ease, border-color .3s ease;
}
.card::after { content:""; position:absolute; inset:0; border-radius:inherit; padding:1px;
  background: linear-gradient(140deg, rgba(79,139,255,.5), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity:0; transition: opacity .3s ease; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md), var(--glow-soft); border-color: transparent; }
.card:hover::after { opacity: 1; }
.card .ico { width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(79,139,255,.22), rgba(34,211,238,.12));
  border: 1px solid var(--line-2); color: var(--blue-400); margin-bottom: 16px; }
.card .ico svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.18rem; }
.card p { color: var(--slate); margin: 0; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; }
.step { position: relative; background: var(--blue-050); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: transform .25s ease, border-color .3s ease; }
.step:hover { transform: translateY(-4px); border-color: var(--line-2); }
.step .num { width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700)); color: #fff;
  font-family: var(--display); font-weight: 700; display: grid; place-items: center; margin-bottom: 14px;
  box-shadow: 0 6px 18px rgba(47,107,255,.4); }
.step h3 { font-size: 1.06rem; }
.step p { color: var(--slate); margin: 0; font-size: .95rem; }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan { position: relative; background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.012));
  border: 1px solid var(--line); border-radius: 20px; padding: 32px; display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .3s ease; }
.plan:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.plan--featured { border: 1px solid transparent; background:
  linear-gradient(var(--panel-2), var(--panel-2)) padding-box,
  linear-gradient(140deg, var(--blue-500), var(--cyan)) border-box;
  box-shadow: var(--shadow-md), var(--glow-soft); }
.plan__badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700)); color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .05em;
  padding: .38rem .85rem; border-radius: 999px; text-transform: uppercase; box-shadow: 0 6px 18px rgba(47,107,255,.5); }
.plan h3 { font-size: 1.3rem; }
.plan .price { font-family: var(--display); font-size: 2.7rem; font-weight: 700; color: #fff; margin: .2rem 0; }
.plan .price small { font-size: .95rem; font-weight: 500; color: var(--slate); }
.plan ul { list-style: none; padding: 0; margin: 1rem 0 1.6rem; }
.plan ul li { padding: .55rem 0; color: var(--ink); display: flex; gap: .6rem; border-bottom: 1px solid var(--line); }
.plan ul li::before { content: "✓"; color: var(--green); font-weight: 800; }
.plan ul li.no { color: var(--slate); }
.plan ul li.no::before { content: "—"; color: var(--slate); }
.plan .btn { margin-top: auto; }

/* ---------- Forms / auth ---------- */
.auth-wrap { min-height: 78vh; display: grid; place-items: center; padding: 56px 22px; position: relative; }
.auth-card { position: relative; width: 100%; max-width: 440px;
  background: linear-gradient(180deg, rgba(20,30,64,.7), rgba(10,15,34,.85));
  border: 1px solid var(--line-2); border-radius: 20px; box-shadow: var(--shadow-lg), var(--glow-soft);
  padding: 36px; backdrop-filter: blur(8px); }
.auth-card h1 { font-size: 1.8rem; }
.auth-card .sub { color: var(--slate); margin-top: -.3rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: .82rem .95rem; border: 1px solid var(--line-2); border-radius: 12px;
  font-size: 1rem; font-family: inherit; background: rgba(5,7,15,.6); color: var(--ink);
  transition: border .15s ease, box-shadow .15s ease, background .15s ease;
}
.field input::placeholder, .field textarea::placeholder { color: #56648c; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(79,139,255,.18); background: rgba(5,7,15,.85);
}
.field .hint { font-size: .82rem; color: var(--slate); margin-top: .3rem; }
.checkrow { display: flex; align-items: center; gap: .6rem; }
.checkrow input { width: auto; }
.alert { padding: .85rem 1rem; border-radius: 12px; font-size: .92rem; margin-bottom: 1rem; border:1px solid transparent; }
.alert--error { background: rgba(255,93,108,.1); color: #ff97a1; border-color: rgba(255,93,108,.35); }
.alert--info { background: rgba(79,139,255,.1); color: var(--blue-400); border-color: var(--line-2); }
.alert--warn { background: rgba(255,180,61,.1); color: var(--amber); border-color: rgba(255,180,61,.3); }
.auth-alt { text-align: center; margin-top: 1rem; color: var(--slate); font-size: .92rem; }

/* ---------- Dashboard ---------- */
.dash { min-height: 84vh; padding: 36px 0 70px; }
.dash__grid { display: grid; grid-template-columns: 300px 1fr; gap: 24px; }
.panel { background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.panel h2 { font-size: 1.12rem; }
.panel + .panel { margin-top: 20px; }

.quota-ring { text-align: center; padding: 8px 0 4px; }
.quota-num { font-family: var(--display); font-size: 3rem; font-weight: 700; color: var(--blue-400); line-height: 1; text-shadow: 0 0 24px rgba(79,139,255,.5); }
.quota-sub { color: var(--slate); font-size: .9rem; }
.meter { height: 10px; background: var(--blue-100); border-radius: 999px; overflow: hidden; margin: 14px 0 6px; }
.meter > i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue-400), var(--cyan)); box-shadow: 0 0 12px rgba(79,139,255,.6); }

.plan-pill { display: inline-block; font-weight: 800; font-size: .75rem; letter-spacing: .04em; text-transform: uppercase;
  padding: .32rem .75rem; border-radius: 999px; background: var(--blue-100); color: var(--blue-400); border:1px solid var(--line-2); }
.plan-pill--max { background: linear-gradient(135deg, var(--blue-500), var(--blue-700)); color: #fff; border-color: transparent; box-shadow: 0 4px 16px rgba(47,107,255,.5); }

.kv { display: flex; justify-content: space-between; padding: .55rem 0; border-top: 1px solid var(--line); font-size: .95rem; }
.kv:first-of-type { border-top: 0; }
.kv span { color: var(--slate); }
.kv b { color: var(--ink); }
.kv b .verif { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; margin-left: 4px; border-radius: 50%; font-size: .72rem; font-weight: 700; line-height: 1; vertical-align: middle; }
.verif--ok { background: rgba(34,197,94,.18); color: #16a34a; }
.verif--no { background: rgba(239,68,68,.18); color: #ef4444; }

.dash__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; flex-wrap: wrap; gap: 12px; }
.dash__head h1 { font-size: 1.6rem; margin: 0; }

/* analysis list */
.analyses { display: flex; flex-direction: column; gap: 12px; }
.analysis {
  border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; display: grid;
  grid-template-columns: auto 1fr auto; gap: 14px; align-items: center;
  background: rgba(255,255,255,.02); transition: border-color .25s ease, transform .2s ease, box-shadow .25s ease;
}
.analysis:hover { border-color: var(--line-2); transform: translateX(2px); box-shadow: var(--glow-soft); }
.analysis__pair { font-family: var(--display); font-weight: 700; color: #fff; }
.analysis__meta { color: var(--slate); font-size: .85rem; }
.analysis__why { color: var(--slate); font-size: .9rem; margin-top: 4px; }
.dir { font-weight: 800; padding: .4rem .7rem; border-radius: 10px; font-size: .85rem; min-width: 66px; text-align: center; border:1px solid transparent; }
.dir--call { background: rgba(34,224,138,.12); color: var(--green); border-color: rgba(34,224,138,.3); }
.dir--put { background: rgba(255,93,108,.12); color: var(--red); border-color: rgba(255,93,108,.3); }
.conf { text-align: right; }
.conf b { font-family: var(--display); font-size: 1.15rem; color: #fff; }
.chip { font-weight: 800; padding: .3rem .7rem; border-radius: 8px; font-size: .82rem; }
.chip--call { background: rgba(34,224,138,.12); color: var(--green); }
.chip--put { background: rgba(255,93,108,.12); color: var(--red); }
.tag { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  padding: .2rem .5rem; border-radius: 6px; background: var(--blue-100); color: var(--blue-400); }
.tag--mock { background: rgba(123,107,255,.16); color: #b3a6ff; }
.outcome { font-size: .72rem; font-weight: 800; text-transform: uppercase; padding: .2rem .5rem; border-radius: 6px; }
.outcome--win { background: rgba(34,224,138,.12); color: var(--green); }
.outcome--loss { background: rgba(255,93,108,.12); color: var(--red); }
.outcome--pending { background: rgba(255,180,61,.12); color: var(--amber); }

.empty { text-align: center; padding: 44px 20px; color: var(--slate); }
.empty .big { font-size: 2.6rem; opacity: .9; }
.empty svg { width: 54px; height: 54px; color: var(--blue-500); opacity: .8; }

/* status banners */
.status-line { display: flex; align-items: center; gap: .5rem; font-size: .9rem; color: var(--slate); }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot--on { background: var(--green); box-shadow: 0 0 0 3px rgba(34,224,138,.18); animation: pulse 2s infinite; }
.dot--off { background: var(--slate); box-shadow: 0 0 0 3px var(--line); }

/* ---------- Footer ---------- */
.footer { background: var(--bg-2); color: #aebada; margin-top: 40px; border-top: 1px solid var(--line); }
.footer__inner { max-width: var(--maxw); margin: 0 auto; padding: 56px 22px 30px;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; }
.footer .brand__name { color: #fff; }
.footer__tag { color: var(--slate); max-width: 22rem; }
.footer__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.footer__cols h4 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
.footer__cols a { display: block; color: var(--slate); padding: .26rem 0; transition: color .2s ease; }
.footer__cols a:hover { color: #fff; }
.footer__legal { border-top: 1px solid var(--line); padding: 20px 22px; max-width: var(--maxw); margin: 0 auto; }
.footer__legal p { font-size: .8rem; color: #6c7ba3; margin: .3rem 0; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: 26px; padding: 56px; text-align: center;
  background: linear-gradient(135deg, #0c1f54, #0a1230);
  border: 1px solid var(--line-2); box-shadow: var(--shadow-md); }
.cta-band::before { content:""; position:absolute; inset:0;
  background: radial-gradient(600px 240px at 50% -30%, rgba(79,139,255,.4), transparent 70%); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #c2d0f5; max-width: 34rem; margin: 0 auto 1.4rem; }

/* ---------- Helpers ---------- */
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.muted { color: var(--slate); }
.divider { height: 1px; background: var(--line); margin: 1.2rem 0; }

/* ===========================================================================
   Motion — keyframes + scroll-reveal
   =========================================================================== */
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(34,224,138,.55); }
  70%  { box-shadow: 0 0 0 8px rgba(34,224,138,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,224,138,0); }
}
@keyframes pulse-dot { 0%,100% { r: 4; opacity:1; } 50% { r: 6; opacity:.7; } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes draw  { to { stroke-dashoffset: 0; } }
@keyframes fadein { to { opacity: 1; } }
@keyframes fill  { to { width: var(--to, 87%); } }
@keyframes grow  { from { transform: scaleY(0); opacity: 0; } to { transform: scaleY(1); opacity: 1; } }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { max-width: 460px; }
  .grid-3, .steps, .plans { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .dash__grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .nav__links { display: none; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .analysis { grid-template-columns: auto 1fr; }
  .conf { grid-column: 1 / -1; text-align: left; }
  .cta-band { padding: 38px 24px; }
}

/* Accessibility: honour reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .chart-line { stroke-dashoffset: 0; }
  .chart-area, .conf-mini > i, .candle { opacity: 1; }
}

/* ===========================================================================
   Admin panel
   =========================================================================== */
body.admin {
  background-attachment: fixed;
}
.admin__shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }

/* Sidebar */
.admin__side {
  position: sticky; top: 0; align-self: start; height: 100vh;
  display: flex; flex-direction: column; gap: 6px; padding: 22px 16px;
  background: rgba(7,11,24,.72); backdrop-filter: blur(14px);
  border-right: 1px solid var(--line);
}
.admin__brand { font-family: var(--display); font-size: 1.12rem; font-weight: 700; color: #fff; margin: 4px 8px 20px; gap: .5rem; }
.admin__brand .brand__accent { color: var(--blue-400); }
.admin__nav { display: flex; flex-direction: column; gap: 4px; }
.admin__nav a {
  display: flex; align-items: center; gap: .7rem; padding: .68rem .8rem;
  border-radius: 11px; color: var(--slate); font-weight: 600; font-size: .95rem;
  transition: background .18s ease, color .18s ease;
}
.admin__nav a:hover { background: rgba(120,156,255,.08); color: var(--ink); }
.admin__nav a.is-active { background: linear-gradient(135deg, rgba(47,107,255,.22), rgba(29,78,216,.14)); color: #fff; box-shadow: inset 0 0 0 1px var(--line-2); }
.admin__ico { font-size: .9rem; color: var(--blue-400); }
.admin__side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.admin__side-foot .btn { font-size: .9rem; padding: .6rem 1rem; }

/* Main */
.admin__main { padding: 30px 34px 70px; max-width: 1400px; }
.admin__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 22px; flex-wrap: wrap; }
.admin__head h1 { font-size: 1.7rem; margin: 4px 0 2px; }
.admin__head-right { display: flex; align-items: center; gap: 14px; }
.admin__search { display: flex; gap: 8px; }
.admin__search input { background: var(--panel); border: 1px solid var(--line-2); color: var(--ink); border-radius: 11px; padding: .6rem .9rem; min-width: 220px; font-family: var(--font); }
.admin__search input:focus { outline: none; border-color: var(--blue-500); box-shadow: var(--glow-soft); }

/* Stat grid */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat { background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.012)); border: 1px solid var(--line); border-radius: 15px; padding: 18px 20px; box-shadow: var(--shadow-sm); }
.stat__n { font-family: var(--display); font-size: 1.9rem; font-weight: 700; color: #fff; line-height: 1; }
.stat__l { color: var(--slate); font-size: .82rem; margin-top: 6px; text-transform: uppercase; letter-spacing: .04em; }

/* Column layouts */
.admin__cols { display: grid; grid-template-columns: 1fr 320px; gap: 20px; margin-bottom: 20px; align-items: start; }
.admin__cols--2 { grid-template-columns: 1fr 1fr; }
.admin__aside { display: flex; flex-direction: column; gap: 20px; }
.panel--flush { padding: 0; overflow: hidden; }

/* Tables */
.atable { width: 100%; border-collapse: collapse; font-size: .9rem; }
.atable th { text-align: left; color: var(--slate); font-weight: 600; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; padding: 10px 12px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.atable td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.atable tbody tr:last-child td { border-bottom: 0; }
.atable tbody tr:hover { background: rgba(120,156,255,.045); }
.atable a { color: var(--blue-400); font-weight: 600; }
.atable--full { display: block; overflow-x: auto; }
.panel--flush .atable th:first-child, .panel--flush .atable td:first-child { padding-left: 24px; }
.panel--flush .atable th:last-child, .panel--flush .atable td:last-child { padding-right: 24px; }

/* inline helpers */
code { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .82em; background: rgba(120,156,255,.10); padding: .12em .45em; border-radius: 6px; color: var(--blue-400); }
.path { color: #cfe0ff; }
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; }
.dim { color: var(--slate); font-size: .8rem; opacity: .85; }
.geo { white-space: nowrap; }

/* Secret disclosure */
.secret summary { cursor: pointer; color: var(--amber); font-weight: 600; padding: 6px 0; }
.secret__field { margin-top: 10px; }
.secret__field textarea { width: 100%; background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px; color: var(--green); font-family: "JetBrains Mono", monospace; font-size: .78rem; padding: 10px; resize: vertical; }

/* Pager */
.admin__pager { display: flex; align-items: center; gap: 16px; justify-content: center; margin-top: 22px; }

/* Login */
.admin__login { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.admin__login-card { width: 100%; max-width: 380px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 20px; padding: 34px 30px; box-shadow: var(--shadow-lg), var(--glow-soft); }
.admin__login-head { text-align: center; margin-bottom: 22px; }
.admin__login-head h1 { font-size: 1.5rem; margin: 12px 0 4px; }
.admin__field { display: block; margin-bottom: 16px; }
.admin__field span { display: block; color: var(--slate); font-size: .85rem; margin-bottom: 6px; }
.admin__field input { width: 100%; background: var(--bg); border: 1px solid var(--line-2); color: var(--ink); border-radius: 11px; padding: .78rem .95rem; font-family: var(--font); font-size: 1rem; }
.admin__field input:focus { outline: none; border-color: var(--blue-500); box-shadow: var(--glow-soft); }
.admin__alert { background: rgba(255,93,108,.1); border: 1px solid rgba(255,93,108,.4); color: var(--red); padding: .7rem .9rem; border-radius: 11px; margin-bottom: 16px; font-size: .9rem; text-align: center; }

@media (max-width: 940px) {
  .admin__shell { grid-template-columns: 1fr; }
  .admin__side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .admin__brand { margin: 0 12px 0 4px; }
  .admin__nav { flex-direction: row; }
  .admin__side-foot { margin: 0 0 0 auto; flex-direction: row; }
  .admin__main { padding: 22px 16px 60px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .admin__cols, .admin__cols--2 { grid-template-columns: 1fr; }
}

/* Floating support widget (Telegram) */
.support { position: fixed; right: 22px; bottom: 22px; z-index: 900; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.support__toggle { width: 56px; height: 56px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--blue-500); color: #fff; display: grid; place-items: center;
  box-shadow: var(--shadow-lg), var(--glow-soft); transition: transform .15s ease, background .15s ease; }
.support__toggle:hover { transform: translateY(-2px); background: var(--blue-600); }
.support__panel { width: 240px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 16px;
  padding: 18px 18px 16px; box-shadow: var(--shadow-lg), var(--glow-soft); position: relative;
  animation: support-in .16s ease; }
@keyframes support-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.support__title { margin: 0 0 12px; font-weight: 600; color: var(--ink); font-size: .98rem; }
.support__tg { display: inline-flex; align-items: center; gap: 8px; width: 100%; justify-content: center;
  background: #229ED9; color: #fff; text-decoration: none; font-weight: 600; font-size: .92rem;
  border-radius: 11px; padding: .62rem .9rem; transition: background .15s ease; }
.support__tg:hover { background: #1c87ba; }
.support__close { position: absolute; top: 8px; right: 10px; background: none; border: none; cursor: pointer;
  color: var(--slate); font-size: 1.3rem; line-height: 1; padding: 2px 6px; }
.support__close:hover { color: var(--ink); }
@media (max-width: 640px) {
  .support { right: 16px; bottom: 16px; }
  .support__toggle { width: 50px; height: 50px; }
}
