* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #152535;
  --bg-elev: #1d3045;
  --bg-elev2: #253b52;
  --border: #335070;
  --text: #ecf2f9;
  --muted: #99b0c5;
  --accent: #5ce0d6;
  --accent2: #3ecdc4;
  --accent3: #22b8b0;
  --danger: #f87171;
  --glow: rgba(92,224,214,.25);
}
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; transition: opacity .2s; }
a:hover { opacity: .8; }
h1, h2, h3 { line-height: 1.2; }
.muted { color: var(--muted); }

/* NAV */
.nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 2rem;
  background: rgba(21,37,53,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.brand { font-weight: 700; font-size: 1.15rem; color: #fff; display: flex; align-items: center; gap: .6rem; }
.brand-logo { height: 80px; width: auto; object-fit: contain; filter: drop-shadow(0 0 16px var(--glow)); }
.brand span { background: linear-gradient(135deg, #fff 30%, var(--accent) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-size: 1.25rem; letter-spacing: .05em; }
.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links a { color: var(--text); font-size: .95rem; }

/* BUTTONS */
.btn {
  display: inline-block;
  padding: .7rem 1.4rem;
  border-radius: 8px;
  background: var(--bg-elev2);
  color: #fff;
  border: 1px solid var(--border);
  cursor: pointer;
  font-size: .95rem;
  font-weight: 500;
  transition: all .2s;
  text-decoration: none !important;
}
.btn:hover { transform: translateY(-1px); opacity: 1; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent3));
  color: #0b1220;
  font-weight: 700;
  border: none;
  box-shadow: 0 4px 24px var(--glow);
  letter-spacing: .01em;
}
.btn-primary:hover { box-shadow: 0 6px 32px rgba(92,224,214,.35); transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; border-radius: 10px; }
.btn-sm { padding: .35rem .8rem; font-size: .85rem; background: #374151; color: #fff; border: none; border-radius: 6px; cursor: pointer; }

main { max-width: 1400px; margin: 0 auto; padding: 0 3rem; }
/* Full-width pages — opt-in via .full-bleed wrapper class */
body:has(.full-bleed) main { max-width: 100%; padding: 0; }
.full-bleed { max-width: 100%; padding: 1rem .3rem 2rem; margin: 0; }
/* Chart page: 10% padding each side (80% width) */
body:has(.chart-page) main { max-width: 100%; padding: 0; }

/* HERO */
.hero {
  padding: 4.5rem 3rem 2rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(170deg, #0d1b2a 0%, var(--bg) 50%, #0a1628 100%);
  width: 100vw; margin-left: calc(-50vw + 50%);
}
.hero::before {
  content: ""; position: absolute; top: -300px; left: 50%;
  width: 900px; height: 900px;
  background: radial-gradient(circle, rgba(92,224,214,.08), transparent 55%);
  transform: translateX(-30%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; bottom: -200px; right: -100px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(41,98,255,.05), transparent 60%);
  pointer-events: none;
}
.hero-logo { display: block; width: 100%; max-width: 280px; margin: 0 auto .5rem; filter: drop-shadow(0 10px 50px var(--glow)); animation: float 5s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.hero-inner { display: grid; grid-template-columns: 1.15fr 1fr; gap: 4rem; align-items: center; position: relative; max-width: 1400px; margin: 0 auto; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: .55rem 1.2rem;
  background: rgba(92,224,214,.08);
  border: 1px solid rgba(92,224,214,.2);
  border-radius: 999px;
  color: var(--accent);
  font-size: .88rem; font-weight: 500;
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 1.2rem;
  line-height: 1.12;
}
.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, #e0f7f5 50%, var(--accent2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.lead { font-size: 1rem; color: #8fa3b8; margin-bottom: 1.8rem; max-width: 500px; line-height: 1.75; }
.cta { display: flex; gap: .8rem; flex-wrap: wrap; margin-bottom: 1.2rem; width: 100%; max-width: 480px; }
.cta .btn { padding: .75rem 0; font-size: .95rem; flex: 1; text-align: center; }
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; max-width: 480px; }
.trust div {
  display: flex; flex-direction: column; align-items: center;
  padding: .7rem 0;
  background: rgba(92,224,214,.04); border: 1px solid rgba(92,224,214,.1);
  border-radius: 10px;
}
.trust strong { font-size: 1.5rem; color: var(--accent); font-weight: 800; display: block; }
.trust span { color: #fff; font-size: .78rem; margin-top: 2px; display: block; opacity: .65; }

/* HERO VISUAL — Flow card */
.hero-visual { position: relative; }
.flow-card {
  background: linear-gradient(160deg, rgba(25,42,60,.95), rgba(18,30,45,.98));
  border: 1px solid rgba(92,224,214,.12);
  border-radius: 16px;
  padding: 1.5rem 1.5rem;
  box-shadow: 0 20px 50px rgba(0,0,0,.5), 0 0 20px rgba(92,224,214,.03);
  width: 100%;
}
.flow-step {
  display: flex; gap: 1rem; align-items: center;
  padding: .8rem 1.2rem;
  background: rgba(255,255,255,.025);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.05);
  transition: all .2s;
}
.flow-step:hover { background: rgba(92,224,214,.05); border-color: rgba(92,224,214,.15); }
.flow-step .icon { font-size: 1.4rem; width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; background: rgba(92,224,214,.08); border-radius: 10px; flex-shrink: 0; }
.flow-step b { display: block; color: #fff; font-size: 1rem; font-weight: 700; }
.flow-step span { color: #8fa3b8; font-size: .85rem; }
.flow-arrow { text-align: center; color: var(--accent); font-size: .9rem; margin: .15rem 0; opacity: .3; }

/* SECTIONS */
section { padding: 4rem 0; }
.section-head { text-align: center; margin-bottom: 3rem; }
.section-head h2 { font-size: 2.2rem; margin-bottom: .6rem; font-weight: 700; letter-spacing: -.01em; }

/* FEATURES */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
}
.feature {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.8rem;
  transition: all .2s;
}
.feature:hover { border-color: var(--accent); transform: translateY(-3px); }
.feature-icon { font-size: 2rem; margin-bottom: .8rem; }
.feature h3 { font-size: 1.15rem; margin-bottom: .5rem; color: #fff; }
.feature p { color: var(--muted); font-size: .95rem; }

/* HOW IT WORKS */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.step {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.8rem;
  position: relative;
}
.step .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #0b1220;
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 1rem;
}
.step h3 { font-size: 1.05rem; margin-bottom: .5rem; color: #fff; }
.step p { color: var(--muted); font-size: .9rem; }

/* PRICING */
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}
.plan {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2.2rem;
  position: relative;
  display: flex;
  flex-direction: column;
}
.plan.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--bg-elev), rgba(92,224,214,.04));
  transform: scale(1.04);
  box-shadow: 0 20px 50px rgba(92,224,214,.1);
}
.ribbon {
  position: absolute; top: -12px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #0b1220;
  font-size: .7rem;
  font-weight: 700;
  padding: .3rem .8rem;
  border-radius: 999px;
  letter-spacing: .05em;
}
.plan h3 { font-size: 1.3rem; color: #fff; margin-bottom: .3rem; }
.plan-tag { color: var(--muted); font-size: .85rem; margin-bottom: 1rem; }
.price { font-size: 2.4rem; font-weight: 800; color: #fff; margin-bottom: 1.2rem; }
.price span { font-size: .9rem; color: var(--muted); font-weight: 400; }
.plan ul { list-style: none; margin: 0 0 1.5rem; flex: 1; }
.plan li { padding: .5rem 0; color: var(--text); font-size: .9rem; border-bottom: 1px solid var(--border); }
.plan li:last-child { border: none; }
.plan .btn { width: 100%; text-align: center; }

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-list details {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.2rem 1.5rem;
  margin-bottom: .8rem;
  cursor: pointer;
}
.faq-list summary { font-weight: 600; color: #fff; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; float: right; color: var(--accent); font-size: 1.3rem; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list p { margin-top: .8rem; color: var(--muted); }

/* CTA BOTTOM */
.cta-bottom {
  text-align: center;
  background: linear-gradient(135deg, rgba(92,224,214,.08), rgba(129,140,248,.08));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 4rem 2rem;
  margin: 2rem 0 4rem;
}
.cta-bottom h2 { font-size: 2rem; margin-bottom: .8rem; }
.cta-bottom p { margin-bottom: 1.8rem; }

/* AUTH */
.auth-card {
  max-width: 420px;
  margin: 4rem auto;
  background: var(--bg-elev);
  padding: 2.5rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.auth-card h2 { margin-bottom: 1.5rem; color: #fff; }
.auth-card label { display: block; margin: 1rem 0 .4rem; font-size: .9rem; color: var(--muted); }
.auth-card input {
  width: 100%; padding: .75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: #fff;
  font-size: .95rem;
}
.auth-card input:focus { outline: none; border-color: var(--accent); }
.auth-card button { width: 100%; margin-top: 1.5rem; padding: .9rem; }
.error { color: var(--danger); background: rgba(248,113,113,.1); padding: .7rem; border-radius: 6px; font-size: .9rem; }

/* DASHBOARD GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
  margin: 2rem 0;
}
.card {
  background: var(--bg-elev);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border);
}
.card h3 { margin-bottom: .8rem; color: #fff; font-size: 1.05rem; }
.card code { display: block; background: var(--bg); padding: .6rem; border-radius: 6px; font-size: .8rem; word-break: break-all; margin: .5rem 0; color: var(--accent); }

/* TABLE */
.table { width: 100%; border-collapse: collapse; margin-top: 1rem; background: var(--bg-elev); border-radius: 10px; overflow: hidden; }
.table th, .table td { padding: .8rem; text-align: left; border-bottom: 1px solid var(--border); font-size: .9rem; }
.table th { background: var(--bg-elev2); color: var(--muted); font-weight: 600; text-transform: uppercase; font-size: .75rem; letter-spacing: .05em; }

/* FOOTER */
footer {
  text-align: center;
  padding: 2rem;
  color: var(--muted);
  font-size: .85rem;
  border-top: 1px solid var(--border);
  margin-top: 3rem;
  background: var(--bg);
}

/* RESPONSIVE */
@media (max-width: 860px) {
  .hero { padding: 3rem 0 2rem; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.3rem; }
  .trust { gap: 1.5rem; }
  .plan.featured { transform: none; }
  .nav { padding: 1rem; }
  .nav-links { gap: .8rem; }
}

/* ============================================================
   ONBOARDING PAGE
   ============================================================ */
.ob-wrap { max-width: 1000px; margin: 0 auto; padding: 2.5rem 2rem 4rem; }

.ob-hero { text-align: center; margin-bottom: 2rem; }
.ob-eyebrow {
  display: inline-block;
  font-size: .78rem;
  letter-spacing: .15em;
  font-weight: 700;
  color: var(--accent);
  background: linear-gradient(135deg, rgba(92,224,214,.1), rgba(41,98,255,.06));
  border: 1px solid rgba(92,224,214,.2);
  padding: .45rem 1rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.ob-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: .5rem;
  letter-spacing: -.02em;
}
.ob-hero .grad {
  background: linear-gradient(135deg, var(--accent) 0%, #e0f7f5 50%, var(--accent3) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.ob-sub { color: var(--muted); font-size: 1rem; max-width: 560px; margin: 0 auto 1.5rem; }

.ob-progress {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: .5rem;
  font-size: .8rem; color: var(--muted);
}
.ob-progress span {
  padding: .35rem .75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-elev);
  white-space: nowrap;
}
.ob-progress i { width: 18px; height: 1px; background: var(--border); display: inline-block; }

.ob-alert {
  padding: 1rem 1.25rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  font-weight: 500;
  border: 1px solid;
}
.ob-alert-error { background: rgba(248,113,113,.08); border-color: rgba(248,113,113,.35); color: #fca5a5; }
.ob-alert-ok    { background: rgba(92,224,214,.08); border-color: rgba(92,224,214,.4); color: var(--accent); }

.ob-form { display: flex; flex-direction: column; gap: 1.5rem; }

.ob-card {
  background: linear-gradient(180deg, var(--tv-card, var(--bg-elev)) 0%, rgba(18,27,46,.6) 100%);
  border: 1px solid var(--tv-border, var(--border));
  border-radius: 14px;
  padding: 1.8rem 2rem;
  box-shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 8px 30px -15px rgba(0,0,0,.5);
}
.ob-card-head {
  display: flex; align-items: flex-start; gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}
.ob-num {
  flex-shrink: 0;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent3));
  color: #0b1220;
  font-weight: 800; font-size: .9rem;
  border-radius: 10px;
  box-shadow: 0 3px 12px rgba(92,224,214,.25);
}
.ob-card-head h2 { font-size: 1.2rem; font-weight: 700; margin-bottom: .15rem; color: #fff; }
.muted.small { font-size: .85rem; }

/* PLAN CARDS */
.plan-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.plan-card {
  position: relative;
  background: var(--bg-elev2);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem 1.25rem 1.25rem;
  cursor: pointer;
  transition: all .2s;
  display: block;
}
.plan-card input { position: absolute; opacity: 0; pointer-events: none; }
.plan-card:hover { border-color: rgba(92,224,214,.4); transform: translateY(-2px); }
.plan-card:has(input:checked) {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(92,224,214,.08), var(--bg-elev2));
  box-shadow: 0 0 0 3px rgba(92,224,214,.15), 0 12px 40px -16px rgba(92,224,214,.4);
}
.plan-popular { border-color: rgba(92,224,214,.45); }
.plan-badge {
  position: absolute; top: 14px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), var(--accent3));
  color: #0b1220;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .1em;
  padding: .3rem .7rem;
  border-radius: 999px;
  z-index: 1;
}
.plan-name { font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: .4rem; }
.plan-price { font-size: 2rem; font-weight: 800; color: #fff; }
.plan-price span { font-size: .9rem; color: var(--muted); font-weight: 500; margin-left: .15rem; }
.plan-coins { font-size: .85rem; color: var(--accent); margin: .25rem 0 1rem; font-weight: 600; }
.plan-feats { list-style: none; padding: 0; font-size: .85rem; color: var(--muted); }
.plan-feats li { padding: .25rem 0; }

.ob-divider {
  display: flex; align-items: center; gap: 1rem;
  margin: 1.5rem 0 1rem;
  color: var(--muted);
  font-size: .8rem; text-transform: uppercase; letter-spacing: .15em;
}
.ob-divider::before, .ob-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--border);
}

/* COIN CHIPS */
.coin-chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .75rem; }
.chip {
  position: relative;
  display: inline-flex; align-items: center;
  padding: .55rem 1rem;
  background: var(--bg-elev2);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  font-size: .85rem;
  font-weight: 600;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  transition: all .15s;
  user-select: none;
}
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:hover { border-color: rgba(92,224,214,.4); }
.chip:has(input:checked) {
  background: rgba(92,224,214,.12);
  border-color: var(--accent);
  color: var(--accent);
}

/* HOWTO DETAILS */
.ob-howto {
  background: rgba(92,224,214,.03);
  border: 1px solid rgba(92,224,214,.1);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}
.ob-howto summary {
  cursor: pointer;
  font-weight: 600; font-size: .9rem;
  color: var(--accent);
  list-style: none;
  display: flex; align-items: center; gap: .5rem;
}
.ob-howto summary::before { content: "▸"; transition: transform .2s; }
.ob-howto[open] summary::before { transform: rotate(90deg); }
.ob-howto ol { margin: .8rem 0 0 1.4rem; color: #a0b4c8; font-size: .88rem; line-height: 1.6; }
.ob-howto li { padding: .2rem 0; }

/* BYBIT ROWS */
.bybit-rows { display: flex; flex-direction: column; gap: .75rem; }
.bybit-row {
  display: flex; align-items: flex-start; gap: 1rem;
  background: rgba(18,27,46,.4);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
}
.bybit-row-num {
  flex-shrink: 0;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-elev2);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: .8rem;
  font-weight: 700;
  color: var(--muted);
  font-family: ui-monospace, monospace;
}
.bybit-row-fields {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 2fr 1.4fr;
  gap: .85rem;
}

/* FORM FIELDS */
.field { display: flex; flex-direction: column; gap: .35rem; }
.field-solo { max-width: 420px; }
.field label {
  font-size: .75rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.field input, .field select {
  background: #0c1322;
  border: 1.5px solid var(--border);
  color: var(--text);
  padding: .75rem .9rem;
  border-radius: 10px;
  font-size: .9rem;
  font-family: inherit;
  transition: all .15s;
  width: 100%;
}
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(92,224,214,.15);
}
.field input::placeholder { color: #4a5878; }
.field small { font-size: .72rem; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.param-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }

.ob-callout {
  margin-top: 1rem;
  padding: .9rem 1.2rem;
  background: rgba(92,224,214,.04);
  border: 1px solid rgba(92,224,214,.15);
  border-radius: 10px;
  font-size: .85rem;
  color: #d0dae4;
  line-height: 1.5;
}

.ob-steps { display: flex; flex-direction: column; gap: .65rem; margin-bottom: 1.5rem; }
.ob-step {
  display: flex; align-items: center; gap: .85rem;
  padding: .85rem 1rem;
  background: rgba(18,27,46,.5);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: .9rem;
}
.ob-step span {
  flex-shrink: 0;
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent);
  color: #0b1220;
  border-radius: 50%;
  font-weight: 800;
  font-size: .8rem;
}
.ob-step code { background: #0c1322; padding: .15rem .4rem; border-radius: 5px; font-size: .85em; color: var(--accent); }

/* CHECKS */
.ob-check {
  display: flex; align-items: center; gap: .75rem;
  padding: .9rem 1rem;
  background: rgba(18,27,46,.5);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: .6rem;
  cursor: pointer;
  font-size: .92rem;
  transition: all .15s;
}
.ob-check:hover { border-color: rgba(92,224,214,.35); }
.ob-check input { width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; }
.ob-submit { width: 100%; margin-top: 1rem; padding: 1rem; font-size: 1.05rem; border-radius: 12px; }

.ob-tos {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.ob-tos h3 { margin-bottom: 1rem; }
.ob-tos ol { padding-left: 1.4rem; font-size: .88rem; }
.ob-tos li { padding: .3rem 0; }

/* RESPONSIVE */
@media (max-width: 820px) {
  .plan-cards { grid-template-columns: 1fr; }
  .bybit-row-fields { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .param-grid { grid-template-columns: 1fr 1fr; }
  .ob-card { padding: 1.5rem 1.25rem; border-radius: 14px; }
  .ob-progress { font-size: .7rem; }
  .ob-progress i { width: 10px; }
}

/* Multi-select dropdown */
.coin-select {
  background: #0c1322;
  border: 1.5px solid var(--border);
  color: var(--text);
  padding: .5rem;
  border-radius: 10px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: .9rem;
  width: 100%;
}
.coin-select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(92,224,214,.15); }
.coin-select option { padding: .5rem .75rem; }
.coin-select option:checked {
  background: linear-gradient(0deg, rgba(92,224,214,.18), rgba(92,224,214,.18)), #0c1322;
  color: var(--accent);
  font-weight: 700;
}
kbd {
  background: var(--bg-elev2);
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: .1rem .4rem;
  font-family: ui-monospace, monospace;
  font-size: .78em;
  color: var(--text);
}

/* Bybit row 2-col variant when symbol is implicit */
.bybit-row-fields-2 { grid-template-columns: 1.4fr 1fr; }
.bybit-empty {
  padding: 1.5rem;
  text-align: center;
  background: rgba(18,27,46,.4);
  border: 1px dashed var(--border);
  border-radius: 12px;
}
.bybit-row-num {
  width: auto;
  min-width: 90px;
  padding: 0 .85rem;
  font-size: .82rem;
  color: var(--accent);
  background: rgba(92,224,214,.08);
  border-color: rgba(92,224,214,.3);
}
@media (max-width: 820px) { .bybit-row-fields-2 { grid-template-columns: 1fr; } }

#symbol-count { font-weight: 700; transition: color .15s; }
.shake { animation: shake .35s; }
@keyframes shake {
  0%,100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.chip span em {
  display: block;
  font-style: normal;
  font-size: .68rem;
  font-weight: 500;
  color: var(--muted);
  margin-top: .15rem;
  font-family: -apple-system, "Inter", sans-serif;
}
.chip:has(input:checked) span em { color: var(--accent); opacity: .8; }

/* ============================================================
   ADMIN DASHBOARD — brighter, premium
   ============================================================ */
.admin-wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 3rem;
}
.admin-wrap.grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  align-items: stretch;
}
.grid-2col > header.admin-hero { grid-column: 1 / -1; }
.grid-2col .admin-card.card-full { grid-column: 1 / -1; }
.card-full .ai-grid { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 1200px) { .card-full .ai-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .card-full .ai-grid { grid-template-columns: repeat(2, 1fr); } }
.grid-2col .admin-card { min-height: 0; }
@media (max-width: 960px) {
  .admin-wrap.grid-2col { grid-template-columns: 1fr; }
}

.admin-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1.8rem 2rem;
  background: linear-gradient(135deg, rgba(92,224,214,.08) 0%, rgba(43,184,212,.03) 100%), var(--bg-elev);
  border: 1px solid rgba(92,224,214,.2);
  border-radius: 14px;
  margin-bottom: .5rem;
  box-shadow: 0 12px 40px -20px rgba(92,224,214,.3);
}
.admin-hero h1 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.02em;
  margin: .3rem 0 .2rem;
  background: linear-gradient(135deg, #fff 30%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.admin-sub { color: var(--muted); font-size: .85rem; }

.admin-stats { display: flex; gap: .85rem; }
.stat-card {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1.4rem;
  min-width: 110px;
  text-align: center;
}
.stat-card-ok   { border-color: rgba(92,224,214,.45); background: rgba(92,224,214,.08); }
.stat-card-warn { border-color: rgba(250,204,21,.45); background: rgba(250,204,21,.08); }
.stat-label {
  font-size: .65rem;
  letter-spacing: .14em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: .35rem;
}
.stat-value { font-size: 1.8rem; font-weight: 800; color: #fff; }
.stat-card-ok .stat-value { color: var(--accent); }
.stat-card-warn .stat-value { color: #facc15; }

.admin-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.admin-action {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  background: linear-gradient(135deg, var(--bg-elev) 0%, var(--bg-elev2) 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  text-decoration: none;
  transition: all .2s;
}
.admin-action:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -15px rgba(92,224,214,.5);
  opacity: 1;
}
.aa-icon {
  font-size: 1.6rem;
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(92,224,214,.1);
  border: 1px solid rgba(92,224,214,.3);
  border-radius: 12px;
}
.admin-action b { display: block; font-size: 1rem; color: #fff; }
.admin-action small { display: block; color: var(--muted); font-size: .8rem; margin-top: .15rem; }

.admin-card {
  background: linear-gradient(180deg, var(--bg-elev) 0%, rgba(18,27,46,.7) 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px -15px rgba(0,0,0,.5);
  display: flex;
  flex-direction: column;
}
.grid-2col .admin-card > div:not(.admin-card-head):not(.ai-chat-wrap) {
  max-height: 900px;
  overflow-y: auto;
  padding: 1rem 1.3rem;
}
.grid-2col .admin-card .ai-chat-wrap {
  height: 320px;
}
.admin-card-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: .8rem 1.3rem;
  border-bottom: 1px solid var(--border);
  background: rgba(92,224,214,.03);
  flex-shrink: 0;
}
.admin-card-head h2 { font-size: .95rem; font-weight: 700; color: #fff; }
.admin-card-head .muted.small { font-size: .72rem; }

.table-scroll { overflow-x: auto; }
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .75rem;
}
.admin-table thead th {
  text-align: left;
  padding: .4rem .5rem;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--muted);
  text-transform: uppercase;
  background: rgba(255,255,255,.02);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.admin-table tbody td {
  padding: .35rem .5rem;
  border-bottom: 1px solid rgba(31,45,71,.5);
  vertical-align: middle;
}
.admin-table tbody tr { transition: background .15s; }
.admin-table tbody tr:hover { background: rgba(92,224,214,.04); }
.admin-table tbody tr:last-child td { border-bottom: none; }

.user-cell { display: flex; align-items: center; gap: .75rem; }
.avatar {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent3));
  color: #0b1220;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}
.user-name { font-weight: 600; color: #fff; }

.pill {
  display: inline-block;
  padding: .25rem .7rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.pill-plan-basic    { background: rgba(148,163,184,.15); color: #cbd5e1; border: 1px solid rgba(148,163,184,.35); }
.pill-plan-pro      { background: rgba(92,224,214,.15); color: var(--accent); border: 1px solid rgba(92,224,214,.45); }
.pill-plan-vip      { background: linear-gradient(135deg, rgba(250,204,21,.2), rgba(245,158,11,.15)); color: #facc15; border: 1px solid rgba(250,204,21,.45); }
.pill-plan-lifetime { background: rgba(168,85,247,.15); color: #c4b5fd; border: 1px solid rgba(168,85,247,.45); }
.pill-status-active    { background: rgba(34,197,94,.15); color: #4ade80; border: 1px solid rgba(34,197,94,.45); }
.pill-status-pending   { background: rgba(250,204,21,.15); color: #facc15; border: 1px solid rgba(250,204,21,.45); }
.pill-status-cancelled { background: rgba(248,113,113,.12); color: #fca5a5; border: 1px solid rgba(248,113,113,.45); }

.coin-line {
  display: flex; align-items: center; gap: .5rem;
  margin: .25rem 0;
  font-size: .82rem;
}
.coin-line code {
  background: var(--bg-elev2);
  padding: .15rem .5rem;
  border-radius: 5px;
  font-size: .78rem;
  color: var(--accent);
}
.tag-ok      { color: #4ade80; font-size: .72rem; font-weight: 700; }
.tag-pending { color: #facc15; font-size: .72rem; font-weight: 700; }

.btn-primary-sm {
  background: linear-gradient(135deg, var(--accent), var(--accent3)) !important;
  color: #0b1220 !important;
  font-weight: 700 !important;
}
.btn-warn { background: #7f1d1d !important; }

@media (max-width: 820px) {
  .admin-hero { padding: 1.5rem; }
  .admin-stats { width: 100%; justify-content: stretch; }
  .stat-card { flex: 1; min-width: 0; }
  .admin-table { font-size: .8rem; }
}

.lang-switch { display: inline-flex; align-items: center; gap: .35rem; margin-left: .75rem; font-size: .82rem; padding: .3rem .6rem; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-elev); }
.lang-switch a { color: var(--muted); font-weight: 600; }
.lang-switch a.lang-active { color: var(--accent); }
.lang-switch a:hover { color: #fff; opacity: 1; }
.lang-sep { color: var(--border); }

.lang-dd { position: relative; margin-left: .75rem; }
.lang-dd summary {
  cursor: pointer;
  list-style: none;
  padding: .4rem .8rem;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text);
  user-select: none;
}
.lang-dd summary::-webkit-details-marker { display: none; }
.lang-dd summary:hover { border-color: var(--accent); color: var(--accent); }
.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + .5rem);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: .4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .15rem;
  min-width: 320px;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,.7);
  z-index: 200;
}
.lang-menu a {
  display: block;
  padding: .55rem .85rem;
  font-size: .82rem;
  color: var(--text);
  border-radius: 7px;
  white-space: nowrap;
}
.lang-menu a:hover { background: var(--bg-elev2); opacity: 1; }
.lang-menu a.lang-active { background: rgba(92,224,214,.12); color: var(--accent); font-weight: 700; }
@media (max-width: 600px) {
  .lang-menu { grid-template-columns: 1fr; min-width: 200px; }
}

/* ===== Mini TF Buttons (used in AI assistant) ===== */
.mini-tf {
  background: transparent; border: 1px solid var(--border);
  color: var(--muted); padding: .25rem .5rem; font-size: .7rem;
  cursor: pointer; border-radius: 4px; font-weight: 600;
  transition: all .2s;
}
.mini-tf:hover { border-color: var(--accent); color: var(--accent); }
.mini-tf.active {
  background: rgba(92,224,214,.15); border-color: var(--accent);
  color: var(--accent);
}

/* ===== Chart Page (new layout: chart + side panel + bottom heatmap) ===== */
.chart-page {
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
  padding: 1rem 1.5rem 2rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(280px, 22%, 360px);
  grid-template-rows: auto auto 540px 140px 220px;
  gap: .6rem;
  box-sizing: border-box;
}
.chart-controls {
  grid-column: 1 / -1;
  display: flex; justify-content: space-between; align-items: center;
  padding: .8rem 1.2rem;
  background: linear-gradient(135deg, rgba(92,224,214,.06) 0%, var(--bg-elev) 60%);
  border: 1px solid rgba(92,224,214,.2);
  border-radius: 12px;
  box-shadow: 0 8px 24px -16px rgba(0,0,0,.5);
}
.chart-controls-left { display: flex; align-items: center; gap: 1rem; }
.chart-controls-right { display: flex; align-items: center; gap: 1rem; }
.chart-select {
  background: var(--bg-elev2); border: 1px solid var(--border);
  color: #fff; padding: .5rem 1rem; border-radius: 8px;
  font-size: .92rem; font-weight: 800; letter-spacing: .03em;
  cursor: pointer; transition: all .2s;
}
.chart-select:hover { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(92,224,214,.08); }
.chart-tf-group { display: flex; gap: 4px; padding: 3px; background: rgba(0,0,0,.2); border-radius: 8px; }
.chart-tf {
  background: transparent; border: none;
  color: var(--muted); padding: .35rem .8rem; font-size: .78rem;
  cursor: pointer; border-radius: 6px; font-weight: 700;
  transition: all .15s;
}
.chart-tf:hover { color: #fff; }
.chart-tf.active {
  background: linear-gradient(180deg, rgba(92,224,214,.25), rgba(92,224,214,.1));
  color: var(--accent);
  box-shadow: 0 2px 8px rgba(92,224,214,.2), inset 0 1px 0 rgba(255,255,255,.08);
}
.chart-live-price {
  font-size: 1.5rem; font-weight: 800; color: #fff;
  font-family: 'JetBrains Mono', 'Menlo', monospace;
  letter-spacing: -.02em;
  text-shadow: 0 0 20px rgba(92,224,214,.3);
}
.chart-change {
  font-size: .92rem; font-weight: 800; padding: .3rem .8rem;
  border-radius: 6px; font-family: 'JetBrains Mono', monospace;
}
.chart-change.positive {
  color: #4ade80;
  background: linear-gradient(180deg, rgba(74,222,128,.18), rgba(74,222,128,.06));
  box-shadow: inset 0 0 0 1px rgba(74,222,128,.25);
}
.chart-change.negative {
  color: #f87171;
  background: linear-gradient(180deg, rgba(248,113,113,.18), rgba(248,113,113,.06));
  box-shadow: inset 0 0 0 1px rgba(248,113,113,.25);
}

/* Indicators toggle dropdown */
.chart-indicators { position: relative; }
.chart-indicators summary {
  cursor: pointer; list-style: none;
  padding: .45rem .85rem; border-radius: 8px;
  background: var(--bg-elev2); border: 1px solid var(--border);
  font-size: .82rem; font-weight: 700; color: var(--text);
  user-select: none; transition: all .2s;
}
.chart-indicators summary:hover { border-color: var(--accent); color: var(--accent); }
.chart-indicators summary::-webkit-details-marker { display: none; }
.chart-indicators[open] summary {
  background: rgba(92,224,214,.12); border-color: var(--accent); color: var(--accent);
}
.indicators-menu {
  position: absolute; right: 0; top: calc(100% + .5rem);
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: 10px; padding: .6rem;
  min-width: 280px; z-index: 200;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,.7);
  display: flex; flex-direction: column; gap: .15rem;
}
.indicators-menu label {
  display: flex; align-items: center; gap: .6rem;
  padding: .35rem .5rem; font-size: .78rem; color: var(--text);
  border-radius: 6px; cursor: pointer; transition: background .15s;
}
.indicators-menu label:hover { background: rgba(92,224,214,.06); }
.indicators-menu input[type=checkbox] {
  accent-color: var(--accent); width: 14px; height: 14px;
}
.indicators-menu hr {
  border: none; border-top: 1px dashed rgba(51,80,112,.4);
  margin: .3rem 0;
}

.chart-info-bar {
  grid-column: 1; grid-row: 2;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.3fr 1.6fr;
  gap: 0;
  padding: .85rem 1.2rem;
  background: linear-gradient(180deg, var(--bg-elev) 0%, rgba(18,27,46,.6) 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 24px -16px rgba(0,0,0,.5);
}
.chart-info-cell {
  display: flex; flex-direction: column; justify-content: center;
  gap: .25rem;
  padding: .15rem 1.2rem;
  border-right: 1px solid var(--border);
  position: relative;
  min-width: 0;
}
.chart-info-cell:first-child { padding-left: .2rem; }
.chart-info-cell:last-child { border-right: none; padding-right: .2rem; }
.chart-info-label {
  font-size: .68rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: .1em;
  font-weight: 700;
}
.chart-info-val {
  font-size: 1.15rem; font-weight: 800; color: #fff;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: -.02em;
  line-height: 1.2;
}
.chart-info-sub {
  font-size: .72rem; color: var(--muted); line-height: 1.3;
}
.chart-info-bar-mini {
  display: flex; height: 6px; border-radius: 3px; overflow: hidden;
  background: rgba(51,80,112,0.3); margin-top: .4rem;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.3);
}
.ls-long {
  background: linear-gradient(90deg, #22c55e, #4ade80);
  height: 100%; box-shadow: 0 0 8px rgba(74,222,128,.4);
}
.ls-short {
  background: linear-gradient(90deg, #f87171, #ef4444);
  height: 100%; box-shadow: 0 0 8px rgba(248,113,113,.4);
}
.chart-news-cell .chart-info-sub {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chart-news-cell .chart-info-val {
  display: flex; align-items: center; gap: .4rem;
}

.chart-container {
  grid-column: 1; grid-row: 3;
  background: #0d1421;
  border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
  min-width: 0; width: 100%; height: 100%;
  box-shadow: 0 12px 40px -20px rgba(0,0,0,.6);
}

.chart-oi-container {
  grid-column: 1; grid-row: 4;
  background: #0d1421; border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
  height: 140px; min-width: 0; width: 100%;
  box-shadow: 0 8px 24px -16px rgba(0,0,0,.5);
}

.chart-side {
  grid-column: 2; grid-row: 2 / span 4;
  display: flex; flex-direction: column; gap: .6rem;
  overflow-y: auto; min-width: 0;
}
.chart-side::-webkit-scrollbar { width: 6px; }
.chart-side::-webkit-scrollbar-track { background: transparent; }
.chart-side::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.chart-side::-webkit-scrollbar-thumb:hover { background: var(--accent); }

.chart-side-card {
  background: linear-gradient(180deg, var(--bg-elev) 0%, rgba(18,27,46,.5) 100%);
  border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 6px 20px -12px rgba(0,0,0,.5);
  transition: border-color .25s;
}
.chart-side-card:hover { border-color: rgba(92,224,214,.3); box-shadow: 0 8px 28px -14px rgba(92,224,214,.15); }
.chart-side-head {
  padding: .7rem 1rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(92,224,214,.06), rgba(92,224,214,.02));
}
.chart-side-head h3 {
  font-size: .85rem; font-weight: 800; color: #fff; margin: 0;
  letter-spacing: .02em;
}
.chart-side-body { padding: .8rem 1rem; }

/* Position card */
.chart-pos-card { padding: .8rem 1rem; }
.chart-pos-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: .35rem 0; font-size: .82rem;
  border-bottom: 1px dashed rgba(51,80,112,0.2);
}
.chart-pos-row:last-child { border-bottom: none; }
.chart-pos-label { color: var(--muted); font-weight: 600; }
.chart-pos-val { color: #fff; font-family: 'JetBrains Mono', monospace; font-size: .8rem; font-weight: 700; }
.chart-pos-divider { height: 1px; background: linear-gradient(90deg, transparent, var(--border), transparent); margin: .6rem 0; }
.chart-pos-empty {
  padding: 1.5rem 1rem; text-align: center;
  color: var(--muted); font-size: .82rem;
  background: rgba(0,0,0,.15); border-radius: 6px; margin: .5rem;
}

/* Scanner rows */
.scan-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: .45rem 0; font-size: .8rem;
  border-bottom: 1px dashed rgba(51,80,112,0.2);
  transition: background .15s;
}
.scan-row:last-child { border-bottom: none; }
.scan-row:hover { background: rgba(92,224,214,.03); padding-left: .3rem; padding-right: .3rem; margin: 0 -.3rem; border-radius: 4px; }
.scan-label { color: var(--muted); font-weight: 600; }
.scan-val { color: #fff; font-weight: 800; font-family: 'JetBrains Mono', monospace; font-size: .8rem; }

/* Optimizer grid */
.opt-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: .5rem; margin-bottom: .8rem;
}
.opt-cell {
  background: linear-gradient(180deg, var(--bg-elev2), rgba(0,0,0,.2));
  border: 1px solid var(--border);
  border-radius: 8px; padding: .55rem .35rem; text-align: center;
  transition: all .2s;
}
.opt-cell:hover {
  border-color: rgba(92,224,214,.3);
  box-shadow: 0 4px 12px -6px rgba(92,224,214,.2);
  transform: translateY(-1px);
}
.opt-cell-label {
  font-size: .65rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: .06em; font-weight: 700;
}
.opt-cell-val {
  font-size: 1rem; font-weight: 800; color: var(--accent);
  margin-top: .25rem;
  text-shadow: 0 0 12px rgba(92,224,214,.3);
}
.opt-reason {
  font-size: .74rem; color: var(--muted); line-height: 1.6;
  padding: .7rem .8rem;
  background: linear-gradient(135deg, rgba(92,224,214,.04), rgba(0,0,0,.15));
  border-radius: 8px;
  border-left: 3px solid var(--accent);
}

.chart-bottom {
  grid-column: 1; grid-row: 5;
  min-width: 0; height: 100%;
}
.chart-bottom .chart-side-card { height: 100%; display: flex; flex-direction: column; }

@media (max-width: 1100px) {
  .chart-page {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 460px auto auto auto;
    padding: 1rem;
  }
  .chart-container { height: 460px; }
  .chart-side { grid-column: 1; grid-row: auto; max-height: none; }
}

/* ===== Billing page (rich) ===== */
@keyframes orbFloat { 0%,100%{ transform: translate(0,0) scale(1);} 50%{ transform: translate(30px,-20px) scale(1.08);} }
@keyframes fadeUp { from{opacity:0; transform:translateY(20px);} to{opacity:1; transform:translateY(0);} }
.billing-wrap { max-width: 1140px; margin: 2.5rem auto 4rem; padding: 0 1.25rem; position: relative; }
.billing-bg-orb {
  position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; z-index: 0;
  animation: orbFloat 14s ease-in-out infinite;
}
.orb-1 { width: 420px; height: 420px; background: radial-gradient(circle, rgba(92,224,214,.22), transparent 70%); top: -80px; left: -120px; }
.orb-2 { width: 480px; height: 480px; background: radial-gradient(circle, rgba(43,184,212,.18), transparent 70%); top: 120px; right: -160px; animation-delay: -7s; }
.billing-wrap > *:not(.billing-bg-orb) { position: relative; z-index: 1; }

.billing-hero { text-align: center; margin-bottom: 3rem; animation: fadeUp .6s ease both; }
.hero-eyebrow {
  display: inline-block; padding: .35rem .9rem; border-radius: 999px;
  background: rgba(92,224,214,.1); color: var(--accent);
  border: 1px solid rgba(92,224,214,.3); font-size: .8rem; font-weight: 700;
  letter-spacing: .08em; margin-bottom: 1rem;
}
.billing-hero h1 { font-size: 2.6rem; line-height: 1.15; margin-bottom: .85rem; font-weight: 800; }
.grad-text {
  background: linear-gradient(135deg, var(--accent), var(--accent3) 60%, #b388ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { color: var(--muted); font-size: 1.05rem; max-width: 600px; margin: 0 auto 1.25rem; }
.current-plan-pill {
  display: inline-flex; align-items: center; gap: .55rem;
  background: var(--bg-elev); border: 1px solid var(--border);
  padding: .5rem 1rem; border-radius: 999px; font-size: .88rem; color: var(--muted);
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.status-active { background: #4ade80; box-shadow: 0 0 8px #4ade80; }
.status-inactive, .status-pending { background: #f59e0b; }

.billing-toggle {
  display: inline-flex; margin-top: 1.5rem; padding: 4px;
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: 999px;
}
.bt-opt {
  background: transparent; border: 0; color: var(--muted);
  padding: .55rem 1.25rem; border-radius: 999px; cursor: pointer;
  font-size: .88rem; font-weight: 600; transition: all .2s;
}
.bt-opt.active {
  background: linear-gradient(135deg, var(--accent2), var(--accent3));
  color: #042028; box-shadow: 0 4px 14px rgba(77,212,232,.35);
}
.save-badge {
  display: inline-block; margin-left: .35rem; font-size: .68rem;
  background: rgba(255,255,255,.25); padding: 1px 6px; border-radius: 999px;
}

.billing-head { text-align: center; margin-bottom: 2.25rem; }
.billing-head h1 { font-size: 2rem; margin-bottom: .5rem; }
/* plan-badge duplicate removed — using definition at line 452 */

.plan-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  margin-bottom: 2rem; align-items: stretch;
}
.plan-card {
  position: relative;
  background: linear-gradient(180deg, var(--bg-elev), var(--bg-elev2));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem 1.6rem 1.75rem;
  display: flex; flex-direction: column;
  transition: transform .25s, border-color .25s, box-shadow .25s;
  animation: fadeUp .6s ease both;
  overflow: hidden;
}
.plan-card::before {
  content: ""; position: absolute; inset: 0; border-radius: 20px;
  background: radial-gradient(600px circle at var(--mx,50%) -20%, rgba(92,224,214,.08), transparent 50%);
  pointer-events: none;
}
.plan-card:nth-child(2) { animation-delay: .08s; }
.plan-card:nth-child(3) { animation-delay: .16s; }
.plan-card:hover { transform: translateY(-6px); border-color: var(--accent3); box-shadow: 0 18px 50px rgba(0,0,0,.35); }
.plan-card.popular {
  border-color: var(--accent2);
  background: linear-gradient(180deg, rgba(77,212,232,.08), var(--bg-elev2));
  box-shadow: 0 0 0 1px var(--accent2), 0 18px 60px rgba(77,212,232,.18);
  transform: translateY(-8px);
}
.plan-card.vip { background: linear-gradient(180deg, rgba(247,201,72,.06), var(--bg-elev2)); }
.plan-tag {
  display: inline-block; font-size: .7rem; color: var(--muted);
  letter-spacing: .06em; text-transform: uppercase; margin-top: .15rem;
}
.plan-card.active { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.ribbon {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg,var(--accent2),var(--accent3));
  color: #042028; font-size: .72rem; font-weight: 800;
  padding: .25rem .75rem; border-radius: 999px; letter-spacing: .05em;
}
.plan-name { font-size: 1.15rem; font-weight: 800; color: var(--text); letter-spacing: .04em; }
.plan-price { font-size: 3rem; font-weight: 800; margin: .85rem 0 1.25rem; color: var(--text); display: flex; align-items: baseline; gap: .15rem; }
.plan-price .cur { font-size: 1.3rem; font-weight: 700; color: var(--muted); align-self: flex-start; margin-top: .55rem; }
.plan-price .per { font-size: .9rem; font-weight: 500; color: var(--muted); margin-left: .25rem; }
.plan-card ul { list-style: none; padding: 0; margin: 0 0 1.5rem; flex: 1; }
.plan-card li {
  padding: .4rem 0; color: var(--muted); font-size: .92rem;
  border-bottom: 1px dashed var(--border);
}
.plan-card li:last-child { border-bottom: 0; }
.plan-card li::before {
  content: "✓"; display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; margin-right: .55rem; border-radius: 50%;
  background: rgba(92,224,214,.15); color: var(--accent);
  font-size: .7rem; font-weight: 800;
}
.plan-btn { width: 100%; justify-content: center; padding: .85rem 1rem; font-weight: 700; border-radius: 12px; }
.plan-btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent3)); color: #042028; border: 0; box-shadow: 0 8px 24px rgba(77,212,232,.3); }
.plan-btn.primary:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(77,212,232,.4); }

.trust-row {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem 2.5rem;
  padding: 1.5rem; margin-bottom: 3rem;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.trust-item { color: var(--muted); font-size: .9rem; display: inline-flex; align-items: center; gap: .5rem; }
.trust-ico { font-size: 1.1rem; }

.pay-sub { text-align: center; margin-top: -.5rem; margin-bottom: 1.5rem; }
.pay-card.featured {
  border-color: var(--accent2);
  background: linear-gradient(180deg, rgba(77,212,232,.07), var(--bg-elev));
}
.pay-badge {
  position: absolute; top: 12px; right: 12px;
  font-size: .65rem; font-weight: 800; letter-spacing: .06em;
  background: linear-gradient(135deg, var(--accent2), var(--accent3));
  color: #042028; padding: .2rem .55rem; border-radius: 999px;
}
.pay-card { position: relative; transition: transform .25s, border-color .25s; }
.pay-card:hover { transform: translateY(-3px); border-color: var(--accent3); }
.pay-icon-wrap {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(92,224,214,.1); display: flex; align-items: center; justify-content: center;
  margin-bottom: .25rem;
}
.pay-icon { font-size: 1.6rem; }
.pay-logos { display: flex; flex-wrap: wrap; gap: .35rem; margin: .25rem 0 .5rem; }
.logo-pill {
  font-size: .68rem; font-weight: 700; letter-spacing: .04em;
  padding: .25rem .55rem; border-radius: 6px;
  background: var(--bg-elev2); color: var(--muted); border: 1px solid var(--border);
}
.addr-box {
  display: flex; align-items: center; gap: .5rem; margin-top: .25rem;
  background: var(--bg-elev2); border: 1px solid var(--border);
  border-radius: 10px; padding: .5rem .65rem;
}
.addr-box .addr { flex: 1; background: transparent; padding: 0; font-size: .78rem; word-break: break-all; }
.copy-btn {
  background: var(--accent); color: #042028; border: 0; border-radius: 7px;
  padding: .35rem .7rem; font-size: .75rem; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.copy-btn:hover { background: var(--accent2); }
.manual-note { font-size: .82rem; color: var(--muted); margin-top: .35rem; }
.manual-note a { color: var(--accent); }

.faq { margin-top: 4rem; }
.faq h2 { text-align: center; font-size: 1.5rem; margin-bottom: 1.5rem; }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; max-width: 880px; margin: 0 auto; }
.faq-item {
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: 12px; padding: 1rem 1.2rem; transition: border-color .2s;
}
.faq-item[open] { border-color: var(--accent3); }
.faq-item summary {
  cursor: pointer; font-weight: 600; color: var(--text);
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin-top: .65rem; color: var(--muted); font-size: .9rem; }

.pay-methods h2 { text-align: center; font-size: 1.4rem; margin-bottom: 1.25rem; }
.pay-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.pay-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.4rem;
  display: flex; flex-direction: column; gap: .6rem;
}
.pay-icon { font-size: 1.8rem; }
.pay-title { font-weight: 700; font-size: 1.05rem; }
.pay-desc { color: var(--muted); font-size: .9rem; flex: 1; }
.pay-card .addr {
  display: inline-block; word-break: break-all; background: var(--bg-elev2);
  padding: .35rem .55rem; border-radius: 6px; font-size: .8rem; margin-top: .25rem;
}
.btn.disabled { opacity: .55; pointer-events: none; }
.back { text-align: center; margin-top: 2.5rem; }
.back a { color: var(--accent); text-decoration: none; }

@media (max-width: 880px) {
  .billing-hero h1 { font-size: 2rem; }
  .plan-grid, .pay-grid, .faq-grid { grid-template-columns: 1fr; }
  .plan-card.popular { transform: none; }
}

/* ── AI Assistant ── */
.ai-scanner-bar {
  display: flex; gap: .5rem; align-items: center; flex-wrap: wrap;
}
.ai-select {
  padding: .4rem .8rem; border-radius: 6px;
  background: var(--bg-elev); color: var(--text);
  border: 1px solid var(--border); font-size: .82rem;
  min-width: 140px;
}
.ai-input {
  padding: .4rem .8rem; border-radius: 6px;
  background: var(--bg-elev); color: var(--text);
  border: 1px solid var(--border); font-size: .82rem;
  flex: 1; min-width: 160px;
}
.ai-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-top: .3rem;
}
.grid-2col .ai-grid { grid-template-columns: repeat(3, 1fr); }
.ai-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) {
  .ai-grid { grid-template-columns: repeat(2, 1fr); }
  .ai-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .ai-grid, .ai-grid-3 { grid-template-columns: 1fr; }
}

.ai-metric-card {
  background: var(--bg-elev2); border: 1px solid var(--border);
  border-radius: 10px; padding: .9rem .8rem; text-align: center;
  transition: border-color .3s, box-shadow .3s;
}
.ai-metric-card.ai-green { border-color: #34d399; box-shadow: 0 0 12px rgba(52,211,153,.12); }
.ai-metric-card.ai-yellow { border-color: #fbbf24; box-shadow: 0 0 12px rgba(251,191,36,.1); }
.ai-metric-card.ai-orange { border-color: #fb923c; box-shadow: 0 0 12px rgba(251,146,60,.1); }
.ai-metric-card.ai-red { border-color: #f87171; box-shadow: 0 0 12px rgba(248,113,113,.12); }
.ai-metric-icon { font-size: 1.3rem; margin-bottom: .3rem; }
.ai-metric-label { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.ai-metric-value { font-size: 1.1rem; font-weight: 800; margin: .2rem 0; }
.ai-val-sm { font-size: .95rem; }
.ai-metric-sub { font-size: .74rem; color: var(--muted); word-break: break-word; }

.ai-reco-box {
  background: linear-gradient(135deg, rgba(92,224,214,.05), rgba(77,212,232,.02));
  border: 1px solid rgba(92,224,214,.15); border-radius: 10px;
  padding: .8rem 1rem; margin-top: 1rem;
}
.ai-reco-header {
  display: flex; align-items: center; gap: .4rem;
  font-weight: 700; font-size: .88rem; margin-bottom: .4rem;
}
.ai-reco-icon { font-size: 1rem; }
.ai-reco-content { font-size: .82rem; line-height: 1.5; color: var(--text); }

.ai-signal-list {
  list-style: none; padding: 0;
}
.ai-signal-list li {
  padding: .5rem .8rem; margin-bottom: .3rem;
  background: var(--bg-elev); border-radius: 6px;
  font-size: .85rem; border-left: 3px solid var(--accent);
}

.ai-alert-form {
  display: flex; flex-wrap: wrap; gap: .5rem; align-items: flex-end; margin-bottom: .4rem;
}
.ai-form-row {
  display: flex; flex-direction: column; gap: .2rem;
}
.ai-form-row label {
  font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .03em;
}

.ai-code-block {
  position: relative; background: #0d1117; border: 1px solid var(--border);
  border-radius: 6px; padding: .7rem .9rem; overflow-x: auto;
}
.ai-code-block pre {
  margin: 0; font-family: "JetBrains Mono", "Fira Code", monospace;
  font-size: .78rem; color: #c9d1d9; white-space: pre-wrap;
}
.ai-copy-btn {
  position: absolute; top: .4rem; right: .4rem;
}

.ai-steps {
  padding-left: 1rem; margin: 0;
}
.ai-steps li {
  padding: .3rem 0; font-size: .8rem; color: var(--text);
  border-bottom: 1px solid var(--border);
}
.ai-steps li:last-child { border-bottom: none; }

.ai-opt-card {
  background: var(--bg-elev2); border: 1px solid var(--border);
  border-radius: 8px; padding: .7rem; text-align: center;
}
.ai-opt-label {
  font-size: .68rem; color: var(--muted); text-transform: uppercase;
  letter-spacing: .03em; margin-bottom: .2rem;
}
.ai-opt-value {
  font-size: 1.1rem; font-weight: 700; color: var(--accent);
}
.ai-val-sm { font-size: 1rem; }

/* AI Chat */
.ai-chat-wrap {
  display: flex; flex-direction: column; height: 300px;
}
.ai-chat-messages {
  flex: 1; overflow-y: auto; padding: .8rem 1.2rem;
  display: flex; flex-direction: column; gap: .5rem;
}
.ai-chat-msg {
  display: flex; gap: .6rem; max-width: 85%;
}
.ai-chat-user { align-self: flex-end; flex-direction: row-reverse; }
.ai-chat-bot { align-self: flex-start; }
.ai-chat-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg-elev2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 700; color: var(--accent);
  flex-shrink: 0;
}
.ai-chat-user .ai-chat-avatar { background: rgba(92,224,214,.15); }
.ai-chat-bubble {
  padding: .7rem 1rem; border-radius: 12px;
  font-size: .9rem; line-height: 1.6; word-break: break-word;
}
.ai-chat-bot .ai-chat-bubble {
  background: var(--bg-elev2); border: 1px solid var(--border);
}
.ai-chat-user .ai-chat-bubble {
  background: linear-gradient(135deg, rgba(92,224,214,.15), rgba(77,212,232,.08));
  border: 1px solid rgba(92,224,214,.25);
}
.ai-chat-bubble code {
  background: rgba(0,0,0,.3); padding: .15rem .4rem;
  border-radius: 4px; font-size: .82rem;
}
.ai-chat-pre {
  background: #0d1117; border: 1px solid var(--border);
  border-radius: 6px; padding: .8rem; margin: .5rem 0;
  font-size: .8rem; overflow-x: auto; white-space: pre-wrap;
}
.ai-chat-input-bar {
  display: flex; gap: .5rem; padding: .8rem 1.5rem;
  border-top: 1px solid var(--border);
}
.ai-chat-input {
  flex: 1; padding: .6rem 1rem; border-radius: 8px;
  background: var(--bg-elev); color: var(--text);
  border: 1px solid var(--border); font-size: .9rem;
  outline: none;
}
.ai-chat-input:focus { border-color: var(--accent); }
.ai-chat-hints {
  display: flex; gap: .4rem; padding: .4rem 1.5rem .8rem;
  flex-wrap: wrap;
}
.ai-hint {
  padding: .3rem .7rem; border-radius: 999px;
  background: var(--bg-elev2); border: 1px solid var(--border);
  color: var(--muted); font-size: .78rem; cursor: pointer;
  transition: all .2s;
}
.ai-hint:hover { border-color: var(--accent); color: var(--accent); }
.ai-dots { animation: aidots 1.2s infinite; }
@keyframes aidots { 0%,100%{opacity:1} 50%{opacity:.4} }

/* Trending chips */
.ai-trending { display: flex; gap: .4rem; flex-wrap: wrap; }
.ai-trend-chip {
  padding: .25rem .6rem; border-radius: 999px;
  background: var(--bg-elev2); border: 1px solid var(--border);
  font-size: .75rem; font-weight: 600;
}

/* News list */
.ai-news-list { display: flex; flex-direction: column; gap: .2rem; max-height: 250px; overflow-y: auto; }
.ai-news-item {
  padding: .5rem .8rem; background: var(--bg-elev); border-radius: 6px;
  border-left: 2px solid var(--accent);
}
.ai-news-title { font-size: .78rem; font-weight: 500; margin-bottom: .1rem; }
.ai-news-desc { font-size: .72rem; line-height: 1.3; margin-top: .1rem; }
.ai-news-time { font-size: .75rem; margin-top: .3rem; }

/* ══ TradingView-inspired Dashboard ══ */
:root {
  --tv-bg: #1e2330;
  --tv-card: #2a3040;
  --tv-border: #3d4555;
  --tv-text: #eaecf2;
  --tv-muted: #99a0b0;
  --tv-rise: #22ab94;
  --tv-fall: #f23645;
  --tv-rise-bg: rgba(34,171,148,.12);
  --tv-fall-bg: rgba(242,54,69,.12);
}

.tv-dashboard { padding: 1rem 0 2rem; }
.tv-dashboard .section-head { margin-bottom: 1rem; }
.tv-dashboard .section-head h2 { font-size: 1.5rem; color: #fff; font-weight: 700; }
.tv-dashboard .section-head .muted { font-size: .85rem; color: #8fa3b8; }

/* Ticker strip */
.tv-ticker-strip {
  display: flex; gap: 0; overflow-x: auto; margin-bottom: 12px;
  background: var(--tv-bg); border: 1px solid var(--tv-border); border-radius: 10px;
  scrollbar-width: none;
}
.tv-ticker-strip::-webkit-scrollbar { display: none; }
.tv-ticker-item {
  display: flex; align-items: center; gap: 8px; padding: 7px 14px;
  border-right: 1px solid var(--tv-border); white-space: nowrap; font-size: .78rem;
  flex: 1; justify-content: center;
}
.tv-ticker-item:last-child { border-right: none; }
.tv-ticker-sym { font-weight: 700; color: #fff; }
.tv-ticker-price { color: var(--tv-text); font-variant-numeric: tabular-nums; }
.tv-ticker-chg { padding: 2px 6px; border-radius: 3px; font-weight: 500; font-size: .75rem; }
.tv-ticker-loading { color: var(--tv-muted); padding: 8px 16px; }

/* Status bar — 4 equal cards in a row */
.tv-status-bar {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  margin-bottom: 8px;
}
.tv-status-item {
  display: flex; align-items: center; gap: 8px;
  background: var(--tv-card); border: 1px solid var(--tv-border); border-radius: 8px;
  padding: 10px 12px;
}
.tv-status-item canvas { flex-shrink: 0; }
.tv-status-icon { font-size: 1.2rem; flex-shrink: 0; }
.tv-status-text { display: flex; flex-direction: column; }
.tv-status-big { font-size: 1.2rem; font-weight: 800; color: #fff; line-height: 1.2; }
.tv-status-sub { font-size: .7rem; color: #8fa3b8; margin-top: 1px; }
.tv-status-divider { display: none; }
.tv-metric-sub { font-size: .75rem; color: var(--tv-muted); }

/* 3-column grid */
.tv-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 8px; }

/* Panels */
.tv-panel {
  background: var(--tv-card); border: 1px solid var(--tv-border); border-radius: 10px;
  padding: 14px; overflow: hidden; margin-bottom: 8px;
}
.tv-panel-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px; padding-bottom: 6px; border-bottom: 1px solid rgba(42,46,57,.5);
}
.tv-panel-head h3 { font-size: .92rem; font-weight: 700; color: #fff; letter-spacing: .01em; }
.tv-live-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--tv-rise);
  box-shadow: 0 0 6px var(--tv-rise); animation: tv-pulse 2s infinite;
}
@keyframes tv-pulse { 0%,100%{opacity:1} 50%{opacity:.3} }

/* Stats */
.tv-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 6px; margin-bottom: 10px; }
.tv-stat { padding: 6px 8px; background: var(--tv-bg); border-radius: 4px; }
.tv-stat-label { display: block; font-size: .7rem; color: var(--tv-muted); }
.tv-stat-val { display: block; font-size: .9rem; font-weight: 600; color: var(--tv-text); margin-top: 2px; font-variant-numeric: tabular-nums; }
.tv-stat-chg { font-size: .7rem; font-weight: 500; }

/* Coin list */
.tv-coin-list { display: flex; flex-direction: column; gap: 0; }
.tv-coin-row {
  display: grid; grid-template-columns: 24px 1.5fr 1fr .8fr 1fr; align-items: center;
  gap: 6px; padding: 6px 4px; border-bottom: 1px solid rgba(42,46,57,.5);
  font-size: .8rem; transition: background .1s;
}
.tv-coin-row:hover { background: rgba(255,255,255,.02); }
.tv-coin-rank { color: var(--tv-muted); font-size: .7rem; text-align: center; }
.tv-coin-name { font-weight: 600; color: var(--tv-text); }
.tv-coin-full { font-weight: 400; color: var(--tv-muted); font-size: .7rem; margin-left: 4px; }
.tv-coin-price { text-align: right; font-weight: 500; color: var(--tv-text); font-variant-numeric: tabular-nums; }
.tv-coin-chg { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.tv-coin-mcap { text-align: right; color: var(--tv-muted); font-size: .75rem; }
.tv-coin-loading { padding: 1.5rem; text-align: center; color: var(--tv-muted); font-size: .8rem; }

/* Funding rows */
.tv-funding-list { display: flex; flex-direction: column; gap: 0; }
.tv-funding-row {
  display: grid; grid-template-columns: 60px 80px 70px 1fr; align-items: center;
  gap: 6px; padding: 6px 4px; border-bottom: 1px solid rgba(42,46,57,.5); font-size: .8rem;
}
.tv-fund-sym { font-weight: 600; color: var(--tv-text); }
.tv-fund-rate { font-weight: 600; font-variant-numeric: tabular-nums; }
.tv-fund-ann { color: var(--tv-muted); font-size: .7rem; }
.tv-fund-bar { height: 3px; background: rgba(255,255,255,.04); border-radius: 2px; overflow: hidden; }
.tv-fund-bar-fill { height: 100%; border-radius: 2px; transition: width .6s; }

/* Chain TVL rows */
.tv-chain-list { display: flex; flex-direction: column; gap: 0; }
.tv-chain-row {
  display: grid; grid-template-columns: 20px 70px 70px 1fr; align-items: center;
  gap: 6px; padding: 6px 4px; border-bottom: 1px solid rgba(42,46,57,.5); font-size: .8rem;
}
.tv-chain-rank { color: var(--tv-muted); font-size: .7rem; text-align: center; }
.tv-chain-name { font-weight: 600; color: var(--tv-text); }
.tv-chain-tvl { color: var(--tv-text); font-weight: 500; font-variant-numeric: tabular-nums; }
.tv-chain-bar { height: 3px; background: rgba(255,255,255,.04); border-radius: 2px; overflow: hidden; }
.tv-chain-bar-fill { height: 100%; border-radius: 2px; background: linear-gradient(90deg, var(--tv-rise), #5ce0d6); transition: width .8s; }

/* CTA bar */
.tv-cta-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 10px 14px; background: linear-gradient(135deg, rgba(41,98,255,.08), rgba(34,171,148,.04));
  border: 1px solid rgba(41,98,255,.2); border-radius: 8px;
  font-size: .8rem;
}
.tv-cta-bar strong { color: #2962ff; }
.tv-cta-bar .muted { font-size: .82rem; }

/* Mobile */
/* ── AI Coin Cards ── */
.tv-ai-coin-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tv-ai-coin-card {
  background: var(--tv-card); border: 1px solid var(--tv-border); border-radius: 10px;
  padding: 14px; transition: all .25s; position: relative; overflow: hidden;
}
.tv-ai-coin-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--tv-rise), #2962ff, var(--tv-fall));
  opacity: 0; transition: opacity .25s;
}
.tv-ai-coin-card:hover { border-color: rgba(41,98,255,.3); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,.35); }
.tv-ai-coin-card:hover::before { opacity: 1; }
.tv-ai-coin-header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.tv-ai-coin-sym { font-size: 1.15rem; font-weight: 800; color: #fff; }
.tv-ai-coin-summary { font-size: .82rem; color: #a0b4c8; line-height: 1.45; margin-bottom: 8px; min-height: 2em; }
.tv-ai-coin-price { font-size: .95rem; color: #fff; font-weight: 700; margin-left: auto; font-variant-numeric: tabular-nums; }
.tv-ai-coin-chg { font-size: .8rem; font-weight: 700; padding: 2px 8px; border-radius: 4px; }
.tv-ai-coin-scores {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; margin-bottom: 8px;
  padding: 8px; background: var(--tv-bg); border-radius: 6px;
}
.tv-ai-coin-tags { display: flex; gap: 6px; margin-bottom: 6px; flex-wrap: wrap; }
.tv-tag {
  font-size: .72rem; padding: 3px 8px; border-radius: 20px; font-weight: 600;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  color: #b8c8d8;
}
.tv-ai-alerts { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(42,46,57,.5); }
.tv-ai-alert {
  font-size: .76rem; color: #c8d4e0; padding: 5px 10px;
  border-left: 2px solid var(--tv-muted); line-height: 1.35;
  background: rgba(255,255,255,.025); border-radius: 0 4px 4px 0;
}
.tv-ai-score-label { font-size: .74rem; color: #a0b4c8; font-weight: 600; }
.tv-ai-coin-detail {
  display: flex; gap: 12px; font-size: .75rem; color: var(--tv-muted);
  padding-top: 8px; border-top: 1px solid var(--tv-border);
}
.tv-ai-whale-signals { margin-top: 6px; }
.tv-ai-ws {
  font-size: .7rem; color: var(--tv-muted); padding: 3px 0;
  border-bottom: 1px solid rgba(42,46,57,.3);
}

/* (merged into signal rows above) */

/* ── Merged Signal Rows ── */
.tv-signals-merged { display: flex; flex-direction: column; gap: 2px; }
.tv-signal-row {
  display: grid; grid-template-columns: 26px 72px 1fr auto; align-items: center;
  gap: 10px; padding: 9px 10px; border-radius: 6px;
  font-size: .82rem; transition: background .15s;
}
.tv-signal-row:hover { background: rgba(255,255,255,.02); }
.tv-signal-sub { padding-left: 44px; grid-template-columns: 24px 64px 1fr; font-size: .78rem; opacity: .7; }
.tv-signal-icon { text-align: center; font-size: 1.1rem; }
.tv-signal-label { font-weight: 700; color: #a0b4c8; font-size: .75rem; text-transform: uppercase; letter-spacing: .03em; }
.tv-signal-text { color: #e0e4ea; line-height: 1.4; }
.tv-signal-meta { font-size: .78rem; color: #a0b4c8; white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 600; }
.tv-signal-track {
  background: linear-gradient(135deg, rgba(34,171,148,.06), rgba(34,171,148,.02));
  border-radius: 8px; margin-top: 4px; border: 1px solid rgba(34,171,148,.12);
}

/* ── AI Brief Banner ── */
.tv-ai-brief {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  background: linear-gradient(135deg, rgba(41,98,255,.1), rgba(34,171,148,.05));
  border: 1px solid rgba(41,98,255,.18); border-radius: 8px; margin-bottom: 8px;
  font-size: .78rem; color: var(--tv-text); line-height: 1.4;
  box-shadow: 0 2px 12px rgba(41,98,255,.06);
}
.tv-brief-icon { font-size: 1.4rem; flex-shrink: 0; }

/* ── Macro Event Warning ── */
.tv-macro-warn {
  display: flex; flex-direction: column; gap: 4px; padding: 10px 14px;
  background: rgba(242,54,69,.06); border: 1px solid rgba(242,54,69,.25);
  border-radius: 6px; margin-bottom: 8px; font-size: .82rem; color: var(--tv-text);
}
.tv-macro-icon { font-size: 1.1rem; margin-right: 6px; }
.tv-macro-event { font-size: .75rem; color: var(--tv-muted); padding-left: 24px; }

/* Mobile */
@media (max-width: 1100px) {
  .tv-ai-coin-list { grid-template-columns: repeat(2, 1fr); }
  .tv-status-bar { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .tv-status-bar { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .tv-cta-bar { flex-direction: column; text-align: center; }
  .tv-ai-coin-list { grid-template-columns: 1fr; }
  .tv-ticker-item { flex: none; }
}
@media (max-width: 480px) {
  .tv-status-bar { grid-template-columns: 1fr; }
}

/* ── AI Chat Floating Widget ── */
.chat-widget {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999;
}
.chat-widget-btn {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, #5ce0d6, #2bb8d4);
  border: none; color: #0a0f1c; font-weight: 800; font-size: 1rem;
  cursor: pointer; box-shadow: 0 4px 20px rgba(92,224,214,.4);
  transition: transform .2s;
}
.chat-widget-btn:hover { transform: scale(1.1); }
.chat-widget-panel {
  position: absolute; bottom: 62px; right: 0;
  width: 340px; height: 440px;
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,.6);
  display: flex; flex-direction: column;
}
.chat-widget-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: .6rem 1rem; background: rgba(92,224,214,.06);
  border-bottom: 1px solid var(--border);
  font-size: .85rem; font-weight: 700; color: #fff;
}
.chat-widget-close {
  background: none; border: none; color: var(--muted); font-size: 1.3rem;
  cursor: pointer; padding: 0; line-height: 1;
}
.chat-widget-close:hover { color: #fff; }
.chat-widget-messages {
  flex: 1; overflow-y: auto; padding: .6rem .8rem;
  display: flex; flex-direction: column; gap: .4rem;
}
.chat-widget-input {
  display: flex; gap: .4rem; padding: .5rem .6rem;
  border-top: 1px solid var(--border); background: var(--bg-elev2);
}
.chat-widget-input input {
  flex: 1; background: var(--bg); border: 1px solid var(--border);
  border-radius: 6px; padding: .4rem .6rem; color: #fff; font-size: .8rem;
}
.chat-widget-input button {
  background: linear-gradient(135deg, #5ce0d6, #2bb8d4);
  border: none; border-radius: 6px; padding: .4rem .8rem;
  color: #0a0f1c; font-weight: 700; font-size: .78rem; cursor: pointer;
}
@media (max-width: 480px) {
  .chat-widget-panel { width: calc(100vw - 2rem); right: -1rem; }
}
