/* =========================================================
   FBPREDICT - STYLE.CSS (Base Styles & Foundation)
   Version 3.2 - Split File 1/2
   Contains: Variables, Base, Header, Navigation, Buttons, 
   Mobile Menu, Float Dock, Utilities
========================================================= */

:root {
  /* Base Colors */
  --bg: #08090e;
  --bg-elevated: #0c0d12;
  --panel: #0f1117;
  --panel-hover: #13141b;
  --panel-border: #1a1c26;

  /* Text - Enhanced Contrast for Dark Mode */
  --text: #f4f4f5;
  --text-bright: #ffffff;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;

  /* Primary - Cyan */
  --primary: #06b6d4;
  --primary-bright: #22d3ee;
  --primary-dim: #0891b2;
  --primary-soft: rgba(6, 182, 212, 0.12);
  --primary-glow: rgba(6, 182, 212, 0.25);

  /* Orange - Secondary Accent */
  --orange: #f97316;
  --orange-bright: #fb923c;
  --orange-dim: #ea580c;
  --orange-soft: rgba(249, 115, 22, 0.12);
  --orange-glow: rgba(249, 115, 22, 0.2);

  /* Status */
  --success: #10b981;
  --success-soft: rgba(16, 185, 129, 0.15);
  --warning: #f59e0b;
  --warning-soft: rgba(245, 158, 11, 0.15);
  --danger: #ef4444;
  --danger-soft: rgba(239, 68, 68, 0.15);

  /* Live Indicator */
  --live: #ef4444;
  --live-soft: rgba(239, 68, 68, 0.15);

  /* Effects */
  --glass: rgba(15, 17, 23, 0.95);
  --glass-solid: rgba(15, 17, 23, 0.98);
  --glass-border: rgba(148, 163, 184, 0.12);
  --shine: rgba(255, 255, 255, 0.04);

  /* Shadows - Cleaner */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.6);
  --shadow-xl: 0 16px 40px rgba(0, 0, 0, 0.7);

  /* Layout */
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 999px;
  --header-height: 64px;
  --header-padding: 12px;
  --header-gap: 16px;
  --header-total-space: calc(var(--header-padding) + var(--header-height) + var(--header-padding) + var(--header-gap));

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --fast: 120ms;
  --normal: 200ms;
  --slow: 350ms;
}

/* Light Theme */
html[data-theme="light"] {
  --bg: #f3f4f6;
  --bg-elevated: #e5e7eb;
  --panel: #ffffff;
  --panel-hover: #f9fafb;
  --panel-border: #e5e7eb;

  --text: #1f2937;
  --text-bright: #111827;
  --text-muted: #4b5563;
  --text-dim: #6b7280;

  --glass: rgba(255, 255, 255, 0.95);
  --glass-solid: rgba(255, 255, 255, 0.98);
  --glass-border: rgba(15, 23, 42, 0.1);
  --shine: rgba(255, 255, 255, 0.9);

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.08);
  --shadow: 0 3px 10px rgba(15, 23, 42, 0.1);
  --shadow-lg: 0 8px 24px rgba(15, 23, 42, 0.12);
  --shadow-xl: 0 16px 40px rgba(15, 23, 42, 0.15);

  --primary-glow: rgba(6, 182, 212, 0.15);
  --orange-glow: rgba(249, 115, 22, 0.15);
}

/* =========================================================
   BASE STYLES
========================================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* Subtle background pattern */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(circle at 10% 20%, rgba(6, 182, 212, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(249, 115, 22, 0.025) 0%, transparent 50%);
  z-index: -1;
  pointer-events: none;
}

html[data-theme="light"] body::before {
  background: 
    radial-gradient(circle at 10% 20%, rgba(6, 182, 212, 0.02) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(249, 115, 22, 0.015) 0%, transparent 50%);
}

.muted { color: var(--text-muted); }

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.2s var(--ease);
  position: relative;
  display: inline-block;
}

a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
  transition: width 0.25s var(--ease);
}

a:hover {
  color: var(--primary-bright);
}

a:hover::after {
  width: 100%;
}

html[data-theme="light"] a {
  color: var(--primary-dim);
}

html[data-theme="light"] a:hover {
  color: var(--primary);
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================================================
   HEADER
========================================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--header-padding) 24px;
  padding-right: calc(24px + env(safe-area-inset-right, 0));
  padding-left: calc(24px + env(safe-area-inset-left, 0));
  background: transparent;
  border-bottom: none;
  backdrop-filter: none;
}

header,
.site-header,
#header {
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  width: 100%;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 24px;
  padding: 0 28px;
  background: var(--glass-solid);
  backdrop-filter: blur(32px) saturate(200%);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: visible;
  transition: all 0.3s var(--ease);
}

.header-row:hover {
  box-shadow: 
    0 12px 48px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

html[data-theme="light"] .header-row {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

html[data-theme="light"] .header-row:hover {
  box-shadow: 
    0 12px 48px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* Brand */
.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex-shrink: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--orange) 100%);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--normal) var(--ease);
}

.logo:hover {
  transform: scale(1.05) rotate(-3deg);
}

.brand-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-bright);
  line-height: 1;
}

.brand-pill {
  padding: 4px 8px;
  border-radius: var(--radius-full);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--orange);
  color: #fff;
}

.brand-sub {
  display: none;
}

/* Navigation */
.primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1;
  max-width: 600px;
  padding: 5px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
}

.nav-item,
.nav-item-dropdown {
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  position: relative;
  white-space: nowrap;
}

.nav-item::before,
.nav-item-dropdown::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary-soft), var(--orange-soft));
  opacity: 0;
  transition: opacity 0.2s var(--ease);
  z-index: -1;
}

.nav-item span,
.nav-item-dropdown span {
  position: relative;
  z-index: 1;
}

.nav-item:hover,
.nav-item-dropdown:hover {
  color: var(--text-bright);
  transform: translateY(-2px);
}

.nav-item:hover::before,
.nav-item-dropdown:hover::before {
  opacity: 1;
}

.nav-item.active {
  color: var(--text-bright);
  background: var(--primary-soft);
  font-weight: 700;
}

html[data-theme="light"] .nav-item:hover {
  color: var(--text-bright);
  background: rgba(6, 182, 212, 0.08);
}

html[data-theme="light"] .nav-item.active {
  background: rgba(6, 182, 212, 0.12);
  color: var(--text-bright);
}

/* Dropdown */
.has-dropdown { 
  position: relative;
  display: inline-block;
  z-index: 200;
}

.nav-item-dropdown {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  position: relative;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  margin-top: 10px;
  background: var(--glass-solid);
  backdrop-filter: blur(24px) saturate(200%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 6px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.96);
  transition: all var(--normal) var(--ease);
  z-index: 99999;
  pointer-events: none;
}

.has-dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 14px;
  background: transparent;
}

.has-dropdown:hover .nav-dropdown,
.has-dropdown:focus-within .nav-dropdown,
.nav-dropdown:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

html[data-theme="light"] .nav-dropdown {
  background: rgba(255, 255, 255, 0.98);
}

.nav-dropdown a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--fast) var(--ease);
}

.nav-dropdown a:hover {
  background: var(--primary-soft);
  color: var(--text-bright);
  padding-left: 18px;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--primary);
  transition: all var(--normal) var(--ease);
  font-size: 18px;
}

