/* =========================================================================
   ELITE EDGE SPORTS TIPS — Premium Dark Theme
   ========================================================================= */

/* --- DESIGN TOKENS --- */
:root {
  --bg-deep:       #060911;
  --bg-primary:    #0a0e1a;
  --bg-card:       #141828;
  --bg-card-hover: #1a2035;
  --bg-elevated:   #1e2440;
  --border:        #1e2640;
  --border-light:  #2a3352;
  --gold:          #d4a843;
  --gold-light:    #e8c36a;
  --gold-dark:     #b8902f;
  --green:         #22c55e;
  --green-dim:     #16a34a;
  --red:           #ef4444;
  --red-dim:       #dc2626;
  --blue:          #3b82f6;
  --purple:        #a855f7;
  --text-primary:  #f1f5f9;
  --text-secondary:#94a3b8;
  --text-muted:    #64748b;
  --text-dim:      #475569;
  --radius-sm:     6px;
  --radius:        10px;
  --radius-lg:     16px;
  --radius-xl:     20px;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.3);
  --shadow:        0 4px 16px rgba(0,0,0,.4);
  --shadow-lg:     0 8px 32px rgba(0,0,0,.5);
  --shadow-gold:   0 0 20px rgba(212,168,67,.15);
  --transition:    .2s cubic-bezier(.4,0,.2,1);
  --font:          'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* --- RESET --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }
img { max-width: 100%; display: block; }
input, select, textarea, button { font-family: inherit; font-size: inherit; }

/* --- SCROLLBAR --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dark); }

/* =========================================================================
   NAVIGATION
   ========================================================================= */
#main-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,14,26,.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1320px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 64px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-icon { font-size: 28px; color: var(--gold); filter: drop-shadow(0 0 8px rgba(212,168,67,.3)); }
.logo-text { font-size: 18px; font-weight: 800; color: var(--text-primary); letter-spacing: -.3px; line-height: 1.1; }
.logo-sub { display: block; font-size: 11px; font-weight: 500; color: var(--gold); text-transform: uppercase; letter-spacing: 1.5px; }
.nav-links { display: flex; gap: 4px; }
.nav-link {
  padding: 8px 16px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; color: var(--text-secondary);
  transition: all var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--text-primary); background: var(--bg-elevated); }
.nav-link.active { color: var(--gold); }
.nav-link-admin { color: var(--purple) !important; }
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: none; color: var(--text-primary); font-size: 24px; cursor: pointer; padding: 4px 8px; }

/* Mobile-only items hidden on desktop (shown only when nav is in mobile dropdown mode) */
#nav-auth-guest-mobile, #nav-auth-user-mobile, .mobile-menu-tools { display: none !important; }
.user-badge {
  font-size: 12px; font-weight: 600; padding: 4px 12px;
  border-radius: 20px; background: var(--bg-elevated); color: var(--gold);
  border: 1px solid var(--border-light);
}

/* Sub bar */
.sub-bar {
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-dark));
  color: var(--bg-deep); text-align: center;
  padding: 6px 16px; font-size: 13px; font-weight: 600;
}
.sub-bar a { color: var(--bg-deep); text-decoration: underline; }

/* =========================================================================
   BUTTONS
   ========================================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 20px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 14px;
  border: none; cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: var(--radius); }
.btn-full { width: 100%; }
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--bg-deep); box-shadow: var(--shadow-gold);
}
.btn-gold:hover { background: linear-gradient(135deg, var(--gold-light), var(--gold)); transform: translateY(-1px); box-shadow: 0 0 24px rgba(212,168,67,.25); }
.btn-outline {
  background: transparent; color: var(--text-secondary);
  border: 1px solid var(--border-light);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dim); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dim); }
.btn-ghost { background: transparent; color: var(--text-secondary); padding: 6px 10px; }
.btn-ghost:hover { color: var(--gold); background: var(--bg-elevated); }

/* =========================================================================
   LAYOUT
   ========================================================================= */
main { min-height: calc(100vh - 64px); }
.container { max-width: 1320px; margin: 0 auto; padding: 32px 24px; }
.page-header { margin-bottom: 32px; }
.page-header h1 { font-size: 32px; font-weight: 800; letter-spacing: -.5px; }
.page-header h1 .accent { color: var(--gold); }
.page-header p { color: var(--text-secondary); margin-top: 6px; font-size: 16px; }
.section { margin-bottom: 40px; }
.section-title {
  font-size: 20px; font-weight: 700; margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}
.section-title .icon { color: var(--gold); }

/* Grid */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-sidebar { grid-template-columns: 1fr 360px; }

/* =========================================================================
   CARDS
   ========================================================================= */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition);
}
.card:hover { border-color: var(--border-light); box-shadow: var(--shadow); }
.card-premium {
  border-color: rgba(212,168,67,.25);
  box-shadow: var(--shadow-gold);
}
.card-premium:hover { border-color: rgba(212,168,67,.4); }
.card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
.card-header h3 { font-size: 18px; font-weight: 700; }

/* =========================================================================
   STAT CARDS
   ========================================================================= */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}
.stat-value {
  font-size: 32px; font-weight: 800; letter-spacing: -.5px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-value.positive { background: linear-gradient(135deg, #4ade80, var(--green)); -webkit-background-clip: text; background-clip: text; }
.stat-value.negative { background: linear-gradient(135deg, #f87171, var(--red)); -webkit-background-clip: text; background-clip: text; }
.stat-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; font-weight: 600; }

/* =========================================================================
   TIP CARDS
   ========================================================================= */
.tip-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.tip-card:hover { border-color: var(--border-light); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.tip-card.premium { border-color: rgba(212,168,67,.2); }
.tip-card.premium::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light), var(--gold-dark));
}
.tip-card.locked .tip-locked-content { filter: blur(6px); user-select: none; pointer-events: none; }
.tip-card .tip-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.tip-sport-badge {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.2px; padding: 3px 8px; border-radius: 4px;
}
.badge-racing { background: rgba(168,85,247,.15); color: var(--purple); }
.badge-football { background: rgba(59,130,246,.15); color: var(--blue); }
.badge-premium { background: rgba(212,168,67,.15); color: var(--gold); font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 4px; }
.badge-free { background: rgba(34,197,94,.1); color: var(--green); font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 4px; }
.tip-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.tip-odds {
  font-size: 24px; font-weight: 800; color: var(--green);
  text-align: right; line-height: 1;
}
.tip-odds-label { font-size: 11px; color: var(--text-muted); text-align: right; }
.tip-selection { font-size: 18px; font-weight: 700; margin-bottom: 2px; }
.tip-event { font-size: 13px; color: var(--text-secondary); margin-bottom: 8px; }
.tip-meta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; }
.tip-meta-item { font-size: 12px; color: var(--text-muted); }
.tip-meta-item strong { color: var(--text-secondary); font-weight: 600; }
.tip-summary { font-size: 13px; color: var(--text-secondary); line-height: 1.5; margin-top: 8px; }
.tip-edge-bar { margin-top: 12px; }
.tip-edge-bar-label { font-size: 11px; color: var(--text-muted); margin-bottom: 4px; display: flex; justify-content: space-between; }
.tip-edge-bar-track { height: 4px; background: var(--bg-elevated); border-radius: 2px; overflow: hidden; }
.tip-edge-bar-fill { height: 100%; border-radius: 2px; transition: width .6s ease-out; }
.edge-elite { background: linear-gradient(90deg, var(--gold), var(--gold-light)); }
.edge-high { background: linear-gradient(90deg, var(--green), #4ade80); }
.edge-medium { background: linear-gradient(90deg, var(--blue), #60a5fa); }
.edge-low { background: linear-gradient(90deg, var(--text-muted), var(--text-secondary)); }

/* Lock overlay */
.lock-overlay {
  position: absolute; inset: 0; z-index: 5;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(10,14,26,.75); backdrop-filter: blur(2px);
  border-radius: var(--radius-lg);
}
.lock-icon { font-size: 36px; margin-bottom: 8px; }
.lock-text { font-size: 14px; font-weight: 600; color: var(--gold); margin-bottom: 12px; }

/* =========================================================================
   TIP DETAIL
   ========================================================================= */
.detail-header { margin-bottom: 24px; }
.detail-header h2 { font-size: 24px; font-weight: 800; margin-bottom: 4px; }
.detail-header .detail-event { color: var(--text-secondary); font-size: 15px; }
.detail-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 24px; }
.detail-stat { background: var(--bg-elevated); border-radius: var(--radius-sm); padding: 12px; text-align: center; }
.detail-stat-value { font-size: 22px; font-weight: 800; }
.detail-stat-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .8px; }
.detail-section { margin-bottom: 20px; }
.detail-section h4 { font-size: 14px; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: .8px; margin-bottom: 8px; }
.detail-section p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }
.analysis-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.analysis-item { background: var(--bg-elevated); border-radius: var(--radius-sm); padding: 14px; }
.analysis-item h5 { font-size: 12px; color: var(--gold); text-transform: uppercase; letter-spacing: .6px; margin-bottom: 6px; font-weight: 700; }
.analysis-item p { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }

/* =========================================================================
   RESULTS TABLE
   ========================================================================= */
.results-table {
  width: 100%; border-collapse: collapse;
  font-size: 13px;
}
.results-table th {
  text-align: left; padding: 12px 16px;
  font-size: 11px; text-transform: uppercase; letter-spacing: 1px;
  color: var(--text-muted); border-bottom: 1px solid var(--border);
  font-weight: 700;
}
.results-table td {
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}
.results-table tr:hover td { background: var(--bg-card-hover); }
.result-won { color: var(--green) !important; font-weight: 700; }
.result-lost { color: var(--red) !important; font-weight: 700; }
.result-placed { color: var(--blue) !important; font-weight: 700; }
.result-void { color: var(--text-muted) !important; }
.pnl-positive { color: var(--green) !important; font-weight: 700; }
.pnl-negative { color: var(--red) !important; font-weight: 700; }

/* =========================================================================
   FORMS
   ========================================================================= */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 10px 14px;
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-primary);
  outline: none; transition: border-color var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--gold);
}
.form-group textarea { min-height: 100px; resize: vertical; }
.form-group select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-error { color: var(--red); font-size: 13px; margin-bottom: 12px; min-height: 18px; }
.form-footer { text-align: center; font-size: 13px; color: var(--text-muted); margin-top: 16px; }

