/* ============================================================
   RISEx Trading Passport — page styles  (v18 · redesign)
   Brand green #04DF83 on black; Space Grotesk / Raleway / Chivo Mono.
   Cinematic, premium, beginner-legible. Scroll-reveal (.rx-reveal, JS --p).
   Keeps every JS hook (ids + .rx-* classes) — restyle only.
   ============================================================ */
@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Raleway:wght@300;400;500;600;700&family=Chivo+Mono:wght@400;500;600;700&display=swap");

:root {
  --rx-dur-fast: 180ms;
  --rx-ease: cubic-bezier(.2, .7, .2, 1);
  --rx-red: #ff6b78;
  --rx-green: #10d695;
  --rx-gold: #f7d99a;

  --rx-font-display: "Space Grotesk", system-ui, sans-serif;
  --rx-font-text: "Raleway", system-ui, sans-serif;
  --rx-font-mono: "Chivo Mono", ui-monospace, monospace;
  --rx-font-codemono: "Chivo Mono", ui-monospace, monospace;
  --rx-brand-green: #04DF83;
  --rx-brand-green-dim: #03b86b;
  --rx-brand-ink: #04161D;

  /* tier palette */
  --t-bronze:#c08457; --t-silver:#b9c4cc; --t-gold:#f3c14b;
  --t-platinum:#9fe3ff; --t-diamond:#04DF83; --t-elite:#46e0b0; --t-legend:#d8ff7a;

  /* surfaces */
  --rx-surface-1: rgba(255,255,255,0.022);
  --rx-surface-2: rgba(255,255,255,0.04);
  --rx-line: rgba(255,255,255,0.08);
  --rx-line-soft: rgba(255,255,255,0.06);
  --rx-ink-1: #ffffff;
  --rx-ink-2: rgba(255,255,255,0.66);
  --rx-ink-3: rgba(255,255,255,0.46);
  --rx-ink-4: rgba(255,255,255,0.32);
}

/* page chrome ------------------------------------------------------- */
html, body { background: #000; }
body {
  overflow-x: hidden;
  font-family: var(--rx-font-text);
  color: var(--rx-ink-1);
  font-variant-numeric: lining-nums tabular-nums;
}
body::before {
  content:""; position:fixed; inset:0; pointer-events:none; z-index:0;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,0.018) 0 1px, transparent 1px 104px);
  mix-blend-mode:screen;
}
body::after {
  content:""; position:fixed; inset:0; pointer-events:none; z-index:0;
  opacity:.08;
  background-image: radial-gradient(rgba(255,255,255,0.4) .5px, transparent .5px);
  background-size: 6px 6px;
}

/* ============================================================ NAV */
.rx-topnav {
  position: sticky; top: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 20px;
  height: 70px; padding: 0 28px;
  background: rgba(0,0,0,0.62);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--rx-line-soft);
}
.rx-topnav-left, .rx-topnav-right { display:inline-flex; align-items:center; gap:16px; }
.rx-topnav-right { justify-self:end; }