.theme-toggle:hover {
  background: var(--primary-soft);
  transform: scale(1.08);
}

.theme-toggle span {
  display: flex;
}

html[data-theme="light"] .theme-toggle {
  color: var(--orange);
}

html[data-theme="light"] .theme-toggle:hover {
  background: var(--orange-soft);
}

/* Mobile Nav Button */
.mobile-nav-btn {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all var(--normal) var(--ease);
}

.mobile-nav-btn:hover {
  transform: scale(1.08);
}

.mobile-nav-btn svg {
  width: 20px;
  height: 20px;
}

/* =========================================================
   BUTTONS
========================================================= */
.btn {
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
  z-index: 1;
}

.btn > * {
  position: relative;
  z-index: 2;
}

.btn.primary {
  background: var(--primary);
  color: #fff;
}

.btn.primary:hover {
  background: var(--primary-bright);
  transform: translateY(-3px);
  box-shadow: 
    0 8px 24px rgba(6, 182, 212, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn.primary:hover::before {
  opacity: 1;
}

.btn.primary:active {
  transform: translateY(-1px);
}

.hero-cta {
  background: var(--orange);
}

.hero-cta:hover {
  background: var(--orange-bright);
  box-shadow: 
    0 8px 24px rgba(249, 115, 22, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-ghost {
  padding: 10px 20px;
  border-radius: var(--radius-full);
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s var(--ease);
}

html[data-theme="light"] .btn-ghost {
  color: var(--text-bright);
  background: rgba(0, 0, 0, 0.03);
}

.btn-ghost:hover {
  background: var(--primary-soft);
  color: var(--text-bright);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.15);
}

/* =========================================================
   MOBILE MENU
========================================================= */
#mobileOverlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 9, 14, 0.9);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: all var(--normal) var(--ease);
  z-index: 9998;
}

#mobileOverlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: 85%;
  max-width: 340px;
  background: var(--glass-solid);
  backdrop-filter: blur(24px) saturate(200%);
  border-left: 1px solid var(--glass-border);
  box-shadow: var(--shadow-xl);
  transform: translateX(100%);
  transition: transform var(--normal) var(--ease);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.mobile-menu-drawer.open {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  background: var(--glass-solid);
  z-index: 1;
}

.mobile-menu-title-text {
  font-weight: 800;
  font-size: 17px;
  color: var(--text-bright);
}

.mobile-menu-close {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--fast) var(--ease);
  font-size: 18px;
  color: var(--text-muted);
}

.mobile-menu-close:hover {
  background: var(--danger-soft);
  color: var(--danger);
}

.mobile-menu-content {
  padding: 16px 20px;
  flex: 1;
  overflow-y: auto;
}

.mobile-menu-section + .mobile-menu-section {
  margin-top: 12px;
}

.mobile-menu-title {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all var(--fast) var(--ease);
}

.mobile-menu-title:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-bright);
}

.mobile-menu-title svg,
.mobile-menu-title .chevron {
  transition: transform var(--normal) var(--ease);
}

.mobile-menu-title.open svg,
.mobile-menu-title.open .chevron {
  transform: rotate(180deg);
}

.mobile-menu-links {
  margin-top: 8px;
  padding-left: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--slow) var(--ease-out);
}

.mobile-menu-links.open {
  max-height: 600px;
}

.mobile-menu-links a {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 12px 14px;
  border-radius: var(--radius);
  transition: all var(--fast) var(--ease);
  text-decoration: none;
}

.mobile-menu-links a:hover {
  background: var(--primary-soft);
  color: var(--text-bright);
  padding-left: 18px;
}

.mobile-drawer,
.menu-drawer,
#mobile-menu {
  z-index: 1100 !important;
}

.menu-overlay,
.drawer-overlay {
  z-index: 1050 !important;
}

/* =========================================================
   FLOAT DOCK
========================================================= */
.float-dock {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-end;
}

.tg-float {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border-radius: var(--radius-full);
  text-decoration: none;
  color: #fff;
  background: #229ED9;
  box-shadow: 0 4px 16px rgba(34, 158, 217, 0.25);
  transition: all var(--normal) var(--ease);
  font-weight: 700;
}

.tg-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(34, 158, 217, 0.35);
}

.tg-float__txt {
  font-weight: 700;
  font-size: 14px;
}

#backTop,
.float-dock .back-top {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  border: 1px solid var(--glass-border);
  background: var(--glass-solid);
  backdrop-filter: blur(24px) saturate(200%);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  color: var(--orange);
  font-size: 20px;
  font-weight: 800;
  transition: all var(--normal) var(--ease);
}

.back-top {
  display: flex;
}

#backTop:hover,
.float-dock .back-top:hover {
  transform: translateY(-3px);
  background: var(--orange-soft);
}

/* Back to Top Button - RIGHT bottom corner */
.back-top,
#backTop {
  position: fixed !important;
  bottom: 24px !important;
  right: 24px !important;
  left: auto !important;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent, #f97316);
  color: #ffffff;
  border: none;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
  z-index: 999;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-top:hover,
#backTop:hover {
  background: #ea580c;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(249, 115, 22, 0.4);
}

/* =========================================================
   TELEGRAM FLOATING CTA - ANIMATED EXPAND
   Position: Left side, vertically centered
========================================================= */

.tg-float-left {
  --tg1: #2AABEE;
  --tg2: #229ED9;
  
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9000;
  
  display: flex;
  align-items: center;
  gap: 0;
  
  padding: 0;
  border-radius: 0 50px 50px 0;
  border: 2px solid rgba(34, 158, 217, 0.3);
  border-left: none;
  background: linear-gradient(135deg, var(--tg1), var(--tg2));
  
  text-decoration: none !important;
  color: #fff !important;
  cursor: pointer;
  
  overflow: hidden;
  box-shadow: 4px 4px 20px rgba(34, 158, 217, 0.4);
  
  /* Collapsed state dimensions */
  width: 56px;
  height: 56px;
  
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Remove default anchor underline effects */
.tg-float-left::after {
  display: none !important;
}

/* Pulse animation for attention */
.tg-float-left::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--tg1), var(--tg2));
  opacity: 0;
  z-index: -1;
  animation: tgPulse 2s ease-in-out infinite;
}

@keyframes tgPulse {
  0%, 100% {
    opacity: 0;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(1.15);
  }
}

/* Hover effect when collapsed */
.tg-float-left:not(.is-expanded):hover {
  width: 70px;
  box-shadow: 6px 6px 30px rgba(34, 158, 217, 0.5);
}

/* Expanded state */
.tg-float-left.is-expanded {
  width: 320px;
  height: auto;
  padding: 16px 20px 16px 16px;
  border-radius: 0 20px 20px 0;
  gap: 14px;
}

.tg-float-left.is-expanded::before {
  animation: none;
  opacity: 0;
}

/* Icon container */
.tg-float-left__icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  margin-left: 6px;
}

.tg-float-left.is-expanded .tg-float-left__icon {
  margin-left: 0;
  background: rgba(255, 255, 255, 0.25);
}

.tg-float-left__icon svg {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.tg-float-left:not(.is-expanded):hover .tg-float-left__icon svg {
  transform: scale(1.1);
}

/* Text content - hidden when collapsed */
.tg-float-left__content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.3s ease 0.1s;
  white-space: nowrap;
  pointer-events: none;
}