/* Password input with show/hide toggle */
.password-input-wrapper { position: relative; display: block; }
.password-input-wrapper input { padding-right: 44px !important; }
.password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
}
.password-toggle:hover { color: var(--gold); }
.password-toggle:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.password-toggle.active { color: var(--gold); }
.password-toggle.active svg path:first-of-type { stroke-dasharray: 4 2; }

/* =========================================================================
   MODALS
   ========================================================================= */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.6); backdrop-filter: blur(4px);
}
.modal {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
  z-index: 210; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 32px;
  width: 420px; max-width: 92vw; max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.modal-lg { width: 720px; }
.modal h2 { font-size: 22px; font-weight: 800; margin-bottom: 20px; }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none; color: var(--text-muted);
  font-size: 24px; cursor: pointer; padding: 4px 8px;
  border-radius: 4px; transition: all var(--transition);
}
.modal-close:hover { color: var(--text-primary); background: var(--bg-elevated); }

/* =========================================================================
   PRICING
   ========================================================================= */
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 800px; margin: 0 auto; }
.pricing-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 32px; text-align: center;
  transition: all var(--transition);
}
.pricing-card.featured {
  border-color: var(--gold); box-shadow: var(--shadow-gold);
  position: relative; transform: scale(1.02);
}
.pricing-card.featured::before {
  content: 'MOST POPULAR'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: var(--bg-deep); padding: 4px 16px; border-radius: 20px;
  font-size: 11px; font-weight: 800; letter-spacing: 1px;
}
.pricing-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.pricing-price { font-size: 42px; font-weight: 900; margin: 16px 0 4px; }
.pricing-price .currency { font-size: 20px; vertical-align: top; }
.pricing-price .period { font-size: 14px; color: var(--text-muted); font-weight: 400; }
.pricing-features { list-style: none; margin: 24px 0; text-align: left; }
.pricing-features li {
  padding: 8px 0; font-size: 14px; color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px;
}
.pricing-features li::before { content: '\2713'; color: var(--green); font-weight: 700; }
.pricing-features li.disabled { color: var(--text-dim); }
.pricing-features li.disabled::before { content: '\2717'; color: var(--text-dim); }

/* =========================================================================
   TICKER
   ========================================================================= */
.ticker-wrap {
  overflow: hidden; background: var(--bg-deep);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px 0; margin-bottom: 24px;
}
.ticker {
  display: flex; gap: 48px;
  animation: ticker 30s linear infinite;
  width: max-content;
}
.ticker-item {
  display: flex; align-items: center; gap: 8px;
  white-space: nowrap; font-size: 13px; font-weight: 500;
}
.ticker-item .win-tag { color: var(--green); font-weight: 700; }
.ticker-item .odds-tag { color: var(--gold); font-weight: 700; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* =========================================================================
   TABS / FILTERS
   ========================================================================= */
.tabs { display: flex; gap: 4px; margin-bottom: 20px; flex-wrap: wrap; }
.tab {
  padding: 8px 18px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600; color: var(--text-muted);
  background: transparent; border: 1px solid transparent;
  cursor: pointer; transition: all var(--transition);
}
.tab:hover { color: var(--text-secondary); background: var(--bg-elevated); }
.tab.active { color: var(--gold); background: var(--bg-elevated); border-color: var(--border-light); }
.filter-bar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.filter-bar select {
  padding: 8px 32px 8px 12px; background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-primary); font-size: 13px;
  cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}

/* =========================================================================
   CHATBOT
   ========================================================================= */
.chat-bubble {
  position: fixed; bottom: 24px; right: 24px; z-index: 150;
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 4px 20px rgba(212,168,67,.3);
  transition: all var(--transition);
}
.chat-bubble:hover { transform: scale(1.08); box-shadow: 0 4px 28px rgba(212,168,67,.4); }

/* Pulsing notification dot on chat bubble */
.chat-tease-dot {
  position: absolute;
  top: -2px; right: -2px;
  width: 14px; height: 14px;
  background: #ef4444;
  border: 2px solid var(--bg-deep);
  border-radius: 50%;
  animation: chatPulse 2s infinite;
}
@keyframes chatPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

/* Tease popup beside the chat bubble */
.chat-tease {
  position: fixed;
  bottom: 96px; right: 24px;
  z-index: 149;
  width: 280px;
  background: var(--bg-card);
  border: 1px solid var(--gold);
  border-radius: 14px;
  padding: 18px 20px 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(212,168,67,0.3);
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.chat-tease.show { opacity: 1; transform: translateY(0) scale(1); }
.chat-tease::before {
  content: '';
  position: absolute;
  bottom: -8px; right: 28px;
  width: 0; height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid var(--bg-card);
  filter: drop-shadow(0 1px 0 var(--gold));
}
.chat-tease-close {
  position: absolute;
  top: 8px; right: 10px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  padding: 2px 6px;
  line-height: 1;
}
.chat-tease-close:hover { color: var(--text-primary); }
.chat-tease-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 6px;
}
.chat-tease-text {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
}
.chat-tease-cta {
  width: 100%;
  background: var(--gold);
  color: var(--bg-deep);
  border: none;
  padding: 9px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
}
.chat-tease-cta:hover { background: var(--gold-dark); transform: translateY(-1px); }

@media (max-width: 480px) {
  .chat-tease { right: 12px; bottom: 80px; width: calc(100vw - 24px); max-width: 280px; }
}
.chat-window {
  position: fixed; bottom: 92px; right: 24px; z-index: 150;
  width: 380px; max-width: calc(100vw - 48px);
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
  overflow: hidden; display: flex; flex-direction: column;
  max-height: 500px;
}
.chat-header {
  padding: 16px 20px; background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 14px;
}
.chat-close { background: none; border: none; color: var(--text-muted); font-size: 20px; cursor: pointer; }
.chat-messages {
  flex: 1; overflow-y: auto; padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
  max-height: 360px;
}
.chat-msg {
  padding: 10px 14px; border-radius: 12px;
  font-size: 13px; line-height: 1.5; max-width: 85%;
}
.chat-msg.bot { background: var(--bg-elevated); color: var(--text-secondary); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-msg.user { background: var(--gold-dark); color: var(--bg-deep); align-self: flex-end; border-bottom-right-radius: 4px; font-weight: 500; }
.chat-suggestions { display: flex; flex-wrap: wrap; gap: 6px; }
.chat-suggestions button {
  padding: 6px 12px; border-radius: 20px;
  background: var(--bg-elevated); border: 1px solid var(--border);
  color: var(--gold); font-size: 12px; cursor: pointer;
  transition: all var(--transition);
}
.chat-suggestions button:hover { border-color: var(--gold); background: rgba(212,168,67,.1); }
.chat-input-row {
  display: flex; gap: 8px; padding: 12px 16px;
  border-top: 1px solid var(--border); background: var(--bg-elevated);
}
.chat-input-row input {
  flex: 1; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 8px 12px; color: var(--text-primary);
  outline: none; font-size: 13px;
}
.chat-input-row input:focus { border-color: var(--gold); }

/* =========================================================================
   TESTIMONIALS
   ========================================================================= */
.testimonial-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
}
.testimonial-stars { color: var(--gold); font-size: 16px; margin-bottom: 12px; }
.testimonial-text { font-size: 14px; color: var(--text-secondary); line-height: 1.6; font-style: italic; margin-bottom: 12px; }
.testimonial-author { font-size: 13px; color: var(--text-muted); font-weight: 600; }
.testimonial-author span { color: var(--gold); }

/* =========================================================================
   FAQ
   ========================================================================= */
