/* ================================================================
   FootballReach Design System - Pitchero-Inspired Clean SaaS
   Emerald green brand. DM Sans typography. Professional & trusted.
   Apps 365 Ltd | April 2026
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700&display=swap');

/* ================================================================
   1. CSS CUSTOM PROPERTIES (LIGHT MODE)
   ================================================================ */

:root {
  /* --- Brand ----------------------------------------- */
  --brand-primary: #059669;
  --brand-hover: #047857;
  --brand-light: #ecfdf5;
  --brand-dark: #064e3b;
  --brand-secondary: #2563eb;
  --brand-secondary-hover: #1d4ed8;
  --brand-secondary-light: #dbeafe;
  --brand-gradient: linear-gradient(135deg, #059669 0%, #047857 100%);
  --brand-gradient-reverse: linear-gradient(135deg, #047857 0%, #059669 100%);
  --brand-energy: #f59e0b;
  --brand-energy-hover: #d97706;
  --brand-energy-light: #fef3c7;
  --brand-neon: #059669;

  /* --- Surfaces -------------------------------------- */
  --bg-page: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #fafbfc;
  --bg-elevated: #ffffff;
  --bg-input: #ffffff;
  --bg-subtle: #f5f6fa;
  --bg-inverse: #1a1a2e;

  /* --- Text ------------------------------------------ */
  --text-primary: #1a1a2e;
  --text-secondary: #5a6177;
  --text-muted: #9198a8;
  --text-inverse: #ffffff;
  --text-link: #059669;

  /* --- Borders --------------------------------------- */
  --border-default: #e2e5ed;
  --border-strong: #cdd1dc;
  --border-focus: #059669;

  /* --- Semantic -------------------------------------- */
  --color-success: #059669;
  --color-success-light: #ecfdf5;
  --color-success-dark: #064e3b;
  --color-warning: #f59e0b;
  --color-warning-light: #fef3c7;
  --color-warning-dark: #92400e;
  --color-danger: #ef4444;
  --color-danger-light: #fef2f2;
  --color-danger-dark: #991b1b;
  --color-info: #3b82f6;
  --color-info-light: #dbeafe;
  --color-info-dark: #1e40af;
  --color-live: #f59e0b;
  --color-live-light: #fef3c7;
  --color-yellow-card: #eab308;
  --color-red-card: #ef4444;
  --color-premium: #8b5cf6;
  --color-premium-light: #ede9fe;

  /* --- Shadows (Pitchero: soft, professional) --------- */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.1), 0 4px 8px rgba(0, 0, 0, 0.06);
  --shadow-xl: 0 16px 40px rgba(0, 0, 0, 0.12), 0 6px 12px rgba(0, 0, 0, 0.06);
  --shadow-glow: 0 0 0 2px var(--bg-card), 0 0 0 4px var(--brand-primary);
  --shadow-glow-lg: 0 0 0 3px var(--bg-card), 0 0 0 5px var(--brand-primary);
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-card-hover: 0 4px 16px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-warm: 0 2px 8px rgba(0, 0, 0, 0.06);

  /* --- Spacing (4pt base) ---------------------------- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;

  /* --- Typography ------------------------------------ */
  --ff-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --ff-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  --ff-display: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;

  --leading-none: 1;
  --leading-tight: 1.15;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.6;

  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-extrabold: 800;
  --weight-black: 900;

  /* --- Radius ---------------------------------------- */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 20px;
  --radius-full: 9999px;

  /* --- Z-Index --------------------------------------- */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-overlay: 300;
  --z-modal: 400;
  --z-toast: 500;

  /* --- Transitions ----------------------------------- */
  --transition-fast: 100ms ease;
  --transition-base: 150ms ease;
  --transition-normal: 200ms ease;
  --transition-slow: 300ms ease;

  /* --- Focus Ring ------------------------------------ */
  --focus-ring: 0 0 0 2px var(--bg-card), 0 0 0 4px var(--brand-primary);

  /* --- Layout ---------------------------------------- */
  --sidebar-width: 248px;
  --sidebar-collapsed-width: 64px;
  --topbar-height: 64px;
  --bottom-nav-height: 60px;

  /* --- Backward Compatibility Aliases ----------------- */
  --action-primary: var(--brand-primary);
  --action-hover: var(--brand-hover);
  --action-danger: var(--color-danger);
  --bg-primary: var(--bg-page);
  --bg-secondary: var(--bg-subtle);
  --text-disabled: var(--text-muted);
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-base: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --radius-base: 10px;
  --color-live: var(--brand-energy);
  --energy-orange: var(--brand-energy);
  --brand-green: var(--brand-primary);
  --pitch-green: var(--brand-hover);
  --font-sans: var(--ff-body);
  --font-mono: var(--ff-mono);
}

/* ================================================================
   DARK MODE
   ================================================================ */

[data-theme='dark'] {
  --brand-primary: #34d399;
  --brand-hover: #10b981;
  --brand-light: #064e3b;
  --brand-dark: #a7f3d0;
  --brand-secondary: #60a5fa;
  --brand-secondary-hover: #3b82f6;
  --brand-secondary-light: #1e3a5f;
  --brand-neon: #34d399;
  --brand-energy: #fbbf24;
  --brand-energy-hover: #f59e0b;
  --brand-energy-light: #78350f;

  --bg-page: #0f1117;
  --bg-card: #1a1d27;
  --bg-card-hover: #222635;
  --bg-elevated: #252837;
  --bg-input: #1a1d27;
  --bg-subtle: #1a1d27;
  --bg-inverse: #f5f6fa;

  --text-primary: #e8eaf0;
  --text-secondary: #9198a8;
  --text-muted: #5a6177;
  --text-inverse: #0f1117;
  --text-link: #34d399;

  --border-default: #2a2d3a;
  --border-strong: #3a3e4e;
  --border-focus: #34d399;

  --color-success: #34d399;
  --color-success-light: rgba(52, 211, 153, 0.12);
  --color-success-dark: #a7f3d0;
  --color-warning: #fbbf24;
  --color-warning-light: rgba(251, 191, 36, 0.12);
  --color-warning-dark: #fde68a;
  --color-danger: #f87171;
  --color-danger-light: rgba(248, 113, 113, 0.12);
  --color-danger-dark: #fca5a5;
  --color-info: #60a5fa;
  --color-info-light: rgba(96, 165, 250, 0.12);
  --color-info-dark: #93c5fd;
  --color-live: #fbbf24;
  --color-live-light: rgba(251, 191, 36, 0.12);
  --color-premium: #c084fc;
  --color-premium-light: rgba(192, 132, 252, 0.12);

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.35), 0 2px 4px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.4), 0 4px 8px rgba(0, 0, 0, 0.25);
  --shadow-xl: 0 16px 40px rgba(0, 0, 0, 0.5), 0 6px 12px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 0 2px var(--bg-card), 0 0 0 4px var(--brand-primary);
  --shadow-glow-lg: 0 0 0 3px var(--bg-card), 0 0 0 5px var(--brand-primary);
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-card-hover: 0 4px 16px rgba(0, 0, 0, 0.35), 0 2px 4px rgba(0, 0, 0, 0.25);
  --shadow-warm: 0 2px 8px rgba(0, 0, 0, 0.3);
}


/* ================================================================
   2. RESET + BODY + SCROLLBAR
   ================================================================ */

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--ff-body);
  font-size: var(--text-base);
  font-weight: var(--weight-normal);
  line-height: var(--leading-relaxed);
  color: var(--text-primary);
  background-color: var(--bg-page);
  min-height: 100vh;
  overflow-x: hidden;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--text-link);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--brand-hover);
}

a:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-sm);
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

ul,
ol {
  list-style: none;
}

table {
  border-collapse: collapse;
  width: 100%;
}

hr {
  border: none;
  border-top: 1px solid var(--border-default);
  margin: var(--space-6) 0;
}

