/* ─── VARIABLES ─────────────────────────────────────────────────────────────── */
:root {
  --blue-950: #0f172a;
  --blue-900: #1e3a5f;
  --blue-800: #1e40af;
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-400: #60a5fa;
  --blue-300: #93c5fd;
  --blue-200: #bfdbfe;
  --blue-100: #dbeafe;
  --blue-50:  #eff6ff;
  --white:    #ffffff;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50:  #f9fafb;
  --green:    #10b981;
  --amber:    #f59e0b;
  --orange:   #f97316;
  --red:      #ef4444;
  --indigo:   #6366f1;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow:    0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.05);
  --shadow-md: 0 10px 25px rgba(0,0,0,.1), 0 4px 8px rgba(0,0,0,.06);
  --shadow-lg: 0 20px 40px rgba(0,0,0,.12);
  --radius:    8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
}

/* ─── RESET ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--blue-50);
  color: var(--gray-900);
  line-height: 1.6;
  min-height: 100vh;
}
a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--blue-700); text-decoration: underline; }
img { max-width: 100%; }

/* ─── TYPOGRAPHY ────────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5 { line-height: 1.25; color: var(--blue-900); font-weight: 700; }
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
p  { color: var(--gray-600); }

/* ─── LAYOUT ────────────────────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 860px; margin: 0 auto; padding: 0 24px; }

/* ─── HEADER / NAV ──────────────────────────────────────────────────────────── */
.site-header {
  background: var(--blue-900);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 16px;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.nav-logo {
  height: 60px; width: auto; display: block;
}
.nav-brand-text {
  font-size: 1.35rem; font-weight: 800; color: var(--white);
  letter-spacing: -.5px;
}
.nav-brand-text span { color: var(--blue-400); }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-link {
  color: var(--blue-200); padding: 8px 14px; border-radius: var(--radius);
  font-weight: 500; font-size: .95rem; transition: all .2s;
  text-decoration: none;
}
.nav-link:hover { color: var(--white); background: rgba(255,255,255,.1); text-decoration: none; }
.nav-link.active { color: var(--white); background: var(--blue-700); }
.nav-cta {
  background: var(--blue-500); color: var(--white) !important;
  padding: 9px 18px; border-radius: var(--radius); font-weight: 600;
  transition: background .2s;
}
.nav-cta:hover { background: var(--blue-400); text-decoration: none; }

/* ─── BUTTONS ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius); font-weight: 600;
  font-size: .95rem; cursor: pointer; border: none; transition: all .2s;
  text-decoration: none;
}
.btn-primary {
  background: var(--blue-600); color: var(--white);
  box-shadow: 0 4px 14px rgba(37,99,235,.35);
}
.btn-primary:hover { background: var(--blue-700); transform: translateY(-1px); text-decoration: none; color: var(--white); }
.btn-outline {
  background: transparent; color: var(--blue-600);
  border: 2px solid var(--blue-600);
}
.btn-outline:hover { background: var(--blue-50); }
.btn-lg { padding: 15px 32px; font-size: 1.05rem; border-radius: 10px; }
.btn-sm { padding: 7px 14px; font-size: .85rem; }
.btn-danger { background: var(--red); color: var(--white); }
.btn-success { background: var(--green); color: var(--white); }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn-loading::after {
  content: ""; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4);
  border-top-color: white; border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── CARDS ─────────────────────────────────────────────────────────────────── */
.card {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); border: 1px solid var(--gray-200);
}
.card-body { padding: 28px 32px; }
.card-header {
  padding: 20px 32px 16px; border-bottom: 1px solid var(--gray-200);
  display: flex; align-items: center; gap: 12px;
}
.card-header h3 { margin: 0; font-size: 1.15rem; }

