/* Art direction: The Recruiting Map — Premium recruiting tool
   Palette: Deep navy primary with teal accents — collegiate athletics + academic prestige
   Typography: General Sans (body) + DM Serif Display (display, authoritative) */

/* ===== FONTS ===== */
@import url('https://api.fontshare.com/v2/css?f[]=general-sans@400,500,600,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&display=swap');

:root {
  --font-body: 'General Sans', 'Helvetica Neue', sans-serif;
  --font-display: 'DM Serif Display', Georgia, serif;

  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.5rem  + 2vw, 3.5rem);

  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;

  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.25rem;
  --radius-full: 9999px;

  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== LIGHT MODE ===== */
:root, [data-theme="light"] {
  --color-bg:             #f5f4f0;
  --color-surface:        #ffffff;
  --color-surface-2:      #fafaf8;
  --color-surface-offset: #efeee9;
  --color-divider:        #ddd9d2;
  --color-border:         #d0cdc6;

  --color-text:           #1a1a2e;
  --color-text-muted:     #6b6b7b;
  --color-text-faint:     #a5a5b2;

  --color-primary:        #16213e;
  --color-primary-hover:  #0f3460;
  --color-primary-active: #0a1628;

  --color-accent:         #0e918c;
  --color-accent-hover:   #0a7470;
  --color-accent-light:   #e0f4f3;

  --color-ivy:            #2d6a4f;
  --color-nescac:         #7b2d8e;
  --color-patriot:        #c4421a;
  --color-mega:           #b8860b;
  --color-d3:             #2563eb;
  --color-big10:          #CC0000;
  --color-big12:          #004B87;
  --color-sec:            #cc8400;
  --color-acc:            #013CA6;
  --color-sunbelt:        #c99520;
  --color-cusa:           #002D62;
  --color-american:       #BF0D3E;
  --color-mwc:            #00205B;
  --color-caa:            #006747;

  --shadow-sm: 0 1px 3px rgba(26, 26, 46, 0.06);
  --shadow-md: 0 4px 12px rgba(26, 26, 46, 0.08);
  --shadow-lg: 0 12px 32px rgba(26, 26, 46, 0.12);
  --shadow-xl: 0 20px 48px rgba(26, 26, 46, 0.16);
}

/* ===== DARK MODE ===== */
[data-theme="dark"] {
  --color-bg:             #0f0f1a;
  --color-surface:        #1a1a2e;
  --color-surface-2:      #1f1f35;
  --color-surface-offset: #16162a;
  --color-divider:        #2a2a42;
  --color-border:         #35354d;

  --color-text:           #e0e0e8;
  --color-text-muted:     #8888a0;
  --color-text-faint:     #5a5a72;

  --color-primary:        #a8c0e8;
  --color-primary-hover:  #6b9cd4;
  --color-primary-active: #4a7ab8;

  --color-accent:         #4fd1c5;
  --color-accent-hover:   #38b2ac;
  --color-accent-light:   rgba(79, 209, 197, 0.12);

  --color-ivy:            #6fcf97;
  --color-nescac:         #c77ddb;
  --color-patriot:        #f4845f;
  --color-mega:           #f0c75e;
  --color-d3:             #60a5fa;
  --color-big10:          #ff4d4d;
  --color-big12:          #4d9fe6;
  --color-sec:            #f0c75e;
  --color-acc:            #5b8fd9;
  --color-sunbelt:        #f0c75e;
  --color-cusa:           #4d7fc2;
  --color-american:       #f06080;
  --color-mwc:            #4d6fbf;
  --color-caa:            #4dc9a0;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 48px rgba(0, 0, 0, 0.6);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #0f0f1a; --color-surface: #1a1a2e; --color-surface-2: #1f1f35;
    --color-surface-offset: #16162a; --color-divider: #2a2a42; --color-border: #35354d;
    --color-text: #e0e0e8; --color-text-muted: #8888a0; --color-text-faint: #5a5a72;
    --color-primary: #a8c0e8; --color-primary-hover: #6b9cd4; --color-primary-active: #4a7ab8;
    --color-accent: #4fd1c5; --color-accent-hover: #38b2ac; --color-accent-light: rgba(79,209,197,0.12);
    --color-ivy: #6fcf97; --color-nescac: #c77ddb; --color-patriot: #f4845f;
    --color-mega: #f0c75e; --color-d3: #60a5fa;
    --color-big10: #ff4d4d; --color-big12: #4d9fe6; --color-sec: #f0c75e;
    --color-acc: #5b8fd9; --color-sunbelt: #f0c75e; --color-cusa: #4d7fc2;
    --color-american: #f06080; --color-mwc: #4d6fbf; --color-caa: #4dc9a0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3); --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.5); --shadow-xl: 0 20px 48px rgba(0,0,0,0.6);
  }
}


/* ====================================================================
   LANDING PAGE
   ==================================================================== */

html, body { height: 100%; margin: 0; }
body { overflow-x: hidden; }

.landing { min-height: 100vh; }

/* -- Nav -- */
.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-6);
  position: sticky;
  top: 0;
  background: color-mix(in oklch, var(--color-surface) 92%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-divider);
  z-index: 1200;
}