::selection {
  background-color: var(--brand-primary);
  color: #ffffff;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-sm);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border-default);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}


/* ================================================================
   3. TYPOGRAPHY
   ================================================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-display);
  color: var(--text-primary);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: -0.01em;
}

h1, .h1 {
  font-size: var(--text-4xl);
  letter-spacing: -0.02em;
}

h2, .h2 {
  font-size: var(--text-2xl);
}

h3, .h3 {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
}

h4, .h4 {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
}

h5, .h5 {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
}

h6, .h6 {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

p {
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

.text-display {
  font-size: var(--text-5xl);
  font-weight: var(--weight-bold);
  letter-spacing: -0.025em;
  line-height: 1.1;
}

small, .text-sm {
  font-size: var(--text-sm);
}

.text-xs {
  font-size: var(--text-xs);
}

.text-lg {
  font-size: var(--text-lg);
}

.text-xl {
  font-size: var(--text-xl);
}

.text-2xl {
  font-size: var(--text-2xl);
}

code, .code {
  font-family: var(--ff-mono);
  font-size: 0.875em;
  background: var(--bg-subtle);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

.score {
  font-family: var(--ff-mono);
  font-size: 48px;
  font-weight: var(--weight-bold);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-number {
  font-family: var(--ff-mono);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  line-height: 1;
}

.overline {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}


/* ================================================================
   4. MAIN LAYOUT (navbar + mega-menu + main-content + bottom-nav + footer)
   ================================================================ */

/* --- Skip Link --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  padding: 8px 16px;
  background: var(--brand-primary);
  color: #ffffff;
  font-weight: var(--weight-medium);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
}

.skip-link:focus {
  top: 8px;
  color: #ffffff;
}

/* --- Layout Main --- */
.layout-main {
  display: block;
  min-height: 100vh;
}

/* --- Sidebar --- */
.sidebar {
  grid-area: sidebar;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background: var(--bg-card);
  border-right: 1px solid var(--border-default);
  display: flex;
  flex-direction: column;
  z-index: var(--z-sticky);
  overflow-y: auto;
}

[data-theme='dark'] .sidebar {
  background: var(--bg-card);
  border-right-color: var(--border-default);
}

.sidebar__header {
  display: flex;
  align-items: center;
  padding: 20px 20px 12px;
}

.sidebar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  text-decoration: none;
}

.sidebar__logo:hover {
  color: var(--text-primary);
}

.sidebar__logo-icon {
  color: var(--brand-primary);
  flex-shrink: 0;
}

.sidebar__logo-text {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  letter-spacing: -0.01em;
}

.sidebar__nav {
  flex: 1;
  padding: 8px 12px;
}

.sidebar__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  text-decoration: none;
  transition: background var(--transition-base), color var(--transition-base);
}

.sidebar__item:hover {
  background: var(--bg-subtle);
  color: var(--text-primary);
}

.sidebar__item--active {
  background: var(--brand-light);
  color: var(--brand-primary);
  font-weight: var(--weight-semibold);
}

[data-theme='dark'] .sidebar__item--active {
  background: rgba(52, 211, 153, 0.1);
}

.sidebar__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.sidebar__label {
  white-space: nowrap;
}

.sidebar__divider {
  height: 1px;
  background: var(--border-default);
  margin: 8px 12px;
}

.sidebar__section-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding: 16px 12px 6px;
}

.sidebar__footer {
  padding: 12px;
  border-top: 1px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar__user {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
}

.sidebar__user:hover {
  color: var(--text-primary);
}

.sidebar__user-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

.sidebar__settings-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: background var(--transition-base), color var(--transition-base);
}

.sidebar__settings-btn:hover {
  background: var(--bg-subtle);
  color: var(--text-primary);
}

/* --- Topbar --- */
.topbar {
  grid-area: topbar;
  position: fixed;
  top: 0;
  left: var(--sidebar-width);
  right: 0;
  height: var(--topbar-height);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: var(--z-sticky);
}

.topbar__left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.topbar__hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--text-primary);
  border-radius: var(--radius-sm);
}

.topbar__hamburger:hover {
  background: var(--bg-subtle);
}

.topbar__logo {
  display: none;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
  font-weight: var(--weight-bold);
  text-decoration: none;
}

.topbar__logo:hover {
  color: var(--text-primary);
}

.topbar__logo-icon {
  color: var(--brand-primary);
}

.topbar__logo-text {
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
}

.topbar__search {
  position: relative;
  max-width: 360px;
  flex: 1;
}

.topbar__search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.topbar__search-input {
  width: 100%;
  height: 40px;
  padding: 0 12px 0 40px;
  background: var(--bg-subtle);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--text-primary);
  transition: border-color var(--transition-base), background var(--transition-base);
}

.topbar__search-input::placeholder {
  color: var(--text-muted);
}

.topbar__search-input:focus {
  outline: none;
  border-color: var(--brand-primary);
  background: var(--bg-card);
  box-shadow: none;
}

.topbar__right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar__icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  transition: background var(--transition-base), color var(--transition-base);
  position: relative;
}

.topbar__icon-btn:hover {
  background: var(--bg-subtle);
  color: var(--text-primary);
}

.topbar__search-toggle {
  display: none;
}

.topbar__badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--color-danger);
  color: #ffffff;
  font-size: 11px;
  font-weight: var(--weight-semibold);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.topbar__avatar {
  display: flex;
  align-items: center;
  margin-left: 4px;
}

/* --- Main Content --- */
.main-content {
  padding: 0;
  min-height: calc(100vh - 72px);
}

/* --- Bottom Nav (mobile) --- */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-nav-height);
  background: var(--bg-card);
  border-top: 1px solid var(--border-default);
  z-index: var(--z-sticky);
  align-items: center;
  justify-content: space-around;
  padding: 0 8px;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.bottom-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 11px;
  font-weight: var(--weight-medium);
  transition: color var(--transition-base);
  min-width: 48px;
}

.bottom-nav__item:hover {
  color: var(--text-secondary);
}

.bottom-nav__item--active {
  color: var(--brand-primary);
}

.bottom-nav__icon {
  width: 22px;
  height: 22px;
}

.bottom-nav__label {
  white-space: nowrap;
}

.bottom-nav__fab {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--brand-primary);
  color: #ffffff;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  margin-top: -12px;
}

.bottom-nav__fab:hover {
  background: var(--brand-hover);
  color: #ffffff;
}


/* ================================================================
   5. AUTH LAYOUT
   ================================================================ */

.auth-body {
  background: var(--bg-page);
  min-height: 100vh;
}

.auth-layout {
  display: flex;
  min-height: 100vh;
}

/* --- Auth Hero Side --- */
.auth-hero {
  flex: 0 0 45%;
  max-width: 560px;
  background: var(--bg-inverse);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  position: relative;
  overflow: hidden;
}

.auth-hero__content {
  position: relative;
  z-index: 1;
  max-width: 400px;
}

.auth-hero__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
}

.auth-hero__logo-icon {
  color: var(--brand-primary);
}

.auth-hero__logo-text {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
}

.auth-hero__headline {
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.auth-hero__sub {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.7);
  line-height: var(--leading-relaxed);
  margin-bottom: 32px;
}

.auth-hero__features {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-hero__feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.85);
}

.auth-hero__feature svg {
  color: var(--brand-primary);
  flex-shrink: 0;
}

[data-theme='dark'] .auth-hero__feature svg {
  color: #34d399;
}

.auth-hero__pattern {
  position: absolute;
  bottom: 24px;
  right: -40px;
  opacity: 0.08;
}

/* --- Auth Form Side --- */
.auth-form-side {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  overflow-y: auto;
}

.auth-form-wrapper {
  width: 100%;
  max-width: 400px;
}

.auth-form-logo {
  margin-bottom: 32px;
}

.auth-form-logo a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-weight: var(--weight-bold);
  font-size: var(--text-lg);
  text-decoration: none;
}

.auth-form-logo__text {
  font-weight: var(--weight-bold);
}

/* --- Auth Card --- */
.auth-card {
  width: 100%;
}

.auth-card__header {
  margin-bottom: 28px;
}

.auth-card__title {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  margin-bottom: 8px;
}

.auth-card__subtitle {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.auth-card__footer {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-top: 24px;
}

.auth-card__footer a {
  font-weight: var(--weight-medium);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* --- Auth Divider --- */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-default);
}

.auth-divider__text {
  font-size: var(--text-sm);
  color: var(--text-muted);
  white-space: nowrap;
}


/* ================================================================
   6. ADMIN LAYOUT
   ================================================================ */

.admin-body {
  background: var(--bg-page);
  min-height: 100vh;
  display: flex;
}

/* --- Admin Sidebar --- */
.admin-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background: var(--bg-card);
  border-right: 1px solid var(--border-default);
  display: flex;
  flex-direction: column;
  z-index: var(--z-sticky);
  overflow-y: auto;
}

[data-theme='dark'] .admin-sidebar {
  background: var(--bg-card);
  border-right-color: var(--border-default);
}

.admin-sidebar__header {
  padding: 20px 20px 12px;
}

.admin-sidebar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: var(--weight-bold);
}

.admin-sidebar__logo:hover {
  color: var(--text-primary);
}

.admin-sidebar__logo-text {
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
}

.admin-sidebar__nav {
  flex: 1;
  padding: 8px 12px;
}

.admin-sidebar__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-sidebar__section-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding: 16px 12px 6px;
}

.admin-sidebar__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  text-decoration: none;
  transition: background var(--transition-base), color var(--transition-base);
}

.admin-sidebar__item:hover {
  background: var(--bg-subtle);
  color: var(--text-primary);
}

.admin-sidebar__item--active {
  background: var(--brand-light);
  color: var(--brand-primary);
  font-weight: var(--weight-semibold);
}

[data-theme='dark'] .admin-sidebar__item--active {
  background: rgba(52, 211, 153, 0.1);
}