.faq-item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 8px; overflow: hidden;
}
.faq-question {
  padding: 16px 20px; cursor: pointer;
  font-weight: 600; font-size: 14px; color: var(--text-primary);
  display: flex; justify-content: space-between; align-items: center;
  transition: background var(--transition);
}
.faq-question:hover { background: var(--bg-card-hover); }
.faq-question .faq-toggle { color: var(--gold); font-size: 18px; transition: transform var(--transition); }
.faq-answer {
  padding: 0 20px; max-height: 0; overflow: hidden;
  transition: all .3s ease; font-size: 14px; color: var(--text-secondary); line-height: 1.6;
}
.faq-item.open .faq-answer { padding: 0 20px 16px; max-height: 300px; }
.faq-item.open .faq-toggle { transform: rotate(45deg); }

/* =========================================================================
   ADMIN
   ========================================================================= */
.admin-tabs { display: flex; gap: 4px; margin-bottom: 24px; flex-wrap: wrap; background: var(--bg-deep); padding: 4px; border-radius: var(--radius); }
.admin-tab {
  padding: 10px 20px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600; color: var(--text-muted);
  background: transparent; cursor: pointer; border: none;
  transition: all var(--transition);
}
.admin-tab:hover { color: var(--text-secondary); }
.admin-tab.active { background: var(--bg-elevated); color: var(--gold); }
.admin-panel { display: none; }
.admin-panel.active { display: block; }

/* Email preview */
.email-preview {
  background: #1a1a2e; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  max-height: 500px; overflow-y: auto;
}

/* =========================================================================
   CHART
   ========================================================================= */
.chart-container {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  position: relative; height: 320px;
}

/* =========================================================================
   TRUST BANNER
   ========================================================================= */
.trust-banner {
  display: flex; justify-content: center; gap: 48px;
  padding: 24px; background: var(--bg-deep);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  margin-bottom: 32px;
}
.trust-item { text-align: center; }
.trust-value { font-size: 24px; font-weight: 800; color: var(--gold); }
.trust-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .8px; }

/* =========================================================================
   FOOTER
   ========================================================================= */
#main-footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  margin-top: 64px;
}
.footer-inner {
  max-width: 1320px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 32px; padding: 48px 24px 32px;
}
.footer-col h4 { font-size: 15px; font-weight: 700; margin-bottom: 16px; color: var(--text-primary); }
.footer-col p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.footer-col a { display: block; font-size: 13px; color: var(--text-muted); padding: 4px 0; transition: color var(--transition); }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  max-width: 1320px; margin: 0 auto;
  padding: 20px 24px; border-top: 1px solid var(--border);
  text-align: center;
}
.footer-bottom p { font-size: 12px; color: var(--text-dim); }
.footer-bottom a { color: var(--text-muted); }

/* =========================================================================
   UTILITIES
   ========================================================================= */
