/* ===================================================
   SaConnect �?" Club San Andrés Rugby
   Design System v3.0  (mobile-first, San Andrés palette)
   =================================================== */

/* ---------- Custom Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Sora:wght@600;700;800&display=swap');

/* ---------- Variables ---------- */
:root {
  /* Brand palette �?" San Andrés Rugby (azul escocés + violeta + blanco) */
  --blue-50:  #e8eeff;
  --blue-100: #ccd9ff;
  --blue-200: #99b3ff;
  --blue-300: #6688f5;
  --blue-400: #3a62e8;
  --blue-500: #1a3fa0;   /* primary �?" azul San Andrés */
  --blue-600: #133280;
  --blue-700: #0d2460;
  --blue-800: #071640;

  --violet-50:  #ede8ff;
  --violet-100: #d5ccff;
  --violet-200: #aa99ff;
  --violet-300: #8066f5;
  --violet-400: #6040e0;
  --violet-500: #4d2ec8;  /* secondary �?" violeta escocés */
  --violet-600: #3a20a8;
  --violet-700: #2a1588;

  --white: #ffffff;
  --bg:    #f2f5ff;
  --bg-2:  #e6ebf8;

  --text:     #080f28;
  --text-2:   #1e2e5a;
  --muted:    #5a6d9a;
  --border:   #ccd5f0;
  --border-2: #b0bde8;

  /* Status colors */
  --green-100: #d0f5e0;
  --green-500: #15924e;
  --red-100:   #fce0e8;
  --red-500:   #cc2a4a;
  --amber-100: #fef0c8;
  --amber-500: #c48e00;

  /* Spacing */
  --radius-sm: 12px;
  --radius:    18px;
  --radius-lg: 24px;

  /* Shadows */
  --shadow-sm: 0 1px 6px rgba(8, 20, 70, 0.07), 0 2px 12px rgba(8, 20, 70, 0.05);
  --shadow:    0 4px 20px rgba(8, 20, 70, 0.11), 0 1px 4px rgba(8, 20, 70, 0.07);
  --shadow-lg: 0 16px 48px rgba(8, 20, 70, 0.18), 0 4px 16px rgba(8, 20, 70, 0.10);

  /* Nav */
  --nav-width: 248px;
  --nav-height-mobile: 68px;
  --header-height: 60px;
}

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

html {
  font-size: 15px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
button { font-family: inherit; }
input, select, textarea { font-family: inherit; }
img { display: block; max-width: 100%; }

/* ---------- Typography ---------- */
h1, h2, h3 {
  font-family: 'Sora', 'Inter', sans-serif;
  line-height: 1.15;
}

h1 { font-size: clamp(24px, 4vw, 34px); font-weight: 800; }
h2 { font-size: 20px; font-weight: 700; }
h3 { font-size: 16px; font-weight: 700; }

/* ===================================================
   AUTH LAYOUT (index.html)
   =================================================== */

.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
  background: var(--bg);
}

@media (min-width: 860px) {
  .auth-page {
    grid-template-columns: 1fr 1fr;
  }
}

/* Left brand panel */
.auth-brand {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 48px 56px;
  background: linear-gradient(145deg, var(--blue-700) 0%, var(--violet-600) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.auth-brand::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(90,95,224,0.35) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(31,76,163,0.4) 0%, transparent 60%);
}

.auth-brand::after {
  content: '';
  position: absolute;
  right: -60px;
  bottom: -60px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 60px solid rgba(255,255,255,0.06);
}

@media (min-width: 860px) {
  .auth-brand { display: flex; }
}

.auth-brand-inner {
  position: relative;
  z-index: 1;
}

.auth-logo {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(255,255,255,0.25);
  display: grid;
  place-items: center;
  margin-bottom: 32px;
  font-family: 'Sora', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--white);
}

.auth-brand h1 {
  color: var(--white);
  margin-bottom: 16px;
  font-size: clamp(26px, 3vw, 36px);
}

.auth-brand p {
  color: rgba(255,255,255,0.75);
  font-size: 16px;
  line-height: 1.6;
  max-width: 320px;
}

.auth-features {
  margin-top: 40px;
  display: grid;
  gap: 14px;
}

.auth-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.9);
  font-size: 14px;
  font-weight: 500;
}

.auth-feature-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255,255,255,0.15);
  display: grid;
  place-items: center;
  font-size: 16px;
  flex-shrink: 0;
}

/* Right form panel */
.auth-form-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 24px;
  min-height: 100vh;
}

@media (min-width: 860px) {
  .auth-form-panel {
    padding: 48px 56px;
  }
}

.auth-form-inner {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

/* Mobile brand header */
.auth-mobile-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
}

@media (min-width: 860px) {
  .auth-mobile-brand { display: none; }
}

.auth-mobile-logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--blue-700), var(--violet-600));
  display: grid;
  place-items: center;
  font-family: 'Sora', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--white);
  box-shadow: 0 4px 14px rgba(26,63,160,0.30);
  flex-shrink: 0;
}

.auth-mobile-name {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 17px;
  color: var(--blue-700);
  line-height: 1.2;
}

.auth-mobile-sub {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  margin-top: 2px;
}

/* Auth form card */
.auth-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.auth-card-header {
  margin-bottom: 28px;
}

.auth-card-header h2 {
  font-size: 22px;
  color: var(--text);
  margin-bottom: 6px;
}

.auth-card-header p {
  color: var(--muted);
  font-size: 14px;
}

.auth-tabs {
  display: flex;
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 28px;
  gap: 4px;
}

.auth-tab {
  flex: 1;
  padding: 8px 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.18s;
}

