/* ══════════════════════════════════════════
   نظام إدارة الفعاليات — Custom Stylesheet
   Navy & Gold Theme — RTL Arabic
   ══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;900&family=Cairo:wght@300;400;600;700&display=swap');

:root {
  --navy:        #0B1D3A;
  --navy-light:  #132847;
  --navy-mid:    #1E3A5F;
  --gold:        #C9992A;
  --gold-light:  #E8B84B;
  --gold-pale:   #FFF8E7;
  --cream:       #F9F6F0;
  --text:        #0B1D3A;
  --text-muted:  #5A6A7E;
  --border:      #E2D9C8;
  --white:       #FFFFFF;
  --success:     #1A7A4A;
  --success-bg:  #E8F5EE;
  --danger:      #A52828;
  --danger-bg:   #FAF0F0;
  --warning:     #8A6200;
  --warning-bg:  #FFF8E0;
  --gray-bg:     #F4F2EE;
  --radius:      12px;
  --radius-sm:   8px;
  --shadow:      0 4px 24px rgba(11,29,58,0.10);
  --shadow-card: 0 2px 12px rgba(11,29,58,0.07);
  --sidebar-w:   240px;
  --topbar-h:    64px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Tajawal', 'Cairo', sans-serif;
  background: var(--cream);
  color: var(--text);
  min-height: 100vh;
  direction: rtl;
  font-size: 15px;
  line-height: 1.6;
}

/* ══ TOPBAR ══ */
.topbar {
  background: var(--navy);
  height: var(--topbar-h);
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid var(--gold);
  box-shadow: 0 2px 16px rgba(11,29,58,0.3);
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold-light);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.topbar-brand .brand-icon {
  width: 36px;
  height: 36px;
  background: rgba(201,153,42,0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

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

.topbar-user {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.8);
  font-size: 0.88rem;
}

.topbar-user .user-avatar {
  width: 34px;
  height: 34px;
  background: rgba(201,153,42,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  font-weight: 700;
  font-size: 0.85rem;
}

/* ══ LAYOUT ══ */
.app-layout {
  display: flex;
  min-height: calc(100vh - var(--topbar-h));
}

/* ══ SIDEBAR ══ */
.sidebar {
  width: var(--sidebar-w);
  background: var(--navy);
  flex-shrink: 0;
  position: sticky;
  top: var(--topbar-h);
  height: calc(100vh - var(--topbar-h));
  overflow-y: auto;
  padding: 1.2rem 0 2rem;
  border-left: 1px solid rgba(255,255,255,0.05);
}

.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

.sidebar-section {
  margin-bottom: 0.5rem;
}

.sidebar-section-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(255,255,255,0.28);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 0.8rem 1.2rem 0.3rem;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 1.2rem;
  color: rgba(255,255,255,0.62);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s;
  border-right: 3px solid transparent;
  margin: 1px 0;
  position: relative;
}

.sidebar-item:hover {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.9);
  border-right-color: rgba(201,153,42,0.4);
}

.sidebar-item.active {
  background: rgba(201,153,42,0.12);
  color: var(--gold-light);
  border-right-color: var(--gold);
  font-weight: 600;
}

.sidebar-item .si-icon {
  font-size: 16px;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}

.sidebar-badge {
  margin-right: auto;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 10px;
  min-width: 20px;
  text-align: center;
}

/* ══ MAIN CONTENT ══ */
.main-content {
  flex: 1;
  padding: 1.8rem 2rem;
  min-width: 0;
  overflow-x: hidden;
}

/* ══ PAGE HEADER ══ */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.page-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
}

.page-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 3px;
}

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

/* ══ STAT CARDS ══ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.stat-val {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 3px;
}

/* ══ CARDS ══ */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  overflow: hidden;
}

.card-header {
  padding: 1rem 1.4rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
}

.card-body {
  padding: 1.4rem;
}

