@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ==========================================================================
   SERQ SAAS DESIGN SYSTEM TOKENS (LIGHT & DARK DUAL THEME)
   ========================================================================== */
:root, [data-theme="light"] {
  --bg-main: #f6f8fb;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f8fafc;
  --bg-glass: rgba(255, 255, 255, 0.94);
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --border-subtle: #e5e9f2;
  --border-accent: rgba(37, 99, 235, 0.35);
  
  --primary: #2563eb;
  --primary-glow: rgba(37, 99, 235, 0.25);
  --accent-cyan: #0284c7;
  --accent-emerald: #059669;
  --accent-emerald-glow: rgba(5, 150, 105, 0.2);
  --accent-gold: #d97706;
  --accent-danger: #dc2626;
  --accent-danger-glow: rgba(220, 38, 38, 0.2);
  
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;
  --heading-color: #0f172a;
  
  --card-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  --card-shadow-hover: 0 10px 25px -4px rgba(15, 23, 42, 0.08), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
  --header-shadow: 0 4px 20px -4px rgba(15, 23, 42, 0.06);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

[data-theme="dark"] {
  --bg-main: #080c16;
  --bg-surface: #0f1523;
  --bg-surface-elevated: #161f33;
  --bg-glass: rgba(15, 21, 35, 0.88);
  --bg-card: #0f1523;
  --bg-card-hover: #161f33;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(59, 130, 246, 0.35);
  
  --primary: #3b82f6;
  --primary-glow: rgba(59, 130, 246, 0.4);
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --accent-emerald-glow: rgba(16, 185, 129, 0.3);
  --accent-gold: #f59e0b;
  --accent-danger: #ef4444;
  --accent-danger-glow: rgba(239, 68, 68, 0.4);
  
  --text-main: #f8fafc;
  --text-muted: #cbd5e1;
  --text-dim: #94a3b8;
  --heading-color: #ffffff;
  
  --card-shadow: 0 8px 25px -4px rgba(0, 0, 0, 0.4);
  --card-shadow-hover: 0 14px 30px -4px rgba(0, 0, 0, 0.6);
  --header-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.5;
  min-height: 100vh;
  padding: 24px 20px 80px;
  transition: background-color 0.25s ease, color 0.25s ease;
}

[data-theme="dark"] body {
  background-image: 
    radial-gradient(at 10% 20%, rgba(59, 130, 246, 0.12) 0px, transparent 40%),
    radial-gradient(at 90% 10%, rgba(16, 185, 129, 0.1) 0px, transparent 35%),
    radial-gradient(at 50% 90%, rgba(239, 68, 68, 0.08) 0px, transparent 40%);
}

[data-theme="light"] body {
  background-image: 
    radial-gradient(at 0% 0%, rgba(37, 99, 235, 0.03) 0px, transparent 45%),
    radial-gradient(at 100% 0%, rgba(16, 185, 129, 0.03) 0px, transparent 45%);
}

.app-container {
  max-width: 1320px;
  margin: 0 auto;
}

/* Header & Brand */
header.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 24px;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  box-shadow: var(--header-shadow);
  transition: all 0.25s ease;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo-badge {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 3px 10px rgba(220, 38, 38, 0.25));
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-logo-badge:hover .brand-logo-img {
  transform: scale(1.08) rotate(2deg);
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
}

.brand-name-red {
  background: linear-gradient(135deg, #ef4444 0%, #ea580c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
}

.brand-name-blue {
  color: #0f172a;
  font-weight: 900;
  transition: color 0.2s ease;
}

[data-theme="dark"] .brand-name-blue {
  color: #38bdf8;
}

.brand-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.header-status-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.28);
  color: #059669;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

[data-theme="dark"] .pulse-badge {
  color: #34d399;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10b981;
  animation: pulse-glow 1.5s infinite;
}

@keyframes pulse-glow {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.7; }
}

/* System Live Health Status Dot (Immediate Left of TR EN) */
.system-status-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.system-status-indicator:hover {
  transform: scale(1.15);
}

.system-health-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.system-health-dot.status-green {
  background-color: #10b981;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.9), 0 0 4px #10b981;
  animation: pulse-dot-green 1.8s infinite ease-in-out;
}

.system-health-dot.status-red {
  background-color: #ef4444;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.95), 0 0 4px #ef4444;
  animation: pulse-dot-red 1s infinite ease-in-out;
}

@keyframes pulse-dot-green {
  0% { transform: scale(0.92); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.75); }
  70% { transform: scale(1.08); box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.92); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes pulse-dot-red {
  0% { transform: scale(0.92); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.85); }
  70% { transform: scale(1.12); box-shadow: 0 0 0 9px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.92); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.sound-toggle-btn,
.theme-toggle-btn {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 7px 15px;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  font-family: inherit;
}

.sound-toggle-btn:hover,
.theme-toggle-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 15px var(--primary-glow);
  transform: translateY(-1px);
}

/* Navigation Tabs */
.nav-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 24px;
  scrollbar-width: none;
}

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

.tab-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-btn:hover {
  background: var(--bg-surface-elevated);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.2);
}

.tab-btn.active {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(16, 185, 129, 0.15));
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.25);
}

.tab-badge {
  background: var(--accent-danger);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

/* Sport Selector Pills */
.sport-pills-bar {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(15, 23, 42, 0.7);
  padding: 4px 6px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.sport-pill-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sport-pill-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.sport-pill-btn.active {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-color: #3b82f6;
  color: #ffffff;
  box-shadow: 0 0 16px rgba(37, 99, 235, 0.45);
}

/* Tab Content Panels */
.tab-pane {
  display: none;
  animation: fadeIn 0.3s ease;
}

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

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

/* Alert Banner Section */
.radar-hero {
  background: linear-gradient(135deg, rgba(254, 242, 242, 0.95), rgba(255, 255, 255, 0.95));
  border: 1px solid rgba(252, 165, 165, 0.6);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  box-shadow: var(--card-shadow);
}

.radar-hero-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: #dc2626;
  display: flex;
  align-items: center;
  gap: 10px;
}

[data-theme="dark"] .radar-hero {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(15, 23, 42, 0.8));
  border: 1px solid rgba(239, 68, 68, 0.3);
}

[data-theme="dark"] .radar-hero-title {
  color: #fca5a5;
}

.radar-hero-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 20px;
}

.alert-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.alert-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.alert-card.critical {
  border-color: rgba(239, 68, 68, 0.6);
  background: linear-gradient(145deg, #161019, #0f1523);
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.15);
}

.card-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.league-tag {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.minute-badge {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 5px;
}

.bet365-priority-badge {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(16, 185, 129, 0.2));
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #fbbf24;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.76rem;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.25);
}

.odds-api-badge {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(59, 130, 246, 0.2));
  border: 1px solid rgba(6, 182, 212, 0.4);
  color: #38bdf8;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.72rem;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.api-sports-badge {
  background: rgba(148, 163, 184, 0.15);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #cbd5e1;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.odds-strip {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin: 12px 0 6px;
}

.odds-label {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-muted);
  display: block;
  margin-bottom: 6px;
}

.odds-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.odds-pill {
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 2px 7px;
  border-radius: 6px;
  color: var(--text-main);
}

.odds-pill strong {
  color: #38bdf8;
  font-weight: 800;
}

.teams-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  gap: 12px;
}