.tg-float-left.is-expanded .tg-float-left__content {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.tg-float-left__title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.3px;
  line-height: 1.2;
}

.tg-float-left__sub {
  font-size: 12px;
  opacity: 0.85;
  line-height: 1.3;
}

/* Action hint */
.tg-float-left__hint {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease 0.2s;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.tg-float-left.is-expanded .tg-float-left__hint {
  opacity: 0.9;
  transform: translateX(0);
}

.tg-float-left__hint svg {
  width: 14px;
  height: 14px;
  animation: bounceRight 1s ease-in-out infinite;
}

@keyframes bounceRight {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(4px);
  }
}

/* 18+ badge */
.tg-float-left__badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ff4757;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(255, 71, 87, 0.4);
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.3s ease 0.3s;
}

.tg-float-left.is-expanded .tg-float-left__badge {
  opacity: 1;
  transform: scale(1);
}

/* Close button when expanded */
.tg-float-left__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.3s ease 0.2s;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  line-height: 1;
  z-index: 10;
}

.tg-float-left.is-expanded .tg-float-left__close {
  opacity: 1;
  transform: scale(1);
}

.tg-float-left__close:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* Tooltip for collapsed state */
.tg-float-left__tooltip {
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%) translateX(10px);
  background: var(--panel, #1a1a2e);
  color: var(--text, #fff);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.tg-float-left__tooltip::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-right-color: var(--panel, #1a1a2e);
}

.tg-float-left:not(.is-expanded):hover .tg-float-left__tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(15px);
}

.tg-float-left.is-expanded .tg-float-left__tooltip {
  display: none;
}

/* =========================================================
   SCROLLBAR
========================================================= */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--glass-border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.2);
}

/* =========================================================
   UTILITIES
========================================================= */
::selection {
  background: var(--primary-glow);
  color: #fff;
}

*:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
    transition-duration: 0.01ms;
  }
}

/* =========================================================
   DESKTOP/MOBILE VISIBILITY
========================================================= */
.desktop-only { 
  display: inline-block; 
}

.mobile-only { 
  display: none; 
}

.desktop-only-inline { 
  display: inline-block; 
}

.mobile-only-inline { 
  display: none; 
}

/* =========================================================
   ANIMATIONS
========================================================= */
@keyframes spin { 
  to { transform: rotate(360deg); } 
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gradientSlide {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* =========================================================
   BASE RESPONSIVE - HEADER & NAV
========================================================= */
@media (max-width: 880px) {
  :root {
    --header-height: 56px;
    --header-padding: 8px;
    --header-gap: 16px;
    --header-total-space: calc(var(--header-padding) + var(--header-height) + var(--header-padding) + var(--header-gap));
  }

  .primary {
    display: none;
  }

  .mobile-nav-btn {
    display: inline-flex;
  }

  .brand-sub {
    display: none;
  }

  .site-header {
    padding: var(--header-padding) 12px;
    padding-right: calc(12px + env(safe-area-inset-right, 0));
    padding-left: calc(12px + env(safe-area-inset-left, 0));
  }
}

@media (max-width: 768px) {
  .tg-float-left {
    top: auto;
    bottom: 100px;
    transform: none;
    width: 50px;
    height: 50px;
  }
  
  .tg-float-left:not(.is-expanded):hover {
    width: 60px;
  }
  
  .tg-float-left.is-expanded {
    width: calc(100vw - 30px);
    max-width: 300px;
    padding: 14px 16px 14px 14px;
  }
  
  .tg-float-left__icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
  }
  
  .tg-float-left__icon svg {
    width: 20px;
    height: 20px;
  }
  
  .tg-float-left__title {
    font-size: 14px;
  }
  
  .tg-float-left__sub {
    font-size: 11px;
  }
  
  .tg-float-left__tooltip {
    display: none;
  }

  .back-top,
  #backTop {
    bottom: 16px !important;
    right: 16px !important;
    width: 44px;
    height: 44px;
    font-size: 18px;
  }
  
  header,
  .site-header {
    position: sticky !important;
    top: 0 !important;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .container {
    padding: 0 16px;
  }

  .site-header {
    padding: var(--header-padding) 12px;
    padding-right: calc(12px + env(safe-area-inset-right, 0));
    padding-left: calc(12px + env(safe-area-inset-left, 0));
  }

  .header-row {
    height: var(--header-height);
    padding: 0 18px;
    border-radius: 14px;
  }

  .logo {
    width: 38px;
    height: 38px;
    font-size: 14px;
    border-radius: 10px;
  }

  .brand-title {
    font-size: 16px;
  }

  .brand-pill {
    font-size: 8px;
    padding: 3px 7px;
  }

  .theme-toggle,
  .mobile-nav-btn {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }

  .mobile-nav-btn svg {
    width: 18px;
    height: 18px;
  }

  /* Float Dock Mobile */
  .float-dock {
    right: 14px;
    bottom: 14px;
    gap: 12px;
  }

  .tg-float__txt {
    display: none;
  }

  .tg-float {
    width: 48px;
    height: 48px;
    padding: 0;
    justify-content: center;
  }

  .tg-float svg {
    width: 22px;
    height: 22px;
  }

  #backTop,
  .float-dock .back-top {
    width: 48px;
    height: 48px;
    font-size: 18px;
  }
}

@media (max-width: 420px) {
  .tg-float-left {
    bottom: 80px;
    width: 46px;
    height: 46px;
  }
  
  .tg-float-left.is-expanded {
    width: calc(100vw - 20px);
    max-width: 280px;
  }
  
  .tg-float-left__icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
  }
}

/* =========================================================
   FBPREDICT FIXES
   Add AFTER your main CSS:
   <link rel="stylesheet" href="assets/css/fixes.css">
========================================================= */

/* ---------------------------------------------------------
   1. LIVE TIME - RED COLOR
   Add class "live" to time: <span class="time live">43'</span>
--------------------------------------------------------- */
.time.live {
  color: #ef4444 !important;
  font-weight: 700 !important;
}

.time.live::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  background: #ef4444;
  border-radius: 50%;
  margin-right: 3px;
  animation: livePulse 1.2s ease-in-out infinite;
  vertical-align: middle;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.time.ft::before { display: none !important; }

/* ---------------------------------------------------------
   2. FILTER PANEL TABS - MOBILE FIX
   Targets JS-injected tabs container
--------------------------------------------------------- */

/* The tabs container (div injected by JS after .filters-row) */
.filter-panel > div:not(.filters-row):not(.date-pills):not(#datePills) {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  gap: 8px !important;
  padding: 8px 0 !important;
}

.filter-panel > div:not(.filters-row):not(.date-pills):not(#datePills)::-webkit-scrollbar {
  display: none !important;
}