.card-footer {
  padding: 0.75rem 1.4rem;
  border-top: 1px solid var(--border);
  background: var(--gray-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ══ TABLES ══ */
.table-wrapper {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

th {
  padding: 10px 16px;
  text-align: right;
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--gray-bg);
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  vertical-align: middle;
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(249,246,240,0.6); }

/* ══ AVATAR ══ */
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
}

.cell-name {
  display: flex;
  align-items: center;
  gap: 10px;
}

.name-line {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.9rem;
}

.sub-line {
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* ══ BADGES ══ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
}

.badge-success { background: var(--success-bg); color: var(--success); }
.badge-danger  { background: var(--danger-bg);  color: var(--danger);  }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-info    { background: #E8F0FF;            color: #1A4A9A;        }
.badge-gray    { background: var(--gray-bg);     color: var(--text-muted); }
.badge-gold    { background: var(--gold-pale);   color: var(--gold);    border: 1px solid #E8C96A; }
.badge-vvip    { background: linear-gradient(135deg, var(--gold-pale), #FFF0C0); color: var(--gold); border: 1px solid var(--gold); font-weight: 800; }
.badge-navy    { background: var(--navy); color: var(--gold-light); }
.badge-green   { background: rgba(39,174,96,0.12); color: #27ae60; }
.badge-red     { background: rgba(231,76,60,0.12);  color: #e74c3c; }
.badge-blue    { background: rgba(52,152,219,0.12); color: #3498db; }
.badge-purple  { background: rgba(155,89,182,0.12); color: #9b59b6; }

/* ══ BUTTONS ══ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  font-family: 'Tajawal', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--navy);
  color: var(--gold-light);
}
.btn-primary:hover { background: var(--navy-mid); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(11,29,58,0.25); }

.btn-gold {
  background: var(--gold);
  color: var(--navy);
}
.btn-gold:hover { background: var(--gold-light); }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}
.btn-outline:hover { background: var(--navy); color: #fff; }

.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
}
.btn-outline-gold:hover { background: var(--gold); color: var(--navy); }

.btn-outline-danger {
  background: transparent;
  color: var(--danger, #e74c3c);
  border: 1.5px solid var(--danger, #e74c3c);
}
.btn-outline-danger:hover { background: var(--danger, #e74c3c); color: #fff; }

.btn-danger {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid rgba(165,40,40,0.2);
}
.btn-danger:hover { background: var(--danger); color: #fff; }

.btn-success {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid rgba(26,122,74,0.2);
}
.btn-success:hover { background: var(--success); color: #fff; }

.btn-sm {
  padding: 5px 12px;
  font-size: 0.8rem;
  border-radius: 6px;
}

.btn-lg {
  padding: 13px 28px;
  font-size: 1rem;
}

.btn-block { width: 100%; justify-content: center; }

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ══ FORMS ══ */
.form-group { margin-bottom: 1.1rem; }

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.form-label .required { color: var(--gold); }

.form-control {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Tajawal', sans-serif;
  font-size: 0.93rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  direction: rtl;
}

.form-control:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,153,42,0.12);
}

.form-control.is-invalid { border-color: var(--danger); }
.form-control.is-invalid:focus { box-shadow: 0 0 0 3px rgba(165,40,40,0.12); }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.invalid-feedback {
  font-size: 0.78rem;
  color: var(--danger);
  margin-top: 4px;
}

/* ══ FORM PAGE LAYOUT ══ */
.form-page-wrapper {
  max-width: 780px;
}

.form-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  overflow: hidden;
}

.form-section {
  padding: 28px 32px;
  border-bottom: 1px solid var(--border);
}

.form-section:last-child {
  border-bottom: none;
}

.form-section-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-section-hint {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-muted);
  background: var(--gray-bg);
  padding: 3px 10px;
  border-radius: 20px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 600px) {
  .form-row-2 { grid-template-columns: 1fr; }
  .form-section { padding: 20px 18px; }
}

.form-actions {
  padding: 20px 32px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--gray-bg);
  border-top: 1px solid var(--border);
}

/* ══ SEARCH BOX ══ */
.search-box {
  position: relative;
}

.search-box input {
  padding-right: 40px;
  width: 220px;
}

.search-box .search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
  pointer-events: none;
}

/* ══ FILTER TABS ══ */
.filter-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 7px 16px;
  border-radius: 20px;
  font-family: 'Tajawal', sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text-muted);
  transition: all 0.15s;
  text-decoration: none;
}

.filter-tab:hover { border-color: var(--navy); color: var(--navy); }
.filter-tab.active { background: var(--navy); color: var(--gold-light); border-color: var(--navy); }

/* ══ ALERTS ══ */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.alert-success { background: var(--success-bg); color: var(--success); border: 1px solid rgba(26,122,74,0.2); }
.alert-danger  { background: var(--danger-bg);  color: var(--danger);  border: 1px solid rgba(165,40,40,0.2); }
.alert-warning { background: var(--warning-bg); color: var(--warning); border: 1px solid rgba(138,98,0,0.2);  }
.alert-info    { background: #E8F0FF;            color: #1A4A9A;        border: 1px solid rgba(26,74,154,0.2); }

/* ══ MODAL ══ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11,29,58,0.6);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(3px);
}

.modal-overlay.open { display: flex; }

.modal {
  background: var(--white);
  border-radius: 16px;
  padding: 1.8rem;
  max-width: 520px;
  width: 100%;
  animation: slideUp 0.3s ease;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.modal-title { font-size: 1.1rem; font-weight: 800; color: var(--navy); }

.modal-close {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
  padding: 4px;
  border-radius: 6px;
  transition: all 0.15s;
}

.modal-close:hover { background: var(--gray-bg); color: var(--text); }

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 1.5rem;
  justify-content: flex-end;
}

/* ══ TOAST ══ */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.toast {
  background: var(--navy);
  color: var(--gold-light);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow);
  animation: toastIn 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
}

.toast.toast-success { background: var(--success); color: #fff; }
.toast.toast-danger  { background: var(--danger);  color: #fff; }

/* ══ SEAT MAP ══ */
.seat-map-container {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  padding: 1.5rem;
  min-height: 420px;
  overflow-x: auto;
}

.stage {
  background: var(--navy);
  color: var(--gold-light);
  text-align: center;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 2rem;
  letter-spacing: 0.05em;
}

.seat-rows { display: flex; flex-direction: column; gap: 10px; }
.seat-row  { display: flex; align-items: center; gap: 8px; justify-content: center; }

.row-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 700;
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}

.seat {
  width: 30px;
  height: 30px;
  border-radius: 5px 5px 2px 2px;
  border: 1.5px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
}

.seat:hover { transform: scale(1.12); z-index: 2; }
.seat.vip     { background: var(--gold-pale); border-color: var(--gold);    color: var(--gold);   }
.seat.vip.taken    { background: var(--gold);     border-color: var(--gold);    color: var(--navy);   }
.seat.regular      { background: #E8F0FF;          border-color: #B0C4E8;        color: #1A4A9A;       }
.seat.regular.taken{ background: #3A5FA0;          border-color: #1A4A9A;        color: #fff;          }
.seat.selected     { background: var(--navy) !important; border-color: var(--gold) !important; color: var(--gold-light) !important; }
.seat.empty        { background: #F5F5F5;          border-color: #DCDCDC;        color: #AAAAAA;       }

.aisle { width: 20px; flex-shrink: 0; }

.seat-legend { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.legend-item { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--text-muted); }
.legend-dot  { width: 14px; height: 14px; border-radius: 4px; }

/* ══ GATE SCAN ══ */
.scan-result {
  padding: 1.5rem;
  border-radius: var(--radius);
  text-align: center;
  animation: slideUp 0.3s ease;
}

.scan-result.success { background: var(--success-bg); border: 2px solid var(--success); }
.scan-result.error   { background: var(--danger-bg);  border: 2px solid var(--danger);  }
.scan-result.warning { background: var(--warning-bg); border: 2px solid var(--warning); }

.scan-icon { font-size: 3rem; margin-bottom: 0.8rem; }
.scan-name { font-size: 1.3rem; font-weight: 800; color: var(--navy); }
.scan-meta { font-size: 0.88rem; color: var(--text-muted); margin-top: 4px; }

/* ══ EMPTY STATE ══ */
.empty-state {
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
}

.empty-state .es-icon { font-size: 3rem; margin-bottom: 1rem; opacity: 0.5; }
.empty-state h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 0.4rem; }
.empty-state p  { font-size: 0.88rem; }

/* ══ PAGINATION ══ */
.pagination-nav {
  display: flex;
  flex-direction: row;
  gap: 4px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0.4rem 0;
  direction: ltr; /* keep number order correct in RTL pages */
}

.pg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-muted);
  border: 1.5px solid var(--border);
  background: var(--white);
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
  cursor: pointer;
  line-height: 1;
}

.pg-btn i {
  font-size: 0.75rem;
  line-height: 1;
}

a.pg-btn:hover {
  border-color: var(--navy);
  color: var(--navy);
  background: var(--gold-pale);
  box-shadow: 0 2px 8px rgba(11,29,58,0.10);
}

.pg-btn.pg-active {
  background: var(--navy);
  color: var(--gold-light);
  border-color: var(--navy);
  box-shadow: 0 2px 10px rgba(11,29,58,0.20);
  cursor: default;
}

.pg-btn.pg-disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.pg-dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 4px;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 2px;
  pointer-events: none;
  user-select: none;
}

/* ══ HERO (Registration) ══ */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px; left: -100px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,153,42,0.08) 0%, transparent 70%);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -80px; right: -80px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,153,42,0.06) 0%, transparent 70%);
}

