/* ============================================================
   AIGAMES — AI Football Match Intelligence
   CSS Design System — Dark Glassmorphism / Neon Green + Gold
   ============================================================ */

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Color Palette */
  --bg-void:        #020408;
  --bg-deep:        #06090f;
  --bg-panel:       #0a0f1a;
  --bg-card:        rgba(10, 20, 40, 0.7);
  --bg-card-hover:  rgba(15, 30, 55, 0.85);
  --bg-glass:       rgba(255,255,255,0.03);
  --bg-glass-hover: rgba(255,255,255,0.06);

  --neon-green:     #00ff87;
  --neon-teal:      #60efff;
  --neon-gold:      #ffd700;
  --neon-orange:    #ff8c00;
  --neon-red:       #ff4466;
  --neon-purple:    #a855f7;

  --text-primary:   #f0f4ff;
  --text-secondary: #8899bb;
  --text-muted:     #445577;
  --text-accent:    #00ff87;

  --border-subtle:  rgba(0,255,135,0.12);
  --border-card:    rgba(0,255,135,0.18);
  --border-gold:    rgba(255,215,0,0.25);

  --grad-green:     linear-gradient(135deg, #00ff87, #60efff);
  --grad-gold:      linear-gradient(135deg, #ffd700, #ff8c00);
  --grad-danger:    linear-gradient(135deg, #ff4466, #ff8c00);
  --grad-purple:    linear-gradient(135deg, #a855f7, #60efff);

  --glow-green:     0 0 20px rgba(0,255,135,0.35), 0 0 60px rgba(0,255,135,0.12);
  --glow-gold:      0 0 20px rgba(255,215,0,0.35), 0 0 60px rgba(255,215,0,0.12);
  --glow-card:      0 8px 32px rgba(0,0,0,0.5), 0 1px 0 rgba(0,255,135,0.1) inset;

  /* Typography */
  --font-main:  'Inter', 'Space Grotesk', system-ui, sans-serif;
  --font-mono:  'JetBrains Mono', 'Courier New', monospace;

  /* Spacing */
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  18px;
  --radius-xl:  24px;
  --radius-full: 9999px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background: var(--bg-void);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.65;
}

/* Animated grid background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,255,135,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,135,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(0,255,135,0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ---- HEADER ---- */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(2,4,8,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0 24px;
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-icon { width: 44px; height: 44px; flex-shrink: 0; filter: drop-shadow(var(--glow-green)); }
.logo-icon svg { width: 100%; height: 100%; }

.logo-text { display: flex; flex-direction: column; }
.logo-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  background: var(--grad-green);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.05em;
  line-height: 1;
}
.logo-sub {
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  margin-top: 3px;
}

.header-meta { display: flex; align-items: center; gap: 16px; }

.live-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,255,135,0.08);
  border: 1px solid rgba(0,255,135,0.2);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--neon-green);
  text-transform: uppercase;
}

.pulse-dot {
  width: 8px; height: 8px;
  background: var(--neon-green);
  border-radius: 50%;
  box-shadow: var(--glow-green);
  animation: pulse-glow 1.5s infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.8); }
}

.header-version {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.header-domain {
  font-size: 0.62rem;
  color: var(--neon-green);
  font-family: var(--font-mono);
  opacity: 0.65;
  letter-spacing: 0.05em;
}

/* ---- LAYOUT ---- */
#main-content { position: relative; z-index: 1; }

.section-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 24px;
}

.hidden { display: none !important; }

/* ---- SECTION HEADER ---- */
.section-header { text-align: center; margin-bottom: 40px; }

.section-badge {
  display: inline-block;
  background: rgba(0,255,135,0.1);
  border: 1px solid rgba(0,255,135,0.25);
  color: var(--neon-green);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  background: linear-gradient(135deg, #f0f4ff 0%, #00ff87 60%, #60efff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
  line-height: 1.15;
}

.section-desc {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1rem;
}

/* ---- GLASS CARD ---- */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--glow-card);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.glass-card:hover {
  border-color: rgba(0,255,135,0.3);
  box-shadow: var(--glow-card), 0 0 0 1px rgba(0,255,135,0.08);
  background: var(--bg-card-hover);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(0,255,135,0.1);
  flex-wrap: wrap;
}

