/* =====================================================
   RefereeNow PublicWeb — Global CSS
   ===================================================== */

:root {
  --primary: #1E3A5F;
  --primary-light: #2E6DA4;
  --primary-dark: #152B47;
  --accent: #F59E0B;
  --accent-light: #FCD34D;
  --success: #10B981;
  --danger: #EF4444;
  --warning: #F59E0B;
  --info: #3B82F6;
  --bg: #F8FAFC;
  --white: #FFFFFF;
  --text-primary: #1F2937;
  --text-secondary: #6B7280;
  --text-muted: #9CA3AF;
  --border: #E5E7EB;
  --border-dark: #D1D5DB;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --navbar-height: 64px;
}

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

html, body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.main-content {
  min-height: calc(100vh - var(--navbar-height));
}

/* ── Buttons ───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .55rem 1.2rem;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 500;
  cursor: pointer;
  border: 1.5px solid transparent;
  text-decoration: none;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--primary-dark); }
.btn-outline { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-outline:hover:not(:disabled) { background: var(--primary); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-accent:hover:not(:disabled) { background: #d97706; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover:not(:disabled) { background: #b91c1c; }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover:not(:disabled) { background: #f1f5f9; }
.btn-lg { padding: .75rem 1.75rem; font-size: 1rem; }
.btn-sm { padding: .35rem .85rem; font-size: .82rem; }
.btn-full { width: 100%; }

/* ── Cards ─────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

/* ── Forms ─────────────────────────────────────────── */
.form-group { margin-bottom: 1rem; }
.form-label {
  display: block;
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: .4rem;
}
.form-control {
  display: block;
  width: 100%;
  padding: .55rem .85rem;
  border: 1.5px solid var(--border-dark);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  background: var(--white);
  color: var(--text-primary);
  transition: border-color .15s, box-shadow .15s;
}
.form-control:focus { outline: none; border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(46,109,164,.12); }
.form-range { width: 100%; cursor: pointer; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 540px) { .form-row { grid-template-columns: 1fr; } }

/* ── Badges ─────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: .2rem .6rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
}
.badge-sport {
  background: #EFF6FF;
  color: var(--primary);
  border: 1px solid #BFDBFE;
}
.badge-success { background: #D1FAE5; color: #065F46; }
.badge-warning { background: #FEF3C7; color: #92400E; }
.badge-danger { background: #FEE2E2; color: #991B1B; }
.badge-info { background: #DBEAFE; color: #1E40AF; }
.badge-secondary { background: #F3F4F6; color: var(--text-secondary); }

/* ── Avatar ─────────────────────────────────────────── */
.avatar { border-radius: 50%; object-fit: cover; }
.avatar-sm { width: 36px; height: 36px; }
.avatar-md { width: 56px; height: 56px; }
.avatar-lg { width: 96px; height: 96px; }
.avatar-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
  border-radius: 50%;
}

