/* ═══════════════════════════════════════════════════════════════
   ABH CAPITAL — Ultra-Premium Fintech Theme
   Dark luxury · gold accents · glassmorphism · cinematic motion
   Investment Bank Grade Analysis Display
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* palette — deep space navy with gold luxury */
  --bg-0: #05070c;
  --bg-1: #0a0e14;
  --bg-2: #0f141d;
  --bg-3: #141b28;
  --surface: rgba(18, 24, 38, 0.65);
  --surface-solid: #121826;
  --surface-glass: rgba(20, 27, 40, 0.55);
  --border: rgba(148, 163, 184, 0.08);
  --border-strong: rgba(148, 163, 184, 0.16);
  --border-gold: rgba(212, 175, 55, 0.25);

  --text-0: #f0f4f8;
  --text-1: #c9d4e3;
  --text-2: #8fa0b5;
  --text-3: #5c6b82;

  --gold: #d4af37;
  --gold-soft: rgba(212, 175, 55, 0.12);
  --gold-bright: #f0c94a;
  --gold-deep: #b8960c;
  --gold-gradient: linear-gradient(135deg, #f5d76e 0%, #d4af37 50%, #b8960c 100%);
  --gold-glow: 0 0 40px rgba(212, 175, 55, 0.15);

  --up: #2ea043;
  --up-soft: rgba(46, 160, 67, 0.12);
  --up-glow: rgba(46, 160, 67, 0.25);
  --down: #f85149;
  --down-soft: rgba(248, 81, 73, 0.12);
  --down-glow: rgba(248, 81, 73, 0.25);

  --blue: #58a6ff;
  --blue-soft: rgba(88, 166, 255, 0.10);
  --purple: #bc8cff;
  --purple-soft: rgba(188, 140, 255, 0.10);

  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;

  --shadow-xl: 0 32px 80px -24px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(212, 175, 55, 0.06);
  --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
  --shadow-md: 0 16px 40px -16px rgba(0, 0, 0, 0.6);
  --shadow-gold: 0 8px 32px -8px rgba(212, 175, 55, 0.25);

  --font-ui: "Inter", "Heebo", -apple-system, "Segoe UI", sans-serif;
  --font-he: "Heebo", "Inter", -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

  --header-h: 76px;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-0);
  color: var(--text-0);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
[dir="rtl"] body, [dir="rtl"] input, [dir="rtl"] button { font-family: var(--font-he); }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { max-width: 100%; }
::selection { background: var(--gold); color: #0a0a0a; }

/* ── Background ambience ── */
.bg-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1200px 500px at 85% -5%, rgba(212, 175, 55, 0.06), transparent 60%),
    radial-gradient(900px 600px at 5% 8%, rgba(88, 166, 255, 0.05), transparent 55%),
    radial-gradient(800px 800px at 50% 120%, rgba(46, 160, 67, 0.04), transparent 60%),
    radial-gradient(600px 400px at 90% 85%, rgba(188, 140, 255, 0.03), transparent 55%),
    var(--bg-0);
}
.bg-grid::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 100%);
}

