/* ==========================================================================
   PINKBULL INTERNATIONAL DESIGN SYSTEM & THEME
   Inspired by Linear, Stripe, and Zerodha
   ========================================================================== */

:root {
  /* Color Palette: Obsidian Dark Mode */
  --bg-base: #080b11;
  --bg-elevated: #0f1522;
  --bg-card: rgba(18, 24, 38, 0.75);
  --bg-card-hover: rgba(28, 38, 58, 0.85);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(236, 72, 153, 0.35);

  /* Accents */
  --brand-pink: #ec4899;
  --brand-pink-glow: rgba(236, 72, 153, 0.25);
  --brand-gold: #f59e0b;
  --brand-emerald: #10b981;
  --brand-emerald-dim: rgba(16, 185, 129, 0.15);
  --brand-crimson: #ef4444;
  --brand-crimson-dim: rgba(239, 68, 68, 0.15);
  --brand-cyan: #06b6d4;
  --brand-purple: #8b5cf6;

  /* Typography */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Radius & Glass */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --glass-blur: blur(16px);
  --shadow-main: 0 12px 36px -12px rgba(0, 0, 0, 0.6);
}

/* Base Reset & Typography */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Background Ambient Glows */
body::before {
  content: '';
  position: fixed;
  top: -200px;
  left: 20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.12) 0%, rgba(139, 92, 246, 0.05) 50%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  bottom: -200px;
  right: 15%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, rgba(16, 185, 129, 0.04) 50%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

/* Top Navigation Bar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: var(--glass-blur);
  background: rgba(8, 11, 17, 0.85);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.85rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--brand-pink), var(--brand-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  color: #fff;
  box-shadow: 0 0 16px var(--brand-pink-glow);
}

.brand-title {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 40%, var(--brand-pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
  background: rgba(236, 72, 153, 0.15);
  color: var(--brand-pink);
  border: 1px solid rgba(236, 72, 153, 0.3);
  text-transform: uppercase;
}

/* Nav Tabs */
.nav-tabs {
  display: flex;
  gap: 0.4rem;
  background: rgba(18, 24, 38, 0.6);
  padding: 0.3rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.nav-tab {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
}

.nav-tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-tab.active {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(139, 92, 246, 0.2));
  color: #fff;
  border: 1px solid rgba(236, 72, 153, 0.4);
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.15);
}

/* Navbar Right Controls */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-pink), #db2777);
  color: #fff;
  box-shadow: 0 4px 14px var(--brand-pink-glow);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(236, 72, 153, 0.4);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-demo-mode {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(236, 72, 153, 0.2));
  color: var(--brand-gold);
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.btn-demo-mode:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(236, 72, 153, 0.3));
}

/* Live Market Ticker Strip */
.ticker-strip {
  background: rgba(15, 21, 34, 0.9);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.4rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  overflow-x: auto;
  white-space: nowrap;
  font-size: 0.8rem;
}

.ticker-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  color: var(--brand-pink);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--brand-emerald);
  box-shadow: 0 0 8px var(--brand-emerald);
  animation: pulseAnimation 1.8s infinite;
}

@keyframes pulseAnimation {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.ticker-items {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.ticker-symbol {
  font-weight: 600;
  color: var(--text-primary);
}

.ticker-price {
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-secondary);
}

.ticker-badge {
  font-size: 0.7rem;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
}

.badge-positive {
  background: var(--brand-emerald-dim);
  color: var(--brand-emerald);
}

.badge-negative {
  background: var(--brand-crimson-dim);
  color: var(--brand-crimson);
}

.badge-52w {
  background: rgba(245, 158, 11, 0.15);
  color: var(--brand-gold);
  border: 1px solid rgba(245, 158, 11, 0.3);
  font-size: 0.65rem;
}

/* Main Content Container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

/* Tab Views */
.tab-view {
  display: none;
  animation: fadeIn 0.3s ease forwards;
}

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

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hero Section (International Brand View) */
.hero-section {
  text-align: center;
  padding: 4rem 1rem 3rem;
  position: relative;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  background: rgba(236, 72, 153, 0.1);
  border: 1px solid rgba(236, 72, 153, 0.25);
  color: var(--brand-pink);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 30%, var(--brand-pink) 70%, var(--brand-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 750px;
  margin: 0 auto 2.5rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.hero-stat-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: left;
  transition: all var(--transition-fast);
}

.hero-stat-card:hover {
  border-color: rgba(236, 72, 153, 0.3);
  transform: translateY(-2px);
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Dashboard Grid Layout */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.75rem;
}

.dashboard-main {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.dashboard-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

/* Metrics Row */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.metric-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
}

.metric-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-pink), var(--brand-purple));
  opacity: 0.8;
}