.admin-sidebar__icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.admin-sidebar__footer {
  padding: 12px;
  border-top: 1px solid var(--border-default);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* --- Admin Main --- */
.admin-main {
  margin-left: var(--sidebar-width);
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.admin-topbar {
  position: sticky;
  top: 0;
  height: var(--topbar-height);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-default);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  z-index: var(--z-sticky);
}

.admin-topbar__hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--text-primary);
  border-radius: var(--radius-sm);
}

.admin-topbar__hamburger:hover {
  background: var(--bg-subtle);
}

.admin-breadcrumbs {
  flex: 1;
}

.admin-breadcrumbs ol {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.admin-breadcrumbs li + li::before {
  content: '/';
  margin-right: 8px;
  color: var(--text-muted);
}

.admin-breadcrumbs a {
  color: var(--text-secondary);
}

.admin-breadcrumbs a:hover {
  color: var(--brand-primary);
}

.admin-breadcrumbs span[aria-current] {
  color: var(--text-primary);
  font-weight: var(--weight-medium);
}

.admin-topbar__right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-topbar__user {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.admin-topbar__user-name {
  font-weight: var(--weight-medium);
}

.admin-content {
  flex: 1;
  padding: 24px;
}

.admin-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
}

.admin-page-header h1 {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
}


/* ================================================================
   7. HOMEPAGE - HERO
   ================================================================ */

.hero {
  background: #1a1a2e;
  color: #ffffff;
  padding: 100px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__gradient {
  display: none;
}

.hero__pattern {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.04;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.hero__headline {
  font-size: 48px;
  font-weight: var(--weight-bold);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 24px;
}

.hero__subtitle {
  font-size: 18px;
  line-height: var(--leading-relaxed);
  color: rgba(255, 255, 255, 0.75);
  max-width: 560px;
  margin: 0 auto 40px;
}

.hero__ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}


/* ================================================================
   7b. HOMEPAGE - STATS BAR
   ================================================================ */

.stats-bar {
  background: #059669;
  color: #ffffff;
  padding: 40px 24px;
}

[data-theme='dark'] .stats-bar {
  background: #059669;
}

.stats-bar__inner {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stats-bar__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stats-bar__number {
  font-size: 36px;
  font-weight: var(--weight-bold);
  font-family: var(--ff-mono);
  line-height: 1;
}

.stats-bar__label {
  font-size: 14px;
  opacity: 0.85;
  font-weight: var(--weight-medium);
}


/* ================================================================
   7c. HOMEPAGE - SECTIONS
   ================================================================ */

.section {
  padding: 80px 24px;
}

.section--subtle {
  background: var(--bg-subtle);
}

.section__inner {
  max-width: 1140px;
  margin: 0 auto;
}

.section__header {
  text-align: center;
  margin-bottom: 48px;
}

.section__title {
  font-size: 32px;
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.section__subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: var(--leading-relaxed);
}

.section__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--brand-primary);
}

.section__link:hover {
  color: var(--brand-hover);
}


/* ================================================================
   7d. HOMEPAGE - WIZARD CARDS
   ================================================================ */

.wizard-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.wizard-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
  text-align: left;
  transition: box-shadow 0.2s ease;
}

.wizard-card:hover {
  box-shadow: var(--shadow-card-hover);
}

.wizard-card__icon {
  color: var(--brand-primary);
  margin-bottom: 20px;
}

.wizard-card__icon svg {
  display: block;
}

.wizard-card__title {
  font-size: 20px;
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  margin-bottom: 12px;
}

.wizard-card__desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: 24px;
}


/* ================================================================
   7e. HOMEPAGE - STEPS
   ================================================================ */

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
}

.steps__item {
  flex: 0 1 260px;
  text-align: center;
}

.steps__number {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--brand-primary);
  color: #ffffff;
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.steps__title {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  margin-bottom: 8px;
}

.steps__desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

.steps__connector {
  display: flex;
  align-items: center;
  padding-top: 24px;
}


/* ================================================================
   7f. HOMEPAGE - FEATURE GRID
   ================================================================ */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s ease;
}

.feature-card:hover {
  box-shadow: var(--shadow-card-hover);
}

.feature-card__icon {
  color: var(--brand-primary);
  margin-bottom: 16px;
}

.feature-card__icon svg {
  display: block;
}

.feature-card__title {
  font-size: 18px;
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  margin-bottom: 8px;
}

.feature-card__desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}


/* ================================================================
   7g. HOMEPAGE - REPORT GRID
   ================================================================ */

.report-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.report-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.report-card:hover {
  box-shadow: var(--shadow-card-hover);
}

.report-card__body {
  padding: 24px;
}

.report-card__title {
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: var(--leading-snug);
}

.report-card__title a {
  color: inherit;
  text-decoration: none;
}

.report-card__title a:hover {
  color: var(--brand-primary);
}

.report-card__snippet {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.report-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.report-card__date {
  font-size: var(--text-xs);
  color: var(--text-muted);
}


/* ================================================================
   7h. HOMEPAGE - SOCIAL PROOF
   ================================================================ */

.social-proof {
  text-align: center;
}

.social-proof__title {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  margin-bottom: 24px;
}

.social-proof__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.social-proof__logo {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  object-fit: cover;
  opacity: 0.7;
  filter: grayscale(40%);
  transition: opacity 0.2s ease, filter 0.2s ease;
}

.social-proof__logo:hover {
  opacity: 1;
  filter: grayscale(0%);
}


/* ================================================================
   7i. HOMEPAGE - CTA SECTION
   ================================================================ */

.cta-section {
  background: #1a1a2e;
  color: #ffffff;
  padding: 80px 24px;
  text-align: center;
}

[data-theme='dark'] .cta-section {
  background: #1a1a2e;
}

.cta-section__inner {
  max-width: 600px;
  margin: 0 auto;
}

.cta-section__title {
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  color: #ffffff;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.cta-section__subtitle {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.7);
  line-height: var(--leading-relaxed);
  margin-bottom: 32px;
}


/* ================================================================
   8. BUTTONS
   ================================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--ff-body);
  font-weight: var(--weight-medium);
  font-size: 15px;
  line-height: 1.4;
  border-radius: 8px;
  padding: 10px 20px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:focus-visible {
  box-shadow: var(--focus-ring);
}

/* Primary */
.btn--primary {
  background: var(--brand-primary);
  color: #ffffff;
  border-color: var(--brand-primary);
}

.btn--primary:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
  color: #ffffff;
}

/* Secondary / Outline */
.btn--secondary,
.btn--outline {
  background: transparent;
  color: var(--brand-primary);
  border-color: var(--brand-primary);
}

.btn--secondary:hover,
.btn--outline:hover {
  background: var(--brand-light);
  color: var(--brand-hover);
  border-color: var(--brand-hover);
}

/* Ghost */
.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}

.btn--ghost:hover {
  background: var(--bg-subtle);
  color: var(--text-primary);
}

/* Danger */
.btn--danger {
  background: var(--color-danger);
  color: #ffffff;
  border-color: var(--color-danger);
}

.btn--danger:hover {
  background: var(--color-danger-dark);
  border-color: var(--color-danger-dark);
  color: #ffffff;
}

/* Warning */
.btn--warning {
  background: var(--color-warning);
  color: #ffffff;
  border-color: var(--color-warning);
}

.btn--warning:hover {
  background: var(--color-warning-dark);
  border-color: var(--color-warning-dark);
  color: #ffffff;
}

/* White (for dark backgrounds) */
.btn--white {
  background: #ffffff;
  color: #1a1a2e;
  border-color: #ffffff;
}

.btn--white:hover {
  background: #f0f0f5;
  border-color: #f0f0f5;
  color: #1a1a2e;
}

/* Ghost White (for dark backgrounds) */
.btn--ghost-white {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn--ghost-white:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
}

/* Info */
.btn--info {
  background: var(--color-info);
  color: #ffffff;
  border-color: var(--color-info);
}

.btn--info:hover {
  background: var(--color-info-dark);
  border-color: var(--color-info-dark);
  color: #ffffff;
}

/* Premium */
.btn--premium {
  background: var(--color-premium);
  color: #ffffff;
  border-color: var(--color-premium);
}

.btn--premium:hover {
  background: #7c3aed;
  border-color: #7c3aed;
  color: #ffffff;
}

/* --- Button Sizes --- */
.btn--sm {
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 6px;
  gap: 6px;
}

.btn--md {
  font-size: 15px;
  padding: 10px 20px;
}

.btn--lg {
  font-size: 16px;
  padding: 14px 28px;
  border-radius: 10px;
}

.btn--xl {
  font-size: 17px;
  padding: 16px 32px;
  border-radius: 12px;
}

/* --- Button Modifiers --- */
.btn--full {
  width: 100%;
}

.btn--icon {
  padding: 10px;
  gap: 0;
}

.btn--icon.btn--sm {
  padding: 6px;
}

.btn--icon.btn--lg {
  padding: 14px;
}

.btn[disabled],
.btn--disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn--loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}

