:root {
  color-scheme: dark;
  --bg-dark: #070b14;
  --bg-surface: rgba(14, 21, 37, 0.78);
  --bg-elevated: rgba(20, 30, 52, 0.85);
  --bg-inset: #090e1a;
  --bg-card: rgba(14, 21, 37, 0.78);
  --bg-card-border: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --accent: #22d3ee;
  --accent-bright: #67e8f9;
  --accent-hover: #38bdf8;
  --accent-soft: rgba(34, 211, 238, 0.1);
  --accent-border: rgba(34, 211, 238, 0.28);
  --cyan-glow: #22d3ee;

  --green-win: #10b981;
  --red-loss: #fb7185;
  --crimson: #fb7185;
  --amber-warn: #fbbf24;

  --text-main: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #8b9bb4;

  --font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

a,
button,
select,
input,
.plan-card,
.radar-row,
.whale-dir-row {
  touch-action: manipulation;
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

header,
.market-tape-bar,
main,
footer {
  width: 100%;
  max-width: 100%;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-family);
  font-size: 14.5px;
  line-height: 1.55;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background-image:
    radial-gradient(760px circle at 50% 90px, rgba(34, 211, 238, 0.13) 0%, rgba(251, 113, 133, 0.05) 45%, transparent 76%),
    radial-gradient(600px circle at 85% 650px, rgba(56, 189, 248, 0.05) 0%, transparent 70%);
  background-repeat: no-repeat;
}

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 2px 6px;
  border-radius: 6px;
  color: var(--accent-bright);
}

.inline-link {
  color: var(--accent-bright);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.inline-link:hover {
  color: #ffffff;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

main.container {
  padding-top: 12px;
  padding-bottom: 64px;
}

/* Floating Pill Web3 Header */
header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(7, 11, 20, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 120;
}

.nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  height: 68px;
}

.logo {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-logo-img {
  border-radius: 9px;
  border: 1px solid rgba(34, 211, 238, 0.28);
  box-shadow: 0 4px 14px rgba(34, 211, 238, 0.14);
  display: block;
  flex-shrink: 0;
}

.nav-links {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  padding: 7px 15px;
  border-radius: 999px;
  transition: color 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: #ffffff;
}

.nav-link.active {
  color: var(--accent-bright);
  background: rgba(34, 211, 238, 0.13);
  font-weight: 600;
}

.nav-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

select,
select option,
select optgroup {
  color-scheme: dark;
  background-color: #0d1527;
  color: #f8fafc;
}

.header-currency-select {
  background-color: #0d1527;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  height: 36px;
  padding: 0 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.header-currency-select:hover,
.header-currency-select:focus {
  color: #fff;
  border-color: var(--border-strong);
}

/* Custom Web3 Frosted-Glass Currency Picker */
.currency-picker {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.currency-picker-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 13px;
  background: #0d1528;
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.currency-bar .currency-picker-btn {
  height: 30px;
  padding: 0 11px;
  font-size: 11.5px;
}

.currency-picker-btn:hover,
.currency-picker.open .currency-picker-btn {
  border-color: rgba(34, 211, 238, 0.45);
  background: #111c36;
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.14);
}

.currency-picker-btn svg {
  color: var(--accent-bright);
  transition: transform 0.15s ease;
}

.currency-picker.open .currency-picker-btn svg {
  transform: rotate(180deg);
}

.currency-picker-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 236px;
  padding: 8px;
  background: rgba(11, 18, 34, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 16px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  z-index: 260;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}

.currency-bar .currency-picker-menu {
  right: auto;
  left: 50%;
  transform: translateX(-50%);
}

.currency-picker.open .currency-picker-menu {
  display: grid;
}

.currency-picker-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.currency-picker-opt:hover {
  background: rgba(34, 211, 238, 0.1);
  border-color: rgba(34, 211, 238, 0.3);
  color: #ffffff;
}

.currency-picker-opt.active {
  background: rgba(34, 211, 238, 0.16);
  border-color: rgba(34, 211, 238, 0.5);
  color: var(--accent-bright);
}

.cur-opt-sym {
  font-size: 10.5px;
  color: var(--text-muted);
}

.currency-picker-opt.active .cur-opt-sym {
  color: var(--accent-bright);
}

/* Subtle Live Hyperliquid Market Ribbon */
.market-tape-bar {
  background: rgba(9, 14, 26, 0.65);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  height: 38px;
  display: flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11.5px;
}

.market-tape-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
  overflow: hidden;
}

.market-global-stats {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding-right: 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  white-space: nowrap;
  flex-shrink: 0;
}

.tape-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent-bright);
}