/* ═══════════════ Header ═══════════════ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%);
  background: rgba(5, 7, 12, 0.82);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1320px; margin: 0 auto; height: var(--header-h);
  padding: 0 28px;
  display: flex; align-items: center; gap: 32px;
}
.brand { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.brand-monogram {
  width: 44px; height: 44px; display: block;
  filter: drop-shadow(0 4px 12px rgba(212, 175, 55, 0.2));
}
.brand-monogram svg { width: 100%; height: 100%; }
.brand-text { display: flex; flex-direction: column; gap: 1px; }
.brand-name {
  font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; line-height: 1.1;
  background: linear-gradient(120deg, #f0f4f8 40%, var(--gold-bright) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.brand-tagline {
  font-size: 0.62rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-3); opacity: 0.9;
}
.brand-badge {
  font-size: 0.64rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold); background: var(--gold-soft);
  border: 1px solid rgba(212, 175, 55, 0.35);
  padding: 4px 10px; border-radius: 999px;
  backdrop-filter: blur(4px);
}

.main-nav { display: flex; gap: 6px; margin-inline-start: 16px; flex: 1; }
.nav-link {
  padding: 10px 18px; border-radius: var(--radius-sm);
  color: var(--text-2); font-weight: 600; font-size: 0.92rem;
  transition: all 0.25s var(--ease-out-expo);
  position: relative;
}
.nav-link:hover { color: var(--text-0); background: rgba(148, 163, 184, 0.06); }
.nav-link.active { color: var(--gold-bright); }
.nav-link.active::after {
  content: ""; position: absolute; inset-inline: 16px; bottom: 4px; height: 2px;
  background: var(--gold-gradient); border-radius: 2px;
}

.header-controls { display: flex; align-items: center; gap: 16px; }
.lang-switcher {
  display: flex; background: rgba(15, 20, 29, 0.8); border: 1px solid var(--border-strong);
  border-radius: 999px; padding: 4px;
  backdrop-filter: blur(8px);
}
.lang-btn {
  padding: 6px 14px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 700; color: var(--text-2);
  transition: all 0.25s var(--ease-out-expo);
}
.lang-btn:hover { color: var(--text-0); }
.lang-btn.active {
  background: var(--gold-gradient); color: #14100a;
  box-shadow: 0 2px 12px rgba(212, 175, 55, 0.3);
}

.menu-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.menu-toggle span { width: 22px; height: 2px; background: var(--text-1); border-radius: 2px; transition: all 0.3s var(--ease-out-expo); }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══════════════ Trading Account Banner ═══════════════ */
.sim-banner {
  position: relative;
  background: linear-gradient(135deg, rgba(15, 20, 29, 0.95) 0%, rgba(10, 14, 20, 0.98) 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl);
  padding: 28px 32px;
  margin-bottom: 32px;
  overflow: hidden;
  box-shadow: var(--shadow-xl), 0 0 60px rgba(212, 175, 55, 0.1);
}
.sim-banner-glow {
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 30% 30%, rgba(212, 175, 55, 0.08) 0%, transparent 50%);
  pointer-events: none;
}
.sim-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 24px; flex-wrap: wrap; gap: 16px;
}
.sim-title-group {
  display: flex; align-items: center; gap: 16px;
}
.sim-icon {
  width: 52px; height: 52px;
  background: var(--gold-gradient);
  border-radius: var(--radius-md);
  display: grid; place-items: center;
  color: #14100a;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
}
.sim-title {
  font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em;
  background: linear-gradient(120deg, var(--text-0) 60%, var(--gold-bright) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  margin: 0;
}
.sim-subtitle {
  font-size: 0.85rem; color: var(--text-2); font-weight: 500;
}
.sim-live-badge {
  display: flex; align-items: center; gap: 8px;
  background: rgba(46, 160, 67, 0.15);
  border: 1px solid rgba(46, 160, 67, 0.4);
  padding: 6px 14px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em;
  color: var(--up);
  text-transform: uppercase;
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--up);
  animation: pulse 2s ease-in-out infinite;
  box-shadow: 0 0 12px var(--up);
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.9); }
}
.sim-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-bottom: 24px;
}
.sim-stat {
  background: rgba(5, 7, 12, 0.5);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  text-align: center;
}
.sim-stat-label {
  display: block;
  font-size: 0.72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-3);
  margin-bottom: 6px;
}
.sim-stat-value {
  display: block;
  font-family: var(--font-mono); font-size: 1.4rem; font-weight: 800;
  color: var(--text-0);
  letter-spacing: -0.02em;
}
.sim-status {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 16px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-mono); font-size: 1.1rem; font-weight: 800;
  margin-bottom: 20px;
}
.sim-status.sim-profit {
  background: rgba(46, 160, 67, 0.12);
  border: 1px solid rgba(46, 160, 67, 0.35);
  color: var(--up);
  box-shadow: 0 0 40px rgba(46, 160, 67, 0.15);
}
.sim-status.sim-loss {
  background: rgba(248, 81, 73, 0.12);
  border: 1px solid rgba(248, 81, 73, 0.35);
  color: var(--down);
  box-shadow: 0 0 40px rgba(248, 81, 73, 0.15);
}
.sim-disclaimer-box {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 14px 18px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}
.sim-disclaimer {
  font-size: 0.82rem; color: var(--gold-bright); margin: 0;
  font-weight: 500;
}
.sim-cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--gold-gradient);
  color: #14100a;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 800; font-size: 0.95rem;
  transition: all 0.3s var(--ease-out-expo);
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
}
.sim-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.4);
}