.card-icon { font-size: 1.1rem; }
.card-label {
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--neon-green);
  flex: 1;
}
.card-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-style: italic;
  flex-basis: 100%;
  margin-top: -6px;
}

/* ---- INPUT GRID ---- */
.input-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 20px;
  margin-bottom: 20px;
}

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

.input-card { padding: 24px; }

/* ---- FORM ELEMENTS ---- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

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

.form-input {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(0,255,135,0.15);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 10px 14px;
  font-size: 0.9rem;
  font-family: var(--font-main);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.form-input::placeholder { color: var(--text-muted); }
.form-input:focus {
  border-color: var(--neon-green);
  box-shadow: 0 0 0 3px rgba(0,255,135,0.1);
  background: rgba(0,255,135,0.05);
}

input[type="date"].form-input::-webkit-calendar-picker-indicator {
  filter: invert(0.6) sepia(1) saturate(2) hue-rotate(100deg);
  cursor: pointer;
}

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

.raw-textarea {
  width: 100%;
  height: 280px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(0,255,135,0.12);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  padding: 16px;
  font-size: 0.85rem;
  font-family: var(--font-mono);
  line-height: 1.7;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.raw-textarea::placeholder { color: var(--text-muted); }
.raw-textarea:focus {
  border-color: rgba(0,255,135,0.4);
  box-shadow: 0 0 0 3px rgba(0,255,135,0.07);
  background: rgba(0,255,135,0.03);
}

/* ---- OPTIONS ---- */
.options-card { padding: 20px 24px; margin-bottom: 20px; }

.options-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.toggle-option {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(0,255,135,0.12);
  border-radius: var(--radius-full);
  padding: 7px 16px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s;
  user-select: none;
}

.toggle-option input[type="checkbox"] { display: none; }
.toggle-check {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: rgba(0,255,135,0.08);
  border: 1.5px solid rgba(0,255,135,0.2);
  position: relative;
  transition: all 0.2s;
  flex-shrink: 0;
}
.toggle-option.active .toggle-check {
  background: var(--neon-green);
  border-color: var(--neon-green);
  box-shadow: 0 0 8px rgba(0,255,135,0.5);
}
.toggle-option.active .toggle-check::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: #000;
  font-weight: 800;
}
.toggle-option.active {
  border-color: rgba(0,255,135,0.35);
  background: rgba(0,255,135,0.07);
  color: var(--neon-green);
}

.toggle-option:hover {
  border-color: rgba(0,255,135,0.3);
  background: rgba(0,255,135,0.06);
}

/* ---- ACTION ROW ---- */
.action-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-analyze {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #00ff87, #60efff);
  color: #020408;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-full);
  padding: 16px 36px;
  cursor: pointer;
  box-shadow: var(--glow-green);
  transition: all 0.25s;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex: 1;
  max-width: 440px;
  justify-content: center;
}

.btn-analyze:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0,255,135,0.5), 0 0 80px rgba(0,255,135,0.2);
}

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

.btn-icon { font-size: 1.2rem; }
.btn-arrow { font-size: 1.1rem; opacity: 0.7; }

.btn-clear {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-muted);
  border-radius: var(--radius-full);
  padding: 16px 28px;
  cursor: pointer;
  font-size: 0.88rem;
  transition: all 0.2s;
  font-family: var(--font-main);
}
.btn-clear:hover { border-color: rgba(255,68,102,0.4); color: var(--neon-red); }

/* ---- LOADING ---- */
#loading-section { padding: 80px 24px; }

.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.loading-orb {
  position: relative;
  width: 120px; height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orb-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid transparent;
}

.ring-1 {
  width: 120px; height: 120px;
  border-top-color: var(--neon-green);
  border-right-color: rgba(0,255,135,0.3);
  animation: spin 1.2s linear infinite;
}
.ring-2 {
  width: 88px; height: 88px;
  border-bottom-color: var(--neon-teal);
  border-left-color: rgba(96,239,255,0.3);
  animation: spin 0.9s linear infinite reverse;
}
.ring-3 {
  width: 60px; height: 60px;
  border-top-color: var(--neon-gold);
  border-right-color: rgba(255,215,0,0.3);
  animation: spin 0.6s linear infinite;
}