.team-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.match-score {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: #60a5fa;
  background: rgba(37, 99, 235, 0.15);
  padding: 4px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Pressure Gauge / Meter */
.threat-meter-container {
  margin: 16px 0;
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.meter-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.threat-score-pill {
  font-weight: 800;
  font-size: 0.95rem;
}

.threat-score-pill.critical { color: #f87171; }
.threat-score-pill.high { color: #fbbf24; }
.threat-score-pill.medium { color: #60a5fa; }

.meter-bar-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.meter-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.meter-bar-fill.critical {
  background: linear-gradient(to right, #f59e0b, #ef4444);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.6);
}

.meter-bar-fill.high {
  background: linear-gradient(to right, #3b82f6, #f59e0b);
}

.meter-bar-fill.medium {
  background: linear-gradient(to right, #10b981, #3b82f6);
}

/* Stats Comparison Bar (Bet365 Style) */
.stat-comparison-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 14px 0;
}

.stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
}

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

.stat-bars-duo {
  display: flex;
  height: 6px;
  border-radius: 4px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  margin-top: 3px;
}

.stat-bar-home {
  background: #3b82f6;
  height: 100%;
}

.stat-bar-away {
  background: #ef4444;
  height: 100%;
  margin-left: auto;
}

/* Strategy & Recommendation Badge */
.strategy-alert-pill {
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: #93c5fd;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  margin: 12px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.btn-primary, .btn-secondary, .btn-telegram {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  transition: all 0.2s ease;
}

.btn-primary {
  background: #2563eb;
  color: #ffffff;
}

.btn-primary:hover {
  background: #1d4ed8;
}

.btn-telegram {
  background: #0088cc;
  color: #ffffff;
}

.btn-telegram:hover {
  background: #0077b5;
  box-shadow: 0 0 15px rgba(0, 136, 204, 0.4);
}

.btn-secondary {
  background: var(--bg-surface-elevated);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Forms & Inputs */
.form-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-group input, .form-group select {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.9rem;
}

.form-group input:focus, .form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-glow);
}

/* VIP Pricing Cards */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.pricing-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
}

.pricing-card.featured {
  border-color: var(--accent-gold);
  background: linear-gradient(160deg, rgba(245, 158, 11, 0.08), var(--bg-surface));
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.15);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--accent-gold);
  color: #000;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.plan-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
}

.plan-price {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 14px 0;
}

.plan-price span {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0 28px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.plan-features li span.check {
  color: var(--accent-emerald);
  font-weight: 700;
}

/* Toast Notification */
#toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #1e293b;
  border: 1px solid var(--primary);
  color: #fff;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  z-index: 9999;
  display: none;
  font-size: 0.9rem;
  font-weight: 600;
  animation: slideIn 0.3s ease;
}

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

/* ==========================================================================
   BET365 BOT MONITOR & HUD STATS
   ========================================================================== */
.bot-monitor-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(8, 12, 22, 0.98));
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 24px;
  box-shadow: 0 10px 35px -5px rgba(0, 0, 0, 0.6), 0 0 20px rgba(245, 158, 11, 0.08);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px);
}

.bot-monitor-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #f59e0b, #10b981, #3b82f6);
}

.bot-monitor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 18px;
}

.bot-monitor-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.bot-status-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.bot-status-icon.running {
  background: rgba(16, 185, 129, 0.2);
  border-color: #10b981;
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.bot-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #fff;
}

.bot-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.bot-status-badge {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.bot-status-badge.running {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid #10b981;
}

.bot-status-badge.stopped {
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.bot-controls-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-bot-action {
  padding: 9px 18px;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-bot-action.start {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0f172a;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.35);
}

.btn-bot-action.start:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

.btn-bot-action.stop {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.35);
}

.btn-bot-action.stop:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5);
}

.btn-bot-subtle {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 9px 15px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-bot-subtle:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* HUD Grid */
.bot-hud-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.bot-hud-box {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s;
}

.bot-hud-box.highlight-success {
  border-color: rgba(16, 185, 129, 0.3);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.08), rgba(15, 23, 42, 0.7));
}

.bot-hud-box.highlight-warning {
  border-color: rgba(239, 68, 68, 0.3);
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.08), rgba(15, 23, 42, 0.7));
}

.bot-hud-box.highlight-cyan {
  border-color: rgba(6, 182, 212, 0.3);
  background: linear-gradient(180deg, rgba(6, 182, 212, 0.08), rgba(15, 23, 42, 0.7));
}

.bot-hud-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.bot-hud-val {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}

.bot-hud-box.highlight-success .bot-hud-val {
  color: #34d399;
}

.bot-hud-box.highlight-warning .bot-hud-val {
  color: #f87171;
}

.bot-hud-box.highlight-cyan .bot-hud-val {
  color: #38bdf8;
}

.bot-hud-sub {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 4px;
}