.text-gold { color: var(--gold) !important; }
.text-green { color: var(--green) !important; }
.text-red { color: var(--red) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-sm { font-size: 13px; }
.text-xs { font-size: 11px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.hidden { display: none !important; }
.inline-block { display: inline-block; }
.w-full { width: 100%; }
.overflow-hidden { overflow: hidden; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-sidebar { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
  .trust-banner { flex-wrap: wrap; gap: 24px; }
}

@media (max-width: 768px) {
  /* Nav container: prevent overflow and pin hamburger to the right */
  .nav-inner {
    padding: 0 14px;
    flex-wrap: nowrap;
    max-width: 100vw;
    overflow: hidden;
  }

  /* Mobile menu dropdown */
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--bg-card); border-bottom: 1px solid var(--border);
    flex-direction: column; padding: 12px; z-index: 999;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    max-height: calc(100vh - 64px); overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links .nav-link { padding: 12px 16px; font-size: 15px; border-bottom: 1px solid var(--border); }
  .nav-links .nav-link:last-child { border-bottom: none; }

  /* Hamburger: always visible, fixed size, never shrinks */
  .nav-toggle {
    display: flex !important;
    align-items: center; justify-content: center;
    width: 40px; height: 40px;
    font-size: 22px;
    flex-shrink: 0;
    order: 99; /* Always last visually */
    margin-left: 4px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
  }

  /* Nav-right: constrain width, prevent overflow */
  .nav-right {
    gap: 4px;
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }

  /* Hide non-essential items on mobile - they move to dropdown menu */
  .nav-right .odds-format-toggle { display: none; }
  .nav-right .theme-toggle { display: none; }
  #nav-auth-guest, #nav-auth-user { display: none !important; }

  /* Keep only notification bell + hamburger visible */
  .notif-bell { padding: 6px; flex-shrink: 0; }
  .notif-bell svg { width: 18px; height: 18px; }

  /* Logo must not overflow */
  .logo { flex-shrink: 1; min-width: 0; overflow: hidden; }

  /* Show auth buttons inside the OPEN dropdown menu only */
  .nav-links.open #nav-auth-guest-mobile,
  .nav-links.open #nav-auth-user-mobile {
    display: flex !important;
    flex-direction: column;
    gap: 8px;
    padding: 12px 0;
    margin-top: 8px;
    border-top: 1px solid var(--border);
  }
  .nav-links.open #nav-auth-guest-mobile .btn,
  .nav-links.open #nav-auth-user-mobile .btn { width: 100%; }

  /* Show odds/theme toggles inside open dropdown menu */
  .nav-links.open .mobile-menu-tools {
    display: flex !important;
    gap: 12px; align-items: center; justify-content: center;
    padding: 12px 0; border-top: 1px solid var(--border); margin-top: 8px;
  }
  .nav-links.open .mobile-menu-tools .odds-format-toggle,
  .nav-links.open .mobile-menu-tools .theme-toggle { display: inline-flex; font-size: 14px; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card.featured { transform: none; }
  .detail-grid { grid-template-columns: repeat(2, 1fr); }
  .analysis-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .page-header h1 { font-size: 24px; }
  .page-header p { font-size: 13px; }
  .container { padding: 16px 14px; }
  .modal { padding: 20px; width: calc(100vw - 24px); margin: 12px; }
  .modal-lg { width: calc(100vw - 24px); }
  .form-row { grid-template-columns: 1fr; }
  .trust-banner { flex-direction: column; gap: 12px; padding: 16px; }
  .trust-value { font-size: 28px; }
  .stat-value { font-size: 26px; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .clean-type-cards { grid-template-columns: 1fr 1fr; }
  .acca-summary { flex-direction: column; gap: 8px; }
  .acca-items { gap: 6px; }
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .runner-table { display: block; overflow-x: auto; }
}

@media (max-width: 480px) {
  .nav-inner { padding: 0 12px; }
  .logo-text { font-size: 14px; }
  .logo-sub { display: none; }
  .logo-svg { width: 28px; height: 28px; }
  .tip-odds { font-size: 18px; }
  .chat-window {
    bottom: 70px;
    right: 8px;
    left: 8px;
    width: auto;
    max-height: 70vh;
    z-index: 200;
  }
  .chat-bubble {
    bottom: 78px;  /* Lifted above the disclaimer bar */
    right: 14px;
    width: 52px;
    height: 52px;
    z-index: 200;
    box-shadow: 0 4px 24px rgba(212,168,67,0.5);
  }
  .chat-tease {
    bottom: 142px;  /* Above the bubble */
    right: 14px;
  }

  /* Page & containers */
  .container { padding: 12px 10px; }
  .page-header h1 { font-size: 20px; }
  .page-header p { font-size: 12px; }
  .section-title { font-size: 16px; }

  /* Trust banner */
  .trust-banner { gap: 10px; padding: 12px; }
  .trust-value { font-size: 20px; }
  .trust-label { font-size: 10px; }
  .streak-badge { font-size: 12px; padding: 4px 10px; }

  /* Quality banner */
  .container > div[style*="border-radius:12px"][style*="padding:16px"] { padding: 12px 14px !important; gap: 10px !important; }
  .container > div[style*="border-radius:12px"] > div:first-child { font-size: 22px !important; }
  .container > div[style*="border-radius:12px"] > div:last-child > div:first-child { font-size: 12px !important; }
  .container > div[style*="border-radius:12px"] > div:last-child > div:last-child { font-size: 11px !important; }

  /* Ticker */
  .ticker-wrap { padding: 6px 0; }
  .ticker-item { font-size: 12px; padding: 0 16px; }
  .ticker-item .share-btn { display: none; }

  /* NAP card */
  .nap-card { padding: 16px; }
  .nap-card .tip-selection { font-size: 18px !important; }
  .nap-label { font-size: 12px; padding: 8px; }

  /* Tip cards */
  .tip-card { padding: 14px; }
  .tip-selection { font-size: 16px; }
  .tip-event { font-size: 12px; }
  .tip-meta { flex-direction: column; gap: 4px; }
  .tip-meta-item { font-size: 11px; }
  .tip-badges { flex-wrap: wrap; gap: 4px; }
  .tip-sport-badge, .badge-premium, .badge-free { font-size: 10px; padding: 2px 6px; }

  /* Bookmaker odds grid */
  .bk-odds-row, div[style*="display:flex"][style*="gap:6px"] { flex-wrap: wrap !important; }
  .bk-odds-item, div[style*="border-radius:4px"][style*="padding:3px 6px"] { font-size: 9px !important; padding: 2px 4px !important; }

  /* Acca card */
  .acca-free-card { padding: 12px; }
  .acca-selection-row { flex-direction: column; gap: 6px; }
  .acca-selection-odds { font-size: 16px; }
  .acca-selection-match { font-size: 13px; }
  .acca-selection-reasoning { font-size: 11px; }

  /* Results grid */
  .detail-grid { grid-template-columns: 1fr !important; }

  /* Recent winners grid */
  div[style*="grid-template-columns:repeat(auto-fill,minmax(280px"] { grid-template-columns: 1fr !important; }

  /* Date/filter tabs */
  .tabs, .date-tabs { flex-wrap: wrap; gap: 4px; }
  .tab, .date-tab { font-size: 12px; padding: 6px 10px; }

  /* Modals */
  .modal { padding: 16px; margin: 8px; max-height: 90vh; }
  .modal-lg { width: calc(100vw - 16px); }
  .modal h2 { font-size: 18px; }

  /* Pricing */
  .pricing-price { font-size: 32px; }
  .pricing-features li { font-size: 12px; }

  /* Sponsor bar */
  div[style*="OFFICIAL PARTNER"], .sponsor-header { font-size: 10px !important; flex-wrap: wrap; text-align: center; }

  /* Daily stats bar */
  #daily-stats-bar { font-size: 11px; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 6px 12px; }
  .ds-item { font-size: 11px; }

  /* Disclaimer bar */
  div[style*="BeGambleAware"], .disclaimer-bar { font-size: 9px !important; line-height: 1.4; padding: 8px 12px !important; }

  /* Footer */
  .footer-inner { gap: 20px; }
  .footer-col h4 { font-size: 14px; }
  .footer-col a, .footer-col p { font-size: 12px; }
  .footer-bottom { font-size: 10px; padding: 12px; }

  /* Admin panel */
  .admin-tab { font-size: 11px; padding: 6px 10px; }

  /* Tables */
  table { font-size: 12px; }
  th, td { padding: 6px 8px; }

  /* Analysis sections */
  .analysis-section-card { padding: 12px; }
  .as-header { font-size: 13px; }
  .confidence-meter { height: 8px; }
  .verdict-box { padding: 12px; font-size: 13px; }

  /* Form guide badges */
  .form-visual { gap: 3px; }
  .fv-badge { width: 20px; height: 20px; font-size: 10px; }

  /* Notification dropdown */
  .notif-dropdown { right: -40px; width: calc(100vw - 24px); max-width: 320px; }

  /* Odds format toggle */
  .odds-format-toggle { font-size: 10px; }

  /* Acca builder bar */
  .acca-bar { font-size: 12px; }
  .acca-inner { padding: 10px 12px; }
  .acca-summary { flex-direction: column; gap: 8px; }

  /* Cookie consent */
  div[style*="cookie"] { font-size: 12px !important; }

  /* Blog */
  .blog-card { padding: 16px; }

  /* Live data */
  .meeting-card { padding: 12px; }
  .runner-table { font-size: 11px; }
  .fixture-card { padding: 10px; }

  /* Buttons */
  .btn { font-size: 12px; padding: 8px 14px; }
  .btn-sm { font-size: 11px; padding: 5px 10px; }
  .btn-full { padding: 12px; }
}

/* Extra small phones (iPhone SE, etc) */
@media (max-width: 360px) {
  .container { padding: 8px 8px; }
  .page-header h1 { font-size: 18px; }
  .trust-value { font-size: 18px; }
  .tip-card { padding: 10px; }
  .nap-card .tip-selection { font-size: 16px !important; }
  .tip-odds { font-size: 16px; }
  .modal { padding: 12px; }
  #daily-stats-bar { font-size: 10px; }
}

/* =========================================================================
   RACE INTELLIGENCE — Inline race card analysis
   ========================================================================= */

/* Full race card container */
.race-card-full {
  margin-bottom: 16px; padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.race-card-full:last-child { border-bottom: none; margin-bottom: 0; }

/* Race header with embedded verdict */
.race-card-header { margin-bottom: 10px; }

/* Our Take verdict bar */
.race-verdict {
  margin-top: 10px;
  background: linear-gradient(135deg, rgba(212,168,67,0.08), rgba(212,168,67,0.02));
  border: 1px solid rgba(212,168,67,0.2);
  border-radius: 8px;
  overflow: hidden;
}
.race-verdict-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
}
.race-verdict-tag {
  background: var(--gold); color: var(--bg-deep);
  font-size: 9px; font-weight: 800; letter-spacing: 1.5px;
  padding: 3px 10px; border-radius: 4px; white-space: nowrap; flex-shrink: 0;
}
.race-verdict-text {
  font-size: 12px; color: var(--text-secondary); line-height: 1.5; flex: 1;
}
.race-verdict-angle {
  padding: 8px 14px; font-size: 12px; color: var(--gold); line-height: 1.5;
  border-top: 1px solid rgba(212,168,67,0.12);
  font-weight: 600;
}
.race-angle-icon { font-size: 8px; margin-right: 4px; }
.race-verdict-unlock {
  background: var(--gold); color: var(--bg-deep);
  font-size: 11px; font-weight: 700; padding: 4px 14px;
  border-radius: 6px; text-decoration: none; white-space: nowrap; flex-shrink: 0;
}
.race-verdict-unlock:hover { opacity: 0.9; }

/* Runner tags inline in the table */
.runner-tag {
  display: inline-block; font-size: 8px; font-weight: 800; letter-spacing: 0.5px;
  padding: 1px 5px; border-radius: 3px; margin-right: 5px; vertical-align: middle;
}
.runner-tag.fav { background: var(--gold); color: var(--bg-deep); }
.runner-tag.danger { background: var(--red); color: #fff; }
.runner-tag.outsider { background: var(--green); color: #fff; }

/* Tagged runner row highlight */
.runner-tagged { background: rgba(212,168,67,0.04); }
.runner-tagged td:first-child { border-left: 3px solid var(--gold); }

/* Runner insight note row (below tagged runner) */
.runner-note-row td { padding: 0 !important; border-top: none !important; }
.runner-note {
  padding: 6px 12px 10px 32px;
  font-size: 11px; line-height: 1.5; color: var(--text-secondary);
  font-style: italic;
  background: rgba(212,168,67,0.03);
  border-left: 3px solid var(--gold);
}

/* Race conditions bar at bottom of card */
.race-conditions {
  margin-top: 10px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.race-condition-item {
  background: var(--bg-elevated); border-radius: 6px; padding: 8px 10px;
}
.race-condition-label {
  font-size: 9px; font-weight: 700; color: var(--gold);
  text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 3px;
}
.race-condition-text {
  font-size: 11px; color: var(--text-secondary); line-height: 1.5;
}
.race-condition-stats {
  grid-column: 1 / -1;
  font-size: 10px; color: var(--text-muted); padding: 6px 0 0;
  border-top: 1px solid var(--border);
}

@media (max-width: 768px) {
  .race-verdict-bar { flex-direction: column; align-items: flex-start; gap: 6px; }
  .race-conditions { grid-template-columns: 1fr; }
  .race-verdict-text { font-size: 11px; }
  .runner-note { padding: 5px 10px 8px 16px; font-size: 10px; }
  .race-condition-item { padding: 6px 8px; }
  .race-verdict-angle { font-size: 11px; padding: 6px 10px; }
}

/* =========================================================================
   ADDITIONAL MOBILE OPTIMISATIONS
   ========================================================================= */

/* Results table mobile: card layout */
@media (max-width: 768px) {
  /* Mobile results: stack each row as a card - NO horizontal scroll */
  .results-table-wrap { overflow: visible; padding: 0 !important; background: transparent; border: none; box-shadow: none; }
  .results-table { display: block; min-width: 0; border: none; background: transparent; }
  .results-table thead { display: none; }
  .results-table tbody { display: block; }
  .results-table tr {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  }
  .results-table tr:hover td { background: transparent; }
  .results-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    border: none;
    font-size: 13px;
    text-align: right;
  }
  .results-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--text-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 10px;
    text-align: left;
  }
  /* Event and Selection get full-width top layout */
  .results-table td[data-label="Event"],
  .results-table td[data-label="Selection"] {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding-bottom: 8px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border);
  }
  .results-table td[data-label="Event"]::before,
  .results-table td[data-label="Selection"]::before {
    margin-right: 0;
    margin-bottom: 3px;
  }
  .results-table td[data-label="Event"] {
    font-size: 11px;
    color: var(--text-muted);
  }
  .results-table td[data-label="Selection"] {
    font-size: 15px;
    color: var(--text-primary);
  }
  .results-table td[data-label="Selection"] strong { font-weight: 700; }
  /* Result badge styling */
  .results-table td[data-label="Result"] { font-weight: 800; font-size: 12px; }
  .results-table td.result-won { color: #22c55e; }
  .results-table td.result-lost { color: #ef4444; }
  .results-table td.result-placed { color: #d4a843; }
  /* P/L big and bold */
  .results-table td[data-label="P/L"] { font-weight: 800; font-size: 15px; }
  /* Actions row - full width */
  .results-table td.results-actions {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    padding-top: 8px;
    margin-top: 4px;
    border-top: 1px solid var(--border);
  }
  .results-table td.results-actions::before { display: none; }
  .results-table td.results-actions:empty { display: none; }
  .results-table td.results-actions .share-btn {
    flex: 1;
    max-width: 120px;
    padding: 6px 10px;
    font-size: 11px;
  }

  /* Festival tabs mobile */
  .festival-tabs { display: flex; gap: 4px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
  .festival-tabs button { white-space: nowrap; flex-shrink: 0; }

  /* Date tabs mobile scroll */
  .date-tabs { display: flex; gap: 4px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; scrollbar-width: none; }
  .date-tabs::-webkit-scrollbar { display: none; }
  .date-tab { white-space: nowrap; flex-shrink: 0; }

  /* Fixture cards mobile */
  .fixture-card { flex-direction: column; gap: 8px; align-items: flex-start !important; }
  .fixture-teams { font-size: 14px; }
  .fixture-meta { font-size: 11px; }
  .fixture-score { font-size: 18px; }

  /* Meeting cards mobile */
  .meeting-card { padding: 12px; margin-bottom: 12px; }
  .meeting-card h3 { font-size: 15px; }

  /* Live data header mobile */
  .live-data-header { flex-direction: column; gap: 8px; align-items: flex-start; }
  .live-updated { font-size: 11px; }

  /* Chart containers mobile */
  .chart-container { min-height: 200px; }
  .multi-chart-grid { grid-template-columns: 1fr; gap: 12px; }
  .chart-panel { padding: 12px; }
  .chart-filter-bar { flex-direction: column; gap: 6px; }
  .chart-filter-bar select { width: 100%; }

  /* Stat cards mobile */
  .stat-card { padding: 12px; }
  .stat-value { font-size: 22px; }
  .stat-label { font-size: 10px; }

  /* Results sponsor */
  .results-sponsor { font-size: 11px; padding: 8px; }

  /* Share/Copy buttons */
  .share-btn, .copy-btn { font-size: 10px; padding: 3px 8px; }

  /* Grand National banner mobile */
  div[onclick*="festival"] { padding: 14px 16px !important; }
  div[onclick*="festival"] div[style*="font-size:36px"] { font-size: 24px !important; }
  div[onclick*="festival"] div[style*="font-size:18px"] { font-size: 14px !important; }
  div[onclick*="festival"] div[style*="font-size:13px"] { font-size: 11px !important; }
}

@media (max-width: 480px) {
  /* Results page stat cards */
  .grid.grid-4 .stat-card { padding: 10px 8px; }
  .grid.grid-4 .stat-value { font-size: 18px; }

  /* Quick start guide mobile */
  div[style*="grid-template-columns:repeat(auto-fit,minmax(200px"] { grid-template-columns: 1fr 1fr !important; gap: 8px !important; }

  /* Festival stats row */
  div[style*="display:flex;justify-content:center;gap:32px"] { gap: 16px !important; }
  div[style*="font-size:28px;font-weight:900;color:#d4a843"] { font-size: 20px !important; }

  /* Tip analysis sections compact */
  .analysis-section-card { margin-bottom: 6px; }
  .as-body { font-size: 12px; line-height: 1.5; }

  /* Export CSV button */
  button[onclick*="exportCSV"] { font-size: 11px; padding: 6px 12px; }
}

/* =========================================================================
   ANIMATIONS
   ========================================================================= */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .6; }
}
.animate-in { animation: fadeIn .4s ease-out; }
.animate-slide { animation: slideUp .5s ease-out; }
.pulse { animation: pulse 2s infinite; }

/* =========================================================================
   ENHANCEMENT: NAP OF THE DAY
   ========================================================================= */
.nap-card {
  background: var(--bg-card);
  border: 2px solid transparent;
  border-image: linear-gradient(135deg, var(--gold-dark), var(--gold-light), var(--gold-dark)) 1;
  border-radius: 0;
  padding: 24px;
  position: relative;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 0 24px rgba(212,168,67,.18), inset 0 0 0 1px rgba(212,168,67,.12);
}
.nap-card:hover { box-shadow: 0 0 32px rgba(212,168,67,.30); transform: translateY(-2px); }
.nap-card-wrapper { border-radius: var(--radius-lg); overflow: visible; margin-bottom: 24px; }
.nap-label {
  display: flex; align-items: center; gap: 8px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-dark));
  color: var(--bg-deep); font-size: 13px; font-weight: 800; letter-spacing: 1.5px;
  text-transform: uppercase; padding: 8px 16px; text-align: center; justify-content: center;
}
.nap-label .star { font-size: 16px; }

/* =========================================================================
   ENHANCEMENT: BOOKMAKER ODDS COMPARISON
   ========================================================================= */
.odds-comparison { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.odds-badge {
  display: flex; flex-direction: column; align-items: center;
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 4px 8px; min-width: 56px;
  font-size: 10px; transition: all var(--transition);
}
.odds-badge .bookie-name { color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; font-size: 9px; }
.odds-badge .bookie-odds { color: var(--text-primary); font-weight: 700; font-size: 13px; }
.odds-badge.best-odds { border-color: var(--gold); background: rgba(212,168,67,.1); }
.odds-badge.best-odds .bookie-odds { color: var(--gold); }

/* =========================================================================
   ENHANCEMENT: ODDS MOVEMENT INDICATOR
   ========================================================================= */
.odds-movement { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; margin-left: 6px; }
.odds-movement.drifted { color: var(--green); }
.odds-movement.shortened { color: var(--red); }

/* =========================================================================
   ENHANCEMENT: FORM GUIDE
   ========================================================================= */
.form-guide { display: flex; gap: 4px; margin-top: 8px; align-items: center; }
.form-guide-label { font-size: 11px; color: var(--text-muted); font-weight: 600; margin-right: 4px; }
.form-badge {
  width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800; color: #fff;
}
.form-badge.form-W { background: var(--green); }
.form-badge.form-D { background: #f59e0b; }
.form-badge.form-L { background: var(--red); }
.form-badge.form-pos { background: var(--bg-elevated); border: 1px solid var(--border-light); color: var(--text-primary); }
.form-badge.form-pos-1 { background: var(--gold); color: var(--bg-deep); }

/* =========================================================================
   ENHANCEMENT: STAKING CALCULATOR
   ========================================================================= */
.calc-modal { max-width: 520px; }
.calc-result-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-top: 16px; }
.calc-result-item {
  background: var(--bg-elevated); border-radius: var(--radius-sm);
  padding: 16px; text-align: center;
}
.calc-result-item .calc-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .8px; margin-bottom: 4px; }
.calc-result-item .calc-value { font-size: 20px; font-weight: 800; color: var(--gold); }

/* =========================================================================
   ENHANCEMENT: P/L TRACKER
   ========================================================================= */
.backed-btn {
  padding: 4px 10px; border-radius: 4px; font-size: 11px; font-weight: 600;
  cursor: pointer; border: 1px solid var(--border-light); background: var(--bg-elevated);
  color: var(--text-secondary); transition: all var(--transition);
}
.backed-btn:hover { border-color: var(--gold); color: var(--gold); }
.backed-btn.backed { background: rgba(34,197,94,.15); border-color: var(--green); color: var(--green); }
.my-bets-panel {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px; margin-bottom: 24px;
}
.my-bets-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.my-bets-stat { text-align: center; }
.my-bets-stat .val { font-size: 18px; font-weight: 800; }
.my-bets-stat .lbl { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .6px; }

/* =========================================================================
   ENHANCEMENT: ACCUMULATOR BUILDER
   ========================================================================= */
.acca-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 120;
  background: var(--bg-card); border-top: 2px solid var(--gold);
  box-shadow: 0 -4px 20px rgba(0,0,0,.5);
  transform: translateY(100%); transition: transform .3s ease;
  max-height: 280px; overflow-y: auto;
}
.acca-bar.active { transform: translateY(0); }
.acca-inner { max-width: 1320px; margin: 0 auto; padding: 16px 24px; }
.acca-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.acca-header h4 { font-size: 15px; font-weight: 700; color: var(--gold); }
.acca-items { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.acca-item {
  display: flex; align-items: center; gap: 6px;
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 6px 10px; font-size: 12px;
}
.acca-item .acca-remove { cursor: pointer; color: var(--red); font-weight: 700; }
.acca-summary { display: flex; align-items: center; gap: 24px; font-size: 14px; }
.acca-summary .acca-odds { color: var(--gold); font-weight: 800; font-size: 18px; }
.acca-summary .acca-return { color: var(--green); font-weight: 700; }
.acca-checkbox { margin-right: 4px; cursor: pointer; }

/* =========================================================================
   ENHANCEMENT: SOCIAL SHARING
   ========================================================================= */
.share-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 4px; font-size: 11px; font-weight: 600;
  cursor: pointer; border: 1px solid var(--border-light);
  background: var(--bg-elevated); color: var(--text-secondary); transition: all var(--transition);
}
.share-btn:hover { border-color: #1DA1F2; color: #1DA1F2; }

/* =========================================================================
   ENHANCEMENT: STREAK TRACKER
   ========================================================================= */
.streak-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, rgba(212,168,67,.15), rgba(239,68,68,.1));
  border: 1px solid rgba(212,168,67,.3);
  border-radius: 20px; padding: 8px 16px;
  font-size: 14px; font-weight: 700; color: var(--gold);
}

/* =========================================================================
   ENHANCEMENT: DARK/LIGHT MODE TOGGLE
   ========================================================================= */
.theme-toggle {
  background: none; border: 1px solid var(--border-light);
  color: var(--text-secondary); font-size: 18px; cursor: pointer;
  padding: 4px 8px; border-radius: var(--radius-sm);
  transition: all var(--transition); display: flex; align-items: center;
}
.theme-toggle:hover { color: var(--gold); border-color: var(--gold); }

body.light-mode {
  --bg-deep:       #f0f2f5;
  --bg-primary:    #ffffff;
  --bg-card:       #f8f9fb;
  --bg-card-hover: #edf0f4;
  --bg-elevated:   #e8ecf1;
  --border:        #d1d5db;
  --border-light:  #c4c9d2;
  --text-primary:  #1a1a2e;
  --text-secondary:#4a5568;
  --text-muted:    #718096;
  --text-dim:      #a0aec0;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.08);
  --shadow:        0 4px 16px rgba(0,0,0,.08);
  --shadow-lg:     0 8px 32px rgba(0,0,0,.12);
}
body.light-mode #main-nav { background: rgba(255,255,255,.92); }
body.light-mode .sub-bar { color: var(--bg-deep); }
body.light-mode .chat-msg.user { color: var(--bg-deep); }

/* =========================================================================
   ENHANCEMENT: DAILY STATS BAR
   ========================================================================= */
.daily-stats-bar {
  background: var(--bg-deep); border-bottom: 1px solid var(--border);
  padding: 6px 24px; display: flex; justify-content: center; gap: 32px;
  font-size: 12px; font-weight: 600; color: var(--text-muted);
}
.daily-stats-bar .ds-item { display: flex; align-items: center; gap: 4px; }
.daily-stats-bar .ds-value { color: var(--text-primary); font-weight: 700; }
.daily-stats-bar .ds-positive { color: var(--green); }
.daily-stats-bar .ds-negative { color: var(--red); }

@media (max-width: 768px) {
  .daily-stats-bar { flex-wrap: wrap; gap: 12px; justify-content: center; }
  .acca-bar { max-height: 220px; }
  .odds-comparison { gap: 4px; }
  .odds-badge { min-width: 48px; padding: 3px 6px; }
  .calc-result-grid { grid-template-columns: 1fr; }
  .my-bets-stats { grid-template-columns: repeat(2, 1fr); }
  .nap-card { padding: 16px; }
}

/* =========================================================================
   PERSISTENT DISCLAIMER BAR
   ========================================================================= */
.disclaimer-bar {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  padding: 12px 24px;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.6;
  text-align: center;
}
.disclaimer-bar-inner {
  max-width: 1320px;
  margin: 0 auto;
}
.disclaimer-bar strong {
  color: var(--red);
  font-weight: 800;
  background: rgba(239,68,68,.1);
  padding: 2px 6px;
  border-radius: 3px;
  margin-right: 4px;
}
.disclaimer-bar a {
  color: var(--gold);
  text-decoration: underline;
}

/* =========================================================================
   FREE WEEKLY ACCA CARD
   ========================================================================= */
.acca-free-card {
  background: var(--bg-card);
  border: 2px solid transparent;
  border-image: linear-gradient(135deg, var(--gold-dark), var(--gold-light), var(--gold-dark)) 1;
  border-radius: 0;
  padding: 24px;
  position: relative;
  overflow: hidden;
  margin-bottom: 32px;
}
.acca-free-card-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 32px;
}
.acca-free-header {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-dark));
  color: var(--bg-deep);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 10px 16px;
  text-align: center;
  justify-content: center;
}
.acca-free-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--green);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
}
.acca-selection-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.acca-selection-row:last-child {
  border-bottom: none;
}
.acca-selection-match {
  font-weight: 600;
  color: var(--text-primary);
}
.acca-selection-pick {
  color: var(--text-secondary);
  font-size: 13px;
}
.acca-selection-odds {
  font-weight: 800;
  color: var(--green);
  font-size: 16px;
  min-width: 60px;
  text-align: right;
}
.acca-selection-reasoning {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
.acca-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0 0;
  margin-top: 8px;
  border-top: 2px solid var(--gold);
}
.acca-total-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}
.acca-total-value {
  font-size: 22px;
  font-weight: 900;
  color: var(--gold);
}
.acca-return-info {
  text-align: center;
  margin-top: 16px;
  padding: 12px;
  background: rgba(212,168,67,.08);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(212,168,67,.2);
}
.acca-return-info .return-amount {
  font-size: 24px;
  font-weight: 900;
  color: var(--gold);
}
.acca-return-info .return-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* =========================================================================
   LEGAL PAGES
   ========================================================================= */