/* ═══════════════ Article Page — Bloomberg/FT Level ═══════════════ */
.article-page {
  max-width: 1200px; margin: 0 auto;
}
.article-header {
  margin-bottom: 32px; padding-bottom: 24px;
  border-bottom: 1px solid var(--border-gold);
}
.article-meta-top {
  display: flex; align-items: center; gap: 16px; margin-bottom: 16px; flex-wrap: wrap;
}
.article-symbol {
  font-family: var(--font-mono); font-size: 0.9rem; font-weight: 800;
  color: var(--gold); background: var(--gold-soft);
  padding: 4px 12px; border-radius: 4px;
}
.article-sector {
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--blue);
}
.article-confidence {
  font-size: 0.75rem; font-weight: 700;
  color: var(--text-2);
}
.article-headline {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.15;
  margin-bottom: 12px;
  background: linear-gradient(120deg, var(--text-0) 60%, var(--text-2) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.article-subheadline {
  font-size: 1.1rem; color: var(--text-2); line-height: 1.6;
  max-width: 800px;
}
.article-meta-bottom {
  display: flex; gap: 20px; margin-top: 16px;
  font-size: 0.82rem; color: var(--text-3);
}
.article-layout {
  display: grid; grid-template-columns: 1fr 320px; gap: 40px;
}
.article-main {
  min-width: 0;
}
.article-section {
  margin-bottom: 28px;
}
.article-section-title {
  font-size: 0.85rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--gold);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}
.article-text {
  font-size: 1.05rem; line-height: 1.85;
  color: var(--text-1);
  font-family: Georgia, 'Times New Roman', serif;
}
.article-pullquote {
  margin: 32px 0; padding: 24px 32px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, transparent 100%);
  border-inline-start: 4px solid var(--gold);
  font-size: 1.35rem; font-weight: 700; font-style: italic;
  line-height: 1.5; color: var(--text-0);
  position: relative;
}
.article-pullquote .quote-icon {
  width: 32px; height: 32px;
  color: var(--gold); opacity: 0.4;
  position: absolute; top: 16px; inset-inline-start: 12px;
}
.article-bottom-line {
  background: rgba(46, 160, 67, 0.06);
  border: 1px solid rgba(46, 160, 67, 0.2);
  border-radius: var(--radius-md);
  padding: 24px 28px;
}
.article-sources {
  margin-top: 40px; padding-top: 24px;
  border-top: 1px solid var(--border);
}
.sources-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 12px;
}
.source-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 16px;
  background: rgba(5, 7, 12, 0.4);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
}
.source-number {
  font-family: var(--font-mono); font-weight: 700;
  color: var(--gold); flex-shrink: 0;
}
.source-content {
  display: flex; flex-direction: column; gap: 4px;
}
.source-publisher {
  font-weight: 700; color: var(--text-0);
}
.source-link {
  color: var(--blue); text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.source-link:hover {
  border-bottom-color: var(--blue);
}
.source-title {
  color: var(--text-1);
}
.source-date {
  font-size: 0.75rem; color: var(--text-3);
  font-family: var(--font-mono);
}
.article-sidebar {
  display: flex; flex-direction: column; gap: 20px;
  position: sticky; top: 100px;
}
.sidebar-card {
  background: var(--surface-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  backdrop-filter: blur(8px);
}
.sidebar-title {
  font-size: 0.78rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--gold);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.sidebar-metrics {
  display: flex; flex-direction: column; gap: 12px;
}
.sidebar-metric {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 12px;
  background: rgba(5, 7, 12, 0.4);
  border-radius: var(--radius-sm);
}
.sidebar-metric.highlight {
  border: 1px solid var(--border-gold);
  background: rgba(212, 175, 55, 0.06);
}
.sm-label {
  font-size: 0.78rem; color: var(--text-2); font-weight: 600;
}
.sm-value {
  font-family: var(--font-mono); font-weight: 700; font-size: 0.92rem;
  color: var(--text-0);
}
.sidebar-confidence {
  text-align: center; padding: 20px 0;
}
.confidence-score-big {
  font-family: var(--font-mono); font-size: 3.5rem; font-weight: 800;
  color: var(--gold-bright);
  text-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
  line-height: 1;
}
.confidence-label {
  font-size: 0.82rem; color: var(--text-2); margin-top: 8px;
  text-transform: uppercase; letter-spacing: 0.1em;
}
.article-footer {
  margin-top: 40px; padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.back-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text-0); font-weight: 700; font-size: 0.95rem;
  transition: all 0.3s var(--ease-out-expo);
  cursor: pointer;
}
.back-btn:hover {
  border-color: var(--gold);
  background: var(--gold-soft);
  transform: translateY(-2px);
}

/* ═══════════════ Layout ═══════════════ */
.app-main { max-width: 1320px; margin: 0 auto; padding: 44px 28px 80px; min-height: 60vh; }

.page-head { margin-bottom: 40px; }
.page-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px;
}
.page-eyebrow::before { content: ""; width: 28px; height: 1.5px; background: var(--gold-gradient); }
.page-title {
  font-size: clamp(1.9rem, 4.5vw, 2.8rem); font-weight: 800;
  letter-spacing: -0.03em; line-height: 1.1;
  background: linear-gradient(120deg, var(--text-0) 60%, var(--text-2) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.page-sub { color: var(--text-2); margin-top: 10px; max-width: 760px; font-size: 1.02rem; line-height: 1.7; }

.section { margin-top: 52px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.section-title {
  font-size: 1.32rem; font-weight: 700; letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 12px;
}
.section-title .t-icon { color: var(--gold); display: inline-flex; filter: drop-shadow(0 2px 8px rgba(212, 175, 55, 0.3)); }
.section-note { font-size: 0.84rem; color: var(--text-3); }

/* ═══════════════ Cards & panels ═══════════════ */
.panel {
  background: var(--surface-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
}
.panel-pad { padding: 26px 28px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.stat-card {
  background: var(--surface-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  position: relative; overflow: hidden;
  transition: all 0.35s var(--ease-out-expo);
  backdrop-filter: blur(8px);
}
.stat-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}
.stat-card::before {
  content: ""; position: absolute; top: 0; inset-inline-start: 0;
  width: 3px; height: 100%; background: var(--accent, var(--gold-gradient)); opacity: 0.9;
}
.stat-card::after {
  content: ""; position: absolute; top: -40px; inset-inline-end: -40px;
  width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.06), transparent 70%);
  pointer-events: none;
}
.stat-label { font-size: 0.74rem; font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.08em; }
.stat-value {
  font-family: var(--font-mono); font-size: 1.65rem; font-weight: 700;
  margin-top: 8px; letter-spacing: -0.02em;
  background: linear-gradient(120deg, var(--text-0) 60%, var(--text-1) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-sub { font-size: 0.8rem; color: var(--text-3); margin-top: 6px; }

/* ═══════════════ Recommendation cards ═══════════════ */
.rec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 24px; }
.rec-card {
  background: linear-gradient(165deg, var(--bg-3) 0%, var(--bg-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  position: relative; overflow: hidden;
  transition: all 0.4s var(--ease-out-expo);
  display: flex; flex-direction: column; gap: 18px;
  box-shadow: var(--shadow-md);
}
.rec-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-xl), var(--shadow-gold);
}
.rec-card::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.03) 0%, transparent 50%);
  opacity: 0; transition: opacity 0.4s;
  pointer-events: none;
}
.rec-card:hover::before { opacity: 1; }
.rec-card::after {
  content: ""; position: absolute; top: -80px; inset-inline-end: -80px;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.08), transparent 65%);
  pointer-events: none;
}
.rec-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.rec-symbol {
  font-family: var(--font-mono); font-size: 1.6rem; font-weight: 800; color: var(--text-0);
  letter-spacing: -0.01em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}