/* Ticker Strip */
.bot-ticker-strip {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.ticker-col {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
}

.ticker-label {
  font-weight: 700;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

.ticker-value {
  font-weight: 600;
  color: #fbbf24;
}

.step-pulse {
  color: #38bdf8;
}

/* Terminal Console */
.bot-terminal-wrapper {
  margin-top: 16px;
  background: #050811;
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.8);
}

.bot-terminal-topbar {
  background: #090e1d;
  padding: 8px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.terminal-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.t-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.t-dot.red { background: #ef4444; }
.t-dot.yellow { background: #f59e0b; }
.t-dot.green { background: #10b981; }

.t-title {
  margin-left: 8px;
  font-size: 0.75rem;
  font-family: monospace;
  color: var(--text-muted);
}

.btn-terminal-copy {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.2s;
}

.btn-terminal-copy:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.bot-terminal-body {
  padding: 14px 16px;
  height: 220px;
  overflow-y: auto;
  font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 0.82rem;
  line-height: 1.6;
  color: #34d399;
  background: #03050a;
  white-space: pre-wrap;
  word-break: break-all;
}

.bot-terminal-body::-webkit-scrollbar {
  width: 6px;
}

.bot-terminal-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

.t-line {
  margin-bottom: 4px;
}

.t-line.dim {
  color: #64748b;
}

.t-badge-radar {
  color: #34d399;
  font-weight: 700;
}

.t-badge-skip {
  color: #f87171;
  font-weight: 700;
}

.t-badge-delay {
  color: #38bdf8;
}

/* ==========================================================================
   PREDICTION RESULTS & SETTLEMENT TRACKER (TUTAN / KAYBEDENLER)
   ========================================================================== */
.res-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.res-kpi-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.res-kpi-box:hover {
  transform: translateY(-2px);
  border-color: var(--border-accent);
  box-shadow: var(--card-shadow-hover);
}

.res-kpi-box.highlight-success {
  border-left: 4px solid var(--accent-emerald);
}

.res-kpi-box.highlight-danger {
  border-left: 4px solid var(--accent-danger);
}

.res-kpi-box.highlight-cyan {
  border-left: 4px solid var(--accent-cyan);
}

.res-kpi-box.highlight-gold {
  border-left: 4px solid var(--accent-gold);
}

.res-kpi-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.res-kpi-val {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
  margin-bottom: 4px;
}

.res-kpi-box.highlight-success .res-kpi-val { color: var(--accent-emerald); }
.res-kpi-box.highlight-danger .res-kpi-val { color: var(--accent-danger); }
.res-kpi-box.highlight-cyan .res-kpi-val { color: var(--accent-cyan); }
.res-kpi-box.highlight-gold .res-kpi-val { color: var(--accent-gold); }

.res-kpi-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.res-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-subtle);
  padding: 8px 12px;
  border-radius: var(--radius-md);
  margin-bottom: 22px;
}

.res-filter-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.res-filter-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.res-filter-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.res-filter-btn.active {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.4);
}

.res-filter-btn[data-res-filter="won"].active {
  background: #10b981;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

.res-filter-btn[data-res-filter="lost"].active {
  background: #ef4444;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.4);
}

/* Result Card */
.result-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}

.result-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.result-card.won {
  border-color: rgba(16, 185, 129, 0.5);
  background: linear-gradient(155deg, rgba(16, 185, 129, 0.08), rgba(15, 23, 42, 0.95));
}

.result-card.lost {
  border-color: rgba(239, 68, 68, 0.3);
  background: linear-gradient(155deg, rgba(239, 68, 68, 0.05), rgba(15, 23, 42, 0.95));
  opacity: 0.85;
}

.result-card.pending {
  border-color: rgba(6, 182, 212, 0.5);
  background: linear-gradient(155deg, rgba(6, 182, 212, 0.08), rgba(15, 23, 42, 0.95));
}

.result-status-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.result-badge {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.result-badge.won {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.result-badge.lost {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.result-badge.pending {
  background: rgba(6, 182, 212, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(6, 182, 212, 0.4);
  animation: pulse 2s infinite ease-in-out;
}

.result-score-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin: 12px 0;
}

.result-score-item {
  display: flex;
  flex-direction: column;
}

.result-score-lbl {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}

.result-score-val {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
}

.result-outcome-pill {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
}

.result-outcome-pill.won {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.result-outcome-pill.lost {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.result-outcome-pill.pending {
  background: rgba(6, 182, 212, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.result-detail-text {
  font-size: 0.83rem;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.03);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  margin-top: 8px;
  line-height: 1.4;
  border-left: 3px solid rgba(255, 255, 255, 0.15);
}

.result-card.won .result-detail-text {
  border-left-color: #10b981;
  color: #d1fae5;
}

.result-card.lost .result-detail-text {
  border-left-color: #ef4444;
  color: #fee2e2;
}

.result-card.pending .result-detail-text {
  border-left-color: #06b6d4;
  color: #cffafe;
}

/* ==========================================================================
   Quick Filter Chips (Mobile & Desktop)
   ========================================================================== */
.match-quick-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.match-quick-filters::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.filter-chip:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--border-accent);
  color: var(--text-main);
  transform: translateY(-1px);
}

.filter-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 14px var(--primary-glow);
}

/* ==========================================================================
   Mobile Bottom Navigation Bar
   ========================================================================== */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-subtle);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
  justify-content: space-around;
  align-items: center;
}

[data-theme="dark"] .mobile-bottom-nav {
  box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.65);
}

.mob-nav-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 12px;
  position: relative;
  transition: all 0.2s ease;
  flex: 1;
  min-width: 0;
}

.mob-nav-btn:active {
  transform: scale(0.94);
}

.mob-nav-btn.active {
  color: var(--primary);
  background: rgba(37, 99, 235, 0.1);
}

[data-theme="dark"] .mob-nav-btn.active {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
}

.mob-nav-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.mob-nav-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.mob-badge {
  position: absolute;
  top: 2px;
  right: calc(50% - 18px);
  background: #ef4444;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 999px;
  line-height: 1.2;
  border: 1px solid rgba(0, 0, 0, 0.5);
}

.mob-badge.won {
  background: #10b981;
}

/* ==========================================================================
   Responsive Media Queries (Mobile & Tablet)
   ========================================================================== */
@media (max-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
  }
  .bot-hud-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .res-kpi-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  body {
    padding: 14px 12px calc(84px + env(safe-area-inset-bottom, 0px));
  }
  
  .mobile-bottom-nav {
    display: flex;
  }

  header.app-header {
    padding: 14px 16px;
    margin-bottom: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .brand-wrapper {
    justify-content: flex-start;
  }

  .brand-title {
    font-size: 1.35rem;
  }

  .brand-subtitle {
    font-size: 0.78rem;
  }

  .header-status-group {
    justify-content: space-between;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .header-status-group::-webkit-scrollbar {
    display: none;
  }

  .header-status-group button, 
  .header-status-group .pulse-badge {
    font-size: 0.75rem;
    padding: 6px 10px;
    white-space: nowrap;
  }

  /* Desktop tabs bar becomes horizontally scrollable pill strip on mobile */
  .nav-tabs {
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 16px;
    flex-wrap: nowrap;
    gap: 8px;
  }

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

  .tab-btn {
    white-space: nowrap;
    padding: 8px 14px;
    font-size: 0.82rem;
    flex-shrink: 0;
  }

  .cards-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .bot-monitor-card {
    padding: 16px;
    margin-bottom: 18px;
  }

  .bot-monitor-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .bot-controls-group {
    width: 100%;
    display: flex;
    gap: 8px;
  }

  .bot-controls-group button {
    flex: 1;
    padding: 9px 12px;
    font-size: 0.8rem;
  }

  .bot-hud-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .bot-hud-box {
    padding: 10px;
  }

  .bot-hud-val {
    font-size: 1.3rem;
  }

  .bot-hud-label {
    font-size: 0.65rem;
  }

  .bot-ticker-strip {
    flex-direction: column;
    gap: 8px;
    padding: 10px;
  }

  .res-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .res-filter-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .res-filter-group {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .res-filter-group::-webkit-scrollbar {
    display: none;
  }

  .res-filter-btn {
    white-space: nowrap;
    font-size: 0.78rem;
    padding: 6px 12px;
    flex-shrink: 0;
  }

  .teams-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .match-score {
    font-size: 1.4rem;
    padding: 4px 12px;
    flex-shrink: 0;
  }

  .team-name {
    font-size: 1.05rem;
    white-space: normal;
    word-break: break-word;
  }

  .card-actions {
    flex-direction: column;
    gap: 8px;
  }

  .card-actions button {
    width: 100%;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

#ad-slot-sticky-footer {
  display: none !important;
}

@media (max-width: 480px) {
  body {
    padding: 10px 8px calc(80px + env(safe-area-inset-bottom, 0px));
  }

  .brand-logo-badge {
    width: 38px;
    height: 38px;
    font-size: 20px;
  }

  .brand-title {
    font-size: 1.2rem;
  }

  .bot-hud-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .bot-hud-val {
    font-size: 1.15rem;
  }

  .res-kpi-val {
    font-size: 1.2rem;
  }

  .match-score {
    font-size: 1.25rem;
    padding: 3px 10px;
  }

  .odds-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

/* ==========================================================================
   LANGUAGE SWITCHER & INTERNATIONALIZATION STYLES
   ========================================================================== */
.lang-switch-wrap {
  display: inline-flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 2px;
  backdrop-filter: blur(8px);
}

.lang-toggle-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.lang-toggle-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.lang-toggle-btn.active {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
}

/* ==========================================================================
   LEGAL DISCLAIMER TOP BANNER (Tahminler Veri Analizidir)
   ========================================================================== */
.disclaimer-banner {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.12) 0%, rgba(217, 119, 6, 0.08) 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-left: 4px solid #f59e0b;
  border-radius: var(--radius-md);
  padding: 10px 16px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  animation: fadeInDown 0.4s ease-out;
}

.disclaimer-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.disclaimer-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  animation: pulse 2.5s infinite;
}

.disclaimer-text {
  font-size: 0.82rem;
  line-height: 1.45;
  color: #fde68a;
}

.disclaimer-text strong {
  color: #fbbf24;
  font-weight: 700;
}

.disclaimer-dismiss {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fef3c7;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.disclaimer-dismiss:hover {
  background: #f59e0b;
  color: #000;
  transform: translateY(-1px);
}

/* ==========================================================================
   DESKTOP EXECUTIVE HUD (CLEAN KPI DASHBOARD)
   ========================================================================== */
/* ==========================================================================
   DESKTOP EXECUTIVE HUD (SERQ SAAS KPI DASHBOARD CARDS)
   ========================================================================== */
.desktop-exec-hud {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.exec-hud-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--card-shadow);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.exec-hud-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-accent);
  box-shadow: var(--card-shadow-hover);
}

/* SerQ-style Soft Rounded Colored Icon Squares */
.exec-hud-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.exec-hud-card:hover .exec-hud-icon {
  transform: scale(1.06);
}

.exec-hud-card.highlight-gold .exec-hud-icon {
  background: #fffbeb;
  border-color: #fef3c7;
  color: #d97706;
}

.exec-hud-card.highlight-emerald .exec-hud-icon {
  background: #ecfdf5;
  border-color: #d1fae5;
  color: #059669;
}

.exec-hud-card.highlight-blue .exec-hud-icon {
  background: #f0fdf4;
  border-color: #dcfce7;
  color: #16a34a;
}

[data-theme="dark"] .exec-hud-icon {
  background: rgba(37, 99, 235, 0.15);
  border-color: rgba(37, 99, 235, 0.3);
  color: #38bdf8;
}

[data-theme="dark"] .exec-hud-card.highlight-gold .exec-hud-icon {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fbbf24;
}

[data-theme="dark"] .exec-hud-card.highlight-emerald .exec-hud-icon {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.3);
  color: #34d399;
}

[data-theme="dark"] .exec-hud-card.highlight-blue .exec-hud-icon {
  background: rgba(6, 182, 212, 0.15);
  border-color: rgba(6, 182, 212, 0.3);
  color: #22d3ee;
}

.exec-hud-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.exec-hud-val {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.exec-hud-card.highlight-gold .exec-hud-val {
  color: #d97706;
}
[data-theme="dark"] .exec-hud-card.highlight-gold .exec-hud-val {
  color: #fbbf24;
}

.exec-hud-card.highlight-emerald .exec-hud-val {
  color: #059669;
}
[data-theme="dark"] .exec-hud-card.highlight-emerald .exec-hud-val {
  color: #34d399;
}

.exec-hud-card.highlight-blue .exec-hud-val {
  color: #16a34a;
}
[data-theme="dark"] .exec-hud-card.highlight-blue .exec-hud-val {
  color: #38bdf8;
}

.exec-hud-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ==========================================================================
   ENTRY DISCLAIMER MODAL DIALOG
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(3, 7, 18, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.3s ease-out;
}

.modal-dialog {
  background: #0d1527;
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-xl);
  max-width: 580px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 35px rgba(245, 158, 11, 0.15);
  overflow: hidden;
  animation: scaleUp 0.3s ease-out;
}

.modal-header {
  padding: 24px 24px 16px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.08) 0%, transparent 100%);
}