.auth-tab.active {
  background: var(--white);
  color: var(--blue-500);
  box-shadow: var(--shadow-sm);
}

/* ===================================================
   MAIN APP LAYOUT (app.html + admin.html)
   =================================================== */

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

/* ---------- Sidebar ---------- */
.sidebar {
  width: var(--nav-width);
  background: linear-gradient(160deg, var(--blue-800) 0%, var(--blue-700) 50%, var(--violet-700) 100%);
  display: none;
  flex-direction: column;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 100;
  overflow-y: auto;
}

@media (min-width: 900px) {
  .sidebar { display: flex; }
}

.sidebar-brand {
  padding: 28px 20px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  display: grid;
  place-items: center;
  font-family: 'Sora', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}

.sidebar-club {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--white);
  line-height: 1.3;
}

.sidebar-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  margin-top: 2px;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  padding: 12px 8px 6px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: all 0.15s;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.nav-link:hover {
  background: rgba(255,255,255,0.1);
  color: var(--white);
}

.nav-link.active {
  background: rgba(255,255,255,0.15);
  color: var(--white);
}

.nav-link.danger {
  color: rgba(255, 150, 150, 0.85);
}

.nav-link.danger:hover {
  background: rgba(214, 52, 86, 0.2);
  color: #ffaaaa;
}

.nav-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 16px;
  background: rgba(255,255,255,0.08);
  flex-shrink: 0;
}

.nav-link.active .nav-icon {
  background: rgba(255,255,255,0.2);
}

.sidebar-user {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.sidebar-user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-role {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  margin-top: 2px;
}

/* ---------- Top bar (mobile) ---------- */
.topbar {
  height: var(--header-height);
  background: linear-gradient(135deg, var(--blue-800) 0%, var(--blue-700) 60%, var(--violet-700) 100%);
  display: flex;
  align-items: center;
  padding: 0 16px;
  position: sticky;
  top: 0;
  z-index: 50;
  gap: 12px;
  box-shadow: 0 2px 12px rgba(8,20,70,0.18);
}

@media (min-width: 900px) {
  .topbar { display: none; }
}

.topbar-logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.25);
  display: grid;
  place-items: center;
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: var(--white);
  flex-shrink: 0;
}

.topbar-title {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: rgba(255,255,255,0.95);
  flex: 1;
}

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

.topbar .btn-icon {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9);
}

.topbar .btn-icon:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.35);
}

/* ---------- Bottom nav (mobile) ---------- */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--nav-height-mobile);
  background: var(--white);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: stretch;
  z-index: 50;
  box-shadow: 0 -2px 16px rgba(8,20,70,0.10);
  /* safe area para notch de iPhone */
  padding-bottom: env(safe-area-inset-bottom);
}

@media (min-width: 900px) {
  .bottom-nav { display: none; }
}

.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  border: none;
  background: none;
  cursor: pointer;
  transition: color 0.15s;
  padding: 8px 4px;
  position: relative;
}

.bottom-nav-item.active {
  color: var(--blue-500);
}

/* Indicador superior en tab activo */
.bottom-nav-item.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-500), var(--violet-500));
  border-radius: 0 0 3px 3px;
}

.bottom-nav-item:hover { color: var(--blue-600); }

.bottom-nav-icon {
  font-size: 22px;
  line-height: 1;
}

@media (max-width: 420px) {
  .bottom-nav-item {
    font-size: 9px;
    padding: 6px 2px;
  }

  .bottom-nav-icon {
    font-size: 20px;
  }
}

/* ---------- Main content ---------- */
.main-content {
  flex: 1;
  min-width: 0;
  padding-bottom: calc(var(--nav-height-mobile) + env(safe-area-inset-bottom));
}

@media (min-width: 900px) {
  .main-content {
    margin-left: var(--nav-width);
    padding-bottom: 0;
  }
}

.page-header {
  padding: 18px 16px 0;
  max-width: 1000px;
  margin: 0 auto;
}

@media (min-width: 900px) {
  .page-header {
    padding: 32px 32px 0;
  }
}

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

.page-title-group h1 {
  color: var(--text);
  margin-bottom: 4px;
}

.page-title-group p {
  color: var(--muted);
  font-size: 14px;
}

.page-content {
  padding: 0 14px 40px;
  max-width: 1000px;
  margin: 0 auto;
}

@media (min-width: 900px) {
  .page-content {
    padding: 0 32px 40px;
  }
}

.app-view {
  display: grid;
  gap: 20px;
}

.app-view .panel + .panel {
  margin-top: 0;
}

.profile-view-panel {
  width: 100%;
  max-width: 720px;
}

/* ---------- Layout helpers ---------- */
.grid-2 {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.grid-cols-2 {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .grid-cols-2 {
    grid-template-columns: 1fr 1fr;
  }
}

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

/* ===================================================
   COMPONENTS
   =================================================== */

/* ---------- Panel / Card ---------- */
.panel {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.panel + .panel {
  margin-top: 20px;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.panel-header h2 {
  margin: 0;
}

.panel-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

/* ---------- Stat cards ---------- */
.stat-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 600px) {
  .stat-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.stat-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 18px;
  margin-bottom: 10px;
}

.stat-card-icon.blue  { background: var(--blue-50);   }
.stat-card-icon.violet{ background: var(--violet-50); }
.stat-card-icon.green { background: var(--green-100); }
.stat-card-icon.red   { background: var(--red-100);   }
.stat-card-icon.amber { background: var(--amber-100); }

.stat-value {
  font-family: 'Sora', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

/* ---------- Event cards ---------- */
.event-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 12px;
}

.event-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.event-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.event-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.event-card-date {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.event-card-price {
  font-size: 18px;
  font-weight: 800;
  font-family: 'Sora', sans-serif;
  color: var(--blue-600);
}

.event-card-price.free {
  color: var(--green-500);
  font-size: 14px;
  font-weight: 600;
}

.event-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.event-card-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* Admin event cards */
.admin-event-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
}

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

.admin-event-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-event-date {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

.admin-event-stats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.admin-event-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* ---------- Registration row ---------- */
.reg-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.reg-row:last-child { border-bottom: none; }

.reg-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-100), var(--violet-100));
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--blue-600);
  flex-shrink: 0;
}

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