.rec-name { color: var(--text-2); font-size: 0.9rem; margin-top: 3px; }
.rec-sector-tag {
  display: inline-block; font-size: 0.68rem; font-weight: 600;
  color: var(--blue); background: var(--blue-soft);
  padding: 4px 10px; border-radius: 999px; margin-top: 8px;
  border: 1px solid rgba(88, 166, 255, 0.15);
}

/* Score ring — enhanced */
.score-ring-wrap { display: flex; flex-direction: column; align-items: center; gap: 6px; flex-shrink: 0; }
.score-ring { position: relative; width: 64px; height: 64px; }
.score-ring svg { transform: rotate(-90deg); display: block; filter: drop-shadow(0 2px 8px rgba(212, 175, 55, 0.2)); }
.score-ring .ring-track { stroke: rgba(148, 163, 184, 0.12); }
.score-ring .ring-val {
  stroke: url(#goldRing); stroke-linecap: round;
  transition: stroke-dashoffset 1s var(--ease-out-expo);
}
.score-num {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-mono); font-weight: 800; font-size: 1.15rem;
  text-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}
.score-cap {
  font-size: 0.58rem; color: var(--text-3); text-align: center;
  text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600;
}

.rec-thesis {
  font-size: 0.94rem; color: var(--text-1); line-height: 1.75;
  border-inline-start: 3px solid var(--gold);
  padding-inline-start: 16px;
  position: relative;
}
.rec-thesis::before {
  content: ""; position: absolute; inset-inline-start: -3px; top: 0; bottom: 0;
  width: 3px; background: var(--gold-gradient); border-radius: 2px;
}