/* ─── FORM STYLES ───────────────────────────────────────────────────────────── */
.form-section {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--blue-200); margin-bottom: 28px;
  overflow: hidden;
}
.form-section-header {
  background: linear-gradient(135deg, var(--blue-900), var(--blue-800));
  padding: 18px 28px; display: flex; align-items: center; gap: 12px;
}
.form-section-header h3 {
  color: var(--white); margin: 0; font-size: 1.05rem; font-weight: 600;
}
.form-section-num {
  background: var(--blue-500); color: white; width: 28px; height: 28px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 700; flex-shrink: 0;
}
.form-section-body { padding: 28px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label {
  font-size: .875rem; font-weight: 600; color: var(--gray-700);
  display: flex; align-items: center; gap: 4px;
}
.form-label .req { color: var(--red); font-size: 1rem; }
.form-control {
  padding: 10px 14px; border: 1.5px solid var(--gray-300);
  border-radius: var(--radius); font-size: .95rem; color: var(--gray-900);
  background: var(--white); transition: border-color .2s, box-shadow .2s;
  width: 100%;
}
.form-control:focus {
  outline: none; border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}
.form-control::placeholder { color: var(--gray-400); }
.form-control.error { border-color: var(--red); }
select.form-control { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px;
}
textarea.form-control { resize: vertical; min-height: 90px; }

.form-hint { font-size: .8rem; color: var(--gray-500); }
.form-error { font-size: .8rem; color: var(--red); display: none; }
.form-group.has-error .form-error { display: block; }
.form-group.has-error .form-control { border-color: var(--red); }

/* Radio / Checkbox */
.radio-group, .check-group { display: flex; gap: 20px; flex-wrap: wrap; padding-top: 4px; }
.radio-item, .check-item {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  font-size: .95rem; color: var(--gray-700);
}
.radio-item input, .check-item input {
  width: 18px; height: 18px; accent-color: var(--blue-600); cursor: pointer;
}
.conditional-field {
  margin-top: 14px; padding: 18px; background: var(--blue-50);
  border-radius: var(--radius); border: 1px solid var(--blue-200);
  display: none;
}
.conditional-field.visible { display: block; }

/* Waiver */
.waiver-box {
  background: var(--blue-50); border: 1px solid var(--blue-200);
  border-radius: var(--radius); padding: 24px; font-size: .9rem;
  color: var(--gray-700); line-height: 1.7; max-height: 300px;
  overflow-y: auto; margin-bottom: 20px;
}
.waiver-box h4 { margin-bottom: 12px; color: var(--blue-900); }
.waiver-box p { margin-bottom: 10px; }

/* ─── RACE OPTIONS ──────────────────────────────────────────────────────────── */
.race-option {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 14px; border: 1.5px solid var(--gray-200);
  border-radius: var(--radius); cursor: pointer; transition: all .15s;
  background: var(--white);
}
.race-option:hover { border-color: var(--blue-300); background: var(--blue-50); }
.race-option input[type="radio"] {
  margin-top: 3px; flex-shrink: 0;
  width: 16px; height: 16px; accent-color: var(--blue-600); cursor: pointer;
}
.race-option input[type="radio"]:checked ~ .race-option-content .race-option-name { color: var(--blue-700); }
.race-option:has(input:checked) { border-color: var(--blue-500); background: var(--blue-50); }
.race-option-name { font-weight: 600; font-size: .93rem; color: var(--gray-800); }
.race-option-desc { font-size: .8rem; color: var(--gray-500); margin-top: 2px; }

/* ─── HERO ──────────────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-800) 50%, var(--blue-700) 100%);
  padding: 90px 0 80px; position: relative; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner { position: relative; display: flex; align-items: center; gap: 60px; }
.hero-content { flex: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(96,165,250,.2); color: var(--blue-300);
  border: 1px solid rgba(96,165,250,.3); padding: 6px 14px;
  border-radius: 20px; font-size: .85rem; font-weight: 600;
  margin-bottom: 20px;
}
.hero h1 {
  color: var(--white); font-size: 3rem; line-height: 1.15;
  margin-bottom: 18px; letter-spacing: -.5px;
}
.hero h1 span { color: var(--blue-400); }
.hero p { color: var(--blue-200); font-size: 1.15rem; margin-bottom: 32px; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-card {
  background: rgba(255,255,255,.1); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius-xl);
  padding: 32px; min-width: 280px;
}
.hero-card h4 { color: var(--white); margin-bottom: 20px; }
.hero-stat { margin-bottom: 16px; }
.hero-stat-label { color: var(--blue-300); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.hero-stat-value { color: var(--white); font-size: 1.6rem; font-weight: 800; }

/* ─── FEATURES / SECTIONS ───────────────────────────────────────────────────── */
.section { padding: 72px 0; }
.section-title { text-align: center; margin-bottom: 52px; }
.section-title h2 { font-size: 2.1rem; margin-bottom: 12px; }
.section-title p { font-size: 1.05rem; max-width: 580px; margin: 0 auto; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 28px 24px; border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-icon {
  width: 52px; height: 52px; background: var(--blue-100);
  border-radius: var(--radius); display: flex; align-items: center;
  justify-content: center; font-size: 1.5rem; margin-bottom: 16px;
}
.feature-card h4 { margin-bottom: 8px; font-size: 1.05rem; }

/* Steps */
.steps { display: flex; flex-direction: column; gap: 0; }
.step { display: flex; gap: 24px; padding: 28px 0; position: relative; }
.step:not(:last-child)::after {
  content: ""; position: absolute; left: 23px; top: 72px; bottom: 0;
  width: 2px; background: var(--blue-200);
}
.step-num {
  width: 48px; height: 48px; background: var(--blue-600); color: white;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem; flex-shrink: 0; position: relative; z-index: 1;
}
.step-content h4 { margin-bottom: 6px; }

/* ─── STATUS BADGES ─────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 20px; font-size: .8rem; font-weight: 600;
}
.badge-pending      { background: #fef3c7; color: #92400e; }
.badge-under_review { background: #dbeafe; color: #1e40af; }
.badge-info_required{ background: #ffedd5; color: #9a3412; }
.badge-approved     { background: #d1fae5; color: #065f46; }
.badge-denied       { background: #fee2e2; color: #991b1b; }
.badge-completed    { background: #e0e7ff; color: #3730a3; }
.badge-mailed       { background: #e0f2fe; color: #0c4a6e; }
.badge-paid         { background: #d1fae5; color: #065f46; }
.badge-unpaid       { background: #fee2e2; color: #991b1b; }

/* ─── RADIO PILL BUTTONS (admin detail panel) ───────────────────────────────── */
.radio-pill {
  display: inline-flex; align-items: center; cursor: pointer;
  padding: 5px 13px; border-radius: 20px;
  border: 2px solid var(--gray-200); background: white;
  font-size: .82rem; font-weight: 500;
  transition: border-color .15s, background .15s, color .15s;
  user-select: none; white-space: nowrap;
}
.radio-pill input[type="radio"] { display: none; }
.radio-pill:hover:not(.checked) { border-color: var(--gray-400); }
.radio-pill.checked { font-weight: 600; }

/* ─── ADMIN LAYOUT ──────────────────────────────────────────────────────────── */
.admin-body { background: var(--gray-100); }
.admin-layout { display: flex; min-height: 100vh; padding-top: 68px; }

.sidebar {
  width: 250px; background: var(--blue-900); flex-shrink: 0;
  padding: 24px 0; position: fixed; top: 68px; left: 0; bottom: 0;
  overflow-y: auto; z-index: 50;
}
.sidebar-section { padding: 0 12px; margin-bottom: 8px; }
.sidebar-label {
  font-size: .7rem; font-weight: 700; color: var(--blue-400);
  text-transform: uppercase; letter-spacing: 1px; padding: 10px 12px 6px;
}
.sidebar-link {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  color: var(--blue-200); border-radius: var(--radius); cursor: pointer;
  font-size: .92rem; font-weight: 500; transition: all .15s; text-decoration: none;
}
.sidebar-link:hover { background: rgba(255,255,255,.08); color: var(--white); text-decoration: none; }
.sidebar-link.active { background: var(--blue-700); color: var(--white); }
.sidebar-link .icon { font-size: 1.1rem; width: 20px; text-align: center; }
.sidebar-count {
  margin-left: auto; background: var(--blue-600); color: white;
  font-size: .75rem; padding: 2px 7px; border-radius: 10px; font-weight: 700;
}

.admin-main { flex: 1; margin-left: 250px; padding: 32px; }
.admin-topbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 28px;
}
.admin-topbar h2 { font-size: 1.5rem; }

/* Stats cards */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 28px; }
.stat-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 22px 24px; border: 1px solid var(--gray-200); box-shadow: var(--shadow-sm);
}
.stat-label { font-size: .82rem; font-weight: 600; color: var(--gray-500); text-transform: uppercase; letter-spacing: .4px; margin-bottom: 6px; }
.stat-value { font-size: 2rem; font-weight: 800; color: var(--blue-900); line-height: 1; margin-bottom: 4px; }
.stat-sub { font-size: .8rem; color: var(--gray-500); }
.stat-icon { font-size: 1.5rem; float: right; margin-top: -4px; }

