:root {
  --bg: #02060d;
  --bg-2: #071018;
  --panel: rgba(8, 16, 28, 0.92);
  --panel-2: rgba(5, 11, 20, 0.96);
  --glass: rgba(8, 16, 28, 0.88);
  --glass-2: rgba(5, 11, 20, 0.94);
  --line: rgba(56, 189, 248, 0.14);
  --line-strong: rgba(56, 189, 248, 0.32);
  --text: #e8eef7;
  --muted: #7b8fa8;
  --blue: #38bdf8;
  --blue-2: #0ea5e9;
  --cyan: #22d3ee;
  --green: #10b981;
  --green-2: #059669;
  --red: #f43f5e;
  --gold: #f59e0b;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  min-height: 100vh; overscroll-behavior: none;
}

/* Background — terminal mesh, no generic blobs */
.bg-fx { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.bg-fx .mesh {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(14, 165, 233, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(16, 185, 129, 0.06), transparent 50%),
    linear-gradient(180deg, #02060d 0%, #040a14 100%);
}
.bg-fx .scanlines {
  position: absolute; inset: 0; opacity: 0.04;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255,255,255,.03) 2px, rgba(255,255,255,.03) 4px);
}
.bg-fx .grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, #000 20%, transparent 75%);
}

#app { position: relative; z-index: 1; max-width: 560px; margin: 0 auto; padding: 16px 16px 36px; min-height: 100vh; }

/* Screens */
.screen { display: none; animation: fade .3s ease; }
.screen.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.center-col { min-height: 82vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; }
.muted { color: var(--muted); font-size: 15px; line-height: 1.5; }
.hidden { display: none !important; }
.accent { color: var(--cyan); }

/* Brand */
.brand { display: flex; align-items: center; gap: 12px; }
.brand-lg { flex-direction: column; gap: 14px; }
.brand-logo {
  display: grid; place-items: center;
  width: 46px; height: 46px; flex: 0 0 46px;
  border-radius: 10px; font-weight: 900; font-size: 17px; letter-spacing: -0.5px;
  font-family: var(--mono);
  color: #fff; background: linear-gradient(145deg, #0ea5e9, #0369a1);
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 0 0 1px rgba(0,0,0,.4), 0 8px 24px rgba(14, 165, 233, 0.25);
}
.brand-lg .brand-logo { width: 64px; height: 64px; font-size: 24px; border-radius: 18px; }
h1, .brand h1 { font-size: 22px; font-weight: 800; margin: 0; letter-spacing: .3px; }
.brand-lg h1 { font-size: 28px; }
.brand-name { font-size: 20px; font-weight: 800; letter-spacing: .5px; }
.brand-name span { color: var(--cyan); }

/* Panels */
.glass, .panel {
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}
.panel { position: relative; }
.panel::before {
  content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px;
  border-radius: 0 2px 2px 0; background: linear-gradient(180deg, var(--cyan), var(--blue-2));
  opacity: 0.85;
}
.hero { border-radius: var(--radius-lg); padding: 16px 16px 12px; margin-bottom: 20px; overflow: hidden; }

/* Main menu sections */
.menu-block { margin-bottom: 24px; }
.menu-block:last-child { margin-bottom: 10px; }
.block-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; padding: 0 2px; }
.block-title {
  font-family: var(--mono); font-size: 9px; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; white-space: nowrap;
}
.block-line { flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-strong), transparent 85%); }
.menu-signals .block-title { color: var(--cyan); }
.menu-signals .block-line { background: linear-gradient(90deg, rgba(34, 211, 238, 0.28), transparent 80%); }
.menu-events .block-title { color: #fdba74; }
.menu-events .block-line { background: linear-gradient(90deg, rgba(251, 146, 60, 0.22), transparent 80%); }
.menu-more .block-title { color: var(--muted); }
.block-desc { color: var(--muted); font-size: 12px; line-height: 1.55; margin: 0 0 10px 2px; }
.block-desc b { color: var(--text); font-weight: 600; }
.menu-events .bp-teaser { margin-bottom: 10px; }
.menu-events .nav-grid { margin-bottom: 0; }
.hero-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.hero-status { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; margin: 4px 0 0; }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(24,209,138,.6); animation: live 1.6s infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(24,209,138,.5); } 70% { box-shadow: 0 0 0 8px rgba(24,209,138,0); } }
.balance-chip { text-align: right; }
.balance-chip .muted { font-size: 11px; display: block; }
.balance-chip b { color: var(--green); font-size: 16px; }

.hero-chart { width: 100%; height: 120px; display: block; margin: 12px 0 8px; }