.reg-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reg-detail {
  font-size: 12px;
  color: var(--muted);
  margin-top: 1px;
}

.reg-status {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* ---------- Debt panel ---------- */
.debt-panel {
  background: linear-gradient(135deg, var(--blue-50) 0%, var(--violet-50) 100%);
  border-color: var(--blue-200);
  position: relative;
  overflow: hidden;
}

.debt-panel::after {
  content: '';
  position: absolute;
  right: -20px;
  top: -20px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(26,63,160,0.06);
  pointer-events: none;
}

.debt-panel.has-debt {
  background: linear-gradient(135deg, #fff8ec 0%, var(--amber-100) 100%);
  border-color: var(--amber-500);
}

.debt-amount {
  font-family: 'Sora', sans-serif;
  font-size: clamp(28px, 6vw, 42px);
  font-weight: 800;
  color: var(--blue-700);
  line-height: 1.1;
  margin-bottom: 8px;
}

.debt-panel.has-debt .debt-amount {
  color: var(--amber-500);
}

.debt-actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.debt-actions .primary {
  width: auto;
}

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: 0.01em;
}

.badge-blue   { background: var(--blue-50);   color: var(--blue-600);   }
.badge-violet { background: var(--violet-50); color: var(--violet-600); }
.badge-green  { background: var(--green-100); color: var(--green-500);  }
.badge-red    { background: var(--red-100);   color: var(--red-500);    }
.badge-amber  { background: var(--amber-100); color: var(--amber-500);  }
.badge-gray   { background: var(--bg-2);      color: var(--muted);      }

/* Legacy compat */
.badge-attendance-yes { background: var(--green-100); color: var(--green-500); }
.badge-attendance-no  { background: var(--red-100);   color: var(--red-500);   }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue-500), var(--violet-500));
  color: var(--white);
  box-shadow: 0 4px 14px rgba(31,76,163,0.3);
}

.btn-primary:hover:not(:disabled) {
  box-shadow: 0 6px 20px rgba(31,76,163,0.4);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--white);
  color: var(--blue-600);
  border: 1px solid var(--border-2);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover:not(:disabled) {
  border-color: var(--blue-300);
  background: var(--blue-50);
}

.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border);
}

.btn-ghost:hover:not(:disabled) {
  background: var(--bg);
  border-color: var(--border-2);
}

.btn-danger {
  background: transparent;
  color: var(--red-500);
  border: 1px solid #f5c0cc;
}

.btn-danger:hover:not(:disabled) {
  background: var(--red-100);
}

.btn-success {
  background: var(--green-500);
  color: var(--white);
}

.btn-success:hover:not(:disabled) {
  filter: brightness(1.08);
}

.btn-sm {
  padding: 7px 13px;
  font-size: 12px;
}

.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-2);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 16px;
  transition: all 0.15s;
}

.btn-icon:hover {
  border-color: var(--blue-300);
  background: var(--blue-50);
}

/* Legacy class compat */
.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: linear-gradient(135deg, var(--blue-500), var(--violet-500));
  color: var(--white);
  border: none;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  font-size: 14px;
  box-shadow: 0 4px 14px rgba(31,76,163,0.25);
  transition: all 0.15s;
}

.primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: var(--white);
  border: 1px solid var(--border-2);
  color: var(--text-2);
  border-radius: 999px;
  padding: 9px 16px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s;
}

.ghost:hover {
  border-color: var(--blue-300);
  background: var(--blue-50);
  color: var(--blue-600);
}

/* ---------- Forms ---------- */
.form {
  display: grid;
  gap: 18px;
}

label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  font-size: 13px;
  color: var(--text-2);
}

input,
select,
textarea {
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-2);
  font-size: 14px;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue-400);
  box-shadow: 0 0 0 3px rgba(79,126,245,0.15);
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  cursor: pointer;
}

.checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--blue-500);
  flex-shrink: 0;
  width: auto;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.icon-btn {
  border: 1px solid var(--border-2);
  background: var(--bg);
  color: var(--text-2);
  border-radius: var(--radius-sm);
  padding: 10px;
  cursor: pointer;
  font-size: 15px;
  transition: all 0.15s;
}

.icon-btn:hover {
  background: var(--blue-50);
  border-color: var(--blue-300);
}

.hint {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
  font-weight: 500;
}

.hint.bad  { color: var(--red-500);   }
.hint.good { color: var(--green-500); }

/* Divider */
.form-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  margin: 4px 0;
}

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

/* ---------- Calendar ---------- */
.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.month-label {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 17px;
  color: var(--text);
  text-transform: capitalize;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 6px;
}

.calendar-weekday {
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 0;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  min-height: 280px;
}

.calendar-day {
  min-height: 50px;
  padding: 7px 2px 16px;
  border-radius: 10px;
  background: var(--bg);
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
  color: var(--text);
  border: 1.5px solid transparent;
  -webkit-tap-highlight-color: transparent;
}