.metric-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.metric-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.metric-number {
  font-size: 1.75rem;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.metric-sub {
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Card General */
.card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-main);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Asset Allocation & Chart Styles */
.chart-container {
  position: relative;
  width: 100%;
  height: 260px;
}

.allocation-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.5rem;
  align-items: center;
}

.legend-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.legend-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
}

.legend-color-tag {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  display: inline-block;
  margin-right: 0.5rem;
}

.legend-name {
  color: var(--text-secondary);
}

.legend-value {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  color: var(--text-primary);
}

/* Holdings Table */
.holdings-table-wrap {
  overflow-x: auto;
}

.holdings-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}

.holdings-table th {
  padding: 0.75rem 1rem;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-subtle);
}

.holdings-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.825rem;
}

.holdings-table tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.instrument-title {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: var(--text-primary);
}

.instrument-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
}

/* Concentration Risk Gauges */
.risk-alert-box {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-bottom: 1rem;
}

.risk-alert-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--brand-crimson);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.risk-alert-body {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Copilot Chat & Drawer */
.copilot-container {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 1.5rem;
  height: 720px;
}

.chat-panel {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.chat-header {
  padding: 1rem 1.5rem;
  background: rgba(15, 21, 34, 0.9);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copilot-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.chat-messages {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.message {
  display: flex;
  gap: 0.85rem;
  max-width: 85%;
}

.message.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.message-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  flex-shrink: 0;
}

.avatar-copilot {
  background: linear-gradient(135deg, var(--brand-pink), var(--brand-purple));
  color: #fff;
  box-shadow: 0 0 10px var(--brand-pink-glow);
}

.avatar-user {
  background: #3b82f6;
  color: #fff;
}

.message-content {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.1rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

.message.user .message-content {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.15), rgba(139, 92, 246, 0.15));
  border-color: rgba(236, 72, 153, 0.3);
}

.citation-box {
  margin-top: 0.6rem;
  padding: 0.5rem 0.75rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-sm);
  border-left: 2px solid var(--brand-cyan);
  font-size: 0.75rem;
  color: var(--brand-cyan);
  font-family: 'JetBrains Mono', monospace;
}

/* Prompt Chips */
.quick-prompts {
  padding: 0.75rem 1.5rem;
  background: rgba(15, 21, 34, 0.5);
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  white-space: nowrap;
  border-top: 1px solid var(--border-subtle);
}

.prompt-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.prompt-chip:hover {
  background: rgba(236, 72, 153, 0.15);
  border-color: var(--brand-pink);
  color: #fff;
}

/* Chat Input Bar */
.chat-input-bar {
  padding: 1rem 1.5rem;
  background: rgba(15, 21, 34, 0.9);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  gap: 0.75rem;
}

.chat-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: #fff;
  font-size: 0.875rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.chat-input:focus {
  border-color: var(--brand-pink);
  box-shadow: 0 0 10px var(--brand-pink-glow);
}

/* LMS Curriculum Cards */
.lms-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.lms-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.lms-card:hover {
  border-color: rgba(236, 72, 153, 0.4);
  transform: translateY(-2px);
}

.lms-badge {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--brand-purple);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

/* Warm Capital 4-Min Demo View */
.demo-stage {
  background: linear-gradient(180deg, rgba(15, 21, 34, 0.9), rgba(8, 11, 17, 0.95));
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 0 40px rgba(245, 158, 11, 0.08);
}

.demo-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.timer-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(0, 0, 0, 0.5);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.timer-digits {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand-gold);
}