.landing-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-text);
}
.landing-logo svg { width: 36px; height: 36px; flex-shrink: 0; }

.landing-nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* -- Hero -- */
.hero {
  text-align: center;
  padding: var(--space-16) var(--space-6) var(--space-12);
  max-width: 720px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  padding: var(--space-1) var(--space-4);
  background: var(--color-accent-light);
  color: var(--color-accent);
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
  letter-spacing: 0.02em;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-text);
  margin-bottom: var(--space-6);
  line-height: 1.1;
}

.hero-sub {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto var(--space-8);
  line-height: 1.6;
}

.hero-cta { display: flex; flex-direction: column; align-items: center; gap: var(--space-3); }

.hero-price-note {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  font-weight: 500;
}

.guarantee-note {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-accent);
  margin-top: var(--space-1);
}

/* -- Preview -- */
.preview-section {
  text-align: center;
  padding: 0 var(--space-6) var(--space-6);
}
.preview-header h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-text);
  margin-bottom: var(--space-3);
}
.preview-header p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: 480px;
  margin: 0 auto;
}

/* -- Teaser wrapper -- */
.teaser-wrapper {
  margin: 0 var(--space-4) var(--space-12);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  border: 1px solid var(--color-divider);
  box-shadow: var(--shadow-xl);
  height: 600px;
  position: relative;
}

/* -- Value props -- */
.value-section {
  padding: var(--space-12) var(--space-6);
  max-width: 960px;
  margin: 0 auto;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

.value-card {
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-xl);
}

.value-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: var(--color-accent-light);
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}
.value-icon svg { width: 22px; height: 22px; }

.value-card h3 {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}
.value-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* -- Pricing section -- */
.pricing-section {
  padding: var(--space-12) var(--space-6);
  text-align: center;
}

.pricing-card-standalone {
  max-width: 420px;
  margin: 0 auto;
  padding: var(--space-8);
  background: var(--color-surface);
  border: 2px solid var(--color-accent);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg), 0 0 0 4px color-mix(in oklch, var(--color-accent) 10%, transparent);
}

.pricing-badge {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  background: var(--color-accent);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 700;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pricing-amount {
  font-family: var(--font-display);
  font-size: clamp(3rem, 2.5rem + 2vw, 4.5rem);
  color: var(--color-text);
  line-height: 1;
  margin-bottom: var(--space-2);
}
.pricing-amount .dollar {
  font-size: 0.5em;
  vertical-align: super;
  color: var(--color-text-muted);
}

.pricing-note {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.pricing-features li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text);
}
.pricing-features li svg {
  flex-shrink: 0;
  color: var(--color-accent);
}

.guarantee-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-accent);
}
.guarantee-badge svg { flex-shrink: 0; }

/* -- Footer -- */
.landing-footer {
  padding: var(--space-6);
  border-top: 1px solid var(--color-divider);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}
.footer-inner a {
  color: var(--color-text-faint);
  text-decoration: none;
}
.footer-inner a:hover { color: var(--color-text-muted); }


/* ====================================================================
   SHARED BUTTONS
   ==================================================================== */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  background: var(--color-accent);
  color: #fff;
  border-radius: var(--radius-lg);
  font-size: var(--text-base);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition-interactive);
}
.btn-primary:hover { background: var(--color-accent-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-primary-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2) var(--space-4);
  background: var(--color-accent);
  color: #fff;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition-interactive);
}
.btn-primary-sm:hover { background: var(--color-accent-hover); }

.btn-text {
  background: none;
  border: none;
  color: var(--color-accent);
  font-weight: 600;
  font-size: var(--text-sm);
  cursor: pointer;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
}
.btn-text:hover { background: var(--color-accent-light); }

.btn-lg { padding: var(--space-4) var(--space-8); font-size: var(--text-base); }
.btn-full { width: 100%; }


/* ====================================================================
   MODALS
   ==================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
}
.modal-backdrop.visible { display: block; }

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: min(440px, calc(100vw - 32px));
  max-height: calc(100dvh - 64px);
  overflow-y: auto;
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  z-index: 2001;
  display: none;
  opacity: 0;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}
.modal.visible {
  display: block;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.modal-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  z-index: 1;
}
.modal-close:hover { background: var(--color-surface-offset); color: var(--color-text); }

.modal-body {
  padding: var(--space-8);
}
.modal-body h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-text);
  margin-bottom: var(--space-2);
}
.modal-sub {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

.pricing-modal-header {
  text-align: center;
  margin-bottom: var(--space-6);
}
.pricing-amount-modal {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  color: var(--color-text);
  line-height: 1;
  margin: var(--space-3) 0 var(--space-2);
}
.pricing-amount-modal .dollar {
  font-size: 0.5em;
  vertical-align: super;
  color: var(--color-text-muted);
}

.stripe-info {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-align: center;
  margin-bottom: var(--space-4);
  font-weight: 500;
}

.form-group {
  margin-bottom: var(--space-4);
}
.form-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}
.form-group input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  font-size: var(--text-sm);
  color: var(--color-text);
}
.form-group input::placeholder { color: var(--color-text-faint); }
.form-group input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--color-accent) 20%, transparent);
}

.form-error {
  font-size: var(--text-xs);
  color: #dc2626;
  margin-bottom: var(--space-3);
  min-height: 1.2em;
}
.form-success {
  font-size: var(--text-sm);
  color: #16a34a;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  margin-bottom: var(--space-3);
}
[data-theme="dark"] .form-success {
  background: rgba(22, 163, 74, 0.1);
  border-color: rgba(22, 163, 74, 0.3);
  color: #4ade80;
}

.btn-loading { font-style: italic; }

.modal-guarantee {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-accent);
}
.modal-guarantee svg { flex-shrink: 0; }

.modal-fine-print {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-align: center;
  margin-top: var(--space-4);
  line-height: 1.4;
}

.modal-switch {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-align: center;
  margin-top: var(--space-4);
}

/* ====================================================================
   PAYWALL OVERLAY (on map)
   ==================================================================== */

