/* =====================================================
   Quantum Wealth AI — Futuristic Trading Platform
   Dark mode · Neon · Glassmorphism · Space Grotesk
   ===================================================== */

:root {
  --bg-0: #05060d;
  --bg-1: #0a0d1a;
  --bg-2: #0f1426;
  --bg-3: #131a30;
  --line: rgba(120, 130, 200, 0.12);
  --line-strong: rgba(140, 150, 220, 0.22);

  --text: #e7eaf6;
  --text-dim: #9aa3c7;
  --text-mute: #6b7396;

  --neon-blue: #4cc9ff;
  --neon-purple: #a78bfa;
  --neon-pink: #f472b6;
  --neon-green: #4ade80;
  --neon-red: #f87171;
  --neon-amber: #fbbf24;

  --grad-primary: linear-gradient(135deg, #4cc9ff 0%, #a78bfa 60%, #f472b6 100%);
  --grad-cool: linear-gradient(135deg, #1e2a78 0%, #4cc9ff 100%);
  --grad-card: linear-gradient(180deg, rgba(76,201,255,0.05), rgba(167,139,250,0.04));

  --glow-blue: 0 0 24px rgba(76,201,255,0.35);
  --glow-purple: 0 0 28px rgba(167,139,250,0.35);
  --shadow-card: 0 10px 40px rgba(0,0,0,0.45), 0 0 0 1px rgba(140,150,220,0.08);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }
html { overflow-x: hidden; }
body {
  font-family: var(--font-display);
  background: var(--bg-0);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--neon-blue); }

::selection { background: rgba(76,201,255,0.35); color: white; }

/* ========= Animated Background ========= */
.bg-fx {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(76,201,255,0.10), transparent 60%),
    radial-gradient(900px 500px at 90% 10%, rgba(167,139,250,0.10), transparent 60%),
    radial-gradient(800px 400px at 50% 110%, rgba(244,114,182,0.07), transparent 60%),
    var(--bg-0);
}
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(120,130,200,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,130,200,0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 40%, transparent 75%);
}
.orb {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: .6;
  animation: float 18s ease-in-out infinite;
}
.orb-1 { width: 380px; height: 380px; background: #4cc9ff; top: -60px; left: -80px; }
.orb-2 { width: 460px; height: 460px; background: #a78bfa; top: 30%; right: -120px; animation-delay: -6s; }
.orb-3 { width: 320px; height: 320px; background: #f472b6; bottom: -120px; left: 30%; animation-delay: -12s; }
@keyframes float {
  0%,100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-50px) scale(1.05); }
}

/* ========= Navbar ========= */
.navbar {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(10,13,26,0.65);
  border-bottom: 1px solid var(--line);
}
.nav-container {
  max-width: 1320px; margin: 0 auto; padding: 18px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-weight: 700; letter-spacing: -0.02em; font-size: 1.15rem;
}
.logo-mark {
  width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--grad-primary);
  color: #0a0d1a; font-size: 18px;
  box-shadow: var(--glow-blue);
  animation: pulseGlow 3s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%,100% { box-shadow: 0 0 22px rgba(76,201,255,0.45); }
  50% { box-shadow: 0 0 40px rgba(167,139,250,0.65); }
}
.brand-text {
  background: var(--grad-primary);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-size: 0.95rem; color: var(--text-dim); font-weight: 500;
  transition: color .2s ease;
}
.nav-links a:hover { color: white; }
.nav-toggle { display: none; background: transparent; color: var(--text); border: none; font-size: 22px; cursor: pointer; }

/* ========= Buttons ========= */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .2s ease, box-shadow .25s ease, background-color .2s ease;
  font-family: var(--font-display);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--grad-primary); color: #07091a;
  font-weight: 700;
  letter-spacing: 0.005em;
  text-shadow: 0 1px 0 rgba(255,255,255,0.18);
  -webkit-font-smoothing: antialiased;
  box-shadow: 0 8px 24px rgba(76,201,255,0.35);
}
.btn-primary:hover { box-shadow: 0 12px 32px rgba(167,139,250,0.5); color: #07091a; }
.btn-primary i { color: #07091a; }
.btn-ghost {
  background: rgba(255,255,255,0.04); color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); color: white; }
.btn-outline {
  background: transparent; color: var(--neon-blue);
  border-color: rgba(76,201,255,0.35);
}
.btn-outline:hover { background: rgba(76,201,255,0.1); }
.btn-danger { background: rgba(248,113,113,0.12); color: var(--neon-red); border-color: rgba(248,113,113,0.3); }
.btn-success { background: rgba(74,222,128,0.12); color: var(--neon-green); border-color: rgba(74,222,128,0.3); }
.btn-sm { padding: 8px 14px; font-size: 0.82rem; }
.btn-block { width: 100%; justify-content: center; }

/* ========= Layout ========= */
.main-content { min-height: calc(100vh - 80px); }
.container { max-width: 1320px; margin: 0 auto; padding: 32px 28px; }
.app-shell {
  display: grid; grid-template-columns: 280px 1fr;
  gap: 28px; max-width: 1480px; margin: 0 auto; padding: 28px;
}
.app-shell .content { min-width: 0; }

/* ========= Hero ========= */
.hero {
  position: relative; padding: 100px 28px 80px;
  text-align: left; max-width: 1320px; margin: 0 auto;
}
.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 60px; align-items: center; }
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 1.05; letter-spacing: -0.03em; font-weight: 700;
  margin-bottom: 22px;
}
.hero h1 .glow {
  background: var(--grad-primary);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 24px rgba(76,201,255,0.25));
}
.hero p.lead {
  font-size: 1.1rem; color: var(--text-dim); max-width: 540px; margin-bottom: 36px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 999px;
  background: rgba(76,201,255,0.08); border: 1px solid rgba(76,201,255,0.2);
  color: var(--neon-blue); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em;
  margin-bottom: 24px; text-transform: uppercase;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--neon-blue); box-shadow: 0 0 10px var(--neon-blue); animation: blink 1.5s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.4} }

.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px;
}
.hero-stats .stat-mini { padding: 16px 18px; border-radius: 14px; background: rgba(255,255,255,0.03); border: 1px solid var(--line); }
.hero-stats .num { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 600; color: white; }
.hero-stats .lbl { font-size: 0.78rem; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 4px; }

/* AI Holographic visual */
.ai-holo {
  position: relative; aspect-ratio: 1; max-width: 480px; margin-left: auto;
}
.ai-holo .ring {
  position: absolute; border-radius: 50%; border: 1px solid rgba(167,139,250,0.25);
  inset: 0; animation: spin 30s linear infinite;
}
.ai-holo .ring:nth-child(2) { inset: 12%; border-color: rgba(76,201,255,0.3); animation-direction: reverse; animation-duration: 22s; }
.ai-holo .ring:nth-child(3) { inset: 26%; border-color: rgba(244,114,182,0.25); animation-duration: 18s; }
.ai-holo .core {
  position: absolute; inset: 36%; border-radius: 50%;
  background: var(--grad-primary); filter: blur(2px);
  animation: pulseGlow 3s ease-in-out infinite;
}
.ai-holo .tag {
  position: absolute; padding: 6px 12px; border-radius: 999px;
  background: rgba(10,13,26,0.7); border: 1px solid var(--line-strong);
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--neon-blue);
  backdrop-filter: blur(8px);
}
.ai-holo .tag.t1 { top: 8%; left: 0; }
.ai-holo .tag.t2 { top: 30%; right: 0; color: var(--neon-purple); }
.ai-holo .tag.t3 { bottom: 18%; left: 8%; color: var(--neon-pink); }
.ai-holo .tag.t4 { bottom: 4%; right: 14%; color: var(--neon-green); }
@keyframes spin { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }

/* ========= Sections ========= */
.section { padding: 80px 28px; max-width: 1320px; margin: 0 auto; }
.section-head { margin-bottom: 48px; max-width: 720px; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head h2 {
  font-size: clamp(2rem, 3.5vw, 3rem); letter-spacing: -0.02em; line-height: 1.1;
}
.section-head p { color: var(--text-dim); font-size: 1.05rem; margin-top: 12px; }

/* ========= Cards / Glass ========= */
.glass {
  background: var(--grad-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.card { padding: 24px; }
.card.glass:hover { border-color: var(--line-strong); }

/* ========= Stats Grid ========= */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-bottom: 28px; }
.stat-card { padding: 22px; position: relative; overflow: hidden; }
.stat-card .label { color: var(--text-mute); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; }
.stat-card .value { font-family: var(--font-mono); font-size: 1.8rem; font-weight: 600; margin-top: 8px; }
.stat-card .delta { margin-top: 8px; font-size: 0.85rem; }
.stat-card .delta.up { color: var(--neon-green); }
.stat-card .delta.down { color: var(--neon-red); }
.stat-card .icon-bg {
  position: absolute; right: -10px; top: -10px;
  width: 80px; height: 80px; border-radius: 50%;
  display: grid; place-items: center; font-size: 28px;
  opacity: 0.18;
}
.stat-card.tone-blue .icon-bg { color: var(--neon-blue); background: rgba(76,201,255,0.1); }
.stat-card.tone-purple .icon-bg { color: var(--neon-purple); background: rgba(167,139,250,0.1); }
.stat-card.tone-green .icon-bg { color: var(--neon-green); background: rgba(74,222,128,0.1); }
.stat-card.tone-pink .icon-bg { color: var(--neon-pink); background: rgba(244,114,182,0.1); }
.stat-card.tone-amber .icon-bg { color: var(--neon-amber); background: rgba(251,191,36,0.1); }

/* ========= Live Markets ========= */
.market-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.market-tile {
  padding: 22px; display: flex; flex-direction: column; gap: 10px;
  transition: transform .25s ease, border-color .25s ease;
}
.market-tile:hover { transform: translateY(-3px); border-color: rgba(76,201,255,0.35); }
.market-tile .sym { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.market-tile .sym-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.market-tile .name { font-weight: 600; }
.market-tile .badge {
  padding: 3px 10px; border-radius: 999px; font-size: 0.7rem;
  background: rgba(76,201,255,0.1); color: var(--neon-blue); font-family: var(--font-mono);
}
.market-tile .badge.crypto { background: rgba(167,139,250,0.12); color: var(--neon-purple); }
.market-tile .price { font-family: var(--font-mono); font-size: 1.6rem; font-weight: 600; }
.market-tile .chg { font-family: var(--font-mono); font-size: 0.85rem; }
.chg.up { color: var(--neon-green); } .chg.down { color: var(--neon-red); }
.spark { height: 36px; }

/* ========= Plans ========= */
.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.plan-card {
  padding: 28px; position: relative; overflow: hidden;
  transition: transform .3s ease, border-color .3s ease;
}
.plan-card:hover { transform: translateY(-4px); border-color: rgba(167,139,250,0.4); }
.plan-card .plan-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  font-size: 22px; margin-bottom: 18px;
  background: rgba(76,201,255,0.1); color: var(--neon-blue);
}
.plan-card.t-purple .plan-icon { background: rgba(167,139,250,0.12); color: var(--neon-purple); }
.plan-card.t-pink .plan-icon { background: rgba(244,114,182,0.12); color: var(--neon-pink); }
.plan-card h3 { font-size: 1.4rem; margin-bottom: 8px; }
.plan-card .desc { color: var(--text-dim); font-size: 0.92rem; min-height: 56px; }
.plan-meta { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-top: 18px; border-top: 1px dashed var(--line); }
.plan-meta div .lbl { color: var(--text-mute); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; }
.plan-meta div .val { font-family: var(--font-mono); font-weight: 600; margin-top: 4px; }
.roi-range { color: var(--neon-green); }

/* ========= Tables ========= */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); }
.table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 720px; }
.table th, .table td { padding: 14px 18px; text-align: left; font-size: 0.92rem; }
.table thead th {
  color: var(--text-mute); text-transform: uppercase; font-size: 0.74rem; letter-spacing: 0.08em;
  font-weight: 600; border-bottom: 1px solid var(--line);
}
.table tbody td { border-bottom: 1px solid var(--line); }
.table tbody tr:hover td { background: rgba(255,255,255,0.02); }
.table tbody tr:last-child td { border-bottom: 0; }
.tag { padding: 4px 10px; border-radius: 999px; font-size: 0.74rem; font-weight: 600; font-family: var(--font-mono); display: inline-block; }
.tag-pending { background: rgba(251,191,36,0.12); color: var(--neon-amber); }
.tag-approved, .tag-paid, .tag-active, .tag-closed { background: rgba(74,222,128,0.12); color: var(--neon-green); }
.tag-rejected, .tag-cancelled, .tag-suspended { background: rgba(248,113,113,0.12); color: var(--neon-red); }
.tag-open { background: rgba(76,201,255,0.12); color: var(--neon-blue); }
.tag-buy { background: rgba(74,222,128,0.12); color: var(--neon-green); }
.tag-sell { background: rgba(248,113,113,0.12); color: var(--neon-red); }

/* ========= Forms ========= */
.form-card { max-width: 460px; margin: 80px auto; padding: 40px; }
.form-card.wide { max-width: 560px; }
.form-card h2 { font-size: 1.7rem; margin-bottom: 8px; }
.form-card .sub { color: var(--text-dim); margin-bottom: 28px; font-size: 0.95rem; }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: 0.86rem; color: var(--text-dim); margin-bottom: 8px; font-weight: 500; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 13px 16px;
  background: rgba(10,13,26,0.6); color: var(--text);
  border: 1px solid var(--line-strong); border-radius: 12px;
  font-family: var(--font-display); font-size: 0.95rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none; border-color: var(--neon-blue);
  box-shadow: 0 0 0 3px rgba(76,201,255,0.18);
}
.form-row .hint { font-size: 0.78rem; color: var(--text-mute); margin-top: 6px; }
.form-link { color: var(--neon-blue); font-weight: 500; }

/* Flash messages */
.flash {
  margin: 16px auto; max-width: 640px; padding: 14px 18px;
  border-radius: 12px; backdrop-filter: blur(10px);
  font-size: 0.92rem; border: 1px solid;
  animation: slideDown .35s ease;
}
.flash-success { background: rgba(74,222,128,0.08); border-color: rgba(74,222,128,0.3); color: var(--neon-green); }
.flash-error   { background: rgba(248,113,113,0.08); border-color: rgba(248,113,113,0.3); color: var(--neon-red); }
.flash-warning { background: rgba(251,191,36,0.08); border-color: rgba(251,191,36,0.3); color: var(--neon-amber); }
.flash-info    { background: rgba(76,201,255,0.08); border-color: rgba(76,201,255,0.3); color: var(--neon-blue); }
@keyframes slideDown { from { opacity:0; transform: translateY(-12px); } to { opacity:1; transform:none; } }

/* ========= Sidebar (auth area) ========= */
.sidebar {
  padding: 24px; border-radius: var(--radius-lg);
  background: rgba(15,20,38,0.6); backdrop-filter: blur(14px);
  border: 1px solid var(--line); align-self: start; position: sticky; top: 96px;
}
.sidebar-user { display: flex; gap: 12px; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.avatar { width: 44px; height: 44px; border-radius: 12px; background: var(--grad-primary); color: #0a0d1a; font-weight: 700; display: grid; place-items: center; font-size: 18px; }
.su-name { font-weight: 600; font-size: 0.95rem; }
.su-role { font-size: 0.78rem; color: var(--text-mute); }
.sidebar-nav { display: flex; flex-direction: column; gap: 4px; }
.sidebar-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: 10px; color: var(--text-dim);
  font-size: 0.92rem; transition: background .2s ease, color .2s ease;
}
.sidebar-nav a:hover { background: rgba(255,255,255,0.04); color: white; }
.sidebar-nav a.active { background: rgba(76,201,255,0.1); color: var(--neon-blue); border: 1px solid rgba(76,201,255,0.2); }
.sidebar-nav a i { width: 18px; text-align: center; }
.sidebar-nav .logout-link { margin-top: 12px; color: var(--neon-red); border-top: 1px solid var(--line); padding-top: 16px; border-radius: 0; }
.sidebar-nav .logout-link:hover { color: white; background: rgba(248,113,113,0.08); }

/* ========= Page Header ========= */
.page-header { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.page-header h1 { font-size: 2rem; letter-spacing: -0.02em; }
.page-header p { color: var(--text-dim); margin-top: 4px; }

/* ========= Footer ========= */
.site-footer {
  margin-top: 80px; padding: 60px 28px 30px;
  border-top: 1px solid var(--line); background: rgba(5,6,13,0.6);
}
.footer-grid {
  max-width: 1320px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
}
.footer-grid h4 { color: var(--text-dim); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px; }
.footer-grid a { display: block; padding: 6px 0; color: var(--text-dim); font-size: 0.92rem; }
.footer-tag { color: var(--text-dim); margin-top: 14px; max-width: 320px; }
.footer-bottom {
  max-width: 1320px; margin: 40px auto 0;
  padding-top: 28px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  color: var(--text-mute); font-size: 0.85rem;
}
.status-pill { display: flex; gap: 8px; align-items: center; }
.status-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--neon-green); box-shadow: 0 0 8px var(--neon-green); animation: blink 1.6s infinite; }

/* ========= Misc ========= */
.divider { height: 1px; background: var(--line); margin: 24px 0; }
.muted { color: var(--text-mute); }
.row-gap { display: flex; gap: 16px; flex-wrap: wrap; }
.between { display: flex; justify-content: space-between; align-items: center; }
.qr-img { width: 200px; height: 200px; border-radius: 14px; border: 1px solid var(--line); padding: 12px; background: white; }
.copy-input { display: flex; gap: 8px; align-items: stretch; }
.copy-input input { font-family: var(--font-mono); font-size: 0.85rem; }

/* Toggle switch */
.net-toggle { position: relative; display: inline-block; width: 44px; height: 24px; }
.net-toggle input { opacity: 0; width: 0; height: 0; }
.net-toggle-slider {
  position: absolute; cursor: pointer; inset: 0;
  background: rgba(120,130,200,0.2); border: 1px solid var(--line-strong);
  border-radius: 999px; transition: all .25s ease;
}
.net-toggle-slider::before {
  content: ''; position: absolute; height: 16px; width: 16px;
  left: 3px; top: 3px; background: var(--text-dim); border-radius: 50%;
  transition: all .25s ease;
}
.net-toggle input:checked + .net-toggle-slider {
  background: rgba(74,222,128,0.25); border-color: rgba(74,222,128,0.5);
}
.net-toggle input:checked + .net-toggle-slider::before {
  transform: translateX(20px); background: var(--neon-green);
  box-shadow: 0 0 12px rgba(74,222,128,0.7);
}