/* All tab buttons - make smaller and non-wrapping */
.filter-panel > div:not(.filters-row):not(.date-pills):not(#datePills) button,
.filter-panel > div:not(.filters-row):not(.date-pills):not(#datePills) a {
  flex: 0 0 auto !important;
  height: 36px !important;
  padding: 0 14px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
  border-radius: 18px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
}

/* Tab icons */
.filter-panel > div:not(.filters-row):not(.date-pills):not(#datePills) button svg,
.filter-panel > div:not(.filters-row):not(.date-pills):not(#datePills) button img {
  width: 14px !important;
  height: 14px !important;
  flex-shrink: 0 !important;
}

/* ---------------------------------------------------------
   3. MOBILE RESPONSIVE - 768px and below
--------------------------------------------------------- */
@media screen and (max-width: 768px) {
  
  .filter-panel {
    padding: 10px 12px !important;
  }
  
  /* Filters row */
  .filters-row {
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-bottom: 8px !important;
  }
  
  /* Date controls */
  .date-controls {
    flex: 1 1 100% !important;
    display: grid !important;
    grid-template-columns: 32px 1fr 32px !important;
    gap: 6px !important;
  }
  
  #prevDay, #nextDay {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    padding: 0 !important;
    font-size: 16px !important;
  }
  
  #datePicker {
    height: 32px !important;
    font-size: 12px !important;
    padding: 0 10px !important;
  }
  
  .date-favourite-btn {
    flex: 1 1 100% !important;
    height: 32px !important;
    font-size: 12px !important;
    padding: 0 12px !important;
    justify-content: center !important;
  }
  
  .date-favourite-btn svg {
    width: 14px !important;
    height: 14px !important;
  }
  
  /* Tabs - smaller on mobile */
  .filter-panel > div:not(.filters-row):not(.date-pills):not(#datePills) button,
  .filter-panel > div:not(.filters-row):not(.date-pills):not(#datePills) a {
    height: 30px !important;
    padding: 0 10px !important;
    font-size: 11px !important;
    border-radius: 15px !important;
    gap: 4px !important;
  }
  
  .filter-panel > div:not(.filters-row):not(.date-pills):not(#datePills) button svg,
  .filter-panel > div:not(.filters-row):not(.date-pills):not(#datePills) button img {
    width: 12px !important;
    height: 12px !important;
  }
  
  /* Date pills - scrollable */
  .date-pills, #datePills {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    gap: 6px !important;
    padding: 4px 0 !important;
  }
  
  .date-pills::-webkit-scrollbar,
  #datePills::-webkit-scrollbar {
    display: none !important;
  }
  
  .date-pills button,
  .date-pills a,
  #datePills button,
  #datePills a {
    flex: 0 0 auto !important;
    height: 30px !important;
    padding: 0 12px !important;
    font-size: 11px !important;
    white-space: nowrap !important;
    border-radius: 15px !important;
  }
}

/* ---------------------------------------------------------
   4. EXTRA SMALL SCREENS - 420px and below
--------------------------------------------------------- */
@media screen and (max-width: 420px) {
  
  .filter-panel {
    padding: 8px 10px !important;
  }
  
  .date-controls {
    grid-template-columns: 28px 1fr 28px !important;
    gap: 4px !important;
  }
  
  #prevDay, #nextDay {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    font-size: 14px !important;
  }
  
  #datePicker {
    height: 28px !important;
    font-size: 11px !important;
  }
  
  .date-favourite-btn {
    height: 28px !important;
    font-size: 11px !important;
  }
  
  /* Tabs - even smaller */
  .filter-panel > div:not(.filters-row):not(.date-pills):not(#datePills) button,
  .filter-panel > div:not(.filters-row):not(.date-pills):not(#datePills) a {
    height: 26px !important;
    padding: 0 8px !important;
    font-size: 10px !important;
    border-radius: 13px !important;
    gap: 3px !important;
  }
  
  .filter-panel > div:not(.filters-row):not(.date-pills):not(#datePills) button svg,
  .filter-panel > div:not(.filters-row):not(.date-pills):not(#datePills) button img {
    width: 10px !important;
    height: 10px !important;
  }
  
  /* Date pills - smaller */
  .date-pills button,
  .date-pills a,
  #datePills button,
  #datePills a {
    height: 26px !important;
    padding: 0 10px !important;
    font-size: 10px !important;
    border-radius: 13px !important;
  }
}

/* =========================================================
   LEAGUE/COMPETITION HEADER ROW STYLES
   Makes league headers visually distinct from match rows
========================================================= */

/* League Header Row - The row showing league name like "Australia: A League" */
.league-header,
.competition-header,
.table-league-row,
.league-row,
.match-card-header,
tr.league-header,
.table-row.league-header,
[class*="league-head"],
[class*="competition-head"] {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.08) 0%, rgba(249, 115, 22, 0.04) 100%) !important;
  border-left: 4px solid var(--primary) !important;
  border-bottom: 1px solid var(--glass-border) !important;
  position: relative;
}

/* Alternative: If league headers are separate divs between table sections */
.league-separator,
.league-divider,
.competition-separator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(249, 115, 22, 0.05) 100%);
  border-left: 4px solid var(--primary);
  border-bottom: 1px solid var(--glass-border);
  margin: 0;
}

/* League Name Text */
.league-separator .league-name,
.league-header .league-name,
.competition-header .league-name,
.league-row .league-name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-bright);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* League Icon */
.league-separator .league-icon,
.league-header .league-icon,
.league-header svg,
.league-separator svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
  opacity: 0.8;
}

/* Match Count Badge on Right */
.league-separator .match-count,
.league-header .match-count,
.league-row .match-count,
.league-header .live-count,
.league-separator .live-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Live indicator in league header */
.league-header .live-count .live-text,
.league-separator .live-text {
  color: #ef4444;
  font-weight: 700;
}

/* =========================================================
   TABLE-BASED LEAGUE HEADERS
   If your layout uses table rows for league headers
========================================================= */

/* If league headers are full-width table rows */
#table .league-header,
#table .competition-row,
.match-table .league-header {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px !important;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(249, 115, 22, 0.05) 100%) !important;
  border-left: 4px solid var(--primary) !important;
  grid-template-columns: none !important;
}

/* Ensure match rows have plain background for contrast */
.table-row:not(.league-header):not(.competition-header) {
  background: var(--panel);
  border-left: 4px solid transparent;
}

.table-row:not(.league-header):not(.competition-header):hover {
  background: rgba(255, 255, 255, 0.03);
  border-left-color: rgba(6, 182, 212, 0.3);
}

/* =========================================================
   MATCH CARD STYLE HEADERS
   For card-based layouts where each league has its own card
========================================================= */

.match-card > .match-card-header,
.match-card > header,
.match-card > .card-header {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.12) 0%, rgba(249, 115, 22, 0.06) 100%) !important;
  border-left: 4px solid var(--primary);
  border-bottom: 2px solid var(--glass-border);
  padding: 16px 20px;
}

.match-card > .match-card-header .league-name,
.match-card > header .league-name {
  color: var(--text-bright);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* =========================================================
   INLINE LEAGUE ROW (within continuous table)
   For layouts where leagues appear as rows within a single table
========================================================= */

/* Style 1: Subtle gradient background */
.table-row.is-league,
.table-row[data-type="league"],
.table-row.league-title,
tr.league-row,
.row-league {
  background: linear-gradient(90deg, 
    rgba(6, 182, 212, 0.15) 0%, 
    rgba(6, 182, 212, 0.08) 30%,
    rgba(249, 115, 22, 0.04) 100%
  ) !important;
  border-left: 4px solid var(--primary) !important;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  padding: 12px 20px !important;
  margin-top: 8px;
}

/* First league row doesn't need top margin */
.table-row.is-league:first-child,
.table-row[data-type="league"]:first-child {
  margin-top: 0;
}

/* =========================================================
   LIGHT THEME ADJUSTMENTS
========================================================= */

html[data-theme="light"] .league-header,
html[data-theme="light"] .competition-header,
html[data-theme="light"] .league-separator,
html[data-theme="light"] .table-row.is-league,
html[data-theme="light"] .match-card > .match-card-header {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.12) 0%, rgba(249, 115, 22, 0.06) 100%) !important;
  border-left-color: var(--primary) !important;
}

