/* ==========================================================================
   COMPONENTS — Buttons, Nav, Cards, Forms, Modals
   ========================================================================== */

/* ============== NAVBAR ============== */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: transparent;
  transition: background .3s var(--ease), backdrop-filter .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom-color: var(--border-subtle);
}
.nav-inner {
  width: 100%; max-width: var(--container);
  margin: 0 auto; padding: 0 var(--s4);
  display: flex; align-items: center; gap: var(--s5);
}
@media (min-width: 768px) { .nav-inner { padding: 0 var(--s6); } }

.nav-logo {
  display: flex; align-items: center; gap: var(--s2);
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  font-size: 18px;
  color: var(--white);
  flex-shrink: 0;
}
.nav-logo svg { width: 38px; height: 38px; }

.nav-links {
  display: none;
  margin-left: auto; margin-right: auto;
  gap: var(--s5);
  font-size: 14px;
  font-weight: 500;
}
@media (min-width: 900px) { .nav-links { display: flex; } }
.nav-links a {
  position: relative;
  color: var(--white-2);
  padding: var(--s2) 0;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a.active::after {
  content: ''; position: absolute; left: 50%; bottom: -4px;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--gold);
  transform: translateX(-50%);
}

.nav-cta {
  margin-left: auto;
  display: flex; align-items: center; gap: var(--s3);
}
@media (min-width: 900px) { .nav-cta { margin-left: 0; } }

.nav-toggle {
  display: flex; flex-direction: column; gap: 5px;
  width: 28px; height: 28px;
  padding: 4px;
  margin-left: var(--s2);
}
@media (min-width: 900px) { .nav-toggle { display: none; } }
.nav-toggle span {
  display: block; height: 2px; width: 100%;
  background: var(--white);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
  border-radius: 2px;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu overlay */
.mobile-menu {
  position: fixed; inset: 0;
  background: var(--black);
  z-index: 99;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: var(--s5);
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease);
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 40px;
  color: var(--white);
  opacity: 0; transform: translateY(20px);
  transition: opacity .4s var(--ease), transform .4s var(--ease), color .2s;
}
.mobile-menu a:hover { color: var(--gold); }
.mobile-menu.open a { opacity: 1; transform: translateY(0); }
.mobile-menu.open a:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu.open a:nth-child(2) { transition-delay: 0.10s; }
.mobile-menu.open a:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu.open a:nth-child(4) { transition-delay: 0.20s; }
.mobile-menu.open a:nth-child(5) { transition-delay: 0.25s; }
.mobile-menu .mm-cta { margin-top: var(--s5); display: flex; flex-direction: column; gap: var(--s3); }

/* ============== BUTTONS ============== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--s2);
  height: 48px;
  padding: 0 var(--s5);
  border-radius: var(--r-full);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s, color .2s, box-shadow .3s, border-color .2s;
  white-space: nowrap;
  border: 1px solid transparent;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-lg { height: 56px; padding: 0 var(--s6); font-size: 17px; }
.btn-sm { height: 38px; padding: 0 var(--s4); font-size: 13px; }

.btn-primary {
  background: var(--gold);
  color: var(--black);
  box-shadow: 0 8px 24px rgba(201,168,76,0.25);
}
.btn-primary:hover {
  background: var(--gold-light);
  box-shadow: 0 12px 32px rgba(201,168,76,0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.25);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.06);
  border-color: var(--gold);
  color: var(--gold);
}

.btn-ghost-gold {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn-ghost-gold:hover {
  background: var(--gold);
  color: var(--black);
}

.btn-dark {
  background: var(--black);
  color: var(--white);
}
.btn-dark:hover { background: #1c1c1e; }

.btn-block { display: flex; width: 100%; }

.btn-link {
  color: var(--gold);
  font-weight: 600;
  font-size: 15px;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  transition: color .2s, border-color .2s, gap .2s;
  display: inline-flex; align-items: center; gap: var(--s2);
}
.btn-link:hover { color: var(--gold-light); gap: var(--s3); }

/* ============== PILLS / BADGES ============== */
.pill {
  display: inline-flex; align-items: center; gap: var(--s2);
  padding: 6px 14px;
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pill-gold { background: rgba(201,168,76,0.12); color: var(--gold); border: 1px solid var(--border); }
.pill-dark { background: rgba(0,0,0,0.4); color: var(--white-2); border: 1px solid var(--border-subtle); }
.pill-green { background: rgba(46,204,113,0.12); color: #2ecc71; border: 1px solid rgba(46,204,113,0.3); }
.pill-red { background: rgba(139,26,26,0.18); color: #ff5555; border: 1px solid rgba(255,85,85,0.3); }

/* ============== CARDS ============== */
.card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r3);
  padding: var(--s5);
  transition: transform .3s var(--spring), box-shadow .3s, border-color .3s;
  position: relative;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--border);
  border-color: var(--border);
}