/* Live stats */
.live-stats { display: flex; gap: 10px; margin: 4px 0 10px; }
.stat-pill {
  flex: 1; display: flex; align-items: center; gap: 9px;
  background: rgba(255,255,255,.04); border: 1px solid var(--line);
  border-radius: 14px; padding: 9px 12px;
}
.stat-pill .stat-ic { font-size: 17px; line-height: 1; }
.stat-pill .stat-dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--green); flex: 0 0 auto;
  box-shadow: 0 0 0 0 rgba(24,209,138,.6); animation: live 1.6s infinite;
}
.stat-txt { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.stat-txt b { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: .3px; }
.stat-txt small { font-size: 10.5px; color: var(--muted); white-space: nowrap; }

/* Ticker */
.ticker { display: flex; gap: 10px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-track { display: flex; gap: 10px; animation: tick 22s linear infinite; }
.tick-item { display: flex; align-items: center; gap: 6px; font-size: 12px; white-space: nowrap; color: var(--muted); }
.tick-item b { color: var(--text); }
.tick-item .up { color: var(--green); }
.tick-item .down { color: var(--red); }
@keyframes tick { to { transform: translateX(-50%); } }

.hero-sub { color: var(--muted); font-size: 13.5px; line-height: 1.6; margin: 0 2px 16px; }
.hero-sub b { color: var(--text); }

/* Signal mode cards */
.menu-signals .hot-section { margin-bottom: 10px; }
.menu-signals .mode-card.solar { margin-bottom: 8px; }
.signal-modes {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 0;
}
.signal-modes .mode-card {
  flex-direction: column; align-items: flex-start; gap: 8px;
  padding: 13px 12px 12px; min-height: 96px;
}
.signal-modes .mode-card .mode-go { display: none; }
.signal-modes .mode-card .mode-ic { width: 38px; height: 38px; font-size: 18px; }
.signal-modes .mode-card .mode-txt b { font-size: 14px; }
.signal-modes .mode-card .mode-txt span { font-size: 10px; }
.signal-modes .mode-card.ultra .ultra-badge { top: 8px; right: 8px; }
.signal-modes .mode-card.ultra .ultra-timer {
  position: static; margin-top: 2px; align-self: flex-start;
  font-size: 10px; padding: 2px 8px;
}

.mode-card {
  position: relative; display: flex; align-items: center; gap: 14px;
  width: 100%; padding: 15px 16px 15px 18px; border-radius: var(--radius); cursor: pointer;
  border: 1px solid var(--line); color: var(--text); text-align: left;
  background: var(--panel-2);
  transition: border-color .2s, transform .12s ease;
  overflow: hidden;
}
.mode-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--cyan); opacity: 0.9;
}
.mode-card:active { transform: scale(.99); }
.mode-card .mode-ic {
  font-size: 22px; width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 8px; background: rgba(56, 189, 248, 0.08);
  border: 1px solid var(--line);
}
.mode-card .mode-txt { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.mode-card .mode-txt b { font-size: 16px; font-weight: 700; letter-spacing: 0.02em; }
.mode-card .mode-txt span { font-size: 12px; color: var(--muted); font-family: var(--mono); }
.mode-card .mode-go { font-size: 20px; color: var(--muted); font-family: var(--mono); }
.mode-card.standard:hover { border-color: var(--line-strong); }
.mode-card.ultra::before { background: var(--gold); }
.mode-card.ultra { border-color: rgba(245, 158, 11, 0.28); }
.mode-card.ultra .mode-ic { border-color: rgba(245, 158, 11, 0.25); background: rgba(245, 158, 11, 0.08); }
.ultra-badge {
  position: absolute; top: 10px; right: 12px; font-size: 9px; font-weight: 700;
  font-family: var(--mono); padding: 3px 7px; border-radius: 4px;
  color: #0c0a09; background: var(--gold); letter-spacing: 0.08em;
}

/* SOLAR — summer event */
.mode-card.solar {
  padding: 18px 16px 18px 20px;
  border-color: rgba(251, 146, 60, 0.55);
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.22) 0%, rgba(236, 72, 153, 0.06) 35%, rgba(234, 88, 12, 0.1) 60%, var(--panel-2) 100%);
  box-shadow: 0 0 40px rgba(251, 146, 60, 0.18), 0 0 80px rgba(251, 191, 36, 0.08), inset 0 1px 0 rgba(255, 237, 213, 0.12);
}
.solar-sunset {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background: radial-gradient(ellipse 80% 60% at 85% 15%, rgba(253, 224, 71, 0.25), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 90%, rgba(244, 63, 94, 0.08), transparent 50%);
}
.solar-float-coins { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 1; }
.solar-float-coins span {
  position: absolute; font-size: 14px; font-weight: 800; opacity: 0;
  color: #fde68a; text-shadow: 0 0 8px rgba(251, 191, 36, 0.6);
  animation: coinFloat 4s ease-in-out infinite;
}
.solar-float-coins span:nth-child(1) { left: 8%; top: 20%; }
.solar-float-coins span:nth-child(2) { left: 72%; top: 35%; animation-delay: 0.8s; font-size: 16px; }
.solar-float-coins span:nth-child(3) { left: 45%; top: 8%; animation-delay: 1.6s; }
.solar-float-coins span:nth-child(4) { left: 88%; top: 55%; animation-delay: 2.2s; }
.solar-float-coins span:nth-child(5) { left: 22%; top: 65%; animation-delay: 3s; }
.mode-card.solar.ready .solar-float-coins span { animation-name: coinFloatActive; }
@keyframes coinFloat { 0%, 100% { opacity: 0; transform: translateY(8px); } }
@keyframes coinFloatActive {
  0% { opacity: 0; transform: translateY(12px) scale(0.8); }
  20% { opacity: 0.85; }
  80% { opacity: 0.6; transform: translateY(-18px) scale(1.1); }
  100% { opacity: 0; transform: translateY(-28px) scale(0.9); }
}
.mode-card.solar::before { background: linear-gradient(180deg, #fbbf24, #f97316); width: 4px; }
.mode-card.solar .mode-ic.solar-ic {
  font-size: 26px; border-color: rgba(251, 191, 36, 0.35);
  background: rgba(251, 146, 60, 0.15); box-shadow: 0 0 20px rgba(251, 191, 36, 0.2);
}
.mode-card.solar .mode-txt b {
  background: linear-gradient(90deg, #fde68a, #fbbf24, #fb923c);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-size: 17px;
}
.mode-card.solar .mode-txt span { color: #fdba74; }
.mode-card.solar .solar-go { color: #fbbf24; }
.solar-badge {
  position: absolute; top: 10px; right: 12px; font-size: 8px; font-weight: 800;
  font-family: var(--mono); padding: 4px 8px; border-radius: 4px; letter-spacing: 0.12em;
  color: #431407; background: linear-gradient(135deg, #fde68a, #fbbf24);
  border: 1px solid rgba(251, 191, 36, 0.5); z-index: 2;
}
.solar-rays {
  position: absolute; inset: -50%; pointer-events: none; opacity: 0.35;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(251, 191, 36, 0.15) 20deg, transparent 40deg,
    transparent 60deg, rgba(251, 146, 60, 0.12) 80deg, transparent 100deg,
    transparent 120deg, rgba(253, 186, 116, 0.1) 140deg, transparent 160deg,
    transparent 180deg, rgba(251, 191, 36, 0.15) 200deg, transparent 220deg,
    transparent 240deg, rgba(251, 146, 60, 0.12) 260deg, transparent 280deg,
    transparent 300deg, rgba(253, 186, 116, 0.1) 320deg, transparent 340deg);
  animation: solarSpin 18s linear infinite;
}
.solar-shimmer {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.14) 50%, transparent 65%);
  animation: solarShimmer 3.5s ease-in-out infinite;
}
@keyframes solarSpin { to { transform: rotate(360deg); } }
@keyframes solarShimmer { 0%, 100% { opacity: 0; transform: translateX(-30%); } 50% { opacity: 1; transform: translateX(30%); } }
.solar-timer {
  position: absolute; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 800; font-family: var(--mono); color: #fdba74;
  background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(251, 146, 60, 0.25);
  border-radius: 999px; padding: 4px 10px; z-index: 2;
}
.mode-card.solar.locked { filter: grayscale(0.35) brightness(0.88); }
.mode-card.solar.locked .solar-rays { opacity: 0.12; animation: none; }
.mode-card.solar.locked .solar-shimmer { display: none; }
.mode-card.solar:not(.locked):hover { border-color: rgba(251, 191, 36, 0.65); box-shadow: 0 0 48px rgba(251, 146, 60, 0.28); }
.mode-card.solar.ready { animation: solarCardBeat 3s ease-in-out infinite; }
.mode-card.solar.ready .solar-ic { animation: solarPulse 1.8s ease-in-out infinite; }
@keyframes solarCardBeat { 50% { box-shadow: 0 0 52px rgba(251, 191, 36, 0.28), 0 0 24px rgba(236, 72, 153, 0.08); } }
@keyframes solarPulse { 50% { box-shadow: 0 0 32px rgba(251, 191, 36, 0.55); transform: scale(1.08); } }

/* Battle Pass teaser */
.bp-teaser {
  position: relative; width: 100%; margin-bottom: 12px; padding: 14px 16px 18px;
  border-radius: 14px; cursor: pointer; text-align: left; overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.25);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(251, 191, 36, 0.08), var(--panel-2));
  color: var(--text); transition: transform .12s, box-shadow .2s;
}
.bp-teaser:active { transform: scale(0.99); }
.bp-teaser-glow {
  position: absolute; top: -40px; right: -20px; width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.25), transparent 70%);
  pointer-events: none;
}
.bp-teaser-left { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.bp-teaser-ic { font-size: 28px; }
.bp-teaser-txt b { display: block; font-size: 15px; font-weight: 800; }
.bp-teaser-txt small { font-size: 11px; color: var(--muted); font-family: var(--mono); }
.bp-teaser-right { position: absolute; top: 14px; right: 14px; display: flex; align-items: center; gap: 6px; z-index: 1; }
.bp-teaser-count { font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--cyan); }
.bp-teaser-tag {
  min-width: 20px; height: 20px; border-radius: 999px; display: grid; place-items: center;
  font-size: 12px; font-weight: 800; color: #431407; background: linear-gradient(135deg, #fde68a, #fbbf24);
  animation: live 1.4s infinite;
}
.bp-teaser-bar {
  position: absolute; left: 16px; right: 16px; bottom: 10px; height: 4px;
  border-radius: 2px; background: rgba(0,0,0,.35); overflow: hidden; z-index: 1;
}
.bp-teaser-bar span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, #0ea5e9, #fbbf24, #22d3ee);
  border-radius: 2px; transition: width .6s ease;
}

