/* ============================================================
   RivalConnect – Complete Stylesheet
   ============================================================ */

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

:root {
  --green-dark:  #1a5c2a;
  --green:       #2e7d32;
  --green-mid:   #388e3c;
  --green-light: #4caf50;
  --green-pale:  #e8f5e9;
  --blue-dark:   #0d47a1;
  --blue:        #1565c0;
  --blue-pale:   #e3f2fd;
  --red:         #d32f2f;
  --red-dark:    #b71c1c;
  --accent:      #ffcc02;
  --white:       #ffffff;
  --gray-50:     #f9fafb;
  --gray-100:    #f3f4f6;
  --gray-200:    #e5e7eb;
  --gray-400:    #9ca3af;
  --gray-600:    #4b5563;
  --gray-800:    #1f2937;
  --radius:      12px;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.08);
  --shadow-md:   0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:   0 8px 32px rgba(0,0,0,.14);
  --t:           0.18s ease;
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--gray-800); background: var(--white); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.req { color: #c62828; }
.helper-text { font-size: 0.82rem; color: var(--gray-400); margin-top: 4px; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 10px 22px; border-radius: 8px;
  font-size: 0.95rem; font-weight: 600;
  border: 2px solid transparent; transition: all var(--t);
}
.btn-primary { background: var(--green); color: #fff; border-color: var(--green); }
.btn-primary:hover { background: var(--green-dark); border-color: var(--green-dark); }
.btn-outline  { background: transparent; color: var(--green); border-color: var(--green); }
.btn-outline:hover { background: var(--green-pale); }
.btn-white    { background: #fff; color: var(--green-dark); border-color: #fff; }
.btn-white:hover { background: var(--green-pale); }
.btn-lg { padding: 14px 32px; font-size: 1.05rem; border-radius: 10px; }
.btn-sm { padding: 7px 16px; font-size: 0.85rem; }

/* ── Navbar ── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: #fff; border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  max-width: 1160px; margin: 0 auto; padding: 0 24px;
  height: 64px; display: flex; align-items: center; gap: 32px;
}
.logo { display: flex; align-items: center; gap: 8px; font-size: 1.3rem; font-weight: 800; color: var(--green-dark); }
.logo-icon { font-size: 1.4rem; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { font-size: 0.95rem; font-weight: 500; color: var(--gray-600); transition: color var(--t); }
.nav-links a:hover { color: var(--green); }
.nav-actions { margin-left: 24px; display: flex; gap: 8px; align-items: center; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 4px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--gray-800); border-radius: 2px; }
.nav-mobile-only { display: none; }

/* ── Hero ── */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 60%, var(--green-mid) 100%);
  color: #fff; padding: 100px 0 80px; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; opacity: .06; pointer-events: none; }
.pitch-lines {
  width: 100%; height: 100%;
  background-image: linear-gradient(white 1px, transparent 1px), linear-gradient(90deg, white 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-content { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.hero-badge {
  display: inline-block; background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3); padding: 6px 16px;
  border-radius: 20px; font-size: 0.85rem; font-weight: 600;
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; line-height: 1.15; max-width: 700px; }
.hero-sub { font-size: 1.1rem; color: rgba(255,255,255,.85); max-width: 560px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.hero .btn-outline { border-color: rgba(255,255,255,.6); color: #fff; }
.hero .btn-outline:hover { background: rgba(255,255,255,.12); }
.hero-stats { display: flex; gap: 48px; margin-top: 20px; flex-wrap: wrap; justify-content: center; }
.stat { display: flex; flex-direction: column; align-items: center; }
.stat-num { font-size: 1.8rem; font-weight: 800; color: var(--accent); }
.stat-label { font-size: 0.8rem; color: rgba(255,255,255,.75); margin-top: 2px; }

/* ── Features ── */
.features { padding: 80px 0; background: var(--gray-50); }
.features h2, .upcoming h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; text-align: center; }
.section-sub { text-align: center; color: var(--gray-600); margin-top: 8px; max-width: 560px; margin-inline: auto; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; margin-top: 48px; }
.feature-card {
  background: #fff; border-radius: var(--radius); padding: 28px 24px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200);
  transition: transform var(--t), box-shadow var(--t);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-icon { font-size: 2.2rem; margin-bottom: 14px; }
.feature-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p  { font-size: 0.9rem; color: var(--gray-600); line-height: 1.6; }

/* ── Upcoming / Match List ── */
.upcoming { padding: 80px 0; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; flex-wrap: wrap; gap: 12px; }
.match-list { display: flex; flex-direction: column; gap: 16px; }
.match-card {
  display: flex; align-items: center; gap: 20px; background: #fff;
  border: 1px solid var(--gray-200); border-radius: var(--radius);
  padding: 20px 24px; box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t); cursor: pointer;
}
.match-card:hover { box-shadow: var(--shadow-md); }
.match-date {
  display: flex; flex-direction: column; align-items: center;
  min-width: 56px; background: var(--green-pale); border-radius: 10px; padding: 10px 12px;
}
.match-date .day   { font-size: .68rem; font-weight: 700; color: var(--green); letter-spacing: 1px; }
.match-date .num   { font-size: 1.6rem; font-weight: 800; color: var(--green-dark); line-height: 1; }
.match-date .month { font-size: .68rem; font-weight: 700; color: var(--green); letter-spacing: 1px; }
.match-info { flex: 1; }
.match-info h3 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.match-info p  { font-size: 0.85rem; color: var(--gray-600); margin-bottom: 2px; }
.match-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.tag { font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.tag-match     { background: #e3f2fd; color: #1565c0; }
.tag-scrimmage { background: #fff8e1; color: #f57f17; }
.tag-session   { background: #f3e5f5; color: #6a1b9a; }
.match-status { font-size: .78rem; font-weight: 600; }
.status-confirmed { color: var(--green); }
.status-pending   { color: #f57c00; }
.status-cancelled { color: #c62828; }

/* ── Field Cards ── */
.field-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.field-card {
  background: #fff; border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200);
  display: flex; flex-direction: column; gap: 10px;
  transition: box-shadow var(--t);
}
.field-card:hover { box-shadow: var(--shadow-md); }
.field-card-header { display: flex; justify-content: space-between; align-items: center; }
.field-card-header h3 { font-size: 1.1rem; font-weight: 800; color: var(--green); }
.field-number-badge {
  background: var(--green); color: #fff; font-size: 0.72rem;
  font-weight: 700; padding: 3px 10px; border-radius: 12px;
}
.field-address { font-size: 0.85rem; color: var(--gray-600); }
.field-details { display: flex; gap: 16px; font-size: 0.85rem; color: var(--gray-600); }
.time-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.time-chip {
  background: var(--green-pale); color: var(--green);
  font-size: 0.78rem; font-weight: 700; padding: 4px 12px;
  border-radius: 20px; border: 1px solid var(--green);
}
.field-price { font-size: 1.1rem; font-weight: 800; color: var(--green); border-top: 1px solid var(--gray-200); padding-top: 10px; }
.field-card .btn { margin-top: 4px; }

/* ── CTA Banner ── */
.cta-banner {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: #fff; text-align: center; padding: 80px 24px;
}
.cta-banner h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }
.cta-banner p  { color: rgba(255,255,255,.85); margin: 12px 0 28px; font-size: 1.05rem; }

/* ── Footer ── */
.footer { background: var(--gray-800); color: #fff; padding: 56px 0 0; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-brand p { margin-top: 8px; color: var(--gray-400); font-size: .9rem; }
.footer-brand .logo-text { font-size: 1.2rem; font-weight: 800; }
.footer-nav h3 { font-size: .85rem; font-weight: 700; letter-spacing: .8px; color: var(--gray-400); text-transform: uppercase; margin-bottom: 14px; }
.footer-nav ul { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a  { font-size: .9rem; color: var(--gray-400); transition: color var(--t); }
.footer-nav a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); text-align: center; padding: 20px; font-size: .82rem; color: var(--gray-400); }

/* ── Page Header ── */
.page-header {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: #fff; padding: 56px 24px; text-align: center;
}
.page-header h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; }
.page-header p  { color: rgba(255,255,255,.8); margin-top: 8px; }

/* ── Form Cards ── */
.form-card {
  background: #fff; border-radius: var(--radius); padding: 32px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200);
}
.section-card-title { font-size: 1.05rem; font-weight: 800; margin-bottom: 20px; color: var(--gray-800); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
label { font-size: .88rem; font-weight: 600; color: var(--gray-800); }
input, select, textarea {
  padding: 11px 14px; border: 1.5px solid var(--gray-200);
  border-radius: 8px; font-size: .95rem; font-family: inherit;
  color: var(--gray-800); background: #fff; transition: border-color var(--t); width: 100%;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--green-light);
  box-shadow: 0 0 0 3px rgba(76,175,80,.15);
}
textarea { resize: vertical; min-height: 80px; }

/* ── Chips ── */
.chip-group { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.chip {
  padding: 8px 16px; border-radius: 8px; border: 1.5px solid var(--gray-200);
  background: #fff; font-size: .88rem; font-weight: 600; color: var(--gray-600);
  transition: all var(--t);
}
.chip:hover       { border-color: var(--green-light); color: var(--green); }
.chip.selected    { background: var(--green); border-color: var(--green); color: #fff; }
.chip.multi-selected { background: var(--green); border-color: var(--green); color: #fff; }

/* ── Role Buttons ── */
.role-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.role-btn {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 20px 12px; border-radius: 10px; border: 2px solid var(--gray-200);
  background: #fff; font-size: .95rem; font-weight: 700; color: var(--gray-600);
  transition: all var(--t);
}
.role-btn:hover  { border-color: var(--green-light); color: var(--green); }
.role-btn.active { background: var(--green); border-color: var(--green); color: #fff; }
.role-icon { font-size: 1.8rem; }

/* ── Team Header ── */
.team-header {
  padding: 12px 16px; border-radius: 8px;
  font-size: 1rem; font-weight: 800; color: #fff; text-align: center;
}
.team-header-blue { background: var(--blue); }
.team-header-green { background: var(--green); }

/* ── Upload ── */
.upload-label {
  display: flex; align-items: center; justify-content: center;
  padding: 14px; border-radius: 8px; background: var(--blue);
  color: #fff; font-weight: 700; cursor: pointer; font-size: .95rem;
  transition: background var(--t);
}
.upload-label:hover { background: var(--blue-dark); }

/* ── Notice Boxes ── */
.notice-box { padding: 14px 16px; border-radius: 10px; font-size: .9rem; font-weight: 500; }
.notice-yellow { background: #fff9c4; color: #856404; border-left: 4px solid #f57f17; }
.notice-green  { background: #c8e6c9; color: #1b5e20; border-left: 4px solid var(--green); }
.notice-red    { background: #ffcdd2; color: #721c24; border-left: 4px solid #c62828; }
.notice-blue   { background: var(--blue-pale); color: #0d47a1; border-left: 4px solid var(--blue); }
.notice-gray   { background: var(--gray-100); color: var(--gray-600); }

/* ── Alerts ── */
.alert { padding: 14px 18px; border-radius: 8px; font-size: .9rem; font-weight: 500; margin-bottom: 20px; }
.alert-success { background: #e8f5e9; color: var(--green); border-left: 4px solid var(--green); }
.alert-error   { background: #ffebee; color: #c62828; border-left: 4px solid #c62828; }

/* ── Auth Page ── */
.auth-page { background: linear-gradient(135deg, var(--green-dark), var(--green)); min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.auth-container { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 20px; }
.auth-brand { text-align: center; }
.auth-card { background: #fff; border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow-lg); }
.demo-box { background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25); border-radius: 10px; padding: 16px; color: rgba(255,255,255,.85); font-size: .82rem; line-height: 1.8; }

/* ── Admin Tabs ── */
.admin-tabs { display: flex; background: #fff; border-bottom: 1px solid var(--gray-200); }
.admin-tab {
  flex: 1; padding: 16px; text-align: center; font-size: .9rem; font-weight: 600;
  color: var(--gray-600); background: none; border: none;
  border-bottom: 3px solid transparent; transition: all var(--t);
}
.admin-tab:hover  { color: var(--red); }
.admin-tab.active { color: var(--red); border-bottom-color: var(--red); }

/* ── Admin Cards ── */
.admin-card {
  background: #fff; border-radius: var(--radius); padding: 20px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200); margin-bottom: 16px;
}
.admin-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.admin-card-title { font-size: 1.05rem; font-weight: 700; color: var(--gray-800); }
.role-badge { padding: 3px 10px; border-radius: 12px; font-size: .72rem; font-weight: 700; }
.badge-coach   { background: var(--green); color: #fff; }
.badge-referee { background: var(--blue); color: #fff; }
.badge-admin   { background: var(--red); color: #fff; }
.badge-facility_manager { background: #6a1b9a; color: #fff; }
.admin-card-row { display: flex; justify-content: space-between; font-size: .88rem; margin-bottom: 6px; }
.admin-card-row span:first-child { color: var(--gray-600); font-weight: 600; }
.admin-card-row span:last-child  { color: var(--gray-800); font-weight: 700; }
.action-buttons { display: flex; gap: 10px; margin-top: 16px; }
.action-buttons .btn { flex: 1; justify-content: center; }
.btn-approve { background: var(--green); color: #fff; border-color: var(--green); }
.btn-approve:hover { background: var(--green-dark); }
.btn-reject  { background: #c62828; color: #fff; border-color: #c62828; }
.btn-reject:hover  { background: #b71c1c; }
.teams-box { background: var(--gray-50); padding: 12px; border-radius: 8px; margin: 10px 0; font-size: .88rem; }
.teams-box .vs { text-align: center; color: var(--gray-400); font-size: .8rem; margin: 6px 0; }
.referee-box { background: var(--blue-pale); padding: 12px; border-radius: 8px; margin-top: 10px; font-size: .88rem; }
.status-badge { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: .75rem; font-weight: 700; margin-top: 8px; }
.badge-confirmed { background: #c8e6c9; color: var(--green); }
.badge-pending   { background: #fff9c4; color: #f57f17; }
.badge-open      { background: #e3f2fd; color: var(--blue); }
.badge-rejected  { background: #ffcdd2; color: #c62828; }
.assign-btn { background: var(--blue); color: #fff; border-color: var(--blue); font-size: .85rem; padding: 8px 14px; }
.assign-btn:hover { background: var(--blue-dark); }

/* ── Profile Info Rows ── */
.info-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--gray-100); font-size: .9rem; }
.info-row:last-child { border-bottom: none; }
.info-row .lbl { color: var(--gray-600); font-weight: 600; }
.info-row .val { color: var(--gray-800); font-weight: 700; text-align: right; }

/* ── Empty State ── */
.empty-state { text-align: center; padding: 48px 20px; color: var(--gray-400); }
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 12px; }

/* ── Modal ── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  display: flex; align-items: center; justify-content: center;
  padding: 24px; z-index: 999;
}
.modal-box {
  background: #fff; border-radius: var(--radius); padding: 28px;
  width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.referee-option {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px; background: var(--gray-50); border-radius: 8px;
  margin-bottom: 10px; cursor: pointer; border: 2px solid transparent;
  transition: border-color var(--t);
}
.referee-option:hover { border-color: var(--green); }
.referee-option-name  { font-size: .95rem; font-weight: 700; color: var(--gray-800); }
.referee-option-sub   { font-size: .82rem; color: var(--gray-600); }

/* ── Rankings Tabs ── */
.rankings-tab {
  padding: 10px 24px; font-size: .95rem; font-weight: 700;
  color: var(--gray-600); background: none; border: none;
  border-bottom: 3px solid transparent; cursor: pointer;
  transition: all var(--t); margin-bottom: -2px;
}
.rankings-tab:hover  { color: var(--green); }
.rankings-tab.active { color: var(--green); border-bottom-color: var(--green); }

/* ── Top Scorers Table ── */
.scorers-table {
  width: 100%; border-collapse: collapse; background: #fff;
  border: 1px solid var(--gray-200); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); margin-bottom: 32px;
}
.scorers-table th {
  background: var(--gray-50); font-size: .78rem; font-weight: 700;
  color: var(--gray-600); text-transform: uppercase; letter-spacing: .5px;
  padding: 10px 16px; border-bottom: 1px solid var(--gray-200); text-align: left;
}
.scorers-table td { padding: 12px 16px; border-bottom: 1px solid var(--gray-100); font-size: .9rem; }
.scorers-table tr:last-child td { border-bottom: none; }
.scorers-table tr:hover td { background: var(--gray-50); }
.scorer-goals { font-size: 1.1rem; font-weight: 800; color: var(--green); }

/* ── Goal entry chip ── */
.goal-entry {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; background: var(--green-pale); border-radius: 8px;
  margin-bottom: 8px; font-size: .88rem; font-weight: 600; color: var(--green-dark);
}
.goal-entry button { background: none; border: none; color: #c62828; cursor: pointer; font-size: 1rem; font-weight: 700; }

/* ── Rankings Table ── */
.rankings-group { margin-bottom: 40px; }
.rankings-group-title {
  font-size: 1rem; font-weight: 800; color: var(--gray-800);
  padding: 10px 16px; background: var(--gray-100);
  border-radius: 8px 8px 0 0; border: 1px solid var(--gray-200);
  border-bottom: none; display: flex; align-items: center; gap: 10px;
}
.rankings-table {
  width: 100%; border-collapse: collapse;
  background: #fff; border: 1px solid var(--gray-200);
  border-radius: 0 0 8px 8px; overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.rankings-table th {
  background: var(--gray-50); font-size: .78rem; font-weight: 700;
  color: var(--gray-600); text-transform: uppercase; letter-spacing: .5px;
  padding: 10px 14px; text-align: center; border-bottom: 1px solid var(--gray-200);
}
.rankings-table th:first-child { text-align: left; }
.rankings-table td {
  padding: 12px 14px; font-size: .9rem; text-align: center;
  border-bottom: 1px solid var(--gray-100); color: var(--gray-800);
}
.rankings-table td:first-child { text-align: left; font-weight: 700; }
.rankings-table tr:last-child td { border-bottom: none; }
.rankings-table tr:hover td { background: var(--gray-50); }
.rank-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  font-size: .82rem; font-weight: 800; margin-right: 8px;
}
.rank-1 { background: #ffd700; color: #7a5c00; }
.rank-2 { background: #c0c0c0; color: #444; }
.rank-3 { background: #cd7f32; color: #fff; }
.rank-n { background: var(--gray-100); color: var(--gray-600); }
.td-win  { color: var(--green); font-weight: 800; }
.td-loss { color: #c62828; font-weight: 800; }
.td-draw { color: #f57c00; font-weight: 700; }
.td-pts  { font-size: 1rem; font-weight: 800; color: var(--gray-800); }

/* ── Open Slot Rows ── */
.open-slot-row:hover { border-color: var(--green-light) !important; background: var(--green-pale) !important; }
.slot-selected { border-color: var(--green) !important; background: var(--green-pale) !important; }

/* ── Player Roster ── */
.player-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid var(--gray-100);
}
.player-row:last-child { border-bottom: none; }
.player-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--green-pale); display: flex; align-items: center;
  justify-content: center; font-size: 1.2rem; flex-shrink: 0;
  border: 2px solid var(--green-light);
}
.player-info { flex: 1; }
.player-name  { font-size: .95rem; font-weight: 700; color: var(--gray-800); }
.player-meta  { font-size: .78rem; color: var(--gray-600); margin-top: 2px; }
.player-badge {
  font-size: .7rem; font-weight: 700; padding: 2px 8px;
  border-radius: 12px; background: var(--blue-pale); color: var(--blue); margin-left: 6px;
}
.roster-locked { pointer-events: none; opacity: .7; }
.lock-banner {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px;
  background: #fff3e0; border-left: 4px solid #e65100; border-radius: 10px;
  font-size: .9rem; font-weight: 600; color: #e65100;
}

/* ── Check-In Status ── */
.checkin-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0; border-bottom: 1px solid var(--gray-100); font-size: .9rem;
}
.checkin-row:last-child { border-bottom: none; }
.checkin-dot {
  width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0;
}
.dot-green  { background: var(--green-light); }
.dot-gray   { background: var(--gray-200); }
.dot-yellow { background: #ffcc02; }

/* ── Roster Verify ── */
.roster-verify-team {
  padding: 16px; border: 2px solid var(--gray-200); border-radius: 10px; margin-bottom: 12px;
}
.roster-verify-team.verified { border-color: var(--green-light); background: var(--green-pale); }

/* ── Responsive ── */
/* ── FAQ ── */
.faq-jump { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:24px; }
.faq-jump .chip { text-decoration:none; min-height:44px; display:inline-flex; align-items:center; }
.faq-group { margin-bottom:28px; scroll-margin-top:80px; }
.faq-group h2 { font-size:1.25rem; font-weight:800; margin-bottom:12px; color:var(--gray-800); }
.faq-item { background:#fff; border:1px solid var(--gray-200); border-radius:10px; margin-bottom:10px; }
.faq-item summary { cursor:pointer; list-style:none; padding:14px 44px 14px 16px; min-height:44px; font-weight:700; font-size:.95rem; position:relative; }
.faq-item summary::-webkit-details-marker { display:none; }
.faq-item summary::after { content:'+'; position:absolute; right:16px; top:50%; transform:translateY(-50%); font-size:1.3rem; font-weight:700; color:var(--green); }
.faq-item[open] summary::after { content:'\2212'; }
.faq-item[open] summary { border-bottom:1px solid var(--gray-100); }
.faq-item p, .faq-item ul { padding:12px 16px 4px; font-size:.92rem; color:var(--gray-600); line-height:1.65; }
.faq-item ul { margin:0 0 0 18px; padding-bottom:8px; }
.faq-item > :last-child { padding-bottom:14px; }
.faq-item a { color:var(--green); font-weight:700; }

/* ── Rankings: scroll wide tables inside their own box, highlight my team ── */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.my-team-row td { background: #e8f5e9; }
.you-tag { display:inline-block; margin-left:6px; padding:1px 8px; border-radius:20px; background:var(--green); color:#fff; font-size:.7rem; font-weight:800; vertical-align:middle; }

/* ── Virtual blocks ── */
.vb-block { border:1px solid var(--gray-200); border-radius:10px; margin-bottom:14px; overflow:hidden; background:#fff; }
.vb-block-head { display:flex; justify-content:space-between; gap:8px; flex-wrap:wrap; padding:10px 12px; background:var(--gray-50); font-size:.88rem; }
.vb-slot { display:flex; align-items:center; gap:12px; padding:10px 12px; border-top:1px solid var(--gray-100); min-height:44px; font-size:.9rem; }
.vb-time { min-width:72px; font-weight:800; font-size:.82rem; color:var(--gray-600); }
.vb-slot .btn { margin-left:auto; min-height:44px; }
.vb-empty { color:var(--gray-400); }
.vb-closed { color:var(--gray-400); background:var(--gray-100); text-decoration:line-through; }
.vb-span { grid-column:1 / -1; margin:0; }
.vb-booking { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 0; border-top:1px solid var(--gray-100); }
.vb-booking-main { display:flex; flex-direction:column; gap:2px; min-width:0; font-size:.9rem; }
.vb-booking-main small { color:var(--gray-500); }
.vb-booking .btn { min-height:44px; flex-shrink:0; }
.vb-booking-actions { display:flex; flex-wrap:wrap; gap:8px; flex-shrink:0; }
#matchDate { min-height:44px; width:100%; }
.vb-ledger { display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap; padding:10px 0; border-top:1px solid var(--gray-100); font-size:.9rem; }
.vb-ledger small { color:var(--gray-500); width:100%; }
.vb-open { background:#f6fbf6; }
.vb-full { background:var(--gray-50); }
.vb-note { margin-left:auto; color:var(--gray-500); }
.vb-assign { display:flex; gap:10px; padding:10px 12px; }
.vb-assign select { flex:1; min-height:44px; }
.vb-assign-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; align-items:end; }
.vb-assign-grid label { display:flex; flex-direction:column; gap:4px; font-size:.82rem; font-weight:700; min-width:0; }
.vb-assign-grid input, .vb-assign-grid select { min-height:44px; width:100%; }
.vb-assign-grid .btn { min-height:44px; grid-column:1 / -1; }


@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }
  .nav-links.open .nav-mobile-only { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 64px; left: 0; right: 0;
    background: #fff; padding: 16px 24px; border-bottom: 1px solid var(--gray-200);
    gap: 16px; box-shadow: var(--shadow-md);
  }
  .hero { padding: 60px 0 50px; }
  .hero-stats { gap: 24px; }
  .feature-grid { grid-template-columns: 1fr; }
  .match-card { flex-wrap: wrap; }
  .match-meta { width: 100%; flex-direction: row; justify-content: flex-start; }
  .footer-inner { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: 1; }
  .role-grid { grid-template-columns: 1fr; }
  .admin-tabs .admin-tab { padding: 12px 8px; font-size: .8rem; }
  .vb-booking { flex-direction: column; align-items: stretch; }
  .vb-booking .btn { width: 100%; }
  .vb-booking-actions { flex-direction: column; }
  .vb-slot { flex-wrap: wrap; }
  .vb-slot .btn { width: 100%; }
  .vb-assign { flex-direction: column; align-items: stretch; }
  .vb-assign-grid { grid-template-columns: 1fr; }
}

/* ── Verification badges (coach-verification) ── */
.vbadge { display:inline-flex; align-items:center; gap:4px; padding:5px 12px; border-radius:20px;
  font-size:.78rem; font-weight:800; line-height:1; min-height:28px; }
.vbadge-unverified { background:#fff8e1; color:#f57c00; border:1px solid #ffe0a3; }
.vbadge-pending    { background:#fff3e0; color:#e65100; border:1px solid #ffcc80; }
.vbadge-verified   { background:#e8f5e9; color:#2e7d32; border:1px solid #a5d6a7; }
.vbadge-rejected   { background:#ffebee; color:#c62828; border:1px solid #ef9a9a; }

/* ── Team reputation (Fair Play Score) ───────────────────── */
.rep-badge { display:inline-block; padding:3px 10px; border-radius:12px; font-size:.75rem; font-weight:700; white-space:nowrap; }
.rep-excellent { background:#e8f5e9; color:#2e7d32; border:1px solid #a5d6a7; }
.rep-good      { background:#e3f2fd; color:#1565c0; border:1px solid #90caf9; }
.rep-warning   { background:#fff3e0; color:#e65100; border:1px solid #ffcc80; }
.rep-high-risk { background:#ffebee; color:#c62828; border:1px solid #ef9a9a; }
.rep-new       { background:#f1f3f5; color:#495057; border:1px solid #ced4da; }
.rep-line { display:flex; flex-wrap:wrap; align-items:center; gap:6px 12px; font-size:.78rem; color:var(--gray-600); margin-top:4px; }
.rep-panel { margin-top:12px; padding:12px; background:var(--gray-50); border:1px solid var(--gray-200); border-radius:10px; }
.rep-panel-head { display:flex; align-items:center; gap:14px; margin-bottom:10px; }
.rep-score { font-size:2rem; font-weight:800; line-height:1; min-width:56px; text-align:center; }
.rep-panel-title { font-size:.82rem; font-weight:700; color:var(--gray-600); margin-bottom:4px; }
.rep-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(110px, 1fr)); gap:8px; }
.rep-cell { display:flex; flex-direction:column; gap:2px; font-size:.78rem; color:var(--gray-600); }
.rep-cell strong { font-size:.95rem; color:var(--gray-800); }
.rep-filters { display:grid; grid-template-columns:repeat(auto-fit, minmax(160px, 1fr)); gap:10px; margin-bottom:14px; }
.rep-filters label { display:flex; flex-direction:column; gap:4px; font-size:.78rem; font-weight:700; color:var(--gray-600); }
.rep-filters select { min-height:44px; font-size:.9rem; }
.rate-box { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-top:12px; padding-top:12px; border-top:1px solid var(--gray-200); font-size:.85rem; }
.rate-box select, .rate-box .btn { min-height:44px; }
.discipline-card { margin-bottom:24px; }
.discipline-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(130px, 1fr)); gap:12px; margin-bottom:12px; }
.discipline-checks label { display:flex; align-items:center; gap:10px; min-height:44px; font-size:.9rem; font-weight:600; }
.discipline-checks input { width:20px; height:20px; accent-color:var(--green); }
.discipline-preview { margin-top:10px; padding:10px 12px; border-radius:8px; background:var(--gray-50); font-size:.85rem; }

/* ── Confirmation pop-up (withdrawals) ───────────────────── */
.modal-overlay { position:fixed; inset:0; background:rgba(0,0,0,.55); display:flex; align-items:center; justify-content:center; padding:16px; z-index:1000; }
.modal-box { background:#fff; border-radius:12px; padding:20px; width:100%; max-width:440px; max-height:90vh; overflow-y:auto; }
.modal-title { font-size:1.1rem; font-weight:800; margin:0 0 12px; }
.modal-text { font-size:.92rem; line-height:1.5; margin:0 0 10px; color:var(--gray-800); }
.modal-check { display:flex; gap:10px; align-items:flex-start; font-size:.9rem; font-weight:600; margin:14px 0; min-height:44px; cursor:pointer; }
.modal-check input { width:22px; height:22px; flex-shrink:0; margin-top:2px; accent-color:#c62828; }
.modal-actions { display:flex; flex-wrap:wrap; gap:10px; justify-content:flex-end; margin-top:16px; }
.modal-actions .btn { min-height:44px; flex:1 1 140px; }
.btn-danger { background:#c62828; color:#fff; border-color:#c62828; }
.btn-danger:disabled { opacity:.45; cursor:not-allowed; }

/* ── Book a Match hub ────────────────────────────────────── */
.book-options { display:grid; grid-template-columns:repeat(auto-fit, minmax(240px, 1fr)); gap:12px; }
.book-option { display:flex; flex-direction:column; align-items:flex-start; gap:8px; padding:14px; border:1px solid var(--gray-200); border-radius:10px; background:var(--gray-50); }
.book-option p { margin:0; font-size:.88rem; line-height:1.5; color:var(--gray-600); }
.book-option .btn { min-height:44px; margin-top:auto; }

.chip.chip-disabled, .chip:disabled { opacity:.45; cursor:not-allowed; text-decoration:line-through; }
#timeChips .chip { min-height:44px; }