.tape-stat {
  color: var(--text-muted);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
}

.tape-stat b {
  color: var(--text-main);
  font-weight: 600;
}

.tape-stat-lbl {
  color: #64748b;
  margin-right: 4px;
}

.market-tape-scroller {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.market-tape-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  width: max-content;
}

.market-tape-track.animated {
  animation: tape-scroll 52s linear infinite;
}

.market-tape-scroller:hover .market-tape-track.animated {
  animation-play-state: paused;
}

.tape-seq {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding-right: 20px;
}

.tape-coin-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 999px;
  transition: background 0.15s ease;
}

.tape-coin-chip:hover {
  background: rgba(255, 255, 255, 0.06);
}

.tape-coin-sym {
  color: #ffffff;
  font-weight: 600;
}

.tape-coin-px {
  color: var(--text-secondary);
}

.tape-coin-chg {
  font-weight: 600;
}

.tape-skeleton {
  color: var(--text-muted);
  font-size: 11.5px;
}

@keyframes tape-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Coin Icons */
.coin-icon-wrap {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #131d33;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  color: var(--accent-bright);
}

.coin-icon-wrap.sm {
  width: 16px;
  height: 16px;
  font-size: 8.5px;
}

.coin-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.7);
  flex-shrink: 0;
}

/* Buttons */
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  height: 36px;
  padding: 0 15px;
  border-radius: 999px;
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}

.btn-ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-strong);
}

.btn-ghost.btn-xs {
  height: 32px;
  padding: 0 13px;
  font-size: 12.5px;
}

.btn-kit-ready {
  border-color: rgba(16, 185, 129, 0.4);
  color: var(--green-win);
}

.btn-primary {
  background: linear-gradient(135deg, #67e8f9 0%, #22d3ee 55%, #06b6d4 100%);
  color: #04131d;
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 14px;
  padding: 11px 22px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(34, 211, 238, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-primary:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(34, 211, 238, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-primary.btn-sm {
  padding: 9px 18px;
  font-size: 13px;
  border-radius: 999px;
}

.btn-primary.btn-lg {
  padding: 14px 32px;
  font-size: 15px;
  border-radius: 999px;
}

.btn-header-pro {
  height: 36px;
  padding: 0 16px;
  font-size: 13px;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}

.btn-share-x {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  padding: 9px 16px;
  border-radius: 999px;
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.btn-share-x:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--border-strong);
}

/* Legacy badge helpers for SSR pages */
.sample-tag,
.eyebrow-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-bright);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-block;
}

.sample-tag {
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  padding: 4px 10px;
  border-radius: 999px;
}

.pill-badge-cyan {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent-bright);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  padding: 5px 12px;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.15s ease;
}

.pill-badge-cyan:hover {
  background: rgba(34, 211, 238, 0.18);
}

/* Spacious Centered Hero + Signature Glass Search Centerpiece */
.hero-section {
  max-width: 780px;
  margin: 0 auto 38px;
  padding-top: 38px;
}