/* Catalyst with date & source */
.rec-catalyst {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--blue-soft); border: 1px solid rgba(88, 166, 255, 0.18);
  border-radius: var(--radius-sm); padding: 14px 16px;
  font-size: 0.86rem; color: var(--text-1); line-height: 1.6;
  backdrop-filter: blur(4px);
}
.rec-catalyst .c-icon { color: var(--blue); flex-shrink: 0; margin-top: 2px; filter: drop-shadow(0 1px 4px rgba(88, 166, 255, 0.3)); }
.catalyst-content { flex: 1; }
.catalyst-header {
  display: flex; align-items: center; gap: 10px; margin-bottom: 6px; flex-wrap: wrap;
}
.catalyst-kind {
  font-weight: 700; color: var(--blue); text-transform: capitalize; font-size: 0.78rem;
}
.catalyst-date {
  font-size: 0.72rem; color: var(--text-3); font-family: var(--font-mono);
}
.catalyst-source {
  font-size: 0.72rem; color: var(--text-3);
  padding: 2px 8px; background: rgba(148, 163, 184, 0.1); border-radius: 4px;
}
.catalyst-text { line-height: 1.6; }

/* Analysis sections */
.analysis-section {
  background: rgba(5, 7, 12, 0.4);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-top: 8px;
}
.analysis-title {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--gold); margin-bottom: 14px;
}

/* Metrics grid */
.metrics-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.metric-item {
  background: rgba(5, 7, 12, 0.5);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex; flex-direction: column; gap: 4px;
}
.metric-item.highlight {
  border-color: var(--border-gold);
  background: rgba(212, 175, 55, 0.06);
}
.metric-item .metric-label {
  font-size: 0.64rem; color: var(--text-3); text-transform: uppercase;
  letter-spacing: 0.05em; font-weight: 600;
}
.metric-item .metric-value {
  font-family: var(--font-mono); font-weight: 700; font-size: 0.95rem;
  color: var(--text-0);
}

/* Confidence breakdown */
.conf-breakdown { display: flex; flex-direction: column; gap: 10px; }
.conf-row {
  display: flex; align-items: center; gap: 12px;
}
.conf-label {
  flex: 0 0 110px; font-size: 0.78rem; color: var(--text-2); font-weight: 600;
}
.conf-bar-track {
  flex: 1; height: 8px; background: rgba(148, 163, 184, 0.1);
  border-radius: 999px; overflow: hidden;
}
.conf-bar-fill {
  height: 100%; background: var(--gold-gradient);
  border-radius: 999px; transition: width 0.8s var(--ease-out-expo);
}
.conf-value {
  flex: 0 0 50px; text-align: end; font-family: var(--font-mono);
  font-size: 0.78rem; font-weight: 700; color: var(--gold-bright);
}

/* Risks list */
.risks-list {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.risk-tag {
  font-size: 0.76rem; color: var(--down);
  background: var(--down-soft);
  padding: 5px 12px; border-radius: 999px;
  border: 1px solid rgba(248, 81, 73, 0.2);
}

/* Exit strategy */
.exit-strategy { margin-top: 8px; }
.rec-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.rec-num {
  background: rgba(5, 7, 12, 0.6); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px 12px; text-align: center;
  transition: all 0.3s var(--ease-out-expo);
}
.rec-num:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.rec-num .rn-label { font-size: 0.64rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.rec-num .rn-val { font-family: var(--font-mono); font-weight: 700; font-size: 1rem; margin-top: 4px; }
.rec-num .rn-val.gold { color: var(--gold-bright); text-shadow: 0 1px 6px rgba(212, 175, 55, 0.2); }
.rec-num .rn-val.red { color: var(--down); }
.rec-num .rn-val.neutral { color: var(--text-0); }

/* Sparkline */
.sparkline { margin-top: 4px; opacity: 0.85; }
.sparkline svg { display: block; width: 100%; height: 32px; }

/* ═══════════════ Tables ═══════════════ */
.table-wrap {
  overflow-x: auto; border-radius: var(--radius-lg);
  border: 1px solid var(--border); background: var(--surface-glass);
  backdrop-filter: blur(8px);
}
table.data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 720px; }
.data-table thead th {
  text-align: start; padding: 16px 18px;
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-3); border-bottom: 1px solid var(--border-strong);
  background: rgba(5, 7, 12, 0.5);
  white-space: nowrap;
}
.data-table tbody td { padding: 15px 18px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr { transition: all 0.25s var(--ease-out-expo); }
.data-table tbody tr:hover { background: rgba(212, 175, 55, 0.03); }

/* Scan table with expandable rows */
.scan-table .expand-btn {
  width: 32px; height: 32px; border-radius: 8px;
  display: grid; place-items: center;
  color: var(--text-3); background: rgba(148, 163, 184, 0.08);
  transition: all 0.25s var(--ease-out-expo);
}
.scan-table .expand-btn:hover {
  color: var(--gold); background: rgba(212, 175, 55, 0.12);
}
.scan-table .expand-btn.open {
  color: var(--gold); background: rgba(212, 175, 55, 0.15);
}
.scan-details td {
  background: rgba(5, 7, 12, 0.6) !important;
  padding: 0 !important;
}
.scan-details-content {
  padding: 24px 28px;
  border-inline-start: 3px solid var(--gold);
  margin: 8px 16px 16px;
  background: rgba(15, 20, 29, 0.5);
  border-radius: var(--radius-md);
}
.details-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.details-section h5 {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--gold); margin-bottom: 12px;
}