.calendar-day:active {
  transform: scale(0.94);
}

.calendar-day:hover {
  background: var(--blue-50);
  border-color: var(--blue-200);
}

.calendar-day.other-month {
  color: var(--muted);
  opacity: 0.38;
}

.calendar-day.today {
  background: var(--blue-50);
  font-weight: 800;
  color: var(--blue-500);
  border-color: var(--blue-300);
}

.calendar-day.today .day-num {
  background: var(--blue-500);
  color: var(--white);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  margin: 0 auto;
}

.calendar-day.active {
  background: var(--blue-100);
  border-color: var(--blue-400);
  color: var(--blue-700);
}

.calendar-day.status-event {
  background: var(--bg-2);
  border-color: var(--border-2);
}

.calendar-day.status-unpaid {
  background: var(--blue-50);
  border-color: var(--blue-300);
}

.calendar-day.status-paid {
  background: var(--green-100);
  border-color: #6ec49a;
}

.calendar-day.status-declined {
  background: var(--red-100);
  border-color: #e898aa;
}

.calendar-day .dot-row {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.calendar-day .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  display: inline-block;
}

.dot-event   { background: var(--muted); }
.dot-unpaid  { background: var(--blue-400); }
.dot-paid    { background: var(--green-500); }
.dot-declined{ background: var(--red-500); }
.dot-more    { font-size: 9px; font-weight: 700; color: var(--muted); }

.calendar-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.calendar-legend .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

/* ---------- Day groups ---------- */
.events-day-group {
  display: grid;
  gap: 10px;
}

.events-day-group + .events-day-group {
  margin-top: 20px;
}

.events-day-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.events-day-cards {
  display: grid;
  gap: 10px;
}

/* ---------- Progress bar ---------- */
.progress-bar {
  height: 6px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 6px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue-500), var(--violet-500));
  border-radius: 99px;
  transition: width 0.4s ease;
}

.progress-fill.green {
  background: var(--green-500);
}

/* ---------- Status / Alerts ---------- */
.status {
  margin-top: 8px;
  font-size: 13px;
  color: var(--blue-500);
  font-weight: 600;
  white-space: pre-line;
}

.status.error { color: var(--red-500); }
.status.ok    { color: var(--green-500); }

.inline-status {
  margin-top: 4px;
  font-size: 12px;
}

.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.alert-warning {
  background: var(--amber-100);
  color: #92670a;
  border: 1px solid #f5d96a;
}

/* ---------- Filters / Toolbar ---------- */
.toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;   /* always one row */
  margin-bottom: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px; /* room for focus ring */
}

.toolbar::-webkit-scrollbar { display: none; }

.toolbar select,
.toolbar input[type="date"] {
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 600;
  background: var(--white);
  border: 1px solid var(--border-2);
  color: var(--text-2);
  white-space: nowrap;
  flex-shrink: 0;       /* never shrink �?" scroll instead */
  min-width: 0;
  max-width: 200px;
}