.paywall-overlay {
  position: absolute;
  inset: 0;
  z-index: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.paywall-overlay.hidden { display: none; }

.paywall-card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  text-align: center;
  max-width: 360px;
  box-shadow: var(--shadow-xl);
}
.paywall-card svg { margin: 0 auto var(--space-4); color: var(--color-accent); }
.paywall-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-text);
  margin-bottom: var(--space-2);
}
.paywall-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
  line-height: 1.5;
}

.paywall-guarantee {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-accent);
  margin-top: var(--space-3);
}

/* -- Blurred camp cards when not authenticated -- */
.teaser-mode .camp-meta,
.teaser-mode .camp-card-actions,
.teaser-mode .camp-cost { filter: blur(6px); pointer-events: none; user-select: none; }

/* Authenticated: remove blur, hide paywall, hide landing, show full dashboard */
.authenticated .camp-meta,
.authenticated .camp-card-actions,
.authenticated .camp-cost { filter: none; pointer-events: auto; user-select: auto; }


/* ====================================================================
   DASHBOARD LAYOUT (reused from CampMap)
   ==================================================================== */

.dashboard {
  display: grid;
  grid-template-columns: 360px 1fr;
  grid-template-rows: auto 1fr;
  height: 100%;
  overflow: hidden;
}

.header {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-6);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-divider);
  z-index: 100;
  gap: var(--space-4);
}

.sidebar {
  grid-row: 2;
  grid-column: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--color-surface);
  border-right: 1px solid var(--color-divider);
  display: flex;
  flex-direction: column;
}

.map-container {
  grid-row: 2;
  grid-column: 2;
  position: relative;
}

/* -- Header -- */
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.logo svg { width: 36px; height: 36px; flex-shrink: 0; }
.logo-text {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-text);
  white-space: nowrap;
}
.logo-sub {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 500;
  letter-spacing: 0.03em;
}

.header-actions { display: flex; align-items: center; gap: var(--space-3); }
.header-login-btn { white-space: nowrap; }

.theme-toggle {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
}
.theme-toggle:hover { background: var(--color-surface-offset); color: var(--color-text); }

.kpi-strip { display: flex; gap: var(--space-4); align-items: center; }
.kpi-item {
  display: flex; align-items: baseline; gap: var(--space-2);
  font-size: var(--text-sm); color: var(--color-text-muted); white-space: nowrap;
}
.kpi-value {
  font-weight: 700; font-size: var(--text-base); color: var(--color-text);
  font-variant-numeric: tabular-nums lining-nums;
}

/* -- Sidebar -- */
.sidebar-section {
  padding: var(--space-4);
  border-bottom: 1px solid var(--color-divider);
}
.sidebar-section:last-child { border-bottom: none; }

.section-title {
  font-size: var(--text-xs); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--color-text-muted); margin-bottom: var(--space-3);
}

.league-filters { display: flex; gap: var(--space-2); flex-wrap: wrap; }

.league-chip {
  display: flex; align-items: center; gap: var(--space-2);
  padding: var(--space-2) var(--space-3); border-radius: var(--radius-full);
  font-size: var(--text-xs); font-weight: 600; cursor: pointer;
  border: 2px solid transparent; transition: all var(--transition-interactive); user-select: none;
}
.league-chip[data-league="ivy"] { background: color-mix(in oklch, var(--color-ivy) 15%, transparent); color: var(--color-ivy); border-color: var(--color-ivy); }
.league-chip[data-league="nescac"] { background: color-mix(in oklch, var(--color-nescac) 15%, transparent); color: var(--color-nescac); border-color: var(--color-nescac); }
.league-chip[data-league="patriot"] { background: color-mix(in oklch, var(--color-patriot) 15%, transparent); color: var(--color-patriot); border-color: var(--color-patriot); }
.league-chip[data-league="mega"] { background: color-mix(in oklch, var(--color-mega) 15%, transparent); color: var(--color-mega); border-color: var(--color-mega); }
.league-chip[data-league="d3"] { background: color-mix(in oklch, var(--color-d3) 15%, transparent); color: var(--color-d3); border-color: var(--color-d3); }
.league-chip[data-league="big10"] { background: color-mix(in oklch, var(--color-big10) 15%, transparent); color: var(--color-big10); border-color: var(--color-big10); }
.league-chip[data-league="big12"] { background: color-mix(in oklch, var(--color-big12) 15%, transparent); color: var(--color-big12); border-color: var(--color-big12); }
.league-chip[data-league="sec"] { background: color-mix(in oklch, var(--color-sec) 15%, transparent); color: var(--color-sec); border-color: var(--color-sec); }
.league-chip[data-league="acc"] { background: color-mix(in oklch, var(--color-acc) 15%, transparent); color: var(--color-acc); border-color: var(--color-acc); }
.league-chip[data-league="sunbelt"] { background: color-mix(in oklch, var(--color-sunbelt) 15%, transparent); color: var(--color-sunbelt); border-color: var(--color-sunbelt); }
.league-chip[data-league="cusa"] { background: color-mix(in oklch, var(--color-cusa) 15%, transparent); color: var(--color-cusa); border-color: var(--color-cusa); }
.league-chip[data-league="american"] { background: color-mix(in oklch, var(--color-american) 15%, transparent); color: var(--color-american); border-color: var(--color-american); }
.league-chip[data-league="mwc"] { background: color-mix(in oklch, var(--color-mwc) 15%, transparent); color: var(--color-mwc); border-color: var(--color-mwc); }
.league-chip[data-league="caa"] { background: color-mix(in oklch, var(--color-caa) 15%, transparent); color: var(--color-caa); border-color: var(--color-caa); }
.league-chip.inactive { opacity: 0.4; border-color: var(--color-border); }