.legal-page {
  max-width: 800px;
  margin: 0 auto;
}
.legal-page h1 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--gold);
}
.legal-page .legal-updated {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 32px;
}
.legal-page h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 32px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.legal-page h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--gold);
  margin-top: 20px;
  margin-bottom: 8px;
}
.legal-page p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 12px;
}
.legal-page ul, .legal-page ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
.legal-page li {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 4px;
}
.legal-page a {
  color: var(--gold);
  text-decoration: underline;
}
.legal-disclaimer-box {
  background: rgba(239,68,68,.08);
  border: 1px solid rgba(239,68,68,.25);
  border-radius: var(--radius);
  padding: 20px;
  margin: 24px 0;
}
.legal-disclaimer-box p {
  color: var(--red);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 0;
}
.legal-support-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin: 16px 0;
}
.legal-support-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 8px;
}
.legal-support-card p {
  margin-bottom: 6px;
}
.legal-helpline {
  font-size: 20px;
  font-weight: 800;
  color: var(--green);
}

/* =========================================================================
   SPONSOR HEADER BANNER
   ========================================================================= */
.sponsor-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  height: 40px;
  background: var(--bg-deep);
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
  padding: 0 16px;
  overflow: hidden;
}
.sponsor-label {
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 10px;
}
.sponsor-logo-placeholder {
  background: var(--bg-elevated);
  border: 1px dashed var(--border-light);
  padding: 2px 16px;
  border-radius: 4px;
  font-size: 11px;
  color: var(--text-dim);
}
.sponsor-cta {
  font-weight: 600;
  color: var(--text-secondary);
}
.sponsor-disclaimer {
  font-size: 10px;
  color: var(--text-dim);
}
@media (max-width: 768px) {
  .sponsor-header { flex-wrap: wrap; height: auto; padding: 6px 12px; gap: 8px; }
  .sponsor-cta, .sponsor-disclaimer { display: none; }
}