.orb-core {
  position: relative;
  z-index: 1;
  background: rgba(0,255,135,0.1);
  border-radius: 50%;
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.loading-text { text-align: center; }
.loading-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.loading-sub {
  color: var(--neon-green);
  font-size: 0.85rem;
  font-family: var(--font-mono);
  min-height: 20px;
}

.loading-progress { width: 100%; max-width: 500px; }

.progress-bar {
  height: 4px;
  background: rgba(0,255,135,0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 16px;
}

.progress-fill {
  height: 100%;
  background: var(--grad-green);
  border-radius: var(--radius-full);
  width: 0%;
  transition: width 0.4s ease;
  box-shadow: var(--glow-green);
}

.progress-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.step-chip {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0,255,135,0.12);
  color: var(--text-muted);
  transition: all 0.3s;
}

.step-chip.active {
  background: rgba(0,255,135,0.1);
  border-color: var(--neon-green);
  color: var(--neon-green);
}

.step-chip.done {
  background: rgba(0,255,135,0.08);
  border-color: rgba(0,255,135,0.25);
  color: rgba(0,255,135,0.6);
}

/* ---- REPORT HERO ---- */
.report-hero {
  background: linear-gradient(135deg, rgba(0,255,135,0.05) 0%, rgba(96,239,255,0.03) 50%, rgba(255,215,0,0.04) 100%);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 32px 36px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.report-match-badge {}

.match-teams {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.team-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  font-weight: 700;
  line-height: 1;
}

.home-team { background: var(--grad-green); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.away-team { background: var(--grad-gold); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.vs-separator {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  padding: 6px 12px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
}

.match-meta-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.match-meta-item { font-size: 0.82rem; color: var(--text-secondary); }
.meta-sep { color: var(--text-muted); }

.report-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.btn-action {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-size: 0.8rem;
  cursor: pointer;
  font-family: var(--font-main);
  transition: all 0.2s;
}
.btn-action:hover { background: rgba(255,255,255,0.08); color: var(--text-primary); }

.btn-new {
  background: rgba(0,255,135,0.1);
  border-color: rgba(0,255,135,0.25);
  color: var(--neon-green);
}
.btn-new:hover { background: rgba(0,255,135,0.18); }

/* ---- MODULE NAV ---- */
.module-nav {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 0 4px 12px;
  margin-bottom: 24px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,255,135,0.2) transparent;
}

.module-nav::-webkit-scrollbar { height: 4px; }
.module-nav::-webkit-scrollbar-track { background: transparent; }
.module-nav::-webkit-scrollbar-thumb { background: rgba(0,255,135,0.2); border-radius: var(--radius-full); }

.nav-btn {
  white-space: nowrap;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(0,255,135,0.1);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  padding: 7px 14px;
  font-size: 0.72rem;
  font-weight: 600;
  font-family: var(--font-main);
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.04em;
}

.nav-btn:hover { border-color: rgba(0,255,135,0.25); color: var(--text-secondary); }
.nav-btn.active {
  background: rgba(0,255,135,0.12);
  border-color: var(--neon-green);
  color: var(--neon-green);
  box-shadow: 0 0 12px rgba(0,255,135,0.15);
}

/* ---- REPORT CONTENT ---- */
.report-content { display: flex; flex-direction: column; gap: 20px; }

/* ---- MODULE BLOCK ---- */
.module-block {
  glass-card;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  overflow: hidden;
  transition: all 0.3s;
}

.module-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 24px;
  background: rgba(0,255,135,0.04);
  border-bottom: 1px solid rgba(0,255,135,0.1);
  cursor: pointer;
  user-select: none;
  transition: background 0.2s;
}

.module-header:hover { background: rgba(0,255,135,0.07); }

.module-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--neon-green);
  background: rgba(0,255,135,0.1);
  border: 1px solid rgba(0,255,135,0.2);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  letter-spacing: 0.08em;
}

.module-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  flex: 1;
}

.module-toggle {
  color: var(--text-muted);
  font-size: 1rem;
  transition: transform 0.3s;
}

.module-block.collapsed .module-toggle { transform: rotate(-90deg); }

.module-body {
  padding: 24px;
  display: block;
  animation: fadeInDown 0.3s ease;
}

.module-block.collapsed .module-body { display: none; }

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