.league-chip .chip-dot { width: 8px; height: 8px; border-radius: 50%; }
.league-chip[data-league="ivy"] .chip-dot { background: var(--color-ivy); }
.league-chip[data-league="nescac"] .chip-dot { background: var(--color-nescac); }
.league-chip[data-league="patriot"] .chip-dot { background: var(--color-patriot); }
.league-chip[data-league="mega"] .chip-dot { background: var(--color-mega); }
.league-chip[data-league="d3"] .chip-dot { background: var(--color-d3); }
.league-chip[data-league="big10"] .chip-dot { background: var(--color-big10); }
.league-chip[data-league="big12"] .chip-dot { background: var(--color-big12); }
.league-chip[data-league="sec"] .chip-dot { background: var(--color-sec); }
.league-chip[data-league="acc"] .chip-dot { background: var(--color-acc); }
.league-chip[data-league="sunbelt"] .chip-dot { background: var(--color-sunbelt); }
.league-chip[data-league="cusa"] .chip-dot { background: var(--color-cusa); }
.league-chip[data-league="american"] .chip-dot { background: var(--color-american); }
.league-chip[data-league="mwc"] .chip-dot { background: var(--color-mwc); }
.league-chip[data-league="caa"] .chip-dot { background: var(--color-caa); }

.search-box { position: relative; }
.search-box input {
  width: 100%; padding: var(--space-2) var(--space-3) var(--space-2) var(--space-8);
  border: 1px solid var(--color-border); border-radius: var(--radius-md);
  background: var(--color-bg); font-size: var(--text-sm); color: var(--color-text);
}
.search-box input::placeholder { color: var(--color-text-faint); }
.search-box input:focus {
  outline: none; border-color: var(--color-accent);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--color-accent) 20%, transparent);
}
.search-icon {
  position: absolute; left: var(--space-3); top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--color-text-faint);
}

/* Camp cards */
.camp-list {
  flex: 1; overflow-y: auto; overscroll-behavior: contain;
  padding: var(--space-3); display: flex; flex-direction: column; gap: var(--space-3);
}
.camp-card {
  background: var(--color-surface-2); border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg); padding: var(--space-4); cursor: pointer;
  transition: all var(--transition-interactive);
}
.camp-card:hover { border-color: var(--color-accent); box-shadow: var(--shadow-md); }
.camp-card.active { border-color: var(--color-accent); box-shadow: 0 0 0 2px color-mix(in oklch, var(--color-accent) 30%, transparent); }

.camp-card-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: var(--space-2); margin-bottom: var(--space-2);
}
.camp-school { font-weight: 700; font-size: var(--text-sm); color: var(--color-text); line-height: 1.3; }

.camp-league-badge {
  padding: 2px 8px; border-radius: var(--radius-full); font-size: 0.6875rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  white-space: nowrap; flex-shrink: 0;
}
.camp-league-badge.ivy { background: color-mix(in oklch, var(--color-ivy) 15%, transparent); color: var(--color-ivy); }
.camp-league-badge.nescac { background: color-mix(in oklch, var(--color-nescac) 15%, transparent); color: var(--color-nescac); }
.camp-league-badge.patriot { background: color-mix(in oklch, var(--color-patriot) 15%, transparent); color: var(--color-patriot); }
.camp-league-badge.mega { background: color-mix(in oklch, var(--color-mega) 15%, transparent); color: var(--color-mega); }
.camp-league-badge.d3 { background: color-mix(in oklch, var(--color-d3) 15%, transparent); color: var(--color-d3); }
.camp-league-badge.big10 { background: color-mix(in oklch, var(--color-big10) 15%, transparent); color: var(--color-big10); }
.camp-league-badge.big12 { background: color-mix(in oklch, var(--color-big12) 15%, transparent); color: var(--color-big12); }
.camp-league-badge.sec { background: color-mix(in oklch, var(--color-sec) 15%, transparent); color: var(--color-sec); }
.camp-league-badge.acc { background: color-mix(in oklch, var(--color-acc) 15%, transparent); color: var(--color-acc); }
.camp-league-badge.sunbelt { background: color-mix(in oklch, var(--color-sunbelt) 15%, transparent); color: var(--color-sunbelt); }
.camp-league-badge.cusa { background: color-mix(in oklch, var(--color-cusa) 15%, transparent); color: var(--color-cusa); }
.camp-league-badge.american { background: color-mix(in oklch, var(--color-american) 15%, transparent); color: var(--color-american); }
.camp-league-badge.mwc { background: color-mix(in oklch, var(--color-mwc) 15%, transparent); color: var(--color-mwc); }
.camp-league-badge.caa { background: color-mix(in oklch, var(--color-caa) 15%, transparent); color: var(--color-caa); }