.rx-menu {
  display:inline-flex; align-items:center; gap:10px;
  height:38px; padding:0 16px;
  border:1px solid rgba(255,255,255,0.28); border-radius:999px;
  background:transparent; color:#fff;
  font: 600 11px/1 var(--rx-font-display);
  text-transform:uppercase; letter-spacing:.18em; cursor:pointer;
  transition: background var(--rx-dur-fast) var(--rx-ease), border-color var(--rx-dur-fast) var(--rx-ease);
}
.rx-menu:hover { background:rgba(255,255,255,0.08); border-color:rgba(255,255,255,0.4); }
.rx-menu-bars { display:inline-flex; flex-direction:column; gap:3px; }
.rx-menu-bars span { width:14px; height:1.4px; background:#fff; border-radius:1px; display:block; }

.rx-brandlock { justify-self:center; display:inline-flex; align-items:center; gap:12px; white-space:nowrap; }
.rx-sypher { color:#fff; font:600 18px/1 var(--rx-font-display); letter-spacing:.01em; text-transform:uppercase; }
.rx-sypher-x { color:var(--rx-brand-green); font:700 18px/1 var(--rx-font-display); }
.rx-brand-logo-link { display:inline-flex; align-items:center; }
.rx-brand-logo-link img { height:14px; width:auto; display:block; transform: translateY(-1px); }

.rx-topnav-link {
  color:#fff; font: 500 12px/1 var(--rx-font-display);
  letter-spacing: 0.16em; text-transform:uppercase; text-decoration:none;
  opacity:.78; padding:8px 4px;
  transition: opacity var(--rx-dur-fast) var(--rx-ease);
}
.rx-topnav-link:hover { opacity:1; }
.rx-topnav-link.active { opacity:1; }
.rx-topnav-link.active::after { content:""; display:block; height:1px; margin-top:4px; background:var(--rx-brand-green); }

/* "NEW" flag on the Exchange tab — highlights the new feature */
.rx-topnav-link.rx-newtab { opacity:1; }
.rx-new-badge {
  display:inline-block; vertical-align:middle; margin-left:7px; transform:translateY(-1px);
  font: 800 8px/1 var(--rx-font-display); letter-spacing:.12em; text-transform:uppercase;
  padding:3px 5px; border-radius:5px;
  background:var(--rx-brand-green); color:#04161D;
  box-shadow:0 0 10px rgba(4,223,131,.45);
  animation: rxNewPulse 2.4s ease-in-out infinite;
}
.rx-menu-dropdown a .rx-new-badge { margin-left:8px; }
@keyframes rxNewPulse {
  0%,100% { box-shadow:0 0 0 0 rgba(4,223,131,0); opacity:.9; }
  50%     { box-shadow:0 0 14px 2px rgba(4,223,131,.5); opacity:1; }
}
@media (prefers-reduced-motion: reduce) { .rx-new-badge { animation:none; } }

/* ===== RISEx invite ticket (banner, variant 7b) ===== */
.rx-itk-wrap{display:flex;justify-content:center;padding:12px 24px;border-top:1px solid rgba(255,255,255,.07)}
.rx-itk-wrap[hidden]{display:none}
.rx-itk{display:inline-flex;align-items:stretch;border:1.5px dashed rgba(4,223,131,.55);background:rgba(4,223,131,.04);border-radius:12px;overflow:hidden;cursor:pointer;padding:0;-webkit-appearance:none;appearance:none;font-family:var(--rx-font-display);transition:background .15s,border-color .15s}
.rx-itk:hover{background:rgba(4,223,131,.09);border-color:rgba(4,223,131,.85)}
.rx-itk-l{display:inline-flex;align-items:center;gap:10px;padding:10px 16px;font-weight:500;font-size:13.5px;color:#fff;white-space:nowrap}
.rx-itk-l b{color:var(--rx-brand-green);font-weight:600}
.rx-itk-ico{color:var(--rx-brand-green);display:inline-flex;flex:none}
.rx-itk-cnt{font-family:var(--rx-font-mono);font-size:12px;color:rgba(255,255,255,.55)}
.rx-itk-cnt b{color:var(--rx-brand-green);font-weight:600}
.rx-itk-perf{width:0;border-left:1.5px dashed rgba(4,223,131,.5);margin:7px 0;position:relative;flex:none}
.rx-itk-perf::before,.rx-itk-perf::after{content:"";position:absolute;left:-5px;width:9px;height:9px;border-radius:50%;background:#000}
.rx-itk-perf::before{top:-11px}.rx-itk-perf::after{bottom:-11px}
.rx-itk-r{display:inline-flex;align-items:center;padding:10px 18px;background:rgba(4,223,131,.1);font-weight:700;font-size:12px;letter-spacing:.05em;text-transform:uppercase;color:var(--rx-brand-green);white-space:nowrap}
.rx-itk.sold-out{cursor:default;border-color:rgba(255,255,255,.22);background:transparent}
.rx-itk.sold-out:hover{background:transparent;border-color:rgba(255,255,255,.22)}
.rx-itk.sold-out .rx-itk-l b,.rx-itk.sold-out .rx-itk-ico,.rx-itk.sold-out .rx-itk-cnt b{color:rgba(255,255,255,.5)}
.rx-itk.sold-out .rx-itk-r,.rx-itk.sold-out .rx-itk-perf{display:none}

/* ===== RISEx invite modal ===== */
.rx-iv-modal{position:fixed;inset:0;z-index:9000;display:flex;align-items:center;justify-content:center;padding:20px}
.rx-iv-modal[hidden]{display:none}
.rx-iv-backdrop{position:absolute;inset:0;background:rgba(2,6,9,.78);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}
.rx-iv-card{position:relative;width:100%;max-width:420px;background:#080d12;border:1px solid rgba(4,223,131,.22);border-radius:18px;padding:26px 24px 22px;box-shadow:0 24px 80px rgba(0,0,0,.6),0 0 60px rgba(4,223,131,.07);font-family:var(--rx-font-display);text-align:center}
.rx-iv-x{position:absolute;top:12px;right:14px;background:transparent;border:0;color:rgba(255,255,255,.45);font-size:22px;line-height:1;cursor:pointer}
.rx-iv-x:hover{color:#fff}
.rx-iv-kicker{display:inline-flex;align-items:center;gap:8px;font-weight:700;font-size:10px;letter-spacing:.2em;text-transform:uppercase;color:var(--rx-brand-green);margin-bottom:12px}
.rx-iv-dot{width:7px;height:7px;border-radius:50%;background:var(--rx-brand-green);box-shadow:0 0 8px var(--rx-brand-green)}
.rx-iv-title{font-weight:600;font-size:20px;color:#fff;margin:0 0 8px}
.rx-iv-sub{font-family:var(--rx-font-text,"Raleway",system-ui,sans-serif);font-size:13px;line-height:1.55;color:rgba(255,255,255,.62);margin:0 auto 18px;max-width:340px}
.rx-iv-coderow{display:flex;flex-direction:column;align-items:center;gap:6px;margin-bottom:14px}
.rx-iv-code{font-family:var(--rx-font-mono);font-weight:600;font-size:24px;letter-spacing:.18em;color:#fff;background:rgba(4,223,131,.06);border:1px dashed rgba(4,223,131,.35);border-radius:10px;padding:10px 18px}
.rx-iv-state{font-size:12px;color:rgba(255,255,255,.5)}
.rx-iv-bar{height:5px;border-radius:999px;background:rgba(255,255,255,.1);overflow:hidden;margin:0 auto 7px;max-width:300px;width:100%}
.rx-iv-bar i{display:block;height:100%;width:0;background:var(--rx-brand-green);border-radius:999px;transition:width .5s ease}
.rx-iv-count{font-family:var(--rx-font-mono);font-size:11px;color:rgba(255,255,255,.45);margin-bottom:16px}
.rx-iv-actions{display:flex;flex-direction:column;gap:9px}
.rx-iv-btn{font-family:var(--rx-font-display);font-weight:600;font-size:12px;letter-spacing:.06em;text-transform:uppercase;text-decoration:none;text-align:center;cursor:pointer;border-radius:999px;padding:11px 16px;border:1px solid rgba(255,255,255,.18);background:transparent;color:#fff;transition:.15s}
.rx-iv-btn:hover{border-color:rgba(255,255,255,.4)}
.rx-iv-btn.primary{background:var(--rx-brand-green);color:#04161D;border-color:var(--rx-brand-green)}
.rx-iv-btn.primary:hover{background:#fff;border-color:#fff}
.rx-iv-btn.hidden{display:none}

.rx-cta-pill {
  height: 38px; padding: 0 18px; white-space: nowrap; text-decoration: none;
  display:inline-flex; align-items:center; justify-content:center;
  border:1px solid rgba(255,255,255,0.6); border-radius:999px;
  background:transparent; color:#fff;
  font: 600 11px/1 var(--rx-font-display);
  text-transform:uppercase; letter-spacing:.18em; cursor:pointer;
  transition: background var(--rx-dur-fast) var(--rx-ease), filter var(--rx-dur-fast) var(--rx-ease);
}
.rx-cta-pill:hover { background:#fff; color:#000; }
.rx-cta-pill.solid { background:var(--rx-brand-green); color:var(--rx-brand-ink); border-color:var(--rx-brand-green); }
.rx-cta-pill.solid:hover { filter:brightness(1.08); background:var(--rx-brand-green); color:var(--rx-brand-ink); }

/* MENU dropdown */
.rx-menu-wrap { position: relative; display: inline-flex; }
.rx-menu-dropdown {
  position: absolute; top: 48px; left: 0; min-width: 210px; padding: 8px;
  display: flex; flex-direction: column; gap: 2px;
  background: rgba(6, 12, 12, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 14px;
  backdrop-filter: blur(18px);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.55); z-index: 90;
}
.rx-menu-dropdown a {
  padding: 9px 12px; border-radius: 9px; color: rgba(255, 255, 255, 0.8);
  text-decoration: none; font: 500 12px/1 var(--rx-font-display);
  text-transform: uppercase; letter-spacing: 0.12em;
}
.rx-menu-dropdown a:hover { background: rgba(4, 223, 131, 0.12); color: #fff; }
.rx-menu-dropdown a.active { color: var(--rx-brand-green); }

/* ============================================================ HERO */
.rx-hero {
  position: relative; width: 100%;
  height: calc(100vh - 70px); min-height: 700px;
  overflow: hidden; isolation: isolate;
  background:
    radial-gradient(ellipse 78% 85% at 62% 54%, rgba(4,223,131,0.10), transparent 75%),
    radial-gradient(ellipse 100% 100% at 50% 60%, rgba(16,26,30,0.7), transparent 88%),
    #000;
}
.rx-cube-wrap { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; z-index: 2; }
.rx-cube-img { display:none; }

/* pure-CSS green Trading Passport book */
.rx-scene {
  position: relative; z-index: 3;
  width: clamp(300px, 34vw, 480px); height: clamp(300px, 34vw, 480px);
  transform: translateX(5%);
  perspective: 1600px; perspective-origin: 50% 46%;
  display: grid; place-items: center;
}
.rx-passport {
  position: relative; width: clamp(230px, 26vw, 336px); aspect-ratio: 5 / 7;
  transform-style: preserve-3d; transform: rotateY(-20deg) rotateX(7deg);
  animation: ppFloat 8s ease-in-out infinite;
  filter: drop-shadow(0 38px 60px rgba(0,0,0,0.55)) drop-shadow(0 0 70px rgba(4,223,131,0.22));
}
.rx-pp-spine {
  position: absolute; left: -10px; top: 2.4%; width: 22px; height: 95.2%;
  border-radius: 4px 2px 2px 4px;
  background: linear-gradient(90deg, #0c2c1e 0%, #f4efe2 22%, #d8d2c2 40%, #efe9da 60%, #cbc4b2 100%);
  transform: translateZ(-12px) rotateY(8deg);
  box-shadow: inset -3px 0 6px rgba(0,0,0,0.4);
}
.rx-pp-cover {
  position: absolute; inset: 0; border-radius: 5px 12px 12px 5px;
  padding: 14% 11% 13%;
  display: grid; grid-template-rows: auto 1fr auto;
  justify-items: center; text-align: center;
  background:
    radial-gradient(120% 90% at 30% 0%, rgba(255,255,255,0.22), transparent 52%),
    linear-gradient(155deg, #0bf593 0%, #04df83 48%, #03b86b 100%);
  border: 1px solid rgba(4,22,29,0.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.30), inset 0 0 60px rgba(2,120,70,0.30), inset 6px 0 16px rgba(2,90,55,0.34);
  overflow: hidden;
}
.rx-pp-cover::before {
  content:""; position:absolute; inset:0;
  background-image: radial-gradient(rgba(4,22,29,0.10) 0.6px, transparent 0.6px);
  background-size: 4px 4px; opacity: .5; pointer-events:none;
}
.rx-pp-cover::after {
  content:""; position:absolute; inset: 7% 7%;
  border: 1.5px solid rgba(4,22,29,0.55); border-radius: 4px; pointer-events:none;
}
.rx-pp-top, .rx-pp-bottom { position: relative; z-index: 1; color: var(--rx-brand-ink); }
.rx-pp-top {
  margin-top: 4%; font-family: var(--rx-font-codemono); font-size: clamp(9px, 1.05vw, 12px);
  font-weight: 500; letter-spacing: 0.30em; text-transform: uppercase;
}
.rx-pp-logo { position: relative; z-index: 1; align-self: center; width: clamp(150px, 19vw, 224px); height: auto; display: block; }
.rx-pp-bottom {
  margin-top: 9%; margin-bottom: 2%; font-family: var(--rx-font-codemono);
  font-size: clamp(11px, 1.25vw, 14px); font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; opacity: .9;
}

/* hero light beams */
.rx-beam { position:absolute; left:53%; top:48%; transform-origin: left center; mix-blend-mode: screen; z-index: 1; pointer-events:none; }
.rx-beam-blue {
  width: 64%; height: 26px; transform: translate(-100%, -8%) rotate(-2deg);
  background: linear-gradient(90deg, transparent 0%, rgba(4,223,131,0) 4%, rgba(4,223,131,0.45) 40%, rgba(60,245,160,0.85) 80%, rgba(190,255,225,1) 100%);
  filter: blur(7px); border-radius: 999px; animation: beamPulse 6s ease-in-out infinite;
}
.rx-beam-rainbow {
  width: 58%; height: 52px; transform: translate(-6%, -34%) rotate(-30deg);
  background: linear-gradient(90deg, rgba(4,223,131,0) 0%, rgba(4,223,131,0.55) 22%, rgba(90,255,180,0.8) 52%, rgba(220,255,235,0.6) 78%, rgba(255,255,255,0) 100%);
  filter: blur(12px); opacity:.85; animation: beamPulse 8s ease-in-out infinite reverse;
}
.rx-beam-warm {
  width: 56%; height: 48px; transform: translate(-6%, -6%) rotate(30deg);
  background: linear-gradient(90deg, rgba(4,223,131,0) 0%, rgba(4,223,131,0.5) 20%, rgba(70,250,170,0.75) 52%, rgba(210,255,232,0.5) 80%, rgba(255,255,255,0) 100%);
  filter: blur(12px); opacity:.8; animation: beamPulse 7s ease-in-out infinite;
}
.rx-beam-cold {
  width: 52%; height: 12px; transform: translate(-4%, -4%) rotate(2deg);
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(210,255,232,0.6) 34%, rgba(120,255,190,0.55) 66%, rgba(4,223,131,0) 100%);
  filter: blur(6px); border-radius: 999px; animation: beamPulse 5.5s ease-in-out infinite reverse;
}
.rx-cube-aura {
  position:absolute; left:53%; top:50%; width: clamp(360px, 42%, 600px); height: 360px;
  transform: translate(-46%, -50%);
  background: radial-gradient(ellipse at center, rgba(4,223,131,0.28) 0%, rgba(4,223,131,0.10) 44%, transparent 72%);
  filter: blur(50px); mix-blend-mode: screen; z-index: 1; pointer-events:none;
}

/* hero text */
.rx-hero-content { position: absolute; inset: 0; display: grid; grid-template-rows: 1fr auto; z-index: 4; padding: 32px clamp(28px, 4vw, 64px) 32px; pointer-events: none; }
.rx-hero-content > * { pointer-events: auto; }
.rx-hero-foot { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 32px; padding-bottom: 44px; }
.rx-hero-copy { max-width: 760px; }
.rx-hero-eyebrow {
  display:inline-flex; align-items:center; gap:10px; margin: 0 0 22px;
  color:var(--rx-brand-green); font: 600 11px/1 var(--rx-font-display);
  text-transform:uppercase; letter-spacing: 0.2em;
}
.rx-hero-eyebrow::before { content:"→"; display:inline-block; font-size: 14px; }
.rx-hero h1 {
  margin: 0; font-family: var(--rx-font-display); font-weight: 500;
  font-size: clamp(40px, 5.6vw, 80px); line-height: 0.98; letter-spacing: -0.02em;
  color: #fff; text-wrap: balance;
}

/* hero score ring teaser */
.rx-hero-side { width: 290px; text-align: left; }
@property --score-pct { syntax: '<percentage>'; initial-value: 0%; inherits: false; }
.rx-hero-ring {
  width: 96px; height: 96px; border-radius:50%;
  display:grid; place-items:center; margin-bottom: 16px; position: relative;
  --score-pct: 0%; --ring-color: rgba(255,255,255,0.5);
  background: conic-gradient(var(--ring-color) var(--score-pct), rgba(255,255,255,0.10) 0);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06), 0 14px 40px rgba(4,223,131,0.10);
  transition: --score-pct .9s var(--rx-ease), --ring-color .4s ease;
}
.rx-hero-ring::before { content: ""; position: absolute; inset: 5px; border-radius:50%; background: #050c0d; box-shadow: inset 0 0 18px rgba(0,0,0,0.6); }
.rx-hero-ring b { position: relative; z-index: 1; font: 600 30px/1 var(--rx-font-display); color:#fff; letter-spacing: -0.02em; }
.rx-hero-ring-cap { display:block; margin:-8px 0 12px; color:var(--rx-ink-3); font:600 10px var(--rx-font-display); letter-spacing:.18em; text-transform:uppercase; }
.rx-hero-side p { margin: 0; color: var(--rx-ink-2); font: 400 14px/1.6 var(--rx-font-text); letter-spacing: 0; }

/* hero search */
.rx-search-v2 {
  margin-top: 28px; display:flex; align-items:center; gap:8px;
  width: min(540px, 100%); padding: 6px;
  border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.04);
  border-radius: 999px; backdrop-filter: blur(12px);
  transition: border-color var(--rx-dur-fast) var(--rx-ease);
}
.rx-search-v2:focus-within { border-color: rgba(4,223,131,0.5); }
.rx-search-v2 input {
  flex: 1; min-width: 0; background: transparent; border:0; outline:0; color:#fff;
  padding: 12px 18px; font: 400 14px var(--rx-font-mono); letter-spacing: -0.01em;
}
.rx-search-v2 input::placeholder { color: rgba(255,255,255,0.42); font-family: var(--rx-font-mono); }
.rx-search-v2 button {
  height: 42px; padding: 0 24px; border: 0; border-radius: 999px;
  background: var(--rx-brand-green); color: var(--rx-brand-ink);
  font: 600 12px var(--rx-font-display); text-transform: uppercase; letter-spacing: .14em; cursor: pointer;
  transition: filter var(--rx-dur-fast) var(--rx-ease);
}
.rx-search-v2 button:hover { filter: brightness(1.08); }

/* ============================================================ PAGE */
.rx-page { width:min(1180px, calc(100vw - 40px)); margin:0 auto; padding: 18px 0 64px; }

.rx-status {
  margin-top:18px; padding:13px 16px;
  border:1px solid var(--rx-line); border-radius:14px;
  color:var(--rx-ink-2); background:rgba(255,255,255,0.03);
  font:400 13px var(--rx-font-text);
}
.rx-status.error, .rx-status.err { border-color:rgba(255,107,120,0.45); color:var(--rx-red); }
.rx-status.ok { border-color:rgba(4,223,131,0.45); color:var(--rx-brand-green); }

/* ---- card / panel shells ---- */
.rx-profile { margin-top:24px; display:flex; flex-direction:column; gap:14px; }
.rx-card, .rx-panel {
  position:relative; border:1px solid var(--rx-line);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.012));
  border-radius:20px; backdrop-filter:blur(16px);
}
.rx-card { overflow:hidden; padding:30px; }
/* green top accent on the identity card */
.rx-card::before {
  content:""; position:absolute; inset:0 0 auto 0; height:1px;
  background:linear-gradient(90deg, transparent, rgba(4,223,131,0.7) 30%, rgba(4,223,131,0.7) 70%, transparent);
  opacity:.7;
}
.rx-card::after {
  content:""; position:absolute; top:-40%; right:-10%; width:520px; height:520px; border-radius:50%;
  background:radial-gradient(circle, rgba(4,223,131,0.10), transparent 62%);
  pointer-events:none; z-index:0;
}
.rx-card > * { position:relative; z-index:1; }

/* ---- identity row ---- */
.rx-identity { position:relative; display:flex; align-items:center; gap:18px; flex-wrap:wrap; }
.rx-identicon {
  width:64px; height:64px; flex:0 0 auto; border-radius:16px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.55), transparent 20%),
    conic-gradient(from 200deg, #04df83, #0a7d52, #0bf593, #03b86b, #04df83);
  box-shadow:0 0 44px rgba(4,223,131,0.22), inset 0 0 26px rgba(255,255,255,0.2);
}
.rx-id-meta { min-width:0; flex:1; }
.rx-identity .rx-eyebrow { color:var(--rx-brand-green); letter-spacing:.18em; font:600 10px var(--rx-font-display); text-transform:uppercase; margin:0; }
.rx-identity h2 { margin:5px 0 0; font:500 24px var(--rx-font-mono); letter-spacing:-0.01em; color:#fff; }
.rx-identity > div > p#passportUpdated, .rx-id-meta p#passportUpdated { margin:6px 0 0; color:var(--rx-ink-3); font:400 12px var(--rx-font-text); }
.rx-id-meta p { margin:6px 0 0; color:var(--rx-ink-3); font:400 12px var(--rx-font-text); }
.rx-id-actions { display:inline-flex; align-items:center; gap:10px; margin-left:auto; flex-wrap:wrap; }

.rx-rank-pill {
  padding:9px 16px; border:1px solid var(--rx-brand-green); color:var(--rx-brand-green);
  border-radius:999px; background:rgba(4,223,131,0.08);
  font:700 12px var(--rx-font-display); text-transform:uppercase; letter-spacing:.14em;
}
.rx-og-pill {
  padding:9px 14px; border:1px solid var(--rx-line); color:var(--rx-ink-2);
  border-radius:999px; background:var(--rx-surface-2);
  font:700 12px var(--rx-font-mono); letter-spacing:.06em; white-space:nowrap;
}
.rx-mint-btn {
  height: 38px; padding: 0 18px; border: 1px solid var(--rx-brand-green); border-radius: 999px;
  background: var(--rx-brand-green); color: var(--rx-brand-ink);
  font: 600 12px var(--rx-font-display); text-transform: uppercase; letter-spacing: 0.14em; cursor: pointer;
  transition: filter var(--rx-dur-fast) var(--rx-ease), transform var(--rx-dur-fast) var(--rx-ease);
}
.rx-mint-btn:hover { filter: brightness(1.08); }
.rx-mint-btn:active { transform: translateY(1px); }
.rx-mint-btn:disabled { opacity: 0.6; cursor: default; }
.rx-share {
  height:38px; padding:0 18px; border:1px solid rgba(255,255,255,0.28); border-radius:999px;
  background:transparent; color:#fff; font:600 12px var(--rx-font-display);
  text-transform:uppercase; letter-spacing:.14em; cursor:pointer;
  transition: background var(--rx-dur-fast) var(--rx-ease);
}
.rx-share:hover { background:rgba(255,255,255,0.08); }

/* ── Follow CTA — the single green accent in the action row. Eye-catching for a
   newcomer (a calm breathing glow + a live "tracking" pulse) but refined enough that
   it never fights the Score. Click deep-links into the Telegram bot, which follows the
   wallet on the spot. 38px tall to sit level with Share Card. */
.rx-follow-cta {
  position:relative; display:inline-flex; align-items:center; gap:8px;
  height:38px; padding:0 17px 0 14px; border-radius:999px;
  background:linear-gradient(180deg,#0bf593 0%, var(--rx-brand-green) 52%, var(--rx-brand-green-dim) 100%);
  color:var(--rx-brand-ink); text-decoration:none; white-space:nowrap; cursor:pointer;
  border:1px solid rgba(11,245,147,.55);
  transition:transform .18s var(--rx-ease), box-shadow .25s ease, filter .2s ease;
  animation:rx-follow-breathe 3.6s ease-in-out infinite;
}
@keyframes rx-follow-breathe {
  0%,100% { box-shadow:0 0 0 0 rgba(4,223,131,0), 0 6px 16px -7px rgba(4,223,131,.55); }
  50%     { box-shadow:0 0 0 5px rgba(4,223,131,.10), 0 9px 22px -7px rgba(4,223,131,.7); }
}
.rx-follow-cta:hover { transform:translateY(-1px); filter:brightness(1.05) saturate(1.06);
  box-shadow:0 0 0 6px rgba(4,223,131,.14), 0 14px 32px -8px rgba(4,223,131,.9); animation-play-state:paused; }
.rx-follow-cta:active { transform:translateY(0); }
.rx-follow-cta:focus-visible { outline:2px solid #0bf593; outline-offset:3px; }
.rx-follow-label { text-transform:uppercase; letter-spacing:.12em; font:700 11.5px/1 var(--rx-font-display); }
.rx-follow-eye { position:relative; display:inline-flex; width:17px; height:17px; }
.rx-follow-eye svg { width:17px; height:17px; display:block; }
.rx-follow-live { position:absolute; right:-3px; top:-2px; width:6px; height:6px; border-radius:50%;
  background:var(--rx-brand-ink); box-shadow:0 0 0 1.5px var(--rx-brand-green); }
.rx-follow-live::after { content:""; position:absolute; inset:-1px; border-radius:50%;
  border:1.5px solid var(--rx-brand-ink); animation:rx-follow-ping 1.9s ease-out infinite; }
@keyframes rx-follow-ping { 0% { transform:scale(.6); opacity:.7; } 80%,100% { transform:scale(2.4); opacity:0; } }
.rx-follow-tip {
  position:absolute; top:calc(100% + 11px); right:0; width:270px; padding:12px 14px; text-align:left;
  background:linear-gradient(180deg,#0a2a22, var(--rx-brand-ink));
  border:1px solid rgba(4,223,131,.3); border-radius:14px; box-shadow:0 20px 44px -14px rgba(0,0,0,.75);
  color:#bfe0d4; font:500 12px/1.5 var(--rx-font-text); letter-spacing:0;
  white-space:normal;  /* override the button's nowrap so the tip text wraps, not clips */
  opacity:0; transform:translateY(-6px); pointer-events:none; z-index:40;
  transition:opacity .2s ease, transform .2s ease;
}
.rx-follow-tip b { display:block; margin-bottom:4px; color:#fff; font:700 13px/1.3 var(--rx-font-display); }
.rx-follow-tip em { font-style:normal; font-weight:700; color:var(--rx-brand-green); }
.rx-follow-tip::before { content:""; position:absolute; bottom:100%; right:20px;
  border:7px solid transparent; border-bottom-color:rgba(4,223,131,.3); }
.rx-follow-cta:hover .rx-follow-tip, .rx-follow-cta:focus-visible .rx-follow-tip { opacity:1; transform:translateY(0); }
@media (hover: none) { .rx-follow-tip { display:none; } }
@media (max-width: 560px) {
  .rx-follow-tip { right:auto; left:0; width:min(74vw,270px); }
  .rx-follow-tip::before { right:auto; left:20px; }
}
@media (prefers-reduced-motion: reduce) {
  .rx-follow-cta { animation:none; }
  .rx-follow-live::after { animation:none; }
}
.rx-mint-status {
  margin-top: 14px; padding: 11px 14px; border: 1px solid var(--rx-line); border-radius: 12px;
  background: rgba(255,255,255,0.03); color: var(--rx-ink-2); font: 400 13px var(--rx-font-text);
}
.rx-mint-status.ok { border-color: rgba(4,223,131,0.45); color: var(--rx-brand-green); }
.rx-mint-status.error { border-color: rgba(255,107,120,0.45); color: var(--rx-red); }
.rx-mint-status a { color: inherit; text-decoration: none; font-weight: 700; }

/* ---- featured score band ---- */
.rx-hero-band {
  display:grid; grid-template-columns: minmax(230px, 0.85fr) 1.7fr; gap:14px; margin-top:26px;
}
.rx-bigscore {
  position:relative; overflow:hidden; padding:24px 26px; border-radius:18px;
  border:1px solid rgba(4,223,131,0.28);
  background:
    radial-gradient(130% 120% at 0% 0%, rgba(4,223,131,0.18), transparent 60%),
    linear-gradient(180deg, rgba(4,223,131,0.06), rgba(4,223,131,0.01));
  display:flex; flex-direction:column; justify-content:center; gap:2px;
}
.rx-bigscore::after {
  content:""; position:absolute; right:-30px; bottom:-40px; width:160px; height:160px; border-radius:50%;
  background:radial-gradient(circle, rgba(4,223,131,0.18), transparent 64%); pointer-events:none;
}
.rx-bigscore-cap { color:var(--rx-brand-green); font:600 11px var(--rx-font-display); text-transform:uppercase; letter-spacing:.18em; }
.rx-bigscore b#passportScore {
  display:block; font:600 76px/0.92 var(--rx-font-display); color:#fff; letter-spacing:-0.035em;
  margin:8px 0 2px; text-shadow:0 0 36px rgba(4,223,131,0.30);
}
.rx-bigscore-sub { color:var(--rx-ink-3); font:500 12px var(--rx-font-mono); letter-spacing:.02em; }

.rx-bigstats { display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:12px; }
.rx-stat {
  min-width:0; padding:18px 18px 20px; border:1px solid var(--rx-line); border-radius:16px;
  background:var(--rx-surface-1); display:flex; flex-direction:column; justify-content:flex-end; gap:10px;
}
.rx-stat span { color:var(--rx-ink-3); font:600 10px var(--rx-font-display); text-transform:uppercase; letter-spacing:.14em; }
.rx-stat b { min-width:0; white-space:nowrap; font:500 clamp(17px, 1.55vw, 23px) var(--rx-font-display); letter-spacing:-0.015em; color:#fff; }
.positive { color:var(--rx-brand-green) !important; }
.negative { color:var(--rx-red) !important; }

/* ---- tier ladder progress ---- */
.rx-tier-progress { margin-top:22px; padding-top:20px; border-top:1px solid var(--rx-line-soft); }
.rx-tp-head { display:flex; align-items:baseline; justify-content:space-between; gap:12px; margin-bottom:9px; }
.rx-tp-cur, .rx-tp-nxt { font:700 12px var(--rx-font-display); letter-spacing:0.1em; text-transform:uppercase; }
.rx-tp-nxt { color:var(--rx-ink-4); }
.rx-tp-to { font:400 12.5px var(--rx-font-text); color:var(--rx-ink-2); white-space:nowrap; }
.rx-tp-to b { color:#fff; font-weight:700; }
.rx-tp-track { position:relative; height:10px; border-radius:6px; background:rgba(255,255,255,0.07); overflow:hidden; box-shadow:inset 0 1px 2px rgba(0,0,0,0.4); }
.rx-tp-track i {
  display:block; height:100%; border-radius:6px; position:relative;
  box-shadow:0 0 16px rgba(4,223,131,0.5); transition:width .9s var(--rx-ease);
}
.rx-tp-track i::after {
  content:""; position:absolute; inset:0; border-radius:6px;
  background:linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  background-size:200% 100%; animation:tpShimmer 2.4s linear infinite;
}

/* ============================================================ GRID PANELS */
.rx-grid { display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:14px; margin-top:14px; }
.rx-panel { padding:24px; }
.rx-panel h3 { margin:0; font:600 17px var(--rx-font-display); color:#fff; letter-spacing:-0.005em; }
.rx-panel-sub { margin:5px 0 0; color:var(--rx-ink-3); font:400 12.5px var(--rx-font-text); }
.rx-panel-head-wrap { margin-bottom:16px; }
.rx-ocflag { display:inline-block; margin-left:8px; padding:2px 8px; border-radius:999px; font:600 10px/1.4 var(--rx-font-display); letter-spacing:.04em; color:var(--rx-brand-green); background:rgba(4,223,131,0.12); border:1px solid rgba(4,223,131,0.35); vertical-align:middle; }

/* JS key/value rows */
.rx-page .row, .rx-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items:center;
  padding: 11px 0; border-bottom: 1px solid var(--rx-line-soft);
  color: var(--rx-ink-2); font: 400 14px var(--rx-font-text);
}
.rx-page .row:last-child, .rx-row:last-child { border-bottom: 0; }
.rx-page .row > span { min-width: 0; overflow-wrap: anywhere; }
.rx-page .row b, .rx-row b {
  color: #fff; text-align: right; font: 500 14px var(--rx-font-mono); letter-spacing:-0.01em; overflow-wrap: anywhere;
}

/* ---- badges & goals ---- */
#passportBadges { display:grid; grid-template-columns:repeat(auto-fill, minmax(150px, 1fr)); gap:10px; }
.rx-badge {
  position:relative; display:flex; align-items:center; gap:12px; padding:12px 14px;
  border:1px solid rgba(4,223,131,0.30); border-radius:13px;
  background: radial-gradient(120% 180% at 0% 50%, rgba(4,223,131,0.22), rgba(4,223,131,0.03) 50%, transparent 74%);
  transition: border-color var(--rx-dur-fast) var(--rx-ease), transform var(--rx-dur-fast) var(--rx-ease);
}
.rx-badge:hover { border-color:rgba(4,223,131,0.65); transform:translateY(-2px); }
.rx-badge-medal {
  flex:0 0 auto; width:34px; height:34px; display:grid; place-items:center; border-radius:10px;
  background:linear-gradient(150deg, #0bf593, #04df83 55%, #03b86b);
  box-shadow:0 5px 14px rgba(4,223,131,0.3), inset 0 1px 0 rgba(255,255,255,0.45);
}
.rx-badge-medal svg { width:19px; height:19px; }
.rx-badge > b { font:600 13px var(--rx-font-display); color:#fff; letter-spacing:-0.005em; line-height:1.2; }
/* earned check chip */
.rx-badge:not(.locked)::after {
  content:""; position:absolute; top:9px; right:9px; width:7px; height:7px; border-radius:50%;
  background:var(--rx-brand-green); box-shadow:0 0 8px rgba(4,223,131,0.8);
}
/* locked goals */
.rx-badge.locked { border-color:rgba(255,255,255,0.09); border-style:dashed; background:rgba(255,255,255,0.015); }
.rx-badge.locked .rx-badge-medal { background:linear-gradient(150deg,#3a4448,#2a3236); filter:grayscale(1) brightness(0.8); box-shadow:none; }
.rx-badge.locked .rx-badge-medal svg path[fill="#04161D"], .rx-badge.locked .rx-badge-medal svg rect[fill="#04161D"], .rx-badge.locked .rx-badge-medal svg text { opacity:0.55; }
.rx-badge.locked > b { color:var(--rx-ink-3); }

/* ----- badge "how to earn" tooltip (hover / keyboard focus) ----- */
.rx-badge { position:relative; }
.rx-badge-tip {
  position:absolute; left:50%; bottom:calc(100% + 10px); transform:translate(-50%,5px);
  width:max-content; max-width:220px; white-space:normal; text-align:center;
  padding:9px 12px; border-radius:10px; background:#0b181c; border:1px solid rgba(4,223,131,0.32);
  color:#dceef0; font:500 12px/1.45 var(--rx-font-text); letter-spacing:0;
  box-shadow:0 14px 34px rgba(0,0,0,0.55);
  opacity:0; pointer-events:none; z-index:40;
  transition:opacity .14s var(--rx-ease), transform .14s var(--rx-ease);
}
.rx-badge-tip::after {
  content:""; position:absolute; top:100%; left:50%; transform:translateX(-50%);
  border:6px solid transparent; border-top-color:#0b181c;
}
.rx-badge:hover .rx-badge-tip, .rx-badge:focus-visible .rx-badge-tip, .rx-badge:focus-within .rx-badge-tip {
  opacity:1; transform:translate(-50%,0);
}
.rx-badge:focus-visible { outline:2px solid rgba(4,223,131,0.5); outline-offset:2px; }
@media (prefers-reduced-motion: reduce) { .rx-badge-tip { transition:opacity .14s ease; } }

/* ----- open positions (live, by address) ----- */
.rx-pos-count { color:var(--rx-ink-3); font:600 13px var(--rx-font-display); margin-left:4px; }
.rx-pos-list { display:grid; grid-template-columns:repeat(auto-fill, minmax(238px,1fr)); gap:12px; margin-top:4px; }
.rx-pos {
  position:relative; overflow:hidden; padding:15px 16px 14px 18px; border-radius:14px;
  border:1px solid var(--rx-line-soft); background:rgba(255,255,255,0.022);
}
.rx-pos::before { content:""; position:absolute; left:0; top:12px; bottom:12px; width:3px; border-radius:0 3px 3px 0; }
.rx-pos.long::before  { background:var(--rx-brand-green); box-shadow:0 0 12px var(--rx-brand-green); }
.rx-pos.short::before { background:#ff5b6b; box-shadow:0 0 12px #ff5b6b; }
.rx-pos-top { display:flex; align-items:center; gap:10px; margin-bottom:13px; }
.rx-pos-mkt { font:700 15px var(--rx-font-display); color:#fff; margin-right:auto; letter-spacing:-0.01em; }
.rx-pos-side { font:700 10px var(--rx-font-display); letter-spacing:.08em; padding:4px 9px; border-radius:6px; }
.rx-pos-side.long  { color:var(--rx-brand-green); background:rgba(4,223,131,0.13); }
.rx-pos-side.short { color:#ff5b6b; background:rgba(255,91,107,0.13); }
.rx-pos-lev { font:700 11px var(--rx-font-mono); color:var(--rx-ink-2); border:1px solid var(--rx-line); padding:3px 8px; border-radius:6px; }
.rx-pos-grid { display:grid; grid-template-columns:1fr 1fr; gap:9px 14px; }
.rx-pos-grid > div { display:flex; flex-direction:column; gap:2px; min-width:0; }
.rx-pos-grid span { color:var(--rx-ink-3); font:400 11px var(--rx-font-text); }
.rx-pos-grid b { color:#eaf6f8; font:600 13.5px var(--rx-font-mono); letter-spacing:-0.01em; overflow-wrap:anywhere; }
.rx-pos-grid b.positive { color:var(--rx-brand-green); }
.rx-pos-grid b.negative { color:#ff5b6b; }
.rx-pos-empty { padding:18px; text-align:center; color:var(--rx-ink-3); font:400 13px var(--rx-font-text); border:1px dashed var(--rx-line-soft); border-radius:12px; }
.rx-badge.locked:hover { border-color:rgba(255,255,255,0.22); transform:translateY(-2px); }
.rx-badge.locked::after {
  content:"🔒"; position:absolute; top:7px; right:9px; font-size:9px; opacity:0.5;
}

/* ---- score breakdown bars + tip ---- */
.rx-levelup-tip {
  position:relative; margin:0 0 16px; padding:13px 15px 13px 16px; border-radius:12px;
  background:rgba(4,223,131,0.09); border:1px solid rgba(4,223,131,0.26);
  font:400 13px/1.5 var(--rx-font-text); color:var(--rx-ink-1); overflow:hidden;
  font-variant-numeric: lining-nums tabular-nums; letter-spacing:0.01em;
}
.rx-levelup-tip::before { content:""; position:absolute; left:0; top:0; bottom:0; width:3px; background:var(--rx-brand-green); }
.rx-levelup-tip b { color:var(--rx-brand-green); font-weight:700; }
.rx-levelup-tip .rx-lu-ic { margin-right:5px; }
.rx-levelup-tip.hidden { display:none; }
.rx-bd { margin:0 0 14px; }
.rx-bd:last-child { margin-bottom:0; }
.rx-bd[data-tip] { outline:none; }
.rx-bd-top { display:flex; justify-content:space-between; align-items:baseline; margin-bottom:7px; }
.rx-bd-top span { color:var(--rx-ink-2); font:400 13px var(--rx-font-text); }
.rx-bd-i {
  display:inline-flex; align-items:center; justify-content:center; width:14px; height:14px;
  margin-left:7px; border-radius:50%; border:1px solid var(--rx-ink-4); color:var(--rx-ink-3);
  font:600 9px/1 var(--rx-font-display); vertical-align:1px; transition:color .15s, border-color .15s;
}
.rx-bd[data-tip]:hover .rx-bd-i, .rx-bd[data-tip]:focus-visible .rx-bd-i { color:var(--rx-brand-green); border-color:var(--rx-brand-green); }
.rx-bd-top b { color:#fff; font:500 13px var(--rx-font-mono); }
.rx-bd-track { height:7px; border-radius:5px; background:rgba(255,255,255,0.07); overflow:hidden; box-shadow:inset 0 1px 2px rgba(0,0,0,0.35); }
.rx-bd-track i { display:block; height:100%; border-radius:5px; background:linear-gradient(90deg,#03b86b,#04df83 60%,#0bf593); box-shadow:0 0 12px rgba(4,223,131,0.4); transition:width .8s var(--rx-ease); }

/* ============================================================ LEADERBOARD */
.rx-leaderboard { margin-top:18px; margin-bottom:24px; }
.rx-panel-head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:8px; }
.rx-panel-head h3 { margin:0; font:600 22px var(--rx-font-display); letter-spacing:-0.01em; }
.rx-panel-head .rx-panel-sub { margin-top:6px; }
.rx-actions { display:inline-flex; align-items:center; gap:10px; flex-wrap:wrap; justify-content:flex-end; }
.rx-actions .meta { color:var(--rx-ink-3); font:400 12px var(--rx-font-text); }
.rx-actions button {
  height:38px; padding:0 18px; border:1px solid rgba(255,255,255,0.24); border-radius:999px;
  background:transparent; color:#fff; font:600 11px var(--rx-font-display);
  text-transform:uppercase; letter-spacing:.16em; cursor:pointer;
  transition: background var(--rx-dur-fast) var(--rx-ease), border-color var(--rx-dur-fast) var(--rx-ease);
}
.rx-actions button:hover { background:rgba(255,255,255,0.08); border-color:rgba(255,255,255,0.4); }
.rx-actions button.solid { background:var(--rx-brand-green); color:var(--rx-brand-ink); border-color:var(--rx-brand-green); }
.rx-actions button.solid:hover { filter:brightness(1.08); background:var(--rx-brand-green); }

#leaderboardRows { display:flex; flex-direction:column; gap:7px; margin-top:16px; }
.rx-lb-head, .rx-lb-row {
  display:grid; grid-template-columns: 58px minmax(0,1fr) 116px minmax(120px,auto) 70px;
  align-items:center; gap:16px;
}
.rx-lb-head {
  padding:4px 18px 12px; font:600 10px var(--rx-font-display); letter-spacing:0.14em;
  text-transform:uppercase; color:var(--rx-ink-4); border-bottom:1px solid var(--rx-line-soft); margin-bottom:2px;
}
.rx-lb-head span:nth-child(4), .rx-lb-head span:nth-child(5), .rx-lb-vol, .rx-lb-score { text-align:right; }
.rx-lb-head span:nth-child(3) { text-align:left; }

.rx-lb-row {
  position:relative; overflow:hidden;
  padding:14px 18px; border-radius:14px; cursor:pointer;
  border:1px solid var(--rx-line-soft);
  background:linear-gradient(100deg, rgba(255,255,255,0.035), rgba(255,255,255,0.012) 55%);
  transition: background var(--rx-dur-fast) var(--rx-ease), border-color var(--rx-dur-fast) var(--rx-ease), transform var(--rx-dur-fast) var(--rx-ease), box-shadow var(--rx-dur-fast) var(--rx-ease);
}
.rx-lb-row:hover {
  transform:translateX(4px); border-color:rgba(4,223,131,0.45);
  background:linear-gradient(100deg, rgba(4,223,131,0.08), rgba(255,255,255,0.02) 60%);
  box-shadow:0 10px 34px rgba(4,223,131,0.12);
}
.rx-lb-row:focus-visible { outline:2px solid rgba(4,223,131,0.6); outline-offset:2px; }

/* your row */
.rx-lb-row.current {
  border-color:rgba(4,223,131,0.5);
  background:linear-gradient(100deg, rgba(4,223,131,0.14), rgba(4,223,131,0.03) 60%);
}
.rx-lb-row.current::before {
  content:""; position:absolute; left:0; top:11px; bottom:11px; width:3px;
  border-radius:0 3px 3px 0; background:var(--rx-brand-green); box-shadow:0 0 14px var(--rx-brand-green);
}

/* rank cell */
.rx-lb-rank { font:700 14px var(--rx-font-mono); color:var(--rx-ink-3); text-align:center; }

/* ----- PODIUM: top-3 get place-colored cards + medallions ----- */
.rx-lb-row.top { padding:17px 18px; }
.rx-lb-row.top .rx-lb-rank {
  width:40px; height:40px; justify-self:center; display:grid; place-items:center;
  border-radius:50%; font-size:21px; line-height:1; position:relative;
  background:radial-gradient(circle at 50% 34%, rgba(255,255,255,0.16), rgba(255,255,255,0.02) 62%);
}
/* on the podium, the rank-change arrow is a small pill UNDER the medallion so it never
   pushes the medal off-centre inside the circle (it used to land as a 2nd grid item) */
.rx-lb-row.top .rx-d {
  position:absolute; left:50%; bottom:-10px; transform:translateX(-50%); margin:0;
  font-size:9px; line-height:1; padding:2px 6px; border-radius:999px; white-space:nowrap;
  background:rgba(4,22,29,0.92); border:1px solid var(--rx-line-soft);
}
/* 1st — gold */
.rx-lb-row.top:nth-child(2) {
  background:linear-gradient(100deg, rgba(243,193,75,0.16), rgba(255,255,255,0.02) 52%);
  border-color:rgba(243,193,75,0.4);
}
.rx-lb-row.top:nth-child(2) .rx-lb-rank { box-shadow:inset 0 0 0 1.5px #f3c14b, 0 0 22px rgba(243,193,75,0.5); }
.rx-lb-row.top:nth-child(2):hover { box-shadow:0 12px 38px rgba(243,193,75,0.18); border-color:rgba(243,193,75,0.6); }
/* 2nd — silver */
.rx-lb-row.top:nth-child(3) {
  background:linear-gradient(100deg, rgba(185,196,204,0.13), rgba(255,255,255,0.02) 54%);
  border-color:rgba(185,196,204,0.34);
}
.rx-lb-row.top:nth-child(3) .rx-lb-rank { box-shadow:inset 0 0 0 1.5px #b9c4cc, 0 0 18px rgba(185,196,204,0.42); }
/* 3rd — bronze */
.rx-lb-row.top:nth-child(4) {
  background:linear-gradient(100deg, rgba(192,132,87,0.13), rgba(255,255,255,0.02) 54%);
  border-color:rgba(192,132,87,0.34);
}
.rx-lb-row.top:nth-child(4) .rx-lb-rank { box-shadow:inset 0 0 0 1.5px #c08457, 0 0 18px rgba(192,132,87,0.42); }
/* leader gets a slow sheen sweep */
.rx-lb-row.top:nth-child(2)::after {
  content:""; position:absolute; inset:0; pointer-events:none;
  background:linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.10) 47%, transparent 62%);
  background-size:240% 100%; animation:lbSheen 5.5s ease-in-out infinite;
}

.rx-lb-addr { font:500 15px var(--rx-font-mono); color:#fff; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; letter-spacing:-0.01em; }
.rx-lb-row.top .rx-lb-addr { font-size:16px; }
.rx-lb-tier {
  justify-self:start; font:700 10px var(--rx-font-display); letter-spacing:0.08em; text-transform:uppercase;
  padding:5px 12px; border:1px solid; border-radius:20px; white-space:nowrap;
  box-shadow:0 0 16px -6px currentColor;
}
.rx-lb-vol { font:400 13px var(--rx-font-mono); color:var(--rx-ink-2); white-space:nowrap; }
.rx-lb-score { font:700 19px var(--rx-font-display); letter-spacing:-0.01em; text-shadow:0 0 18px currentColor; }
.rx-lb-row.top .rx-lb-score { font-size:23px; }
#leaderboardRows .row { cursor: pointer; border-radius: 10px; padding: 12px 10px; }
#leaderboardRows .row:hover { background: rgba(4, 223, 131, 0.06); }

/* ----- leaderboard: newcomer explainers + controls ----- */
.rx-lb-help-btn {
  align-self:flex-start; height:34px; padding:0 14px; border:1px solid var(--rx-line);
  border-radius:999px; background:transparent; color:var(--rx-ink-2); white-space:nowrap;
  font:600 11px var(--rx-font-display); letter-spacing:.04em; cursor:pointer;
  transition: background var(--rx-dur-fast) var(--rx-ease), border-color var(--rx-dur-fast) var(--rx-ease), color var(--rx-dur-fast) var(--rx-ease);
}
.rx-lb-help-btn:hover { color:#fff; border-color:rgba(4,223,131,0.5); background:rgba(4,223,131,0.06); }
.rx-lb-help-btn[aria-expanded="true"] { color:var(--rx-brand-green); border-color:rgba(4,223,131,0.5); }

.rx-lb-help { margin:4px 0 14px; padding:16px 18px; border:1px solid var(--rx-line-soft); border-radius:14px; background:rgba(255,255,255,0.02); }
.rx-lb-help p { margin:0 0 10px; color:var(--rx-ink-2); font:400 13.5px/1.6 var(--rx-font-text); }
.rx-lb-help p:last-child { margin-bottom:0; }
.rx-lb-help b { color:#eaf6f8; font-weight:700; }
.rx-lb-help-cta { color:var(--rx-ink-3) !important; font-size:12.5px !important; }
.rx-lb-help-cta a { color:var(--rx-brand-green); text-decoration:none; border-bottom:1px solid rgba(4,223,131,0.4); }

.rx-lb-legend { display:flex; flex-wrap:wrap; gap:8px 10px; margin:12px 0; }
.rx-lb-leg {
  display:inline-flex; align-items:center; gap:7px; padding:5px 11px; border-radius:999px;
  border:1px solid color-mix(in srgb, var(--c) 38%, transparent);
  background:color-mix(in srgb, var(--c) 9%, transparent);
  color:var(--c); font:700 10.5px var(--rx-font-display); letter-spacing:.06em; text-transform:uppercase;
}
.rx-lb-leg i { width:8px; height:8px; border-radius:50%; background:var(--c); box-shadow:0 0 8px var(--c); }
.rx-lb-leg em { color:var(--rx-ink-3); font-style:normal; font-weight:600; }

.rx-lb-controls { display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap; margin:14px 0 4px; }
.rx-lb-tabs { display:inline-flex; gap:4px; padding:4px; border:1px solid var(--rx-line-soft); border-radius:999px; background:rgba(255,255,255,0.02); }
.rx-lb-tabs button {
  height:32px; padding:0 14px; border:0; border-radius:999px; background:transparent;
  color:var(--rx-ink-3); font:600 12px var(--rx-font-display); cursor:pointer; white-space:nowrap;
  transition: background var(--rx-dur-fast) var(--rx-ease), color var(--rx-dur-fast) var(--rx-ease);
}
.rx-lb-tabs button:hover { color:#fff; }
.rx-lb-tabs button.active { background:var(--rx-brand-green); color:var(--rx-brand-ink); }

.rx-lb-find { display:inline-flex; gap:8px; align-items:center; }
.rx-lb-find input {
  width:250px; max-width:46vw; height:36px; padding:0 14px; border:1px solid var(--rx-line);
  border-radius:999px; background:rgba(255,255,255,0.03); color:#fff; outline:none;
  font:500 13px var(--rx-font-mono); transition: border-color var(--rx-dur-fast) var(--rx-ease);
}
.rx-lb-find input::placeholder { color:var(--rx-ink-4); font-family:var(--rx-font-text); }
.rx-lb-find input:focus { border-color:rgba(4,223,131,0.55); }
.rx-lb-find button {
  height:36px; padding:0 16px; border:1px solid var(--rx-brand-green); border-radius:999px;
  background:var(--rx-brand-green); color:var(--rx-brand-ink); white-space:nowrap;
  font:700 12px var(--rx-font-display); cursor:pointer; transition: filter var(--rx-dur-fast) var(--rx-ease);
}
.rx-lb-find button:hover { filter:brightness(1.08); }

.rx-lb-find-result { margin:10px 0 2px; padding:11px 15px; border-radius:12px; border:1px solid var(--rx-line-soft); background:rgba(255,255,255,0.025); color:var(--rx-ink-2); font:400 13px var(--rx-font-text); }
.rx-lb-find-result.ok { border-color:rgba(4,223,131,0.4); background:rgba(4,223,131,0.07); color:#eaf6f8; }
.rx-lb-find-result.error { border-color:rgba(255,91,107,0.4); background:rgba(255,91,107,0.07); color:#ffd7db; }
.rx-lb-find-result b { color:#fff; }
.rx-lb-find-result a { color:var(--rx-brand-green); text-decoration:none; }
.rx-lb-jump { margin-left:6px; height:28px; padding:0 12px; border:1px solid rgba(4,223,131,0.5); border-radius:999px; background:transparent; color:var(--rx-brand-green); font:700 11px var(--rx-font-display); cursor:pointer; }
.rx-lb-jump:hover { background:rgba(4,223,131,0.1); }

.rx-lb-empty { padding:22px 18px; text-align:center; color:var(--rx-ink-3); font:400 13.5px var(--rx-font-text); border:1px dashed var(--rx-line-soft); border-radius:14px; }
.rx-lb-vol.positive { color:var(--rx-brand-green); }
.rx-lb-vol.negative { color:#ff5b6b; }
.rx-lb-head { color:var(--rx-ink-3); }   /* brighter column header for readability */

/* ----- profile loading state (immediate feedback on row click / search) ----- */
.rx-loading {
  display:flex; align-items:center; gap:16px; margin:18px 0; padding:20px 22px;
  border:1px solid rgba(4,223,131,0.28); border-radius:16px;
  background:linear-gradient(100deg, rgba(4,223,131,0.07), rgba(255,255,255,0.02) 60%);
}
.rx-loading-spin {
  width:30px; height:30px; flex:0 0 auto; border-radius:50%;
  border:3px solid rgba(4,223,131,0.18); border-top-color:var(--rx-brand-green);
  animation:rxspin 0.8s linear infinite;
}
@keyframes rxspin { to { transform:rotate(360deg); } }
.rx-loading-text { display:flex; flex-direction:column; gap:3px; min-width:0; }
.rx-loading-text b { color:#eaf6f8; font:700 15px var(--rx-font-display); }
.rx-loading-text span { color:var(--rx-ink-3); font:400 12.5px var(--rx-font-text); }
/* clicked leaderboard row pulses while its passport loads */
.rx-lb-row.loading { border-color:rgba(4,223,131,0.55); animation:rxRowPulse 1.1s ease-in-out infinite; }
@keyframes rxRowPulse {
  0%,100% { background:linear-gradient(100deg, rgba(4,223,131,0.07), rgba(255,255,255,0.02) 60%); }
  50%     { background:linear-gradient(100deg, rgba(4,223,131,0.18), rgba(255,255,255,0.03) 60%); }
}
@media (prefers-reduced-motion: reduce) {
  .rx-loading-spin { animation-duration:1.6s; }
  .rx-lb-row.loading { animation:none; background:linear-gradient(100deg, rgba(4,223,131,0.14), rgba(255,255,255,0.03) 60%); }
}

@media (max-width:640px) {
  .rx-lb-controls { flex-direction:column; align-items:stretch; }
  .rx-lb-find { width:100%; }
  .rx-lb-find input { flex:1; width:auto; max-width:none; }
  .rx-lb-tabs { justify-content:space-between; }
}

/* pager */
.leaderboard-pager { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-top:18px; padding-top:16px; border-top:1px solid var(--rx-line-soft); }
.leaderboard-pager > span { color:var(--rx-ink-3); font:400 12px var(--rx-font-text); }
.leaderboard-page-buttons { display:inline-flex; align-items:center; gap:5px; flex-wrap:wrap; }
.leaderboard-page-buttons button {
  min-width:34px; height:34px; padding:0 10px; border:1px solid var(--rx-line); border-radius:9px;
  background:transparent; color:var(--rx-ink-2); font:600 12px var(--rx-font-display); cursor:pointer;
  transition: background var(--rx-dur-fast) var(--rx-ease), color var(--rx-dur-fast) var(--rx-ease);
}
.leaderboard-page-buttons button:hover:not(:disabled) { background:rgba(255,255,255,0.06); color:#fff; }
.leaderboard-page-buttons button.active { background:var(--rx-brand-green); border-color:var(--rx-brand-green); color:var(--rx-brand-ink); }
.leaderboard-page-buttons button:disabled { opacity:0.35; cursor:default; }
.leaderboard-page-buttons em { color:var(--rx-ink-4); font-style:normal; padding:0 2px; }

/* ============================================================ RESPONSIVE */
@media (max-width:1000px) {
  .rx-scene { width: 64vw; height: 64vw; }
  .rx-hero-side { width: 250px; }
  .rx-hero-band { grid-template-columns:1fr; }
  .rx-bigstats { grid-template-columns:repeat(4,1fr); }
}
@media (max-width:760px) {
  .rx-page { width:min(100% - 24px, 720px); padding-top:24px; }
  .rx-topnav { grid-template-columns: auto 1fr auto; padding: 0 16px; }
  .rx-topnav-left .rx-menu b { display:none; }
  .rx-topnav-right .rx-topnav-link { display:none; }
  .rx-sypher { display:none; }
  .rx-hero { height: auto; min-height:0; padding-bottom:40px; }
  .rx-hero-content { position:static; padding-top:40vh; }
  .rx-scene { position:absolute; top:6%; width: 86vw; height: 70vw; opacity:.9; }
  .rx-hero-foot { grid-template-columns: 1fr; }
  .rx-hero-side { width: 100%; }
  .rx-grid { grid-template-columns:1fr; }
  .rx-bigstats { grid-template-columns:repeat(2,1fr); }
  .rx-identity { flex-wrap:wrap; }
  .rx-id-actions { margin-left:0; width:100%; }
  .rx-panel-head { flex-direction:column; align-items:flex-start; }
  .rx-actions { justify-content:flex-start; }
  .rx-bigscore b#passportScore { font-size:60px; }
}
@media (max-width:560px) {
  .rx-lb-head, .rx-lb-row { grid-template-columns:44px minmax(0,1fr) auto 58px; gap:10px; }
  .rx-lb-vol, .rx-lb-head span:nth-child(4) { display:none; }
  .rx-bigstats { grid-template-columns:1fr 1fr; }
}

/* ============================================================ MOTION */
@keyframes ppFloat {
  0%, 100% { transform: rotateY(-20deg) rotateX(7deg) translateY(0); }
  50%      { transform: rotateY(-13deg) rotateX(5deg) translateY(-14px); }
}
@keyframes beamPulse { 0%, 100% { opacity:.6; } 50% { opacity:1; } }
@keyframes tpShimmer { 0% { background-position:200% 0; } 100% { background-position:-200% 0; } }
@keyframes lbSheen { 0%, 100% { background-position:160% 0; } 50% { background-position:-60% 0; } }

.hidden { display: none !important; }

/* scroll reveal (Apple-style, scroll-linked via --p 0→1) */
.rx-reveal {
  --p: 0;
  opacity: var(--p);
  transform: translateY(calc((1 - var(--p)) * 42px)) scale(calc(0.97 + var(--p) * 0.03));
  filter: blur(calc((1 - var(--p)) * 6px));
  transition: opacity 0.12s linear, transform 0.12s linear, filter 0.12s linear;
  will-change: opacity, transform, filter;
}
.no-reveal .rx-reveal { opacity: 1 !important; transform: none !important; filter: none !important; }
@media (prefers-reduced-motion: reduce) {
  .rx-passport, .rx-beam, .rx-tp-track i::after, .rx-lb-row.top:nth-child(2)::after { animation: none; }
  .rx-reveal { opacity:1 !important; transform:none !important; filter:none !important; }
}

/* Hero side: score ring shown only when a profile is loaded; default = trader count */
.rx-hero-side [hidden] { display: none !important; }
.rx-hero-stat {
  margin: 0 0 10px; color: var(--rx-brand-green);
  font: 600 16px/1.45 var(--rx-font-display); letter-spacing: 0.01em;
}

/* ============================================================ NEWCOMER LAYER
   60-sec guide modal, hero demo link, metric tooltips, live board indicator. */
.rx-hero-demo { margin:14px 2px 0; font:500 14.5px/1.5 var(--rx-font-display); color:rgba(231,247,239,.55); }
.rx-hero-demo a { color:var(--rx-brand-green); text-decoration:none; border-bottom:1px solid rgba(4,223,131,.35); padding-bottom:1px; }
.rx-hero-demo a:hover { border-bottom-color:var(--rx-brand-green); }
.rx-hero-demo .rx-dot { margin:0 10px; color:rgba(231,247,239,.3); }

/* CSS-only tooltips (hover/focus) for metric labels */
[data-tip] { position:relative; cursor:help; }
[data-tip]::after {
  content:attr(data-tip); position:absolute; left:50%; bottom:calc(100% + 12px);
  transform:translateX(-50%); width:250px; padding:11px 13px;
  background:#0a2630; border:1px solid rgba(4,223,131,.4); border-radius:12px;
  color:#d9efe4; font:500 12.5px/1.55 var(--rx-font-display);
  letter-spacing:.005em; text-transform:none; white-space:normal; text-align:left;
  opacity:0; visibility:hidden; transition:opacity .16s ease; z-index:80;
  box-shadow:0 18px 40px -18px rgba(0,0,0,.9);
  pointer-events:none;
}
[data-tip]:hover::after, [data-tip]:focus-visible::after { opacity:1; visibility:visible; }

/* live indicator + season totals on the leaderboard */
.rx-live-ind {
  display:inline-flex; align-items:center; gap:6px; margin-right:8px;
  color:var(--rx-brand-green); font:700 11.5px/1 var(--rx-font-display); letter-spacing:.14em;
}
.rx-live-ind i { width:7px; height:7px; border-radius:50%; background:var(--rx-brand-green);
  box-shadow:0 0 8px var(--rx-brand-green); animation:rxLivePulse 1.8s ease-in-out infinite; }
@keyframes rxLivePulse { 0%,100% { opacity:1; } 50% { opacity:.35; } }
#lbUpdated { color:rgba(231,247,239,.4); }
.rx-lb-totals { margin-top:4px !important; color:rgba(231,247,239,.62) !important; }
.rx-lb-totals b { color:#fff; font-weight:600; }


/* ============================================================ BOARD EXTRAS
   Daily movement arrows, live open-positions dot, open-only filter toggle. */
.rx-d { display:inline-block; margin-left:7px; font:700 10.5px/1 var(--rx-font-display); letter-spacing:.04em; font-style:normal; vertical-align:1px; }
.rx-d.up   { color:#2fe08a; }
.rx-d.dn   { color:#ff6b81; }
.rx-d.new  { color:#9fe3ff; letter-spacing:.12em; }
.rx-d.flat { color:rgba(255,255,255,.28); }

.rx-open-dot { display:inline-block; width:7px; height:7px; margin-left:8px; border-radius:50%;
  background:var(--rx-brand-green); box-shadow:0 0 7px var(--rx-brand-green);
  animation:rxLivePulse 2.2s ease-in-out infinite; vertical-align:1px; }

.rx-lb-open-toggle { display:inline-flex; align-items:center; gap:8px; padding:9px 14px; cursor:pointer;
  border-radius:10px; border:1px solid rgba(255,255,255,.18); background:transparent;
  color:rgba(231,247,239,.6); font:600 13px/1 var(--rx-font-display); letter-spacing:.02em;
  transition:border-color .15s, color .15s, background .15s; }
.rx-lb-open-toggle i { width:7px; height:7px; border-radius:50%; background:rgba(231,247,239,.35); }
.rx-lb-open-toggle:hover { border-color:rgba(4,223,131,.45); color:#d9efe4; }
.rx-lb-open-toggle.active { border-color:var(--rx-brand-green); color:var(--rx-brand-green); background:rgba(4,223,131,.1); }
.rx-lb-open-toggle.active i { background:var(--rx-brand-green); box-shadow:0 0 7px var(--rx-brand-green);
  animation:rxLivePulse 1.8s ease-in-out infinite; }

/* ====================================================== GUIDE — passport doc
   Premium "official document" treatment: holographic sheen, binding spine with
   MRZ code, registration marks, indexed steps on a hairline, stamp-style CTA. */
.rx-intro {
  position:fixed; inset:0; z-index:200; display:flex; align-items:center; justify-content:center;
  padding:24px;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(4,223,131,0.10), transparent 60%),
    rgba(2,11,14,0.74);
  backdrop-filter:blur(10px) saturate(1.1);
  animation:rxIntroFade .32s var(--rx-ease) both;
}
@keyframes rxIntroFade { from { opacity:0; } to { opacity:1; } }

.rx-intro-card {
  position:relative; width:min(720px, 96vw); padding:40px 44px 30px 60px;
  border-radius:20px; overflow:hidden; isolation:isolate;
  color:var(--rx-ink-1);
  background:
    linear-gradient(158deg, rgba(11,46,55,0.96) 0%, rgba(5,23,30,0.97) 46%, rgba(4,15,20,0.98) 100%);
  border:1px solid rgba(4,223,131,0.28);
  box-shadow:
    0 50px 120px -40px rgba(0,0,0,0.92),
    0 0 0 1px rgba(255,255,255,0.03) inset,
    0 1px 0 rgba(255,255,255,0.06) inset,
    0 0 90px -30px rgba(4,223,131,0.30);
  animation:rxIntroRise .5s var(--rx-ease) both;
}
@keyframes rxIntroRise { from { opacity:0; transform:translateY(22px) scale(.975); } to { opacity:1; transform:none; } }
/* faint engraved guilloché grid (document security texture) */
.rx-intro-card::before {
  content:""; position:absolute; inset:0; z-index:-1; pointer-events:none; opacity:.5;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.02) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.014) 0 1px, transparent 1px 7px);
  -webkit-mask:radial-gradient(130% 100% at 70% 0%, #000 35%, transparent 78%);
          mask:radial-gradient(130% 100% at 70% 0%, #000 35%, transparent 78%);
}

/* holographic light streak sweeping the top corner */
.rx-intro-holo {
  position:absolute; top:-40%; right:-10%; width:70%; height:160%; z-index:-1; pointer-events:none;
  background:conic-gradient(from 210deg at 50% 50%,
    transparent, rgba(159,227,255,0.10), rgba(4,223,131,0.14), rgba(216,255,122,0.10), transparent 60%);
  filter:blur(26px); mix-blend-mode:screen; opacity:.9;
  animation:rxHolo 9s ease-in-out infinite alternate;
}
@keyframes rxHolo { from { transform:translateX(0) rotate(0deg); } to { transform:translateX(-7%) rotate(8deg); } }

/* binding spine on the left (passport gutter) */
.rx-intro-spine {
  position:absolute; left:0; top:0; bottom:0; width:34px; z-index:1; pointer-events:none;
  background:linear-gradient(180deg, var(--rx-brand-green), var(--rx-brand-green-dim) 60%, #06303a);
  box-shadow:inset -7px 0 14px -8px rgba(0,0,0,0.8);
}
.rx-intro-spine::before {  /* perforation dots */
  content:""; position:absolute; left:50%; top:18px; bottom:18px; width:3px; transform:translateX(-50%);
  background:repeating-linear-gradient(180deg, rgba(4,22,29,0.85) 0 3px, transparent 3px 13px);
}

/* corner registration marks */
.rx-reg { position:absolute; width:15px; height:15px; z-index:2; pointer-events:none; opacity:.6; }
.rx-reg::before, .rx-reg::after { content:""; position:absolute; background:rgba(4,223,131,0.7); }
.rx-reg::before { left:50%; top:0; width:1px; height:100%; transform:translateX(-50%); }
.rx-reg::after  { top:50%; left:0; height:1px; width:100%; transform:translateY(-50%); }
/* Placed on a free diagonal — clear of the close button (×) in the top-right. */
.rx-reg-tr { top:16px; left:50px; }
.rx-reg-bl { bottom:52px; right:18px; }

.rx-intro-close {
  position:absolute; top:16px; right:16px; z-index:5; width:34px; height:34px; border-radius:9px;
  border:1px solid rgba(255,255,255,0.16); background:rgba(0,0,0,0.25); color:var(--rx-ink-2);
  font:300 20px/1 var(--rx-font-display); cursor:pointer; transition:all var(--rx-dur-fast) var(--rx-ease);
}
.rx-intro-close:hover { color:#fff; border-color:rgba(4,223,131,0.55); background:rgba(4,223,131,0.10); transform:rotate(90deg); }

.rx-intro-head { display:flex; justify-content:space-between; align-items:center; gap:16px; }
.rx-intro-doc, .rx-intro-ref {
  font:600 11px/1 var(--rx-font-mono); letter-spacing:0.22em; text-transform:uppercase;
}
.rx-intro-doc { color:var(--rx-brand-green); display:inline-flex; align-items:center; gap:9px; }
.rx-intro-doc::before { content:""; width:7px; height:7px; border-radius:50%; background:var(--rx-brand-green); box-shadow:0 0 8px var(--rx-brand-green); }
.rx-intro-ref { color:var(--rx-ink-4); }

.rx-intro-title {
  margin:22px 0 6px; font:600 32px/1.05 var(--rx-font-display); letter-spacing:-0.015em;
  background:linear-gradient(92deg, #ffffff 30%, #bdeedd 75%, var(--rx-brand-green));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.rx-intro-lede { margin:0 0 26px; color:var(--rx-ink-3); font:400 15px/1.5 var(--rx-font-text); letter-spacing:0.01em; }

/* steps on a hairline timeline with big index numerals */
.rx-intro-steps { list-style:none; margin:0; padding:0; position:relative; }
.rx-intro-steps::before {
  content:""; position:absolute; left:21px; top:14px; bottom:30px; width:1px;
  background:linear-gradient(180deg, var(--rx-brand-green), rgba(4,223,131,0.15));
}
.rx-intro-step { position:relative; display:grid; grid-template-columns:44px 1fr; gap:18px; padding:0 0 22px; }
.rx-intro-num {
  position:relative; z-index:1; width:44px; height:44px; border-radius:12px;
  display:flex; align-items:center; justify-content:center;
  font:600 17px/1 var(--rx-font-mono); color:var(--rx-brand-green); letter-spacing:0.02em;
  background:radial-gradient(circle at 50% 38%, rgba(4,223,131,0.18), rgba(4,30,38,0.95));
  border:1px solid rgba(4,223,131,0.45);
  box-shadow:0 0 22px -8px rgba(4,223,131,0.6), inset 0 1px 0 rgba(255,255,255,0.08);
}
.rx-intro-body b { display:block; color:#fff; font:600 17px/1.3 var(--rx-font-display); margin:9px 0 6px; }
.rx-intro-body p { margin:0; color:var(--rx-ink-2); font:400 14.5px/1.62 var(--rx-font-text); letter-spacing:0.005em; }
.rx-intro-body em { font-style:normal; font-weight:600; color:#e9fbf2; }
.rx-intro-body a { color:var(--rx-brand-green); text-decoration:none; border-bottom:1px solid rgba(4,223,131,0.4); }
.rx-intro-body a:hover { border-bottom-color:var(--rx-brand-green); }

.rx-intro-actions { display:flex; gap:14px; align-items:center; margin-top:8px; }
.rx-intro-demo {
  position:relative; flex:1; padding:15px 20px; border:0; border-radius:13px; cursor:pointer; overflow:hidden;
  color:var(--rx-brand-ink); font:700 15px/1 var(--rx-font-display); letter-spacing:0.01em;
  background:linear-gradient(96deg, var(--rx-brand-green), #38f0a6 55%, #9affc9);
  box-shadow:0 14px 34px -14px rgba(4,223,131,0.8), inset 0 1px 0 rgba(255,255,255,0.4);
  transition:transform var(--rx-dur-fast) var(--rx-ease), box-shadow var(--rx-dur-fast) var(--rx-ease);
}
.rx-intro-demo span { position:relative; z-index:1; }
.rx-intro-demo::after {  /* sweeping sheen */
  content:""; position:absolute; top:0; left:-60%; width:45%; height:100%;
  background:linear-gradient(100deg, transparent, rgba(255,255,255,0.6), transparent);
  transform:skewX(-18deg); animation:rxStampSheen 3.4s ease-in-out infinite;
}
@keyframes rxStampSheen { 0%,55% { left:-60%; } 90%,100% { left:130%; } }
.rx-intro-demo:hover { transform:translateY(-1px); box-shadow:0 18px 40px -12px rgba(4,223,131,0.95), inset 0 1px 0 rgba(255,255,255,0.5); }

/* "Got it" as a passport stamp */
.rx-intro-ok {
  padding:13px 22px; cursor:pointer; border-radius:11px;
  border:1.5px dashed rgba(255,255,255,0.34); background:transparent; color:var(--rx-ink-2);
  font:700 12.5px/1 var(--rx-font-mono); letter-spacing:0.16em; text-transform:uppercase;
  transform:rotate(-3deg); transition:all var(--rx-dur-fast) var(--rx-ease);
}
.rx-intro-ok:hover { color:#fff; border-color:rgba(4,223,131,0.7); transform:rotate(-3deg) scale(1.04); }

/* machine-readable zone strip (passport MRZ) */
.rx-intro-mrz {
  margin:24px -44px -30px -60px; padding:11px 60px; overflow:hidden; white-space:nowrap;
  font:600 12px/1 var(--rx-font-mono); letter-spacing:0.34em; color:rgba(159,227,255,0.34);
  background:rgba(0,0,0,0.32); border-top:1px solid rgba(255,255,255,0.06);
  text-overflow:clip;
}

@media (max-width:560px) {
  .rx-intro-card { padding:30px 22px 22px 40px; }
  .rx-intro-spine { width:24px; }
  .rx-intro-title { font-size:25px; }
  .rx-intro-actions { flex-direction:column; align-items:stretch; }
  .rx-intro-ok { transform:none; }
  .rx-intro-mrz { margin:20px -22px -22px -40px; padding:10px 40px; letter-spacing:0.2em; }
  .rx-reg-tr { left:38px; }
  .rx-reg-bl { bottom:46px; right:16px; }
}
@media (prefers-reduced-motion: reduce) {
  .rx-intro, .rx-intro-card { animation:none; }
  .rx-intro-holo, .rx-intro-demo::after { animation:none; }
}

/* ── Rekt Timeline — on-chain liquidation history (depth showpiece) ─────────── */
.rx-dim { color: var(--rx-ink-3); font-size: 0.82em; font-weight: 500; }
.rx-rekt .negative { color: var(--rx-red); }
.rx-rekt-list { display: flex; flex-direction: column; }
.rx-rekt-row {
  /* fixed market + amount tracks so every row lines up — auto tracks made the
     ticker jitter left/right as the $ amount width changed from row to row */
  display: grid; grid-template-columns: 1fr 60px 124px; align-items: center; gap: 14px;
  padding: 9px 2px; border-bottom: 1px solid var(--rx-line-soft); font-size: 0.92rem;
}
.rx-rekt-row:last-child { border-bottom: 0; }
.rx-rekt-when { color: var(--rx-ink-3); font-size: 0.84rem; }
.rx-rekt-mkt {
  font-family: var(--rx-font-mono); color: var(--rx-ink-2);
  letter-spacing: 0.02em; text-align: right; min-width: 52px;
}
.rx-rekt-size {
  font-family: var(--rx-font-mono); font-weight: 600; color: var(--rx-red);
  font-variant-numeric: tabular-nums; text-align: right; min-width: 84px;
}
.rx-rekt-more {
  margin-top: 10px; text-align: center; color: var(--rx-ink-3);
  font-size: 0.82rem; letter-spacing: 0.02em;
}
.rx-rekt-survivor { display: flex; align-items: center; gap: 14px; padding: 6px 2px; }
.rx-rekt-medal { font-size: 2rem; filter: drop-shadow(0 0 10px rgba(4,223,131,0.4)); }
.rx-rekt-survivor b {
  display: block; color: var(--rx-brand-green); font-family: var(--rx-font-display);
  font-size: 1.05rem; letter-spacing: 0.01em;
}
.rx-rekt-survivor span { color: var(--rx-ink-3); font-size: 0.86rem; }