.btn--loading::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: var(--radius-full);
  animation: spin 0.6s linear infinite;
}


/* ================================================================
   9. CARDS
   ================================================================ */

.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-card-hover);
}

.card--flat {
  box-shadow: none;
  border: 1px solid var(--border-default);
}

.card--flat:hover {
  box-shadow: none;
  border-color: var(--border-strong);
}

.card--compact {
  padding: 16px;
}

.card--flush {
  padding: 0;
}

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

.card__title {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
}

.card__subtitle {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-top: 4px;
}

.card__body {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

.card__footer {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Card grids */
.card-grid {
  display: grid;
  gap: 24px;
}

.card-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.card-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.card-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}


/* ================================================================
   10. FORMS
   ================================================================ */

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

.form-group:last-child {
  margin-bottom: 0;
}

.form-label {
  display: block;
  font-size: var(--text-sm, 14px);
  font-weight: var(--weight-medium, 600);
  color: var(--text-primary);
  margin-bottom: 6px;
}

.form-label--required::after {
  content: ' *';
  color: var(--color-danger);
}

.form-input,
.form-select,
.form-textarea {
  display: block;
  height: 44px;
  padding: 0 14px;
  background: var(--bg-input, var(--bg-card));
  border: 1.5px solid var(--border-default);
  border-radius: 8px;
  font-size: var(--text-base, 15px);
  font-family: inherit;
  color: var(--text-primary);
  transition: border-color var(--transition-base, 0.15s), box-shadow 0.15s;
  width: 100%;
  outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.12);
}

.form-input--error,
.form-select--error,
.form-textarea--error,
.form-group--error .form-input,
.form-group--error .form-select,
.form-group--error .form-textarea {
  border-color: var(--color-danger);
}

.form-input--error:focus,
.form-select--error:focus,
.form-textarea--error:focus,
.form-group--error .form-input:focus,
.form-group--error .form-select:focus,
.form-group--error .form-textarea:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.form-textarea {
  height: auto;
  min-height: 100px;
  padding: 12px 14px;
  resize: vertical;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%239198a8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-hint {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.form-error {
  font-size: var(--text-xs);
  color: var(--color-danger);
}

.form-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.form-row--between {
  justify-content: space-between;
}

/* Checkbox */
.form-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: var(--text-sm);
}

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid var(--border-default);
  accent-color: var(--brand-primary);
  cursor: pointer;
}

.form-checkbox__label {
  color: var(--text-secondary);
}

/* Toggle */
.form-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.form-toggle__switch {
  position: relative;
  width: 44px;
  height: 24px;
  background: var(--border-default);
  border-radius: var(--radius-full);
  transition: background var(--transition-base);
}

.form-toggle__switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: #ffffff;
  border-radius: var(--radius-full);
  transition: transform var(--transition-base);
}

.form-toggle input:checked + .form-toggle__switch {
  background: var(--brand-primary);
}

.form-toggle input:checked + .form-toggle__switch::after {
  transform: translateX(20px);
}

.form-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.form-toggle__label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

/* Link in form */
.form-link {
  font-size: var(--text-sm);
  color: var(--brand-primary);
  font-weight: var(--weight-medium);
}

.form-link:hover {
  color: var(--brand-hover);
}

/* Alert in form */
.form-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
}

.form-alert--error {
  background: var(--color-danger-light);
  color: var(--color-danger);
}

.form-alert--success {
  background: var(--color-success-light);
  color: var(--color-success);
}

.form-alert--warning {
  background: var(--color-warning-light);
  color: var(--color-warning-dark);
}

.form-alert--info {
  background: var(--color-info-light);
  color: var(--color-info);
}

.form-alert__icon {
  flex-shrink: 0;
  margin-top: 1px;
}

/* Radio group */
.form-radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.form-radio input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--brand-primary);
  cursor: pointer;
}

/* Range / Slider */
.form-range {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--border-default);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.form-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  background: var(--brand-primary);
  cursor: pointer;
}


/* ================================================================
   11. PILLS / BADGES
   ================================================================ */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  line-height: 1.4;
  white-space: nowrap;
}

.pill--sm {
  padding: 2px 8px;
  font-size: 11px;
}

.pill--lg {
  padding: 6px 14px;
  font-size: var(--text-sm);
}

.pill--success {
  background: var(--color-success-light);
  color: var(--color-success);
}

.pill--warning {
  background: var(--color-warning-light);
  color: var(--color-warning-dark);
}

.pill--danger {
  background: var(--color-danger-light);
  color: var(--color-danger);
}

.pill--info {
  background: var(--color-info-light);
  color: var(--color-info);
}

.pill--primary {
  background: var(--brand-light);
  color: var(--brand-primary);
}

.pill--premium {
  background: var(--color-premium-light);
  color: var(--color-premium);
}

.pill--neutral {
  background: var(--bg-subtle);
  color: var(--text-secondary);
}

.pill--live {
  background: var(--color-live-light);
  color: var(--color-live);
}

.pill--outline {
  background: transparent;
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
}


/* ================================================================
   12. MATCH DAY (Panel + Wet-Weather UI)
   ================================================================ */

.match-day-panel {
  max-width: 480px;
  margin: 0 auto;
  padding: 16px;
}

.match-day-score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px 0;
  text-align: center;
}

.match-day-score__team {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  max-width: 100px;
  text-align: center;
}

.match-day-score__display {
  display: flex;
  align-items: center;
  gap: 8px;
}

.score-separator {
  font-size: 32px;
  font-weight: var(--weight-bold);
  color: var(--text-muted);
}

.match-day-clock {
  text-align: center;
  padding: 16px 0;
}

.stopwatch {
  font-family: var(--ff-mono);
  font-size: 48px;
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}

.match-day-events {
  padding: 16px 0;
}

.match-day-events__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.match-day-btn {
  min-height: 56px;
  font-size: 16px;
  font-weight: var(--weight-semibold);
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  touch-action: manipulation;
}

.match-day-btn--goal {
  background: #059669;
  color: #ffffff;
}

.match-day-btn--goal:hover {
  background: #047857;
}

.match-day-btn--assist {
  background: var(--color-info);
  color: #ffffff;
}

.match-day-btn--assist:hover {
  background: var(--color-info-dark);
}

.match-day-btn--yellow {
  background: var(--color-yellow-card);
  color: #1a1a2e;
}

.match-day-btn--yellow:hover {
  background: #ca8a04;
}

.match-day-btn--red {
  background: var(--color-red-card);
  color: #ffffff;
}

.match-day-btn--red:hover {
  background: #dc2626;
}

.match-day-btn--sub {
  background: var(--brand-energy);
  color: #ffffff;
}

.match-day-btn--sub:hover {
  background: var(--brand-energy-hover);
}

/* Player select modal */
.match-day-player-select {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: var(--z-modal);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.match-day-player-select[hidden] {
  display: none;
}

.match-day-player-select__content {
  background: var(--bg-card);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: 24px;
  width: 100%;
  max-width: 480px;
  max-height: 70vh;
  overflow-y: auto;
}

.match-day-player-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 16px 0;
}

.match-day-player-list__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  transition: background var(--transition-base);
}

.match-day-player-list__item:hover {
  background: var(--bg-subtle);
}

.match-day-controls {
  display: flex;
  gap: 12px;
  padding: 16px 0;
}

.match-day-controls .btn {
  flex: 1;
}

.match-day-timeline {
  padding: 16px 0;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.timeline__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
}

.timeline__minute {
  font-family: var(--ff-mono);
  font-weight: var(--weight-semibold);
  min-width: 36px;
}

.timeline__type {
  font-size: var(--text-xs);
}


/* ================================================================
   13. PITCH TAP (v2 match day)
   ================================================================ */

.pitch-tap {
  background: #0a0a0a;
  color: #ffffff;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  user-select: none;
  -webkit-user-select: none;
}

.pitch-tap__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #111111;
  border-bottom: 1px solid #222;
}

.pitch-tap__timer {
  font-family: var(--ff-mono);
  font-size: 20px;
  font-weight: var(--weight-bold);
  letter-spacing: 0.04em;
}

.pitch-tap__conn {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: var(--weight-medium);
}

.pitch-tap__conn--online {
  background: rgba(52, 211, 153, 0.2);
  color: #34d399;
}

.pitch-tap__conn--offline {
  background: rgba(248, 113, 113, 0.2);
  color: #f87171;
}

.pitch-tap__score {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ff-mono);
}

.pitch-tap__score-home,
.pitch-tap__score-away {
  font-size: 24px;
  font-weight: var(--weight-bold);
}

.pitch-tap__score-sep {
  font-size: 18px;
  color: #666;
}

.pitch-tap__controls {
  display: flex;
  gap: 6px;
}

.pitch-tap__ctrl-btn {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: var(--weight-semibold);
  border: none;
  cursor: pointer;
  touch-action: manipulation;
}

.pitch-tap__ctrl-btn--start {
  background: #059669;
  color: #ffffff;
}