/* ── Alerts ─────────────────────────────────────────── */
.alert { padding: .75rem 1rem; border-radius: var(--radius-sm); font-size: .9rem; margin-bottom:1rem; }
.alert-danger { background: #FEE2E2; color: #991B1B; border: 1px solid #FCA5A5; }
.alert-success { background: #D1FAE5; color: #065F46; border: 1px solid #6EE7B7; }

/* ── Loading ─────────────────────────────────────────── */
.loading-overlay { display: flex; align-items: center; justify-content: center; padding: 4rem 0; }
.loading-spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--primary-light);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Rating stars ─────────────────────────────────── */
.rating-stars { display: inline-flex; align-items: center; gap: .15rem; }
.rating-value { margin-left: .3rem; font-size: .8rem; color: var(--text-secondary); font-weight: 600; }

/* ── Empty state ─────────────────────────────────── */
.empty-state { text-align: center; padding: 4rem 1rem; }
.empty-state-icon { color: var(--text-muted); margin-bottom: 1rem; display: flex; justify-content: center; }
.empty-state-title { font-size: 1.1rem; font-weight: 600; margin-bottom: .5rem; }
.empty-state-message { color: var(--text-secondary); margin-bottom: 1.5rem; }

/* ── Pagination ──────────────────────────────────── */
.pagination { display: flex; align-items: center; gap: 1rem; justify-content: center; }

/* ── Navbar ──────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: var(--navbar-height);
  box-shadow: var(--shadow-sm);
}
.navbar-inner {
  display: flex; align-items: center; height: 100%; gap: 1.5rem;
}
.navbar-brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.navbar-logo-mark {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  background: var(--primary); color: #fff;
  border-radius: 8px; font-weight: 800; font-size: .85rem;
}
.navbar-logo-text { font-weight: 700; font-size: 1.1rem; color: var(--primary); }
.navbar-links {
  display: flex; align-items: center; gap: 1rem; margin-left: auto;
}
.nav-link { text-decoration: none; color: var(--text-primary); font-size: .9rem; font-weight: 500; }
.nav-link:hover { color: var(--primary-light); }
.nav-urgency { display: flex; align-items: center; gap: .3rem; color: var(--danger); }
.nav-avatar-menu { position: relative; }
.nav-avatar-btn {
  display: flex; align-items: center; gap: .5rem;
  background: none; border: none; cursor: pointer; font-size: .9rem; font-weight: 500;
  color: var(--text-primary); padding: .35rem .6rem;
  border-radius: var(--radius-sm);
}
.nav-avatar-btn:hover { background: var(--bg); }
.nav-fullname { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-md);
  min-width: 200px; z-index: 200;
  overflow: hidden;
}
.nav-dropdown-item {
  display: block; width: 100%; text-align: left;
  padding: .65rem 1rem; font-size: .875rem; color: var(--text-primary);
  text-decoration: none; background: none; border: none; cursor: pointer;
}
.nav-dropdown-item:hover { background: var(--bg); }
.nav-dropdown-logout { color: var(--danger); }
.nav-dropdown-divider { height: 1px; background: var(--border); }
.nav-lang { display: flex; align-items: center; gap: .3rem; font-size: .8rem; color: var(--text-muted); }
.lang-btn { text-decoration: none; color: var(--text-muted); font-weight: 500; }
.lang-btn.active { color: var(--primary); font-weight: 700; }
.navbar-burger { display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: .25rem; }
.navbar-burger span { display: block; width: 22px; height: 2px; background: var(--text-primary); border-radius: 2px; }
@media (max-width: 768px) {
  .navbar-burger { display: flex; margin-left: auto; }
  .navbar-links { display: none; position: fixed; top: var(--navbar-height); left: 0; right: 0;
    flex-direction: column; background: var(--white); border-bottom: 1px solid var(--border);
    padding: 1rem; gap: .5rem; box-shadow: var(--shadow-md); align-items: flex-start;
    max-height: calc(100vh - var(--navbar-height)); overflow-y: auto; }
  .navbar-links.open { display: flex; }

  /* Les dropdowns (compte + notifications) passent en flux normal, pleine largeur,
     sinon leur positionnement absolu les fait déborder hors de l'écran. */
  .nav-avatar-menu, .nav-bell-wrapper { width: 100%; }
  .nav-avatar-btn { width: 100%; justify-content: flex-start; }
  .nav-fullname { max-width: none; }

  .nav-dropdown, .notif-dropdown {
    position: static;
    width: 100%;
    min-width: 0;
    max-width: none;
    margin-top: .5rem;
    box-shadow: none;
    border: 1px solid var(--border);
  }

  .nav-bell { width: 100%; justify-content: flex-start; gap: .5rem; }
  .nav-bell::after { content: "Notifications"; font-size: .9rem; font-weight: 500; }
  .nav-bell-badge { position: static; margin-left: auto; }
}

