/* ==========================================================================
   Nergal Sports Group — design preview styles
   Palette and component language deliberately echo the client's reference
   (warm cream background, deep green primary, pill navigation/badges) while
   using original colors, icon, copy and page structure throughout.
   ========================================================================== */

:root {
  --green-900: #0f2e22;
  --green-800: #163c2c;
  --green-700: #1d5a40;
  --green-600: #237a52;
  --green-100: #e3f2e9;
  --green-50: #f3faf6;
  --green-950: #0a1f17;   /* dark button hover */
  --brand-rgb: 15, 46, 34; /* shadows */

  /* Coverage map shades (fewer -> more coaches) */
  --map-0: #eceee8;
  --map-1: #cfe8d9;
  --map-2: #9fd3b6;
  --map-3: #57a97d;
  --map-4: var(--green-700);

  --blue-600: #2f6fed;
  --teal-500: #0ea5a0;
  --amber-500: #e8960f;
  --slate-500: #6b7680;

  --bg: #f7f7f3;
  --surface: #ffffff;
  --border: #e6e8e1;
  --text: #182019;
  --text-muted: #5c695f;
  --text-soft: #8d9890;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(var(--brand-rgb), 0.06), 0 1px 1px rgba(var(--brand-rgb), 0.04);
  --shadow-md: 0 10px 28px rgba(var(--brand-rgb), 0.1);
  --font-head: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .5em; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green-700); color: #fff; }
.btn-primary:hover { background: var(--green-800); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-outline:hover { border-color: #fff; }
.btn-dark { background: var(--green-900); color: #fff; }
.btn-dark:hover { background: var(--green-950); }
.btn-ghost { background: var(--surface); color: var(--green-900); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--green-600); }
.btn-sm { padding: 8px 14px; font-size: 0.85rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .55; cursor: not-allowed; }

/* ---------- Header / nav (light, pill tabs) ---------- */
.site-header {
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--green-700);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-main { display: flex; align-items: center; gap: 24px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 999px;
  transition: color .12s ease, background .12s ease;
}
.nav-links a:hover { color: var(--text); background: var(--bg); }
.nav-links a.is-active { color: var(--green-800); background: var(--green-100); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.avatar-chip {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-800);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.78rem;
  font-family: var(--font-head);
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  color: var(--text);
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--green-900);
  color: #fff;
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px; top: -120px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.06), transparent 70%);
}
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  color: rgba(255,255,255,.85);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero h1 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-bottom: 18px; }
.hero p.lead { font-size: 1.05rem; color: rgba(255,255,255,.72); max-width: 480px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-chips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; max-width: 420px; }
.hero-chip {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}
.hero-chip .num { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; color: #fff; }
.hero-chip .lbl { font-size: 0.78rem; color: rgba(255,255,255,.6); margin-top: 2px; }

/* Hero preview card (product mockup instead of a functional login form) */
.hero-preview {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
  color: var(--text);
}
.hero-preview .hp-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.hero-preview .hp-head span { font-size: 0.78rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }

/* ---------- Generic sections ---------- */
.section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.section-head h2 { font-size: 1.7rem; margin-bottom: 8px; }
.section-head p { color: var(--text-muted); margin: 0; max-width: 520px; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--green-600);
  margin-bottom: 10px;
  display: block;
}
.bg-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; }
.step-num {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--green-700); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-family: var(--font-head);
  margin-bottom: 16px;
}
.step-card h3 { font-size: 1.02rem; margin-bottom: 8px; }
.step-card p { color: var(--text-muted); font-size: 0.92rem; margin: 0; }

/* ---------- Coach cards ---------- */
.coach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.coach-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow .15s ease, transform .15s ease;
}
.coach-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.coach-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.coach-id { display: flex; gap: 12px; align-items: center; }
.avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--green-100); color: var(--green-800);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-family: var(--font-head); font-size: 0.92rem;
  flex-shrink: 0;
}
.coach-name { font-weight: 700; font-size: 1rem; }
.coach-title { color: var(--text-muted); font-size: 0.84rem; }
.badge {
  display: inline-flex; align-items: center;
  font-size: 0.7rem; font-weight: 700;
  padding: 4px 10px; border-radius: 999px;
  color: #fff; white-space: nowrap; letter-spacing: .02em;
}
.badge-D1 { background: var(--green-700); }
.badge-D2 { background: var(--blue-600); }
.badge-D3 { background: var(--teal-500); }
.badge-NAIA { background: var(--amber-500); }
.badge-JUCO { background: var(--slate-500); }
/* Canada: U SPORTS (universities), CCAA (colleges) */
.badge-SPORTS { background: var(--green-700); }
.badge-CCAA { background: var(--blue-600); }
.coach-school { font-weight: 600; font-size: 0.94rem; }
.coach-meta { color: var(--text-soft); font-size: 0.83rem; }
.coach-program {
  align-self: flex-start;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.74rem; font-weight: 600;
  padding: 4px 10px; border-radius: 999px;
}
.coach-actions { display: flex; gap: 10px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--border); }
.coach-actions .btn { flex: 1; }

/* ---------- Directory header block ---------- */
.directory-head { margin-bottom: 20px; }
.directory-head h1 { font-size: 1.9rem; margin-bottom: 6px; }
.directory-head .sub { color: var(--text-muted); font-size: 0.95rem; }
.directory-head .sub strong { color: var(--text); }
.map-link { color: var(--green-700); font-weight: 600; font-size: 0.88rem; display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; }
.map-link:hover { color: var(--green-900); }
.quick-pills { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 0; }
.pill {
  background: var(--green-100);
  color: var(--green-800);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
}
.pill:hover { border-color: var(--green-600); }
.pill.is-active { background: var(--green-700); color: #fff; }

/* ---------- Filter bar ---------- */
.filter-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 24px 0 18px;
  box-shadow: var(--shadow-sm);
}
.filter-trigger {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text);
}
.filter-trigger .count {
  background: var(--green-700);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 5px;
}
.filter-bar input[type="search"],
.filter-bar select {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  background: var(--bg);
  color: var(--text);
}
.filter-bar input[type="search"] { flex: 1 1 200px; min-width: 180px; }
.filter-bar select { flex: 0 1 160px; }
.filter-count { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 18px; }