html[data-theme="light"] .table-row:not(.league-header):not(.competition-header):not(.is-league) {
  background: #ffffff;
}

html[data-theme="light"] .table-row:not(.league-header):not(.competition-header):not(.is-league):hover {
  background: #f8fafc;
}

/* =========================================================
   MOBILE RESPONSIVE
========================================================= */

@media (max-width: 640px) {
  .league-header,
  .competition-header,
  .league-separator,
  .table-row.is-league,
  .match-card > .match-card-header {
    padding: 12px 14px !important;
    border-left-width: 3px !important;
  }
  
  .league-header .league-name,
  .league-separator .league-name,
  .match-card > .match-card-header .league-name {
    font-size: 11px;
    letter-spacing: 0.02em;
  }
  
  .league-header .match-count,
  .league-separator .match-count {
    font-size: 10px;
  }
  
  .league-header .league-icon,
  .league-separator .league-icon,
  .league-header svg {
    width: 14px;
    height: 14px;
  }
}

@media (max-width: 420px) {
  .league-header,
  .competition-header,
  .league-separator,
  .table-row.is-league,
  .match-card > .match-card-header {
    padding: 10px 12px !important;
  }
  
  .league-header .league-name,
  .league-separator .league-name {
    font-size: 10px;
    gap: 6px;
  }
  
  .league-header .match-count,
  .league-separator .match-count {
    font-size: 9px;
    gap: 4px;
  }
}

    /* =========================================================
       ANIMATED HERO SECTION
    ========================================================= */
    .hero-enhanced {
      position: relative;
      padding: 48px 40px;
      border-radius: var(--radius-xl);
      background: linear-gradient(135deg, #0c1929 0%, #0f172a 50%, #1a0a2e 100%);
      border: 1px solid rgba(6, 182, 212, 0.2);
      overflow: hidden;
      margin-bottom: 24px;
    }

    .hero-enhanced::before {
      content: "";
      position: absolute;
      inset: 0;
      background:
        radial-gradient(circle at 20% 50%, rgba(6, 182, 212, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(249, 115, 22, 0.1) 0%, transparent 50%);
      animation: heroGlow 8s ease-in-out infinite alternate;
    }

    @keyframes heroGlow {
      0% { opacity: 0.5; }
      100% { opacity: 1; }
    }

    .hero-enhanced::after {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 4px;
      background: linear-gradient(90deg, var(--primary), var(--orange), var(--primary));
      background-size: 200% 100%;
      animation: gradientSlide 3s linear infinite;
    }

    .hero-badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 8px 16px;
      background: rgba(16, 185, 129, 0.15);
      border: 1px solid rgba(16, 185, 129, 0.3);
      border-radius: var(--radius-full);
      font-size: 12px;
      font-weight: 700;
      color: #10b981;
      margin-bottom: 20px;
      position: relative;
      z-index: 1;
    }

    .hero-badge .pulse-dot {
      width: 8px;
      height: 8px;
      background: #10b981;
      border-radius: 50%;
      animation: pulse 2s ease-in-out infinite;
    }

    .hero-enhanced h1 {
      font-size: 42px;
      font-weight: 900;
      color: #fff;
      margin: 0 0 16px;
      line-height: 1.1;
      letter-spacing: -0.03em;
      position: relative;
      z-index: 1;
    }

    .hero-enhanced h1 span {
      background: linear-gradient(135deg, var(--primary) 0%, var(--orange) 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    .hero-subtitle-enhanced {
      font-size: 18px;
      color: rgba(255, 255, 255, 0.8);
      margin: 0 0 28px;
      line-height: 1.6;
      max-width: 600px;
      position: relative;
      z-index: 1;
    }

    .hero-stats-row {
      display: flex;
      gap: 32px;
      margin-bottom: 32px;
      position: relative;
      z-index: 1;
    }

    .hero-stat { text-align: left; }

    .hero-stat-value {
      font-size: 32px;
      font-weight: 900;
      color: var(--primary);
      line-height: 1;
      margin-bottom: 4px;
    }

    .hero-stat-value.orange { color: var(--orange); }
    .hero-stat-value.green { color: #10b981; }

    .hero-stat-label {
      font-size: 13px;
      color: rgba(255, 255, 255, 0.6);
      font-weight: 500;
    }

    .hero-actions-enhanced {
      display: flex;
      flex-wrap: wrap;
      gap: 14px;
      position: relative;
      z-index: 1;
    }

    .hero-btn-primary {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      padding: 16px 28px;
      background: linear-gradient(135deg, var(--primary) 0%, #0891b2 100%);
      color: #fff;
      border-radius: var(--radius-full);
      font-size: 15px;
      font-weight: 700;
      text-decoration: none;
      transition: all 0.3s var(--ease);
      box-shadow: 0 4px 20px rgba(6, 182, 212, 0.4);
    }

    .hero-btn-primary:hover {
      transform: translateY(-3px);
      box-shadow: 0 8px 30px rgba(6, 182, 212, 0.5);
    }

    .hero-btn-secondary {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      padding: 16px 28px;
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid rgba(255, 255, 255, 0.2);
      color: #fff;
      border-radius: var(--radius-full);
      font-size: 15px;
      font-weight: 600;
      text-decoration: none;
      transition: all 0.3s var(--ease);
    }

    .hero-btn-secondary:hover {
      background: rgba(255, 255, 255, 0.1);
      border-color: rgba(255, 255, 255, 0.4);
    }

    .hero-football-icon {
      position: absolute;
      right: 40px;
      top: 50%;
      transform: translateY(-50%);
      font-size: 180px;
      opacity: 0.08;
      z-index: 0;
    }

    /* =========================================================
       LIVE PREDICTION SHOWCASE
    ========================================================= */
    .prediction-showcase { margin: 32px 0; }

    .showcase-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 20px;
      gap: 12px;
      flex-wrap: wrap;
    }

    .showcase-title {
      display: flex;
      align-items: center;
      gap: 12px;
      flex-wrap: wrap;
    }

    .showcase-title h2 {
      font-size: 22px;
      font-weight: 800;
      color: var(--text-bright);
      margin: 0;
    }

    .live-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 6px 12px;
      background: rgba(239, 68, 68, 0.15);
      border: 1px solid rgba(239, 68, 68, 0.3);
      border-radius: var(--radius-full);
      font-size: 11px;
      font-weight: 700;
      color: #ef4444;
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }

    .live-badge .dot {
      width: 6px;
      height: 6px;
      background: #ef4444;
      border-radius: 50%;
      animation: pulse 1.5s ease-in-out infinite;
    }

    .view-all-link {
      font-size: 14px;
      font-weight: 600;
      color: var(--primary);
      text-decoration: none;
      display: flex;
      align-items: center;
      gap: 6px;
      transition: all 0.2s var(--ease);
      white-space: nowrap;
    }

    .view-all-link:hover { gap: 10px; }

    /* =========================================================
       BANKER OF THE DAY - FEATURED TIP
    ========================================================= */
    .banker-highlight {
      position: relative;
      padding: 28px;
      background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(6, 182, 212, 0.05) 100%);
      border: 2px solid rgba(16, 185, 129, 0.3);
      border-radius: var(--radius-xl);
      margin-bottom: 20px;
      overflow: hidden;
    }

    .banker-highlight::before {
      content: "⭐ BANKER OF THE DAY";
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      padding: 10px 20px;
      background: linear-gradient(90deg, #10b981, #059669);
      color: #fff;
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 0.1em;
      text-align: center;
    }

    .banker-content { margin-top: 32px; }

    .banker-match {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
      flex-wrap: wrap;
    }

    .banker-teams { flex: 1; min-width: 200px; }

    .banker-teams-main {
      font-size: 22px;
      font-weight: 800;
      color: var(--text-bright);
      margin-bottom: 8px;
    }

    .banker-meta {
      display: flex;
      align-items: center;
      gap: 16px;
      font-size: 13px;
      color: var(--text-muted);
      flex-wrap: wrap;
    }

    .banker-meta span {
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .banker-pick-section { display: flex; align-items: center; gap: 16px; }

    .banker-pick {
      padding: 14px 24px;
      background: var(--panel);
      border: 2px solid var(--primary);
      border-radius: var(--radius-lg);
      text-align: center;
    }

    .banker-pick-label {
      font-size: 10px;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.08em;
      margin-bottom: 4px;
    }

    .banker-pick-value { font-size: 20px; font-weight: 800; color: var(--primary); }

    .banker-confidence { text-align: center; }

    .confidence-circle {
      width: 70px;
      height: 70px;
      border-radius: 50%;
      background: conic-gradient(#10b981 0% var(--percent), rgba(255,255,255,0.1) var(--percent) 100%);
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
    }

    .confidence-circle::before {
      content: "";
      position: absolute;
      inset: 6px;
      background: var(--panel);
      border-radius: 50%;
    }

    .confidence-value { position: relative; font-size: 18px; font-weight: 800; color: #10b981; }

    .confidence-label {
      font-size: 10px;
      color: var(--text-muted);
      margin-top: 6px;
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }

    .banker-reasoning {
      margin-top: 20px;
      padding-top: 20px;
      border-top: 1px dashed var(--glass-border);
    }

    .banker-reasoning-title {
      font-size: 12px;
      font-weight: 700;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.06em;
      margin-bottom: 8px;
    }

    .banker-reasoning-text { font-size: 14px; color: var(--text); line-height: 1.6; }

    /* =========================================================
       TODAY'S TOP PREDICTIONS GRID
    ========================================================= */
    .predictions-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr)); /* key: minmax */
      gap: 16px;
    }

    .prediction-card {
      background: var(--panel);
      border: 1px solid var(--glass-border);
      border-radius: var(--radius-lg);
      padding: 20px;
      transition: all 0.3s var(--ease);
      position: relative;
      overflow: hidden;
    }

    .prediction-card::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      width: 4px;
      height: 100%;
      background: var(--primary);
      opacity: 0;
      transition: opacity 0.3s var(--ease);
    }

    .prediction-card:hover {
      transform: translateY(-4px);
      box-shadow: var(--shadow-lg);
      border-color: var(--primary-glow);
    }

    .prediction-card:hover::before { opacity: 1; }

    .prediction-card-header {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      margin-bottom: 14px;
      gap: 10px;
    }

    .prediction-league {
      font-size: 11px;
      font-weight: 600;
      color: var(--primary);
      text-transform: uppercase;
      letter-spacing: 0.04em;
    }

    .prediction-time {
      font-size: 12px;
      font-weight: 600;
      color: var(--text-muted);
      display: flex;
      align-items: center;
      gap: 4px;
      white-space: nowrap;
    }

    .prediction-teams { margin-bottom: 16px; }

    .prediction-team {
      font-size: 15px;
      font-weight: 700;
      color: var(--text-bright);
      margin-bottom: 4px;
      display: flex;
      align-items: center;
      gap: 8px;
      overflow-wrap: anywhere;
    }

    .prediction-team.away { color: var(--text-muted); font-weight: 600; }

    .vs-divider { font-size: 11px; color: var(--text-dim); font-weight: 500; margin: 6px 0; }

    .prediction-pick-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding-top: 14px;
      border-top: 1px solid var(--glass-border);
      gap: 12px;
      flex-wrap: wrap;
    }

    .prediction-pick { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

    .pick-badge {
      padding: 8px 14px;
      background: var(--primary-soft);
      border: 1px solid rgba(6, 182, 212, 0.3);
      border-radius: var(--radius);
      font-size: 13px;
      font-weight: 800;
      color: var(--primary);
    }

    .pick-odds { font-size: 14px; font-weight: 700; color: var(--text); }

    .prediction-confidence { display: flex; align-items: center; gap: 6px; }

    .confidence-bar-mini {
      width: 50px;
      height: 6px;
      background: rgba(255, 255, 255, 0.1);
      border-radius: 3px;
      overflow: hidden;
    }

    .confidence-bar-fill {
      height: 100%;
      background: linear-gradient(90deg, #10b981, #34d399);
      border-radius: 3px;
      transition: width 0.5s var(--ease);
    }

    .confidence-text { font-size: 12px; font-weight: 700; color: #10b981; }

    /* =========================================================
       LIVE STATS COUNTER
    ========================================================= */
    .live-stats-bar {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr)); /* key: minmax */
      gap: 16px;
      margin: 32px 0;
      padding: 24px;
      background: var(--panel);
      border: 1px solid var(--glass-border);
      border-radius: var(--radius-xl);
      position: relative;
      overflow: hidden;
    }

    .live-stats-bar::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 3px;
      background: linear-gradient(90deg, var(--primary), var(--orange), var(--success), var(--primary));
      background-size: 200% 100%;
      animation: gradientSlide 4s linear infinite;
    }

    .stat-box {
      text-align: center;
      padding: 12px;
      border-radius: var(--radius-lg);
      background: var(--bg-elevated);
      transition: all 0.3s var(--ease);
      min-width: 0;
    }

    .stat-box:hover { transform: translateY(-4px); background: var(--primary-soft); }

    .stat-icon { font-size: 24px; margin-bottom: 8px; }

    .stat-counter {
      font-size: 28px;
      font-weight: 900;
      color: var(--text-bright);
      line-height: 1;
      margin-bottom: 4px;
    }

    .stat-counter.counting { color: var(--primary); }

    .stat-desc { font-size: 12px; color: var(--text-muted); font-weight: 600; }

    /* =========================================================
       MARKET CARDS GRID
    ========================================================= */
    .markets-section { margin: 40px 0; }

    .markets-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr)); /* key: minmax */
      gap: 16px;
    }

    .market-card {
      padding: 24px;
      background: var(--panel);
      border: 1px solid var(--glass-border);
      border-radius: var(--radius-lg);
      text-decoration: none;
      transition: all 0.3s var(--ease);
      position: relative;
      overflow: hidden;
      min-width: 0;
    }

    .market-card::after {
      content: "→";
      position: absolute;
      right: 20px;
      top: 50%;
      transform: translateY(-50%) translateX(10px);
      font-size: 20px;
      color: var(--primary);
      opacity: 0;
      transition: all 0.3s var(--ease);
    }

    .market-card:hover {
      transform: translateY(-6px);
      box-shadow: var(--shadow-lg);
      border-color: var(--primary);
      padding-right: 50px;
    }

    .market-card:hover::after { opacity: 1; transform: translateY(-50%) translateX(0); }

    .market-icon {
      width: 48px;
      height: 48px;
      border-radius: 12px;
      background: linear-gradient(135deg, var(--primary-soft), var(--orange-soft));
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 22px;
      margin-bottom: 14px;
    }

    .market-card h3 {
      font-size: 17px;
      font-weight: 800;
      color: var(--text-bright);
      margin: 0 0 6px;
    }

    .market-card p {
      font-size: 13px;
      color: var(--text-muted);
      margin: 0;
      line-height: 1.5;
      overflow-wrap: anywhere;
    }

    .market-stat {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      margin-top: 12px;
      padding: 6px 10px;
      background: var(--success-soft);
      border-radius: var(--radius);
      font-size: 11px;
      font-weight: 700;
      color: var(--success);
    }

    /* =========================================================
       TESTIMONIALS
    ========================================================= */
    .testimonials-section {
      margin: 40px 0;
      padding: 32px;
      background: linear-gradient(135deg, rgba(6, 182, 212, 0.05) 0%, rgba(249, 115, 22, 0.03) 100%);
      border: 1px solid var(--glass-border);
      border-radius: var(--radius-xl);
    }

    .testimonials-header { text-align: center; margin-bottom: 28px; }

    .testimonials-header h2 {
      font-size: 24px;
      font-weight: 800;
      color: var(--text-bright);
      margin: 0 0 8px;
    }

    .testimonials-header p { font-size: 14px; color: var(--text-muted); margin: 0; }

    .testimonials-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr)); /* key: minmax */
      gap: 20px;
    }

    .testimonial-card {
      padding: 24px;
      background: var(--panel);
      border: 1px solid var(--glass-border);
      border-radius: var(--radius-lg);
      position: relative;
      min-width: 0;
    }

    /* ✅ FIXED (was broken and caused rendering/readability issues) */
    .testimonial-card::before {
      content: "“";
      position: absolute;
      top: 16px;
      left: 20px;
      font-size: 48px;
      color: var(--primary);
      opacity: 0.3;
      font-family: Georgia, serif;
      line-height: 1;
    }

    .testimonial-text {
      font-size: 15px;           /* slightly bigger for readability */
      color: var(--text);
      line-height: 1.8;          /* more readable */
      margin-bottom: 16px;
      padding-top: 20px;
      overflow-wrap: anywhere;
      hyphens: auto;
    }

    .testimonial-author { display: flex; align-items: center; gap: 12px; }

    .author-avatar {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background: linear-gradient(135deg, var(--primary), var(--orange));
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 16px;
      font-weight: 700;
      color: #fff;
      flex-shrink: 0;
    }

    .author-info { flex: 1; min-width: 0; }

    .author-name { font-size: 14px; font-weight: 700; color: var(--text-bright); }
    .author-location { font-size: 12px; color: var(--text-muted); }

    .testimonial-rating { color: #f59e0b; font-size: 12px; letter-spacing: 2px; white-space: nowrap; }

    /* =========================================================
       CTA BANNER
    ========================================================= */
    .cta-banner {
      margin: 40px 0;
      padding: 40px;
      background: linear-gradient(135deg, var(--primary) 0%, #0891b2 50%, var(--orange) 100%);
      border-radius: var(--radius-xl);
      text-align: center;
      position: relative;
      overflow: hidden;
    }

    .cta-banner::before {
      content: "";
      position: absolute;
      inset: 0;
      background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    }

    .cta-banner h2 {
      font-size: 32px;
      font-weight: 900;
      color: #fff;
      margin: 0 0 12px;
      position: relative;
    }

    .cta-banner p {
      font-size: 17px;
      color: rgba(255, 255, 255, 0.9);
      margin: 0 0 28px;
      position: relative;
    }

    .cta-buttons {
      display: flex;
      justify-content: center;
      gap: 16px;
      flex-wrap: wrap;
      position: relative;
    }

    .cta-btn-white {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      padding: 16px 32px;
      background: #fff;
      color: var(--primary);
      border-radius: var(--radius-full);
      font-size: 16px;
      font-weight: 700;
      text-decoration: none;
      transition: all 0.3s var(--ease);
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    }

    .cta-btn-white:hover {
      transform: translateY(-3px);
      box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    }

    .cta-btn-outline {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      padding: 16px 32px;
      background: transparent;
      border: 2px solid rgba(255, 255, 255, 0.5);
      color: #fff;
      border-radius: var(--radius-full);
      font-size: 16px;
      font-weight: 600;
      text-decoration: none;
      transition: all 0.3s var(--ease);
    }

    .cta-btn-outline:hover {
      background: rgba(255, 255, 255, 0.1);
      border-color: #fff;
    }

    /* =========================================================
       FAQ ACCORDION
    ========================================================= */
    .faq-section { margin: 40px 0; }

    .faq-header { text-align: center; margin-bottom: 28px; }

    .faq-header h2 {
      font-size: 26px;
      font-weight: 800;
      color: var(--text-bright);
      margin: 0 0 8px;
    }

    .faq-header p { font-size: 15px; color: var(--text-muted); margin: 0; }

    .faq-list { display: flex; flex-direction: column; gap: 12px; }

    .faq-item {
      background: var(--panel);
      border: 1px solid var(--glass-border);
      border-radius: var(--radius-lg);
      overflow: hidden;
      transition: all 0.3s var(--ease);
    }

    .faq-item:hover { border-color: var(--primary-glow); }

    .faq-item.open {
      border-color: var(--primary);
      box-shadow: 0 4px 20px rgba(6, 182, 212, 0.1);
    }

    .faq-question {
      padding: 20px 24px;
      font-size: 16px;
      font-weight: 700;
      color: var(--text-bright);
      cursor: pointer;
      display: flex;
      justify-content: space-between;
      align-items: center;
      transition: all 0.2s var(--ease);
      gap: 12px;
    }

    .faq-question:hover { background: var(--panel-hover); }

    .faq-icon {
      width: 28px;
      height: 28px;
      border-radius: 50%;
      background: var(--primary-soft);
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--primary);
      font-size: 18px;
      font-weight: 300;
      transition: all 0.3s var(--ease);
      flex-shrink: 0;
    }

    .faq-item.open .faq-icon {
      background: var(--primary);
      color: #fff;
      transform: rotate(45deg);
    }

    .faq-answer { max-height: 0; overflow: hidden; transition: all 0.4s var(--ease); }
    .faq-item.open .faq-answer { max-height: 500px; }

    .faq-answer-content {
      padding: 0 24px 24px;
      font-size: 15px;
      color: var(--text-muted);
      line-height: 1.7;
    }

    /* =========================================================
       COMPARISON SECTION
    ========================================================= */
    .comparison-section { margin: 40px 0; }

    .comparison-table {
      width: 100%;
      border-collapse: separate;
      border-spacing: 0;
      background: var(--panel);
      border: 1px solid var(--glass-border);
      border-radius: var(--radius-lg);
      overflow: hidden;
    }

    .comparison-table th,
    .comparison-table td {
      padding: 18px 24px;
      text-align: left;
      border-bottom: 1px solid var(--glass-border);
    }

    .comparison-table th {
      background: var(--bg-elevated);
      font-size: 12px;
      font-weight: 800;
      color: var(--text-bright);
      text-transform: uppercase;
      letter-spacing: 0.06em;
    }

    .comparison-table td { font-size: 14px; color: var(--text); }
    .comparison-table tr:last-child td { border-bottom: none; }

    .comparison-table tbody tr { transition: all 0.2s var(--ease); }
    .comparison-table tbody tr:hover { background: rgba(6, 182, 212, 0.03); }

    .highlight-row { background: rgba(16, 185, 129, 0.08) !important; }
    .highlight-row td:first-child { color: var(--primary); font-weight: 800; }

    .check-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 4px 10px;
      background: var(--success-soft);
      border-radius: var(--radius);
      font-size: 12px;
      font-weight: 700;
      color: var(--success);
    }

    .cross-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 4px 10px;
      background: var(--danger-soft);
      border-radius: var(--radius);
      font-size: 12px;
      font-weight: 700;
      color: var(--danger);
    }

    .neutral-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 4px 10px;
      background: var(--warning-soft);
      border-radius: var(--radius);
      font-size: 12px;
      font-weight: 700;
      color: var(--warning);
    }

    /* =========================================================
       RESPONSIVE STYLES
    ========================================================= */
    @media (max-width: 1024px) {
      .hero-enhanced h1 { font-size: 34px; }
      .hero-football-icon { font-size: 140px; right: 20px; }
      .predictions-grid { grid-template-columns: 1fr; }
      .markets-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .testimonials-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }

    @media (max-width: 880px) {
      .live-stats-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .markets-grid { grid-template-columns: 1fr; }
      .testimonials-grid { grid-template-columns: 1fr; }
    }

    @media (max-width: 640px) {
      .hero-enhanced { padding: 36px 24px; }
      .hero-enhanced h1 { font-size: 28px; }
      .hero-subtitle-enhanced { font-size: 15px; }
      .hero-stats-row { flex-wrap: wrap; gap: 20px; }
      .hero-stat-value { font-size: 26px; }
      .hero-football-icon { display: none; }
      .hero-actions-enhanced { flex-direction: column; }
      .hero-btn-primary, .hero-btn-secondary { width: 100%; justify-content: center; }
      .banker-match { flex-direction: column; align-items: flex-start; }
      .banker-pick-section { width: 100%; justify-content: space-between; }
      .live-stats-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 20px 16px; gap: 12px; }
      .stat-counter { font-size: 24px; }
      .cta-banner { padding: 32px 24px; }
      .cta-banner h2 { font-size: 24px; }
      .cta-buttons { flex-direction: column; }
      .cta-btn-white, .cta-btn-outline { width: 100%; justify-content: center; }
      .comparison-table th, .comparison-table td { padding: 14px 16px; font-size: 13px; }

      /* Extra: reduce padding so testimonials fit better on mobile */
      .testimonials-section { padding: 24px 16px; }
    }

    /* =========================================================
       ✅ PATCH: FIX SECTION FIT (CENTER SQUEEZE) + CLICK/TEXT READ
       Works whether .layout is grid or flex in your main.css
    ========================================================= */
    .center { min-width: 0; }
    .left-sidebar, .right-sidebar { min-width: 0; }

    /* If your .layout is grid in main.css, this improves the middle column (no squeeze/overflow) */
    @supports (grid-template-columns: minmax(0, 1fr)) {
      .layout {
        grid-template-columns: 280px minmax(0, 1fr) 320px;
        gap: 24px;
        align-items: start;
      }
    }

    /* If your .layout is flex in main.css, this prevents overflow and improves spacing */
    .layout { gap: 24px; }

    /* Make right/left sidebar links easier to read/tap */
    .quick-links a {
      font-size: 14px;
      line-height: 1.35;
      padding: 10px 12px;
    }

    /* Auto-fit cards when center becomes narrow (better fit, less cramped text) */
    .markets-grid {
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
    .testimonials-grid {
      grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
      gap: 16px;
    }

    /* Stack layout nicely on smaller screens (grid + flex safe) */
    @media (max-width: 980px) {
      .layout {
        grid-template-columns: 1fr;
        flex-direction: column;
      }
      .left-sidebar { order: 2; width: 100%; }
      .center { order: 1; width: 100%; }
      .right-sidebar { order: 3; width: 100%; }
    }
    
    /* =========================================================
   COMPACT TYPOGRAPHY OVERRIDE (Match your FBPREDICT scale)
   Put AFTER main CSS (or in fixes.css loaded last)
========================================================= */

/* If your “new page” has a wrapper, add it here for safety:
   e.g. .page-landing, .seo-page, .prediction-page */
main,
.center {
  font-size: 16px;
}

/* Kill big headings if the new page used default/huge H tags */
main h1 { font-size: 30px !important; line-height: 1.2 !important; letter-spacing: -0.02em !important; }
main h2 { font-size: 26px !important; line-height: 1.25 !important; }
main h3 { font-size: 19px !important; line-height: 1.35 !important; }
main p,
main li { font-size: 15px !important; line-height: 1.7 !important; }

/* Hero sizing (matches your existing hero scale) */
.hero h1 { font-size: 30px !important; }
.hero-subtitle { font-size: 16px !important; }
.hero-main { padding: 32px !important; }
.hero-actions .btn,
.hero-actions .btn-ghost { font-size: 15px !important; padding: 12px 24px !important; }

/* SEO Article sizing (matches your existing seo-article scale) */
.seo-article h2,
.center > article h2 { font-size: 26px !important; }

.seo-article h3,
.center > article h3 { font-size: 19px !important; }

.seo-article p,
.center > article p,
.seo-article ul,
.center > article ul { font-size: 15px !important; }

.seo-article > *,
.center > article > * { padding-left: 32px !important; padding-right: 32px !important; }

/* Info grid scale */
.info-grid h3 { font-size: 17px !important; }
.info-grid p  { font-size: 14px !important; }

/* If your “new page” has big cards/blocks, tighten padding a bit */
.match-card,
.related-links-section,
.sponsored-card,
.left-sidebar,
.right-sidebar > div {
  padding: 20px !important;
}

/* =========================================================
   MOBILE SCALE (match your responsive sizes)
========================================================= */
@media (max-width: 640px) {
  main h1 { font-size: 22px !important; }
  main h2 { font-size: 20px !important; }
  main h3 { font-size: 17px !important; }
  main p,
  main li { font-size: 14px !important; }

  .seo-article > *,
  .center > article > * { padding-left: 20px !important; padding-right: 20px !important; }

  .hero-main { padding: 22px 20px !important; }
  .hero h1 { font-size: 22px !important; }
  .hero-subtitle { font-size: 14px !important; }
}

@media (max-width: 420px) {
  main h1 { font-size: 20px !important; }
  main p,
  main li { font-size: 13px !important; }
}