/* Funnel breakdown */
.funnel-breakdown { display: flex; flex-direction: column; gap: 8px; }
.funnel-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; background: rgba(5, 7, 12, 0.4);
  border-radius: var(--radius-sm); font-size: 0.82rem;
}
.funnel-row.pass { border-inline-start: 3px solid var(--up); }
.funnel-row.fail { border-inline-start: 3px solid var(--down); }
.funnel-row.na { border-inline-start: 3px solid var(--text-3); opacity: 0.7; }
.funnel-icon { font-weight: 800; width: 20px; }
.funnel-row.pass .funnel-icon { color: var(--up); }
.funnel-row.fail .funnel-icon { color: var(--down); }
.funnel-row.na .funnel-icon { color: var(--text-3); }
.funnel-name { flex: 0 0 90px; font-weight: 600; color: var(--text-1); }
.funnel-detail { color: var(--text-3); font-size: 0.78rem; }

/* Catalyst & news items */
.catalyst-item, .news-item {
  padding: 10px 12px; background: rgba(5, 7, 12, 0.4);
  border-radius: var(--radius-sm); margin-bottom: 8px;
  display: flex; flex-direction: column; gap: 4px;
}
.catalyst-item .catalyst-kind { font-size: 0.72rem; }
.catalyst-item .catalyst-headline { font-size: 0.84rem; color: var(--text-1); line-height: 1.5; }
.catalyst-item .catalyst-source { font-size: 0.7rem; color: var(--text-3); }
.news-item .news-title { font-size: 0.82rem; color: var(--text-1); line-height: 1.5; }
.news-item .news-source { font-size: 0.7rem; color: var(--text-3); }

/* Mini metrics */
.mini-metrics { display: flex; flex-direction: column; gap: 10px; }
.mini-metric {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 12px; background: rgba(5, 7, 12, 0.4);
  border-radius: var(--radius-sm); font-size: 0.84rem;
}
.mini-metric span:first-child { color: var(--text-2); }
.mini-metric span:last-child { font-family: var(--font-mono); font-weight: 700; color: var(--text-0); }

.no-data { color: var(--text-3); font-size: 0.84rem; font-style: italic; }

/* ═══════════════ Pills & badges ═══════════════ */
.t-symbol { font-family: var(--font-mono); font-weight: 700; color: var(--text-0); font-size: 0.95rem; }
.t-name { color: var(--text-2); font-size: 0.8rem; margin-top: 1px; }
.t-mono { font-family: var(--font-mono); }

.pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-mono); font-weight: 700; font-size: 0.8rem;
  padding: 4px 12px; border-radius: 999px; white-space: nowrap;
  transition: all 0.25s var(--ease-out-expo);
}
.pill-up { color: var(--up); background: var(--up-soft); box-shadow: 0 0 20px var(--up-glow); }
.pill-down { color: var(--down); background: var(--down-soft); box-shadow: 0 0 20px var(--down-glow); }
.pill-neutral { color: var(--text-2); background: rgba(148, 163, 184, 0.1); }

.check-dot {
  display: inline-flex; width: 22px; height: 22px; border-radius: 50%;
  align-items: center; justify-content: center; font-size: 0.72rem; font-weight: 800;
  transition: all 0.25s var(--ease-out-expo);
}
.check-dot:hover { transform: scale(1.15); }
.check-pass { color: var(--up); background: var(--up-soft); box-shadow: 0 0 12px var(--up-glow); }
.check-fail { color: var(--down); background: var(--down-soft); box-shadow: 0 0 12px var(--down-glow); }
.check-na { color: var(--text-3); background: rgba(148, 163, 184, 0.1); }

.funnel-cell { display: flex; gap: 5px; }
.funnel-cell .check-dot { cursor: help; }