/* ---------- Google icon ---------- */
.google-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  background:
    radial-gradient(circle at 30% 30%, #ea4335 0 35%, transparent 36%),
    radial-gradient(circle at 70% 30%, #4285f4 0 35%, transparent 36%),
    radial-gradient(circle at 30% 70%, #fbbc05 0 35%, transparent 36%),
    radial-gradient(circle at 70% 70%, #34a853 0 35%, transparent 36%);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ---------- Misc helpers ---------- */
.hidden { display: none !important; }

.muted {
  color: var(--muted);
  font-size: 14px;
}

.small { font-size: 12px; }
.full  { width: 100%; }

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

.admin-users-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.admin-user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
}

.admin-user-main {
  flex: 1;
  min-width: 0;
}

.admin-user-name,
.admin-user-email {
  min-width: 0;
  overflow-wrap: anywhere;
}

.admin-user-name {
  margin-bottom: 4px;
}

.admin-user-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.admin-user-actions {
  flex-shrink: 0;
  margin-top: 0;
}

.cards {
  display: grid;
  gap: 12px;
}

/* admin-only: visibility controlled by JS via classList */


/* Registration card layout (legacy) */
.registration-card  { gap: 10px; }
.registration-row   { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.registration-name  { font-size: 14px; font-weight: 700; line-height: 1.25; }
.registration-emoji { font-size: 20px; margin-left: auto; }
.registration-note  { font-size: 12px; color: var(--muted); font-weight: 600; }
.registration-note.declined { color: var(--red-500); }
.status-emoji       { font-size: 24px; line-height: 1; }

/* ---------- Footer ---------- */
.footer {
  text-align: center;
  padding: 24px 16px;
  color: var(--muted);
  font-size: 13px;
}

.footer a {
  color: var(--blue-500);
  text-decoration: none;
  font-weight: 600;
}

.footer-actions {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ---------- Danger button ---------- */
.danger {
  border-color: #f0a3b0;
  color: var(--red-500);
}

/* ---------- Event price ---------- */
#eventPricePreview {
  font-weight: 700;
  color: var(--blue-600);
}

/* ---------- Sticky filter ---------- */
.sticky-filter {
  position: static;
}

@media (min-width: 900px) {
  .sticky-filter {
    position: sticky;
    top: 12px;
    z-index: 10;
  }
}

/* ===================================================
   EVENT CARD (ec-*)
   =================================================== */

.ec-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.ec-card:active {
  box-shadow: none;
}

.ec-card.ec-card-yes {
  border-color: #6ec49a;
  background: linear-gradient(135deg, var(--white) 60%, #edfbf4);
}

.ec-card.ec-card-no {
  border-color: #e898aa;
  background: linear-gradient(135deg, var(--white) 60%, #fff4f6);
}

.ec-card.ec-card-injured {
  border-color: var(--blue-300);
  background: linear-gradient(135deg, var(--white) 60%, var(--blue-100));
}

.ec-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.ec-left { flex: 1; min-width: 0; }

.ec-date {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blue-500);
  margin-bottom: 4px;
}

.ec-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 4px;
  line-height: 1.2;
}

.ec-desc {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.4;
}

.ec-right {
  text-align: right;
  flex-shrink: 0;
}

.ec-price {
  font-family: 'Sora', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--blue-600);
  line-height: 1;
}

.ec-price-free {
  font-size: 13px;
  font-weight: 700;
  color: var(--green-500);
}

.ec-mandatory {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  background: var(--violet-100);
  color: var(--violet-600);
  border-radius: 99px;
  padding: 2px 8px;
  margin-top: 6px;
  letter-spacing: 0.03em;
}

.ec-bottom {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Status pill */
.ec-status {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 99px;
  white-space: nowrap;
}

.ec-status-ok      { background: var(--green-100); color: var(--green-500); }
.ec-status-pending { background: var(--amber-100); color: var(--amber-500); }
.ec-status-no      { background: var(--red-100);   color: var(--red-500); }
.ec-status-injured { background: var(--blue-100);  color: var(--blue-500); }
.ec-status-neutral { background: var(--bg-2);      color: var(--muted); }

/* Attendance action row */
.ec-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-left: auto;
}

/* Voy / No voy buttons */
.ec-btn-attend {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.15s;
  white-space: nowrap;
}

.ec-btn-yes {
  background: var(--white);
  border-color: var(--border-2);
  color: var(--text-2);
}

.ec-btn-yes:hover {
  border-color: var(--green-500);
  color: var(--green-500);
  background: var(--green-100);
}

.ec-btn-yes-active {
  background: var(--green-500);
  border-color: var(--green-500);
  color: var(--white);
}

.ec-btn-no {
  background: var(--white);
  border-color: var(--border-2);
  color: var(--text-2);
}

.ec-btn-no:hover {
  border-color: var(--red-500);
  color: var(--red-500);
  background: var(--red-100);
}

.ec-btn-no-active {
  background: var(--red-100);
  border-color: var(--red-500);
  color: var(--red-500);
}

.ec-btn-injured {
  background: var(--white);
  border-color: var(--border-2);
  color: var(--text-2);
}

.ec-btn-injured:hover {
  border-color: var(--blue-500);
  color: var(--blue-500);
  background: var(--blue-100);
}

.ec-btn-injured-active {
  background: var(--blue-100);
  border-color: var(--blue-500);
  color: var(--blue-500);
}

/* Pay button */
.ec-btn-pay {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  background: linear-gradient(135deg, var(--blue-500), var(--violet-500));
  color: var(--white);
  box-shadow: 0 3px 10px rgba(26,63,160,0.25);
  transition: all 0.15s;
  white-space: nowrap;
}

.ec-btn-pay:hover {
  box-shadow: 0 5px 16px rgba(26,63,160,0.35);
  transform: translateY(-1px);
}

/* Boton secundario "Cambiar asistencia" / "Cambiar a transferencia" */
.ec-btn-change {
  display: inline-flex;
  align-items: center;
  padding: 7px 13px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--border-2);
  background: var(--white);
  color: var(--muted);
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.ec-btn-change:hover {
  border-color: var(--blue-300);
  color: var(--blue-600);
  background: var(--blue-50);
}

/* ===================================================
   MODAL DE PAGO (proof-modal) �?" sheet desde abajo en mobile
   =================================================== */

.proof-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(4, 12, 36, 0.55);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  backdrop-filter: blur(2px);
}

@media (min-width: 540px) {
  .proof-modal {
    align-items: center;
    padding: 20px;
  }
}

.proof-modal.hidden {
  display: none;
}

.proof-modal-card {
  width: 100%;
  max-width: 520px;
  max-height: 92dvh;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--white);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -4px 40px rgba(4,12,36,0.20);
  display: flex;
  flex-direction: column;
}

@media (min-width: 540px) {
  .proof-modal-card {
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    max-height: min(90vh, 640px);
  }
}

/* --- Cabecera sticky --- */
.proof-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 14px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 2;
  flex-shrink: 0;
}

.proof-modal-head h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.proof-modal-close-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}

.proof-modal-close-btn:hover {
  background: var(--red-100);
  color: var(--red-500);
  border-color: #e898aa;
}

/* --- Concepto + monto --- */
.proof-modal-concept {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: linear-gradient(135deg, var(--blue-50) 0%, var(--violet-50) 100%);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.proof-modal-concept-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.proof-modal-concept-amount {
  font-family: 'Sora', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--blue-600);
  white-space: nowrap;
  flex-shrink: 0;
}

/* --- Caja de datos de transferencia --- */
.proof-transfer-box {
  margin: 14px 18px 0;
  border: 1.5px solid var(--blue-200);
  border-radius: 14px;
  overflow: hidden;
  background: var(--white);
  flex-shrink: 0;
}

.proof-transfer-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding: 8px 14px 6px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.proof-transfer-row {
  display: flex;
  align-items: stretch;
}

.proof-transfer-item {
  flex: 1;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.proof-transfer-divider {
  width: 1px;
  background: var(--border);
  margin: 8px 0;
  flex-shrink: 0;
}

.proof-transfer-item-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.proof-transfer-item-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--blue-700);
  font-family: 'Sora', sans-serif;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* --- Scrolleable body --- */