/* =========================================================================
   NOTIFICATION BELL & DROPDOWN
   ========================================================================= */
.notif-wrapper {
  position: relative;
}
.notif-bell {
  background: none;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  position: relative;
}
.notif-bell:hover {
  color: var(--gold);
  border-color: var(--gold);
}
.notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--red);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.notif-dropdown {
  position: absolute;
  top: 42px;
  right: 0;
  width: 320px;
  max-height: 400px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 300;
  overflow: hidden;
}
.notif-dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.notif-list {
  max-height: 320px;
  overflow-y: auto;
}
.notif-item {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background var(--transition);
}
.notif-item:hover {
  background: var(--bg-card-hover);
}
.notif-item .notif-time {
  font-size: 10px;
  color: var(--text-dim);
  margin-top: 2px;
}
.notif-item.unread {
  border-left: 3px solid var(--gold);
}

/* Notification Permission Prompt */
.notif-prompt {
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 250;
  animation: slideUp 0.4s ease-out;
}
.notif-prompt-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 12px 20px;
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  color: var(--text-secondary);
}

/* =========================================================================
   AFFILIATE BUTTONS & AD SLOTS
   ========================================================================= */
.affiliate-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border-light);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  transition: all var(--transition);
  text-decoration: none;
}
.affiliate-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(212,168,67,.08);
}
.affiliate-btn.best-price {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--bg-deep);
  border-color: var(--gold);
  font-weight: 800;
}
.affiliate-btn.best-price:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
}
.affiliate-disclaimer {
  font-size: 9px;
  color: var(--text-dim);
  margin-top: 6px;
}

/* Ad Slots */
.ad-slot {
  background: var(--bg-deep);
  border: 1px dashed var(--border-light);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  grid-column: 1 / -1;
}
.ad-slot-label {
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}
.ad-slot-content {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 600;
}
.ad-slot-cta {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 16px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--bg-deep);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.ad-slot-disclaimer {
  font-size: 9px;
  color: var(--text-dim);
  margin-top: 6px;
}

/* =========================================================================
   FOOTER PARTNERS
   ========================================================================= */
.footer-partners {
  max-width: 1320px;
  margin: 0 auto;
  padding: 32px 24px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.footer-partners h4 {
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
  font-weight: 700;
}
.partner-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.partner-slot {
  width: 120px;
  height: 48px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dim);
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all var(--transition);
  cursor: pointer;
}
.partner-slot:hover {
  filter: grayscale(0%);
  opacity: 1;
  color: var(--gold);
  border-color: var(--gold);
}
.partner-disclaimer {
  font-size: 10px;
  color: var(--text-dim);
  margin-top: 12px;
}

