:root {
  --bg: #07070b;
  --bg-2: #0e0e15;
  --panel: #14141d;
  --line: #23232f;
  --text: #f0f0f5;
  --muted: #8a8a9a;
  --gold: #f5c542;
  --red: #ff4757;
  --green: #2ed573;
  --neon: #00f5d4;
  --pink: #ff3e8a;
  --purple: #b388ff;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text);
  font-family: 'Space Grotesk', system-ui, sans-serif; min-height: 100vh; }
body {
  background:
    radial-gradient(1100px 600px at 80% -10%, #1c0d2b 0%, transparent 60%),
    radial-gradient(900px 500px at -10% 30%, #0a1b22 0%, transparent 60%),
    var(--bg);
}
a { color: inherit; text-decoration: none; }

/* HEADER */
.hdr { display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px; border-bottom: 1px solid var(--line); }
.logo { font-family: 'JetBrains Mono', monospace; font-weight: 700; letter-spacing: 0.06em; font-size: 18px; }
.logo .dot { color: var(--neon); }
nav { display: flex; gap: 22px; }
.nav-link { font-weight: 500; color: var(--muted); padding: 6px 10px; border-radius: 6px; transition: 0.15s; }
.nav-link:hover { color: var(--text); background: var(--bg-2); }
.hdr-right .sub-pill {
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  background: var(--bg-2); color: var(--neon); border: 1px solid var(--line);
  padding: 6px 10px; border-radius: 999px;
}

/* HERO */
.hero { text-align: center; padding: 48px 20px 24px; }
.hero h1 { font-size: clamp(36px, 6vw, 64px); margin: 0; letter-spacing: -0.02em; }
.hero .grad {
  background: linear-gradient(90deg, var(--neon), var(--pink) 60%, var(--purple));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lede { color: var(--muted); max-width: 640px; margin: 12px auto 0; font-size: 17px; }

/* WHEEL */
.wheel-wrap {
  display: grid; grid-template-columns: minmax(320px, 640px) minmax(280px, 1fr);
  gap: 36px; align-items: start;
  padding: 30px 28px 60px; max-width: 1280px; margin: 0 auto;
}
@media (max-width: 900px) {
  .wheel-wrap { grid-template-columns: 1fr; }
}
.wheel-stage {
  position: relative; width: 100%; aspect-ratio: 1; max-width: 640px; margin: 0 auto;
}
#wheel { width: 100%; height: 100%; display: block;
  filter: drop-shadow(0 0 24px rgba(0, 245, 212, 0.18)); cursor: pointer; }
.ticker {
  position: absolute; top: -4px; left: 50%; transform: translateX(-50%);
  width: 0; height: 0; z-index: 4;
  border-left: 14px solid transparent; border-right: 14px solid transparent;
  border-top: 26px solid var(--neon);
  filter: drop-shadow(0 0 8px rgba(0, 245, 212, 0.8));
}
.wheel-center {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 28%; height: 28%; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 35%, #1d1d2c, #07070b);
  border: 2px solid var(--line); z-index: 3;
  box-shadow: inset 0 0 30px rgba(0, 245, 212, 0.15), 0 0 30px rgba(0, 0, 0, 0.6);
}
.spin {
  background: linear-gradient(135deg, var(--neon), #00bcd4);
  color: #04141a; font-weight: 700; letter-spacing: 0.08em;
  border: none; border-radius: 999px; padding: 14% 0; width: 80%;
  font-size: clamp(14px, 2vw, 18px); cursor: pointer;
  box-shadow: 0 0 24px rgba(0, 245, 212, 0.4), inset 0 -3px 0 rgba(0,0,0,0.2);
  transition: 0.15s transform;
}
.spin:hover { transform: scale(1.04); }
.spin:active { transform: scale(0.96); }
.spin.spinning { background: #2a2a36; color: var(--muted); cursor: not-allowed; box-shadow: none; }

/* RESULT */
.wheel-side { min-height: 480px; }
.empty-hint {
  background: var(--panel); border: 1px dashed var(--line); border-radius: 16px;
  padding: 40px 24px; text-align: center; color: var(--muted);
}
.empty-hint .big { font-size: 48px; margin-bottom: 8px; }
.empty-hint b { color: var(--neon); }
.hidden { display: none !important; }

.result-card {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, rgba(20,20,29,0.95), rgba(14,14,21,0.95));
  border: 1px solid var(--line); border-radius: 16px; padding: 22px 22px 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  animation: pop 0.45s cubic-bezier(.2,1.3,.3,1);
}
.result-card.heavy {
  border-color: var(--gold);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 24px rgba(245, 197, 66, 0.18);
}
.result-card.shock {
  border-color: var(--red);
  animation: pop 0.45s cubic-bezier(.2,1.3,.3,1), shockPulse 2s ease-in-out infinite;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(255, 71, 87, 0.35);
}
@keyframes shockPulse {
  0%, 100% { box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 30px rgba(255, 71, 87, 0.35); }
  50% { box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 60px rgba(255, 71, 87, 0.6); }
}
.shock-stamp {
  position: absolute; top: 14px; right: -36px; transform: rotate(18deg);
  background: var(--red); color: #fff; padding: 5px 40px;
  font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 11px;
  letter-spacing: 0.18em; box-shadow: 0 4px 14px rgba(255, 71, 87, 0.5);
  display: none; z-index: 2;
}
.result-card.shock .shock-stamp { display: block; }
.rc-prob {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  background: var(--bg-2); padding: 4px 9px; border-radius: 999px;
  border: 1px solid var(--line); letter-spacing: 0.12em;
}
.rc-prob[data-prob="low"] { color: #ff4757; border-color: rgba(255,71,87,0.4); }
.rc-prob[data-prob="medium"] { color: var(--gold); border-color: rgba(245,197,66,0.4); }
.rc-prob[data-prob="high"] { color: var(--green); border-color: rgba(46,213,115,0.4); }
@keyframes pop { from { transform: translateY(20px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
.rc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.rc-cat {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  background: var(--bg-2); padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--neon); text-transform: uppercase; letter-spacing: 0.1em;
}
.rc-cat[data-cat="war"] { color: var(--red); }
.rc-cat[data-cat="oil"], .rc-cat[data-cat="energy"] { color: var(--gold); }
.rc-cat[data-cat="crypto"] { color: var(--purple); }
.rc-cat[data-cat="fed"] { color: var(--green); }
.rc-cat[data-cat="tech"] { color: var(--neon); }
.rc-cat[data-cat="geopolitics"] { color: #5dade2; }
.rc-cat[data-cat="election"] { color: var(--pink); }
.rc-cat[data-cat="supply"] { color: #16a085; }
.rc-cat[data-cat="gold"] { color: var(--gold); }
.rc-sev { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--muted); }
.rc-sev b { color: var(--gold); font-size: 14px; }
.rc-headline { font-size: 24px; margin: 4px 0 6px; line-height: 1.18; letter-spacing: -0.01em; }
.rc-event { color: var(--muted); margin: 0 0 14px; line-height: 1.5; font-size: 15px; }
.rc-take {
  background: rgba(0, 245, 212, 0.08); border-left: 3px solid var(--neon);
  padding: 12px 14px; border-radius: 6px; margin: 8px 0 16px; font-size: 14px; line-height: 1.45;
}
.rc-markets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 16px; }
.rc-markets .m {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 10px; text-align: center;
}
.rc-markets .m span { display: block; font-size: 10px; color: var(--muted);
  letter-spacing: 0.1em; text-transform: uppercase; }
.rc-markets .m b { display: block; margin-top: 2px; font-size: 14px; font-family: 'JetBrains Mono', monospace; }
.rc-markets .m b.up { color: var(--green); }
.rc-markets .m b.down { color: var(--red); }

.rc-assets { margin-bottom: 14px; display: flex; flex-direction: column; gap: 6px; }
.asset-row {
  display: grid; grid-template-columns: 1fr auto; gap: 10px;
  padding: 8px 12px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px;
  font-size: 13px;
}
.asset-row .reason { font-size: 11px; color: var(--muted); margin-top: 2px; }
.asset-row .move { font-family: 'JetBrains Mono', monospace; font-weight: 700; }
.asset-row .move.up { color: var(--green); } .asset-row .move.down { color: var(--red); }

.rc-wl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.rc-wl > div {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px;
  padding: 10px 12px; font-size: 13px;
}
.rc-wl span {
  font-size: 10px; color: var(--muted); letter-spacing: 0.12em; text-transform: uppercase;
  display: block; margin-bottom: 4px;
}
.rc-wl .win span { color: var(--green); }
.rc-wl .los span { color: var(--red); }
.rc-watch { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.rc-watch span { color: var(--gold); font-weight: 700; }

.rc-trade, .rc-history {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 13px; margin-bottom: 10px; font-size: 13px; line-height: 1.5;
}
.rc-trade { border-left: 3px solid var(--green); }
.rc-history { border-left: 3px solid var(--purple); }
.rc-trade-h, .rc-history-h {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  letter-spacing: 0.12em; margin-bottom: 4px; color: var(--muted);
}
.rc-trade-h { color: var(--green); }
.rc-history-h { color: var(--purple); }

.rc-meta { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px;
  background: rgba(0,0,0,0.2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.rc-meta-row { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; align-items: baseline; }
.rc-meta-row span {
  color: var(--muted); font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.12em; flex-shrink: 0;
}
.rc-meta-row b { text-align: right; color: var(--text); font-weight: 600; }
.ghost {
  width: 100%; background: transparent; border: 1px solid var(--line); color: var(--text);
  padding: 12px; border-radius: 10px; cursor: pointer; font-weight: 600; transition: 0.15s;
}
.ghost:hover { background: var(--bg-2); border-color: var(--neon); color: var(--neon); }

/* NEWSLETTER */
.newsletter {
  margin: 40px auto 60px; padding: 36px 28px; max-width: 760px;
  background: linear-gradient(135deg, rgba(255, 62, 138, 0.06), rgba(0, 245, 212, 0.06));
  border: 1px solid var(--line); border-radius: 18px; text-align: center;
}
.newsletter h3 { margin: 0 0 16px; font-size: 22px; }
#subForm, #modalForm { display: flex; gap: 8px; max-width: 460px; margin: 0 auto; }
#subForm input, #modalForm input {
  flex: 1; padding: 13px 14px; background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 10px; color: var(--text); font: inherit; font-size: 15px;
}
#subForm input:focus, #modalForm input:focus { outline: none; border-color: var(--neon); }
#subForm button, #modalForm button {
  padding: 13px 22px; background: var(--neon); color: #04141a; border: none;
  border-radius: 10px; font-weight: 700; cursor: pointer; font-size: 14px;
  box-shadow: 0 0 20px rgba(0,245,212,0.3);
}
.sub-msg, .modal-msg { margin-top: 12px; font-size: 14px; color: var(--green); min-height: 18px; }
.sub-msg.err, .modal-msg.err { color: var(--red); }
.newsletter .muted { font-size: 12px; margin-top: 12px; }

/* MODAL */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(8px);
  display: grid; place-items: center; z-index: 50; padding: 20px;
}
.modal {
  background: var(--panel); border: 1px solid var(--line); border-radius: 18px;
  padding: 32px 28px 24px; max-width: 440px; width: 100%; position: relative;
  animation: pop 0.4s cubic-bezier(.2,1.3,.3,1);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 40px rgba(255,62,138,0.18);
}
.modal-x { position: absolute; top: 12px; right: 16px; background: none; border: none;
  color: var(--muted); font-size: 26px; cursor: pointer; line-height: 1; }
.modal h2 { margin: 0 0 8px; font-size: 22px; }
.modal p { margin: 0 0 16px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.modal p b { color: var(--text); }
.modal-skip { background: none; border: none; color: var(--muted); text-decoration: underline;
  cursor: pointer; font-size: 13px; margin-top: 12px; padding: 4px; }

/* DROPS */
.drops {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px;
  padding: 20px 28px 60px; max-width: 1200px; margin: 0 auto;
}
.drop {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px; position: relative; transition: 0.15s;
}
.drop:hover { border-color: var(--neon); }
.drop header { display: flex; justify-content: space-between; gap: 10px;
  margin-bottom: 12px; font-size: 11px; }
.drop .kind {
  background: var(--bg-2); padding: 3px 8px; border-radius: 999px; color: var(--neon);
  text-transform: uppercase; letter-spacing: 0.12em; font-family: 'JetBrains Mono', monospace;
}
.drop .scen { color: var(--muted); }
.drop .body { white-space: pre-wrap; line-height: 1.55; font-size: 14px; }
.drop .copy {
  position: absolute; bottom: 14px; right: 14px; background: var(--bg-2);
  border: 1px solid var(--line); color: var(--text); padding: 5px 10px; border-radius: 6px;
  font-size: 11px; cursor: pointer;
}
.drop .copy:hover { border-color: var(--neon); color: var(--neon); }
.empty-card { background: var(--panel); padding: 30px; border-radius: 12px; color: var(--muted);
  text-align: center; grid-column: 1/-1; }
.drop-long .body { font-size: 13px; }

/* NEWS */
.news-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px;
  padding: 20px 28px 60px; max-width: 1280px; margin: 0 auto;
}
.newscard {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px; transition: 0.15s; display: block;
}
.newscard:hover { border-color: var(--neon); transform: translateY(-2px); }
.newscard .ns {
  font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--neon);
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 6px;
}
.newscard .nt { font-size: 14px; line-height: 1.4; margin-bottom: 8px; }
.newscard .np { font-size: 11px; color: var(--muted); }

/* FOOTER */
footer { padding: 30px 28px 40px; border-top: 1px solid var(--line); text-align: center;
  color: var(--muted); font-size: 13px; }
footer .muted { font-size: 11px; margin-top: 6px; opacity: 0.7; }