.camp-name { font-size: var(--text-xs); color: var(--color-text-muted); margin-bottom: var(--space-3); line-height: 1.4; }
.camp-meta { display: flex; flex-direction: column; gap: var(--space-1); font-size: var(--text-xs); color: var(--color-text-muted); }
.camp-meta-row { display: flex; align-items: center; gap: var(--space-2); }
.camp-meta-row svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--color-text-faint); }
.camp-cost { font-weight: 700; color: var(--color-accent); }

.camp-card-actions { display: flex; gap: var(--space-2); margin-top: var(--space-3); }

.btn-register {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: var(--space-2);
  padding: var(--space-2) var(--space-3); background: var(--color-accent); color: #fff;
  border-radius: var(--radius-md); font-size: var(--text-xs); font-weight: 600;
  text-decoration: none; text-align: center;
}
.btn-register:hover { background: var(--color-accent-hover); }
.btn-register.disabled { background: var(--color-border); color: var(--color-text-faint); pointer-events: none; }
.btn-register svg { width: 14px; height: 14px; }

.no-results { text-align: center; padding: var(--space-8) var(--space-4); color: var(--color-text-muted); font-size: var(--text-sm); }

/* ===== MAP ===== */
#map { width: 100%; height: 100%; }

.custom-marker {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  font-size: 10px; font-weight: 700; color: #fff;
  transition: transform 0.2s ease; cursor: pointer;
}
.custom-marker:hover { transform: scale(1.2); }
.custom-marker.ivy { background: #2d6a4f; }
.custom-marker.nescac { background: #7b2d8e; }
.custom-marker.patriot { background: #c4421a; }
.custom-marker.mega { background: #b8860b; }
.custom-marker.d3 { background: #2563eb; }
.custom-marker.big10 { background: var(--color-big10); }
.custom-marker.big12 { background: var(--color-big12); }
.custom-marker.sec { background: var(--color-sec); }
.custom-marker.acc { background: var(--color-acc); }
.custom-marker.sunbelt { background: var(--color-sunbelt); }
.custom-marker.cusa { background: var(--color-cusa); }
.custom-marker.american { background: var(--color-american); }
.custom-marker.mwc { background: var(--color-mwc); }
.custom-marker.caa { background: var(--color-caa); }
.custom-marker.active { transform: scale(1.3); box-shadow: 0 0 0 4px rgba(14, 145, 140, 0.4), 0 2px 8px rgba(0,0,0,0.3); }

.leaflet-popup-content-wrapper { border-radius: var(--radius-lg) !important; box-shadow: var(--shadow-lg) !important; padding: 0 !important; }
.leaflet-popup-content { margin: 0 !important; min-width: 260px !important; }

/* Map Legend */
.map-legend {
  position: absolute; bottom: var(--space-4); right: var(--space-4);
  background: var(--color-surface); border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg); padding: var(--space-3) var(--space-4);
  z-index: 500; box-shadow: var(--shadow-md); display: flex; gap: var(--space-3); flex-wrap: wrap;
}
.legend-item {
  display: flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-xs); color: var(--color-text-muted); font-weight: 500;
}
.legend-dot { width: 10px; height: 10px; border-radius: 50%; }
.legend-dot.ivy { background: var(--color-ivy); }
.legend-dot.nescac { background: var(--color-nescac); }
.legend-dot.patriot { background: var(--color-patriot); }
.legend-dot.mega { background: var(--color-mega); }
.legend-dot.d3 { background: var(--color-d3); }
.legend-dot.big10 { background: var(--color-big10); }
.legend-dot.big12 { background: var(--color-big12); }
.legend-dot.sec { background: var(--color-sec); }
.legend-dot.acc { background: var(--color-acc); }
.legend-dot.sunbelt { background: var(--color-sunbelt); }
.legend-dot.cusa { background: var(--color-cusa); }
.legend-dot.american { background: var(--color-american); }
.legend-dot.mwc { background: var(--color-mwc); }
.legend-dot.caa { background: var(--color-caa); }

.camp-count {
  font-size: var(--text-xs); color: var(--color-text-faint);
  font-variant-numeric: tabular-nums; padding: 0 var(--space-4) var(--space-2) var(--space-4);
}

.mobile-toggle {
  display: none; width: 36px; height: 36px;
  align-items: center; justify-content: center;
  border-radius: var(--radius-md); color: var(--color-text-muted);
}
.mobile-toggle:hover { background: var(--color-surface-offset); color: var(--color-text); }

.sidebar-footer {
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--color-divider); text-align: center;
}
.sidebar-footer a { font-size: var(--text-xs); color: var(--color-text-faint); text-decoration: none; }
.sidebar-footer a:hover { color: var(--color-text-muted); }

/* Detail panel */
.detail-panel {
  position: absolute; top: var(--space-4); left: var(--space-4); width: 340px;
  background: var(--color-surface); border: 1px solid var(--color-divider);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
  z-index: 600; overflow: hidden; display: none;
}
.detail-panel.visible { display: block; animation: slideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1); }

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

.detail-header {
  padding: var(--space-4) var(--space-4) var(--space-3);
  display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-2);
}
.detail-close {
  width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); color: var(--color-text-muted); flex-shrink: 0;
}
.detail-close:hover { background: var(--color-surface-offset); color: var(--color-text); }