.program-card {
  border-left: 4px solid var(--gold);
  padding-left: var(--s5);
  display: flex; flex-direction: column;
  gap: var(--s4);
}
.program-card .icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(201,168,76,0.1);
  border-radius: var(--r2);
  color: var(--gold);
}
.program-card .icon svg { width: 30px; height: 30px; }
.program-card .name {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--white);
  line-height: 1;
}
.program-card .desc {
  color: var(--white-3);
  font-size: 15px;
  line-height: 1.5;
  flex: 1;
}
.program-card .price {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--gold);
}
.program-card .price small {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--white-3);
  font-weight: 400;
}
.program-card .schedule {
  font-size: 13px;
  color: var(--white-3);
  font-family: var(--font-mono);
}

.coach-card {
  position: relative;
  height: 560px;
  perspective: 1200px;
  background: transparent;
  border: 0;
  padding: 0;
  overflow: visible;
}
.coach-card:hover { transform: none; box-shadow: none; }
.coach-card-inner {
  position: relative;
  width: 100%; height: 100%;
  transition: transform .8s var(--ease);
  transform-style: preserve-3d;
  border-radius: var(--r3);
}
.coach-card:hover .coach-card-inner { transform: rotateY(180deg); }
.coach-face, .coach-back {
  position: absolute; inset: 0;
  border-radius: var(--r3);
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border: 1px solid var(--border-subtle);
}
.coach-face { background: var(--surface); }
.coach-back {
  background: linear-gradient(160deg, var(--surface) 0%, #0a0a0a 100%);
  transform: rotateY(180deg);
  padding: var(--s5);
  display: flex; flex-direction: column; gap: var(--s3);
}
.coach-face img {
  width: 100%; height: 65%;
  object-fit: cover;
  filter: grayscale(0.2);
}
.coach-photo-wrapper {
  position: relative;
  width: 100%; height: 55%;
  overflow: hidden;
}
.coach-photo-wrapper img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.2);
  transition: filter .3s;
}
.coach-photo-wrapper:hover img { filter: grayscale(0); }
.coach-avatar-fallback {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 88px;
  color: var(--black);
  letter-spacing: 0.04em;
}
.nationality-flag {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(10,10,10,0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--white);
  padding: 5px 12px;
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--border);
  z-index: 2;
}
.local-badge {
  position: absolute;
  top: 12px; right: 12px;
  background: var(--gold);
  color: var(--black);
  padding: 5px 12px;
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(201,168,76,0.4);
}
.credential-badge {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(201,168,76,0.12);
  color: var(--gold);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 8px;
}
.duo-badge {
  position: absolute;
  bottom: 12px; right: 12px;
  background: rgba(139,26,26,0.85);
  color: var(--white);
  padding: 4px 10px;
  border-radius: var(--r-full);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  z-index: 2;
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.coach-card:hover .duo-badge { opacity: 1; }
.coach-face .info { padding: var(--s4); }
.coach-face .bio {
  font-size: 12px;
  color: var(--white-3);
  line-height: 1.5;
  margin-top: var(--s2);
}
.coach-connection {
  margin-top: auto;
  padding-top: var(--s3);
  font-size: 11px;
  color: var(--gold);
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  border-top: 1px solid var(--border-subtle);
}
.coach-face .name {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 6px;
}
.coach-face .title { font-size: 13px; color: var(--white-2); margin-bottom: var(--s3); }

.coach-back h4 {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 24px;
  margin-bottom: var(--s3);
  letter-spacing: 0.02em;
}
.coach-back .bio {
  font-size: 14px;
  line-height: 1.55;
  color: var(--white-2);
}

/* ============== FORMS ============== */
.form-field {
  position: relative;
  margin-bottom: var(--s4);
}
.form-field label {
  position: absolute;
  left: 16px; top: 18px;
  font-size: 14px;
  color: var(--white-3);
  pointer-events: none;
  transition: all .2s var(--ease);
  background: transparent;
  padding: 0 6px;
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 18px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r2);
  color: var(--white);
  font-size: 15px;
  transition: border-color .2s, background .2s;
  font-family: var(--font-body);
}
.form-field textarea { min-height: 100px; resize: vertical; }
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--surface-3);
}
.form-field input:focus + label,
.form-field input:not(:placeholder-shown) + label,
.form-field textarea:focus + label,
.form-field textarea:not(:placeholder-shown) + label,
.form-field select:focus + label,
.form-field select.has-value + label {
  top: -8px; left: 12px;
  font-size: 11px;
  color: var(--gold);
  background: var(--surface);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: transparent; }