.modal-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.modal-tag {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.modal-tag.ai {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.4);
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.modal-body {
  padding: 20px 24px;
  max-height: 65vh;
  overflow-y: auto;
}

.modal-alert-box {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.modal-alert-box strong {
  display: block;
  font-size: 0.92rem;
  color: #fbbf24;
  margin-bottom: 4px;
}

.modal-alert-box p {
  font-size: 0.82rem;
  color: #fde68a;
  line-height: 1.45;
  margin: 0;
}

.modal-disclaimer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-disclaimer-list li {
  position: relative;
  padding-left: 24px;
  font-size: 0.83rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.modal-disclaimer-list li::before {
  content: "âš ï¸";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.85rem;
}

.modal-disclaimer-list li strong {
  color: var(--text-main);
}

.modal-footer {
  padding: 16px 24px 22px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 16, 30, 0.6);
  display: flex;
  justify-content: flex-end;
}

.modal-btn-confirm {
  width: 100%;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-md);
  padding: 12px 24px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.modal-btn-confirm:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleUp {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 900px) {
  .desktop-exec-hud {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .desktop-exec-hud {
    display: none; /* Keep mobile clean and focused, exactly what user liked! */
  }
  .disclaimer-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .disclaimer-dismiss {
    align-self: flex-end;
  }
}

/* ==========================================================================
   ODDSFOR.ME - VERTICAL MATCH FEED (ALT ALTA & BASÄ°T MAÃ‡ TASARIMI)
   ========================================================================== */

.matches-vertical-feed {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
}

.match-card-vertical {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid rgba(148, 163, 184, 0.35);
  border-radius: var(--radius-md);
  padding: 13px 18px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
  box-shadow: var(--card-shadow);
  margin-bottom: 12px;
}

.match-card-vertical:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--border-accent);
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-1px);
}

.match-card-vertical.critical {
  border-left-color: #ef4444;
}

.match-card-vertical.is-favorite {
  border-left-color: #f59e0b;
}

.match-card-vertical.is-won {
  border-left-color: #10b981;
}

.match-card-vertical.is-lost {
  border-left-color: #f43f5e;
}

.match-card-vertical.is-pending {
  border-left-color: #38bdf8;
}

.match-card-vertical.is-expanded {
  background: var(--bg-surface-elevated);
  border-color: var(--border-accent);
  box-shadow: var(--card-shadow-hover);
}

/* COMPACT LIST ROW (VarsayÄ±lan Sade GÃ¶rÃ¼nÃ¼m: Dakika, TakÄ±mlar, Skor, Tahmin) */
.match-compact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.match-compact-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.match-compact-teams {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-main);
  min-width: 0;
  flex: 1;
}

.match-compact-teams .team-home {
  text-align: right;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-main);
}

.match-compact-teams .team-away {
  text-align: left;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-main);
}

.match-compact-score {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 3px 12px;
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: 1.5px;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .match-compact-score {
  background: rgba(15, 23, 42, 0.95);
  border-color: rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.15);
}

.match-compact-score.flash-goal {
  background: rgba(16, 185, 129, 0.35);
  border-color: #10b981;
  color: #34d399;
  text-shadow: 0 0 10px #10b981;
}

.match-compact-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.minute-badge {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.2px;
}

.minute-badge.second-half {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

.minute-badge.half-time {
  background: #fffbeb;
  border-color: #fde68a;
  color: #b45309;
}

.minute-badge.won {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #047857;
}

.minute-badge.lost {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

.minute-badge.pending {
  background: #f0f9ff;
  border-color: #bae6fd;
  color: #0369a1;
}

[data-theme="dark"] .minute-badge {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
}

[data-theme="dark"] .minute-badge.second-half {
  background: rgba(244, 63, 94, 0.15);
  border-color: rgba(244, 63, 94, 0.4);
  color: #fb7185;
}

[data-theme="dark"] .minute-badge.half-time {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}

[data-theme="dark"] .minute-badge.won {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  color: #34d399;
}

[data-theme="dark"] .minute-badge.lost {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #f87171;
}

[data-theme="dark"] .minute-badge.pending {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.4);
  color: #38bdf8;
}

.c-prediction-pill {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e3a8a;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 4px 13px;
  border-radius: 999px;
  white-space: nowrap;
  max-width: 400px;
  letter-spacing: 0.2px;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.08);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.c-prediction-pill strong {
  color: #1d4ed8;
  font-weight: 800;
}

.c-prediction-pill.alert-mode {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
  box-shadow: 0 1px 3px rgba(245, 158, 11, 0.08);
}

.c-prediction-pill.alert-mode strong {
  color: #b45309;
}

.c-prediction-pill.high-threat {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
  box-shadow: 0 1px 3px rgba(239, 68, 68, 0.08);
}

.c-prediction-pill.high-threat strong {
  color: #dc2626;
}

.c-prediction-pill.won-mode {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}

.c-prediction-pill.won-mode strong {
  color: #059669;
}

.c-prediction-pill.lost-mode {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.c-prediction-pill.lost-mode strong {
  color: #dc2626;
}

[data-theme="dark"] .c-prediction-pill {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.28), rgba(16, 185, 129, 0.2));
  border: 1px solid rgba(59, 130, 246, 0.45);
  color: #e2e8f0;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.15);
}

[data-theme="dark"] .c-prediction-pill strong {
  color: #38bdf8;
}

[data-theme="dark"] .c-prediction-pill.alert-mode {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.25), rgba(245, 158, 11, 0.25));
  border-color: rgba(239, 68, 68, 0.5);
  color: #fef08a;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.2);
}

[data-theme="dark"] .c-prediction-pill.alert-mode strong {
  color: #f87171;
}

[data-theme="dark"] .c-prediction-pill.high-threat {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(239, 68, 68, 0.3));
  border-color: rgba(245, 158, 11, 0.55);
  color: #fef08a;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.25);
}

[data-theme="dark"] .c-prediction-pill.high-threat strong {
  color: #fbbf24;
}

[data-theme="dark"] .c-prediction-pill.won-mode {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.28), rgba(5, 150, 105, 0.28));
  border-color: rgba(16, 185, 129, 0.5);
  color: #ffffff;
}

[data-theme="dark"] .c-prediction-pill.won-mode strong {
  color: #34d399;
}

[data-theme="dark"] .c-prediction-pill.lost-mode {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.38);
  color: #fca5a5;
}

[data-theme="dark"] .c-prediction-pill.lost-mode strong {
  color: #f87171;
}

.c-expand-chevron {
  color: var(--text-dim);
  font-size: 0.8rem;
  transition: transform 0.22s ease, color 0.2s ease;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.c-expand-chevron.open,
.match-card-vertical.is-expanded .c-expand-chevron {
  transform: rotate(180deg);
  color: #38bdf8;
}

/* Status pills for Tab 3 Results */
.res-status-pill {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.res-status-pill.won {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.res-status-pill.lost {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
}

.res-status-pill.pending {
  background: rgba(56, 189, 248, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
}

/* EXPANDABLE DETAILS DRAWER (Sadece TÄ±klanÄ±nca AÃ§Ä±lÄ±r) */
.match-details-drawer {
  display: none;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  animation: fadeInDown 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.match-card-vertical.is-expanded .match-details-drawer {
  display: block;
}

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

.drawer-league-pill {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.alert-reasons-list {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 10px 0 14px;
  padding-left: 18px;
  line-height: 1.6;
}

/* â­ FAVORÄ° BUTONU */
.fav-star-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.35);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 5px 9px;
  border-radius: 8px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.fav-star-btn:hover {
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.5);
  background: rgba(245, 158, 11, 0.15);
  transform: scale(1.15);
}

.fav-star-btn.is-fav {
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.6);
  background: rgba(245, 158, 11, 0.2);
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.8);
  transform: scale(1.05);
}

/* ğŸŸ¢ FAVORÄ°LERDE GOL OLDUÄUNDA YANIP SÃ–NME VE YEÅÄ°L TÄ°K (GOAL FLASH) */
.favorite-goal-flash {
  animation: favoriteGoalFlash 1.1s infinite ease-in-out !important;
  border-color: #10b981 !important;
  border-left: 5px solid #10b981 !important;
}

@keyframes favoriteGoalFlash {
  0%, 100% {
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.25);
    background: var(--bg-surface);
  }
  50% {
    border-color: #10b981;
    box-shadow: 0 0 35px rgba(16, 185, 129, 0.85), inset 0 0 25px rgba(16, 185, 129, 0.2);
    background: rgba(16, 185, 129, 0.14);
  }
}

.fav-goal-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.35), rgba(5, 150, 105, 0.45));
  border: 1px solid #10b981;
  padding: 4px 12px;
  border-radius: 999px;
  color: #34d399;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.85rem;
  animation: goalCheckPulse 0.9s infinite alternate;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.55);
}

@keyframes goalCheckPulse {
  0% { transform: scale(0.96); filter: brightness(1); }
  100% { transform: scale(1.05); filter: brightness(1.3); }
}