/* Buttons */
.actions { display: flex; flex-direction: column; gap: 10px; }
.actions-row { display: flex; gap: 10px; }
.actions-row .btn { flex: 1; }
.signal-actions { margin-top: 4px; }

.btn {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 15px 18px; overflow: hidden;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--panel-2); color: var(--text);
  font-size: 14px; font-weight: 700; letter-spacing: 0.03em;
  cursor: pointer; text-decoration: none;
  transition: transform .14s ease, border-color .2s, box-shadow .2s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; opacity: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.12) 50%, transparent 60%);
  transition: opacity .2s;
}
.btn:active { transform: scale(0.98); }
.btn:active::before { opacity: 1; }
.btn-ic { font-size: 17px; line-height: 1; flex-shrink: 0; }
.btn-txt { line-height: 1.2; }

.btn-primary {
  background: linear-gradient(145deg, #0ea5e9 0%, #0369a1 100%);
  border-color: rgba(56, 189, 248, 0.45);
  color: #fff;
  box-shadow: 0 4px 0 #025a8a, 0 8px 24px rgba(14, 165, 233, 0.35);
}
.btn-primary:active { box-shadow: 0 2px 0 #025a8a, 0 4px 12px rgba(14, 165, 233, 0.25); }

.btn-glow {
  animation: btnGlow 2.5s ease-in-out infinite;
}
@keyframes btnGlow {
  50% { box-shadow: 0 4px 0 #025a8a, 0 8px 32px rgba(14, 165, 233, 0.5); }
}
.signal-card.up ~ .signal-actions .btn-primary {
  background: linear-gradient(145deg, #10b981 0%, #047857 100%);
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 4px 0 #065f46, 0 8px 24px rgba(16, 185, 129, 0.35);
  animation: btnGlowUp 2.5s ease-in-out infinite;
}
.signal-card.down ~ .signal-actions .btn-primary {
  background: linear-gradient(145deg, #f43f5e 0%, #be123c 100%);
  border-color: rgba(244, 63, 94, 0.45);
  box-shadow: 0 4px 0 #9f1239, 0 8px 24px rgba(244, 63, 94, 0.3);
  animation: btnGlowDown 2.5s ease-in-out infinite;
}
@keyframes btnGlowUp {
  50% { box-shadow: 0 4px 0 #065f46, 0 8px 32px rgba(16, 185, 129, 0.5); }
}
@keyframes btnGlowDown {
  50% { box-shadow: 0 4px 0 #9f1239, 0 8px 32px rgba(244, 63, 94, 0.45); }
}

.btn-success {
  background: linear-gradient(145deg, var(--green), var(--green-2));
  border-color: rgba(16, 185, 129, 0.4); color: #fff;
  box-shadow: 0 4px 0 #047857, 0 8px 20px rgba(5, 150, 105, 0.3);
}
.btn-ghost {
  background: rgba(0, 0, 0, 0.2); color: var(--muted);
  border-color: var(--line);
}
.btn-outline {
  background: transparent;
  border-color: rgba(56, 189, 248, 0.25);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--line-strong); color: var(--cyan); }
.btn-admin { background: var(--panel-2); border-color: var(--line-strong); }
.btn:disabled { opacity: .5; pointer-events: none; }

/* Topbar */
.topbar { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.topbar h2 { font-size: 18px; margin: 0; flex: 1; }
.back {
  width: 40px; height: 40px; flex: 0 0 40px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--glass-2); color: var(--text);
  font-size: 24px; line-height: 1; cursor: pointer;
}
.mode-pill {
  font-size: 11px; font-weight: 800; padding: 5px 10px; border-radius: 999px;
  border: 1px solid var(--line-strong); color: var(--cyan); white-space: nowrap;
}
.mode-pill.ultra { color: #241a00; background: linear-gradient(135deg, var(--gold), #ffdd7a); border-color: transparent; }
.mode-pill.solar {
  color: #431407; background: linear-gradient(135deg, #fde68a, #fb923c);
  border-color: transparent; box-shadow: 0 0 12px rgba(251, 146, 60, 0.3);
}

/* Card */
.card { border-radius: var(--radius); padding: 18px; font-size: 15px; line-height: 1.65; margin-bottom: 16px; }
.card a { color: var(--cyan); }
.card b { color: var(--text); }

/* Field */
.field { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.field label { color: var(--muted); font-size: 14px; }
.field input {
  width: 100%; padding: 15px 16px; border-radius: var(--radius);
  border: 1px solid var(--line); background: rgba(5,16,31,.6); color: var(--text);
  font-size: 18px; letter-spacing: 1px; outline: none;
}
.field input:focus { border-color: var(--blue); }
.error { color: var(--red); font-size: 14px; margin: 4px 0 0; }

/* Language screen */
.lang-title { color: var(--muted); font-size: 15px; margin: 6px 0 8px; }
.lang-list { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 320px; }
.lang-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--panel-2); color: var(--text); font-size: 16px; font-weight: 700;
  cursor: pointer; letter-spacing: 0.02em;
  transition: transform .12s ease, border-color .2s, box-shadow .2s;
}
.lang-btn:active { transform: scale(.98); }
.lang-btn:hover { border-color: var(--cyan); box-shadow: 0 4px 16px rgba(0,0,0,.2); }

/* Hot pairs — AI picks */
.hot-section { margin: 0; }
.hot-picks-panel {
  margin-bottom: 14px; padding: 14px; border-radius: 14px;
  border: 1px solid rgba(251, 146, 60, 0.28);
  background: linear-gradient(145deg, rgba(251, 146, 60, 0.08), rgba(14, 165, 233, 0.05), var(--panel-2));
}
.hot-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.hot-label {
  font-family: var(--mono); font-size: 11px; font-weight: 800; letter-spacing: 0.1em;
  color: #fdba74;
}
.hot-refresh { font-family: var(--mono); font-size: 10px; color: var(--muted); }
.hot-desc { font-size: 12px; color: var(--muted); margin: 0 0 10px; line-height: 1.5; }
.hot-scroll {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px;
  scrollbar-width: none; -ms-overflow-style: none;
}
.hot-scroll::-webkit-scrollbar { display: none; }
.hot-chip {
  flex-shrink: 0; min-width: 118px; padding: 10px 12px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--line); background: var(--panel-2);
  transition: transform .12s, border-color .2s, box-shadow .2s;
}
.hot-chip:active { transform: scale(0.97); }
.hot-chip.rank-1 {
  border-color: rgba(251, 191, 36, 0.45);
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.12), var(--panel-2));
  box-shadow: 0 0 18px rgba(251, 146, 60, 0.12);
}
.hot-chip-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.hot-chip-rank { font-family: var(--mono); font-size: 9px; font-weight: 800; color: var(--muted); }
.hot-chip.rank-1 .hot-chip-rank { color: var(--gold); }
.hot-chip-badge { font-size: 8px; font-weight: 800; padding: 2px 5px; border-radius: 3px; color: #431407; background: linear-gradient(135deg, #fde68a, #fbbf24); }
.hot-chip-name { font-size: 14px; font-weight: 800; font-family: var(--mono); }
.hot-chip-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; font-size: 11px; }
.hot-chip-wr { font-family: var(--mono); font-weight: 700; color: var(--green); }
.hot-chip-wr small { color: var(--muted); font-weight: 600; font-size: 9px; }
.hot-chip-trend { font-weight: 800; font-size: 12px; }
.hot-chip-trend.up { color: var(--green); }
.hot-chip-trend.down { color: var(--red); }

.hot-list { display: flex; flex-direction: column; gap: 8px; }
.hot-row {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--panel-2); cursor: pointer;
  transition: transform .12s, border-color .2s;
}
.hot-row:active { transform: scale(0.99); }
.hot-row.rank-1 { border-color: rgba(251, 191, 36, 0.4); background: linear-gradient(90deg, rgba(251,191,36,.1), var(--panel-2)); }
.hot-row-rank {
  width: 28px; height: 28px; flex-shrink: 0; display: grid; place-items: center;
  font-family: var(--mono); font-size: 12px; font-weight: 800; border-radius: 8px;
  background: rgba(0,0,0,.25); border: 1px solid var(--line); color: var(--muted);
}
.hot-row.rank-1 .hot-row-rank { color: #431407; background: linear-gradient(135deg, #fde68a, #fbbf24); border-color: transparent; }
.hot-row-body { flex: 1; min-width: 0; }
.hot-row-name { font-size: 15px; font-weight: 800; font-family: var(--mono); }
.hot-row-sub { font-size: 10px; color: var(--muted); font-family: var(--mono); margin-top: 2px; }
.hot-row-stats { text-align: right; flex-shrink: 0; }
.hot-row-wr { font-family: var(--mono); font-size: 16px; font-weight: 800; color: var(--green); }
.hot-row-wr small { display: block; font-size: 9px; color: var(--muted); font-weight: 600; }
.hot-row-trend { font-size: 13px; font-weight: 800; margin-top: 2px; }
.hot-row-trend.up { color: var(--green); }
.hot-row-trend.down { color: var(--red); }

.pair-all-title {
  font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: 0.12em;
  color: var(--muted); margin: 0 0 10px 2px; text-transform: uppercase;
}
.pair-cell.hot-pick {
  border-color: rgba(251, 146, 60, 0.35);
  background: linear-gradient(135deg, rgba(251,146,60,.06), var(--panel-2));
  position: relative;
}
.pair-cell.hot-pick::after {
  content: "🔥"; position: absolute; top: 6px; right: 8px; font-size: 11px;
}

/* Pairs grid */
.pair-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pair-cell {
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 10px; font-size: 13px; font-weight: 700; font-family: var(--mono);
  text-align: center; cursor: pointer;
  transition: transform .12s ease, border-color .2s, box-shadow .2s;
}
.pair-cell .otc { display: block; font-size: 11px; color: var(--muted); font-weight: 600; margin-top: 3px; }
.pair-cell .spark { display: block; height: 18px; margin-top: 6px; }
.pair-cell:active { transform: scale(.97); }
.pair-cell:hover { border-color: var(--blue); }

/* Expiration */
.selected-pair { text-align: center; font-size: 20px; font-weight: 800; margin-bottom: 16px; color: var(--cyan); }
.exp-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.exp-cell {
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px;
  padding: 20px 10px; font-size: 16px; font-weight: 700; font-family: var(--mono);
  text-align: center; cursor: pointer;
  transition: transform .12s ease, border-color .2s, box-shadow .2s;
}
.exp-cell:hover { border-color: var(--cyan); box-shadow: 0 0 16px rgba(34, 211, 238, 0.12); }
.exp-cell:active { transform: scale(.97); }
.pair-cell:hover { box-shadow: 0 0 14px rgba(56, 189, 248, 0.1); }

/* Loader */
.loader { position: relative; width: 88px; height: 88px; display: grid; place-items: center; }
.loader-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--line); border-top-color: var(--cyan);
  animation: spin 0.9s linear infinite;
}
.loader-mark { font-weight: 700; font-size: 20px; font-family: var(--mono); color: var(--cyan); }
@keyframes spin { to { transform: rotate(360deg); } }

/* Analysis — institutional terminal */
.analysis-wrap { position: relative; padding-top: 4px; overflow: hidden; }
.analysis-panel { border-radius: var(--radius-lg); padding: 16px 16px 14px; }
.analysis-panel::before { top: 16px; bottom: 16px; }
.analysis-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.analysis-meta { display: flex; flex-direction: column; gap: 4px; }
.analysis-label { font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: 0.14em; color: var(--muted); }
.analysis-pair { font-family: var(--mono); font-weight: 700; color: var(--cyan); font-size: 18px; letter-spacing: 0.04em; }

.chart-frame { position: relative; margin-bottom: 18px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #030810; }
.analysis-chart { width: 100%; height: 148px; display: block; }
.analysis-scan { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.chart-live {
  position: absolute; top: 8px; right: 8px; font-family: var(--mono); font-size: 9px; font-weight: 700;
  letter-spacing: 0.12em; color: var(--green); padding: 3px 7px; border-radius: 4px;
  background: rgba(16, 185, 129, 0.12); border: 1px solid rgba(16, 185, 129, 0.35);
  animation: liveBlink 2s ease-in-out infinite;
}
@keyframes liveBlink { 50% { opacity: 0.65; } }

.engine-core { position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px; margin-bottom: 12px; }
.progress-ring-wrap { position: relative; width: 112px; height: 112px; }
.progress-ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: rgba(56, 189, 248, 0.12); stroke-width: 6; }
.ring-fg {
  fill: none; stroke: var(--cyan); stroke-width: 6; stroke-linecap: round;
  stroke-dasharray: 326.73; stroke-dashoffset: 326.73;
  transition: stroke-dashoffset 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.progress-center {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px;
}
.progress-pct { font-family: var(--mono); font-size: 26px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.progress-sub { font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: 0.12em; color: var(--muted); }

.pipeline { display: flex; gap: 6px; width: 100%; max-width: 280px; justify-content: center; }
.pipe-step {
  flex: 1; height: 4px; border-radius: 2px; background: rgba(56, 189, 248, 0.12);
  transition: background 0.35s ease, box-shadow 0.35s ease;
}
.pipe-step.on { background: var(--cyan); box-shadow: 0 0 10px rgba(34, 211, 238, 0.45); }
.pipe-step.done { background: var(--green); box-shadow: none; }

.analysis-step {
  text-align: center; font-size: 13px; color: var(--muted); min-height: 20px; margin: 0 0 14px;
  font-family: var(--mono); letter-spacing: 0.02em; line-height: 1.5;
  transition: color 0.3s ease;
}
.analysis-wrap.ultra .analysis-step { color: rgba(245, 158, 11, 0.9); }

.analysis-metrics {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  padding-top: 12px; border-top: 1px solid var(--line);
}
.metric {
  text-align: center; padding: 8px 4px; border-radius: 8px;
  background: rgba(0, 0, 0, 0.25); border: 1px solid var(--line);
}
.metric .m-k { display: block; font-family: var(--mono); font-size: 9px; font-weight: 600; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 4px; }
.metric .m-v { font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--cyan); font-variant-numeric: tabular-nums; }

.pulse-ring {
  width: 110px; height: 110px; border-radius: 50%; display: grid; place-items: center; font-size: 42px;
  background: radial-gradient(closest-side, rgba(47,139,255,.3), transparent); animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.big-emoji { font-size: 64px; }

/* Signal card */
.signal-card {
  position: relative; border-radius: var(--radius-lg); padding: 20px 16px 18px;
  text-align: center; margin-bottom: 18px; overflow: hidden;
  animation: signalIn 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes signalIn {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
.signal-card.panel::before { display: none; }
.signal-glow {
  position: absolute; inset: -40%; pointer-events: none; opacity: 0.45;
  background: radial-gradient(ellipse 50% 40% at 50% 0%, var(--cyan), transparent 70%);
  animation: signalGlow 3s ease-in-out infinite;
}
.signal-card.up .signal-glow { background: radial-gradient(ellipse 55% 45% at 50% 0%, rgba(16,185,129,.5), transparent 70%); }
.signal-card.down .signal-glow { background: radial-gradient(ellipse 55% 45% at 50% 0%, rgba(244,63,94,.45), transparent 70%); }
@keyframes signalGlow { 50% { opacity: 0.7; transform: scale(1.03); } }
.signal-stripe { position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--cyan); z-index: 1; }
.signal-card.up { border-color: rgba(16, 185, 129, 0.4); box-shadow: 0 0 40px rgba(16, 185, 129, 0.12); }
.signal-card.up .signal-stripe { background: linear-gradient(90deg, var(--green), #34d399, var(--green)); background-size: 200% 100%; animation: stripeFlow 2.5s linear infinite; }
.signal-card.down { border-color: rgba(244, 63, 94, 0.4); box-shadow: 0 0 40px rgba(244, 63, 94, 0.1); }
.signal-card.down .signal-stripe { background: linear-gradient(90deg, var(--red), #fb7185, var(--red)); background-size: 200% 100%; animation: stripeFlow 2.5s linear infinite; }
@keyframes stripeFlow { to { background-position: 200% 0; } }
.signal-top { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; min-height: 28px; gap: 8px; }
.signal-mode-badge {
  font-family: var(--mono); font-size: 9px; font-weight: 700; padding: 4px 8px; border-radius: 4px;
  letter-spacing: 0.1em; color: #0c0a09; background: var(--gold); border: 1px solid rgba(245,158,11,.5);
}
.signal-live {
  display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 9px; font-weight: 700;
  letter-spacing: 0.14em; color: var(--muted); margin-right: auto;
}
.signal-live .pulse-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 0 rgba(16,185,129,.6); animation: live 1.4s infinite;
}
.signal-card.down .signal-live .pulse-dot { background: var(--red); box-shadow: 0 0 0 0 rgba(244,63,94,.6); }
.signal-dir {
  font-family: var(--mono); font-size: 20px; font-weight: 700;
  letter-spacing: 0.1em; padding: 6px 14px; border-radius: 6px;
  border: 1px solid var(--line); background: rgba(0,0,0,.35);
  animation: dirPop 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}
@keyframes dirPop { from { opacity: 0; transform: scale(0.85); } to { opacity: 1; transform: none; } }
.signal-card.up .signal-dir { color: var(--green); border-color: rgba(16,185,129,.45); box-shadow: 0 0 20px rgba(16,185,129,.2); }
.signal-card.down .signal-dir { color: var(--red); border-color: rgba(244,63,94,.45); box-shadow: 0 0 20px rgba(244,63,94,.18); }
.signal-head { position: relative; z-index: 1; font-size: 14px; font-weight: 600; margin: 0 0 12px; color: var(--muted); letter-spacing: 0.02em; }
.signal-card.up .signal-head { color: rgba(16, 185, 129, 0.95); }
.signal-card.down .signal-head { color: rgba(244, 63, 94, 0.95); }

.signal-chart-wrap {
  position: relative; z-index: 1; margin-bottom: 14px; border-radius: 10px;
  border: 1px solid var(--line); background: #030810; overflow: hidden;
}
.signal-card.up .signal-chart-wrap { border-color: rgba(16,185,129,.25); }
.signal-card.down .signal-chart-wrap { border-color: rgba(244,63,94,.25); }
.signal-chart { width: 100%; height: 130px; display: block; }
.signal-entry-tag {
  position: absolute; left: 62%; top: 50%; transform: translate(-50%, -50%);
  font-family: var(--mono); font-size: 8px; font-weight: 700; letter-spacing: 0.12em;
  color: var(--cyan); padding: 2px 6px; border-radius: 3px;
  background: rgba(34, 211, 238, 0.12); border: 1px solid rgba(34, 211, 238, 0.35);
  animation: entryPulse 2s ease-in-out infinite; pointer-events: none;
}
.signal-card.up .signal-entry-tag { color: var(--green); border-color: rgba(16,185,129,.4); background: rgba(16,185,129,.12); }
.signal-card.down .signal-entry-tag { color: var(--red); border-color: rgba(244,63,94,.4); background: rgba(244,63,94,.12); }
@keyframes entryPulse { 50% { opacity: 0.55; transform: translate(-50%, -50%) scale(1.05); } }
.signal-price {
  position: absolute; top: 8px; right: 10px; font-family: var(--mono); font-size: 12px; font-weight: 700;
  color: var(--cyan); padding: 4px 8px; border-radius: 5px;
  background: rgba(0,0,0,.55); border: 1px solid var(--line);
  font-variant-numeric: tabular-nums; transition: color 0.15s;
}
.signal-card.up .signal-price { color: var(--green); }
.signal-card.down .signal-price { color: var(--red); }

.signal-meta-title {
  position: relative; z-index: 1; font-family: var(--mono); font-size: 9px; font-weight: 700;
  letter-spacing: 0.16em; color: var(--muted); text-align: left; margin: 4px 0 10px 2px;
}
.signal-rows { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 8px; text-align: left; }

.info-row {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(135deg, rgba(0,0,0,.35), rgba(8,16,28,.5));
  border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; transition: border-color .2s;
}
.info-row.highlight { border-color: rgba(245, 158, 11, 0.35); background: linear-gradient(135deg, rgba(245,158,11,.06), rgba(0,0,0,.3)); }
.info-ic {
  width: 36px; height: 36px; flex-shrink: 0; display: grid; place-items: center;
  font-size: 16px; border-radius: 8px;
  background: rgba(56, 189, 248, 0.08); border: 1px solid var(--line);
}
.info-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.info-k { font-family: var(--mono); font-size: 10px; font-weight: 600; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; }
.info-v { font-family: var(--mono); font-weight: 700; font-size: 15px; color: var(--text); letter-spacing: 0.02em; }
.signal-card.up .info-row .info-v { color: #e8eef7; }
.info-row.highlight .info-v { color: var(--gold); font-size: 16px; }

.prob-wrap {
  display: flex; align-items: flex-start; gap: 12px;
  background: linear-gradient(135deg, rgba(245,158,11,.08), rgba(0,0,0,.35));
  border: 1px solid rgba(245, 158, 11, 0.3); border-radius: 10px; padding: 12px 14px;
}
.prob-wrap .info-ic { background: rgba(245, 158, 11, 0.12); border-color: rgba(245, 158, 11, 0.25); }
.prob-inner { flex: 1; }
.prob-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.prob-top .info-k { font-family: var(--mono); font-size: 10px; font-weight: 600; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; }
.prob-top .v { font-family: var(--mono); font-weight: 800; font-size: 18px; color: var(--gold); }
.prob-bar { height: 8px; border-radius: 4px; background: rgba(0,0,0,.45); overflow: hidden; }
.prob-bar > span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--green), var(--gold), var(--cyan));
  border-radius: 4px; box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}

/* ULTRA cooldown timer on card */
.ultra-timer { position: absolute; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 800; color: var(--gold); background: rgba(0,0,0,.3); border-radius: 999px; padding: 3px 9px; }
.ultra-timer .lock { font-size: 11px; }
.mode-card.ultra.locked { filter: grayscale(.25) brightness(.92); }
.mode-card.ultra.locked .mode-go { display: none; }

/* Nav grid */
.nav-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 4px 0 16px; }
.nav-card {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 16px 12px; border-radius: 12px; cursor: pointer; color: var(--text);
  border: 1px solid var(--line); background: var(--panel-2);
  transition: transform .12s ease, border-color .2s, box-shadow .2s;
}
.nav-card:active { transform: scale(.97); }
.nav-card:hover { border-color: var(--line-strong); box-shadow: 0 4px 16px rgba(0,0,0,.25); }
.nav-ic { font-size: 26px; }
.nav-label { font-size: 13px; font-weight: 700; letter-spacing: 0.02em; }
.nav-tag { position: absolute; top: 10px; right: 10px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: linear-gradient(135deg, var(--gold), #ffdd7a); color: #241a00; font-size: 12px; font-weight: 800; display: grid; place-items: center; }

/* ULTRA analysis */
.ultra-fx { position: absolute; inset: -20px; width: calc(100% + 40px); height: calc(100% + 40px); pointer-events: none; opacity: 0.5; }
.analysis-wrap.ultra .ring-fg { stroke: var(--gold); }
.analysis-wrap.ultra .progress-pct { color: var(--gold); }
.analysis-wrap.ultra .chart-frame { border-color: rgba(245, 158, 11, 0.3); }
.analysis-wrap.ultra .pipe-step.on { background: var(--gold); box-shadow: 0 0 10px rgba(245, 158, 11, 0.4); }
.analysis-wrap.ultra .metric .m-v { color: var(--gold); }

/* SOLAR analysis */
.solar-fx { position: absolute; inset: -20px; width: calc(100% + 40px); height: calc(100% + 40px); pointer-events: none; opacity: 0.65; }
.analysis-wrap.solar .analysis-step { color: #fdba74; }
.analysis-wrap.solar .ring-fg { stroke: #f97316; }
.analysis-wrap.solar .progress-pct { color: #fbbf24; }
.analysis-wrap.solar .chart-frame { border-color: rgba(251, 146, 60, 0.35); box-shadow: 0 0 24px rgba(251, 146, 60, 0.1); }
.analysis-wrap.solar .pipe-step.on { background: #f97316; box-shadow: 0 0 12px rgba(251, 146, 60, 0.45); }
.analysis-wrap.solar .metric .m-v { color: #fbbf24; }
.analysis-wrap.solar .analysis-label { color: #fb923c; }

.signal-card.solar { border-color: rgba(251, 146, 60, 0.45) !important; box-shadow: 0 0 48px rgba(251, 146, 60, 0.15) !important; }
.signal-card.solar .signal-glow {
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(251, 191, 36, 0.45), transparent 70%);
  animation: solarGlow 2.5s ease-in-out infinite;
}
@keyframes solarGlow { 50% { opacity: 0.85; transform: scale(1.04); } }
.signal-card.solar .signal-stripe {
  background: linear-gradient(90deg, #fbbf24, #f97316, #fde68a, #f97316);
  background-size: 300% 100%; animation: stripeFlow 2s linear infinite;
}
.signal-mode-badge.solar {
  color: #431407; background: linear-gradient(135deg, #fde68a, #fb923c);
  border-color: rgba(251, 146, 60, 0.5); letter-spacing: 0.08em;
}
.signal-card.solar.up ~ .signal-actions .btn-primary,
.signal-card.solar.down ~ .signal-actions .btn-primary {
  background: linear-gradient(145deg, #fbbf24 0%, #ea580c 100%);
  border-color: rgba(251, 191, 36, 0.5);
  box-shadow: 0 4px 0 #c2410c, 0 8px 24px rgba(251, 146, 60, 0.4);
  animation: btnGlowSolar 2.5s ease-in-out infinite;
}
@keyframes btnGlowSolar {
  50% { box-shadow: 0 4px 0 #c2410c, 0 8px 32px rgba(251, 146, 60, 0.55); }
}

.solar-coins-rain {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 3;
}
.solar-coins-rain .coin {
  position: absolute; top: -20px; font-size: 16px; font-weight: 900;
  color: #fde68a; text-shadow: 0 0 10px rgba(251, 191, 36, 0.8);
  animation: coinRain 2.8s linear forwards;
}
@keyframes coinRain {
  to { transform: translateY(420px) rotate(360deg); opacity: 0; }
}

.analysis-wrap.solar::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(251, 146, 60, 0.12), transparent 60%);
  animation: solarHeat 4s ease-in-out infinite;
}
@keyframes solarHeat { 50% { opacity: 0.7; } }

/* Battle Pass screen */
.bp-hero {
  position: relative; border-radius: 18px; padding: 18px; margin-bottom: 16px; overflow: hidden;
  border: 1px solid rgba(251, 191, 36, 0.3);
  background: linear-gradient(145deg, rgba(251, 146, 60, 0.12), rgba(14, 165, 233, 0.08), var(--panel-2));
}
.bp-hero-glow {
  position: absolute; inset: -30% 20% auto; height: 160px;
  background: radial-gradient(closest-side, rgba(251, 191, 36, 0.35), transparent);
  filter: blur(24px); pointer-events: none;
}
.bp-hero-top { display: flex; justify-content: space-between; align-items: center; position: relative; }
.bp-season {
  font-family: var(--mono); font-size: 9px; font-weight: 800; letter-spacing: 0.14em;
  padding: 4px 8px; border-radius: 4px; color: #431407;
  background: linear-gradient(135deg, #fde68a, #fbbf24);
}
.bp-trades-lbl { font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--cyan); }
.bp-progress-wrap { display: flex; align-items: center; gap: 10px; margin: 14px 0 10px; position: relative; }
.bp-progress-track { flex: 1; height: 10px; border-radius: 5px; background: rgba(0,0,0,.4); overflow: hidden; }
.bp-progress-fill {
  height: 100%; width: 0; border-radius: 5px;
  background: linear-gradient(90deg, #0ea5e9, #fbbf24, #f97316);
  box-shadow: 0 0 14px rgba(251, 191, 36, 0.4);
  transition: width .7s ease;
}
.bp-progress-pct { font-family: var(--mono); font-size: 14px; font-weight: 800; color: var(--gold); min-width: 38px; }
.bp-hero-desc { font-size: 13px; color: var(--muted); line-height: 1.55; margin: 0; position: relative; }

.bp-list { display: flex; flex-direction: column; gap: 8px; }
.bp-tier {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border-radius: 12px; border: 1px solid var(--line); background: var(--panel-2);
  transition: border-color .2s, transform .12s;
}
.bp-tier.unlocked { border-color: rgba(56, 189, 248, 0.25); }
.bp-tier.claimable {
  border-color: rgba(251, 191, 36, 0.45);
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.08), var(--panel-2));
  box-shadow: 0 0 20px rgba(251, 146, 60, 0.1);
  animation: bpPulse 2s ease-in-out infinite;
}
.bp-tier.claimed { opacity: 0.65; }
@keyframes bpPulse { 50% { box-shadow: 0 0 28px rgba(251, 191, 36, 0.18); } }
.bp-tier-ic {
  width: 42px; height: 42px; flex-shrink: 0; display: grid; place-items: center;
  font-size: 20px; border-radius: 10px; background: rgba(0,0,0,.25); border: 1px solid var(--line);
}
.bp-tier.claimable .bp-tier-ic { border-color: rgba(251, 191, 36, 0.35); background: rgba(251, 146, 60, 0.12); }
.bp-tier-body { flex: 1; min-width: 0; }
.bp-tier-trades { font-family: var(--mono); font-size: 10px; font-weight: 700; color: var(--muted); letter-spacing: 0.08em; }
.bp-tier-reward { font-size: 14px; font-weight: 700; margin-top: 2px; }
.bp-tier.claimable .bp-tier-reward { color: var(--gold); }
.bp-tier-btn {
  flex-shrink: 0; padding: 8px 14px; border-radius: 8px; border: none; cursor: pointer;
  font-size: 12px; font-weight: 800; font-family: var(--mono); letter-spacing: 0.04em;
}
.bp-tier-btn.claim {
  background: linear-gradient(135deg, #fbbf24, #f97316); color: #431407;
  box-shadow: 0 4px 14px rgba(251, 146, 60, 0.35);
}
.bp-tier-btn.claim:active { transform: scale(0.96); }
.bp-tier-btn.done { background: rgba(16, 185, 129, 0.15); color: var(--green); border: 1px solid rgba(16, 185, 129, 0.3); cursor: default; }
.bp-tier-btn.lock { background: rgba(0,0,0,.2); color: var(--muted); border: 1px solid var(--line); cursor: default; }
.bp-tier-check { font-size: 18px; color: var(--green); flex-shrink: 0; }
.bp-msg { text-align: center; font-size: 14px; font-weight: 600; margin-top: 12px; padding: 10px; border-radius: 10px; }
.bp-msg.ok { color: var(--green); background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.25); }
.bp-msg.err { color: var(--red); background: rgba(244, 63, 94, 0.1); border: 1px solid rgba(244, 63, 94, 0.25); }

/* Contests */
.contest-card { position: relative; border-radius: 20px; padding: 18px; margin-bottom: 16px; overflow: hidden; }
.contest-glow { position: absolute; inset: -50% 30% auto; height: 180px; background: radial-gradient(closest-side, rgba(255,197,61,.4), transparent); filter: blur(20px); }
.contest-top { display: flex; justify-content: space-between; align-items: center; position: relative; }
.contest-badge { font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: var(--red); color: #fff; letter-spacing: .5px; animation: live 1.6s infinite; }
.contest-timer { font-variant-numeric: tabular-nums; font-weight: 800; color: var(--cyan); font-size: 15px; }
.contest-card h3 { margin: 12px 0 6px; font-size: 19px; position: relative; }
.contest-prize { display: flex; align-items: baseline; gap: 8px; position: relative; }
.contest-prize span { font-size: 34px; font-weight: 900; background: linear-gradient(135deg, var(--gold), #ffe9a8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.contest-prize small { color: var(--muted); font-size: 12px; }
.contest-desc { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 12px 0 0; position: relative; }

.lb-me { display: flex; align-items: center; justify-content: space-between; border-radius: 14px; padding: 12px 16px; margin-bottom: 14px; border-color: var(--line-strong); }
.lb-me .me-rank { font-weight: 900; font-size: 18px; color: var(--cyan); }
.lb-me .me-info { flex: 1; margin-left: 12px; }
.lb-me .me-info b { display: block; }
.lb-me .me-info small { color: var(--muted); }
.lb-title { font-size: 16px; margin: 0 0 10px; }
.lb-list { display: flex; flex-direction: column; gap: 8px; }
.lb-row { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--glass); }
.lb-row.me { border-color: var(--gold); background: linear-gradient(90deg, rgba(255,197,61,.12), transparent); }
.lb-rank { width: 28px; text-align: center; font-weight: 800; color: var(--muted); }
.lb-rank.top { font-size: 18px; }
.lb-name { flex: 1; font-weight: 600; font-size: 14px; }
.lb-count { font-weight: 800; color: var(--cyan); font-size: 14px; }
.lb-count small { color: var(--muted); font-weight: 600; font-size: 11px; }

/* Promo */
.promo-hero { border-radius: 20px; padding: 22px; text-align: center; margin-bottom: 16px; }
.promo-emoji { font-size: 52px; }
.promo-hero p { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 10px 0 14px; }
.spins-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-strong); }
.spins-chip span { color: var(--muted); font-size: 13px; }
.spins-chip b { font-size: 20px; color: var(--gold); }
.promo-msg { font-size: 14px; margin: 4px 0 0; }
.promo-msg.ok { color: var(--green); } .promo-msg.err { color: var(--red); }

/* Wheel */
.wheel-stage { position: relative; width: 300px; max-width: 86vw; aspect-ratio: 1; margin: 10px auto 18px; }
.wheel-canvas { width: 100%; height: 100%; display: block; filter: drop-shadow(0 12px 30px rgba(0,0,0,.5)); }
.wheel-pointer { position: absolute; top: -6px; left: 50%; transform: translateX(-50%); z-index: 2; width: 0; height: 0; border-left: 14px solid transparent; border-right: 14px solid transparent; border-top: 24px solid var(--gold); filter: drop-shadow(0 2px 4px rgba(0,0,0,.5)); }
.wheel-prize { text-align: center; font-size: 20px; font-weight: 800; margin-bottom: 14px; min-height: 28px; }
.wheel-prize.win { color: var(--gold); text-shadow: 0 0 14px rgba(255,197,61,.5); animation: popIn .4s ease; }
@keyframes popIn { 0% { transform: scale(.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