.proof-modal-scroll {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 14px 18px;
  flex: 1;
  overflow-y: auto;
}

/* --- Metodo de pago --- */
.proof-modal-methods {
  display: grid;
  gap: 8px;
}

.proof-methods-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.proof-debt-only-note {
  font-size: 12px;
  color: var(--blue-700);
  background: var(--blue-50);
  border: 1px solid var(--blue-200);
  border-radius: 8px;
  padding: 8px 10px;
  margin: 0;
  font-weight: 500;
}

.proof-method-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.proof-method-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  cursor: pointer;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  padding: 11px 12px;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.proof-method-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.proof-method-card.is-selected {
  border-color: var(--blue-400);
  background: linear-gradient(135deg, var(--blue-50), #edf2ff);
  box-shadow: 0 0 0 1px rgba(26,63,160,0.10);
}

.proof-method-icon {
  font-size: 18px;
  margin-bottom: 3px;
}

.proof-method-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.proof-method-desc {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}

.proof-method-card.is-selected .proof-method-title {
  color: var(--blue-600);
}

/* --- Upload --- */
.proof-upload-field {
  display: grid;
}

.proof-upload-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.proof-upload-card {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1.5px dashed var(--blue-300);
  border-radius: 12px;
  background: var(--blue-50);
  padding: 13px 14px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.proof-upload-card:hover,
.proof-upload-card:active {
  border-color: var(--blue-500);
  background: var(--blue-100);
}

.proof-upload-icon {
  font-size: 22px;
  flex-shrink: 0;
}

.proof-upload-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.proof-upload-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.proof-upload-name {
  font-size: 12px;
  color: var(--blue-600);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.proof-upload-hint {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
}

.proof-upload-field.is-disabled .proof-upload-card {
  opacity: 0.5;
  background: var(--bg-2);
  border-color: var(--border-2);
  cursor: not-allowed;
}

/* --- Status --- */
#proofModalStatus {
  margin: 0;
}

/* --- Acciones sticky abajo --- */
.proof-modal-actions {
  display: flex;
  gap: 12px;
  padding: 20px 24px 24px;
  border-top: 1px solid var(--border);
  background: var(--white);
  position: sticky;
  bottom: 0;
  flex-shrink: 0;
}

.proof-modal-actions .primary {
  flex: 1;
  justify-content: center;
}

.proof-modal-actions .ghost {
  width: auto;
  flex-shrink: 0;
}

/* safe area iPhone */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .proof-modal-actions {
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
  }
}

/* ===================================================
   ADMIN EVENT CARDS (aev-*)
   =================================================== */

.aev-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 10px;
}

.aev-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.aev-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.aev-title {
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.aev-meta {
  font-size: 12px;
  color: var(--muted);
}

.aev-chips {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.aev-chip {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
  letter-spacing: 0.02em;
}

.aev-chip-blue   { background: var(--blue-50);   color: var(--blue-600);   }
.aev-chip-violet { background: var(--violet-50); color: var(--violet-600); }
.aev-chip-gray   { background: var(--bg-2);      color: var(--muted);      }

.aev-stats {
  display: flex;
  gap: 16px;
}

.aev-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.aev-stat-n {
  font-family: 'Sora', sans-serif;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  color: var(--text);
}

.aev-n-green { color: var(--green-500); }
.aev-n-amber { color: var(--amber-500); }

.aev-stat-l {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.aev-progress {
  display: flex;
  align-items: center;
  gap: 10px;
}

.aev-progress-track {
  flex: 1;
  height: 5px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}

.aev-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue-500), var(--violet-500));
  border-radius: 99px;
  transition: width 0.4s ease;
}

.aev-progress-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}

.aev-actions {
  display: flex;
  gap: 8px;
}

.aev-details {
  border-top: 1px solid var(--border);
  padding-top: 10px;
  display: grid;
  gap: 8px;
}

.aev-details-head {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-2);
}

.aev-details-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.aev-sort-btn {
  width: auto;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
}

.aev-filter-btn {
  width: auto;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
}

.aev-wa-btn {
  width: auto;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
}

.aev-search-input {
  flex: 1;
  min-width: 170px;
  max-width: 280px;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
}

.aev-detail-empty {
  padding: 8px 0;
  font-size: 12px;
  color: var(--muted);
}

/* ===================================================
   REGISTRATIONS LIST (rl-*)
   =================================================== */

.rl-list {
  display: flex;
  flex-direction: column;
}

.rl-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 4px;
  border-bottom: 1px solid var(--border);
  transition: background 0.1s;
}

.rl-row:last-child { border-bottom: none; }
.rl-row:hover { background: var(--bg); border-radius: 8px; }