.fav-goal-check {
  font-size: 1.15rem;
  line-height: 1;
  color: #10b981;
  filter: drop-shadow(0 0 6px #10b981);
}

.fav-goal-dismiss {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.fav-goal-dismiss:hover {
  color: #ffffff;
}

/* ğŸ¯ VERTICAL TEAMS SCOREBOARD ROW */
.v-teams-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  margin: 12px 0 14px;
}

.v-team-home {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  text-align: right;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v-score-box {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 6px 20px;
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 900;
  color: #f8fafc;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 105px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}

.v-score-box.flash-goal {
  background: rgba(16, 185, 129, 0.35);
  border-color: #10b981;
  color: #34d399;
  text-shadow: 0 0 14px #10b981;
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.6);
  animation: scoreFlashAnim 0.8s infinite alternate;
}

@keyframes scoreFlashAnim {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

.v-team-away {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  text-align: left;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ğŸ“Š COMPACT STATS STRIP */
.v-stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-top: 12px;
}

.v-stat-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.v-stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.v-stat-duo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: #f1f5f9;
}

.v-stat-sep {
  color: var(--text-dim);
  font-size: 0.75rem;
}

.filter-chip-fav.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(217, 119, 6, 0.4)) !important;
  border-color: #f59e0b !important;
  color: #fbbf24 !important;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.35);
}

.btn-test-goal {
  border-color: rgba(16, 185, 129, 0.4) !important;
  color: #34d399 !important;
}

.btn-test-goal:hover {
  background: rgba(16, 185, 129, 0.2) !important;
  border-color: #10b981 !important;
}

@media (max-width: 640px) {
  .match-card-vertical {
    padding: 9px 12px;
  }

  .match-compact-row {
    min-height: 66px;
  }

  .section-title,
  .section-heading {
    letter-spacing: -0.02em;
  }

  button,
  a,
  .filter-chip,
  .sort-pill-btn,
  .tab-btn {
    -webkit-tap-highlight-color: transparent;
  }

  button:focus-visible,
  a:focus-visible {
    outline: 2px solid #60a5fa;
    outline-offset: 3px;
  }

  @media (max-width: 760px) {
    body {
      padding: 12px 10px 76px;
    }

    header.app-header {
      align-items: flex-start;
      padding: 13px 14px;
      border-radius: 16px;
    }

    .header-status-group {
      width: 100%;
      justify-content: flex-start;
    }

    .res-kpi-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sort-buttons-row,
    .filter-chips-row {
      overflow-x: auto;
      flex-wrap: nowrap;
      padding-bottom: 4px;
      scrollbar-width: none;
    }

    .sort-buttons-row::-webkit-scrollbar,
    .filter-chips-row::-webkit-scrollbar {
      display: none;
    }

    .sort-pill-btn,
    .filter-chip {
      flex: 0 0 auto;
    }

    .match-card-vertical {
      border-radius: 14px;
    }
  }

  @media (max-width: 430px) {
    .res-kpi-grid {
      gap: 8px;
    }

    .res-kpi-box {
      min-height: 100px;
      padding: 12px;
    }

    .res-kpi-label {
      font-size: 0.6rem;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      scroll-behavior: auto !important;
      transition-duration: 0.01ms !important;
    }
  }

  /* Final visual hierarchy pass. This intentionally changes presentation only. */
  [data-theme="dark"] body {
    background-color: #050914;
    background-image:
      linear-gradient(180deg, rgba(15, 23, 42, 0.18), transparent 34%),
      radial-gradient(circle at 12% 0%, rgba(37, 99, 235, 0.18), transparent 34%),
      radial-gradient(circle at 92% 12%, rgba(16, 185, 129, 0.1), transparent 30%);
  }

  .app-container {
    max-width: 1360px;
  }

  header.app-header {
    background: rgba(10, 17, 31, 0.88);
    border: 1px solid rgba(96, 165, 250, 0.24);
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.28);
  }

  .brand-logo-badge {
    width: 52px;
    height: 52px;
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(96, 165, 250, 0.24);
    border-radius: 14px;
  }

  .brand-logo-img {
    width: 42px;
    height: 42px;
  }

  .brand-title {
    font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  }

  .res-kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }

  .res-kpi-box {
    min-height: 132px;
    padding: 18px 20px;
    background: linear-gradient(145deg, #121d32 0%, #0b1323 100%);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-top: 2px solid rgba(96, 165, 250, 0.55);
  }

  .res-kpi-box.highlight-success { border-top-color: #10b981; }
  .res-kpi-box.highlight-danger { border-top-color: #ef4444; }
  .res-kpi-box.highlight-cyan { border-top-color: #06b6d4; }

  .res-kpi-val {
    font-size: 2.25rem;
    letter-spacing: -0.045em;
  }

  .sort-pill-btn,
  .filter-chip {
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.2);
  }

  .sort-pill-btn.active,
  .filter-chip.active {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-color: #60a5fa;
    color: #fff;
  }

  .matches-vertical-feed {
    width: 100%;
    max-width: 1120px;
    margin-inline: auto;
    gap: 14px;
  }

  .match-card-vertical {
    min-height: 78px;
    padding: 13px 16px;
    background: linear-gradient(105deg, #101b2e, #0b1424 65%, #0e1c2f);
    border: 1px solid rgba(96, 165, 250, 0.24);
    border-left: 3px solid #2563eb;
    border-radius: 14px;
  }

  .match-card-vertical.critical {
    border-left-color: #f59e0b;
  }

  .match-card-vertical.is-won {
    border-left-color: #10b981;
  }

  .match-card-vertical.is-lost {
    border-left-color: #ef4444;
  }

  .match-card-vertical:hover {
    transform: translateY(-3px);
    border-color: rgba(96, 165, 250, 0.62);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.34);
  }

  @media (max-width: 760px) {
    .res-kpi-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .res-kpi-box {
      min-height: 112px;
      padding: 14px;
    }

    .res-kpi-val {
      font-size: 1.8rem;
    }

    .match-card-vertical {
      min-height: 0;
      padding: 10px 12px;
    }
  }
  .match-compact-row {
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
  }
  .match-compact-left {
    justify-content: space-between;
    width: 100%;
  }
  .match-compact-right {
    justify-content: space-between;
    width: 100%;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
    padding-top: 6px;
  }
  .match-compact-teams {
    font-size: 0.94rem;
  }
  .c-prediction-pill {
    max-width: none;
    font-size: 0.74rem;
    flex: 1;
    text-align: center;
  }
  .v-teams-row {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 8px;
  }
  .v-team-home, .v-team-away {
    text-align: center;
    font-size: 1.1rem;
  }
  .v-score-box {
    justify-self: center;
    font-size: 1.45rem;
    padding: 4px 16px;
    min-width: 90px;
  }
  .v-stats-strip {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .v-stat-cell {
    flex-direction: row;
    justify-content: space-between;
    padding: 0 6px;
  }
}

/* ========================================================
   MONETIZATION, ADS & LEGAL COMPLIANCE STYLES (oddsfor.me)
   ======================================================== */

/* Ad Slot Container (Header Leaderboard 970x90 / 728x90) */
.ad-slot-container {
  margin: 0 auto 20px;
  max-width: 1280px;
  width: 100%;
}

.header-ad-container {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85), rgba(30, 41, 59, 0.75));
  backdrop-filter: blur(12px);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.header-ad-container:hover {
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 10px 30px -6px rgba(245, 158, 11, 0.15);
}

.ad-label-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.7rem;
}

.ad-label-pill {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.ad-config-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 0.72rem;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  transition: color 0.2s;
}

.ad-config-btn:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.06);
}

/* Affiliate / Custom Banner Inner Display */
.ad-banner-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  gap: 16px;
  flex-wrap: wrap;
}

.ad-banner-content {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ad-banner-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #f59e0b, #d97706);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.4);
  flex-shrink: 0;
}

.ad-banner-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ad-banner-desc {
  font-size: 0.82rem;
  color: #cbd5e1;
  margin-top: 2px;
}

.ad-banner-cta {
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
}

.ad-banner-link:hover .ad-banner-cta {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 6px 22px rgba(245, 158, 11, 0.6);
}

/* In-Feed Native Ad Between Matches */
.match-infeed-ad {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
  transition: all 0.25s ease;
  cursor: pointer;
}

.match-infeed-ad:hover {
  border-color: #10b981;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.2);
}

.infeed-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.infeed-badge-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #10b981, #059669);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.4);
  flex-shrink: 0;
}

.infeed-text-col {
  display: flex;
  flex-direction: column;
}

.infeed-tag {
  font-size: 0.68rem;
  font-weight: 700;
  color: #34d399;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.infeed-title {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 700;
  color: #f8fafc;
}

.infeed-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.infeed-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.infeed-cta-btn {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

/* Sticky Bottom Ad Bar - Completely disabled to prevent covering mobile UI */
.ad-slot-sticky,
#ad-slot-sticky-footer {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
}

.ad-sticky-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.ad-sticky-tag {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(59, 130, 246, 0.3);
  text-transform: uppercase;
  flex-shrink: 0;
}

.ad-sticky-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  flex: 1;
  gap: 12px;
}

.ad-sticky-text {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f8fafc;
  font-size: 0.88rem;
}