/* ---- REPORT CONTENT ELEMENTS ---- */
.module-body h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--neon-teal);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 20px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(96,239,255,0.1);
}

.module-body h3:first-child { margin-top: 0; }

.module-body h4 {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--neon-gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 14px 0 8px;
}

.module-body p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 10px;
  line-height: 1.7;
}

.module-body strong { color: var(--text-primary); font-weight: 600; }
.module-body em { color: var(--neon-green); font-style: normal; }

/* ---- TABLES ---- */
.rpt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  margin: 12px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.rpt-table thead tr {
  background: rgba(0,255,135,0.08);
  border-bottom: 1px solid rgba(0,255,135,0.2);
}

.rpt-table th {
  text-align: left;
  padding: 10px 14px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--neon-green);
  white-space: nowrap;
}

.rpt-table td {
  padding: 10px 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  vertical-align: top;
}

.rpt-table tbody tr:hover { background: rgba(0,255,135,0.03); }
.rpt-table tbody tr:last-child td { border-bottom: none; }

.rpt-table td:first-child { color: var(--text-primary); font-weight: 500; }

/* ---- PILL BADGES ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge-green { background: rgba(0,255,135,0.12); color: var(--neon-green); border: 1px solid rgba(0,255,135,0.25); }
.badge-gold { background: rgba(255,215,0,0.12); color: var(--neon-gold); border: 1px solid rgba(255,215,0,0.25); }
.badge-red { background: rgba(255,68,102,0.12); color: var(--neon-red); border: 1px solid rgba(255,68,102,0.25); }
.badge-teal { background: rgba(96,239,255,0.12); color: var(--neon-teal); border: 1px solid rgba(96,239,255,0.25); }
.badge-purple { background: rgba(168,85,247,0.12); color: var(--neon-purple); border: 1px solid rgba(168,85,247,0.25); }
.badge-orange { background: rgba(255,140,0,0.12); color: var(--neon-orange); border: 1px solid rgba(255,140,0,0.25); }

/* ---- CONFIDENCE BAR ---- */
.conf-bar-wrap { margin: 6px 0 14px; }
.conf-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 5px;
}
.conf-label strong { color: var(--text-primary); }

.conf-bar {
  height: 8px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-full);
  overflow: hidden;
}

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

.conf-fill.green { background: var(--grad-green); box-shadow: var(--glow-green); }
.conf-fill.gold { background: var(--grad-gold); box-shadow: var(--glow-gold); }
.conf-fill.orange { background: linear-gradient(90deg, #ff8c00, #ff4466); }

/* ---- STAT GRIDS ---- */
.stat-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 12px 0; }
.stat-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 12px 0; }
.stat-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 12px 0; }

@media (max-width: 768px) {
  .stat-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stat-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

.stat-box {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
}

.stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.stat-box.green .stat-value { color: var(--neon-green); }
.stat-box.gold .stat-value { color: var(--neon-gold); }
.stat-box.teal .stat-value { color: var(--neon-teal); }
.stat-box.red .stat-value { color: var(--neon-red); }
.stat-box.purple .stat-value { color: var(--neon-purple); }

/* ---- BULLET LISTS ---- */
.module-body ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 8px 0 14px;
}

.module-body ul li {
  display: flex;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.module-body ul li::before {
  content: '▸';
  color: var(--neon-green);
  flex-shrink: 0;
  margin-top: 1px;
}

/* ---- PICK CARDS ---- */
.pick-tier { margin-bottom: 20px; }
.pick-tier-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.pick-tier-label span {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.pick-tier-line { flex: 1; height: 1px; }

.picks-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }

.pick-card {
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius-md);
  padding: 16px;
  border-left: 3px solid transparent;
  transition: all 0.2s;
}

.pick-card:hover { background: rgba(255,255,255,0.06); transform: translateY(-1px); }
.pick-card.tier-1 { border-left-color: var(--neon-green); }
.pick-card.tier-2 { border-left-color: var(--neon-teal); }
.pick-card.tier-3 { border-left-color: var(--neon-gold); }

.pick-market { font-weight: 700; font-size: 0.88rem; color: var(--text-primary); margin-bottom: 6px; }
.pick-prob {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 6px;
}
.pick-card.tier-1 .pick-prob { color: var(--neon-green); }
.pick-card.tier-2 .pick-prob { color: var(--neon-teal); }
.pick-card.tier-3 .pick-prob { color: var(--neon-gold); }