.rl-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-100), var(--violet-100));
  color: var(--blue-600);
  font-weight: 800;
  font-size: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.rl-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.rl-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rl-email {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rl-proof-link {
  font-size: 11px;
  color: var(--blue-600);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  width: fit-content;
}

.rl-proof-meta {
  font-size: 11px;
  color: var(--muted);
}

.rl-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.rl-status {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 99px;
  white-space: nowrap;
}

.rl-status-ok      { background: var(--green-100); color: var(--green-500); }
.rl-status-pending { background: var(--amber-100); color: var(--amber-500); }
.rl-status-no      { background: var(--red-100);   color: var(--red-500);   }
.rl-status-cash    { background: #fff4e6;          color: #c2410c;          }
.rl-status-injured { background: var(--blue-100);  color: var(--blue-500);  }

.rl-mark-btn {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 99px;
  border: 1.5px solid var(--green-500);
  background: transparent;
  color: var(--green-500);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.rl-mark-btn:hover {
  background: var(--green-500);
  color: var(--white);
}

.rl-profile-btn {
  width: auto;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 99px;
}

.admin-profile-card {
  width: min(620px, 96vw);
}

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

@media (max-width: 599px) {
  .page-header {
    padding: 14px 14px 0;
  }

  /* En mobile el topbar ya da el contexto, ocultar h1 redundante */
  .page-header-inner .page-title-group h1 {
    font-size: 18px;
  }

  .page-content {
    padding: 0 12px 32px;
  }

  .panel {
    padding: 14px;
    border-radius: 14px;
  }

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

  .calendar-grid {
    gap: 3px;
    min-height: 240px;
  }

  .calendar-day {
    min-height: 44px;
    font-size: 12px;
    padding: 6px 2px 14px;
    border-radius: 8px;
  }

  .debt-amount {
    font-size: 28px;
  }

  input, select, textarea {
    font-size: 16px; /* prevent iOS zoom */
  }

  .btn, .primary, .ghost {
    width: 100%;
  }

  .actions {
    width: 100%;
  }

  .admin-event-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .event-card-actions {
    width: 100%;
  }

  .event-card-actions .btn,
  .event-card-actions .primary,
  .event-card-actions .ghost {
    flex: 1;
  }

  .app-view {
    gap: 14px;
  }

  .ec-bottom {
    gap: 8px;
  }

  .admin-user-row {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-user-actions {
    width: 100%;
  }

  .rl-row {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
  }

  .rl-info {
    min-width: calc(100% - 44px);
  }

  .rl-right {
    width: 100%;
    padding-left: 42px;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 6px;
  }

  .rl-right .ghost,
  .rl-right .primary,
  .rl-right .btn,
  .rl-mark-btn,
  .rl-profile-btn {
    width: auto;
    flex: 0 0 auto;
  }

  .rl-status {
    order: -1;
  }
}

/* Prevent full-width buttons on larger screens */
@media (min-width: 600px) {
  .btn:not(.full),
  .primary:not(.full),
  .ghost:not(.full) {
    width: auto;
  }
}

/* ===================================================
   REFINAMIENTOS MOBILE (San Andres �?" v3)
   =================================================== */

/* Botones de asistencia mas grandes en mobile para mejor touch */
@media (max-width: 599px) {
  .ec-btn-attend {
    padding: 9px 16px;
    font-size: 14px;
    flex: 1;
  }

  .ec-btn-pay {
    padding: 9px 16px;
    font-size: 14px;
    width: 100%;
    justify-content: center;
  }

  .ec-actions {
    width: 100%;
    margin-left: 0;
  }

  .ec-bottom {
    flex-direction: column;
    align-items: stretch;
  }

  .ec-status {
    align-self: flex-start;
  }
}

/* Panel header mas compacto en mobile */
@media (max-width: 599px) {
  .panel-header {
    margin-bottom: 14px;
  }

  .panel-header h2 {
    font-size: 16px;
  }
}

/* Animacion suave al abrir la app */
.app-view {
  animation: fadeUp 0.22s ease both;
}

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

/* Chip de estado pill mas visible */
.ec-status-ok {
  background: var(--green-100);
  color: #0d7a40;
}

.ec-status-pending {
  background: var(--amber-100);
  color: #9a6a00;
}

/* Auth page �?" mobile full height brand bar */
@media (max-width: 860px) {
  .auth-form-panel {
    justify-content: flex-start;
    padding-top: 32px;
  }
}

/* Mejor contraste para el topbar azul en links/icons */
a.btn-icon,
button.btn-icon {
  -webkit-tap-highlight-color: transparent;
}

/* Panel header en mobile sin tanto espacio superior */
@media (max-width: 599px) {
  .page-header-inner {
    margin-bottom: 14px;
  }
}

/* ===================================================
   Coach Panel
   =================================================== */
.coach-week-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.coach-attendance-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.coach-panel-collapsed .coach-attendance {
  display: none;
}

.coach-panel-collapsed #coachPlayerSearch {
  display: none;
}

.coach-attendance {
  overflow-x: auto;
}

.coach-attendance table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}

.coach-attendance th,
.coach-attendance td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

.coach-attendance th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.coach-attendance .player-cell {
  min-width: 200px;
}

.coach-attendance .player-name {
  font-weight: 600;
  color: var(--text);
}

.coach-attendance .player-meta {
  display: block;
  font-size: 11px;
  color: var(--muted);
}

.att-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid transparent;
}

.att-pill.yes {
  background: var(--green-100);
  color: var(--green-500);
  border-color: rgba(21, 146, 78, 0.2);
}

.att-pill.no {
  background: var(--red-100);
  color: var(--red-500);
  border-color: rgba(204, 42, 74, 0.2);
}

.att-pill.injured {
  background: var(--blue-100);
  color: var(--blue-500);
  border-color: rgba(26, 63, 160, 0.2);
}

.att-pill.maybe {
  background: var(--amber-100);
  color: var(--amber-500);
  border-color: rgba(196, 142, 0, 0.2);
}

.att-pill.empty {
  background: var(--bg-2);
  color: var(--muted);
  border-color: var(--border);
}

.coach-team-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 16px 0;
}

.coach-tab {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  background: var(--white);
  color: var(--text-2);
  cursor: pointer;
}

.coach-tab.active {
  background: var(--blue-500);
  color: var(--white);
  border-color: var(--blue-500);
}

.coach-teams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.coach-team-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  box-shadow: var(--shadow-sm);
}

.coach-team-card h3 {
  font-size: 14px;
  margin-bottom: 10px;
}