/* ═══════════════ Chart ═══════════════ */
.chart-panel { padding: 28px; }
.chart-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.chart-legend { display: flex; gap: 20px; font-size: 0.82rem; color: var(--text-2); }
.legend-item { display: flex; align-items: center; gap: 8px; }
.legend-swatch { width: 20px; height: 3px; border-radius: 2px; }
.legend-swatch.pf { background: var(--gold-gradient); box-shadow: 0 0 8px rgba(212, 175, 55, 0.3); }
.legend-swatch.sp { background: var(--blue); box-shadow: 0 0 8px rgba(88, 166, 255, 0.3); }
.chart-svg { width: 100%; height: auto; display: block; }
.chart-empty { color: var(--text-3); text-align: center; padding: 56px 0; font-size: 0.92rem; }

/* ═══════════════ Archive ═══════════════ */
.archive-day { margin-bottom: 28px; }
.archive-day-head {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 20px 24px; cursor: pointer; user-select: none;
  transition: all 0.3s var(--ease-out-expo);
}
.archive-day-head:hover { background: rgba(212, 175, 55, 0.03); }
.archive-date { font-family: var(--font-mono); font-weight: 700; font-size: 1.08rem; color: var(--gold-bright); }
.archive-day-stats { display: flex; gap: 16px; color: var(--text-2); font-size: 0.84rem; flex-wrap: wrap; }
.archive-chevron { margin-inline-start: auto; color: var(--text-3); transition: transform 0.3s var(--ease-out-expo); }
.archive-day.open .archive-chevron { transform: rotate(180deg); }
.archive-body { display: none; padding: 0 24px 28px; }
.archive-day.open .archive-body { display: block; animation: fadeUp 0.4s var(--ease-out-expo); }

/* ═══════════════ Accuracy — Best Rec & Weekly ═══════════════ */
.best-rec-panel {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, var(--surface-glass) 100%);
  border: 1px solid var(--border-gold);
}
.best-rec-content {
  display: flex; align-items: center; gap: 32px;
}
.best-rec-symbol {
  font-family: var(--font-mono); font-size: 2.4rem; font-weight: 800;
  color: var(--gold-bright); text-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
}
.best-rec-details { display: flex; flex-direction: column; gap: 8px; }
.best-rec-row {
  display: flex; justify-content: space-between; gap: 24px;
  font-size: 0.92rem;
}
.best-rec-row span:first-child { color: var(--text-2); }
.best-rec-row span:last-child { font-family: var(--font-mono); font-weight: 600; }
.best-rec-row.highlight span:last-child { font-size: 1.1rem; font-weight: 800; }