/* WhatsApp banner */
.whatsapp-banner {
  display: flex; align-items: center; gap: 18px;
  padding: 18px 22px; margin-bottom: 22px;
  background: linear-gradient(135deg, rgba(37,211,102,0.12), rgba(167,139,250,0.06));
  border: 1px solid rgba(37,211,102,0.3);
  text-decoration: none; color: var(--text);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.whatsapp-banner:hover {
  transform: translateY(-2px); color: var(--text);
  border-color: rgba(37,211,102,0.6);
  box-shadow: 0 12px 32px rgba(37,211,102,0.18);
}
.whatsapp-banner .wa-icon {
  width: 50px; height: 50px; border-radius: 14px;
  display: grid; place-items: center; font-size: 26px;
  background: rgba(37,211,102,0.18); color: #25d366;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(37,211,102,0.35);
}

/* AI Trading Feed */
.ai-feed-card { padding: 24px; }
.ai-pulse {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--neon-green); display: inline-block;
  box-shadow: 0 0 12px var(--neon-green);
  animation: pulse-dot 1.4s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}
.ai-tick::before {
  content: '◉'; color: var(--neon-blue); margin-right: 6px;
  animation: blink 1.6s infinite;
}
.ai-feed-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.ai-pair {
  position: relative; padding: 16px;
  background: rgba(10,13,26,0.5); border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color .2s ease, transform .2s ease;
  overflow: hidden;
  animation: aiFadeIn .3s ease;
}
.ai-pair:hover { border-color: rgba(76,201,255,0.35); transform: translateY(-2px); }
@keyframes aiFadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.ai-pair::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon-blue), transparent);
  animation: aiScan 2.4s linear infinite;
}
@keyframes aiScan {
  0% { transform: translateX(-100%); } 100% { transform: translateX(100%); }
}
.ai-pair-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px;
}
.ai-symbol {
  font-family: var(--font-mono); font-weight: 600; font-size: 0.92rem; color: var(--text);
  letter-spacing: 0.02em;
}
.ai-signal {
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 700;
  padding: 3px 9px; border-radius: 6px; letter-spacing: 0.06em;
}
.sig-buy { background: rgba(74,222,128,0.15); color: var(--neon-green); border: 1px solid rgba(74,222,128,0.35); }
.sig-sell { background: rgba(248,113,113,0.15); color: var(--neon-red); border: 1px solid rgba(248,113,113,0.35); }
.sig-hold { background: rgba(251,191,36,0.15); color: var(--neon-amber); border: 1px solid rgba(251,191,36,0.35); }
.ai-price {
  font-family: var(--font-mono); font-size: 1.4rem; font-weight: 600;
  color: white; margin-bottom: 8px;
  text-shadow: 0 0 16px rgba(76,201,255,0.2);
}
.ai-pair-bot {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono); font-size: 0.78rem;
  margin-bottom: 10px;
}
.ai-chg.up { color: var(--neon-green); }
.ai-chg.down { color: var(--neon-red); }
.ai-status { color: var(--text-mute); display:flex; align-items:center; gap:6px; }
.ai-status i { color: var(--neon-purple); font-size: 0.85rem; }
.ai-progress {
  height: 3px; background: rgba(120,130,200,0.1); border-radius: 999px;
  overflow: hidden; margin-bottom: 8px;
}
.ai-progress span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
  transition: width .8s ease;
  box-shadow: 0 0 8px rgba(76,201,255,0.5);
}
.ai-lots {
  font-family: var(--font-mono); font-size: 0.72rem;
  color: var(--text-mute); text-align: right;
}