.form-field .error {
  display: block;
  color: #ff5555;
  font-size: 12px;
  margin-top: 6px;
  padding-left: var(--s2);
}
.form-field.invalid input,
.form-field.invalid textarea,
.form-field.invalid select {
  border-color: #ff5555;
}

/* Pill radio buttons */
.pill-radio {
  display: flex; flex-wrap: wrap; gap: var(--s2);
  margin-bottom: var(--s4);
}
.pill-radio input { display: none; }
.pill-radio label {
  padding: 10px 18px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-full);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all .2s var(--ease);
  background: var(--surface-2);
  color: var(--white-2);
}
.pill-radio label:hover { border-color: var(--gold); color: var(--gold); }
.pill-radio input:checked + label {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
}

.field-group-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--s3);
}

/* Checkbox */
.checkbox {
  display: flex; align-items: flex-start; gap: var(--s3);
  cursor: pointer;
  font-size: 14px;
  color: var(--white-2);
  padding: var(--s3) 0;
  line-height: 1.45;
}
.checkbox input { display: none; }
.checkbox .box {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border: 2px solid var(--border-strong);
  border-radius: 4px;
  margin-top: 2px;
  position: relative;
  transition: all .2s var(--ease);
}
.checkbox input:checked + .box {
  background: var(--gold);
  border-color: var(--gold);
}
.checkbox input:checked + .box::after {
  content: '';
  position: absolute;
  top: 1px; left: 5px;
  width: 6px; height: 11px;
  border: solid var(--black);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Toggle switch */
.toggle {
  position: relative;
  display: inline-block;
  width: 44px; height: 24px;
  flex-shrink: 0;
}
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle .slider {
  position: absolute; inset: 0;
  background: var(--surface-3);
  border-radius: 24px;
  cursor: pointer;
  transition: background .2s;
}
.toggle .slider::before {
  content: '';
  position: absolute;
  height: 18px; width: 18px;
  left: 3px; top: 3px;
  background: white;
  border-radius: 50%;
  transition: transform .2s var(--ease);
}
.toggle input:checked + .slider { background: var(--gold); }
.toggle input:checked + .slider::before { transform: translateX(20px); }

/* ============== MODALS ============== */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease);
  display: flex; align-items: center; justify-content: center;
  padding: var(--s4);
}
.modal-backdrop.open { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r3);
  max-width: 800px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: var(--s6);
  transform: scale(0.92);
  transition: transform .3s var(--spring);
  position: relative;
}
.modal-backdrop.open .modal { transform: scale(1); }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.modal-close:hover { background: rgba(255,255,255,0.12); color: var(--gold); }

.modal-video { max-width: 960px; padding: 0; background: black; aspect-ratio: 16/9; }
.modal-video iframe { width: 100%; height: 100%; border: 0; border-radius: var(--r3); }

/* Lightbox */
.lightbox img { max-width: 100%; max-height: 80vh; border-radius: var(--r2); object-fit: contain; }