.pitch-tap__ctrl-btn--start:hover {
  background: #047857;
}

.pitch-tap__ctrl-btn--ht {
  background: #333;
  color: #ccc;
}

.pitch-tap__ctrl-btn--ht:hover {
  background: #444;
}

.pitch-tap__ctrl-btn--ft {
  background: #7f1d1d;
  color: #fca5a5;
}

.pitch-tap__ctrl-btn--ft:hover {
  background: #991b1b;
}

/* Pitch canvas area */
.pitch-tap__pitch {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.pitch-tap__canvas {
  width: 100%;
  height: 100%;
}

/* Player dots */
.pitch-tap__player {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: #ffffff;
  color: #000000;
  font-size: 14px;
  font-weight: var(--weight-bold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  touch-action: manipulation;
  transform: translate(-50%, -50%);
  border: 2px solid transparent;
  transition: border-color 0.15s ease;
}

.pitch-tap__player--selected {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.4);
}

.pitch-tap__player--sub {
  opacity: 0.5;
  width: 32px;
  height: 32px;
  font-size: 12px;
}

.pitch-tap__player-name {
  position: absolute;
  bottom: -16px;
  font-size: 10px;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.7);
  pointer-events: none;
}

/* Radial menu */
.pitch-tap__radial {
  position: fixed;
  z-index: var(--z-modal);
}

.pitch-tap__radial-btn {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  border: none;
  font-size: 12px;
  font-weight: var(--weight-semibold);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
}

/* Assist prompt */
.pitch-tap__assist-prompt {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-card);
  padding: 16px;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  box-shadow: var(--shadow-xl);
  z-index: var(--z-modal);
}

.pitch-tap__assist-title {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  margin-bottom: 12px;
  color: var(--text-primary);
}

.pitch-tap__assist-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pitch-tap__assist-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: var(--text-sm);
  color: var(--text-primary);
}

.pitch-tap__assist-item:hover {
  background: var(--bg-subtle);
}

/* Timeline bar in pitch tap */
.pitch-tap__timeline {
  background: #111;
  border-top: 1px solid #222;
  padding: 8px 12px;
  max-height: 120px;
  overflow-y: auto;
}

.pitch-tap__event {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-size: 12px;
  color: #aaa;
}

.pitch-tap__event-time {
  font-family: var(--ff-mono);
  min-width: 32px;
  font-weight: var(--weight-medium);
}


/* ================================================================
   14. AVATARS
   ================================================================ */

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--brand-light);
  color: var(--brand-primary);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  flex-shrink: 0;
  overflow: hidden;
}

.avatar--xs {
  width: 24px;
  height: 24px;
  font-size: 11px;
}

.avatar--sm {
  width: 32px;
  height: 32px;
  font-size: 13px;
}

.avatar--md {
  width: 40px;
  height: 40px;
  font-size: 15px;
}

.avatar--lg {
  width: 48px;
  height: 48px;
  font-size: 18px;
}

.avatar--xl {
  width: 64px;
  height: 64px;
  font-size: 24px;
}

.avatar--2xl {
  width: 96px;
  height: 96px;
  font-size: 36px;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* ================================================================
   15. UTILITIES
   ================================================================ */

/* --- Spacing --- */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.ml-auto { margin-left: auto; }
.mr-auto { margin-right: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }

.p-0 { padding: 0; }
.p-2 { padding: var(--space-2); }
.p-3 { padding: var(--space-3); }
.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }

.px-4 { padding-left: var(--space-4); padding-right: var(--space-4); }
.px-6 { padding-left: var(--space-6); padding-right: var(--space-6); }
.py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }
.py-6 { padding-top: var(--space-6); padding-bottom: var(--space-6); }
.py-8 { padding-top: var(--space-8); padding-bottom: var(--space-8); }

.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* --- Flex --- */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }
.flex-shrink-0 { flex-shrink: 0; }

.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.items-stretch { align-items: stretch; }

.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.justify-start { justify-content: flex-start; }

.inline-flex { display: inline-flex; }

/* --- Grid --- */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* --- Text --- */
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--color-success); }
.text-danger { color: var(--color-danger); }
.text-warning { color: var(--color-warning); }
.text-info { color: var(--color-info); }
.text-brand { color: var(--brand-primary); }

.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

.font-normal { font-weight: var(--weight-normal); }
.font-medium { font-weight: var(--weight-medium); }
.font-semibold { font-weight: var(--weight-semibold); }
.font-bold { font-weight: var(--weight-bold); }

/* --- Display --- */
.block { display: block; }
.inline-block { display: inline-block; }
.hidden { display: none; }
.invisible { visibility: hidden; }

/* --- Width / Height --- */
.w-full { width: 100%; }
.max-w-sm { max-width: 480px; }
.max-w-md { max-width: 640px; }
.max-w-lg { max-width: 960px; }
.max-w-xl { max-width: 1140px; }

/* --- Overflow --- */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-x-auto { overflow-x: auto; }

/* --- Border --- */
.border { border: 1px solid var(--border-default); }
.border-t { border-top: 1px solid var(--border-default); }
.border-b { border-bottom: 1px solid var(--border-default); }
.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: var(--radius-full); }

/* --- Background --- */
.bg-page { background: var(--bg-page); }
.bg-card { background: var(--bg-card); }
.bg-subtle { background: var(--bg-subtle); }

/* --- Screen reader only --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Truncate --- */
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- Relative / Absolute --- */
.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }

/* --- Cursor --- */
.cursor-pointer { cursor: pointer; }

/* --- Opacity --- */
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }


/* ================================================================
   16. PAGE COMPONENTS
   ================================================================ */

/* --- Page Header --- */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  margin-bottom: 0;
}

.page-header__title,
.page-title {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
}

.page-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* --- Empty State --- */
.empty-state {
  text-align: center;
  padding: 48px 24px;
}

.empty-state__icon {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.empty-state__title {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin-bottom: 8px;
}

.empty-state__desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: 24px;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Toast --- */
.toast-container {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 400px;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  animation: fadeIn 0.2s ease;
}

.toast--success {
  border-left: 3px solid var(--color-success);
}

.toast--error {
  border-left: 3px solid var(--color-danger);
}

.toast--warning {
  border-left: 3px solid var(--color-warning);
}

.toast--info {
  border-left: 3px solid var(--color-info);
}

.toast__content {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex: 1;
}

.toast__icon {
  flex-shrink: 0;
  margin-top: 1px;
}

.toast--success .toast__icon { color: var(--color-success); }
.toast--error .toast__icon { color: var(--color-danger); }
.toast--warning .toast__icon { color: var(--color-warning); }
.toast--info .toast__icon { color: var(--color-info); }

.toast__message {
  font-size: var(--text-sm);
  color: var(--text-primary);
  line-height: var(--leading-normal);
}

.toast__close {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.toast__close:hover {
  background: var(--bg-subtle);
  color: var(--text-primary);
}

/* --- Live Dot --- */
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--color-live);
  animation: pulse 2s ease-in-out infinite;
}

/* --- Badge Count --- */
.badge-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--color-danger);
  color: #ffffff;
  font-size: 11px;
  font-weight: var(--weight-semibold);
  border-radius: var(--radius-full);
  line-height: 1;
}

/* --- Skeleton Loading --- */
.skeleton {
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  animation: shimmer 1.5s ease-in-out infinite;
}

.skeleton--text {
  height: 16px;
  margin-bottom: 8px;
}

.skeleton--title {
  height: 24px;
  width: 60%;
  margin-bottom: 12px;
}

.skeleton--avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
}

.skeleton--card {
  height: 120px;
}

.skeleton--btn {
  height: 44px;
  width: 120px;
}

/* --- Language Switcher --- */
.lang-switcher {
  position: fixed;
  bottom: 16px;
  left: 16px;
  z-index: 10;
}

.lang-switcher__select {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  padding: 4px 24px 4px 8px;
  font-size: var(--text-xs);
  color: var(--text-secondary);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='8' height='5' viewBox='0 0 8 5' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L4 4L7 1' stroke='%239198a8' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
}


/* ================================================================
   17. ADMIN COMPONENTS
   ================================================================ */

/* --- KPI Grid --- */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.kpi-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
}

.kpi-card__label {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.kpi-card__value {
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  font-family: var(--ff-mono);
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 4px;
}

.kpi-card__change {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
}

.kpi-card__change--up {
  color: var(--color-success);
}

.kpi-card__change--down {
  color: var(--color-danger);
}

/* --- Tables --- */
.table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.admin-table th {
  text-align: left;
  padding: 12px 16px;
  font-weight: var(--weight-semibold);
  color: var(--text-secondary);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border-default);
  background: var(--bg-subtle);
  white-space: nowrap;
}

.admin-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-default);
  color: var(--text-primary);
  vertical-align: middle;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table tr:hover td {
  background: var(--bg-card-hover);
}

.admin-table__actions {
  display: flex;
  gap: 8px;
}