.ad-sticky-text strong {
  color: #fbbf24;
}

.ad-sticky-cta {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}

.ad-sticky-close {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-dim);
  width: 26px;
  height: 26px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: all 0.2s;
  flex-shrink: 0;
}

.ad-sticky-close:hover {
  background: rgba(239, 68, 68, 0.3);
  color: #f87171;
}

@media (max-width: 768px) {
  .ad-slot-sticky {
    bottom: 60px; /* Above mobile bottom navigation */
    padding: 6px 10px;
  }
  .ad-sticky-text {
    font-size: 0.78rem;
  }
  .header-ad-container {
    padding: 10px 12px;
  }
  .ad-banner-icon {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
  }
  .ad-banner-title {
    font-size: 0.9rem;
  }
  .ad-banner-desc {
    display: none;
  }
  .ad-banner-cta {
    padding: 6px 12px;
    font-size: 0.78rem;
  }
}

/* ========================================================
   MODERN FOOTER & LEGAL COMPLIANCE
   ======================================================== */
.app-footer {
  margin-top: 50px;
  padding: 40px 24px 80px;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.9) 30%, #070a12 100%);
  border-top: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 720px;
  margin: 0 auto 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-brand-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
}

.footer-brand-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-badges {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.f-badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  color: var(--text-dim);
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  max-width: 900px;
  margin: 0 auto 36px;
  padding: 24px;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  color: #f1f5f9;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.84rem;
  transition: color 0.2s;
  display: inline-block;
}

.footer-col a:hover {
  color: #38bdf8;
  transform: translateX(2px);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 20px;
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* Cookie Consent Bar */
.cookie-consent-bar {
  position: fixed;
  bottom: 24px;
  left: 20px;
  right: 20px;
  max-width: 980px;
  margin: 0 auto;
  z-index: 1002;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7), 0 0 20px rgba(16, 185, 129, 0.2);
  animation: slideUpCookie 0.4s ease-out;
}

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

.cookie-consent-content {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-main);
  line-height: 1.5;
}

.cookie-consent-content a {
  color: #34d399;
  text-decoration: underline;
}

.cookie-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.cookie-btn-accept {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  border: none;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
  transition: transform 0.2s;
}

.cookie-btn-accept:hover {
  transform: scale(1.03);
}

@media (max-width: 640px) {
  .cookie-consent-bar {
    flex-direction: column;
    bottom: 70px;
    padding: 12px 14px;
  }
  .cookie-btn-accept {
    width: 100%;
  }
}

/* ========================================================
   MATCH SORTING TOOLBAR & LIVE TRACKER MODAL STYLES
   ======================================================== */

.match-sort-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  margin: 12px 0 16px;
  flex-wrap: wrap;
}

.sort-label-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sort-buttons-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sort-pill-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.sort-pill-btn:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--border-accent);
  color: var(--text-main);
  transform: translateY(-1px);
}

.sort-pill-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 10px var(--primary-glow);
}

.btn-open-tracker {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.btn-open-tracker:hover {
  background: rgba(16, 185, 129, 0.3);
  border-color: #10b981;
  color: #fff;
  transform: scale(1.02);
}

/* Modal Specific */
.tracker-modal-dialog {
  max-width: 820px;
  width: 95%;
  background: var(--bg-surface);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(56, 189, 248, 0.15);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.tracker-provider-nav {
  display: flex;
  gap: 8px;
  padding: 12px 18px;
  background: rgba(15, 23, 42, 0.8);
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
}

.provider-tab-btn {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.provider-tab-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.provider-tab-btn.active {
  background: var(--bg-surface-elevated);
  border-color: #38bdf8;
  color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.2);
}

.tracker-stage-box {
  padding: 20px;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tracker-pitch-canvas {
  background: linear-gradient(180deg, #134e4a 0%, #064e3b 100%);
  border: 2px solid rgba(52, 211, 153, 0.3);
  border-radius: var(--radius-md);
  padding: 24px 18px;
  position: relative;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.5);
}

.pitch-score-banner {
  text-align: center;
  margin-bottom: 20px;
}

.pitch-score-nums {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 2px;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

.pitch-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.pitch-stat-card {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 10px;
  text-align: center;
}

.pitch-stat-lbl {
  font-size: 0.72rem;
  color: #94a3b8;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.pitch-stat-vals {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  color: #f8fafc;
}

.tracker-external-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: rgba(15, 23, 42, 0.7);
  padding: 12px 18px;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

/* ==========================================================================
   GOLDEN WINNING MATCHES & AI PRIORITY STYLES
   ========================================================================== */
.golden-win-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  white-space: nowrap;
  letter-spacing: 0.3px;
  box-shadow: 0 1px 3px rgba(245, 158, 11, 0.1);
}

.golden-win-tag.sec-half {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

[data-theme="dark"] .golden-win-tag {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(217, 119, 6, 0.35));
  color: #fef08a;
  border: 1px solid rgba(245, 158, 11, 0.5);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.25);
}

[data-theme="dark"] .golden-win-tag.sec-half {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(16, 185, 129, 0.25));
  color: #a7f3d0;
  border: 1px solid rgba(16, 185, 129, 0.45);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.match-card-vertical.is-golden-win {
  border-color: rgba(245, 158, 11, 0.5) !important;
  background: linear-gradient(180deg, rgba(254, 243, 199, 0.45) 0%, #ffffff 100%) !important;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.1) !important;
}

[data-theme="dark"] .match-card-vertical.is-golden-win {
  border-color: rgba(245, 158, 11, 0.45) !important;
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.08) 0%, rgba(15, 23, 42, 0.85) 100%) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4) !important;
}

.winning-factors-box {
  background: #f8fafc;
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-top: 10px;
}

[data-theme="dark"] .winning-factors-box {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

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

.winning-factors-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 800;
  color: #b45309;
  letter-spacing: 0.5px;
}

[data-theme="dark"] .winning-factors-title {
  color: #fbbf24;
}

.winning-rate-badge {
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(16, 185, 129, 0.18);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

[data-theme="dark"] .winning-rate-badge {
  color: #34d399;
}

.winning-factors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px;
}

.wf-item {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
}

[data-theme="dark"] .wf-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.wf-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-bottom: 3px;
}

.wf-val {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
}

.filter-chip-gold {
  background: #fef3c7 !important;
  color: #92400e !important;
  border: 1px solid #fde68a !important;
  font-weight: 700 !important;
}

.filter-chip-gold.active {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3) !important;
}

[data-theme="dark"] .filter-chip-gold {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.25)) !important;
  color: #fef08a !important;
  border: 1px solid rgba(245, 158, 11, 0.5) !important;
}

[data-theme="dark"] .filter-chip-gold.active {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  color: #000 !important;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.5) !important;
}

/* ==========================================================================
   SEO KNOWLEDGE & FAQ SECTION STYLING (Googlebot Content Richness)
   ========================================================================== */
.seo-knowledge-section {
  margin: 32px 0 20px 0;
  padding: 28px 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
}

.seo-knowledge-head {
  margin-bottom: 20px;
}

.seo-knowledge-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.seo-knowledge-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 10px 0;
  line-height: 1.3;
}

.seo-knowledge-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0 0 20px 0;
}

.seo-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.seo-feature-card {
  background: var(--bg-surface-elevated, rgba(30, 41, 59, 0.35));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: border-color 0.2s ease;
}

.seo-feature-card:hover {
  border-color: var(--border-accent);
}

.seo-feature-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 6px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.seo-feature-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

.seo-faq-wrap {
  border-top: 1px solid var(--border-subtle);
  padding-top: 20px;
}

.seo-faq-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 14px 0;
}

.seo-faq-item {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  overflow: hidden;
  background: var(--bg-surface-elevated, rgba(15, 23, 42, 0.4));
}