.coach-team-list {
  display: grid;
  gap: 6px;
  font-size: 12px;
}

.coach-team-list span {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.coach-team-editor {
  display: grid;
  gap: 16px;
}

.coach-team-editor.hidden {
  display: none;
}

.coach-team-columns {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.coach-slot {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
}

.coach-slot-index {
  min-width: 34px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.coach-slot select {
  width: 100%;
}

.coach-slot-flag {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--muted);
}

.coach-slot-flag.ok {
  background: var(--green-100);
  color: var(--green-500);
}

.coach-slot-flag.warn {
  background: var(--amber-100);
  color: var(--amber-500);
}

.coach-sub-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

/* Enhancements for Coach Panel */
.coach-events-list {
  display: grid;
  gap: 12px;
}

.coach-event-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.coach-event-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.coach-event-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.coach-event-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
}

.coach-event-meta {
  font-size: 12px;
  color: var(--muted);
}

.coach-available-players {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}

.player-mini-card {
  display: flex;
  flex-direction: column;
  padding: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  gap: 4px;
}

.pmc-name {
  font-weight: 600;
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pmc-meta {
  font-size: 11px;
  color: var(--muted);
}

.pmc-percent {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 99px;
  background: var(--bg-2);
  color: var(--text-2);
}

.pmc-percent.high { background: var(--green-100); color: var(--green-600); }
.pmc-percent.low { background: var(--red-100); color: var(--red-600); }

/* ===================================================
   MODERN EVENT FORM (Glassmorphism & Mobile First)
   =================================================== */

.modern-event-form-container {
  background: linear-gradient(145deg, var(--white), var(--blue-50));
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 8px 32px rgba(14, 46, 106, 0.08);
  border-radius: 16px;
  padding: 24px;
}

.modern-event-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group-glass label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
  font-size: 13px;
  color: var(--text);
}

.label-icon {
  margin-right: 4px;
}

.glass-input {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(14, 46, 106, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 15px;
  color: var(--text);
  transition: all 0.3s ease;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.glass-input:focus {
  background: var(--white);
  border-color: var(--blue-500);
  outline: none;
  box-shadow: 0 0 0 4px rgba(26, 63, 160, 0.1);
  transform: translateY(-1px);
}

.glass-toggles {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(255, 255, 255, 0.4);
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(14, 46, 106, 0.05);
}

.glass-checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 4px 0;
}

.glass-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  border: 2px solid var(--blue-300);
  border-radius: 6px;
  accent-color: var(--blue-600);
  cursor: pointer;
  transition: all 0.2s;
}

.glass-checkbox input[type="checkbox"]:checked {
  border-color: var(--blue-600);
  transform: scale(1.05);
}

.checkbox-label-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
}

.btn-glass-submit {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue-600), var(--violet-600));
  color: var(--white);
  border: none;
  box-shadow: 0 4px 15px rgba(26, 63, 160, 0.3);
  transition: all 0.3s ease;
  margin-top: 8px;
}

.btn-glass-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(26, 63, 160, 0.4);
}

.btn-glass-submit:active {
  transform: translateY(0);
}

/* ─── Calendar Tabs ─── */
.calendar-tabs {
  display: flex;
  gap: 0;
  padding: 0 16px 12px;
  border-bottom: 1px solid var(--border);
}

.calendar-tab-btn {
  flex: 1;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  border: 2px solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.25s ease;
  letter-spacing: 0.02em;
}

.calendar-tab-btn:first-child {
  border-radius: 12px 0 0 12px;
  border-right: none;
}

.calendar-tab-btn:last-child {
  border-radius: 0 12px 12px 0;
  border-left: none;
}

.calendar-tab-btn.active {
  background: linear-gradient(135deg, var(--blue-600), var(--violet-600));
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(26, 63, 160, 0.35);
}

.calendar-tab-btn:not(.active):hover {
  background: var(--surface);
  color: var(--text);
}

/* ─── Admin Edit Button ─── */
.rl-edit-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  padding: 4px 6px;
  border-radius: 6px;
  opacity: 0.5;
  transition: opacity 0.2s, background 0.2s;
}

.rl-edit-btn:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
}

/* ─── Coach Mobile UI ─── */
.coach-card {
  margin-bottom: 16px;
}

/* Day selector chips */
.coach-day-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.coach-day-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 6px;
  border: 2px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  transition: all 0.2s ease;
  text-align: center;
}

.coach-day-chip input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--blue-600);
  cursor: pointer;
}

.coach-day-chip:has(input:checked) {
  border-color: var(--blue-600);
  background: rgba(26, 63, 160, 0.1);
  color: var(--blue-600);
}

/* Week navigation bar */
.coach-week-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.coach-week-nav .badge {
  flex: 1;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Team action buttons */
.coach-team-actions {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Coach event detail (expandable) */
.coach-event-detail {
  border-top: 1px solid var(--border);
  margin-top: 12px;
  padding-top: 12px;
}

.coach-detail-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.coach-detail-filter-btn {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
}

.coach-detail-filter-active {
  font-weight: 700;
  background: var(--bg-2);
}

.coach-detail-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 280px;
  overflow-y: auto;
}

.coach-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  border-radius: var(--radius-sm, 6px);
  background: var(--bg-2);
}

.coach-detail-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-right: 8px;
}

@media (max-width: 480px) {
  .coach-day-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .coach-team-actions {
    flex-direction: column;
  }
  .coach-week-nav .badge {
    font-size: 12px;
  }
  .coach-detail-filters {
    gap: 4px;
  }
  .coach-detail-filter-btn {
    font-size: 11px;
    padding: 3px 8px;
  }
}