.hero-copy {
  text-align: center;
  margin-bottom: 28px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 6px 15px;
  border-radius: 999px;
  margin-bottom: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hero-copy h1 {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.07;
  color: #ffffff;
  margin-bottom: 16px;
}

.hero-grad {
  background: linear-gradient(120deg, #67e8f9 0%, #22d3ee 48%, #fb7185 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-copy p {
  color: var(--text-muted);
  font-size: 16.5px;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Elevated Glass Search Card */
.input-card {
  background: rgba(14, 21, 37, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 22px 24px 24px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 24px 60px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(34, 211, 238, 0.06);
}

.mode-pill-row {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.mode-pills {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--bg-inset);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 999px;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-family);
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.tab-btn:hover {
  color: #ffffff;
}

.tab-btn.active {
  background: rgba(34, 211, 238, 0.14);
  color: var(--accent-bright);
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.error-banner {
  display: none;
  background: rgba(251, 113, 133, 0.12);
  border: 1px solid rgba(251, 113, 133, 0.35);
  color: #fecdd3;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 13.5px;
  margin-bottom: 16px;
}

.error-banner.visible {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.search-capsule-row,
.input-flex {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.wallet-input-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.input-prefix {
  position: absolute;
  left: 16px;
  color: #64748b;
  display: inline-flex;
  pointer-events: none;
}

.text-input {
  width: 100%;
  height: 54px;
  background: var(--bg-inset);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 14px;
  padding: 0 78px 0 16px;
  border-radius: 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  outline: none;
}

.text-input.has-prefix {
  padding-left: 44px;
}

.text-input::placeholder {
  color: #55657e;
}

.text-input:focus {
  border-color: rgba(34, 211, 238, 0.65);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
}

.paste-btn {
  position: absolute;
  right: 9px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 9px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.paste-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.btn-audit-submit {
  height: 54px;
  padding: 0 26px;
  border-radius: 14px;
  font-size: 14.5px;
}

.demo-link-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.demo-label {
  font-size: 12.5px;
  color: var(--text-muted);
}

.whale-preset-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  align-items: center;
}

.whale-preset-btn {
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.whale-preset-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-strong);
  color: #fff;
}

.whale-preset-link {
  color: var(--accent-bright);
  border-color: rgba(34, 211, 238, 0.25);
}

.dot-win,
.dot-loss {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-win { background: var(--green-win); }
.dot-loss { background: var(--red-loss); }

/* Upload & Chart Controls */
.upload-dropzone {
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 18px;
  cursor: pointer;
  background: var(--bg-inset);
  transition: border-color 0.15s ease, background 0.15s ease;
  margin-bottom: 14px;
  text-align: center;
}

.upload-dropzone:hover,
.upload-dropzone.dragover {
  border-color: var(--accent);
  background: rgba(34, 211, 238, 0.04);
}

.upload-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: var(--text-secondary);
  font-size: 13px;
}

.form-label {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.controls-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.select-input {
  width: 100%;
  height: 44px;
  background: var(--bg-inset);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: var(--font-family);
  padding: 0 12px;
  border-radius: 12px;
  font-size: 13.5px;
  outline: none;
}

.select-input:focus {
  border-color: var(--accent);
}

/* Spacious Glass Bento Cards */
.pre-audit-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.glass-card,
.roast-card,
.alpha-grid-section,
.proof-card,
.standalone-pricing-box {
  background: var(--bg-surface);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-subtle);
  border-radius: 22px;
  padding: 26px 28px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 18px 45px rgba(0, 0, 0, 0.35);
}

.card-head-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.card-title-lg {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-top: 3px;
}

.card-title-md {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-top: 2px;
}

.card-sub {
  font-size: 13px;
  color: var(--text-muted);
}

.dossier-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.chart-tf-group {
  display: inline-flex;
  background: var(--bg-inset);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}

.chart-tf-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.chart-tf-btn.active {
  background: rgba(34, 211, 238, 0.15);
  color: var(--accent-bright);
}

.featured-grade-pill {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--red-loss);
  background: rgba(251, 113, 133, 0.12);
  border: 1px solid rgba(251, 113, 133, 0.32);
  padding: 5px 12px;
  border-radius: 999px;
}

.featured-grade-pill.grade-win {
  color: var(--green-win);
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.32);
}

.featured-grade-pill.grade-mid {
  color: var(--amber-warn);
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.32);
}

/* Featured Dossier Split */
.dossier-split {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}

.dossier-chart-col {
  background: var(--bg-inset);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.chart-panel-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

.chart-window-lbl {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.chart-headline-val {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  margin-top: 2px;
}

.svg-chart-wrap {
  width: 100%;
  height: 136px;
  margin: 6px 0 12px;
  position: relative;
}

.svg-chart-wrap svg {
  width: 100%;
  height: 100%;
  display: block;
}

.chart-range-meta {
  position: absolute;
  right: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: #64748b;
  pointer-events: none;
  line-height: 1;
}

.chart-range-high { top: 2px; }
.chart-range-low { bottom: 2px; }

.dossier-stats-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.dossier-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.featured-roast-quote {
  background: rgba(251, 113, 133, 0.06);
  border: 1px solid rgba(251, 113, 133, 0.18);
  padding: 11px 14px;
  border-radius: 12px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.5;
}

.dossier-signal-bar {
  background: var(--bg-inset);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 12px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.featured-whale-links {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.whale-links-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.whale-pill-link {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-secondary);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 5px 11px;
  border-radius: 999px;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.whale-pill-link:hover {
  color: var(--accent-bright);
  border-color: var(--accent-border);
  background: rgba(34, 211, 238, 0.08);
}

/* Micro Visual Meters */
.mini-meter {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 8px;
  display: flex;
}

.mini-meter-win { height: 100%; background: var(--green-win); }
.mini-meter-loss { height: 100%; background: var(--red-loss); }
.mini-meter-amber { height: 100%; background: var(--amber-warn); }

.kpi-sub {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 5px;
  display: block;
}

/* 2-Column Spacious Bento */
.bento-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

#whaleRadarPanel,
#communityBots {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.radar-tabs {
  display: inline-flex;
  gap: 3px;
  background: var(--bg-inset);
  border: 1px solid var(--border-subtle);
  padding: 3px;
  border-radius: 999px;
}

.radar-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-family);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s ease, background 0.15s ease;
}

.radar-tab.active {
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
}

.radar-rows {
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}

.radar-col-head {
  display: grid;
  grid-template-columns: 1.45fr 0.78fr 0.95fr 68px;
  gap: 10px;
  padding: 0 12px 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #64748b;
  text-transform: uppercase;
}

.radar-row {
  position: relative;
  display: grid;
  grid-template-columns: 1.45fr 0.78fr 0.95fr 68px;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  background: var(--bg-inset);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 13px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.15s ease, transform 0.12s ease, background 0.15s ease;
}

.radar-row::before {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: var(--depth-pct, 0%);
  background: var(--depth-color, transparent);
  pointer-events: none;
  z-index: 0;
}

.radar-row > * {
  position: relative;
  z-index: 1;
}

.radar-row:hover {
  border-color: rgba(34, 211, 238, 0.35);
  transform: translateY(-1px);
}

.radar-addr {
  color: #ffffff;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.radar-rank {
  color: #64748b;
  font-size: 11px;
  width: 14px;
  flex-shrink: 0;
}

.radar-rank-top {
  color: var(--accent-bright);
  font-weight: 700;
}

.whale-orb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), 0 2px 8px rgba(0, 0, 0, 0.4);
}

.whale-orb.sm {
  width: 16px;
  height: 16px;
}

.radar-eq {
  text-align: right;
  color: var(--text-muted);
}

.radar-pnl {
  text-align: right;
  font-weight: 700;
}

.radar-action {
  text-align: right;
}

.radar-audit-pill {
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.25);
  color: var(--accent-bright);
  font-family: var(--font-family);
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 999px;
  white-space: nowrap;
  cursor: pointer;
}

.radar-row-skeleton {
  padding: 32px 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

.card-foot-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12.5px;
  color: var(--text-muted);
}

/* Telegram & Discord Card */
.tg-preview-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  justify-content: center;
}