/* ── Footer ──────────────────────────────────────── */
.footer { background: var(--primary-dark); color: rgba(255,255,255,.8); padding: 2.5rem 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center; }
.footer-logo { font-size: 1.2rem; font-weight: 800; color: #fff; }
.footer-tagline { font-size: .85rem; margin-top: .25rem; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
.footer-link { color: rgba(255,255,255,.7); text-decoration: none; font-size: .875rem; }
.footer-link:hover { color: #fff; }
.footer-copy { font-size: .8rem; color: rgba(255,255,255,.5); }

/* ── Auth layout ─────────────────────────────────── */
.auth-layout { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); }
.auth-header { display: flex; justify-content: center; padding: 1.5rem; }
.auth-logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.auth-body { flex: 1; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.auth-footer { text-align: center; padding: 1rem; font-size: .8rem; color: var(--text-muted); }
.auth-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  padding: 2rem; width: 100%; max-width: 440px;
}
.auth-card-wide { max-width: 660px; }
.auth-title { font-size: 1.5rem; font-weight: 700; margin-bottom: .4rem; }
.auth-subtitle { color: var(--text-secondary); font-size: .9rem; margin-bottom: 1.5rem; }
.auth-links { display: flex; justify-content: flex-end; margin: .75rem 0; }
.auth-link { color: var(--primary-light); text-decoration: none; font-size: .875rem; }
.auth-link:hover { text-decoration: underline; }
.auth-separator { text-align: center; margin: 1rem 0; color: var(--text-muted); font-size: .85rem;
  display: flex; align-items: center; gap: .75rem; }
.auth-separator::before, .auth-separator::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-register-prompt { font-size: .875rem; color: var(--text-secondary); text-align: center; }
.auth-back { display: inline-block; font-size: .85rem; color: var(--text-muted); text-decoration: none; margin-bottom: 1rem; }
.auth-back:hover { color: var(--primary-light); }
.font-medium { font-weight: 600; }

/* ── Register choice ─────────────────────────────── */
.register-choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 540px) { .register-choice-grid { grid-template-columns: 1fr; } }
.register-choice-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 1.75rem 1rem; border: 2px solid var(--border);
  border-radius: var(--radius-md); background: var(--white);
  cursor: pointer; transition: border-color .2s, box-shadow .2s;
  gap: .75rem;
}
.register-choice-card:hover { border-color: var(--primary-light); box-shadow: var(--shadow-md); }
.register-choice-icon { color: var(--primary); }
.register-choice-card h3 { font-size: 1rem; font-weight: 700; }
.register-choice-card p { font-size: .85rem; color: var(--text-secondary); }

/* ── Stepper ─────────────────────────────────────── */
.stepper { display: flex; align-items: center; margin-bottom: 1.5rem; }
.step { display: flex; align-items: center; gap: .5rem; font-size: .875rem; color: var(--text-muted); }
.step.active { color: var(--primary); font-weight: 600; }
.step.done { color: var(--success); }
.step-num {
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid currentColor; font-size: .8rem; font-weight: 700;
}
.step-line { flex: 1; height: 2px; background: var(--border); margin: 0 .75rem; }

/* ── Sports check grid ───────────────────────────── */
.sports-check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .5rem; }
.sport-check {
  display: flex; align-items: center; gap: .5rem;
  padding: .5rem .75rem; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); cursor: pointer; font-size: .875rem;
  transition: border-color .15s, background .15s;
}
.sport-check input { cursor: pointer; }
.sport-check.checked { border-color: var(--primary-light); background: #EFF6FF; color: var(--primary); }

/* ── Profile layout ──────────────────────────────── */
.profile-layout { display: grid; grid-template-columns: 1fr 320px; gap: 2rem; align-items: start; }
@media (max-width: 900px) { .profile-layout { grid-template-columns: 1fr; } }
.profile-header-card { display: flex; gap: 1.5rem; padding: 1.5rem; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); margin-bottom: 1rem; }
.profile-avatar { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.profile-avatar.avatar-initials { width: 90px; height: 90px; font-size: 1.5rem; flex-shrink: 0; }
.profile-name { font-size: 1.4rem; font-weight: 700; margin-bottom: .25rem; }
.profile-city { display: flex; align-items: center; gap: .3rem; color: var(--text-secondary); font-size: .9rem; margin-bottom: .5rem; }
.profile-sports { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .5rem; }
.profile-section { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.25rem; margin-bottom: 1rem; }
.profile-section-title { font-size: 1rem; font-weight: 700; margin-bottom: .75rem; }
.cert-item { display: flex; justify-content: space-between; padding: .6rem 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; gap: .5rem; }
.cert-item:last-child { border-bottom: none; }
.cert-issuer { color: var(--text-secondary); font-size: .85rem; }
.review-item { padding: .75rem 0; border-bottom: 1px solid var(--border); }
.review-item:last-child { border-bottom: none; }
.review-header { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin-bottom: .35rem; }
.review-comment { color: var(--text-secondary); font-size: .875rem; }
.profile-sidebar { position: sticky; top: calc(var(--navbar-height) + 1rem); }
.booking-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.5rem; box-shadow: var(--shadow-md); }
.booking-card-price { font-size: 2rem; font-weight: 800; color: var(--primary); margin-bottom: .5rem; }
.booking-card-stats { display: flex; gap: 1rem; color: var(--text-secondary); font-size: .875rem; margin-bottom: 1rem; }
.booking-price-recap { background: var(--bg); border-radius: var(--radius-sm); padding: .75rem; margin: .75rem 0; font-size: .9rem; }
.booking-price-box { background: var(--bg); border-radius: var(--radius-sm); padding: 1rem; margin: 1rem 0; }
.price-line { display: flex; justify-content: space-between; padding: .3rem 0; font-size: .9rem; }
.price-total { font-weight: 700; font-size: 1rem; border-top: 1px solid var(--border); padding-top: .5rem; margin-top: .25rem; }