/* Referral Banner on Dashboard — full Quantum theme */
.referral-banner {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  gap: 22px;
  padding: 22px 26px;
  margin-bottom: 22px;
  flex-wrap: wrap;
  border-radius: 18px;
  background:
    radial-gradient(700px 200px at 0% 0%, rgba(76, 201, 255, 0.18), transparent 60%),
    radial-gradient(700px 200px at 100% 100%, rgba(167, 139, 250, 0.22), transparent 60%),
    linear-gradient(135deg, rgba(14, 18, 36, 0.85), rgba(20, 14, 36, 0.92));
  border: 1px solid rgba(167, 139, 250, 0.32);
  box-shadow: 0 0 32px rgba(167, 139, 250, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}
.ref-banner-glow {
  position: absolute; inset: -40% -20%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.18), transparent 55%);
  filter: blur(40px);
  animation: ref-glow 9s ease-in-out infinite;
}
@keyframes ref-glow {
  0%, 100% { transform: translate(-10%, -10%); }
  50%      { transform: translate(10%, 10%); }
}
.ref-banner-icon {
  position: relative; z-index: 1;
  width: 60px; height: 60px; border-radius: 16px;
  display: grid; place-items: center; font-size: 24px;
  background: linear-gradient(135deg, #6366f1, #a78bfa, #ec4899);
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 0 26px rgba(167, 139, 250, 0.55);
  animation: ref-icon-float 4s ease-in-out infinite;
}
@keyframes ref-icon-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}
.ref-banner-content {
  position: relative; z-index: 1;
  flex: 1; min-width: 240px;
  display: flex; flex-direction: column; gap: 8px;
}
.ref-banner-title {
  font-size: 1.15rem; font-weight: 700; color: #fff;
  line-height: 1.3;
}
.ref-banner-pct {
  background: linear-gradient(135deg, #4cc9ff, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: var(--font-mono);
  font-size: 1.35rem;
  text-shadow: 0 0 18px rgba(167, 139, 250, 0.5);
}
.ref-banner-sub {
  font-size: 0.86rem;
  color: var(--text-soft);
}
.ref-banner-sub strong { color: #4cc9ff; }
.ref-banner-levels {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin-top: 4px;
}
.ref-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.72rem; font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform .15s ease, box-shadow .15s ease;
}
.ref-pill:hover { transform: translateY(-1px); }
.ref-pill.on {
  background: linear-gradient(135deg, rgba(76, 201, 255, 0.22), rgba(167, 139, 250, 0.18));
  border-color: rgba(167, 139, 250, 0.45);
  color: #fff;
  box-shadow: 0 0 12px rgba(167, 139, 250, 0.25);
}
.ref-pill.off {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-mute);
}
.ref-pill .ref-pill-l { opacity: 0.7; }
.ref-pill .ref-pill-v {
  font-size: 0.78rem;
  background: linear-gradient(135deg, #4cc9ff, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ref-pill.off .ref-pill-v {
  background: none; color: var(--text-mute);
}
.ref-link-wrap {
  position: relative; z-index: 1;
  min-width: 320px; flex: 1.1; max-width: 480px;
  display: flex; flex-direction: column; gap: 6px;
}
.ref-link-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--text-mute);
  text-transform: uppercase;
}
.ref-link-box {
  display: flex; align-items: stretch;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(167, 139, 250, 0.35);
  background: rgba(8, 11, 22, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.ref-link-box:hover {
  border-color: rgba(167, 139, 250, 0.65);
  box-shadow: 0 0 18px rgba(167, 139, 250, 0.18);
}
.ref-link-box input {
  flex: 1;
  background: transparent !important;
  border: 0 !important;
  padding: 12px 14px !important;
  font-family: var(--font-mono) !important;
  font-size: 0.84rem !important;
  color: #d6def3 !important;
  outline: none !important;
}
.ref-link-box input:focus { outline: none !important; }
.ref-copy-btn {
  background: linear-gradient(135deg, #6366f1, #a78bfa);
  color: #fff;
  border: 0;
  padding: 0 18px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  transition: filter .2s ease, transform .15s ease;
  white-space: nowrap;
}
.ref-copy-btn:hover { filter: brightness(1.15); transform: translateX(-1px); }
.ref-link-code {
  font-size: 0.76rem; color: var(--text-mute);
  font-family: var(--font-mono);
}
.ref-link-code strong { color: #4cc9ff; font-weight: 700; }

@media (max-width: 880px) {
  .referral-banner { padding: 18px; gap: 16px; }
  .ref-banner-icon { width: 50px; height: 50px; font-size: 20px; border-radius: 13px; }
  .ref-banner-title { font-size: 1rem; }
  .ref-banner-pct { font-size: 1.15rem; }
  .ref-link-wrap { min-width: 100%; max-width: 100%; }
}

/* Admin: per-level commission toggle card */
.level-toggle-card {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(167, 139, 250, 0.25);
  background: rgba(167, 139, 250, 0.04);
  transition: border-color .2s ease, opacity .2s ease, background .2s ease;
}
.level-toggle-card.off {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  opacity: 0.65;
}
.level-toggle-card input[type="number"] {
  margin-top: 4px;
}

/* Empty chart state */
.empty-chart {
  text-align: center; padding: 50px 20px;
  display: flex; flex-direction: column; align-items: center;
}
.empty-chart-icon {
  width: 64px; height: 64px; border-radius: 16px;
  display: grid; place-items: center; font-size: 26px;
  background: rgba(76,201,255,0.08); color: var(--neon-blue);
  border: 1px solid rgba(76,201,255,0.2);
}

/* Manual AI Trades */
.ai-tabs { display: flex; gap: 8px; margin-bottom: 18px; border-bottom: 1px solid var(--line); padding-bottom: 12px; flex-wrap: wrap; }
.ai-tab {
  padding: 10px 18px; background: transparent; border: 1px solid var(--line);
  border-radius: 999px; color: var(--text-dim); cursor: pointer;
  font-family: var(--font-display); font-size: 0.92rem; font-weight: 500;
  display: inline-flex; align-items: center; gap: 8px;
  transition: all .2s ease;
}
.ai-tab:hover { color: white; border-color: var(--line-strong); }
.ai-tab.active {
  background: rgba(76,201,255,0.1); color: var(--neon-blue);
  border-color: rgba(76,201,255,0.4);
}
.ai-tab-count {
  font-family: var(--font-mono); font-size: 0.74rem;
  background: rgba(255,255,255,0.06); padding: 2px 8px; border-radius: 8px;
}

.ai-pairs-grid { display: none; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.ai-pairs-grid.active { display: grid; }
.ai-pair-tile {
  position: relative; overflow: hidden;
  padding: 18px 16px; background: rgba(15,20,38,0.5);
  border: 1px solid var(--line); border-radius: 14px; cursor: pointer;
  text-align: left; color: var(--text); font-family: var(--font-display);
  transition: all .25s ease;
}
.ai-pair-tile:disabled { opacity: 0.5; cursor: not-allowed; }
.ai-pair-tile:not(:disabled):hover {
  transform: translateY(-3px);
  border-color: rgba(167,139,250,0.5);
  box-shadow: 0 12px 28px rgba(167,139,250,0.18);
}
.apt-symbol {
  font-family: var(--font-mono); font-size: 1.1rem; font-weight: 600;
  margin-bottom: 12px; letter-spacing: 0.02em;
}
.apt-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.82rem; color: var(--neon-blue);
  font-family: var(--font-mono);
}
.apt-shine {
  position: absolute; top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(76,201,255,0.18), transparent);
  transition: left .8s ease;
  pointer-events: none;
}
.ai-pair-tile:not(:disabled):hover .apt-shine { left: 120%; }

/* Pair icons (forex flags + crypto logos) */
.pair-icon {
  display: inline-block; position: relative;
  width: calc(var(--ic-size, 26px) * 1.55);
  height: var(--ic-size, 26px);
  flex-shrink: 0; vertical-align: middle;
}
.pi-base, .pi-quote {
  position: absolute; top: 0;
  width: var(--ic-size, 26px); height: var(--ic-size, 26px);
}
.pi-base  { left: 0; z-index: 1; }
.pi-quote { left: calc(var(--ic-size, 26px) * 0.55); z-index: 2; }
.pi-disc {
  display: block; width: 100%; height: 100%;
  border-radius: 50%;
  background-color: #1a2240;
  background-size: cover; background-position: center;
  background-repeat: no-repeat;
  border: 2px solid var(--bg-1);
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  font-family: var(--font-mono);
  font-size: calc(var(--ic-size, 26px) * 0.38);
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  color: white; text-align: center;
}
.pi-fallback.pi-metal-gold {
  background: linear-gradient(135deg, #f7d28a, #c89535 60%, #8a6121);
  color: #2a1a00;
  text-shadow: 0 1px 0 rgba(255,255,255,0.4);
}
.pi-fallback.pi-metal-silver {
  background: linear-gradient(135deg, #e6e9ef, #aab0bd 60%, #6c7280);
  color: #1a1d24;
  text-shadow: 0 1px 0 rgba(255,255,255,0.5);
}
.pi-fallback.pi-unknown {
  background: linear-gradient(135deg, #4cc9ff, #a78bfa);
  color: #0a0d1a;
}

/* Pair-icon inside Manual AI Trades tiles */
.ai-pair-tile { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; padding-top: 16px; }
.ai-pair-tile .pair-icon { margin-bottom: 2px; }
.ai-pair-tile .apt-symbol { margin-bottom: 0; }

/* Pair-icon inside dashboard AI Trading Engine */
.ai-symbol { display: inline-flex; align-items: center; gap: 8px; }
.ai-symbol .pair-icon { vertical-align: middle; }

/* ===== Execution Engine Panel ===== */
.execution-engine {
  position: relative; overflow: hidden;
  padding: 24px 28px; margin-bottom: 22px;
  border-radius: 18px;
  background:
    radial-gradient(800px 200px at 50% -50%, rgba(74,222,128,0.10), transparent 60%),
    linear-gradient(135deg, rgba(15,20,38,0.85), rgba(10,13,26,0.95));
  border: 1px solid rgba(74,222,128,0.28);
  box-shadow: 0 0 32px rgba(74,222,128,0.12), inset 0 0 0 1px rgba(255,255,255,0.02);
  transition: border-color .35s ease, box-shadow .35s ease;
}
.execution-engine.standby {
  border-color: rgba(248,113,113,0.28);
  box-shadow: 0 0 32px rgba(248,113,113,0.10);
  background:
    radial-gradient(800px 200px at 50% -50%, rgba(248,113,113,0.08), transparent 60%),
    linear-gradient(135deg, rgba(15,20,38,0.85), rgba(10,13,26,0.95));
}

.ee-scanlines {
  position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(74,222,128,0.04) 0 2px, transparent 2px 4px);
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  opacity: 0.5;
}
.execution-engine.standby .ee-scanlines { background: repeating-linear-gradient(0deg, rgba(248,113,113,0.05) 0 2px, transparent 2px 4px); }

.ee-grid {
  display: grid; grid-template-columns: 80px 1fr auto; gap: 24px;
  align-items: center; position: relative; z-index: 1;
}

/* Robotic head */
.ee-left { position: relative; }
.ee-bot-head {
  width: 70px; height: 70px; border-radius: 14px;
  background: linear-gradient(180deg, #181f3a 0%, #0c1126 100%);
  border: 1px solid rgba(76,201,255,0.3);
  position: relative;
  box-shadow: inset 0 0 12px rgba(76,201,255,0.15), 0 4px 14px rgba(0,0,0,0.4);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.ee-bot-eye {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--neon-green);
  box-shadow: 0 0 12px var(--neon-green), 0 0 4px white inset;
  animation: ee-eye-pulse 1.6s ease-in-out infinite;
}
.ee-bot-eye:nth-child(2) { animation-delay: 0.2s; }
.ee-bot-mouth {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  width: 28px; height: 3px; background: var(--neon-blue);
  border-radius: 2px; box-shadow: 0 0 8px var(--neon-blue);
  animation: ee-mouth 1.4s ease-in-out infinite;
}
@keyframes ee-eye-pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.85); } }
@keyframes ee-mouth { 0%,100% { width: 28px; } 50% { width: 14px; } }
.execution-engine.standby .ee-bot-eye { background: var(--neon-red); box-shadow: 0 0 12px var(--neon-red); animation: none; opacity: 0.5; }
.execution-engine.standby .ee-bot-mouth { background: var(--neon-red); box-shadow: 0 0 8px var(--neon-red); animation: none; opacity: 0.5; width: 16px; }
.ee-bot-pulse {
  position: absolute; inset: -6px; border-radius: 18px;
  border: 1px solid rgba(74,222,128,0.4);
  animation: ee-pulse 2s ease-out infinite;
  pointer-events: none;
}
.execution-engine.standby .ee-bot-pulse { border-color: rgba(248,113,113,0.3); animation: none; opacity: 0.4; }
@keyframes ee-pulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* Center text */
.ee-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--neon-blue); margin-bottom: 8px;
}
.ee-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--neon-blue); box-shadow: 0 0 8px var(--neon-blue);
  animation: blink 1.4s infinite;
}
.ee-ver {
  padding: 1px 7px; border-radius: 4px;
  background: rgba(76,201,255,0.1); color: var(--neon-blue);
  font-size: 0.65rem;
}
.ee-title {
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 700;
  letter-spacing: 0.06em; line-height: 1;
  color: var(--neon-green);
  text-shadow: 0 0 14px rgba(74,222,128,0.5);
  margin-bottom: 8px;
}
.execution-engine.standby .ee-title { color: var(--neon-red); text-shadow: 0 0 14px rgba(248,113,113,0.5); }
.ee-sub {
  color: var(--text-dim); font-size: 0.92rem; max-width: 560px;
  margin-bottom: 12px; line-height: 1.5;
}
.ee-sub strong { color: white; }
.ee-meta {
  display: flex; gap: 18px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 0.74rem;
  color: var(--text-mute);
}
.ee-meta-item { display: inline-flex; align-items: center; gap: 6px; }
.ee-meta-item i { color: var(--neon-blue); }
.ee-blink {
  display: inline-block; min-width: 32px;
  color: var(--neon-green);
  animation: blink 2.4s infinite;
}
.execution-engine.standby .ee-meta-item i { color: var(--neon-red); }
.execution-engine.standby .ee-blink { color: var(--neon-amber); }