.tg-preview-bubble {
  background: var(--bg-inset);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.tg-preview-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-bright);
  margin-bottom: 4px;
}

.tg-ts {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: #64748b;
  font-weight: 500;
}

.bot-deploy-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.bot-deploy-actions > a {
  height: 34px;
  padding: 0 13px;
  font-size: 12.5px;
}

/* Loading State */
.loading-box {
  display: none;
  text-align: center;
  padding: 32px 18px;
}

.loading-box h4 {
  color: #fff;
  font-size: 15.5px;
  font-weight: 600;
  margin-bottom: 6px;
}

.loading-box p {
  color: var(--text-muted);
  font-size: 13.5px;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 2.5px solid rgba(255, 255, 255, 0.08);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  margin: 0 auto 14px;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

/* Results & Audit Report Card */
.results-container {
  display: none;
  margin-bottom: 28px;
  scroll-margin-top: 84px;
}

.standalone-pricing-box,
.paywall-overlay {
  scroll-margin-top: 84px;
}

.roast-card {
  margin-bottom: 22px;
}

.roast-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding-bottom: 16px;
}

.wallet-badge-info h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 4px;
}

.wallet-badge-info span {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-bright);
  word-break: break-word;
}

.grade-stamp {
  background: rgba(251, 113, 133, 0.14);
  border: 1px solid rgba(251, 113, 133, 0.38);
  color: var(--red-loss);
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 26px;
  padding: 10px 20px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  flex-shrink: 0;
}

.grade-stamp.grade-win {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.38);
  color: var(--green-win);
}

.grade-stamp.grade-mid {
  background: rgba(251, 191, 36, 0.14);
  border-color: rgba(251, 191, 36, 0.38);
  color: var(--amber-warn);
}

.grade-stamp small {
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 5px;
  color: var(--text-muted);
}