/* Table */
.table-card { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--gray-200); box-shadow: var(--shadow-sm); overflow: hidden; }
.table-toolbar {
  padding: 16px 20px; display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid var(--gray-200); flex-wrap: wrap;
}
.search-input { flex: 1; min-width: 200px; }
.filter-select { width: 160px; }
table { width: 100%; border-collapse: collapse; }
th {
  background: var(--gray-50); padding: 12px 16px; text-align: left;
  font-size: .8rem; font-weight: 700; color: var(--gray-600);
  text-transform: uppercase; letter-spacing: .4px; border-bottom: 1px solid var(--gray-200);
}
td { padding: 14px 16px; border-bottom: 1px solid var(--gray-100); font-size: .92rem; color: var(--gray-800); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--blue-50); cursor: pointer; }
.table-empty { text-align: center; padding: 48px; color: var(--gray-400); font-size: .95rem; }

/* Detail Panel */
.detail-panel {
  position: fixed; top: 0; right: 0; bottom: 0; width: 520px;
  background: var(--white); box-shadow: -4px 0 24px rgba(0,0,0,.15);
  z-index: 200; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .3s ease;
}
.detail-panel.open { transform: translateX(0); }
.panel-header {
  padding: 20px 24px; border-bottom: 1px solid var(--gray-200);
  display: flex; align-items: center; gap: 12px; background: var(--blue-900);
}
.panel-header h3 { color: white; margin: 0; font-size: 1.05rem; flex: 1; }
.panel-close {
  background: rgba(255,255,255,.15); border: none; color: white;
  width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
  font-size: 1.1rem; display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.panel-close:hover { background: rgba(255,255,255,.3); }
.panel-body { flex: 1; overflow-y: auto; padding: 24px; }
.panel-footer { padding: 16px 24px; border-top: 1px solid var(--gray-200); display: flex; gap: 10px; }
.detail-field { margin-bottom: 16px; }
.detail-label { font-size: .75rem; font-weight: 700; color: var(--gray-500); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 3px; }
.detail-value { font-size: .95rem; color: var(--gray-800); word-break: break-word; }
.detail-section-title {
  font-size: .8rem; font-weight: 700; color: var(--blue-700);
  text-transform: uppercase; letter-spacing: .5px; padding: 14px 0 8px;
  border-bottom: 2px solid var(--blue-100); margin-bottom: 14px;
}
.status-select {
  padding: 8px 12px; border: 1.5px solid var(--gray-300);
  border-radius: var(--radius); font-size: .9rem; width: 100%;
  color: var(--gray-900); background: var(--white); cursor: pointer;
}
.status-select:focus { outline: none; border-color: var(--blue-500); }
.notes-textarea {
  padding: 10px 12px; border: 1.5px solid var(--gray-300);
  border-radius: var(--radius); font-size: .9rem; width: 100%;
  resize: vertical; min-height: 80px; color: var(--gray-900);
  font-family: inherit;
}
.notes-textarea:focus { outline: none; border-color: var(--blue-500); }

/* Admin Login */
.admin-login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--blue-950), var(--blue-900));
  padding: 24px;
}
.login-card {
  background: var(--white); border-radius: var(--radius-xl); padding: 44px;
  width: 100%; max-width: 420px; box-shadow: var(--shadow-lg);
}
.login-logo {
  text-align: center; margin-bottom: 28px;
}
.login-logo .logo-icon {
  width: 60px; height: 60px; background: var(--blue-600);
  border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; margin: 0 auto 12px;
}
.login-logo h2 { font-size: 1.5rem; margin-bottom: 4px; }
.login-logo p { font-size: .9rem; color: var(--gray-500); }
.alert {
  padding: 12px 16px; border-radius: var(--radius); font-size: .9rem;
  margin-bottom: 16px;
}
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }

/* ─── CONFIRMATION PAGE ─────────────────────────────────────────────────────── */
.confirmation-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.confirmation-card { background: var(--white); border-radius: var(--radius-xl); padding: 52px 44px; max-width: 560px; width: 100%; text-align: center; box-shadow: var(--shadow-lg); }
.check-icon { width: 72px; height: 72px; background: #d1fae5; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; margin: 0 auto 24px; }
.ref-number { font-size: 1.5rem; font-weight: 800; color: var(--blue-700); letter-spacing: 2px; margin: 16px 0; font-family: monospace; }

/* ─── FOOTER ────────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--blue-950); color: var(--blue-300); padding: 48px 0 28px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { color: var(--blue-400); font-size: .9rem; margin-top: 12px; max-width: 300px; line-height: 1.7; }
.footer-col h5 { color: var(--white); margin-bottom: 14px; font-size: .95rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: var(--blue-400); font-size: .9rem; transition: color .2s; }
.footer-links a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; display: flex; align-items: center; justify-content: space-between; font-size: .85rem; }

/* ─── TOAST / NOTIFICATION ──────────────────────────────────────────────────── */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--white); border-radius: var(--radius); padding: 14px 18px;
  box-shadow: var(--shadow-md); border-left: 4px solid var(--blue-500);
  font-size: .9rem; color: var(--gray-800); min-width: 260px;
  animation: slideUp .3s ease; max-width: 360px;
}
.toast.success { border-color: var(--green); }
.toast.error   { border-color: var(--red); }
@keyframes slideUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