/* ============== TOAST ============== */
.toast {
  position: fixed;
  bottom: 24px; right: 24px;
  background: var(--surface);
  border: 1px solid var(--gold);
  border-radius: var(--r2);
  padding: var(--s3) var(--s4);
  color: var(--white);
  font-size: 14px;
  z-index: 300;
  box-shadow: var(--shadow-lg);
  transform: translateX(120%);
  transition: transform .35s var(--spring);
  display: flex; align-items: center; gap: var(--s3);
  max-width: 360px;
}
.toast.show { transform: translateX(0); }
.toast .icon { color: var(--gold); flex-shrink: 0; }

/* ==========================================================================
   TAB PANELS (shared by portal & admin)
   ========================================================================== */
.tab-panel { display: none; animation: fadeIn .35s var(--ease) both; }
.tab-panel.active { display: block; }

/* ==========================================================================
   ADMIN PANEL COMPONENTS
   ========================================================================== */

.admin-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}
@media (max-width: 1024px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; position: fixed; inset: 0; z-index: 200; width: 280px; }
  .admin-sidebar.mobile-open { display: flex; }
}

.admin-sidebar {
  display: flex; flex-direction: column;
  background: var(--surface);
  border-right: 1px solid var(--border-subtle);
  position: relative;
  height: 100vh;
  position: sticky; top: 0;
  overflow-y: auto;
  padding: var(--s5) var(--s4);
}
.admin-sidebar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--red));
}

.admin-brand {
  display: flex; flex-direction: column; gap: var(--s2);
  margin-bottom: var(--s5);
  padding-bottom: var(--s4);
  border-bottom: 1px solid var(--border-subtle);
}
.admin-brand .top {
  display: flex; align-items: center; gap: var(--s3);
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  color: var(--gold);
}
.admin-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--r-full);
  background: var(--red);
  color: white;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  width: max-content;
}
.admin-brand .subtitle {
  font-size: 12px;
  color: var(--white-3);
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
}

.admin-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.admin-nav a {
  display: flex; align-items: center; gap: var(--s3);
  padding: 11px 14px;
  border-radius: var(--r1);
  font-size: 14px;
  font-weight: 500;
  color: var(--white-2);
  transition: all .2s;
  border-left: 2px solid transparent;
}
.admin-nav a:hover { background: var(--surface-2); color: var(--white); }
.admin-nav a.active {
  background: rgba(201,168,76,0.1);
  color: var(--gold);
  border-left-color: var(--gold);
  padding-left: 12px;
}
.admin-nav a .nav-icon { width: 18px; flex-shrink: 0; font-size: 16px; text-align: center; }
.admin-nav a svg { width: 18px; height: 18px; flex-shrink: 0; }

.admin-main { background: var(--black); min-height: 100vh; }

.admin-topbar {
  display: flex; align-items: center; gap: var(--s4);
  padding: var(--s4) var(--s6);
  background: rgba(10,10,10,0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky; top: 0; z-index: 50;
}
.admin-topbar h1 {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--white);
  margin-right: auto;
  letter-spacing: 0.04em;
}
.admin-topbar .live-mode {
  padding: 4px 10px;
  background: rgba(255,85,85,0.12);
  color: #ff5555;
  border: 1px solid rgba(255,85,85,0.3);
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
}

.admin-content { padding: var(--s5) var(--s6); }
@media (max-width: 640px) { .admin-content { padding: var(--s4); } }

.admin-burger {
  display: none;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--white);
  align-items: center; justify-content: center;
}
@media (max-width: 1024px) { .admin-burger { display: inline-flex; } }