.detail-school-name { font-weight: 700; font-size: var(--text-base); color: var(--color-text); line-height: 1.3; }
.detail-body { padding: 0 var(--space-4) var(--space-4); display: flex; flex-direction: column; gap: var(--space-3); }
.detail-camp-name { font-size: var(--text-sm); color: var(--color-text-muted); font-style: italic; }
.detail-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.detail-info-item { display: flex; flex-direction: column; gap: 2px; }
.detail-label { font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-text-faint); }
.detail-value { font-size: var(--text-sm); color: var(--color-text); font-weight: 500; }
.detail-notes {
  font-size: var(--text-xs); color: var(--color-text-muted); line-height: 1.5;
  background: var(--color-bg); padding: var(--space-3); border-radius: var(--radius-md);
}

.detail-register-btn {
  display: flex; align-items: center; justify-content: center; gap: var(--space-2);
  padding: var(--space-3) var(--space-4); background: var(--color-accent); color: #fff;
  border-radius: var(--radius-md); font-size: var(--text-sm); font-weight: 600; text-decoration: none;
}
.detail-register-btn:hover { background: var(--color-accent-hover); }
.detail-register-btn svg { width: 16px; height: 16px; }

/* -- User info in header when authenticated -- */
.user-info {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.user-email { font-weight: 500; }
.btn-logout {
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  background: var(--color-surface-offset);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-weight: 500;
}
.btn-logout:hover { color: var(--color-text); background: var(--color-bg); }

/* ====================================================================
   VIEW TABS (Camps / Coaches toggle)
   ==================================================================== */

.view-tabs {
  display: flex;
  gap: 2px;
  background: var(--color-surface-offset);
  border-radius: var(--radius-md);
  padding: 2px;
}
.view-tab {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: calc(var(--radius-md) - 2px);
  color: var(--color-text-muted);
  background: transparent;
  transition: all var(--transition-interactive);
  white-space: nowrap;
}
.view-tab:hover { color: var(--color-text); }
.view-tab.active {
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
}

/* ====================================================================
   COACHES DIRECTORY VIEW
   ==================================================================== */

.coaches-view {
  grid-column: 1 / -1;
  grid-row: 2;
  overflow-y: auto;
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
}

.coaches-filters {
  padding: var(--space-4) var(--space-6);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-divider);
}

.coaches-filter-row {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  align-items: flex-end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  min-width: 140px;
}
.filter-group.filter-search {
  flex: 1;
  min-width: 180px;
}

.filter-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-faint);
}

.filter-select {
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  font-size: var(--text-sm);
  color: var(--color-text);
  font-family: var(--font-body);
}
.filter-select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--color-accent) 20%, transparent);
}

.coaches-stats {
  margin-top: var(--space-3);
  display: flex;
  gap: var(--space-4);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.coaches-stats .stat-value {
  font-weight: 700;
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
}

.coaches-table-wrap {
  flex: 1;
  overflow: auto;
  padding: 0 var(--space-6) var(--space-6);
}

.coaches-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: var(--space-4);
}

.coaches-table thead th {
  position: sticky;
  top: 0;
  background: var(--color-surface);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  text-align: left;
  border-bottom: 2px solid var(--color-divider);
  white-space: nowrap;
  z-index: 10;
}

.coaches-table thead th.sortable {
  cursor: pointer;
  user-select: none;
}
.coaches-table thead th.sortable:hover {
  color: var(--color-text);
}
.coaches-table thead th .sort-arrow {
  display: inline-block;
  margin-left: var(--space-1);
  opacity: 0.3;
  font-size: 0.75em;
}
.coaches-table thead th.sort-asc .sort-arrow::after { content: "\2191"; opacity: 1; }
.coaches-table thead th.sort-desc .sort-arrow::after { content: "\2193"; opacity: 1; }

.coaches-table tbody tr {
  transition: background var(--transition-interactive);
}
.coaches-table tbody tr:hover {
  background: var(--color-surface-offset);
}

.coaches-table tbody td {
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text);
  border-bottom: 1px solid var(--color-divider);
  vertical-align: middle;
}

.coach-name-cell {
  font-weight: 600;
  white-space: nowrap;
}
.coach-title {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 400;
}