/* ─── PAGE HEADER (inner pages) ─────────────────────────────────────────────── */
.page-header {
  background: linear-gradient(135deg, var(--blue-900), var(--blue-800));
  padding: 40px 0; margin-bottom: 36px;
}
.page-header h1 { color: var(--white); font-size: 2rem; margin-bottom: 6px; }
.page-header p { color: var(--blue-200); font-size: 1rem; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: .85rem; margin-bottom: 8px; }
.breadcrumb a { color: var(--blue-300); }
.breadcrumb span { color: var(--blue-400); }

/* ─── RESPONSIVE ────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: 1fr; }
  .form-grid, .form-grid-3 { grid-template-columns: 1fr; }
  .span-2, .span-3 { grid-column: span 1; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  h1 { font-size: 2rem; }
  .hero h1 { font-size: 2.2rem; }
  .hero-inner { flex-direction: column; }
  .hero-card { min-width: unset; width: 100%; }
  .sidebar { display: none; }
  .admin-main { margin-left: 0; }
  .detail-panel { width: 100%; }
}
@media (max-width: 600px) {
  .nav-links .nav-link:not(.nav-cta):not(.active) { display: none; }
  .stats-grid { grid-template-columns: 1fr; }
  .card-body { padding: 20px 16px; }
  .form-section-body { padding: 20px 16px; }
}