/* KPI cards */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--s4);
  margin-bottom: var(--s5);
}
.kpi-card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r3);
  padding: var(--s5);
  position: relative;
  transition: border-color .2s, transform .3s var(--spring);
  overflow: hidden;
}
.kpi-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--gold);
}
.kpi-card:hover { transform: translateY(-3px); border-color: var(--border); }
.kpi-card .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white-3);
  margin-bottom: var(--s2);
}
.kpi-card .value {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 48px;
  line-height: 1;
}
.kpi-card .delta {
  font-size: 12px;
  margin-top: var(--s3);
  display: inline-flex; align-items: center; gap: 4px;
}
.kpi-card .delta.up { color: var(--green); }
.kpi-card .delta.down { color: #ff5555; }
.kpi-card .icon-bg {
  position: absolute;
  top: 16px; right: 16px;
  width: 40px; height: 40px;
  color: var(--gold);
  opacity: 0.25;
}

/* Data tables */
.data-table-wrap {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r3);
  overflow: hidden;
  margin-bottom: var(--s5);
}
.data-table-head {
  padding: var(--s4) var(--s5);
  border-bottom: 1px solid var(--border-subtle);
  display: flex; align-items: center; gap: var(--s3);
  flex-wrap: wrap;
}
.data-table-head h3 {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 22px;
  letter-spacing: 0.04em;
  margin-right: auto;
}
.data-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.data-table th, .data-table td {
  padding: 14px var(--s4);
  text-align: left;
  font-size: 13px;
  border-bottom: 1px solid var(--border-subtle);
}
.data-table th {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--white-3);
  background: var(--surface-2);
}
.data-table td { color: var(--white-2); }
.data-table tbody tr { transition: background .15s; }
.data-table tbody tr:hover { background: rgba(201,168,76,0.05); }
.data-table .row-actions { display: flex; gap: 6px; }
.data-table .row-actions button {
  padding: 4px 10px;
  font-size: 12px;
  border-radius: var(--r-full);
  background: var(--surface-2);
  color: var(--white-2);
  border: 1px solid var(--border-subtle);
  transition: all .15s;
}
.data-table .row-actions button:hover { background: var(--gold); color: var(--black); border-color: var(--gold); }
.data-table .row-actions button.danger:hover { background: #ff5555; border-color: #ff5555; color: white; }

/* Status pills */
.status-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.status-pill.active { background: rgba(46,204,113,0.14); color: #2ecc71; border: 1px solid rgba(46,204,113,0.3); }
.status-pill.pending { background: rgba(201,168,76,0.14); color: var(--gold); border: 1px solid var(--border); }
.status-pill.cancelled, .status-pill.failed { background: rgba(255,85,85,0.14); color: #ff5555; border: 1px solid rgba(255,85,85,0.3); }
.status-pill.refunded { background: rgba(255,255,255,0.06); color: var(--white-3); border: 1px solid var(--border-subtle); }
.status-pill.paid { background: rgba(46,204,113,0.14); color: #2ecc71; border: 1px solid rgba(46,204,113,0.3); }
.status-pill.unpaid { background: rgba(255,85,85,0.14); color: #ff5555; border: 1px solid rgba(255,85,85,0.3); }
.status-pill.full { background: rgba(139,26,26,0.18); color: #ff8080; border: 1px solid rgba(255,128,128,0.3); }
.status-pill.open { background: rgba(46,204,113,0.14); color: #2ecc71; border: 1px solid rgba(46,204,113,0.3); }
.status-pill.waitlist { background: rgba(155,89,182,0.14); color: #c39bd3; border: 1px solid rgba(155,89,182,0.3); }

/* Filter bar */
.filter-bar {
  display: flex; align-items: center; gap: var(--s3);
  flex-wrap: wrap;
  padding: var(--s4);
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r2);
  margin-bottom: var(--s4);
}
.filter-bar .search-input {
  flex: 1; min-width: 220px;
  padding: 10px 14px 10px 36px;
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-full);
  color: var(--white);
  font-size: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23b0b0b8' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 12px center;
}
.filter-bar .search-input:focus { outline: none; border-color: var(--gold); }
.filter-bar select {
  padding: 10px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-full);
  color: var(--white);
  font-size: 13px;
}

/* Range slider — gold */
.range-slider-gold {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: var(--surface-3);
  border-radius: 3px;
  outline: none;
  margin: var(--s3) 0;
}
.range-slider-gold::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
  border: 3px solid var(--surface);
  box-shadow: 0 0 0 1px var(--gold);
}
.range-slider-gold::-moz-range-thumb {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
  border: 3px solid var(--surface);
}

/* Donut chart */
.donut-chart {
  width: 220px; height: 220px;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}
.donut-chart::after {
  content: '';
  position: absolute;
  top: 30px; left: 30px;
  right: 30px; bottom: 30px;
  background: var(--surface);
  border-radius: 50%;
}
.donut-chart .donut-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 1;
}
.donut-chart .donut-center .total {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 28px;
  line-height: 1;
}
.donut-chart .donut-center .label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--white-3);
  letter-spacing: 0.1em;
  margin-top: 4px;
}

.donut-legend { display: flex; flex-direction: column; gap: var(--s2); flex: 1; }
.donut-legend .item {
  display: flex; align-items: center; gap: var(--s3);
  font-size: 13px;
  color: var(--white-2);
  padding: 6px 0;
}
.donut-legend .swatch {
  width: 14px; height: 14px;
  border-radius: 3px;
  flex-shrink: 0;
}
.donut-legend .item .pct { margin-left: auto; color: var(--white-3); font-family: var(--font-mono); font-size: 12px; }

/* Revenue bar chart */
.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: var(--s3);
  height: 220px;
  padding: var(--s4) 0;
  border-bottom: 1px solid var(--border-subtle);
}
.bar-chart .bar {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  position: relative;
}
.bar-chart .bar .fill {
  width: 100%;
  background: linear-gradient(180deg, var(--gold-light), var(--gold-dark));
  border-radius: var(--r1) var(--r1) 0 0;
  transition: all .3s var(--ease);
  position: relative;
  min-height: 4px;
}
.bar-chart .bar:hover .fill {
  background: linear-gradient(180deg, var(--white), var(--gold));
  transform: scaleY(1.02);
  transform-origin: bottom;
}
.bar-chart .bar .tooltip {
  position: absolute;
  bottom: 100%;
  margin-bottom: 8px;
  padding: 6px 10px;
  background: var(--black-2);
  color: var(--gold);
  border: 1px solid var(--border);
  border-radius: var(--r1);
  font-size: 12px;
  font-family: var(--font-mono);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
  white-space: nowrap;
  z-index: 5;
}
.bar-chart .bar:hover .tooltip { opacity: 1; }
.bar-chart .bar .label {
  font-size: 11px;
  color: var(--white-3);
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  margin-top: var(--s2);
}