/* =========================================================================
   RESULTS SPONSOR
   ========================================================================= */
.results-sponsor {
  text-align: center;
  padding: 12px;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 24px;
  font-size: 13px;
  color: var(--text-muted);
}
.results-sponsor .sponsor-name {
  color: var(--gold);
  font-weight: 700;
}

/* =========================================================================
   ANALYST PROFILES
   ========================================================================= */
.analyst-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition);
}
.analyst-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
}
.analyst-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 12px;
}
.analyst-avatar.professor { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.analyst-avatar.scout { background: linear-gradient(135deg, #22c55e, #15803d); }
.analyst-avatar.edge { background: linear-gradient(135deg, #d4a843, #b8902f); }
.analyst-name {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 4px;
}
.analyst-specialty {
  font-size: 13px;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 12px;
}
.analyst-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}
.analyst-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.analyst-stat {
  text-align: center;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  padding: 8px;
}
.analyst-stat-value {
  font-size: 18px;
  font-weight: 800;
  color: var(--gold);
}
.analyst-stat-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .6px;
}
.analyst-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.analyst-badge.professor { background: rgba(59,130,246,.15); color: #3b82f6; }
.analyst-badge.scout { background: rgba(34,197,94,.15); color: #22c55e; }
.analyst-badge.edge { background: rgba(212,168,67,.15); color: #d4a843; }

/* =========================================================================
   COMMENTS / DISCUSSION
   ========================================================================= */
.comment-section {
  margin-top: 32px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
.comment-list {
  margin-bottom: 16px;
}
.comment-item {
  background: var(--bg-elevated);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 10px;
}
.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.comment-author {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}
.comment-time {
  font-size: 11px;
  color: var(--text-dim);
}
.comment-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.comment-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.comment-like-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color var(--transition);
}
.comment-like-btn:hover, .comment-like-btn.liked {
  color: var(--gold);
}
.comment-form {
  display: flex;
  gap: 8px;
}
.comment-form input {
  flex: 1;
  padding: 10px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  outline: none;
  font-size: 13px;
}
.comment-form input:focus {
  border-color: var(--gold);
}
.backed-count {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-muted);
  margin-left: 8px;
}
.backed-count svg {
  width: 14px;
  height: 14px;
}

/* =========================================================================
   REFERRAL SYSTEM
   ========================================================================= */
.referral-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
}
.referral-code {
  font-size: 24px;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: 2px;
  margin: 12px 0;
}
.referral-link {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-secondary);
  word-break: break-all;
  margin: 12px 0;
}
.share-buttons {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 12px;
}
.share-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  color: #fff;
}
.share-social-btn.twitter { background: #1DA1F2; }
.share-social-btn.whatsapp { background: #25D366; }
.share-social-btn.email-share { background: var(--text-muted); }
.share-social-btn.copy { background: var(--bg-elevated); color: var(--text-secondary); border: 1px solid var(--border-light); }
.share-social-btn:hover { opacity: 0.85; transform: translateY(-1px); }

/* =========================================================================
   ADVANCED CHART FILTERS
   ========================================================================= */
.chart-filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  align-items: center;
}
.chart-filter-bar select {
  padding: 6px 28px 6px 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 12px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
}
.multi-chart-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}
.chart-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.chart-panel h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 12px;
}
.chart-panel canvas {
  width: 100% !important;
  height: 220px !important;
}
@media (max-width: 768px) {
  .multi-chart-grid { grid-template-columns: 1fr; }
}

/* =========================================================================
   STRIPE PAYMENT PLACEHOLDER
   ========================================================================= */
.stripe-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 12px;
}
.stripe-badge .stripe-logo {
  font-weight: 800;
  color: #635bff;
  font-size: 14px;
}

/* =========================================================================
   LOGO SVG
   ========================================================================= */
.logo-svg {
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(212,168,67,.3));
}

/* =========================================================================
   COOKIE CONSENT BANNER
   ========================================================================= */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(20, 24, 40, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-secondary);
  box-shadow: 0 -4px 20px rgba(0,0,0,.5);
}
.cookie-banner p { margin: 0; max-width: 700px; line-height: 1.5; }
.cookie-banner a { color: var(--gold); text-decoration: underline; }
.cookie-banner .btn { flex-shrink: 0; }
@media (max-width: 768px) {
  .cookie-banner { flex-direction: column; text-align: center; gap: 12px; padding: 14px 16px; }
}

/* =========================================================================
   LOADING SPINNER & SKELETON
   ========================================================================= */
.loading-spinner-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(10,14,26,.6);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
}
.loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spinnerRotate .8s linear infinite;
}
@keyframes spinnerRotate {
  to { transform: rotate(360deg); }
}
.skeleton {
  background: var(--bg-elevated);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.04), transparent);
  animation: skeletonPulse 1.5s ease-in-out infinite;
}
@keyframes skeletonPulse {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.skeleton-card {
  height: 220px;
  margin-bottom: 20px;
}

/* =========================================================================
   404 PAGE
   ========================================================================= */
.page-404 {
  text-align: center;
  padding: 80px 20px;
}
.page-404 .logo-404 { margin: 0 auto 24px; }
.page-404 h1 { font-size: 72px; font-weight: 900; color: var(--gold); margin-bottom: 8px; }
.page-404 h2 { font-size: 24px; font-weight: 700; margin-bottom: 16px; }
.page-404 p { color: var(--text-secondary); margin-bottom: 24px; }

/* =========================================================================
   BLOG
   ========================================================================= */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  cursor: pointer;
  transition: all var(--transition);
}
.blog-card:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.blog-card .blog-date { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.blog-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: var(--text-primary); }
.blog-card .blog-excerpt { font-size: 13px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 12px; }
.blog-card .blog-author { font-size: 12px; color: var(--gold); font-weight: 600; }
.blog-card .blog-read-more { font-size: 13px; color: var(--gold); font-weight: 600; }

/* Weekly Review Badge */
.blog-weekly-badge {
  display: inline-block; background: var(--gold); color: var(--bg-deep);
  font-size: 9px; font-weight: 800; letter-spacing: 1.5px;
  padding: 3px 10px; border-radius: 4px; margin-bottom: 8px;
}