/* ── Dashboard ───────────────────────────────────── */
.dashboard-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem; }
.kpi-grid { display: grid; gap: 1rem; }
.kpi-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 768px) { .kpi-grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .kpi-grid-3 { grid-template-columns: 1fr; } }
.kpi-card { background: var(--white); border-radius: var(--radius-md); padding: 1.25rem 1.5rem; border-left: 4px solid transparent; }
.kpi-card-blue { border-left-color: var(--primary-light); }
.kpi-card-orange { border-left-color: var(--accent); }
.kpi-card-green { border-left-color: var(--success); }
.kpi-card-red { border-left-color: var(--danger); }
.kpi-value { font-size: 2rem; font-weight: 800; line-height: 1; }
.kpi-label { font-size: .825rem; color: var(--text-secondary); margin-top: .25rem; }
.booking-list-item { display: flex; justify-content: space-between; align-items: center; padding: 1rem; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); margin-bottom: .5rem; flex-wrap: wrap; gap: .75rem; }
.booking-payment-required { border-left: 3px solid #f59e0b; background: #fffbeb; }
.dashboard-quick-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.5rem; }
@media (max-width: 640px) { .dashboard-quick-links { grid-template-columns: 1fr; } }
.quick-link-card { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.25rem; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); text-decoration: none; color: var(--text-primary); font-weight: 500; transition: box-shadow .15s, border-color .15s; }
.quick-link-card:hover { border-color: var(--primary-light); box-shadow: var(--shadow-md); }

/* ── Availability ────────────────────────────────── */
.availability-slot-item { display: flex; justify-content: space-between; align-items: center; padding: .85rem 1rem; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); margin-bottom: .5rem; }

/* ── Detail page ─────────────────────────────────── */
.detail-row { display: flex; justify-content: space-between; padding: .6rem 0; border-bottom: 1px solid var(--border); font-size: .9rem; }
.detail-row:last-child { border-bottom: none; }
.detail-row span { color: var(--text-secondary); }

/* ── Confirmation ────────────────────────────────── */
.confirmation-icon { width: 80px; height: 80px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.25rem; }
.confirmation-icon-success { background: #D1FAE5; color: var(--success); }
.confirmation-icon-cancel { background: #FEE2E2; color: var(--danger); }

/* ── Urgency ─────────────────────────────────────── */
.urgency-searching { text-align: center; padding: 3rem 1rem; }
.urgency-spinner { display: flex; justify-content: center; margin-bottom: 1.5rem; }
.urgency-timer { font-size: 1.25rem; font-weight: 700; color: var(--danger); margin: 1rem 0; }

/* ── Certification entries ───────────────────────── */
.cert-entry-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.25rem; margin-bottom: 1rem; }
.cert-entry-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; font-weight: 600; color: var(--text-primary); }
.btn-icon-danger { background: none; border: none; color: var(--danger); cursor: pointer; font-size: 1.25rem; padding: 0; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 4px; transition: background .15s; }
.btn-icon-danger:hover { background: rgba(239,68,68,0.1); }

/* ── Blazor error ────────────────────────────────── */
#blazor-error-ui { display: none; }
.valid.modified:not([type=checkbox]) { outline: 1px solid var(--success); }
.invalid { border-color: var(--danger) !important; box-shadow: 0 0 0 3px rgba(239,68,68,.12) !important; }
.validation-message { color: var(--danger); font-size: .8rem; margin-top: .25rem; }
.field-error { display: block; color: var(--danger); font-size: .78rem; margin-top: .3rem; }