.coach-school-cell {
  white-space: nowrap;
}
.coach-conference-badge {
  display: inline-block;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-left: var(--space-2);
  vertical-align: middle;
}
.coach-conference-badge.ivy {
  background: color-mix(in oklch, var(--color-ivy) 15%, transparent);
  color: var(--color-ivy);
}
.coach-conference-badge.patriot {
  background: color-mix(in oklch, var(--color-patriot) 15%, transparent);
  color: var(--color-patriot);
}

.coach-region-tags {
  display: flex;
  gap: var(--space-1);
  flex-wrap: wrap;
}
.region-tag {
  display: inline-block;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  font-size: 0.625rem;
  font-weight: 600;
  background: var(--color-accent-light);
  color: var(--color-accent);
}

.coach-x-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  color: var(--color-accent);
  text-decoration: none;
  font-size: var(--text-xs);
  font-weight: 500;
  white-space: nowrap;
}
.coach-x-link:hover {
  text-decoration: underline;
}
.coach-x-link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.coach-email-link {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: var(--text-xs);
  word-break: break-all;
}
.coach-email-link:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

.coaches-no-results {
  text-align: center;
  padding: var(--space-12) var(--space-4);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.coach-recruiting-area {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  max-width: 240px;
  line-height: 1.4;
}


/* ====================================================================
   RESPONSIVE
   ==================================================================== */

@media (max-width: 768px) {
  .hero h1 { font-size: clamp(1.5rem, 1.2rem + 2vw, 2.5rem); }

  .value-grid { grid-template-columns: 1fr; }

  .teaser-wrapper { margin: 0 var(--space-2) var(--space-8); height: 500px; }

  .dashboard {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }
  .sidebar {
    position: fixed; top: 0; left: 0; width: 100%; height: 100dvh;
    z-index: 1100; transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    grid-row: auto; grid-column: auto;
  }
  .sidebar.open { transform: translateX(0); }
  .map-container { grid-column: 1; }
  .mobile-toggle { display: flex; }
  .kpi-strip { display: none; }
  .detail-panel { left: var(--space-2); right: var(--space-2); width: auto; top: var(--space-2); }
  .map-legend { bottom: var(--space-2); right: var(--space-2); left: var(--space-2); justify-content: center; flex-wrap: wrap; }

  .footer-inner { flex-direction: column; gap: var(--space-2); text-align: center; }
  .landing-nav-actions .btn-text { display: none; }

  /* Coaches view mobile */
  .coaches-filters { padding: var(--space-3); }
  .coaches-filter-row { flex-direction: column; gap: var(--space-2); }
  .filter-group { min-width: 100%; }
  .coaches-table-wrap { padding: 0 var(--space-3) var(--space-3); }
  .coaches-table thead th,
  .coaches-table tbody td { padding: var(--space-2) var(--space-3); font-size: var(--text-xs); }
  .coaches-table thead th:nth-child(4),
  .coaches-table tbody td:nth-child(4) { display: none; }
}


/* ===== OFFER TRACKER VIEW ===== */
.offers-view {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: var(--space-6) var(--space-8);
  gap: var(--space-6);
  background: var(--color-bg);
  scrollbar-width: thin;
  scrollbar-color: var(--color-divider) transparent;
}

.offers-header {
  margin-bottom: var(--space-2);
}

.offers-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.offers-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-text);
  margin: 0 0 var(--space-1) 0;
  line-height: 1.2;
}

.offers-subtitle {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 0;
}

.offers-disclaimer {
  font-size: 11px;
  color: var(--color-text-faint, #999);
  margin: 6px 0 0 0;
  font-style: italic;
  line-height: 1.4;
  max-width: 520px;
}

/* KPI strip */
.offers-kpis {
  display: flex;
  gap: var(--space-3);
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.offer-kpi {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-3) var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  min-width: 90px;
}

.offer-kpi-value {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1.2;
}

.offer-kpi-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

/* Sections */
.offers-section {
  margin-bottom: var(--space-6);
}

.offers-section-title {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 var(--space-4) 0;
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--color-accent);
  display: inline-block;
}

/* ===== HEATMAP ===== */
.heatmap-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}

.heatmap-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  min-width: 600px;
}

.heatmap-table th,
.heatmap-table td {
  padding: var(--space-2) var(--space-3);
  text-align: center;
  border: 1px solid var(--color-divider);
}

.heatmap-corner {
  background: var(--color-surface-2);
  width: 100px;
}

.heatmap-pos-header {
  background: var(--color-surface-2);
  font-weight: 600;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-muted);
}

.heatmap-total-header {
  background: var(--color-surface-2);
  font-weight: 700;
  font-size: var(--text-xs);
  text-transform: uppercase;
  color: var(--color-text);
}

.heatmap-school {
  font-weight: 600;
  font-size: var(--text-sm);
  text-align: left;
  padding-left: var(--space-4);
  white-space: nowrap;
  border-radius: 0;
}

.heatmap-cell {
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  transition: background var(--transition-interactive);
  cursor: default;
}

.heatmap-cell:hover {
  outline: 2px solid var(--color-accent);
  outline-offset: -2px;
  z-index: 1;
  position: relative;
}