/* --- Filters --- */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  flex-wrap: wrap;
}

.filter-bar__search {
  flex: 1;
  min-width: 200px;
}

.filter-bar__select {
  height: 40px;
  padding: 0 32px 0 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--text-primary);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%239198a8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

/* --- Admin Tabs --- */
.admin-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border-default);
  margin-bottom: 24px;
}

.admin-tabs__item {
  padding: 12px 20px;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color var(--transition-base), border-color var(--transition-base);
  text-decoration: none;
}

.admin-tabs__item:hover {
  color: var(--text-primary);
}

.admin-tabs__item--active {
  color: var(--brand-primary);
  border-bottom-color: var(--brand-primary);
  font-weight: var(--weight-semibold);
}

/* --- Health Indicator --- */
.health-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
}

.health-indicator__dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
}

.health-indicator--healthy .health-indicator__dot {
  background: var(--color-success);
}

.health-indicator--warning .health-indicator__dot {
  background: var(--color-warning);
}

.health-indicator--critical .health-indicator__dot {
  background: var(--color-danger);
}

/* --- Pagination --- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 16px 0;
}

.pagination__item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  text-decoration: none;
  transition: background var(--transition-base), color var(--transition-base);
}

.pagination__item:hover {
  background: var(--bg-subtle);
  color: var(--text-primary);
}

.pagination__item--active {
  background: var(--brand-primary);
  color: #ffffff;
}

.pagination__item--active:hover {
  background: var(--brand-hover);
  color: #ffffff;
}

.pagination__item--disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* --- Detail Grid --- */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.detail-grid__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-grid__label {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.detail-grid__value {
  font-size: var(--text-sm);
  color: var(--text-primary);
  font-weight: var(--weight-medium);
}

/* --- Club Payout --- */
.club-payout {
  padding: 24px;
}

.club-payout__status-card {
  margin-bottom: 24px;
}

.club-payout__balance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.club-payout__balance-card {
  padding: 20px;
}

.club-payout__balance-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 6px;
}

.club-payout__balance-amount {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  font-family: var(--ff-mono);
  color: var(--text-primary);
}

/* --- Referral Dashboard --- */
.referral-dashboard {
  padding: 24px;
}

.referral-share-card {
  text-align: center;
  padding: 32px;
}

.referral-link-input {
  display: flex;
  gap: 8px;
  max-width: 480px;
  margin: 0 auto;
}

.referral-link-input input {
  flex: 1;
}

/* --- Training, Injury, GPS pages --- */
.training-grid,
.injury-grid,
.gps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}


/* ================================================================
   18. ANIMATIONS
   ================================================================ */

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

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

@keyframes shimmer {
  0% { opacity: 0.6; }
  50% { opacity: 0.3; }
  100% { opacity: 0.6; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}


/* ================================================================
   19. RESPONSIVE
   ================================================================ */

/* --- Tablet (768px) --- */
@media (max-width: 768px) {
  .layout-main {
    grid-template-columns: 1fr;
    grid-template-rows: var(--topbar-height) 1fr;
    grid-template-areas:
      "topbar"
      "main";
  }

  .sidebar {
    display: none;
  }

  .topbar {
    left: 0;
    padding: 0 16px;
  }

  .topbar__hamburger {
    display: flex;
  }

  .topbar__logo {
    display: flex;
  }

  .topbar__search {
    display: none;
  }

  .topbar__search-toggle {
    display: flex;
  }

  .bottom-nav {
    display: flex;
  }

  .main-content {
    padding-bottom: var(--bottom-nav-height);
  }

  /* Hero */
  .hero {
    padding: 64px 16px 48px;
  }

  .hero__headline {
    font-size: 32px;
  }

  .hero__subtitle {
    font-size: 16px;
  }

  .hero__ctas {
    flex-direction: column;
  }

  .hero__ctas .btn {
    width: 100%;
  }

  /* Stats bar */
  .stats-bar__inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .stats-bar__number {
    font-size: 28px;
  }

  /* Sections */
  .section {
    padding: 48px 16px;
  }

  .section__title {
    font-size: 24px;
  }

  .section__subtitle {
    font-size: 15px;
  }

  /* Wizard cards */
  .wizard-cards {
    grid-template-columns: 1fr;
  }

  /* Steps */
  .steps {
    flex-direction: column;
    gap: 24px;
  }

  .steps__connector {
    display: none;
  }

  .steps__item {
    flex: none;
    width: 100%;
  }

  /* Feature grid */
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Report grid */
  .report-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* CTA */
  .cta-section {
    padding: 48px 16px;
  }

  .cta-section__title {
    font-size: 24px;
  }

  /* Auth */
  .auth-hero {
    display: none;
  }

  .auth-form-side {
    padding: 24px 16px;
  }

  /* Admin */
  .admin-sidebar {
    display: none;
  }

  .admin-main {
    margin-left: 0;
  }

  .admin-topbar__hamburger {
    display: flex;
  }

  .admin-content {
    padding: 16px;
  }

  /* KPI */
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  /* Card grids */
  .card-grid--2,
  .card-grid--3,
  .card-grid--4 {
    grid-template-columns: 1fr;
  }

  /* Detail grid */
  .detail-grid {
    grid-template-columns: 1fr;
  }

  /* Club payout */
  .club-payout__balance-grid {
    grid-template-columns: 1fr;
  }

  /* Page header */
  .page-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
  }

  /* Admin page header */
  .admin-page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Lang switcher (hide on mobile, bottom nav used) */
  .lang-switcher {
    display: none;
  }

  /* Grid utilities */
  .grid-cols-2,
  .grid-cols-3,
  .grid-cols-4 {
    grid-template-columns: 1fr;
  }

  /* Table wrapper scroll */
  .table-wrapper {
    border-radius: var(--radius-md);
  }

  /* Match day */
  .match-day-events__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
}

/* --- Laptop (1024px) --- */
@media (min-width: 769px) and (max-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .report-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .card-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- Desktop (1440px+) --- */
@media (min-width: 1440px) {
  .section__inner {
    max-width: 1200px;
  }

  .hero__headline {
    font-size: 56px;
  }
}

/* Sidebar active state on mobile (JS toggles) */
.sidebar--open {
  display: flex;
  position: fixed;
  z-index: var(--z-overlay);
}

.admin-sidebar--open {
  display: flex;
  position: fixed;
  z-index: var(--z-overlay);
}

/* Overlay when sidebar open on mobile */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: calc(var(--z-overlay) - 1);
}


/* ================================================================
   20. REDUCED MOTION + PRINT
   ================================================================ */

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

@media print {
  .sidebar,
  .topbar,
  .bottom-nav,
  .admin-sidebar,
  .admin-topbar,
  .lang-switcher,
  .toast-container,
  .toast,
  .btn,
  .match-day-player-select {
    display: none !important;
  }

  .layout-main {
    display: block;
  }

  .main-content {
    padding: 0;
  }

  .admin-main {
    margin-left: 0;
  }

  body {
    background: #ffffff;
    color: #000000;
    font-size: 12pt;
  }

  .card {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
  }

  .hero {
    background: #ffffff;
    color: #000000;
    padding: 24px 0;
  }

  .hero__headline {
    color: #000000;
  }

  .hero__subtitle {
    color: #333333;
  }

  .stats-bar {
    background: #f5f5f5;
    color: #000000;
  }

  .cta-section {
    background: #ffffff;
    color: #000000;
  }

  .cta-section__title {
    color: #000000;
  }

  a {
    color: #000000;
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666666;
  }

  .no-print {
    display: none !important;
  }
}


/* ================================================================
   NAVBAR + MEGA MENU (replaces sidebar)
   ================================================================ */
.sidebar { display: none !important; }
.topbar { display: none !important; }
.main-content { margin-left: 0 !important; padding-top: 72px; padding-bottom: 80px; min-height: calc(100vh - 72px); }
@media (min-width: 1024px) { .main-content { padding-bottom: 0; } }

.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 200; background: var(--bg-card); border-bottom: 1px solid var(--border-default); height: 72px; }
.navbar__inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; height: 100%; display: flex; align-items: center; gap: 32px; }
.navbar__logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--brand-primary); flex-shrink: 0; }
.navbar__logo-icon { color: var(--brand-primary); }
.navbar__logo-text { font-size: 18px; font-weight: 700; color: var(--text-primary); letter-spacing: -0.01em; }
.navbar__nav { flex: 1; display: none; }
@media (min-width: 768px) { .navbar__nav { display: flex; } }
.navbar__menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.navbar__item { position: relative; }
.navbar__link { display: flex; align-items: center; gap: 4px; padding: 8px 14px; font-size: 14px; font-weight: 500; color: var(--text-secondary); text-decoration: none; border-radius: 8px; border: none; background: none; cursor: pointer; transition: color 0.15s, background 0.15s; font-family: inherit; line-height: 1.4; }
.navbar__link:hover { color: var(--text-primary); background: var(--bg-subtle); }
.navbar__link--active { color: var(--brand-primary); font-weight: 600; }
.navbar__link svg { transition: transform 0.2s; }
.navbar__item--has-mega > button[aria-expanded="true"] svg { transform: rotate(180deg); }