.archetype-title {
  color: var(--amber-warn);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.audit-chart-panel {
  background: var(--bg-inset);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 18px;
}

/* Metrics Grid */
.stats-metrics-grid,
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(195px, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.stats-metrics-grid.stats-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-pill {
  background: var(--bg-inset);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 14px 16px;
  min-width: 0;
}

.metric-pill .lbl {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 5px;
  display: block;
}

.metric-pill .val {
  font-size: 17px;
  font-weight: 700;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  word-break: break-word;
  color: #fff;
}

.val-green { color: var(--green-win) !important; }
.val-red { color: var(--red-loss) !important; }
.val-amber { color: var(--amber-warn) !important; }

.two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

/* Roast / Coach Box */
.roast-punchlines-box,
.roast-box {
  background: var(--bg-inset);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-left: 3px solid var(--red-loss);
  padding: 18px 20px;
  border-radius: 14px;
  margin: 18px 0;
}

.roast-punchlines-box.coach-mode {
  border-left-color: var(--accent);
}

.roast-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.roast-punchlines-box h4,
.roast-box h4 {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.roast-punchlines-box.coach-mode h4 {
  color: var(--accent-bright);
}

.tone-toggle {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}

.tone-btn {
  background: transparent;
  color: var(--text-muted);
  border: none;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.tone-btn.active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.roast-punchlines-box ul,
.roast-list {
  list-style: none;
}

.roast-punchlines-box li,
.roast-list li {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-main);
  margin-bottom: 8px;
  position: relative;
  padding-left: 18px;
}

.roast-punchlines-box li:last-child,
.roast-list li:last-child {
  margin-bottom: 0;
}

.roast-punchlines-box li::before,
.roast-list li::before {
  content: "•";
  position: absolute;
  left: 2px;
  top: 0;
  color: var(--red-loss);
  font-weight: 700;
}

.roast-punchlines-box.coach-mode li::before {
  content: "✓";
  left: 0;
  color: var(--accent-bright);
}

/* Open Positions & Counterfactuals */
.open-positions-box {
  background: var(--bg-inset);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 16px 18px;
  margin: 14px 0;
}

.op-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.op-header h4 {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.op-total-upnl {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.op-badge-flat {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.op-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
}

.op-row-locked {
  border-color: rgba(251, 191, 36, 0.25) !important;
  background: rgba(251, 191, 36, 0.04) !important;
  padding: 10px 12px;
  border-radius: 10px;
  margin-top: 6px;
}

.op-main {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.op-coin {
  font-family: var(--font-mono);
  font-weight: 700;
  color: #fff;
  font-size: 13.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.op-locked-badge { color: var(--amber-warn) !important; font-size: 12px; }

.op-side {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  text-transform: uppercase;
}

.op-side-long { background: rgba(16, 185, 129, 0.12); color: var(--green-win); }
.op-side-short { background: rgba(251, 113, 133, 0.12); color: var(--red-loss); }
.op-side-locked { background: rgba(251, 191, 36, 0.12); color: var(--amber-warn); }

.op-notional {
  color: var(--text-muted);
  font-size: 12px;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.op-levels {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.op-levels b { color: #fff; }
.op-upnl { font-weight: 700; }

.op-unlock-btn {
  background: var(--accent);
  color: #04131d;
  border: none;
  border-radius: 999px;
  padding: 5px 12px;
  font-family: var(--font-family);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.cf-unlock-inline {
  background: rgba(34, 211, 238, 0.1);
  color: var(--accent-bright);
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 999px;
  padding: 3px 10px;
  font-family: var(--font-family);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.roast-locked-line { color: var(--amber-warn) !important; }

.counterfactuals-box {
  background: var(--bg-inset);
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: 14px;
  padding: 16px 18px;
  margin: 14px 0;
}

.counterfactuals-box h4 {
  font-size: 12px;
  font-weight: 700;
  color: var(--amber-warn);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.cf-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
}

.cf-row:first-of-type { border-top: none; padding-top: 0; }
.cf-title { color: #fff; font-weight: 600; display: block; }
.cf-detail { color: var(--text-muted); font-size: 12px; line-height: 1.5; margin-top: 2px; display: block; }
.cf-impact { font-family: var(--font-mono); font-weight: 700; color: var(--green-win); white-space: nowrap; font-size: 12.5px; }

.wallet-pro-hook-box {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.08) 0%, rgba(14, 21, 37, 0.9) 100%);
  border: 1px solid var(--accent-border);
  border-radius: 16px;
  padding: 18px 20px;
  margin: 14px 0;
}

.wph-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.wph-tag { display: inline-block; font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; color: var(--accent-bright); letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 4px; }
.wph-title { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.wph-sub { font-size: 12.5px; color: var(--text-muted); }
.wph-list { list-style: none; font-size: 12.5px; color: var(--text-secondary); line-height: 1.7; }
.wph-btn { white-space: nowrap; }

.viral-share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 18px;
}

/* AlphaGrid Playbook & Paywall */
.quant-tag {
  background: var(--accent-soft);
  color: var(--accent-bright);
  border: 1px solid var(--accent-border);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
}

.bias-panel {
  background: var(--bg-inset);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 14px 16px;
  border-radius: 14px;
  margin-bottom: 14px;
}

.bias-panel h4 {
  color: var(--accent-bright);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.bias-panel p { color: var(--text-secondary); font-size: 13.5px; }

.paywall-wrapper {
  position: relative;
  margin-top: 16px;
  min-height: 390px;
}

.paywall-wrapper.unlocked { min-height: 0; }

.blur-content {
  filter: blur(6px);
  user-select: none;
  pointer-events: none;
  opacity: 0.45;
}

.paywall-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(7, 11, 20, 0.9);
  backdrop-filter: blur(8px);
  border-radius: 18px;
  padding: 24px 20px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.paywall-overlay h4 { font-size: 19px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.paywall-overlay p { color: var(--text-muted); font-size: 13.5px; max-width: 470px; margin-bottom: 14px; }

/* Proof Table */
.proof-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.proof-zero-liq {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--green-win);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.28);
  padding: 4px 11px;
  border-radius: 999px;
}

.proof-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
  font-variant-numeric: tabular-nums;
}

.proof-table th {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 10px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.proof-table td {
  padding: 12px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  vertical-align: middle;
}

.proof-table tr:last-child td { border-bottom: none; }

.asset-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-weight: 600;
  color: #fff;
}

.side-pill {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  display: inline-block;
}

.side-pill-long { background: rgba(16, 185, 129, 0.12); color: var(--green-win); }
.side-pill-short { background: rgba(251, 113, 133, 0.12); color: var(--red-loss); }

/* Modern Web3 Pro Pricing */
.standalone-pricing-box {
  padding: 34px 32px;
}

.pricing-top-center {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 24px;
}

.pricing-top-center h3 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin: 6px 0 10px;
}

.pricing-top-center p {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.currency-bar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-inset);
  border: 1px solid var(--border-subtle);
  padding: 5px 6px 5px 14px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.currency-bar label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.currency-select {
  background-color: #0d1527;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 4px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
}

.pricing-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
  margin-bottom: 24px;
}

.plan-card {
  position: relative;
  background: var(--bg-inset);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 22px;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  text-align: left;
}

.plan-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.plan-card.selected {
  border-color: rgba(34, 211, 238, 0.6);
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.09) 0%, rgba(9, 14, 26, 0.95) 100%);
  box-shadow: 0 12px 34px rgba(34, 211, 238, 0.12);
}

.plan-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.plan-name {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}

.plan-tag-muted {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 3px 9px;
  border-radius: 999px;
}

.badge-pop {
  font-family: var(--font-mono);
  font-size: 10px;
  background: rgba(34, 211, 238, 0.16);
  color: var(--accent-bright);
  border: 1px solid rgba(34, 211, 238, 0.35);
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}

.plan-card .price {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #ffffff;
  line-height: 1.15;
}

.price-period {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.price-usd-hint {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  min-height: 16px;
  margin-top: 3px;
  margin-bottom: 10px;
}

.plan-card .sub {
  font-size: 12.5px;
  color: var(--text-muted);
}

.plan-perks {
  list-style: none;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.75;
}

.plan-perks li {
  position: relative;
  padding-left: 18px;
}

.plan-perks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-bright);
  font-weight: 700;
}

.pricing-cta-center {
  text-align: center;
}

.checkout-fineprint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 14px;
  line-height: 1.65;
}

.checkout-fineprint a,
.checkout-fineprint button {
  color: var(--text-secondary);
  background: none;
  border: none;
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.checkout-fineprint a:hover,
.checkout-fineprint button:hover {
  color: var(--accent-bright);
}

/* Modal */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 14, 0.82);
  backdrop-filter: blur(8px);
  z-index: 300;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop.open { display: flex; }

.modal-card {
  width: 100%;
  max-width: 440px;
  background: #0e1526;
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  padding: 26px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.72);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.modal-close {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  width: 30px;
  height: 30px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.modal-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* Filterable /whales Directory + SSR Compatibility */
.two-col-grid .proof-card {
  padding: 22px;
}

.tg-group-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 22px 26px;
}

.whale-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.whale-filter-pills { display: flex; flex-wrap: wrap; gap: 7px; }

.whale-filter-btn {
  background: var(--bg-inset);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 7px 15px;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.whale-filter-btn:hover {
  color: #ffffff;
  border-color: var(--border-strong);
}

.whale-filter-btn.active {
  background: rgba(34, 211, 238, 0.15);
  color: var(--accent-bright);
  border-color: var(--accent-border);
  font-weight: 600;
}

.whale-search-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.whale-visible-count {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
  white-space: nowrap;
}

.whale-search-input {
  max-width: 230px;
  height: 38px !important;
  padding: 0 14px !important;
  font-size: 12.5px !important;
  border-radius: 999px !important;
}

.whale-tag-win,
.whale-tag-loss {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.whale-tag-win {
  background: rgba(16, 185, 129, 0.13);
  border: 1px solid rgba(16, 185, 129, 0.28);
  color: #34d399;
}

.whale-tag-loss {
  background: rgba(251, 113, 133, 0.13);
  border: 1px solid rgba(251, 113, 133, 0.28);
  color: #fb7185;
}

/* Modern Web3 Whale Directory Table */
.whale-table-shell {
  background: #080d19;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  overflow-x: auto;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.whale-dir-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  text-align: left;
  font-variant-numeric: tabular-nums;
}

.whale-dir-table thead tr {
  background: rgba(17, 27, 49, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.whale-dir-table th {
  padding: 13px 16px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.whale-dir-table td {
  padding: 13px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  vertical-align: middle;
}

.whale-dir-table tbody tr:last-child td {
  border-bottom: none;
}

.whale-dir-row {
  cursor: pointer;
  transition: background 0.14s ease;
}

.whale-dir-row:hover {
  background: rgba(34, 211, 238, 0.055);
}

.whale-col-rank {
  width: 52px;
  text-align: center !important;
  padding-left: 14px !important;
  padding-right: 8px !important;
}

.whale-rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  background: rgba(255, 255, 255, 0.03);
}

.whale-rank-badge.whale-rank-1 {
  background: rgba(34, 211, 238, 0.16);
  color: var(--accent-bright);
  border: 1px solid rgba(34, 211, 238, 0.38);
  font-weight: 700;
}

.whale-rank-badge.whale-rank-2 {
  background: rgba(251, 191, 36, 0.14);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.34);
  font-weight: 700;
}

.whale-rank-badge.whale-rank-3 {
  background: rgba(148, 163, 184, 0.15);
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.3);
  font-weight: 700;
}

.whale-wallet-cell {
  display: flex;
  align-items: center;
  gap: 11px;
}

.whale-wallet-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.whale-addr-link {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 600;
  color: #f8fafc;
  text-decoration: none;
  transition: color 0.14s ease;
}

.whale-dir-row:hover .whale-addr-link,
.whale-addr-link:hover {
  color: var(--accent-bright);
}

.whale-col-num {
  text-align: right !important;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
  white-space: nowrap;
}

.whale-pnl-cell {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  min-width: 92px;
}

.whale-pnl-track {
  width: 72px;
  height: 3.5px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
  display: flex;
  justify-content: flex-end;
}

.whale-pnl-fill-win {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #10b981, #22d3ee);
}

.whale-pnl-fill-loss {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #e11d48, #fb7185);
}

.whale-sort-btn {
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  text-transform: uppercase;
  letter-spacing: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  transition: color 0.14s ease;
}

.whale-sort-btn:hover,
.whale-sort-btn.active {
  color: var(--accent-bright);
}

.whale-col-action {
  text-align: right !important;
  white-space: nowrap;
  width: 104px;
}

.whale-audit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 13px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.09);
  border: 1px solid rgba(34, 211, 238, 0.24);
  color: var(--accent-bright);
  font-family: var(--font-family);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.14s ease;
}

.whale-dir-row:hover .whale-audit-btn,
.whale-audit-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #041019;
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.35);
}

/* Footer */
footer {
  margin-top: auto;
  padding: 24px 0 30px;
  font-size: 12.5px;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(7, 11, 20, 0.85);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-left { color: var(--text-secondary); }
.footer-disclaimer { color: var(--text-muted); margin-left: 6px; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--accent-bright);
}

/* Responsive */
@media (max-width: 980px) {
  .dossier-split,
  .bento-two-col {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 840px) {
  .nav-row {
    flex-wrap: wrap;
    height: auto;
    padding-top: 10px;
    padding-bottom: 10px;
    row-gap: 8px;
  }

  .nav-links {
    order: 3;
    width: 100%;
    display: flex;
    justify-content: space-between;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px;
    border-radius: 13px;
    gap: 3px;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-link {
    flex: 1 0 auto;
    text-align: center;
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 9px;
  }
}

@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .hero-section { padding-top: 20px; margin-bottom: 24px; }
  .hero-copy h1 { font-size: 35px; }
  .hero-copy p { font-size: 14.5px; }

  .input-card,
  .glass-card,
  .roast-card,
  .alpha-grid-section,
  .standalone-pricing-box,
  .proof-card {
    padding: 20px 16px;
    border-radius: 18px;
    min-width: 0;
    max-width: 100%;
  }

  .search-capsule-row,
  .input-flex { flex-direction: column; }
  .btn-audit-submit { width: 100%; height: 50px; }
  .text-input, .select-input { font-size: 16px; }
  .whale-search-wrap { width: 100%; }
  .whale-search-input {
    max-width: none;
    flex: 1;
    height: 42px !important;
    font-size: 16px !important;
  }
  .controls-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .roast-header { flex-direction: column; gap: 12px; }
  .grade-stamp { align-self: flex-start; }

  .stats-metrics-grid,
  .stats-metrics-grid.stats-grid-4,
  .metrics-grid,
  .dossier-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .two-col-grid,
  .pricing-options {
    grid-template-columns: 1fr;
  }

  .paywall-wrapper { min-height: 0; }
  .paywall-overlay { position: static; margin-top: 14px; padding: 20px 16px; }

  .viral-share-row { justify-content: stretch; }
  .viral-share-row > * { flex: 1 1 100%; text-align: center; }
}

@media (max-width: 600px) {
  .hide-xs,
  #headerRestoreBtn {
    display: none !important;
  }

  .logo { font-size: 16.5px; gap: 8px; }
  .brand-logo-img { width: 28px; height: 28px; }
  .nav-actions { gap: 6px; }
  .nav-actions .currency-picker-btn {
    height: 33px;
    padding: 0 10px;
    font-size: 11.5px;
  }
  .nav-actions .currency-picker-menu {
    right: -60px;
  }
  .nav-actions .btn-header-pro,
  .nav-actions .btn-ghost {
    height: 33px;
    padding: 0 12px;
    font-size: 12px;
  }

  .hero-pill {
    font-size: 11px;
    padding: 5px 11px;
    gap: 6px;
  }
  .hero-copy h1 { font-size: 31px; }

  /* Allow long CTA buttons inside main cards to wrap cleanly without overflowing 375px */
  main .btn-primary,
  main .btn-ghost,
  main .btn-share-x {
    max-width: 100%;
    white-space: normal;
    height: auto;
    min-height: 42px;
    padding-top: 9px;
    padding-bottom: 9px;
    text-align: center;
  }

  main .bot-deploy-actions > a {
    min-height: 36px;
    padding: 7px 13px;
  }

  /* Homepage Top 7D Whale Movers: crisp 3-col layout on phones so full 0x1234...abcd fits */
  .radar-col-eq,
  .radar-eq {
    display: none;
  }
  .radar-col-head,
  .radar-row {
    grid-template-columns: minmax(0, 1.65fr) minmax(0, 0.85fr) 56px;
    gap: 6px;
    padding-left: 9px;
    padding-right: 9px;
  }
  .radar-addr {
    gap: 6px;
    font-size: 11.5px;
  }
  .radar-audit-pill {
    padding: 4px 9px;
    font-size: 11px;
  }

  /* /whales Directory Table: fit Wallet + Equity + 7D PnL edge-to-edge inside 360px Android & 375px iOS */
  .whale-col-rank,
  .whale-col-action {
    display: none;
  }
  .whale-dir-table th,
  .whale-dir-table td {
    padding: 10px 6px;
    font-size: 11.5px;
  }
  .whale-wallet-cell {
    gap: 7px;
  }
  .whale-wallet-cell .whale-orb {
    width: 15px;
    height: 15px;
  }
  .whale-wallet-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
  .whale-addr-link {
    font-size: 11.5px;
  }
  .whale-col-num {
    font-size: 11.5px;
  }
  .whale-pnl-cell {
    min-width: 64px;
  }
  .whale-pnl-track {
    width: 50px;
  }
  .fee-comp-table th:nth-child(2),
  .fee-comp-table td:nth-child(2),
  .fee-comp-table th:nth-child(4),
  .fee-comp-table td:nth-child(4),
  .fee-comp-table th:nth-child(6),
  .fee-comp-table td:nth-child(6) {
    display: none;
  }
  .fee-comp-table th,
  .fee-comp-table td {
    padding: 9px 6px !important;
    font-size: 11.5px !important;
  }
  .whale-col-action {
    width: 68px;
  }
  .whale-audit-btn {
    height: 28px;
    padding: 0 9px;
    font-size: 11px;
  }

  /* Recent Closed Bot Fills: show Market + Side + Move + Exit Trigger without horizontal scroll */
  .proof-table th:nth-child(3),
  .proof-table td:nth-child(3) {
    display: none;
  }
  .proof-table th,
  .proof-table td {
    padding: 9px 7px;
    font-size: 12px;
  }
}