.pick-reason { font-size: 0.78rem; color: var(--text-muted); line-height: 1.5; }

/* ---- MOTIVATION METER ---- */
.motivation-meter {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0;
}
.motivation-label { font-size: 0.8rem; color: var(--text-secondary); min-width: 90px; }
.motivation-track {
  flex: 1;
  height: 12px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.motivation-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 1s ease;
}
.motivation-score {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  min-width: 30px;
  text-align: right;
}

/* ---- HEATMAP ROW ---- */
.heatmap-row {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 4px;
  margin: 8px 0;
}
.heatmap-cell {
  aspect-ratio: 1;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 700;
  font-family: var(--font-mono);
  transition: transform 0.15s;
}
.heatmap-cell:hover { transform: scale(1.15); }

/* ---- RISK LIST ---- */
.risk-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  border: 1px solid transparent;
}
.risk-item.high { background: rgba(255,68,102,0.07); border-color: rgba(255,68,102,0.2); }
.risk-item.medium { background: rgba(255,140,0,0.07); border-color: rgba(255,140,0,0.2); }
.risk-item.low { background: rgba(255,215,0,0.05); border-color: rgba(255,215,0,0.15); }

.risk-level {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.08em;
  flex-shrink: 0;
  margin-top: 1px;
}
.risk-item.high .risk-level { background: rgba(255,68,102,0.2); color: var(--neon-red); }
.risk-item.medium .risk-level { background: rgba(255,140,0,0.2); color: var(--neon-orange); }
.risk-item.low .risk-level { background: rgba(255,215,0,0.15); color: var(--neon-gold); }

.risk-content { flex: 1; }
.risk-title { font-size: 0.85rem; font-weight: 600; color: var(--text-primary); margin-bottom: 3px; }
.risk-desc { font-size: 0.78rem; color: var(--text-muted); line-height: 1.5; }

/* ---- FINAL BETTING CARD TABLE ---- */
.final-card-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.final-card-table th {
  text-align: left;
  padding: 10px 16px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--neon-green);
  background: rgba(0,255,135,0.06);
  border-bottom: 1px solid rgba(0,255,135,0.15);
}
.final-card-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--text-secondary);
  vertical-align: middle;
}
.final-card-table tr:last-child td { border-bottom: none; }
.final-card-table tr:hover td { background: rgba(0,255,135,0.02); }

.prob-cell {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
}

.conf-cell { font-size: 0.78rem; }

/* ---- FOOTER ---- */
#site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(0,255,135,0.08);
  padding: 24px;
  margin-top: 60px;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  text-align: center;
}

.footer-disclaimer {
  font-size: 0.75rem;
  color: var(--text-muted);
  max-width: 800px;
  line-height: 1.6;
}

.footer-disclaimer a { color: var(--neon-teal); text-decoration: none; }
.footer-disclaimer a:hover { text-decoration: underline; }

.footer-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.68rem;
  color: rgba(68,85,119,0.6);
  font-family: var(--font-mono);
}

/* ---- DATA NOT PROVIDED NOTE ---- */
.data-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(255,215,0,0.05);
  border: 1px solid rgba(255,215,0,0.15);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin: 10px 0;
  font-size: 0.8rem;
  color: rgba(255,215,0,0.7);
}
.data-note-icon { flex-shrink: 0; }

/* ---- FORMATIONS ---- */
.formation-display {
  background: radial-gradient(ellipse at center, rgba(0,255,135,0.06) 0%, transparent 70%);
  border: 1px solid rgba(0,255,135,0.1);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  font-family: var(--font-mono);
}

.formation-label {
  font-size: 2rem;
  font-weight: 700;
  color: var(--neon-green);
  margin-bottom: 8px;
}

.formation-rows { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.formation-row { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }

.player-chip {
  background: rgba(0,255,135,0.08);
  border: 1px solid rgba(0,255,135,0.2);
  border-radius: var(--radius-full);
  padding: 5px 14px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--neon-green);
  white-space: nowrap;
}

.player-chip.gk {
  background: rgba(255,215,0,0.08);
  border-color: rgba(255,215,0,0.2);
  color: var(--neon-gold);
}