.mega-menu { display: none; position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%); min-width: 560px; background: var(--bg-card); border: 1px solid var(--border-default); border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04); padding: 8px; z-index: 300; }
.navbar__item--has-mega > button[aria-expanded="true"] + .mega-menu { display: block; }
.mega-menu__inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 4px; }
.mega-menu__section { padding: 8px; }
.mega-menu__heading { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); padding: 8px 12px 6px; margin: 0; }
.mega-menu__link { display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--text-primary); transition: background 0.15s; }
.mega-menu__link:hover { background: var(--bg-subtle); color: var(--text-primary); }
.mega-menu__link > svg { flex-shrink: 0; margin-top: 2px; color: var(--brand-primary); }
.mega-menu__link-title { display: block; font-size: 14px; font-weight: 600; color: var(--text-primary); line-height: 1.3; }
.mega-menu__link-desc { display: block; font-size: 12px; color: var(--text-muted); margin-top: 2px; line-height: 1.4; }

.navbar__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0; }
.navbar__icon-btn { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border: none; background: none; color: var(--text-secondary); border-radius: 8px; cursor: pointer; transition: color 0.15s, background 0.15s; position: relative; }
.navbar__icon-btn:hover { color: var(--text-primary); background: var(--bg-subtle); }
.navbar__badge { position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px; font-size: 10px; font-weight: 700; background: var(--color-danger); color: #fff; border-radius: 99px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.navbar__user { text-decoration: none; }
.navbar__hamburger { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: none; background: none; color: var(--text-secondary); cursor: pointer; border-radius: 8px; }
.navbar__hamburger:hover { background: var(--bg-subtle); color: var(--text-primary); }
@media (min-width: 768px) { .navbar__hamburger { display: none; } }

.mobile-menu { display: none; background: var(--bg-card); border-bottom: 1px solid var(--border-default); padding: 8px 16px 16px; position: fixed; top: 72px; left: 0; right: 0; z-index: 250; max-height: calc(100vh - 72px); overflow-y: auto; }
.mobile-menu[aria-hidden="false"] { display: block; }
.mobile-menu__nav { display: flex; flex-direction: column; }
.mobile-menu__link { display: block; padding: 12px 16px; font-size: 15px; font-weight: 500; color: var(--text-secondary); text-decoration: none; border-radius: 8px; transition: background 0.15s, color 0.15s; }
.mobile-menu__link:hover { background: var(--bg-subtle); color: var(--text-primary); }
.mobile-menu__link--primary { color: var(--brand-primary); font-weight: 600; }
.mobile-menu__divider { border: none; border-top: 1px solid var(--border-default); margin: 8px 0; }

.site-footer { background: var(--bg-inverse); color: rgba(255,255,255,0.7); padding: 64px 24px 32px; margin-top: 80px; }
.site-footer__inner { max-width: 1200px; margin: 0 auto; }
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
@media (max-width: 767px) { .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.site-footer__brand { max-width: 240px; }
.site-footer__logo { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; color: #ffffff; text-decoration: none; margin-bottom: 12px; }
.site-footer__logo svg { color: var(--brand-primary); }
.site-footer__tagline { font-size: 14px; color: rgba(255,255,255,0.5); line-height: 1.5; margin: 0; }
.site-footer__links { display: flex; flex-direction: column; gap: 8px; }
.site-footer__heading { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 0.04em; margin: 0 0 8px; }
.site-footer__links a { font-size: 14px; color: rgba(255,255,255,0.65); text-decoration: none; transition: color 0.15s; }
.site-footer__links a:hover { color: #ffffff; }
.site-footer__lang-select { margin-top: 4px; padding: 6px 10px; font-size: 13px; background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.65); border: 1px solid rgba(255,255,255,0.1); border-radius: 6px; cursor: pointer; font-family: inherit; }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; font-size: 13px; color: rgba(255,255,255,0.35); }
.site-footer__bottom p { margin: 0; color: inherit; }
.lang-switcher { display: none; }

[data-theme="dark"] .mega-menu { box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 2px 8px rgba(0,0,0,0.2); }
[data-theme="dark"] .site-footer { background: #0d0f14; }

/* ================================================================
   LAYOUT OVERRIDE - No sidebar, navbar only
   ================================================================ */
.layout-main { display: block !important; grid-template-columns: none !important; grid-template-areas: none !important; }
.sidebar { display: none !important; width: 0 !important; }
.topbar { display: none !important; }
.main-content { margin-left: 0 !important; padding-top: 72px !important; grid-area: unset !important; }
@media (max-width: 767px) { .main-content { padding-bottom: 68px !important; } }

/* ================================================================
   MEGA MENU FIX - class-based toggle
   ================================================================ */
.mega-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 680px; background: var(--bg-card); border: 1px solid var(--border-default); border-radius: 12px; box-shadow: 0 12px 40px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06); padding: 24px; z-index: 300; margin-top: 8px; }
.navbar__item--open > .mega-menu { display: block; }
.mega-menu__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; }
.mega-menu__col { display: flex; flex-direction: column; gap: 2px; }
.mega-menu__heading { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); padding: 4px 8px 8px; }
.mega-menu__item { display: flex; align-items: flex-start; gap: 10px; padding: 8px; border-radius: 8px; text-decoration: none; color: var(--text-primary); transition: background 0.15s; }
.mega-menu__item:hover { background: var(--bg-subtle); color: var(--text-primary); }
.mega-menu__icon { font-size: 18px; line-height: 1; flex-shrink: 0; margin-top: 1px; }
.mega-menu__item strong { display: block; font-size: 13px; font-weight: 600; color: var(--text-primary); line-height: 1.3; }
.mega-menu__item span { display: block; font-size: 12px; color: var(--text-muted); margin-top: 1px; line-height: 1.3; }
.navbar__item--mega > button svg { transition: transform 0.2s; display: inline; }
.navbar__item--open > button svg { transform: rotate(180deg); }

/* Mobile menu - class based */
.mobile-menu { display: none; position: fixed; top: 72px; left: 0; right: 0; bottom: 0; background: var(--bg-card); z-index: 250; overflow-y: auto; padding: 16px; }
.mobile-menu--open { display: block; }
.mobile-menu__link { display: block; padding: 12px 16px; font-size: 15px; font-weight: 500; color: var(--text-secondary); text-decoration: none; border-radius: 8px; }
.mobile-menu__link:hover { background: var(--bg-subtle); color: var(--text-primary); }
.mobile-menu__link--cta { color: #fff; background: var(--brand-primary); text-align: center; margin-top: 8px; }
.mobile-menu__link--cta:hover { background: var(--brand-hover); color: #fff; }
.mobile-menu__heading { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); padding: 16px 16px 4px; }
.mobile-menu__divider { border: none; border-top: 1px solid var(--border-default); margin: 8px 0; }
@media (min-width: 768px) { .mobile-menu { display: none !important; } .navbar__hamburger { display: none; } }

/* Theme toggle icon switching */
[data-theme="light"] .theme-icon-light { display: none; }
[data-theme="light"] .theme-icon-dark { display: block; }
[data-theme="dark"] .theme-icon-light { display: block; }
[data-theme="dark"] .theme-icon-dark { display: none; }

/* Dark mode mega menu */
[data-theme="dark"] .mega-menu { box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 4px 12px rgba(0,0,0,0.3); border-color: var(--border-default); }
[data-theme="dark"] .mobile-menu { border-bottom: 1px solid var(--border-default); }

/* Footer bottom row */
.site-footer__bottom { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; font-size: 13px; color: rgba(255,255,255,0.35); flex-wrap: wrap; gap: 16px; }
.site-footer__bottom p { margin: 0; color: inherit; }
.site-footer__lang { display: flex; }
.site-footer__lang-select { padding: 6px 10px; font-size: 13px; background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.65); border: 1px solid rgba(255,255,255,0.1); border-radius: 6px; cursor: pointer; font-family: inherit; }
.lang-switcher { display: none; }

/* ================================================================
   Feature Landing Pages
   ================================================================ */
.feature-hero { text-align: center; padding: 48px 16px 32px; max-width: 720px; margin: 0 auto; }
.feature-hero__subtitle { font-size: 18px; color: var(--text-secondary); margin-top: 12px; line-height: 1.6; }
.feature-preview { display: flex; justify-content: center; padding: 24px 0; }
.feature-preview__placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; width: 100%; max-width: 560px; min-height: 200px; background: var(--bg-secondary); border: 2px dashed var(--border-default); border-radius: 12px; padding: 32px; color: var(--text-secondary); }
.feature-preview__placeholder svg { opacity: 0.4; }
.feature-preview__placeholder p { font-size: 14px; font-weight: 500; margin: 0; }
.feature-cta { text-align: center; padding: 32px 16px 48px; }
.feature-cta__note { font-size: 14px; color: var(--text-secondary); margin-top: 12px; }