/* Stats bar on weekly review cards */
.blog-stats-bar {
  display: flex; gap: 8px; flex-wrap: wrap;
  padding: 10px 0; margin-top: 8px;
  border-top: 1px solid var(--border);
}
.blog-stat {
  font-size: 11px; font-weight: 700; color: var(--text-secondary);
  background: var(--bg-elevated); padding: 3px 8px; border-radius: 4px;
}
.blog-stat.positive { color: #22c55e; }
.blog-stat.negative { color: #ef4444; }

.blog-post { max-width: 800px; margin: 0 auto; }
.blog-post h1 { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.blog-post .blog-post-meta { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }
.blog-post .blog-post-body { font-size: 15px; color: var(--text-secondary); line-height: 1.8; }
.blog-post .blog-post-body p { margin-bottom: 16px; }
.blog-post .blog-post-body h2 { font-size: 20px; font-weight: 700; color: var(--text-primary); margin: 32px 0 12px; }
@media (max-width: 768px) {
  .blog-grid { grid-template-columns: 1fr; }
}

/* =========================================================================
   ONBOARDING WALKTHROUGH
   ========================================================================= */
.onboarding-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(10,14,26,.85);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.onboarding-modal {
  background: var(--bg-card);
  border: 1px solid var(--gold);
  border-radius: var(--radius-xl);
  padding: 40px;
  max-width: 480px;
  width: 90vw;
  text-align: center;
  box-shadow: 0 0 40px rgba(212,168,67,.2);
}
.onboarding-modal h2 { font-size: 24px; font-weight: 800; margin-bottom: 12px; color: var(--gold); }
.onboarding-modal p { font-size: 15px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 24px; }
.onboarding-dots { display: flex; gap: 8px; justify-content: center; margin-bottom: 24px; }
.onboarding-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--border-light);
  transition: all var(--transition);
}
.onboarding-dot.active { background: var(--gold); transform: scale(1.2); }
.onboarding-actions { display: flex; gap: 12px; justify-content: center; }

/* =========================================================================
   TELEGRAM CTA
   ========================================================================= */
.telegram-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #0088cc, #006699);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
}
.telegram-cta:hover { background: linear-gradient(135deg, #009ee6, #0088cc); transform: translateY(-1px); color: #fff; }
.telegram-cta svg { flex-shrink: 0; }

/* =========================================================================
   FORGOT PASSWORD MODAL
   ========================================================================= */
.email-verify-banner {
  background: rgba(34,197,94,.1);
  border: 1px solid rgba(34,197,94,.3);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  margin-bottom: 16px;
  color: var(--green);
  font-size: 14px;
  font-weight: 600;
}
.unverified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(239,68,68,.15);
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(34,197,94,.15);
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* =========================================================================
   ODDS FORMAT TOGGLE
   ========================================================================= */
.odds-format-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  transition: all var(--transition);
  user-select: none;
}
.odds-format-toggle:hover { border-color: var(--gold); color: var(--gold); }
.odds-format-toggle .fmt-active { color: var(--gold); font-weight: 700; }
.odds-format-toggle .fmt-sep { color: var(--border-light); }
.reg-odds-group { margin-top: 12px; }
.reg-odds-group label.radio-label {
  display: inline-flex; align-items: center; gap: 6px;
  cursor: pointer; font-size: 13px; color: var(--text-secondary); margin-right: 16px;
}
.reg-odds-group label.radio-label input[type="radio"] { accent-color: var(--gold); }

/* =========================================================================
   LIVE DATA SECTIONS
   ========================================================================= */
.live-data-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; flex-wrap: wrap; gap: 8px;
}
.live-data-header .live-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--green);
}
.live-data-header .live-badge::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); animation: livePulse 1.5s infinite;
}
@keyframes livePulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
.live-updated {
  font-size: 11px; color: var(--text-muted); display: flex; align-items: center; gap: 6px;
}
.refresh-btn {
  background: none; border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text-muted); cursor: pointer; padding: 4px 10px; font-size: 11px;
  transition: all var(--transition);
}
.refresh-btn:hover { border-color: var(--gold); color: var(--gold); }
.refresh-btn.spinning svg { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Meeting / Fixture cards for live data */
.meeting-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px; margin-bottom: 16px;
}
.meeting-card h3 {
  font-size: 16px; font-weight: 700; color: var(--gold); margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.meeting-card .race-row {
  display: flex; align-items: center; gap: 12px; padding: 8px 0;
  border-bottom: 1px solid var(--border); font-size: 13px;
}
.meeting-card .race-row:last-child { border-bottom: none; }
.meeting-card .race-time { font-weight: 700; color: var(--text-primary); min-width: 48px; }
.meeting-card .race-name { flex: 1; color: var(--text-secondary); }
.meeting-card .race-info { font-size: 11px; color: var(--text-muted); }

.runner-table { width: 100%; font-size: 12px; border-collapse: collapse; }
.runner-table th {
  text-align: left; font-size: 10px; text-transform: uppercase;
  letter-spacing: .5px; color: var(--text-muted); padding: 6px 8px;
  border-bottom: 1px solid var(--border);
}
.runner-table td { padding: 6px 8px; border-bottom: 1px solid rgba(30,38,64,.5); }
.runner-table tr:hover td { background: rgba(212,168,67,.03); }

.fixture-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between;
  transition: all var(--transition);
}
.fixture-card:hover { border-color: var(--border-light); }
.fixture-card .fixture-teams { font-weight: 700; font-size: 14px; flex: 1; }
.fixture-card .fixture-vs { color: var(--text-muted); font-weight: 400; margin: 0 4px; }
.fixture-card .fixture-meta { font-size: 11px; color: var(--text-muted); text-align: right; }
.fixture-card .fixture-league { font-size: 10px; color: var(--gold); text-transform: uppercase; letter-spacing: .5px; }
.fixture-card .fixture-score {
  font-size: 20px; font-weight: 800; color: var(--green);
  min-width: 60px; text-align: center;
}
.fixture-card .fixture-live-badge {
  font-size: 9px; font-weight: 700; color: var(--red); text-transform: uppercase;
  letter-spacing: .5px; animation: livePulse 1.5s infinite;
}

/* Date tabs */
.date-tabs { display: flex; gap: 4px; margin-bottom: 16px; }
.date-tab {
  padding: 6px 14px; border-radius: var(--radius-sm); font-size: 12px; font-weight: 600;
  background: var(--bg-elevated); border: 1px solid var(--border);
  color: var(--text-muted); cursor: pointer; transition: all var(--transition);
}
.date-tab:hover { border-color: var(--gold); color: var(--gold); }
.date-tab.active { background: var(--gold); color: var(--bg-deep); border-color: var(--gold); }

/* Loading spinner (inline) */
.inline-spinner {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-muted); padding: 20px;
}
.inline-spinner::before {
  content: ''; width: 18px; height: 18px; border: 2px solid var(--border);
  border-top-color: var(--gold); border-radius: 50%; animation: spin .6s linear infinite;
}

/* =========================================================================
   ENHANCED TIP DETAIL
   ========================================================================= */
.premium-analysis-header {
  background: linear-gradient(135deg, rgba(212,168,67,.12), rgba(212,168,67,.03));
  border: 1px solid rgba(212,168,67,.25); border-radius: var(--radius);
  padding: 20px 24px; margin-bottom: 24px;
  display: flex; align-items: center; gap: 14px;
}
.premium-analysis-header .pa-icon { font-size: 28px; }
.premium-analysis-header h3 {
  font-size: 18px; font-weight: 800; color: var(--gold); margin-bottom: 2px;
}
.premium-analysis-header p { font-size: 12px; color: var(--text-secondary); }

.analysis-section-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 20px; margin-bottom: 12px;
  transition: all var(--transition);
}
.analysis-section-card:hover { border-color: var(--border-light); }
.analysis-section-card .as-header {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px;
}
.analysis-section-card .as-icon { font-size: 18px; }
.analysis-section-card .as-body { font-size: 13px; color: var(--text-secondary); line-height: 1.7; }

.confidence-meter { margin-bottom: 20px; }
.confidence-meter-label {
  display: flex; justify-content: space-between; font-size: 12px;
  color: var(--text-muted); margin-bottom: 6px;
}
.confidence-meter-track {
  height: 12px; background: var(--bg-elevated); border-radius: 6px;
  overflow: hidden; position: relative;
}
.confidence-meter-fill {
  height: 100%; border-radius: 6px; transition: width .5s ease;
  background: linear-gradient(90deg, var(--red), #f59e0b, var(--green));
}
.confidence-meter-markers {
  display: flex; justify-content: space-between; margin-top: 4px;
}
.confidence-meter-markers span { font-size: 9px; color: var(--text-dim); }

.verdict-box {
  background: linear-gradient(135deg, rgba(212,168,67,.1), rgba(212,168,67,.03));
  border: 1px solid rgba(212,168,67,.3); border-radius: var(--radius);
  padding: 20px 24px; margin-top: 20px;
}
.verdict-box h4 {
  font-size: 14px; font-weight: 800; color: var(--gold);
  margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1px;
}
.verdict-box p { font-size: 14px; color: var(--text-primary); line-height: 1.8; }

.form-visual { display: flex; gap: 4px; flex-wrap: wrap; }
.form-visual .fv-badge {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800;
}
.form-visual .fv-1 { background: rgba(34,197,94,.2); color: var(--green); }
.form-visual .fv-23 { background: rgba(245,158,11,.2); color: #f59e0b; }
.form-visual .fv-other { background: rgba(100,116,139,.2); color: var(--text-muted); }
.form-visual .fv-W { background: rgba(34,197,94,.2); color: var(--green); }
.form-visual .fv-D { background: rgba(245,158,11,.2); color: #f59e0b; }
.form-visual .fv-L { background: rgba(239,68,68,.2); color: var(--red); }

/* =========================================================================
   ADMIN LIVE DATA PANEL
   ========================================================================= */
.api-status-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.api-status-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px 16px; text-align: center;
}
.api-status-card .api-name { font-size: 12px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.api-status-card .api-indicator {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600;
}
.api-status-card .api-indicator.connected { color: var(--green); }
.api-status-card .api-indicator.disconnected { color: var(--red); }
.api-status-card .api-indicator::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
}
.api-status-card .api-indicator.connected::before { background: var(--green); }
.api-status-card .api-indicator.disconnected::before { background: var(--red); }

.admin-live-runner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; border-bottom: 1px solid var(--border); font-size: 13px;
}
.admin-live-runner:last-child { border-bottom: none; }
.admin-live-runner .runner-name { font-weight: 600; }
.admin-live-runner .runner-detail { font-size: 11px; color: var(--text-muted); }

/* =========================================================================
   PASSWORD STRENGTH INDICATOR
   ========================================================================= */
.pw-strength-indicator { margin-top: 8px; }
.pw-strength-bar {
  width: 100%; height: 4px; background: var(--bg-elevated);
  border-radius: 2px; overflow: hidden; margin-bottom: 4px;
}
.pw-strength-fill {
  height: 100%; border-radius: 2px;
  transition: width 0.3s ease, background 0.3s ease;
}
.pw-strength-label { font-size: 11px; font-weight: 600; margin-bottom: 4px; }
.pw-strength-checks { display: flex; gap: 8px; flex-wrap: wrap; }
.pw-check-pass { font-size: 10px; color: var(--green); }
.pw-check-pass::before { content: '\2713 '; }
.pw-check-fail { font-size: 10px; color: var(--text-dim); }
.pw-check-fail::before { content: '\2717 '; }

/* =========================================================================
   ACCOUNT SETTINGS PAGE
   ========================================================================= */
.account-info-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.account-info-item {
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 14px; background: var(--bg-elevated);
  border-radius: var(--radius-sm);
}
.account-label { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.5px; }
.account-value { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.form-success {
  color: var(--green); font-size: 13px; margin-bottom: 12px;
  padding: 8px 12px; background: rgba(34,197,94,0.1);
  border-radius: var(--radius-sm); border: 1px solid rgba(34,197,94,0.2);
}

@media (max-width: 600px) {
  .account-info-grid { grid-template-columns: 1fr; }
}