/* ---- ACTION BADGES (BET / WATCH / SKIP) ---- */
.action-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  font-family: 'Space Grotesk', sans-serif;
}

.action-bet {
  background: rgba(0, 255, 135, 0.14);
  border: 1.5px solid rgba(0, 255, 135, 0.45);
  color: var(--neon-green);
  box-shadow: 0 0 10px rgba(0, 255, 135, 0.15);
}

.action-watch {
  background: rgba(255, 215, 0, 0.1);
  border: 1.5px solid rgba(255, 215, 0, 0.35);
  color: var(--neon-gold);
}

.action-skip {
  background: rgba(255, 68, 102, 0.1);
  border: 1.5px solid rgba(255, 68, 102, 0.3);
  color: var(--neon-red);
}

/* ---- DOCX PICK CARD HOVER ---- */
.docx-pick-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
}

/* ---- SUCCESS BANNER & MULTI-TAB PANEL ---- */
.success-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(0, 255, 135, 0.06);
  border: 1px solid rgba(0, 255, 135, 0.3);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 24px;
  box-shadow: 0 0 30px rgba(0, 255, 135, 0.08);
  flex-wrap: wrap;
}

.success-icon {
  font-size: 2rem;
}

.success-content {
  flex: 1;
  min-width: 200px;
}

.success-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--neon-green);
  margin-bottom: 4px;
}

.success-desc {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.btn-reopen {
  background: linear-gradient(135deg, var(--neon-green), var(--neon-teal));
  color: #020408;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: var(--transition-fast);
  box-shadow: 0 0 20px rgba(0, 255, 135, 0.2);
}

.btn-reopen:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 255, 135, 0.4);
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: rgba(0,0,0,0.3); }
::-webkit-scrollbar-thumb { background: rgba(0,255,135,0.2); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: rgba(0,255,135,0.35); }

/* ---- SELECTION ---- */
::selection { background: rgba(0,255,135,0.25); color: var(--text-primary); }