/* Camp timeline */
.camp-timeline {
  display: flex; flex-direction: column;
  gap: var(--s2);
  margin-top: var(--s3);
}
.camp-timeline .slot {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: var(--s4);
  align-items: center;
  padding: var(--s3) var(--s4);
  border-radius: var(--r1);
  background: var(--surface-2);
  border-left: 4px solid var(--gold);
  cursor: pointer;
  transition: background .2s;
}
.camp-timeline .slot:hover { background: var(--surface-3); }
.camp-timeline .slot.tech { border-left-color: var(--gold); }
.camp-timeline .slot.tactical { border-left-color: #4a90e2; }
.camp-timeline .slot.competitive { border-left-color: #e74c3c; }
.camp-timeline .slot.break { border-left-color: var(--white-3); background: rgba(255,255,255,0.02); }
.camp-timeline .slot.pickup { border-left-color: #9b59b6; }
.camp-timeline .slot .time {
  font-family: var(--font-mono);
  color: var(--gold);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
}
.camp-timeline .slot .activity { font-size: 14px; color: var(--white); }
.camp-timeline .slot .activity small { display: block; color: var(--white-3); font-size: 11px; margin-top: 2px; }
.camp-timeline .slot .badge { font-size: 10px; color: var(--white-3); font-family: var(--font-mono); letter-spacing: 0.08em; }

/* Camp age group cards */
.group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--s3);
}
.group-card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r2);
  padding: var(--s4);
}
.group-card h4 {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--gold);
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.group-card .age-range {
  font-size: 12px;
  color: var(--white-3);
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  margin-bottom: var(--s3);
}
.group-card .capacity-bar {
  height: 8px;
  background: var(--surface-2);
  border-radius: 4px;
  overflow: hidden;
  margin: var(--s2) 0;
}
.group-card .capacity-bar > div {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold));
  transition: width .8s var(--ease);
}
.group-card .meta { font-size: 12px; color: var(--white-3); margin-top: var(--s2); }
.group-card select {
  width: 100%; margin-top: var(--s3);
  padding: 8px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r1);
  color: var(--white);
  font-size: 13px;
}

/* Month calendar grid (admin + portal) */
.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.calendar .day-name {
  text-align: center;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--white-3);
  padding: var(--s2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.calendar .cell {
  aspect-ratio: 1;
  background: var(--surface-2);
  border-radius: var(--r1);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  color: var(--white-2);
  position: relative;
  cursor: pointer;
  transition: background .2s;
}
.calendar .cell.empty { background: transparent; cursor: default; }
.calendar .cell:not(.empty):hover { background: var(--surface-3); }
.calendar .cell.has-event::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 50%;
  width: 4px; height: 4px;
  background: var(--gold);
  border-radius: 50%;
  transform: translateX(-50%);
}
.calendar .cell.today {
  background: var(--gold);
  color: var(--black);
  font-weight: 700;
}