/* Mobile nav fix - hide auth buttons, show hamburger */
.navbar__desktop-only { display: none; }
.navbar__hamburger { display: flex !important; }
@media (min-width: 768px) {
  .navbar__desktop-only { display: inline-flex; }
  .navbar__hamburger { display: none !important; }
}

/* Per-item mega menu (smaller, single column) */
.mega-menu--sm { min-width: 300px; left: 0; transform: none; padding: 8px; }
.mega-menu--sm .mega-menu__item { display: block; padding: 10px 14px; }
.mega-menu--sm .mega-menu__item strong { display: block; font-size: 14px; font-weight: 600; color: var(--text-primary); }
.mega-menu--sm .mega-menu__item span { display: block; font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ================================================================
   ENHANCED FORMS - validation, sections, wizards
   ================================================================ */
.form-label--required::after { content: ' *'; color: var(--color-danger); font-weight: 400; }
.form-hint { font-size: 13px; color: var(--text-muted); margin-top: 4px; line-height: 1.4; }
.form-input--valid { border-color: var(--color-success) !important; }
.form-input--invalid { border-color: var(--color-danger) !important; }
.form-message { font-size: 13px; margin-top: 4px; display: none; }
.form-message--error { color: var(--color-danger); display: block; }
.form-message--success { color: var(--color-success); display: block; }
.form-row { display: flex; gap: 16px; }
.form-row > .form-group { flex: 1; }
@media (max-width: 767px) { .form-row { flex-direction: column; gap: 0; } }
.form-section { font-size: 16px; font-weight: 600; color: var(--text-primary); padding-bottom: 8px; border-bottom: 1px solid var(--border-default); margin: 28px 0 16px; }
.form-section:first-child { margin-top: 0; }
.btn--full { width: 100%; justify-content: center; }
.form-card { background: var(--bg-card); border: 1px solid var(--border-default); border-radius: 12px; padding: 32px; max-width: 640px; margin: 0 auto; }
@media (max-width: 767px) { .form-card { padding: 20px; border: none; border-radius: 0; } }
.form-header { margin-bottom: 24px; }
.form-header__title { font-size: 22px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.form-header__desc { font-size: 15px; color: var(--text-secondary); line-height: 1.5; margin: 0; }
.wizard-progress { display: flex; align-items: center; justify-content: center; gap: 6px; margin-bottom: 28px; }
.wizard-progress__step { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; border: 2px solid var(--border-default); color: var(--text-muted); background: var(--bg-card); }
.wizard-progress__step--active { border-color: var(--brand-primary); color: #fff; background: var(--brand-primary); }
.wizard-progress__step--done { border-color: var(--color-success); color: #fff; background: var(--color-success); }
.wizard-progress__line { width: 32px; height: 2px; background: var(--border-default); }
.wizard-progress__line--done { background: var(--color-success); }
.form-counter { font-size: 12px; color: var(--text-muted); text-align: right; margin-top: 4px; }
.form-row--between { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }

/* ================================================================
   WIZARD PAGE - Football pitch background
   ================================================================ */
.wizard-page {
  position: relative;
  min-height: calc(100vh - 72px);
  padding: 48px 16px 80px;
  overflow: hidden;
  background: linear-gradient(135deg, #059669 0%, #047857 40%, #065f46 100%);
}
[data-theme="dark"] .wizard-page {
  background: linear-gradient(135deg, #064e3b 0%, #022c22 40%, #0f172a 100%);
}
.wizard-page__bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.wizard-page__pitch {
  width: 120%;
  max-width: 1200px;
  height: auto;
  color: rgba(255,255,255,0.12);
}
.wizard-card {
  position: relative;
  z-index: 1;
  max-width: 580px;
  margin: 0 auto;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.15), 0 2px 8px rgba(0,0,0,0.08);
}
[data-theme="dark"] .wizard-card {
  box-shadow: 0 8px 40px rgba(0,0,0,0.4), 0 2px 8px rgba(0,0,0,0.3);
}
.wizard-card__badge {
  display: inline-block;
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 700;
  color: #059669;
  background: var(--color-success-light, #ecfdf5);
  border-radius: 99px;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
.wizard-score-input {
  text-align: center;
  font-size: 24px !important;
  font-weight: 800 !important;
  height: 56px !important;
  letter-spacing: 0.02em;
}
/* Bolder labels throughout */
.form-label strong {
  font-weight: 700;
  color: var(--text-primary);
}

/* ================================================================
   AD ZONES
   ================================================================ */
.ad-zone { text-align: center; margin: 0; padding: 8px 0; position: relative; }
.ad-zone--header { background: var(--bg-subtle); border-bottom: 1px solid var(--border-default); padding: 12px 16px; }
.ad-zone--sidebar { position: sticky; top: 80px; }
.ad-zone--in-feed { margin: 16px 0; }
.ad-zone--report { margin: 32px 0; padding: 24px 0; border-top: 1px solid var(--border-default); border-bottom: 1px solid var(--border-default); }
.ad-zone--wizard { margin-top: 24px; }
.ad-zone--event-sponsor { margin-top: 12px; }
.ad-zone__inner { max-width: 728px; margin: 0 auto; position: relative; }
.ad-zone__img { max-width: 100%; height: auto; border-radius: 6px; display: block; margin: 0 auto; }
.ad-zone__link { display: block; text-decoration: none; }
.ad-zone__label { position: absolute; top: 4px; right: 4px; font-size: 10px; font-weight: 600; color: var(--text-muted); background: var(--bg-card); padding: 1px 6px; border-radius: 3px; text-transform: uppercase; letter-spacing: 0.05em; }
.ad-zone__adsense { background: var(--bg-subtle); border: 1px dashed var(--border-default); border-radius: 6px; display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 12px; }
.ad-zone__adsense::after { content: 'Advertisement'; }
.event-sponsor { display: flex; align-items: center; gap: 8px; justify-content: center; }
.event-sponsor__link { display: flex; align-items: center; gap: 6px; text-decoration: none; color: var(--text-secondary); }
.event-sponsor__logo { border-radius: 4px; }
.event-sponsor__name { font-weight: 600; font-size: 14px; }
.card--sponsored { border: 1px solid var(--color-warning-light, #fef3c7); }
.card--promoted { border: 1px solid var(--color-warning-light, #fef3c7); }
/* Hide ads for premium users via body class */
.user-premium .ad-zone { display: none !important; }
@media (max-width: 767px) {
  .ad-zone--header .ad-zone__img { max-width: 320px; }
  .ad-zone--sidebar { display: none; }
}

/* Visible ad placeholder (shows when no campaign active) */
.ad-zone__placeholder {
  background: var(--bg-subtle);
  border: 2px dashed var(--border-default);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  min-height: 90px;
  max-width: 728px;
  margin: 0 auto;
}
.ad-zone--sidebar .ad-zone__placeholder { min-height: 250px; max-width: 300px; }
.ad-zone--report .ad-zone__placeholder { min-height: 90px; }
.ad-zone--wizard .ad-zone__placeholder { min-height: 90px; max-width: 580px; background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); color: rgba(255,255,255,0.4); }
.ad-zone--header { padding: 10px 16px; }

/* Pitch background - move up, make bigger */
.wizard-page { padding-top: 24px; }
.wizard-page__bg { top: -60px; }
.wizard-page__pitch { width: 140%; max-width: 1400px; opacity: 1; }

/* Ad zone preview (admin setting: show_ad_zones=true) */
.ad-zone__preview {
  background: repeating-linear-gradient(45deg, transparent, transparent 8px, rgba(5,150,105,0.04) 8px, rgba(5,150,105,0.04) 16px);
  border: 2px dashed var(--brand-primary, #059669);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-primary, #059669);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  min-height: 90px;
  max-width: 728px;
  margin: 0 auto;
  opacity: 0.6;
}
.ad-zone--sidebar .ad-zone__preview { min-height: 250px; max-width: 300px; }
.ad-zone--in-feed .ad-zone__preview { min-height: 60px; max-width: 100%; }
.ad-zone--kit-exchange .ad-zone__preview { min-height: 60px; max-width: 100%; }
.ad-zone--event .ad-zone__preview { min-height: 50px; max-width: 100%; }
.ad-zone--wizard .ad-zone__preview { max-width: 580px; border-color: rgba(255,255,255,0.3); color: rgba(255,255,255,0.5); background: repeating-linear-gradient(45deg, transparent, transparent 8px, rgba(255,255,255,0.03) 8px, rgba(255,255,255,0.03) 16px); }

/* Range slider styling */
.form-range { width: 100%; height: 6px; -webkit-appearance: none; appearance: none; background: var(--border-default); border-radius: 3px; outline: none; cursor: pointer; }
.form-range::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--brand-primary, #059669); cursor: pointer; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
.form-range::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--brand-primary, #059669); cursor: pointer; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