.heatmap-total {
  font-weight: 700;
  color: var(--color-text);
  background: var(--color-surface-2);
}

.heatmap-footer td {
  border-top: 2px solid var(--color-accent);
}

.heatmap-footer-label {
  font-weight: 700;
  text-align: left;
  padding-left: var(--space-4);
  background: var(--color-surface-2);
  color: var(--color-text);
}

.heatmap-grand-total {
  font-weight: 800;
  color: var(--color-accent);
  font-size: var(--text-base);
}

/* ===== OVERLAP / MULTI-OFFER CARDS ===== */
.overlap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-4);
}

.overlap-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  transition: box-shadow var(--transition-interactive), border-color var(--transition-interactive);
}

.overlap-card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.overlap-card-top {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  margin-bottom: var(--space-3);
}

.overlap-count {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: var(--radius-md);
  background: var(--color-accent);
  color: #fff;
  font-weight: 800;
  font-size: var(--text-lg);
  font-family: var(--font-display);
}

.overlap-info {
  flex: 1;
  min-width: 0;
}

.overlap-name {
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.overlap-meta {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: 2px;
}

.overlap-x-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-decoration: none;
  margin-top: 4px;
  transition: color var(--transition-interactive);
}

.overlap-x-link:hover {
  color: var(--color-accent);
}

.overlap-schools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.overlap-school-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  line-height: 1.3;
}

.committed-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: #22c55e;
  color: #fff;
  text-transform: uppercase;
}

.offered-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3px;
  background: var(--color-surface-2);
  color: var(--color-text-muted);
  text-transform: uppercase;
}

/* ===== OFFERS TABLE ===== */
.offers-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.offers-stats {
  display: flex;
  gap: var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  padding: var(--space-2) 0;
}

.offers-stats .stat-value {
  font-weight: 700;
  color: var(--color-accent);
  margin-right: 4px;
}

.offers-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}

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

.offers-table thead th {
  background: var(--color-surface-2);
  padding: var(--space-3) var(--space-3);
  text-align: left;
  font-weight: 600;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-muted);
  border-bottom: 2px solid var(--color-divider);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}

.offers-table thead th:hover {
  color: var(--color-text);
}

.offers-table tbody tr {
  border-bottom: 1px solid var(--color-divider);
  transition: background var(--transition-interactive);
}

.offers-table tbody tr:hover {
  background: var(--color-surface-2);
}

.offers-table tbody td {
  padding: var(--space-2) var(--space-3);
  vertical-align: middle;
  color: var(--color-text);
}

.offer-player-cell strong {
  font-weight: 600;
}

.offer-school-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.offer-pos-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  background: var(--color-surface-offset);
  color: var(--color-text);
}

.offer-x-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-decoration: none;
}

.offer-x-link svg {
  width: 14px;
  height: 14px;
}

.offer-x-link:hover {
  color: var(--color-accent);
}

.offers-no-results {
  text-align: center;
  padding: var(--space-8);
  color: var(--color-text-muted);
  font-style: italic;
}

/* ===== SCHOOL DEEP-DIVE CARDS ===== */
.school-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-4);
}

.school-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  background: var(--color-surface);
  transition: box-shadow var(--transition-interactive);
}

.school-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.school-card-header {
  padding: var(--space-4);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.school-card-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
}

.school-card-count {
  font-size: var(--text-sm);
  font-weight: 600;
  opacity: 0.9;
}

.school-card-body {
  padding: var(--space-4);
}

.school-card-section {
  margin-bottom: var(--space-3);
}

.school-card-section:last-child {
  margin-bottom: 0;
}

.school-card-section-title {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.school-card-pos-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.school-card-pos {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: var(--color-surface-offset);
  font-size: 11px;
}

.school-card-pos-label {
  font-weight: 600;
  color: var(--color-text-muted);
}

.school-card-pos-count {
  font-weight: 700;
  color: var(--color-accent);
}

.school-card-states {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.school-card-state {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 11px;
  background: var(--color-surface-offset);
  color: var(--color-text-muted);
}

.school-card-committed {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-divider);
}

.school-card-committed-title {
  font-size: var(--text-xs);
  font-weight: 700;
  color: #22c55e;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-2);
}

.school-card-commit {
  font-size: var(--text-sm);
  color: var(--color-text);
  padding: 2px 0;
}

.school-card-commit-pos {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 500;
}

/* Footer */
.offers-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4) 0;
  border-top: 1px solid var(--color-divider);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.offers-footer a {
  color: var(--color-text-faint);
  text-decoration: none;
}

.offers-footer a:hover {
  color: var(--color-accent);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .offers-view {
    padding: var(--space-4);
  }

  .offers-title-row {
    flex-direction: column;
  }

  .offers-kpis {
    width: 100%;
  }

  .offer-kpi {
    flex: 1;
    min-width: 70px;
    padding: var(--space-2) var(--space-3);
  }

  .overlap-grid {
    grid-template-columns: 1fr;
  }

  .school-cards-grid {
    grid-template-columns: 1fr;
  }

  .offers-filters {
    flex-direction: column;
  }

  .offers-filters .filter-group {
    width: 100%;
  }
}