/* Hit rate bar */
.hit-rate-bar {
  position: relative; width: 100px; height: 24px;
  background: rgba(148, 163, 184, 0.1);
  border-radius: 999px; overflow: hidden;
}
.hit-rate-fill {
  position: absolute; inset: 0;
  background: var(--gold-gradient);
  border-radius: 999px; opacity: 0.8;
}
.hit-rate-bar span {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700;
  color: var(--text-0); text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* ═══════════════ Accuracy bars ═══════════════ */
.metric-row { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.metric-row:last-child { border-bottom: none; }
.metric-label { flex: 0 0 220px; color: var(--text-1); font-weight: 600; font-size: 0.94rem; }
.metric-bar-track {
  flex: 1; height: 12px; background: rgba(148, 163, 184, 0.08);
  border-radius: 999px; overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}
.metric-bar-fill {
  height: 100%; border-radius: 999px;
  background: var(--gold-gradient);
  width: 0; transition: width 1.2s var(--ease-out-expo);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}
.metric-bar-fill.blue { background: linear-gradient(90deg, #2f6fb8, var(--blue)); box-shadow: 0 0 20px rgba(88, 166, 255, 0.3); }
.metric-val { flex: 0 0 100px; text-align: end; font-family: var(--font-mono); font-weight: 700; font-size: 0.95rem; }

/* ═══════════════ Misc ═══════════════ */
.empty-state { text-align: center; padding: 72px 28px; color: var(--text-2); }
.empty-state .e-icon { font-size: 2.8rem; margin-bottom: 16px; opacity: 0.5; }

.no-rec-note {
  background: var(--gold-soft); border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: var(--radius-md); padding: 20px 24px;
  color: var(--gold-bright); font-weight: 600;
  display: flex; gap: 14px; align-items: flex-start; line-height: 1.6;
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 24px rgba(212, 175, 55, 0.08);
}

.loading-state { display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 100px 0; color: var(--text-2); }
.spinner {
  width: 48px; height: 48px; border-radius: 50%;
  border: 3px solid rgba(212, 175, 55, 0.15); border-top-color: var(--gold);
  animation: spin 0.8s linear infinite;
  box-shadow: 0 0 24px rgba(212, 175, 55, 0.15);
}
@keyframes spin { to { transform: rotate(360deg); } }

.error-box {
  background: var(--down-soft); border: 1px solid rgba(248, 81, 73, 0.35);
  color: var(--down); border-radius: var(--radius-md);
  padding: 20px 24px; font-size: 0.92rem;
}

/* ═══════════════ Footer ═══════════════ */
.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(5, 7, 12, 0.9);
  margin-top: 48px;
  backdrop-filter: blur(16px);
}
.footer-inner { max-width: 1320px; margin: 0 auto; padding: 32px 28px 40px; }
.disclaimer-box {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--gold-soft); border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: var(--radius-md); padding: 18px 20px;
  margin-bottom: 20px;
  backdrop-filter: blur(4px);
}
.disclaimer-icon { width: 24px; height: 24px; color: var(--gold); flex-shrink: 0; margin-top: 1px; }
.disclaimer-box p { font-size: 0.88rem; color: var(--gold-bright); font-weight: 600; line-height: 1.55; }
.footer-meta { color: var(--text-3); font-size: 0.82rem; display: flex; gap: 12px; flex-wrap: wrap; }
.footer-sep { opacity: 0.4; }

/* ═══════════════ Animations ═══════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-24px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(212, 175, 55, 0.2); }
  50% { box-shadow: 0 0 40px rgba(212, 175, 55, 0.35); }
}
@keyframes countUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.anim-in { animation: fadeUp 0.5s var(--ease-out-expo) both; }
.anim-in-d1 { animation-delay: 0.08s; }
.anim-in-d2 { animation-delay: 0.16s; }
.anim-in-d3 { animation-delay: 0.24s; }
.anim-in-d4 { animation-delay: 0.32s; }

.anim-fade { animation: fadeIn 0.6s var(--ease-out-expo) both; }
.anim-slide-r { animation: slideInRight 0.5s var(--ease-out-expo) both; }
.anim-slide-l { animation: slideInLeft 0.5s var(--ease-out-expo) both; }
.anim-scale { animation: scaleIn 0.4s var(--ease-spring) both; }

.count-up { display: inline-block; animation: countUp 0.5s var(--ease-out-expo); }

/* ═══════════════ Responsive ═══════════════ */
@media (max-width: 900px) {
  .main-nav {
    position: fixed; top: var(--header-h); inset-inline: 0;
    flex-direction: column; background: rgba(5, 7, 12, 0.98);
    border-bottom: 1px solid var(--border-strong);
    padding: 16px 24px 24px; gap: 4px;
    display: none; z-index: 99;
    backdrop-filter: blur(24px);
  }
  .main-nav.open { display: flex; animation: fadeUp 0.3s var(--ease-out-expo); }
  .nav-link { padding: 14px 16px; font-size: 1.02rem; }
  .nav-link.active::after { display: none; }
  .nav-link.active { background: var(--gold-soft); }
  .menu-toggle { display: flex; }
  .header-inner { gap: 16px; padding: 0 20px; }
  .brand-tagline { display: none; }
  .rec-grid { grid-template-columns: 1fr; }
  .metric-label { flex-basis: 140px; font-size: 0.86rem; }
  .app-main { padding: 32px 20px 60px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .details-grid { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .best-rec-content { flex-direction: column; align-items: flex-start; gap: 16px; }
  .sim-banner { padding: 20px 22px; }
  .sim-stats { grid-template-columns: 1fr; gap: 12px; }
  .sim-header { flex-direction: column; align-items: flex-start; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .article-headline { font-size: 1.6rem; }
  .article-pullquote { font-size: 1.1rem; padding: 20px 24px; }
}

@media (max-width: 480px) {
  .brand-name { font-size: 1.15rem; }
  .brand-monogram { width: 38px; height: 38px; }
  .lang-btn { padding: 5px 10px; font-size: 0.72rem; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat-value { font-size: 1.3rem; }
  .page-title { font-size: 1.7rem; }
  .rec-card { padding: 20px; }
  .rec-nums { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .rec-num { padding: 10px 8px; }
  .rec-num .rn-val { font-size: 0.88rem; }
  .metrics-grid { grid-template-columns: 1fr; }
  .conf-label { flex-basis: 80px; font-size: 0.72rem; }
  .scan-details-content { padding: 16px 20px; margin: 8px 12px 12px; }
}

/* ═══════════════ Reduced motion ═══════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
}