/* ---- PRINT ---- */
@media print {
  body { background: #fff; color: #000; }
  body::before, body::after { display: none; }
  #site-header, .module-nav, .report-actions, #site-footer { display: none; }
  .module-block { break-inside: avoid; border: 1px solid #ccc; }
  .module-body { display: block !important; }
  .badge, .pick-card, .risk-item { border: 1px solid #ccc; }
}

/* ====================================================
   RESPONSIVE — Mobile First
   ==================================================== */

/* ---- TABLET (max 1024px) ---- */
@media (max-width: 1024px) {
  .header-inner { height: 60px; }
  .logo-title { font-size: 1.1rem; }
  .logo-sub { display: none; }
  .header-domain { display: none; }
  .section-container { padding: 32px 20px; }
  .input-grid { grid-template-columns: 1fr; }
  .stat-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .rpt-table { font-size: 0.78rem; }
  .rpt-table th, .rpt-table td { padding: 8px 10px; }
}

/* ---- MOBILE LARGE (max 768px) ---- */
@media (max-width: 768px) {
  /* Header */
  #site-header { padding: 0 16px; }
  .header-inner { height: 56px; gap: 8px; }
  .logo-icon { width: 34px; height: 34px; }
  .logo-title { font-size: 1rem; }
  .header-meta { gap: 8px; }
  .live-badge { padding: 4px 10px; font-size: 0.62rem; }
  .header-version { display: none; }

  /* Sections */
  .section-container { padding: 24px 16px; }
  .section-title { font-size: 1.4rem; }
  .section-desc { font-size: 0.82rem; }

  /* Input grid — single column */
  .input-grid { grid-template-columns: 1fr; gap: 16px; }
  .form-row { grid-template-columns: 1fr; gap: 12px; }
  .glass-card { padding: 18px; }
  .input-card { padding: 18px; }
  .form-group label { font-size: 0.72rem; }
  .form-input { font-size: 0.88rem; padding: 10px 12px; }
  .raw-textarea { min-height: 160px; font-size: 0.8rem; }

  /* Options grid */
  .options-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .toggle-text { font-size: 0.75rem; }

  /* Action buttons */
  .action-row { flex-direction: column; gap: 10px; }
  .btn-analyze { width: 100%; padding: 14px 20px; font-size: 0.88rem; }
  .btn-clear { width: 100%; text-align: center; }

  /* Stat grids */
  .stat-grid-4 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat-grid-2 { grid-template-columns: 1fr; gap: 12px; }
  .stat-box { padding: 14px; }
  .stat-value { font-size: 1rem; }

  /* Report header hero */
  .report-hero { padding: 20px 16px; }
  .hero-teams { flex-direction: column; gap: 10px; text-align: center; }
  .hero-home, .hero-away { font-size: 1.2rem; }
  .hero-vs { font-size: 0.7rem; padding: 4px 10px; }
  .hero-meta { justify-content: center; flex-wrap: wrap; gap: 8px; }
  .hero-meta-item { font-size: 0.72rem; }

  /* Module nav — scrollable horizontal bar */
  .module-nav {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding: 10px 16px;
    gap: 6px;
    scrollbar-width: none;
    justify-content: flex-start;
  }
  .module-nav::-webkit-scrollbar { display: none; }
  .module-nav-btn { white-space: nowrap; font-size: 0.68rem; padding: 6px 10px; flex-shrink: 0; }

  /* Module blocks */
  .module-block { margin-bottom: 12px; }
  .module-header { padding: 14px 16px; }
  .module-num { font-size: 0.62rem; padding: 3px 8px; }
  .module-title { font-size: 0.9rem; }
  .module-body { padding: 14px 16px; }

  /* Tables — make scrollable */
  .rpt-table { font-size: 0.72rem; display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .rpt-table thead, .rpt-table tbody, .rpt-table tr { display: table; width: 100%; table-layout: fixed; }
  .rpt-table th, .rpt-table td { padding: 8px; white-space: normal; }

  /* Report top bar */
  .rpt-top-bar { padding: 10px 14px; gap: 8px; }
  .rpt-top-actions { gap: 6px; }
  .btn-action { padding: 7px 12px; font-size: 0.72rem; }

  /* Tier cards */
  .docx-tier-header { padding: 12px 14px; flex-wrap: wrap; gap: 8px; }
  .docx-pick-card { padding: 12px; }

  /* Formation */
  .formation-display { margin-bottom: 16px; }
  .player-chip { font-size: 0.65rem; padding: 3px 7px; }

  /* Footer */
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
  .footer-disclaimer { font-size: 0.72rem; }
  .footer-meta { font-size: 0.7rem; justify-content: center; }

  /* Success banner */
  .success-banner { flex-direction: column; gap: 10px; align-items: flex-start; }
  .btn-reopen { align-self: stretch; text-align: center; }

  /* Loading */
  .loading-title { font-size: 1.1rem; }
  .progress-steps { gap: 6px; }
  .step-chip { font-size: 0.6rem; padding: 4px 8px; }

  /* Risk items */
  .risk-item { flex-direction: column; gap: 8px; }
  .risk-level { min-width: unset; width: fit-content; }
}

/* ---- MOBILE SMALL (max 480px) ---- */
@media (max-width: 480px) {
  .logo-title { font-size: 0.9rem; }
  .section-title { font-size: 1.2rem; }
  .stat-grid-4 { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stat-value { font-size: 0.9rem; }
  .stat-label { font-size: 0.58rem; }
  .options-grid { grid-template-columns: repeat(2, 1fr); }
  .toggle-text { font-size: 0.7rem; }

  /* Hero teams side by side on small screens */
  .hero-teams { gap: 6px; }
  .hero-home, .hero-away { font-size: 1rem; }

  /* Betting card */
  .final-card-item { flex-direction: column; gap: 8px; }
  .final-card-action { align-self: flex-start; }

  /* Module nav even more compact */
  .module-nav-btn { font-size: 0.62rem; padding: 5px 8px; }

  /* Tier legend */
  .tier-legend { flex-direction: column; }
}

/* ---- PRINT ---- */
@media print {
  body { background: #fff; color: #000; }
  body::before, body::after { display: none; }
  #site-header, .module-nav, .report-actions, #site-footer { display: none; }
  .module-block { break-inside: avoid; border: 1px solid #ccc; }
  .module-body { display: block !important; }
  .badge, .pick-card, .risk-item { border: 1px solid #ccc; }
}