.seo-faq-item summary {
  padding: 12px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.seo-faq-item summary::-webkit-details-marker {
  display: none;
}

.seo-faq-item summary::after {
  content: "+";
  font-size: 1.2rem;
  color: #38bdf8;
  font-weight: 700;
  transition: transform 0.2s ease;
}

.seo-faq-item[open] summary::after {
  transform: rotate(45deg);
}

.seo-faq-body {
  padding: 0 16px 14px 16px;
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ========================================================
   ADSENSE & TAHMÄ°NÄ° GÃ–R (CLICK-TO-REVEAL) DESIGN
   ======================================================== */
.btn-unlock-prediction {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: #ffffff !important;
  border: 1px solid rgba(52, 211, 153, 0.4);
  border-radius: 8px;
  padding: 7px 13px;
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-unlock-prediction:hover {
  background: linear-gradient(135deg, #047857 0%, #059669 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.45);
}

.btn-unlock-prediction.active {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8 !important;
  box-shadow: none;
}

.unlock-score-pill {
  background: rgba(0, 0, 0, 0.28);
  border-radius: 4px;
  padding: 2px 5px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fef08a;
}

.revealed-prediction-banner {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.14) 0%, rgba(6, 78, 59, 0.28) 100%);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 12px;
}

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

.rpb-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rpb-title {
  font-size: 0.86rem;
  font-weight: 800;
  color: #34d399;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.rpb-rate-badge {
  background: #10b981;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
}

.rpb-prediction-box {
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(52, 211, 153, 0.35);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.rpb-timing-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.8rem;
  color: #cbd5e1;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.adsense-drawer-container {
  margin: 12px 0;
  text-align: center;
  min-height: 80px;
  background: rgba(15, 23, 42, 0.55);
  border-radius: 8px;
  border: 1px dashed rgba(56, 189, 248, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.adsense-drawer-container .adsense-sponsor-label {
  font-size: 0.65rem;
  color: #64748b;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

/* Professional surface refinement: visual-only, content and interactions unchanged. */
:root {
  --surface-border: rgba(148, 163, 184, 0.16);
  --surface-border-strong: rgba(96, 165, 250, 0.32);
  --surface-radius: 16px;
  --surface-transition: 180ms ease;
}

[data-theme="dark"] body {
  background-color: #070b14;
  background-image:
    radial-gradient(circle at 8% 0%, rgba(37, 99, 235, 0.12), transparent 32%),
    radial-gradient(circle at 94% 8%, rgba(14, 165, 233, 0.08), transparent 28%);
}

.app-container { max-width: 1280px; }

header.app-header {
  border-color: var(--surface-border);
  border-radius: 20px;
  padding: 14px 20px;
  margin-bottom: 20px;
  box-shadow: 0 18px 48px rgba(2, 6, 23, 0.22);
}

.brand-title {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  letter-spacing: -0.035em;
}

.brand-subtitle {
  font-size: 0.74rem;
  letter-spacing: 0.01em;
}

.pulse-badge,
.lang-switch-wrap,
.theme-toggle,
.audio-toggle {
  min-height: 34px;
  border-radius: 10px;
}

.tab-btn,
.sort-pill-btn,
.filter-chip {
  border-radius: 10px;
  transition: transform var(--surface-transition), border-color var(--surface-transition),
    background-color var(--surface-transition), box-shadow var(--surface-transition);
}

.tab-btn:hover,
.sort-pill-btn:hover,
.filter-chip:hover {
  transform: translateY(-1px);
}

.res-kpi-grid {
  gap: 12px;
  margin: 18px 0 22px;
}

.res-kpi-box {
  min-height: 112px;
  border: 1px solid var(--surface-border);
  border-radius: var(--surface-radius);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.66));
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.16);
  transition: transform var(--surface-transition), border-color var(--surface-transition),
    box-shadow var(--surface-transition);
}

.res-kpi-box:hover {
  transform: translateY(-2px);
  border-color: var(--surface-border-strong);
  box-shadow: 0 16px 34px rgba(2, 6, 23, 0.24);
}

.res-kpi-label {
  letter-spacing: 0.08em;
  font-size: 0.67rem;
}

.res-kpi-val {
  font-size: clamp(1.65rem, 3vw, 2.1rem);
}

.sort-pill-btn.active,
.filter-chip.active {
  box-shadow: 0 7px 18px rgba(37, 99, 235, 0.16);
}

.matches-vertical-feed { gap: 12px; }

.match-card-vertical {
  border: 1px solid var(--surface-border);
  border-radius: var(--surface-radius);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.94), rgba(10, 15, 27, 0.92));
  box-shadow: 0 10px 26px rgba(2, 6, 23, 0.18);
  transition: transform var(--surface-transition), border-color var(--surface-transition),
    box-shadow var(--surface-transition);
}

.match-card-vertical:hover {
  transform: translateY(-2px);
  border-color: rgba(96, 165, 250, 0.38);
  box-shadow: 0 16px 34px rgba(2, 6, 23, 0.3);
}

.match-card-vertical.is-expanded {
  border-color: rgba(96, 165, 250, 0.5);
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 3px;
}

@media (max-width: 760px) {
  body { padding: 12px 10px 76px; }

  header.app-header {
    align-items: flex-start;
    padding: 13px 14px;
    border-radius: 16px;
  }

  .header-status-group {
    width: 100%;
    justify-content: flex-start;
  }

  .res-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sort-buttons-row,
  .filter-chips-row {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .sort-buttons-row::-webkit-scrollbar,
  .filter-chips-row::-webkit-scrollbar {
    display: none;
  }

  .sort-pill-btn,
  .filter-chip { flex: 0 0 auto; }
}

@media (max-width: 430px) {
  .res-kpi-grid { gap: 8px; }
  .res-kpi-box { min-height: 100px; padding: 12px; }
  .res-kpi-label { font-size: 0.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   SEO QUICK-NAV BAR & PREDICTION HUBS (Desktop & Mobile Responsive)
   ========================================================================== */
.seo-quick-nav-bar {
  width: 100%;
  margin-bottom: 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.seo-quick-nav-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.seo-quick-nav-inner::-webkit-scrollbar {
  display: none;
}

.seo-quick-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.2);
  color: var(--text-main);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.seo-quick-link:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--primary-glow);
}

/* ==========================================================================
   QUANT AI / BLOOMBERG TERMINAL UI SYSTEM (NewDesignReference v2.4)
   ========================================================================== */
:root {
  --obsidian-bg: #080C14;
  --obsidian-surface: #0F1623;
  --obsidian-surface-card: #0D131F;
  --obsidian-elevated: #151E2E;
  --obsidian-border: rgba(255, 255, 255, 0.08);
  --obsidian-border-active: rgba(99, 102, 241, 0.5);
  --quant-emerald: #10B981;
  --quant-indigo: #6366F1;
  --quant-amber: #F59E0B;
  --quant-sky: #0EA5E9;
  --quant-rose: #F43F5E;
}

body.quant-terminal-theme {
  background-color: var(--obsidian-bg) !important;
  color: #F8FAFC !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", sans-serif !important;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}
.font-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !important;
}

/* Quant Header */
.quant-header-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 12, 20, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--obsidian-border);
  padding: 10px 16px;
}

.quant-header-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.quant-brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-decoration: none;
}

.quant-brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), #0F1623, rgba(16, 185, 129, 0.2));
  border: 1px solid rgba(99, 102, 241, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.quant-brand-pulse {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  background: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10B981;
}

.quant-brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.quant-brand-title .brand-me {
  color: #10B981;
}

.quant-version-tag {
  font-size: 0.62rem;
  font-weight: 700;
  font-family: monospace;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #A5B4FC;
  padding: 2px 6px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.quant-telemetry-status {
  font-size: 0.72rem;
  color: #94A3B8;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.quant-dot-live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 6px #10B981;
}

/* Nav Switcher Tabs */
.quant-nav-pillbox {
  display: flex;
  align-items: center;
  background: #0F1623;
  border: 1px solid var(--obsidian-border);
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
}

.quant-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #94A3B8;
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quant-nav-btn:hover {
  color: #ffffff;
}

.quant-nav-btn.active {
  background: #4F46E5;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.4);
}

.quant-nav-badge {
  font-size: 0.68rem;
  font-family: monospace;
  padding: 1px 6px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1);
  color: #CBD5E1;
}

.quant-nav-btn.active .quant-nav-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* Controls */
.quant-controls-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.quant-ctrl-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 10px;
  border: 1px solid var(--obsidian-border);
  background: #0F1623;
  color: #CBD5E1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quant-ctrl-btn:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.quant-ctrl-btn.active-elite {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.4);
  color: #34D399;
}

.quant-ctrl-btn.active-sound {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.4);
  color: #FBBF24;
}

.quant-ctrl-btn.telegram-btn {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.35);
  color: #C7D2FE;
}
.quant-ctrl-btn.telegram-btn:hover {
  background: rgba(99, 102, 241, 0.25);
}

/* Trust / KPI Strip */
.quant-trust-strip {
  background: #0B101B;
  border-bottom: 1px solid var(--obsidian-border);
  padding: 12px 16px;
}

.quant-trust-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.quant-kpi-card {
  background: rgba(15, 22, 35, 0.9);
  border: 1px solid var(--obsidian-border);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: border-color 0.2s ease;
}

.quant-kpi-card:hover {
  border-color: rgba(16, 185, 129, 0.35);
}

.quant-kpi-label {
  font-size: 0.72rem;
  color: #94A3B8;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.quant-kpi-value-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 4px;
}

.quant-kpi-val {
  font-size: 1.25rem;
  font-weight: 800;
  font-family: monospace;
}