/* ===== Referee space additions ===== */
.alert-error { background: #FEE2E2; color: #991B1B; border: 1px solid #FCA5A5; }
.btn-secondary { background: #f3f4f6; border: 1px solid #d1d5db; color: #374151; }
.btn-secondary:hover:not(:disabled) { background: #e5e7eb; }
.page-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin: 1.5rem auto 1rem; }
.page-title { margin: 0; font-size: 1.4rem; font-weight: 700; }
.text-danger { color: #dc2626; }

/* ===== Notification bell ===== */
.nav-bell-wrapper { position: relative; }
.nav-bell { position: relative; background: none; border: none; cursor: pointer; padding: 8px; color: inherit; display: flex; align-items: center; border-radius: 8px; }
.nav-bell:hover { background: rgba(0,0,0,.06); }
.nav-bell-badge { position: absolute; top: 2px; right: 2px; background: #dc2626; color: #fff; font-size: 10px; font-weight: 700; min-width: 16px; height: 16px; border-radius: 8px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.notif-dropdown { position: absolute; right: 0; top: calc(100% + 8px); width: 320px; max-width: 90vw; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.12); z-index: 1100; overflow: hidden; }
.notif-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid #f0f0f0; font-weight: 600; }
.notif-markall { background: none; border: none; color: var(--primary); font-size: .8rem; cursor: pointer; }
.notif-empty { padding: 24px 14px; text-align: center; color: #9ca3af; font-size: .875rem; }
.notif-item { padding: 10px 14px; border-bottom: 1px solid #f5f5f5; cursor: pointer; }
.notif-item:hover { background: #f9fafb; }
.notif-item.notif-unread { background: #eff6ff; }
.notif-item.notif-unread:hover { background: #e0edfd; }
.notif-title { font-weight: 600; font-size: .85rem; }
.notif-body { font-size: .8rem; color: #4b5563; margin-top: 2px; }
.notif-date { font-size: .72rem; color: #9ca3af; margin-top: 4px; }

/* ===== Verification code input ===== */
.code-input { text-align: center; font-size: 1.8rem; font-weight: 700; letter-spacing: .6rem; font-family: monospace; }
.btn-link { background: none; border: none; color: var(--primary); cursor: pointer; font-size: inherit; padding: 0; text-decoration: underline; }
.btn-link:disabled { opacity: .6; cursor: wait; }

/* ===== Referee certifications & profile (ported from admin) ===== */
.cert-file-zone {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: 1.75rem 1rem;
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: border-color .2s, background .2s;
    text-align: center;
}

.cert-file-name {
    font-size: .875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.cert-file-hint {
    font-size: .78rem;
    color: var(--text-secondary);
}

.cert-form-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.cert-form-header {
    display: flex;
    align-items: center;
    gap: .875rem;
    padding: 1.125rem 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
}

.cert-form-header-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,.15);
    border-radius: 8px;
    flex-shrink: 0;
}

.cert-form-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
}

.cert-form-subtitle {
    margin: .1rem 0 0;
    font-size: .75rem;
    color: rgba(255,255,255,.7);
}

.cert-form-close {
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,.15);
    border: none;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    transition: background .15s;
    flex-shrink: 0;
}

.cert-form-body {
    padding: 1.5rem;
}

.cert-form-section {
    margin-bottom: 1.5rem;
}

.cert-form-section-label {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-secondary);
    margin-bottom: .75rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid var(--border);
}

.cert-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

    .cert-form-grid {
        grid-template-columns: 1fr;
    }

.cert-form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: .75rem;
    padding-top: 1.25rem;
    margin-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.cert-form-actions .btn {
    display: inline-flex;
    align-items: center;
}

.required-star {
    color: var(--danger);
    font-weight: 700;
}

.badge-active { background: #D1FAE5; color: #065F46; }

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.data-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
    vertical-align: middle;
}

.data-table tr:last-child td { border-bottom: none; }

.data-table tbody tr:hover { background: #F9FAFB; }


.container-dashboard { max-width: 1100px; margin: 0 auto; padding: 0 1rem; }