/* Calendar admin (event variants) */
.cal-event-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  display: inline-block;
}
.cal-event-dot.training { background: var(--gold); }
.cal-event-dot.match { background: #e74c3c; }
.cal-event-dot.camp { background: #1abc9c; }
.cal-event-dot.private { background: #4a90e2; }
.cal-event-dot.group { background: #9b59b6; }

/* Quick actions row */
.quick-actions {
  display: flex; gap: var(--s3);
  flex-wrap: wrap;
  margin: var(--s5) 0;
}

/* Goal progress bar */
.goal-progress {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r2);
  padding: var(--s4);
}
.goal-progress .label {
  display: flex; justify-content: space-between;
  margin-bottom: var(--s2);
  font-size: 13px;
}
.goal-progress .label .amount {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 20px;
}
.goal-progress .track {
  height: 12px;
  background: var(--surface-2);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}
.goal-progress .fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light));
  border-radius: 6px;
  transition: width 1s var(--ease);
  box-shadow: 0 0 10px rgba(201,168,76,0.4);
}

/* Add-on cards */
.addon-card {
  background: var(--surface);
  border: 2px solid var(--border-subtle);
  border-radius: var(--r3);
  padding: var(--s4);
  cursor: pointer;
  transition: all .2s var(--ease);
  position: relative;
}
.addon-card:hover { border-color: var(--border); transform: translateY(-3px); }
.addon-card.selected {
  border-color: var(--gold);
  background: linear-gradient(135deg, var(--surface) 0%, rgba(201,168,76,0.08) 100%);
}
.addon-card.selected::before {
  content: '✓';
  position: absolute;
  top: 12px; right: 12px;
  width: 24px; height: 24px;
  background: var(--gold);
  color: var(--black);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 14px;
}
.addon-card h4 {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--gold);
  letter-spacing: 0.04em;
  margin-bottom: var(--s2);
}
.addon-card .addon-meta {
  font-size: 12px;
  color: var(--white-3);
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  margin-bottom: var(--s3);
}
.addon-card .price-pill {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(201,168,76,0.12);
  color: var(--gold);
  border-radius: var(--r-full);
  font-weight: 700;
  font-size: 14px;
  border: 1px solid var(--border);
  margin-bottom: var(--s3);
}
.addon-card .desc { font-size: 14px; color: var(--white-2); line-height: 1.5; }

/* Two-column layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s5);
}
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

/* Section header */
.admin-section-header {
  margin: var(--s6) 0 var(--s4);
  padding-bottom: var(--s3);
  border-bottom: 1px solid var(--border-subtle);
}
.admin-section-header h2 {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--gold);
  letter-spacing: 0.04em;
}
.admin-section-header p { color: var(--white-3); font-size: 14px; margin-top: var(--s2); }

/* Live calculator output */
.calc-result {
  background: linear-gradient(135deg, var(--surface) 0%, rgba(201,168,76,0.08) 100%);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: var(--s4);
  text-align: center;
  margin-top: var(--s3);
}
.calc-result .label { font-size: 12px; color: var(--white-3); letter-spacing: 0.12em; text-transform: uppercase; font-family: var(--font-mono); }
.calc-result .value {
  font-family: var(--font-display);
  font-size: 56px;
  color: var(--gold);
  line-height: 1;
  margin-top: var(--s2);
}
.calc-result .note { font-size: 13px; color: var(--white-2); margin-top: var(--s2); }

/* Inline edit input */
.inline-edit {
  background: transparent;
  border: 1px solid transparent;
  color: inherit;
  font: inherit;
  padding: 4px 8px;
  border-radius: var(--r1);
  width: 100%;
  transition: border-color .2s, background .2s;
}
.inline-edit:hover { border-color: var(--border-subtle); background: var(--surface-2); }
.inline-edit:focus { outline: none; border-color: var(--gold); background: var(--surface-2); }