/* Right: futuristic toggle */
.ee-right { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ee-switch { cursor: pointer; display: inline-block; }
.ee-switch input { display: none; }
.ee-track {
  position: relative; display: block;
  width: 110px; height: 50px;
  background: linear-gradient(180deg, #0c1126, #1a2240);
  border: 1px solid rgba(120,130,200,0.25);
  border-radius: 999px;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(255,255,255,0.03);
  overflow: hidden;
  transition: all .35s ease;
}
.ee-thumb {
  position: absolute; top: 4px; left: 4px;
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, #f87171 0%, #b91c1c 100%);
  display: grid; place-items: center;
  color: white; font-size: 16px;
  box-shadow: 0 4px 12px rgba(248,113,113,0.5), inset 0 0 0 2px rgba(255,255,255,0.08);
  transition: left .35s cubic-bezier(.5,.05,.3,1.3), background .35s ease, box-shadow .35s ease;
  z-index: 2;
}
.ee-label {
  position: absolute; top: 50%; transform: translateY(-50%);
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em;
  transition: opacity .25s ease;
}
.ee-label.ee-on { left: 16px; color: var(--neon-green); text-shadow: 0 0 6px var(--neon-green); opacity: 0; }
.ee-label.ee-off { right: 16px; color: var(--neon-red); text-shadow: 0 0 6px var(--neon-red); opacity: 1; }
.ee-switch input:checked + .ee-track {
  background: linear-gradient(180deg, #0a1a14, #0d2a1c);
  border-color: rgba(74,222,128,0.45);
}
.ee-switch input:checked + .ee-track .ee-thumb {
  left: 64px;
  background: linear-gradient(135deg, #4ade80 0%, #166534 100%);
  box-shadow: 0 4px 14px rgba(74,222,128,0.55), inset 0 0 0 2px rgba(255,255,255,0.12), 0 0 22px rgba(74,222,128,0.5);
}
.ee-switch input:checked + .ee-track .ee-label.ee-on { opacity: 1; }
.ee-switch input:checked + .ee-track .ee-label.ee-off { opacity: 0; }
.ee-status-text {
  font-family: var(--font-mono); font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--neon-green);
}
.execution-engine.standby .ee-status-text { color: var(--neon-amber); }

@media (max-width: 720px) {
  .execution-engine { padding: 18px; border-radius: 16px; }
  .ee-grid { grid-template-columns: 60px 1fr; gap: 14px; row-gap: 16px; }
  .ee-bot-head { width: 56px; height: 56px; }
  .ee-bot-eye { width: 10px; height: 10px; }
  .ee-title { font-size: 1.25rem; }
  .ee-sub { font-size: 0.84rem; }
  .ee-right { grid-column: 1 / -1; flex-direction: row; justify-content: center; gap: 16px; }
  .ee-meta { gap: 12px; font-size: 0.68rem; }
}

/* AI Modal / Terminal */
.ai-modal {
  position: fixed; inset: 0; z-index: 200;
  display: none; align-items: center; justify-content: center;
  padding: 24px;
}
.ai-modal.open { display: flex; animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.ai-modal-backdrop {
  position: absolute; inset: 0; background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
}
.ai-terminal {
  position: relative; z-index: 1;
  width: 720px; max-width: 100%; max-height: 85vh;
  background: #060912; border: 1px solid rgba(76,201,255,0.25);
  border-radius: 14px; overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 0 60px rgba(76,201,255,0.25), 0 0 120px rgba(167,139,250,0.15);
  animation: termIn .35s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes termIn { from { transform: scale(.92) translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
.ai-term-header {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; background: rgba(15,20,38,0.95);
  border-bottom: 1px solid var(--line);
}
.ai-term-dots { display: flex; gap: 6px; }
.ai-term-dots span {
  width: 11px; height: 11px; border-radius: 50%;
  background: rgba(120,130,200,0.3);
}
.ai-term-dots span:nth-child(1) { background: #ff5f57; }
.ai-term-dots span:nth-child(2) { background: #febc2e; }
.ai-term-dots span:nth-child(3) { background: #28c840; }
.ai-term-title {
  flex: 1; text-align: center;
  font-family: var(--font-mono); font-size: 0.82rem;
  color: var(--text-dim); letter-spacing: 0.08em;
}
.ai-term-close {
  background: transparent; border: none; color: var(--text-dim);
  font-size: 24px; cursor: pointer; line-height: 1; padding: 0 4px;
}
.ai-term-close:hover { color: var(--neon-red); }
.ai-term-body {
  padding: 18px; overflow-y: auto; flex: 1;
  font-family: var(--font-mono); font-size: 0.88rem; line-height: 1.6;
  color: #4ade80;
  background:
    repeating-linear-gradient(0deg, transparent 0, transparent 2px, rgba(74,222,128,0.02) 2px, rgba(74,222,128,0.02) 4px),
    #060912;
}
.ai-line { white-space: pre-wrap; word-break: break-word; }
.ai-prompt { color: var(--neon-blue); }
.ai-info { color: var(--text-dim); }
.ai-success { color: var(--neon-green); font-weight: 600; }
.ai-error { color: var(--neon-red); font-weight: 600; }
.ai-reasoning { color: #c4f1d4; padding: 8px 12px; border-left: 3px solid var(--neon-green); margin: 6px 0 12px; }
.ai-cursor { color: var(--neon-green); animation: blink 1s steps(2) infinite; }
.ai-spinner {
  display: inline-block; width: 12px; height: 12px;
  border: 2px solid rgba(74,222,128,0.3); border-top-color: var(--neon-green);
  border-radius: 50%; animation: spin 0.8s linear infinite; margin-right: 6px;
  vertical-align: middle;
}
.ai-block { padding: 6px 0; }
.ai-result-banner {
  margin: 10px 0; padding: 16px; border-radius: 12px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  border: 1px solid;
}
.ai-result-banner.sig-buy { background: rgba(74,222,128,0.08); border-color: rgba(74,222,128,0.4); }
.ai-result-banner.sig-sell { background: rgba(248,113,113,0.08); border-color: rgba(248,113,113,0.4); }
.ai-result-banner.sig-hold { background: rgba(251,191,36,0.08); border-color: rgba(251,191,36,0.4); }
.arb-signal {
  font-size: 1.8rem; font-weight: 700; letter-spacing: 0.1em;
  font-family: var(--font-display);
}
.sig-buy .arb-signal { color: var(--neon-green); text-shadow: 0 0 14px var(--neon-green); }
.sig-sell .arb-signal { color: var(--neon-red); text-shadow: 0 0 14px var(--neon-red); }
.sig-hold .arb-signal { color: var(--neon-amber); text-shadow: 0 0 14px var(--neon-amber); }
.arb-meta {
  display: flex; gap: 22px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 0.82rem;
}
.arb-meta .lbl { color: var(--text-mute); display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; }
.arb-meta .val { color: white; font-weight: 600; }

.ai-result-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px;
  padding: 12px; background: rgba(76,201,255,0.04);
  border-radius: 10px; border: 1px solid rgba(76,201,255,0.15);
  margin: 10px 0;
}
.ai-result-grid > div { display: flex; flex-direction: column; gap: 4px; }
.rg-lbl { font-size: 0.72rem; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.06em; }
.rg-val { font-family: var(--font-mono); font-weight: 600; color: white; font-size: 0.92rem; }
.rg-val.sl { color: var(--neon-red); }
.rg-val.tp { color: var(--neon-green); }
.ai-foot { padding-top: 8px; border-top: 1px dashed var(--line); margin-top: 12px; font-size: 0.74rem; }

@media (max-width: 720px) {
  .ai-pairs-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .arb-meta { gap: 14px; }
  .ai-result-grid { grid-template-columns: 1fr; gap: 8px; }
}

/* Counter animation classes use JS */
.counter[data-target] { font-variant-numeric: tabular-nums; }

/* ========= Responsive ========= */
@media (max-width: 980px) {
  /* Force ALL inline 2-col / 3-col / 4-col grids to single column */
  [style*="grid-template-columns: 1.3fr 1fr"],
  [style*="grid-template-columns: 1.2fr 1fr"],
  [style*="grid-template-columns: 1.1fr 1fr"],
  [style*="grid-template-columns: 1fr 1.2fr"],
  [style*="grid-template-columns: 1fr 1.1fr"],
  [style*="grid-template-columns: 1fr 1.3fr"],
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns: 2fr 1fr"],
  [style*="grid-template-columns: 1fr 2fr"],
  [style*="grid-template-columns: 1fr 1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr 1fr 1fr"],
  [style*="grid-template-columns: repeat(2"],
  [style*="grid-template-columns: repeat(3"],
  [style*="grid-template-columns: repeat(4"],
  [style*="grid-template-columns: repeat(5"] {
    grid-template-columns: 1fr !important;
  }

  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .ai-holo { max-width: 280px; margin: 0 auto; order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .app-shell { grid-template-columns: 1fr; padding: 16px 12px; gap: 14px; min-width: 0; }
  .app-shell > * { min-width: 0; }
  .sidebar {
    position: relative; top: 0; padding: 12px;
    border-radius: 14px;
    min-width: 0; max-width: 100%;
    overflow: hidden;
  }
  .sidebar-user { display: none; }
  .sidebar-nav {
    flex-direction: row; flex-wrap: nowrap;
    overflow-x: auto; gap: 6px;
    padding-bottom: 4px; -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    max-width: 100%;
  }
  .sidebar-nav::-webkit-scrollbar { display: none; }
  .sidebar-nav a {
    white-space: nowrap; flex-shrink: 0;
    padding: 9px 14px; font-size: 0.84rem;
    border-radius: 10px;
  }
  .sidebar-nav a i { font-size: 0.92rem; }
  .sidebar-nav .logout-link {
    border-top: none; padding-top: 9px; margin-top: 0;
    border-left: 1px solid var(--line); padding-left: 14px;
    margin-left: 4px;
  }

  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; right: 12px; left: 12px;
    flex-direction: column; padding: 16px; align-items: stretch; gap: 12px;
    background: rgba(10,13,26,0.97); border: 1px solid var(--line); border-radius: 14px;
    backdrop-filter: blur(16px);
    transform: scale(.95) translateY(-6px); opacity: 0; pointer-events: none;
    transition: transform .2s ease, opacity .2s ease;
    transform-origin: top right;
    z-index: 60;
  }
  .nav-links.open { transform: scale(1) translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links .btn { width: 100%; justify-content: center; }
  .nav-container { padding: 12px 14px; }
  .brand-text { font-size: 1rem; }
  .logo-mark { width: 32px; height: 32px; font-size: 14px; border-radius: 9px; }

  .hero { padding: 50px 14px 30px; }
  .hero h1 { font-size: clamp(1.9rem, 8vw, 2.6rem); }
  .hero p.lead { font-size: 0.95rem; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
  .hero-stats .stat-mini { padding: 12px 14px; }
  .hero-stats .num { font-size: 1.2rem; }
  .hero-cta { gap: 10px; }

  .section { padding: 50px 14px; }
  .section-head h2 { font-size: clamp(1.6rem, 5vw, 2.1rem); }
  .container { padding: 20px 14px; }
  .form-card { margin: 24px 10px; padding: 22px 18px; border-radius: 16px; }
  .form-card h2 { font-size: 1.35rem; }

  .page-header {
    flex-direction: column; align-items: stretch; gap: 14px;
    margin-bottom: 18px;
  }
  .page-header > div:first-child { width: 100%; }
  .page-header h1 { font-size: 1.45rem; }
  .page-header p { font-size: 0.88rem; }
  .page-header .row-gap {
    width: 100%; flex-direction: row; gap: 8px;
  }
  .page-header .row-gap .btn {
    flex: 1; min-width: 0; justify-content: center;
    padding: 11px 14px; font-size: 0.88rem;
  }

  .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card { padding: 14px; border-radius: 14px; }
  .stat-card .label { font-size: 0.7rem; }
  .stat-card .value { font-size: 1.15rem; }
  .stat-card .icon-bg { width: 46px; height: 46px; font-size: 18px; right: -6px; top: -6px; }
  .stat-card .delta { font-size: 0.74rem; }

  .plans-grid, .market-grid { grid-template-columns: 1fr; }
  .plan-card { padding: 22px; }

  .table th, .table td { padding: 11px 12px; font-size: 0.82rem; }
  .table { min-width: 540px; }
  .table-wrap { max-width: 100%; min-width: 0; }
  .glass.card { min-width: 0; max-width: 100%; }
  .glass.card > .table-wrap { width: 100%; }

  /* Dashboard chart wrapper */
  #perfChart { max-height: 220px; }
  .empty-chart { padding: 30px 16px; }

  /* AI Trading Engine feed on dashboard */
  .ai-feed-card { padding: 18px 14px; }
  .ai-feed-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .ai-pair { padding: 12px; border-radius: 12px; }
  .ai-symbol { font-size: 0.82rem; }
  .ai-signal { font-size: 0.62rem; padding: 2px 7px; }
  .ai-price { font-size: 1.1rem; margin-bottom: 6px; }
  .ai-pair-bot { font-size: 0.7rem; margin-bottom: 6px; }
  .ai-status { font-size: 0.66rem; }
  .ai-lots { font-size: 0.64rem; }

  /* Manual AI Trades grid */
  .ai-pairs-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .ai-pair-tile { padding: 14px 12px; }
  .apt-symbol { font-size: 0.95rem; margin-bottom: 8px; }
  .apt-cta { font-size: 0.74rem; }
  .ai-tabs { gap: 6px; padding-bottom: 10px; }
  .ai-tab { padding: 8px 14px; font-size: 0.84rem; }

  /* Banners (referral, whatsapp) */
  .referral-banner, .whatsapp-banner {
    padding: 14px; gap: 12px; flex-wrap: wrap;
    margin-bottom: 16px; border-radius: 14px;
  }
  .ref-banner-icon, .whatsapp-banner .wa-icon {
    width: 42px; height: 42px; font-size: 18px; border-radius: 11px;
  }
  .ref-link-wrap { width: 100%; min-width: 100%; max-width: 100%; flex: 1 1 100%; }
  .ref-link-wrap input { font-size: 0.78rem; padding: 10px 12px; }
  .whatsapp-banner > div { width: 100%; }
  .whatsapp-banner .btn { width: 100%; justify-content: center; }

  /* Forms inside cards (admin pages) */
  .glass.card .form-row label { font-size: 0.82rem; }
  .glass.card .form-row input,
  .glass.card .form-row select,
  .glass.card .form-row textarea { padding: 11px 13px; font-size: 0.92rem; }

  /* Buttons */
  .btn { padding: 10px 18px; font-size: 0.9rem; }
  .btn-block { padding: 13px 22px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .site-footer { padding: 36px 14px 22px; margin-top: 50px; }
  .footer-bottom {
    flex-direction: column; align-items: flex-start; gap: 8px;
    font-size: 0.78rem;
  }

  /* AI modal terminal */
  .ai-terminal { width: 100%; max-height: 90vh; border-radius: 12px; }
  .ai-term-body { padding: 14px; font-size: 0.82rem; }
  .ai-term-title { font-size: 0.74rem; }
  .arb-signal { font-size: 1.4rem; }
  .arb-meta { gap: 12px; font-size: 0.75rem; }

  /* Plan-meta inside plan cards */
  .plan-meta { grid-template-columns: 1fr 1fr; gap: 10px; }
  .plan-meta .val { font-size: 0.92rem; }

  /* QR images */
  .qr-img { width: 150px; height: 150px; }
  .copy-input { gap: 6px; }
  .copy-input input { font-size: 0.78rem; padding: 10px 12px; }

  /* Flash messages */
  .flash { margin: 12px 4px; padding: 12px 14px; font-size: 0.86rem; }

  /* Plans-meta inside cards */
  .between { flex-wrap: wrap; gap: 8px; }
}

@media (max-width: 560px) {
  .stats-grid { grid-template-columns: 1fr; }
  .ai-feed-grid { grid-template-columns: 1fr; }
  .ai-pairs-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .nav-container { padding: 10px 12px; }
  .form-card { margin: 14px 6px; padding: 20px 16px; }
  .plan-meta { grid-template-columns: 1fr; }
  .footer-bottom { font-size: 0.74rem; }
}


/* ===== HIGH RISK · HIGH REWARD Engine theming ===== */
.execution-engine.hrhr-engine {
  background:
    radial-gradient(900px 240px at 50% -60%, rgba(251, 146, 60, 0.18), transparent 65%),
    linear-gradient(135deg, rgba(38, 18, 18, 0.92), rgba(20, 10, 22, 0.96));
  border: 1px solid rgba(251, 146, 60, 0.45);
  box-shadow: 0 0 38px rgba(251, 146, 60, 0.16), inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}
.execution-engine.hrhr-engine.engaged {
  border-color: rgba(251, 146, 60, 0.85);
  box-shadow: 0 0 60px rgba(251, 146, 60, 0.40), 0 0 120px rgba(244, 63, 94, 0.14) inset;
  animation: hrhr-pulse-border 2.4s ease-in-out infinite;
}
.execution-engine.hrhr-engine.standby {
  border-color: rgba(120, 113, 108, 0.45);
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.35);
  background:
    radial-gradient(900px 240px at 50% -60%, rgba(120, 113, 108, 0.08), transparent 65%),
    linear-gradient(135deg, rgba(16, 14, 22, 0.92), rgba(8, 6, 12, 0.96));
}
@keyframes hrhr-pulse-border {
  0%, 100% { box-shadow: 0 0 32px rgba(251, 146, 60, 0.30); }
  50%      { box-shadow: 0 0 60px rgba(251, 146, 60, 0.55), 0 0 90px rgba(244, 63, 94, 0.20); }
}
.hrhr-engine .hrhr-eyebrow { color: #fb923c; letter-spacing: 0.18em; }
.hrhr-engine .hrhr-eyebrow .ee-dot { background: #fb923c; box-shadow: 0 0 10px #fb923c; }
.hrhr-engine.engaged .ee-title {
  color: #fb923c;
  text-shadow: 0 0 20px rgba(251, 146, 60, 0.7), 0 0 40px rgba(244, 63, 94, 0.4);
}
.hrhr-engine.engaged .ee-bot-eye {
  background: #fb923c !important;
  box-shadow: 0 0 14px #fb923c !important;
}
.hrhr-engine.engaged .ee-bot-mouth {
  background: linear-gradient(90deg, #fb923c, #ef4444) !important;
  box-shadow: 0 0 10px #fb923c !important;
}
.hrhr-engine.engaged .ee-bot-pulse { border-color: rgba(251, 146, 60, 0.55) !important; }
.hrhr-engine .ee-meta-item i { color: #fb923c !important; }
.hrhr-engine .ee-switch.hrhr-switch .ee-track {
  background: linear-gradient(135deg, rgba(120, 113, 108, 0.25), rgba(60, 50, 50, 0.4));
}
.hrhr-engine.engaged .ee-switch.hrhr-switch input:checked + .ee-track {
  background: linear-gradient(135deg, #fb923c, #ef4444);
  box-shadow: 0 0 24px rgba(251, 146, 60, 0.6);
}
.hrhr-engine.engaged .ee-status-text { color: #fb923c; text-shadow: 0 0 8px rgba(251, 146, 60, 0.5); }

/* HRHR trade tag in admin recent trades table */
.hrhr-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, #fb923c, #ef4444);
  color: #fff;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 8px rgba(251, 146, 60, 0.45);
  vertical-align: middle;
}

/* HRHR trade-create-form opt-in toggle */
.hrhr-trade-toggle {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  margin: 18px 0;
  border-radius: 14px;
  border: 1px dashed rgba(251, 146, 60, 0.45);
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.06), rgba(244, 63, 94, 0.04));
  cursor: pointer;
  transition: background .25s ease, border-color .25s ease;
}
.hrhr-trade-toggle:hover { background: linear-gradient(135deg, rgba(251, 146, 60, 0.10), rgba(244, 63, 94, 0.06)); }
.hrhr-trade-toggle input[type="checkbox"] { margin-top: 4px; width: 18px; height: 18px; accent-color: #fb923c; }
.hrhr-trade-toggle input[type="checkbox"]:disabled { opacity: 0.4; cursor: not-allowed; }
.hrhr-trade-toggle .hrhr-trade-toggle-content { display: flex; gap: 12px; align-items: flex-start; flex: 1; }
.hrhr-trade-toggle .hrhr-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #fb923c, #ef4444);
  color: #fff; font-size: 1.05rem;
  box-shadow: 0 0 14px rgba(251, 146, 60, 0.5);
}

/* ===== Robotic Modal (HRHR confirm + Terms acceptance) ===== */
.robo-modal {
  position: fixed; inset: 0;
  display: none;
  align-items: center; justify-content: center;
  z-index: 9999;
  padding: 24px;
}
.robo-modal.open { display: flex; animation: robo-fade-in .25s ease both; }
.robo-modal .robo-backdrop {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(20, 10, 30, 0.75), rgba(0, 0, 0, 0.92));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.robo-modal .robo-frame {
  position: relative;
  width: min(640px, 100%);
  max-height: 88vh;
  border-radius: 22px;
  background:
    radial-gradient(800px 200px at 50% -40%, rgba(167, 139, 250, 0.16), transparent 65%),
    linear-gradient(135deg, rgba(14, 18, 36, 0.96), rgba(8, 10, 22, 0.98));
  border: 1px solid rgba(167, 139, 250, 0.42);
  box-shadow: 0 0 48px rgba(167, 139, 250, 0.25), 0 30px 90px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  display: flex; flex-direction: column;
  animation: robo-slide-up .35s cubic-bezier(.18,.84,.42,1.05) both;
}
.robo-modal.robo-danger .robo-frame {
  background:
    radial-gradient(800px 200px at 50% -40%, rgba(251, 146, 60, 0.20), transparent 65%),
    linear-gradient(135deg, rgba(36, 16, 16, 0.96), rgba(18, 8, 12, 0.98));
  border: 1px solid rgba(251, 146, 60, 0.55);
  box-shadow: 0 0 60px rgba(251, 146, 60, 0.30), 0 30px 90px rgba(0, 0, 0, 0.7);
}
@keyframes robo-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes robo-slide-up {
  from { opacity: 0; transform: translateY(40px) scale(.96); }
  to   { opacity: 1; transform: none; }
}
.robo-modal .robo-scanlines {
  position: absolute; inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(167, 139, 250, 0.05) 0 2px, transparent 2px 4px);
  mix-blend-mode: screen;
  opacity: 0.5;
}
.robo-modal.robo-danger .robo-scanlines {
  background: repeating-linear-gradient(0deg, rgba(251, 146, 60, 0.07) 0 2px, transparent 2px 4px);
}
.robo-modal .robo-header {
  display: flex; align-items: center; gap: 14px;
  padding: 20px 26px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
}
.robo-modal .robo-bot {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #6366f1, #a78bfa);
  box-shadow: 0 0 18px rgba(167, 139, 250, 0.45);
  color: #fff;
  font-size: 1.15rem;
}
.robo-modal.robo-danger .robo-bot {
  background: linear-gradient(135deg, #fb923c, #ef4444);
  box-shadow: 0 0 18px rgba(251, 146, 60, 0.55);
  animation: robo-bot-pulse 1.6s ease-in-out infinite;
}
@keyframes robo-bot-pulse {
  0%, 100% { box-shadow: 0 0 18px rgba(251, 146, 60, 0.55); }
  50%      { box-shadow: 0 0 32px rgba(251, 146, 60, 0.95); }
}
.robo-modal .robo-title-block { flex: 1; min-width: 0; }
.robo-modal .robo-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: #a78bfa;
  display: flex; align-items: center; gap: 8px;
}
.robo-modal.robo-danger .robo-eyebrow { color: #fb923c; }
.robo-modal .robo-eyebrow .blink {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
  animation: robo-blink 1.2s ease-in-out infinite;
}
@keyframes robo-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.robo-modal .robo-title {
  font-size: 1.15rem; font-weight: 700;
  color: #fff; margin-top: 4px;
}
.robo-modal .robo-body {
  padding: 22px 26px;
  overflow-y: auto;
  color: var(--text-soft);
  font-size: 0.92rem; line-height: 1.6;
  flex: 1;
}
.robo-modal .robo-body p { margin: 0 0 12px; }
.robo-modal .robo-body strong { color: #fff; }
.robo-modal .robo-clause {
  display: flex; gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}
.robo-modal .robo-clause:last-child { border-bottom: 0; }
.robo-modal .robo-clause-num {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 8px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(167, 139, 250, 0.15));
  border: 1px solid rgba(167, 139, 250, 0.35);
  color: #a78bfa;
  font-size: 0.78rem; font-weight: 700;
  font-family: var(--font-mono);
}
.robo-modal .robo-clause-text strong { display: block; color: #fff; margin-bottom: 2px; font-size: 0.95rem; }
.robo-modal .robo-actions {
  display: flex; gap: 12px; justify-content: flex-end; align-items: center; flex-wrap: wrap;
  padding: 16px 26px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.25);
}
.robo-modal .robo-actions .muted { margin-right: auto; font-size: 0.82rem; }
.robo-modal .robo-btn {
  padding: 11px 22px;
  border-radius: 999px;
  border: 1px solid rgba(167, 139, 250, 0.4);
  background: transparent;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.robo-modal .robo-btn:hover { transform: translateY(-1px); }
.robo-modal .robo-btn.robo-btn-primary {
  background: linear-gradient(135deg, #6366f1, #a78bfa);
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(167, 139, 250, 0.35);
}
.robo-modal.robo-danger .robo-btn.robo-btn-primary {
  background: linear-gradient(135deg, #fb923c, #ef4444);
  box-shadow: 0 6px 22px rgba(251, 146, 60, 0.45);
}
.robo-modal .robo-btn.robo-btn-primary:hover {
  box-shadow: 0 10px 30px rgba(167, 139, 250, 0.55);
}
.robo-modal.robo-danger .robo-btn.robo-btn-primary:hover {
  box-shadow: 0 10px 32px rgba(251, 146, 60, 0.65);
}
.robo-modal .robo-btn.robo-btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text-soft);
}
.robo-modal .robo-btn.robo-btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.robo-modal .robo-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

@media (max-width: 640px) {
  .robo-modal .robo-frame { width: 100%; max-height: 92vh; }
  .robo-modal .robo-header { padding: 16px 18px 12px; }
  .robo-modal .robo-body { padding: 16px 18px; }
  .robo-modal .robo-actions { padding: 14px 18px 18px; }
}

/* ===== News feed ===== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}
.news-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.news-card:hover {
  transform: translateY(-4px);
  border-color: rgba(167, 139, 250, 0.45);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.45), 0 0 24px rgba(167, 139, 250, 0.18);
}
.news-card.pinned {
  border-color: rgba(167, 139, 250, 0.5);
  box-shadow: 0 0 22px rgba(167, 139, 250, 0.15);
}
.news-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  background-color: rgba(20, 24, 40, 0.6);
}
.news-card-image-blank {
  display: grid;
  place-items: center;
  font-size: 3rem;
  color: var(--cat-color, #4cc9ff);
  background:
    radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--cat-color, #4cc9ff) 28%, transparent), transparent 70%),
    linear-gradient(135deg, rgba(14, 18, 36, 0.95), rgba(20, 14, 36, 0.95));
}
.news-pinned-badge {
  position: absolute; top: 12px; left: 12px;
  background: linear-gradient(135deg, #6366f1, #ec4899);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(167, 139, 250, 0.45);
}
.news-card-body {
  padding: 18px 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.news-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  background: color-mix(in srgb, var(--cat-color, #4cc9ff) 14%, transparent);
  color: var(--cat-color, #4cc9ff);
  border: 1px solid color-mix(in srgb, var(--cat-color, #4cc9ff) 35%, transparent);
  width: max-content;
}
.news-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card-excerpt {
  font-size: 0.88rem;
  color: var(--text-soft);
  margin: 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 6px;
  font-size: 0.78rem;
  color: var(--text-mute);
}
.news-read-more {
  color: #a78bfa;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.news-card:hover .news-read-more { color: #ec4899; }

/* Article view */
.news-article { padding: 28px; }
.news-article-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px;
  margin-bottom: 16px;
}
.news-pinned {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #6366f1, #ec4899);
  color: #fff;
}
.news-article-title {
  font-size: 2.1rem;
  font-weight: 800;
  margin: 0 0 18px;
  line-height: 1.2;
  background: linear-gradient(135deg, #fff, #c7d2fe);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.news-article-image {
  width: 100%;
  border-radius: 14px;
  margin: 8px 0 22px;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.news-article-excerpt {
  font-size: 1.05rem;
  color: var(--text-soft);
  margin: 0 0 22px;
  padding-left: 14px;
  border-left: 3px solid #a78bfa;
  line-height: 1.55;
  font-style: italic;
}
.news-article-body {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-soft);
}
.news-article-body h2, .news-article-body h3, .news-article-body h4 {
  color: #fff;
  margin: 26px 0 12px;
}
.news-article-body p { margin: 0 0 14px; }
.news-article-body ul, .news-article-body ol { padding-left: 22px; margin: 0 0 14px; }
.news-article-body li { margin-bottom: 6px; }
.news-article-body a { color: #4cc9ff; text-decoration: underline; }
.news-article-body strong { color: #fff; }
.news-article-body blockquote {
  border-left: 4px solid #6366f1;
  padding: 8px 18px;
  margin: 18px 0;
  background: rgba(99, 102, 241, 0.08);
  border-radius: 0 12px 12px 0;
  color: var(--text-soft);
  font-style: italic;
}
.news-article-body code, .news-article-body pre {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 6px;
  padding: 2px 6px;
}
.news-article-body pre {
  padding: 14px 18px;
  overflow-x: auto;
  margin: 14px 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

@media (max-width: 720px) {
  .news-article-title { font-size: 1.55rem; }
  .news-article { padding: 18px; }
}


/* ============================================================
   HRHR LIVE — Page-wide "fire + money" interactive FX overlay
   ============================================================ */
.hrhr-fx {
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  overflow: hidden;
}
/* Subtle ember glow along the bottom edge of the viewport */
.hrhr-fx-ember-base {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 120px;
  background: radial-gradient(ellipse at 50% 100%, rgba(251, 146, 60, 0.32), transparent 70%);
  filter: blur(8px);
  animation: hrhr-ember-pulse 2.8s ease-in-out infinite;
}
@keyframes hrhr-ember-pulse {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 0.95; }
}

/* Rising flame particles */
.hrhr-fx .fx-flame {
  position: absolute;
  bottom: -40px;
  color: #fb923c;
  text-shadow:
    0 0 6px #fb923c,
    0 0 14px rgba(251, 146, 60, 0.7),
    0 0 24px rgba(239, 68, 68, 0.5);
  animation-name: hrhr-flame-rise;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  will-change: transform, opacity;
}
@keyframes hrhr-flame-rise {
  0%   { transform: translate3d(0, 0, 0) scale(0.6) rotate(0deg);              opacity: 0; }
  10%  { opacity: 0.95; }
  50%  { transform: translate3d(calc(var(--sway, 0px) * 0.5), -55vh, 0) scale(1) rotate(10deg); }
  85%  { opacity: 0.85; }
  100% { transform: translate3d(var(--sway, 0px), -105vh, 0) scale(0.4) rotate(-12deg); opacity: 0; }
}

/* Rising money / coin particles */
.hrhr-fx .fx-money {
  position: absolute;
  bottom: -50px;
  color: #fbbf24;
  text-shadow:
    0 0 8px rgba(250, 204, 21, 0.85),
    0 0 18px rgba(245, 158, 11, 0.55),
    0 2px 6px rgba(0, 0, 0, 0.5);
  filter: drop-shadow(0 4px 6px rgba(245, 158, 11, 0.35));
  animation-name: hrhr-money-rise;
  animation-timing-function: cubic-bezier(.35, .15, .55, 1);
  animation-iteration-count: infinite;
  will-change: transform, opacity;
}
.hrhr-fx .fx-money.fa-money-bill-wave,
.hrhr-fx .fx-money.fa-money-bill-trend-up {
  color: #4ade80;
  text-shadow:
    0 0 8px rgba(74, 222, 128, 0.85),
    0 0 18px rgba(34, 197, 94, 0.5),
    0 2px 6px rgba(0, 0, 0, 0.5);
  filter: drop-shadow(0 4px 6px rgba(34, 197, 94, 0.35));
}
@keyframes hrhr-money-rise {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg) scale(0.7);   opacity: 0; }
  12%  { opacity: 1; }
  50%  { transform: translate3d(calc(var(--sway, 0px) * 0.6), -55vh, 0) rotate(calc(var(--rot, 0deg) * 2)) scale(1); }
  85%  { opacity: 0.95; }
  100% { transform: translate3d(var(--sway, 0px), -110vh, 0) rotate(calc(var(--rot, 0deg) * 6)) scale(0.7); opacity: 0; }
}

/* === HRHR live scrolling marquee banner === */
.hrhr-marquee {
  position: relative;
  z-index: 6;
  margin: -8px 0 22px;
  border-radius: 14px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(20, 8, 14, 0.95) 0%, rgba(50, 20, 14, 0.95) 50%, rgba(20, 8, 14, 0.95) 100%);
  border: 1px solid rgba(251, 146, 60, 0.55);
  box-shadow:
    0 0 24px rgba(251, 146, 60, 0.32),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  animation: hrhr-marquee-glow 1.8s ease-in-out infinite;
}
@keyframes hrhr-marquee-glow {
  0%, 100% { box-shadow: 0 0 22px rgba(251, 146, 60, 0.28); }
  50%      { box-shadow: 0 0 40px rgba(251, 146, 60, 0.55), 0 0 70px rgba(239, 68, 68, 0.20); }
}
.hrhr-marquee-track {
  display: flex;
  gap: 38px;
  align-items: center;
  padding: 12px 0;
  width: max-content;
  animation: hrhr-marquee-slide 28s linear infinite;
  white-space: nowrap;
}
@keyframes hrhr-marquee-slide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.hrhr-marquee-item {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  color: #fff;
  text-shadow: 0 0 8px rgba(251, 146, 60, 0.6);
}
.hrhr-marquee-item i {
  color: #fb923c;
  text-shadow: 0 0 10px #fb923c;
  animation: hrhr-marquee-icon-flicker 0.9s ease-in-out infinite alternate;
}
@keyframes hrhr-marquee-icon-flicker {
  0%   { opacity: 0.6; transform: scale(0.94); }
  100% { opacity: 1;   transform: scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
  .hrhr-fx .fx-flame, .hrhr-fx .fx-money,
  .hrhr-fx-ember-base, .hrhr-marquee,
  .hrhr-marquee-track, .hrhr-marquee-item i {
    animation: none !important;
  }
}


/* ============================================================
   Customer Support WhatsApp Floating Action Button (login/register)
   ============================================================ */
.support-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9000;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px 12px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #fff;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow:
    0 8px 26px rgba(37, 211, 102, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.10) inset;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.support-fab:hover {
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.08);
  box-shadow:
    0 14px 34px rgba(37, 211, 102, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}
.support-fab i.fa-whatsapp {
  font-size: 1.55rem;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}
.support-fab-label { display: flex; flex-direction: column; line-height: 1.15; }
.support-fab-label strong { font-size: 0.95rem; }
.support-fab-sub { font-size: 0.72rem; opacity: 0.9; font-weight: 400; letter-spacing: 0.02em; }

/* Pulsating ring */
.support-fab-pulse {
  position: absolute;
  inset: -2px;
  border-radius: 999px;
  border: 2px solid rgba(37, 211, 102, 0.5);
  pointer-events: none;
  animation: support-fab-ping 2.2s ease-out infinite;
}
.support-fab-pulse-2 { animation-delay: 1.1s; }
@keyframes support-fab-ping {
  0%   { transform: scale(1);     opacity: 0.8; }
  80%  { transform: scale(1.45);  opacity: 0; }
  100% { transform: scale(1.45);  opacity: 0; }
}

/* Compact on small screens — icon-only pill */
@media (max-width: 560px) {
  .support-fab { right: 14px; bottom: 14px; padding: 10px; gap: 0; }
  .support-fab-label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .support-fab, .support-fab-pulse { animation: none !important; transition: none !important; }
}


/* Promoter badge — shown next to users marked as promoters */
.promo-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  background: linear-gradient(135deg, #a78bfa 0%, #ec4899 100%);
  color: #fff;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.35);
  box-shadow: 0 0 10px rgba(167, 139, 250, 0.45), 0 1px 3px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
  vertical-align: middle;
  animation: promo-badge-shimmer 3.2s ease-in-out infinite;
}
@keyframes promo-badge-shimmer {
  0%, 100% { box-shadow: 0 0 10px rgba(167, 139, 250, 0.45), 0 1px 3px rgba(0, 0, 0, 0.4); }
  50%      { box-shadow: 0 0 18px rgba(236, 72, 153, 0.65), 0 1px 3px rgba(0, 0, 0, 0.4); }
}