/* ---------- Page header (inner pages) ---------- */
.page-header { background: var(--surface); border-bottom: 1px solid var(--border); padding: 40px 0 8px; }
.page-header .eyebrow { color: var(--green-600); }
.breadcrumb { color: var(--text-soft); font-size: 0.84rem; margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--text); }

/* ---------- State map (tile grid) ---------- */
.map-layout { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: start; }
.map-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm); }
.map-panel h2 { font-size: 1.15rem; margin-bottom: 4px; }
.map-panel .hint { color: var(--text-muted); font-size: 0.86rem; margin-bottom: 22px; }
#region-map { position: relative; width: 100%; }
#region-map svg { width: 100%; height: auto; display: block; }
.state-path { stroke: #fff; stroke-width: 0.75; transition: opacity .12s ease; }
.state-path.level-0 { fill: var(--map-0); }
.state-path.level-1 { fill: var(--map-1); }
.state-path.level-2 { fill: var(--map-2); }
.state-path.level-3 { fill: var(--map-3); }
.state-path.level-4 { fill: var(--map-4); }
.state-path:hover { opacity: .82; }
.state-borders { fill: none; stroke: #fff; stroke-width: 1; pointer-events: none; }
.map-tooltip {
  position: absolute;
  pointer-events: none;
  background: var(--green-900);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 6px;
  opacity: 0;
  transition: opacity .1s ease;
  z-index: 5;
  white-space: nowrap;
}
.map-legend { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 0.78rem; color: var(--text-muted); }
.map-legend .swatch { width: 16px; height: 16px; border-radius: 4px; }
.top-states-list { display: flex; flex-direction: column; }
.top-state-row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 8px;
  margin: 0 -8px;
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  transition: background-color .12s ease;
}
.top-state-row:last-child { border-bottom: none; }
.top-state-row:hover { background: var(--bg); }
.top-state-row .rank {
  flex: 0 0 26px; height: 26px; display: grid; place-items: center;
  border-radius: 50%;
  background: var(--green-100); color: var(--green-800);
  font-size: 0.76rem; font-weight: 700; font-variant-numeric: tabular-nums;
}
.top-state-row .info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.top-state-row .name { font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.top-state-row .meta { color: var(--text-muted); font-size: 0.76rem; line-height: 1.3; }
.top-state-row .count { flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.top-state-row .count strong { font-size: 1rem; line-height: 1.2; font-variant-numeric: tabular-nums; }

/* ---------- Coach profile ---------- */
.profile-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm); margin-bottom: 18px; }
.profile-head { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.profile-head .avatar { width: 60px; height: 60px; font-size: 1.2rem; }
.profile-head h1 { font-size: 1.4rem; margin-bottom: 4px; }
.profile-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.detail-row { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.detail-row:last-child { border-bottom: none; }
.detail-row .label { color: var(--text-muted); }
.detail-row .value { font-weight: 600; }
.panel h3 { font-size: 0.98rem; margin-bottom: 14px; }
.staff-list { display: flex; flex-direction: column; gap: 8px; }
.staff-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 0.87rem; }
.staff-item .name { font-weight: 600; }
.staff-item .role { color: var(--text-muted); font-size: 0.78rem; }
.sidebar-note { font-size: 0.82rem; color: var(--text-muted); background: var(--bg); border: 1px dashed var(--border); border-radius: var(--radius-sm); padding: 12px 14px; }
.notice-strip { background: var(--green-50); color: var(--green-800); border: 1px solid var(--green-100); border-radius: var(--radius-sm); padding: 10px 14px; font-size: 0.82rem; font-weight: 600; margin-bottom: 18px; }
.contact-window {
  background: var(--green-50);
  border: 1px solid var(--green-100);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}
.contact-window .tag { font-size: 0.72rem; font-weight: 700; color: var(--green-700); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 6px; }
.contact-window .headline { font-weight: 700; font-size: 1rem; margin-bottom: 2px; }
.contact-window .when { color: var(--text-muted); font-size: 0.85rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--green-900);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 { margin-bottom: 6px; font-size: 1.5rem; }
.cta-band p { color: rgba(255,255,255,.7); margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-900); color: rgba(255,255,255,.6); padding: 52px 0 26px; margin-top: 36px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-grid .brand { margin-bottom: 14px; }
.footer-grid p { font-size: 0.87rem; max-width: 280px; }
.footer-col h4 { color: #fff; font-size: 0.86rem; margin-bottom: 14px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { font-size: 0.85rem; color: rgba(255,255,255,.6); }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; display: flex; justify-content: space-between; font-size: 0.78rem; flex-wrap: wrap; gap: 10px; }

/* ---------- Auth (split-screen login) ---------- */
.auth-screen { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side {
  background: var(--green-900);
  color: #fff;
  padding: 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.auth-side::after {
  content: "";
  position: absolute;
  left: -80px; bottom: -120px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.07), transparent 70%);
}
.auth-side .brand { color: #fff; margin-bottom: 40px; position: relative; z-index: 1; }
.auth-side h1 { font-size: 1.9rem; max-width: 380px; margin-bottom: 14px; position: relative; z-index: 1; }
.auth-side p { color: rgba(255,255,255,.65); max-width: 380px; margin-bottom: 30px; position: relative; z-index: 1; }
.auth-feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 380px; position: relative; z-index: 1; }
.auth-feature {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
}
.auth-feature .t { font-weight: 700; font-size: 0.9rem; }
.auth-feature .s { font-size: 0.76rem; color: rgba(255,255,255,.55); margin-top: 2px; }
.auth-form-side { display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: var(--bg); }
.auth-links { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.78rem; }
.auth-links a { color: rgba(255,255,255,.55); }
.auth-links a:hover { color: #fff; }
.auth-links-desktop { position: absolute; left: 56px; right: 56px; bottom: 28px; z-index: 1; }
.auth-links-mobile { display: none; }
.auth-card { background: var(--surface); border-radius: var(--radius-lg); width: 100%; max-width: 380px; padding: 36px 32px; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.auth-card h1 { font-size: 1.3rem; margin-bottom: 6px; }
.auth-card .lead { color: var(--text-muted); font-size: 0.87rem; margin-bottom: 24px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.83rem; font-weight: 600; margin-bottom: 6px; }
.form-group input { width: 100%; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 11px 13px; font-size: 0.92rem; font-family: var(--font-body); background: var(--bg); }
.form-group input:focus { outline: 2px solid var(--green-600); outline-offset: 1px; }
.auth-foot { margin-top: 18px; text-align: center; font-size: 0.82rem; color: var(--text-muted); }
.auth-foot a { color: var(--green-700); font-weight: 600; }
.demo-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  color: var(--amber-500);
  background: #fdf3e2;
  border: 1px solid #f6ddad;
  border-radius: 999px;
  padding: 5px 11px;
  margin-bottom: 16px;
}

/* ---------- Admin layout (light, matches public nav) ---------- */
.admin-shell { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); }
.admin-topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 64px;
}
.admin-topbar .nav-links a { font-size: 0.86rem; }
.admin-main { flex: 1; padding: 30px 24px; max-width: 1160px; margin: 0 auto; width: 100%; }
.admin-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.admin-head h1 { font-size: 1.4rem; margin: 0; }
.admin-tabs { display: flex; gap: 6px; margin-bottom: 22px; }
.admin-tabs a { padding: 9px 16px; border-radius: 999px; font-size: 0.85rem; font-weight: 600; color: var(--text-muted); background: var(--surface); border: 1px solid var(--border); }
.admin-tabs a.is-active { background: var(--green-100); color: var(--green-800); border-color: transparent; }
.admin-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; align-items: start; }
.admin-form-actions { grid-column: 1 / -1; display: flex; gap: 10px; flex-wrap: wrap; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.87rem; }
.data-table th { text-align: left; color: var(--text-muted); font-weight: 600; font-size: 0.76rem; text-transform: uppercase; letter-spacing: .03em; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.data-table td { padding: 12px; border-bottom: 1px solid var(--border); }
.data-table tr:last-child td { border-bottom: none; }
.upload-box { border: 2px dashed var(--border); border-radius: var(--radius-md); padding: 34px 20px; text-align: center; color: var(--text-muted); background: var(--bg); }
.upload-box svg { margin-bottom: 10px; }
.upload-box strong { display: block; color: var(--text); margin-bottom: 4px; }
.stat-mini { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.86rem; }
.stat-mini:last-child { border-bottom: none; }

/* ---------- 404 ---------- */
.error-screen { text-align: center; padding: 110px 24px; }
.error-screen .code { font-family: var(--font-head); font-size: 4.6rem; font-weight: 700; color: var(--green-800); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-preview { max-width: 460px; }
  .profile-grid { grid-template-columns: 1fr; }
  .admin-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .map-layout { grid-template-columns: 1fr; }
  .auth-screen { grid-template-columns: 1fr; }
  .auth-side { padding: 40px 28px 20px; }
  .auth-links-desktop { display: none; }
  .auth-links-mobile {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px 16px;
    padding: 22px 24px 28px;
    background: var(--bg);
    color: var(--text-muted);
  }
  .auth-links-mobile a { color: var(--text-muted); }
  .auth-links-mobile a:hover { color: var(--text); }
  .auth-links-copy { width: 100%; text-align: center; font-size: 0.74rem; margin-top: 4px; color: var(--text-muted); }
}
@media (max-width: 760px) {
  .nav-links, .nav-actions .btn-outline { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .hero-chips { grid-template-columns: 1fr 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; text-align: left; }
  .footer-grid { grid-template-columns: 1fr; }
  body.nav-open .nav-links {
    display: flex; flex-direction: column;
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--surface);
    padding: 10px 20px 20px;
    gap: 2px;
    border-bottom: 1px solid var(--border);
  }
}

/* ==========================================================================
   Functional app additions (forms, alerts, menus, admin tools)
   ========================================================================== */

a.link, .link { color: var(--green-700); font-weight: 600; }
a.link:hover { color: var(--green-900); text-decoration: underline; }
.coach-name a:hover, .coach-school a:hover { color: var(--green-700); }
.flash-wrap { padding-top: 18px; }

/* Alerts */
.alert { border-radius: var(--radius-sm); padding: 12px 14px; font-size: 0.88rem; font-weight: 500; margin-bottom: 16px; border: 1px solid; }
.alert-success { background: var(--green-50); color: var(--green-800); border-color: var(--green-100); }
.alert-error { background: #fdf0ef; color: #9b2c22; border-color: #f4cfcb; }
.alert-info { background: #eef4fe; color: #1f4fae; border-color: #d3e1fb; }

/* Forms */
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  font-size: 0.92rem;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
}
.form-group textarea { resize: vertical; min-height: 90px; }
.form-group select:focus, .form-group textarea:focus { outline: 2px solid var(--green-600); outline-offset: 1px; }
.form-group .is-invalid { border-color: #d0574a; background: #fff8f7; }
.field-error { color: #b23a2e; font-size: 0.8rem; margin-top: 5px; font-weight: 500; }
.hint-text { color: var(--text-soft); font-size: 0.78rem; margin: 6px 0 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row-3 { grid-template-columns: repeat(3, 1fr); }
.check { display: flex; gap: 9px; align-items: flex-start; font-size: 0.88rem; cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--green-700); }
.check-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 14px; padding: 12px 14px; border: 1px solid var(--border, #e3e6e4); border-radius: 10px; }
.form-group .check-grid .check { display: flex; margin: 0; font-weight: 400; font-size: 0.85rem; }
.seo-optional { font-weight: 400; font-size: 0.75rem; color: var(--text-soft); margin-left: 4px; }
.seo-image-current { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.seo-thumb { width: 120px; height: 63px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); }
.form-group .seo-image-current .check { display: flex; margin: 0; font-weight: 400; }
.input-with-btn { display: flex; gap: 8px; }
.input-with-btn input { flex: 1; min-width: 0; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
[hidden] { display: none !important; }

.btn-danger { background: #b23a2e; color: #fff; }
.btn-danger:hover { background: #8f2c22; }
.filter-bar .btn { flex: 0 0 auto; }
a.pill { display: inline-flex; }

/* Empty state */
.empty-state { text-align: center; background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius-lg); padding: 48px 20px; }
.empty-state p { color: var(--text-muted); }

/* Pagination */
.pagination { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.pagination a, .pagination .gap { min-width: 38px; height: 38px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); font-size: 0.86rem; font-weight: 600; }
.pagination a { background: var(--surface); border: 1px solid var(--border); color: var(--text-muted); }
.pagination a:hover { border-color: var(--green-600); color: var(--text); }
.pagination a.is-active { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.pagination .gap { color: var(--text-soft); }

/* User menu (header, right side) */
.user-menu { position: relative; }
.user-menu summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 3px 8px 3px 3px; border-radius: 999px; border: 1px solid var(--border); color: var(--text-muted); }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu summary:hover, .user-menu[open] summary { border-color: var(--green-600); color: var(--text); }
.user-menu-name { font-size: 0.86rem; font-weight: 600; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu-panel { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-md); padding: 6px; z-index: 60; }
.user-menu-head { padding: 10px 12px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.user-menu-head strong { display: block; font-size: 0.9rem; }
.user-menu-head span { font-size: 0.78rem; color: var(--text-soft); word-break: break-all; }
.user-menu-panel a, .user-menu-panel button { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: var(--radius-sm); font-size: 0.88rem; font-weight: 500; background: none; border: 0; cursor: pointer; font-family: var(--font-body); color: var(--text); }
.user-menu-panel a:hover, .user-menu-panel button:hover { background: var(--bg); }
.user-menu-panel form { margin: 0; }
.nav-mobile-only { display: none; }

/* Slim footer inside the member area */
.site-footer-slim { padding: 22px 0; margin-top: 48px; }
.site-footer-slim .footer-bottom { border-top: 0; padding-top: 0; }
.site-footer-slim a { color: rgba(255,255,255,.7); }
.site-footer-slim a:hover { color: #fff; }

/* Universities */
.avatar-square { border-radius: 10px; font-size: 0.8rem; }
.uni-programs { display: flex; gap: 6px; flex-wrap: wrap; }
a.step-card { display: block; transition: border-color .12s ease, box-shadow .12s ease; }
a.step-card:hover { border-color: var(--green-600); box-shadow: var(--shadow-md); }

/* Prose blocks */
.prose p { color: var(--text-muted); }
.prose h3 { margin-top: 8px; }
.bullets { list-style: disc; padding-left: 20px; margin-bottom: 1.2em; color: var(--text-muted); }
.bullets li { margin-bottom: 8px; }
.bullets strong { color: var(--text); }
.prose li { color: var(--text-muted); margin-bottom: 8px; }
.prose li strong { color: var(--text); }
.prose ul:not(.bullets) { list-style: disc; padding-left: 20px; margin-bottom: 1.2em; }
.prose ol { list-style: decimal; padding-left: 22px; margin-bottom: 1.2em; }
.prose h2 { margin: 18px 0 8px; font-size: 1.3rem; }
.prose h3 { margin-bottom: 8px; }
.prose h4 { margin: 14px 0 6px; font-size: 1rem; }
.prose a { color: var(--green-700); text-decoration: underline; overflow-wrap: anywhere; }
.prose blockquote { margin: 0 0 1.2em; padding: 4px 0 4px 14px; border-left: 3px solid var(--green-600); }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 1.2em; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 8px 10px; border: 1px solid var(--border); font-size: 0.9rem; color: var(--text-muted); text-align: left; }
.important-notice { border-left: 3px solid var(--green-600); }
.side-actions { display: grid; gap: 10px; }
.side-actions .hint-text { margin: 0; }

/* Settings: on PC the save button stays beside the long form; on phones it ends the form. */
.settings-save-bottom { display: none; }
@media (min-width: 981px) and (min-height: 720px) {
  .settings-main { position: sticky; top: 84px; }
  .side-actions { position: sticky; top: 84px; }
}
@media (max-width: 980px) {
  .settings-save-top { display: none; }
  .settings-save-bottom { display: flex; }
}

/* State data (member map + admin) */
.map-side { display: grid; gap: 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.state-insight-select, .state-data-table input { width: 100%; padding: 10px 12px; font: inherit; font-size: 0.92rem; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.state-insight-select { margin-bottom: 8px; }
.state-data-table input { min-width: 130px; }
.state-insight-select:focus, .state-data-table input:focus { outline: none; border-color: var(--green-600); background: var(--surface); }
#state-insights .detail-row { gap: 12px; }
#state-insights .detail-row .label { flex-shrink: 1; }
#state-insights .detail-row .value { flex-shrink: 0; }

/* Admin */
.admin-topbar { gap: 16px; position: sticky; top: 0; z-index: 50; }
.admin-nav { flex-wrap: wrap; }
.nav-count { display: inline-flex; min-width: 18px; height: 18px; padding: 0 5px; align-items: center; justify-content: center; border-radius: 999px; background: #b23a2e; color: #fff; font-size: 0.7rem; margin-left: 4px; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.admin-head .breadcrumb { margin-bottom: 6px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.panel-head h3 { margin: 0; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px 20px; display: flex; flex-direction: column; gap: 2px; box-shadow: var(--shadow-sm); transition: border-color .12s ease; }
.stat-card:hover { border-color: var(--green-600); }
.stat-card .lbl { font-size: 0.76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); }
.stat-card .num { font-family: var(--font-head); font-size: 1.8rem; font-weight: 700; color: var(--green-800); }
.stat-card .sub { font-size: 0.8rem; color: var(--text-soft); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table td.actions { text-align: right; white-space: nowrap; }
.data-table tr.row-link { cursor: pointer; }
.data-table tr.row-link:hover td { background: var(--bg); }
.data-table tr.is-unread td { font-weight: 600; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green-600); }
.status { display: inline-flex; font-size: 0.72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.status-on { background: var(--green-100); color: var(--green-800); }
.status-off { background: #f1f1ee; color: var(--text-soft); }
.status-amber { background: #fdf3e2; color: #a86a05; }
.danger-zone { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border: 1px solid #f4cfcb; background: #fffafa; border-radius: var(--radius-lg); padding: 16px 20px; margin-top: 4px; font-size: 0.86rem; color: var(--text-muted); }
.upload-box { display: block; cursor: pointer; }
.upload-box:hover { border-color: var(--green-600); }
.error-list { list-style: disc; padding-left: 20px; font-size: 0.84rem; color: #9b2c22; }
.message-body { font-size: 0.95rem; line-height: 1.7; word-wrap: break-word; }

@media (max-width: 980px) {
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .admin-topbar { height: auto; padding: 12px 16px; flex-wrap: wrap; }
}
@media (max-width: 760px) {
  .container { padding: 0 16px; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; gap: 0; }
  .check-grid { grid-template-columns: 1fr 1fr; }
  .nav-contact { display: none; }
  .nav-mobile-only { display: block; }
  .user-menu-name { display: none; }
  .site-header .container { position: relative; }
  .admin-nav { display: none; }
  body.nav-open .admin-nav { display: flex; flex-direction: column; align-items: stretch; width: 100%; order: 3; position: static; padding: 6px 0 0; border: 0; }
  .admin-main { padding: 22px 16px; }
  .auth-side { padding: 32px 20px; }
  .auth-side h1 { font-size: 1.5rem; }
  .filter-bar select { flex: 1 1 140px; }
  .detail-row { gap: 12px; }
  .detail-row .value { text-align: right; word-break: break-word; }
  .map-panel, .panel { padding: 18px; }
}
@media (max-width: 480px) {
  .stat-grid { grid-template-columns: 1fr; }
}

/* ---------- Member area: same shell as the admin panel ---------- */
.head-meta { color: var(--text-muted); font-size: 0.88rem; }
.head-meta strong { color: var(--text); }
.head-meta .badge { display: inline-flex; vertical-align: middle; margin-right: 6px; }
.admin-head > div > .head-meta { margin-top: 6px; }
.admin-main .error-screen { padding: 70px 0; }
@media (min-width: 981px) {
  .member-topbar { display: grid; grid-template-columns: 1fr auto 1fr; }
  .member-topbar .nav-actions { justify-self: end; }
}

/* Contact details: company info + social links */
.detail-row .value { text-align: right; }
.detail-row .label { flex-shrink: 0; }
.social-links { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 14px; border-top: 1px solid var(--border); margin-top: 2px; }
.social-link { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center; color: var(--text-muted); transition: color .12s ease, border-color .12s ease, background .12s ease; }
.social-link:hover { color: var(--green-800); border-color: var(--green-600); background: var(--green-100); }

/* ---------- 2026-11-08: billing, multi-select, branding, countries, mobile ---------- */
.form-group input[type="radio"], .form-group input[type="checkbox"] { width: auto; padding: 0; }

/* Segmented control (Individual / Business) */
.segmented { display: inline-flex; padding: 3px; background: var(--bg); border: 1px solid var(--border); border-radius: 999px; gap: 2px; flex-wrap: wrap; }
.form-group .segmented-option { display: inline-flex; margin: 0; cursor: pointer; font-weight: 600; }
.segmented-option input { position: absolute; opacity: 0; pointer-events: none; }
.segmented-option span { padding: 7px 18px; border-radius: 999px; font-size: 0.85rem; color: var(--text-muted); transition: background .12s ease, color .12s ease; }
.segmented-option input:checked + span { background: var(--surface); color: var(--green-800); box-shadow: var(--shadow-sm); }
.segmented-option input:focus-visible + span { outline: 2px solid var(--green-600); }

/* Searchable multi-select (chips) */
.ms { position: relative; }
.ms-box { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 46px; padding: 6px 8px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg); cursor: text; }
.ms.is-open .ms-box, .ms-box:focus-within { outline: 2px solid var(--green-600); outline-offset: 1px; }
.ms-chips { display: contents; }
.ms-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 4px 4px 10px; border-radius: 999px; background: var(--green-100); color: var(--green-800); font-size: 0.8rem; font-weight: 600; max-width: 100%; }
.ms-chip button { width: 20px; height: 20px; border: 0; border-radius: 50%; background: transparent; color: inherit; font-size: 1rem; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.ms-chip button:hover { background: rgba(var(--brand-rgb), .12); }
.form-group .ms-search { flex: 1 1 140px; min-width: 120px; border: 0; background: transparent; padding: 6px 4px; outline: none; font-size: 0.9rem; }
.form-group .ms-search:focus { outline: none; }
.ms-list { position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 4px); max-height: 260px; overflow-y: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-md); padding: 4px; }
.ms-list li { padding: 9px 12px; border-radius: var(--radius-sm); font-size: 0.88rem; cursor: pointer; }
.ms-list li:hover, .ms-list li.is-active { background: var(--green-50); color: var(--green-800); }
.ms-list li.ms-empty { color: var(--text-soft); cursor: default; background: none; }

/* Brand: text logo can shrink; image logo */
.brand { min-width: 0; }
.brand-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-logo { height: 34px; width: auto; max-width: 220px; object-fit: contain; }
.logo-choice { display: grid; gap: 8px; }
.form-group .logo-option { display: flex; gap: 10px; align-items: center; margin: 0; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-md); cursor: pointer; font-weight: 400; }
.logo-option:has(input:checked) { border-color: var(--green-600); background: var(--green-50); }
.logo-option input { accent-color: var(--green-700); }
.logo-option-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.logo-preview { display: flex; align-items: center; min-height: 34px; }
.logo-preview .brand { font-size: 0.95rem; }
.logo-option-label { font-size: 0.78rem; color: var(--text-muted); font-weight: 600; }
.favicon-thumb { width: 40px; height: 40px; object-fit: contain; border-radius: 8px; border: 1px solid var(--border); background: #fff; padding: 4px; }

/* Flags + country switcher */
.flag { width: 20px; height: 14px; border-radius: 2px; flex-shrink: 0; display: inline-block; vertical-align: middle; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.flag-code { font-size: 0.6rem; font-weight: 700; text-align: center; line-height: 14px; background: var(--bg); }
.country-menu { position: relative; }
.country-menu summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: 0.84rem; font-weight: 600; color: var(--text); }
.country-menu summary::-webkit-details-marker { display: none; }
.country-menu summary:hover, .country-menu[open] summary { border-color: var(--green-600); }
.country-menu-panel { position: absolute; right: 0; bottom: calc(100% + 8px); min-width: 220px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-md); padding: 6px; z-index: 70; }
.country-menu-inline .country-menu-panel { right: auto; left: 0; bottom: auto; top: calc(100% + 8px); }
.country-menu-inline summary svg:last-child { transform: rotate(180deg); }
.country-menu-title { display: block; padding: 8px 10px 6px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-soft); }
.country-menu-panel a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--radius-sm); font-size: 0.88rem; font-weight: 500; }
.country-menu-panel a:hover { background: var(--bg); }
.country-menu-panel a.is-active { font-weight: 600; color: var(--green-800); }
.country-check { margin-left: auto; color: var(--green-700); }
.country-menu-note { display: block; padding: 6px 10px 8px; font-size: 0.76rem; color: var(--text-soft); border-top: 1px solid var(--border); margin-top: 4px; }
.country-menu-float { position: fixed; right: 16px; bottom: 16px; z-index: 70; }
.country-menu-float summary { box-shadow: var(--shadow-md); }
.user-menu-panel a.user-menu-country { display: flex; align-items: center; gap: 8px; color: var(--text-muted); }

@media (max-width: 760px) {
  /* User menu: open as a full-width sheet under the top bar instead of
     hanging off the edge of the screen. */
  .member-topbar .user-menu { position: static; }
  .member-topbar .user-menu-panel { left: 12px; right: 12px; top: calc(100% + 6px); min-width: 0; transform: none !important; }
  .member-topbar { position: sticky; }
  .admin-topbar .brand { flex: 1 1 0; font-size: 0.98rem; }
  .admin-topbar .nav-actions { flex-shrink: 0; }
  .admin-topbar .btn-sm { padding: 8px 12px; }
  .member-topbar .nav-actions { flex-shrink: 0; gap: 8px; }
  .country-menu-float { right: 12px; bottom: 12px; }
  .country-menu-float .country-name { display: none; }
  .country-menu-float summary { padding: 9px 11px; }
  .segmented { display: flex; }
  .segmented-option { flex: 1; }
  .segmented-option span { flex: 1; text-align: center; }
}

/* Admin top bar: keep the nav on one row; the site name shrinks instead. */
@media (min-width: 761px) {
  .admin-topbar .admin-nav { flex-wrap: nowrap; }
  .admin-topbar .nav-links a { white-space: nowrap; }
}
@media (min-width: 761px) and (max-width: 1240px) {
  .admin-topbar .nav-links a { padding: 8px 10px; font-size: 0.82rem; }
}
@media (max-width: 1100px) {
  /* Public auth/info pages keep space for the floating country button. */
  .auth-links-mobile { padding-bottom: 72px; }
}
@media (min-width: 761px) and (max-width: 980px) {
  .admin-topbar .admin-nav { order: 3; width: 100%; overflow-x: auto; }
}
@media (min-width: 761px) and (max-width: 1080px) {
  .admin-topbar:not(.member-topbar) .brand-text { display: none; }
}

/* ---------- 2026-11-11: grouped admin nav (dropdowns) ---------- */
.nav-group { position: relative; }
.nav-group summary {
  list-style: none; display: inline-flex; align-items: center; gap: 5px; cursor: pointer;
  color: var(--text-muted); font-size: 0.86rem; font-weight: 600; padding: 9px 14px; border-radius: 999px;
  white-space: nowrap; user-select: none; transition: color .12s ease, background .12s ease;
}
.nav-group summary::-webkit-details-marker { display: none; }
.nav-group summary:hover, .nav-group[open] summary { color: var(--text); background: var(--bg); }
.nav-group summary.is-active { color: var(--green-800); background: var(--green-100); }
.nav-group summary svg { transition: transform .15s ease; }
.nav-group[open] summary svg { transform: rotate(180deg); }
.nav-group-panel {
  position: absolute; left: 0; top: calc(100% + 8px); min-width: 190px; z-index: 60;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-md); padding: 6px; display: flex; flex-direction: column; gap: 2px;
}
.admin-topbar .nav-group-panel a { display: block; padding: 9px 12px; border-radius: var(--radius-sm); white-space: nowrap; }
.user-menu-panel a.is-active { color: var(--green-800); background: var(--green-100); }
@media (min-width: 761px) and (max-width: 1240px) {
  .admin-topbar .nav-group summary { padding: 8px 10px; font-size: 0.82rem; }
}
@media (min-width: 761px) and (max-width: 980px) {
  /* Grouped nav is short enough to stay on the brand row; never clip dropdowns. */
  .admin-topbar:not(.member-topbar) { height: 64px; flex-wrap: nowrap; padding-top: 0; padding-bottom: 0; }
  .admin-topbar:not(.member-topbar) .admin-nav { order: 0; width: auto; overflow: visible; }
  .admin-topbar:not(.member-topbar) .admin-nav > a, .admin-topbar .nav-group summary { padding: 8px 8px; }
}
@media (max-width: 760px) {
  /* Mobile menu: groups expand inline as indented sub-lists. */
  .admin-nav .nav-group summary { display: flex; justify-content: space-between; width: 100%; padding: 9px 16px; }
  .admin-nav .nav-group-panel { position: static; box-shadow: none; border: 0; padding: 2px 0 6px 14px; min-width: 0; }
}

/* ---------- Coach Finder ---------- */
.finder-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 4px; }
.finder-step { display: flex; gap: 14px; align-items: flex-start; }
.finder-step h3 { margin-bottom: 4px; font-size: 1rem; }
.finder-step .hint-text { margin: 0 0 12px; }
.finder-step-num { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--green-100); color: var(--green-800); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-family: var(--font-head); }
.finder-run { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.finder-progress { margin-top: 12px; }
.finder-bar { height: 8px; border-radius: 999px; background: var(--bg); border: 1px solid var(--border); overflow: hidden; }
.finder-bar span { display: block; height: 100%; width: 0; background: var(--green-600); transition: width .3s ease; }
.finder-log { margin-top: 10px; max-height: 180px; overflow-y: auto; font-size: 0.78rem; line-height: 1.5; }
.finder-log li { padding: 2px 0; color: var(--text-muted); }
.finder-log li.ok { color: var(--green-800); }
.finder-log li.bad { color: #9b2c22; }
.finder-tabs { flex-wrap: wrap; }
.tab-count { font-weight: 500; opacity: .7; margin-left: 2px; }
.warn-list { display: flex; flex-wrap: wrap; gap: 4px; }
.warn { display: inline-flex; font-size: 0.72rem; font-weight: 600; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.warn-bad { background: #fdf3e2; color: #a86a05; }
.warn-soft { background: #f1f1ee; color: var(--text-soft); }
.status-bad { background: #fdf0ef; color: #9b2c22; }
.finder-coaches input { width: 100%; min-width: 110px; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 10px; font-size: 0.86rem; font-family: var(--font-body); background: var(--surface); }
.finder-coaches td { padding: 6px 4px; vertical-align: middle; }
.finder-coaches td.actions { text-align: center; }
.finder-coaches input[type="checkbox"] { width: auto; min-width: 0; }
.finder-coaches input.is-missing, .finder-form select.is-missing { border-color: #e8b04a; background: #fff8e8; }
.finder-coaches input.is-missing::placeholder { color: #a86a05; font-weight: 600; }
.finder-form input.is-soft-missing { background: #fbfbf8; border-style: dashed; }
.finder-new-row input { background: var(--bg); }
.legend-missing { display: inline-block; width: 12px; height: 12px; border-radius: 3px; border: 1px solid #e8b04a; background: #fff8e8; vertical-align: -1px; }
@media (max-width: 980px) { .finder-steps { grid-template-columns: 1fr; } }
.finder-coaches td:nth-child(4) input { min-width: 230px; }

/* ---------- 2026-11-21: Docs library ---------- */
.docs-sub { color: var(--text-muted); margin: 6px 0 0; max-width: 680px; font-size: 0.93rem; }
.docs-categories { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin: 4px 0 28px; }
.docs-category { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); transition: border-color .12s ease, box-shadow .12s ease; }
.docs-category:hover { border-color: var(--green-600); box-shadow: var(--shadow-md); }
.docs-category strong { display: block; font-size: 0.92rem; color: var(--text); }
.docs-category small { color: var(--text-soft); font-size: 0.78rem; }
.docs-category-icon, .doc-icon { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--green-100); color: var(--green-700); }
.docs-section { margin-bottom: 32px; scroll-margin-top: 90px; }
.docs-section h2 { font-size: 1.15rem; margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
.docs-count { font-size: 0.75rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--green-100); color: var(--green-800); }
.docs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.doc-card { display: flex; flex-direction: column; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-sm); min-width: 0; }
.doc-card-top { display: flex; gap: 12px; align-items: flex-start; }
.doc-card h3 { font-size: 0.98rem; margin: 0 0 4px; line-height: 1.35; overflow-wrap: anywhere; }
.doc-card h3 a:hover { color: var(--green-700); }
.doc-meta { color: var(--text-soft); font-size: 0.78rem; margin: 0; }
.doc-desc { color: var(--text-muted); font-size: 0.88rem; margin: 0; }
.doc-actions { display: flex; gap: 8px; margin-top: auto; }
.doc-actions .btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }

/* ---------- Pricing ---------- */
.pricing-hero { text-align: center; max-width: 720px; margin: 12px auto 30px; }
.pricing-hero h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); margin-bottom: 12px; }
.pricing-hero p { color: var(--text-muted); font-size: 1.02rem; margin: 0 auto; max-width: 600px; }
.pricing-hero .student-count { margin-top: 20px; }
.pricing-wrap { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 28px; align-items: center; max-width: 980px; margin: 0 auto 28px; }
.pricing-card { position: relative; background: var(--surface); border: 2px solid var(--green-700); border-radius: var(--radius-lg); padding: 32px 28px 26px; box-shadow: var(--shadow-md); overflow: hidden; }
.pricing-badge { display: inline-block; margin-bottom: 12px; padding: 4px 12px; border-radius: 999px; background: var(--green-700); color: #fff; font-size: 0.72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.pricing-card h2 { font-size: 1.25rem; margin: 0 0 10px; }
.pricing-price strong { font-family: var(--font-head); font-size: 2.6rem; line-height: 1.1; color: var(--green-900); }
.pricing-price strong.pricing-price-text { font-size: 1.5rem; }
.pricing-note { color: var(--text-muted); font-size: 0.88rem; margin: 6px 0 20px; }
.pricing-features { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.pricing-features li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; }
.pricing-check { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; background: var(--green-100); color: var(--green-700); display: inline-flex; align-items: center; justify-content: center; }
.btn-lg { padding: 14px 20px; font-size: 1rem; }
.pricing-button-note { color: var(--text-soft); font-size: 0.8rem; text-align: center; margin: 10px 0 0; }
.pricing-points { display: grid; gap: 14px; }
.pricing-point { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; }
.pricing-point .step-num { margin: 0; flex: 0 0 auto; }
.pricing-point h3 { font-size: 1rem; margin: 0 0 4px; }
.pricing-point p { color: var(--text-muted); font-size: 0.9rem; margin: 0; }
.pricing-faq { max-width: 980px; margin: 0 auto; }
@media (max-width: 860px) {
  .pricing-wrap { grid-template-columns: 1fr; }
}

/* ---------- Registered students counter ---------- */
.student-count { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px 9px 10px; border-radius: 999px; font-size: 0.9rem; }
.student-count strong { font-family: var(--font-head); }
.student-count-icon { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.student-count-light { background: var(--surface); border: 1px solid var(--border); color: var(--text); box-shadow: var(--shadow-sm); }
.student-count-light .student-count-icon { background: var(--green-100); color: var(--green-700); }
.student-count-dark { align-self: flex-start; margin-top: 18px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: #fff; position: relative; z-index: 1; }
.student-count-dark .student-count-icon { background: rgba(255,255,255,.14); }

/* ---------- Two-factor authentication ---------- */
.auth-screen-single { grid-template-columns: 1fr; }
.auth-screen-single .brand { color: var(--green-900); }
.otp-input { font-size: 1.4rem !important; letter-spacing: .25em; text-align: center; font-family: var(--font-head); }
.otp-help { margin-top: 16px; font-size: 0.85rem; color: var(--text-muted); }
.otp-help summary { cursor: pointer; color: var(--green-700); font-weight: 600; }
.otp-help p { margin: 8px 0 0; }
.tfa-state { display: flex; gap: 14px; align-items: flex-start; }
.tfa-icon { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: #f1f1ee; color: var(--text-soft); }
.tfa-icon.is-on { background: var(--green-100); color: var(--green-700); }
.tfa-steps { padding-left: 20px; list-style: decimal; color: var(--text-muted); font-size: 0.92rem; }
.tfa-steps li { margin-bottom: 8px; }
.tfa-qr { width: 200px; height: 200px; margin: 8px auto 6px; padding: 6px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); }
.tfa-qr svg { width: 100%; height: 100%; display: block; }
.tfa-secret { text-align: center; margin: 4px 0 18px; }
.tfa-secret code { font-size: 0.95rem; letter-spacing: .08em; padding: 6px 10px; background: var(--bg); border-radius: var(--radius-sm); word-break: break-all; }
.tfa-codes { border-color: var(--green-600); }
.recovery-codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; list-style: none; padding: 0; margin: 14px 0 16px; }
.recovery-codes code { display: block; text-align: center; font-size: 1rem; letter-spacing: .08em; padding: 8px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
@media print {
  .admin-topbar, .float-menus, .btn { display: none !important; }
}

/* ---------- Language menu + country switcher (bottom-right) ---------- */
.float-menus { position: fixed; right: 16px; bottom: 16px; z-index: 70; display: flex; gap: 8px; align-items: flex-end; }
.float-menus .country-menu-float { position: relative; right: auto; bottom: auto; }
.lang-menu summary { box-shadow: var(--shadow-md); }
.lang-menu-panel { min-width: 200px; max-height: 70vh; overflow-y: auto; }
@media (max-width: 480px) {
  .float-menus .country-menu-float .country-name { display: none; }
}
/* Google Translate: hide its own top bar and tooltips, keep the page in place. */
body { top: 0 !important; }
iframe.skiptranslate, .goog-te-banner-frame, #goog-gt-tt, .goog-te-balloon-frame, .VIpgJd-ZVi9od-ORHb-OEVmcd, .VIpgJd-ZVi9od-aZ2wEe-wOHMyf { display: none !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