.quant-kpi-sub {
  font-size: 0.72rem;
  color: #CBD5E1;
  font-family: monospace;
}

.quant-kpi-badge {
  font-size: 0.65rem;
  font-family: monospace;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
}

/* Vitrin / Featured Showcase 3-Card Grid */
.quant-showcase-section {
  max-width: 1440px;
  margin: 24px auto 0;
  padding: 0 16px;
}

.quant-showcase-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
  flex-wrap: wrap;
}

.quant-showcase-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #34D399;
  font-size: 0.68rem;
  font-weight: 700;
  font-family: monospace;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.quant-showcase-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #F8FAFC;
  margin: 4px 0 0;
}

.quant-showcase-desc {
  font-size: 0.78rem;
  color: #94A3B8;
  margin: 2px 0 0;
}

.quant-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.quant-featured-card {
  background: #0F1623;
  border: 1px solid var(--obsidian-border);
  border-radius: 18px;
  padding: 20px;
  display: flex;
  flex-col: column;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.quant-featured-card:hover {
  border-color: rgba(99, 102, 241, 0.4);
  background: #131C2D;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.5);
}

.quant-featured-card.selected {
  border-color: rgba(99, 102, 241, 0.7);
  background: linear-gradient(180deg, #151E2E 0%, #0F1623 100%);
  box-shadow: 0 0 30px -5px rgba(99, 102, 241, 0.3);
}

/* Team Crest Badge */
.quant-team-crest {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-family: monospace;
  font-weight: 800;
  font-size: 0.72rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.quant-crest-bar {
  position: absolute;
  top: 0;
  left: 4px;
  right: 4px;
  height: 2px;
  border-radius: 9999px;
}

/* Circular Gauge */
.quant-gauge-wrap {
  position: relative;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.quant-gauge-wrap svg {
  transform: rotate(-90deg);
}

.quant-gauge-text {
  position: absolute;
  font-size: 0.72rem;
  font-weight: 800;
  font-family: monospace;
  color: #ffffff;
}

/* Target Signal Box */
.quant-signal-box {
  background: rgba(8, 12, 20, 0.85);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 12px;
  padding: 12px;
  margin-top: 14px;
}

.quant-signal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.quant-signal-target-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #818CF8;
}

.quant-ev-badge {
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
  font-size: 0.65rem;
  font-weight: 700;
  font-family: monospace;
  padding: 1px 6px;
  border-radius: 4px;
}

.quant-signal-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 6px;
  gap: 8px;
}

.quant-signal-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
}

.quant-signal-odds {
  font-family: monospace;
  display: flex;
  align-items: center;
  gap: 6px;
}

.quant-odds-old {
  font-size: 0.72rem;
  color: #64748B;
  text-decoration: line-through;
}

.quant-odds-cur {
  font-size: 1rem;
  font-weight: 800;
  color: #34D399;
}

/* Pressure Bar */
.quant-pressure-track {
  height: 6px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-top: 6px;
}

.quant-pressure-fill {
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, #6366F1, #10B981, #F59E0B);
  transition: width 0.4s ease;
}

/* 2-Column Main Workspace */
.quant-workspace-section {
  max-width: 1440px;
  margin: 28px auto 0;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 1024px) {
  .quant-workspace-section {
    grid-template-columns: 7fr 5fr;
  }
}

.quant-panel {
  background: #0F1623;
  border: 1px solid var(--obsidian-border);
  border-radius: 18px;
  padding: 20px;
}

.quant-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.quant-panel-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.quant-search-input {
  width: 100%;
  background: #080C14;
  border: 1px solid var(--obsidian-border);
  border-radius: 10px;
  padding: 8px 12px 8px 32px;
  font-size: 0.78rem;
  color: #ffffff;
  outline: none;
}
.quant-search-input:focus {
  border-color: #6366F1;
}

.quant-filter-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--obsidian-border);
  flex-wrap: wrap;
}

.quant-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 8px;
  background: #080C14;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #94A3B8;
  cursor: pointer;
  transition: all 0.2s;
}
.quant-pill-btn:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.15);
}
.quant-pill-btn.active {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.45);
  color: #C7D2FE;
}

/* Match Matrix Table Rows */
.quant-matrix-row {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 4px;
}

@media (min-width: 640px) {
  .quant-matrix-row {
    grid-template-columns: 4fr 3fr 3fr 2fr;
  }
}

.quant-matrix-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.quant-matrix-row.selected {
  background: rgba(99, 102, 241, 0.12);
  border-left: 3px solid #6366F1;
}

/* Sticky Right Deep Analysis Panel */
.quant-sticky-panel {
  position: sticky;
  top: 76px;
}

/* 6-Cell Quant Telemetry Grid */
.quant-6cell-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 14px;
}
@media (min-width: 480px) {
  .quant-6cell-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.quant-cell {
  background: #080C14;
  border: 1px solid var(--obsidian-border);
  border-radius: 10px;
  padding: 10px 12px;
}

.quant-cell-label {
  font-size: 0.65rem;
  color: #94A3B8;
  display: block;
}

.quant-cell-val {
  font-size: 0.88rem;
  font-weight: 800;
  font-family: monospace;
  color: #ffffff;
  display: block;
  margin-top: 2px;
}

.quant-cell-sub {
  font-size: 0.65rem;
  color: #64748B;
  display: block;
}

/* Explainable AI Box */
.quant-explainable-box {
  background: rgba(16, 185, 129, 0.04);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 12px;
  padding: 14px;
  margin-top: 14px;
}

.quant-explainable-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #34D399;
}

.quant-explainable-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quant-explainable-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.75rem;
  color: #CBD5E1;
  line-height: 1.5;
}

.quant-explainable-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #34D399;
  margin-top: 5px;
  flex-shrink: 0;
}

/* History & Simulator Section */
.quant-history-section {
  max-width: 1440px;
  margin: 36px auto 0;
  padding: 24px 16px 0;
  border-top: 1px solid var(--obsidian-border);
}

.quant-simulator-box {
  background: #0F1623;
  border: 1px solid var(--obsidian-border);
  border-radius: 18px;
  padding: 20px;
}

/* SVG Momentum Wave Chart */
.quant-wave-container {
  height: 130px;
  width: 100%;
  position: relative;
  margin-top: 12px;
}

.quant-wave-container svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.quant-wave-tooltip {
  position: absolute;
  top: 0;
  right: 8px;
  background: rgba(15, 22, 35, 0.95);
  border: 1px solid var(--obsidian-border);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 0.68rem;
  font-family: monospace;
  color: #ffffff;
  pointer-events: none;
}

/* Background Radial Glow */
.quant-bg-glow {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 320px;
  background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.12), rgba(16, 185, 129, 0.03), transparent);
  pointer-events: none;
  z-index: 0;
}

/* Quant Disclaimer Top Strip */
.quant-disclaimer-strip {
  background: #0B101B;
  border-bottom: 1px solid var(--obsidian-border);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  z-index: 45;
}

.quant-disclaimer-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  color: #94A3B8;
}

.quant-disclaimer-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.quant-disclaimer-text strong {
  color: #F8FAFC;
}

.quant-disclaimer-btn-link {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34D399;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
}

.quant-disclaimer-btn-close {
  background: transparent;
  border: none;
  color: #64748B;
  font-size: 0.82rem;
  cursor: pointer;
  padding: 2px 6px;
}
.quant-disclaimer-btn-close:hover {
  color: #F8FAFC;
}

/* Language Switcher */
.quant-lang-toggle-wrap {
  display: flex;
  background: #080C14;
  border: 1px solid var(--obsidian-border);
  border-radius: 8px;
  padding: 2px;
  gap: 2px;
}

.quant-lang-btn {
  background: transparent;
  border: none;
  color: #94A3B8;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quant-lang-btn.active {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

/* Sport Pills */
.quant-sport-pill {
  background: transparent;
  border: none;
  color: #94A3B8;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quant-sport-pill:hover {
  color: #ffffff;
}

.quant-sport-pill.active {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

/* Status Dots */
.quant-status-dot-on {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
  display: inline-block;
}

.quant-status-dot-off {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #475569;
  display: inline-block;
}

/* Responsive History Grid */
@media (min-width: 1024px) {
  .history-grid-split {
    grid-template-columns: 7fr 5fr !important;
  }
}

/* Responsive Utilities */
@media (max-width: 768px) {
  .hidden-mob {
    display: none !important;
  }
}

@media (max-width: 1024px) {
  .hidden-tablet {
    display: none !important;
  }
}

/* Monospace Font Utility */
.font-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !important;
  font-variant-numeric: tabular-nums;
}

/* Modal Backdrop & Dialog */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.2s ease;
}

.modal-dialog {
  width: 100%;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  animation: slideUp 0.25s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