.reg-card {
  background: var(--white);
  border-radius: 20px;
  padding: 2.5rem;
  max-width: 540px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  position: relative;
  z-index: 1;
  animation: slideUp 0.5s ease;
}

.reg-card-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.event-badge {
  display: inline-block;
  background: var(--gold-pale);
  color: var(--gold);
  border: 1px solid var(--gold-light);
  border-radius: 30px;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 16px;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.reg-card-header h1 {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.event-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 1.5rem;
}

.meta-item {
  background: var(--gray-bg);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
}

.meta-icon { font-size: 16px; }
.meta-label { color: var(--text-muted); font-size: 0.73rem; }
.meta-val   { font-weight: 600; color: var(--text); font-size: 0.88rem; }

/* ══ ANIMATIONS ══ */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* ══ UTILITIES ══ */
.text-muted   { color: var(--text-muted); }
.text-navy    { color: var(--navy); }
.text-gold    { color: var(--gold); }
.text-success { color: var(--success); }
.text-danger  { color: var(--danger); }
.fw-bold      { font-weight: 700; }
.fw-black     { font-weight: 900; }
.fs-sm        { font-size: 0.82rem; }
.fs-xs        { font-size: 0.72rem; }
.ltr          { direction: ltr; }
.d-flex       { display: flex; }
.align-center { align-items: center; }
.gap-2        { gap: 8px; }
.gap-3        { gap: 12px; }
.mt-1         { margin-top: 0.5rem; }
.mt-2         { margin-top: 1rem; }
.mb-1         { margin-bottom: 0.5rem; }
.mb-2         { margin-bottom: 1rem; }

/* ══ RESPONSIVE ══ */
@media (max-width: 1100px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  :root { --sidebar-w: 200px; }
  .main-content { padding: 1.2rem; }
}

@media (max-width: 700px) {
  .sidebar { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .page-header { flex-direction: column; }
}