.agent-demo-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.agent-demo-card {
  background: rgba(18, 24, 38, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.agent-demo-card.active-agent {
  border-color: var(--brand-pink);
  box-shadow: 0 0 20px rgba(236, 72, 153, 0.2);
}

.agent-title {
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.agent-status-tag {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--brand-emerald);
  font-family: 'JetBrains Mono', monospace;
}

/* Screencast High Contrast Mode */
body.screencast-mode {
  --bg-base: #03060a;
  --bg-card: rgba(12, 17, 28, 0.95);
  --text-primary: #ffffff;
  --text-secondary: #cbd5e1;
}

body.screencast-mode .holdings-table td,
body.screencast-mode .stat-value,
body.screencast-mode .metric-number {
  font-weight: 800;
}

/* ==========================================================================
   INSTITUTIONAL CRIMSON BRAND SYSTEM & MONEY STORIES
   ========================================================================== */
.crimson-brand-container {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.crimson-split-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid #e4bdbf;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fbf9f8;
  color: #1b1c1c;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

@media (max-width: 960px) {
  .crimson-split-hero {
    grid-template-columns: 1fr;
  }
}

.crimson-hero-left {
  display: flex;
  flex-direction: column;
  border-right: 1px solid #e4bdbf;
}

@media (max-width: 960px) {
  .crimson-hero-left {
    border-right: none;
    border-bottom: 1px solid #e4bdbf;
  }
}

.crimson-hero-banner {
  background: #d7194a;
  padding: 3.5rem 2.5rem;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
}

.crimson-hero-headline {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 2.75rem;
  line-height: 1.1;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-top: 1rem;
}

@media (max-width: 640px) {
  .crimson-hero-headline {
    font-size: 2rem;
  }
}

.crimson-newsletter-box {
  background: #f5f3f2;
  border-top: 1px solid #e4bdbf;
  padding: 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.crimson-newsletter-title {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #1b1c1c;
  text-transform: uppercase;
}

.crimson-newsletter-desc {
  font-size: 0.875rem;
  color: #5b3f41;
}

.crimson-newsletter-form {
  display: flex;
  gap: 0.75rem;
}

@media (max-width: 600px) {
  .crimson-newsletter-form {
    flex-direction: column;
  }
}

.crimson-input {
  flex: 1;
  background: #ffffff;
  border: 1px solid #e4bdbf;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 0.9rem;
  color: #1b1c1c;
  outline: none;
  transition: border-color 0.2s;
}

.crimson-input:focus {
  border-color: #d7194a;
}

.crimson-btn {
  background: #d7194a;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.crimson-btn:hover {
  background: #b0133c;
}

/* 2x2 Grid Section */
.crimson-grid-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fbf9f8;
}

@media (max-width: 600px) {
  .crimson-grid-2x2 {
    grid-template-columns: 1fr;
  }
}

.crimson-stat-cell {
  padding: 2.25rem 2rem;
  border-bottom: 1px solid #e4bdbf;
  border-right: 1px solid #e4bdbf;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background 0.2s;
  cursor: pointer;
}

.crimson-stat-cell:nth-child(2n) {
  border-right: none;
}

.crimson-stat-cell:nth-child(3),
.crimson-stat-cell:nth-child(4) {
  border-bottom: none;
}

.crimson-stat-cell:hover {
  background: #f5f3f2;
}

.crimson-stat-num {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 3rem;
  font-weight: 700;
  color: #1b1c1c;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.crimson-stat-cell:hover .crimson-stat-num {
  color: #d7194a;
}

.crimson-stat-label {
  font-size: 0.85rem;
  color: #5b3f41;
  font-weight: 500;
}

/* Money Stories Section */
.crimson-stories-section {
  background: #f5f3f2;
  border: 1px solid #e4bdbf;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.crimson-stories-header {
  background: #fbf9f8;
  border-bottom: 1px solid #e4bdbf;
  padding: 1.75rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.crimson-stories-title {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 2rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #1b1c1c;
  letter-spacing: -0.02em;
}

.crimson-stories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #fbf9f8;
}

@media (max-width: 900px) {
  .crimson-stories-grid {
    grid-template-columns: 1fr;
  }
}

.crimson-story-card {
  padding: 2rem;
  border-right: 1px solid #e4bdbf;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: #fbf9f8;
  cursor: pointer;
  transition: all 0.2s;
}

@media (max-width: 900px) {
  .crimson-story-card {
    border-right: none;
    border-bottom: 1px solid #e4bdbf;
  }
}

.crimson-story-card:last-child {
  border-right: none;
  border-bottom: none;
}

.crimson-story-card:hover {
  background: #efedec;
}

.crimson-story-tag {
  color: #d7194a;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.crimson-story-heading {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #1b1c1c;
  line-height: 1.25;
  transition: color 0.2s;
}

.crimson-story-card:hover .crimson-story-heading {
  color: #d7194a;
}

.crimson-story-preview {
  font-size: 0.875rem;
  color: #5b3f41;
  line-height: 1.6;
}

.crimson-story-link {
  margin-top: auto;
  color: #d7194a;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Modal Popup */
.story-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
}

.story-modal-overlay.open {
  display: flex;
}

.story-modal-box {
  background: #fbf9f8;
  border: 1px solid #e4bdbf;
  border-radius: var(--radius-md);
  max-width: 650px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2.5rem;
  color: #1b1c1c;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.story-modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: #5b3f41;
  cursor: pointer;
  line-height: 1;
}

.story-modal-close:hover {
  color: #d7194a;
}

