/* ================================================================
   PTTA - Premiere Taekwondo Training Academy
   Main Stylesheet
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Rajdhani:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --royal-blue: #1565C0;
  --navy: #0D1B3E;
  --dark-navy: #080f24;
  --gold: #F0B429;
  --gold-light: #FFD97D;
  --white: #FFFFFF;
  --off-white: #F4F6FB;
  --text-dark: #1a2340;
  --text-mid: #4a5568;
  --text-light: #8899aa;
  --border: #e2e8f0;
  --card-bg: #FFFFFF;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;
  --sidebar-w: 260px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(13,27,62,0.10);
  --shadow-lg: 0 8px 40px rgba(13,27,62,0.18);
  --transition: all 0.2s ease;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background: var(--off-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4,h5,h6 {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

a { color: var(--royal-blue); text-decoration: none; }
a:hover { color: var(--gold); }

img { max-width: 100%; display: block; }

/* ================================================================
   UTILITIES
   ================================================================ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-lg { max-width: 1400px; margin: 0 auto; padding: 0 24px; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.gap-4 { gap: 32px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-white  { color: var(--white); }
.text-gold   { color: var(--gold); }
.text-navy   { color: var(--navy); }
.text-muted  { color: var(--text-light); }

.font-display { font-family: 'Bebas Neue', sans-serif; letter-spacing: 2px; }
.font-heading { font-family: 'Rajdhani', sans-serif; font-weight: 700; }

.mt-1 { margin-top: 8px; }  .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }

.badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.badge-gold    { background: var(--gold-light); color: #7a5c00; }
.badge-blue    { background: #dbeafe; color: var(--royal-blue); }
.badge-green   { background: #dcfce7; color: #166534; }
.badge-red     { background: #fee2e2; color: #991b1b; }
.badge-gray    { background: #f1f5f9; color: #64748b; }
.badge-navy    { background: var(--navy); color: var(--white); }

/* Belt badges */
.belt-White   { background: #f8fafc; color: #334155; border: 1px solid #cbd5e1; }
.belt-Yellow  { background: #fefce8; color: #713f12; }
.belt-Blue    { background: #dbeafe; color: #1e40af; }
.belt-Red     { background: #fee2e2; color: #991b1b; }
.belt-Brown   { background: #fef3c7; color: #78350f; }
.belt-Black   { background: #1e293b; color: #f8fafc; }

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary { background: var(--royal-blue); color: white; }
.btn-primary:hover { background: #1a77d6; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(21,101,192,0.35); color: white; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(240,180,41,0.4); color: var(--navy); }
.btn-navy { background: var(--navy); color: white; }
.btn-navy:hover { background: #162050; color: white; }
.btn-outline { background: transparent; color: var(--royal-blue); border: 2px solid var(--royal-blue); }
.btn-outline:hover { background: var(--royal-blue); color: white; }
.btn-outline-white { background: transparent; color: white; border: 2px solid white; }
.btn-outline-white:hover { background: white; color: var(--navy); }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #dc2626; color: white; }
.btn-sm { padding: 7px 16px; font-size: 13px; }
.btn-lg { padding: 16px 40px; font-size: 17px; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ================================================================
   NAVBAR
   ================================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(8,15,36,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(240,180,41,0.15);
  transition: var(--transition);
}
.navbar.scrolled {
  background: var(--dark-navy);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.navbar-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 8px;
}
.navbar-logo-placeholder {
  width: 44px; height: 44px;
  background: var(--royal-blue);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  color: var(--gold);
  letter-spacing: 1px;
  flex-shrink: 0;
}
.navbar-brand-text { line-height: 1.15; }
.navbar-brand-name {
  display: block;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: white;
  letter-spacing: 0.5px;
}
.navbar-brand-sub {
  display: block;
  font-size: 10px;
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
}
.navbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.navbar-nav a {
  color: rgba(255,255,255,0.8);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.5px;
  padding: 8px 14px;
  border-radius: 6px;
  transition: var(--transition);
  text-decoration: none;
}
.navbar-nav a:hover, .navbar-nav a.active {
  color: var(--gold);
  background: rgba(240,180,41,0.1);
}
.navbar-actions { display: flex; gap: 12px; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: var(--transition);
}

/* ================================================================
   HERO SECTION
   ================================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--dark-navy) 0%, var(--navy) 40%, #1a3560 70%, var(--dark-navy) 100%);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -30%; right: -10%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(21,101,192,0.25) 0%, transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -20%; left: -5%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(240,180,41,0.12) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(21,101,192,0.1) 1px, transparent 1px),
    radial-gradient(circle at 80% 80%, rgba(240,180,41,0.07) 1px, transparent 1px);
  background-size: 60px 60px, 40px 40px;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 120px 0 80px;
  max-width: 700px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(240,180,41,0.15);
  border: 1px solid rgba(240,180,41,0.35);
  border-radius: 20px;
  margin-bottom: 28px;
}
.hero-badge span {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); animation: pulse-dot 1.5s infinite; }
@keyframes pulse-dot { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(1.4)} }
.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(56px, 8vw, 96px);
  color: white;
  line-height: 0.95;
  letter-spacing: 2px;
  margin-bottom: 28px;
}
.hero-title .accent { color: var(--gold); }
.hero-subtitle {
  font-size: 18px;
  color: rgba(255,255,255,0.75);
  max-width: 520px;
  margin-bottom: 40px;
  line-height: 1.7;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.hero-stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 42px;
  color: var(--gold);
  line-height: 1;
}
.hero-stat-label { font-size: 13px; color: rgba(255,255,255,0.6); letter-spacing: 1px; text-transform: uppercase; margin-top: 4px; }
.hero-visual {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 45%;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.hero-visual-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--dark-navy) 0%, transparent 40%);
  z-index: 1;
}
.hero-silhouette {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(21,101,192,0.15), rgba(240,180,41,0.08));
  display: flex; align-items: center; justify-content: center;
}
.hero-icon-bg {
  font-size: 320px;
  opacity: 0.06;
  color: var(--gold);
  position: absolute;
  right: 40px;
  user-select: none;
  line-height: 1;
}

/* ================================================================
   SECTION STYLES
   ================================================================ */
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }

.section-header { text-align: center; margin-bottom: 56px; }
.section-tag {
  display: inline-block;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--royal-blue);
  background: rgba(21,101,192,0.1);
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(36px, 5vw, 54px);
  color: var(--navy);
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}
.section-title .accent { color: var(--royal-blue); }
.section-subtitle {
  font-size: 17px;
  color: var(--text-mid);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}
.section-divider {
  width: 60px; height: 4px;
  background: var(--gold);
  border-radius: 2px;
  margin: 16px auto 0;
}

/* ================================================================
   CARDS
   ================================================================ */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.card-body { padding: 28px; }
.card-header-bar {
  padding: 20px 28px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-header-bar h3 { font-size: 18px; color: var(--navy); }

/* Program cards */
.program-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
}
.program-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--royal-blue), var(--gold));
}
.program-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.program-card-icon {
  font-size: 48px;
  padding: 32px 28px 16px;
}
.program-card-body { padding: 0 28px 32px; }
.program-card-title { font-size: 22px; color: var(--navy); margin-bottom: 12px; }
.program-card-desc { color: var(--text-mid); font-size: 15px; line-height: 1.6; }

/* Trainer cards */
.trainer-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
}
.trainer-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.trainer-photo {
  width: 100%;
  height: 240px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--navy), var(--royal-blue));
  display: flex; align-items: center; justify-content: center;
}
.trainer-photo-placeholder {
  width: 100%; height: 240px;
  background: linear-gradient(135deg, var(--navy) 0%, #1a3560 100%);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 64px;
  color: rgba(240,180,41,0.4);
  letter-spacing: 4px;
}
.trainer-card-body { padding: 24px; }
.trainer-name { font-size: 20px; color: var(--navy); margin-bottom: 4px; }
.trainer-title { font-size: 13px; color: var(--royal-blue); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.trainer-bio { font-size: 14px; color: var(--text-mid); line-height: 1.6; margin-bottom: 16px; }
.trainer-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.trainer-tag {
  background: rgba(21,101,192,0.08);
  color: var(--royal-blue);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  background: var(--navy);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,15,36,0.85) 0%, transparent 60%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 16px;
  opacity: 0; transition: opacity 0.3s;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-cat-label {
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--gold); margin-bottom: 4px;
}
.gallery-item-title { color: white; font-weight: 600; font-size: 14px; }

/* Stat cards */
.stat-card {
  background: white;
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--royal-blue);
  display: flex;
  align-items: center;
  gap: 20px;
}
.stat-card.gold   { border-color: var(--gold); }
.stat-card.green  { border-color: var(--success); }
.stat-card.red    { border-color: var(--danger); }
.stat-card.navy   { border-color: var(--navy); }
.stat-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  background: rgba(21,101,192,0.1);
  flex-shrink: 0;
}
.stat-card.gold .stat-icon { background: rgba(240,180,41,0.15); }
.stat-card.green .stat-icon { background: rgba(34,197,94,0.12); }
.stat-card.red .stat-icon { background: rgba(239,68,68,0.12); }
.stat-card.navy .stat-icon { background: rgba(13,27,62,0.1); }
.stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 36px;
  color: var(--navy);
  line-height: 1;
}
.stat-label { font-size: 13px; color: var(--text-mid); font-weight: 500; margin-top: 4px; }

/* ================================================================
   ADMIN SIDEBAR LAYOUT
   ================================================================ */
.admin-layout {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: var(--sidebar-w);
  background: var(--dark-navy);
  position: fixed;
  top: 0; left: 0; bottom: 0;
  display: flex; flex-direction: column;
  z-index: 100;
  border-right: 1px solid rgba(255,255,255,0.05);
  transition: transform 0.3s ease;
}
.sidebar-brand {
  padding: 28px 20px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  gap: 12px;
}
.sidebar-logo-box {
  width: 42px; height: 42px;
  background: var(--royal-blue);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px;
  color: var(--gold);
  flex-shrink: 0;
}
.sidebar-brand-name {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: white;
  line-height: 1.2;
}
.sidebar-brand-sub { font-size: 10px; color: var(--gold); letter-spacing: 2px; text-transform: uppercase; }

.sidebar-nav { flex: 1; overflow-y: auto; padding: 16px 12px; }
.sidebar-section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  padding: 12px 10px 6px;
}
.sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 8px;
  color: rgba(255,255,255,0.65);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: var(--transition);
  margin-bottom: 2px;
  letter-spacing: 0.3px;
  cursor: pointer;
}
.sidebar-item:hover, .sidebar-item.active {
  background: rgba(21,101,192,0.25);
  color: white;
}
.sidebar-item.active { color: var(--gold); background: rgba(240,180,41,0.1); border-left: 3px solid var(--gold); }
.sidebar-item .si-icon { font-size: 18px; width: 22px; text-align: center; flex-shrink: 0; }
.sidebar-footer {
  padding: 16px 12px;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
}
.sidebar-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--royal-blue);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; color: white;
  flex-shrink: 0;
}
.sidebar-username { font-size: 13px; font-weight: 600; color: white; }
.sidebar-role { font-size: 11px; color: var(--gold); text-transform: uppercase; letter-spacing: 1px; }

/* Main content area */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex; flex-direction: column;
  min-height: 100vh;
}
.topbar {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 1px 8px rgba(13,27,62,0.06);
}
.topbar-title { font-size: 20px; color: var(--navy); font-family: 'Rajdhani', sans-serif; font-weight: 700; }
.topbar-right { display: flex; align-items: center; gap: 16px; }
.topbar-user {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 600; color: var(--text-dark);
}
.page-body { padding: 32px; flex: 1; }

/* ================================================================
   TABLES
   ================================================================ */
.table-wrapper { overflow-x: auto; }
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.table th {
  text-align: left;
  padding: 12px 16px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-mid);
  background: var(--off-white);
  border-bottom: 2px solid var(--border);
}
.table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-dark);
  vertical-align: middle;
}
.table tbody tr:hover { background: #f8faff; }
.table tbody tr:last-child td { border-bottom: none; }

/* ================================================================
   FORMS
   ================================================================ */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background: white;
  transition: var(--transition);
  outline: none;
}
.form-control:focus { border-color: var(--royal-blue); box-shadow: 0 0 0 3px rgba(21,101,192,0.12); }
.form-control::placeholder { color: var(--text-light); }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { cursor: pointer; }
.form-error { color: var(--danger); font-size: 13px; margin-top: 6px; display: none; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }

/* ================================================================
   MODAL
   ================================================================ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(8,15,36,0.7);
  backdrop-filter: blur(4px);
  z-index: 500;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform 0.25s;
}
.modal-overlay.active .modal { transform: translateY(0); }
.modal-header {
  padding: 24px 28px 20px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.modal-title { font-size: 20px; color: var(--navy); }
.modal-close {
  background: none; border: none;
  font-size: 22px; cursor: pointer;
  color: var(--text-light);
  line-height: 1;
  padding: 4px 8px; border-radius: 4px;
}
.modal-close:hover { color: var(--danger); background: #fee2e2; }
.modal-body { padding: 28px; }
.modal-footer { padding: 20px 28px; border-top: 1px solid var(--border); display: flex; gap: 12px; justify-content: flex-end; }

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  background: var(--dark-navy);
  color: rgba(255,255,255,0.65);
  padding: 64px 0 0;
  border-top: 1px solid rgba(240,180,41,0.15);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; }
.footer-brand-name {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700; font-size: 20px;
  color: white; margin-bottom: 8px;
}
.footer-tagline { font-size: 13px; color: rgba(255,255,255,0.4); margin-bottom: 24px; }
.footer-col-title {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700; font-size: 14px;
  color: white; letter-spacing: 1px; text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(240,180,41,0.3);
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,0.55); font-size: 14px; transition: var(--transition); }
.footer-links a:hover { color: var(--gold); }
.footer-contact-item {
  display: flex; gap: 10px;
  font-size: 14px;
  margin-bottom: 12px;
  color: rgba(255,255,255,0.55);
}
.footer-contact-icon { color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}
.footer-bottom-left { color: rgba(255,255,255,0.4); }
.footer-bottom-right { display: flex; gap: 20px; }
.footer-bottom-right a { color: rgba(255,255,255,0.4); font-size: 13px; }
.footer-bottom-right a:hover { color: var(--gold); }

/* ================================================================
   WHY CHOOSE SECTION
   ================================================================ */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.why-card {
  display: flex; gap: 20px;
  background: white;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.why-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--royal-blue), #1a77d6);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  color: white;
}
.why-title { font-size: 18px; margin-bottom: 8px; color: var(--navy); }
.why-desc { font-size: 14px; color: var(--text-mid); line-height: 1.6; }

/* ================================================================
   EVENTS SECTION
   ================================================================ */
.event-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.event-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.event-date-box {
  width: 80px; min-width: 80px;
  background: var(--navy);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 16px 8px;
}
.event-day { font-family: 'Bebas Neue', sans-serif; font-size: 36px; color: var(--gold); line-height: 1; }
.event-month { font-size: 11px; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.event-body { padding: 20px 24px; flex: 1; }
.event-title { font-size: 17px; color: var(--navy); margin-bottom: 6px; }
.event-meta { display: flex; gap: 20px; font-size: 13px; color: var(--text-light); flex-wrap: wrap; }
.event-meta span { display: flex; align-items: center; gap: 5px; }

/* ================================================================
   NOTIFICATION / ALERT
   ================================================================ */
.alert {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 16px;
  display: flex; align-items: flex-start; gap: 10px;
}
.alert-success { background: #dcfce7; color: #166534; border-left: 4px solid var(--success); }
.alert-danger   { background: #fee2e2; color: #991b1b; border-left: 4px solid var(--danger); }
.alert-warning  { background: #fef3c7; color: #713f12; border-left: 4px solid var(--warning); }
.alert-info     { background: #dbeafe; color: #1e40af; border-left: 4px solid var(--info); }

/* ================================================================
   LOADING SPINNER
   ================================================================ */
.spinner {
  width: 40px; height: 40px;
  border: 4px solid rgba(21,101,192,0.15);
  border-top-color: var(--royal-blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 40px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ================================================================
   AUTH PAGES (Login / Signup)
   ================================================================ */
.auth-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-visual {
  background: linear-gradient(135deg, var(--dark-navy) 0%, var(--navy) 50%, #1a3560 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 60px;
  position: relative;
  overflow: hidden;
}
.auth-visual::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(21,101,192,0.2) 0%, transparent 70%);
  top: -100px; left: -100px;
}
.auth-visual::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240,180,41,0.1) 0%, transparent 70%);
  bottom: -80px; right: -80px;
}
.auth-visual-content { position: relative; z-index: 2; text-align: center; }
.auth-logo-box {
  width: 80px; height: 80px;
  background: var(--royal-blue);
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px; color: var(--gold);
  margin: 0 auto 24px;
  box-shadow: 0 8px 32px rgba(21,101,192,0.4);
}
.auth-logo-img { width: 80px; height: 80px; border-radius: 20px; object-fit: contain; margin: 0 auto 24px; }
.auth-tagline {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 42px; color: white;
  letter-spacing: 2px; line-height: 1.05;
  margin-bottom: 16px;
}
.auth-tagline .gold { color: var(--gold); }
.auth-desc { font-size: 15px; color: rgba(255,255,255,0.6); line-height: 1.7; max-width: 360px; }
.auth-pills { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 32px; }
.auth-pill {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 13px; color: rgba(255,255,255,0.7);
  font-weight: 500;
}
.auth-form-panel {
  display: flex; align-items: center; justify-content: center;
  padding: 60px 40px;
  background: var(--off-white);
  overflow-y: auto;
}
.auth-form-card {
  width: 100%; max-width: 480px;
  background: white;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 48px 44px;
}
.auth-form-title { font-size: 28px; color: var(--navy); margin-bottom: 6px; }
.auth-form-sub { font-size: 14px; color: var(--text-mid); margin-bottom: 36px; }
.auth-form-footer { text-align: center; margin-top: 24px; font-size: 14px; color: var(--text-mid); }
.auth-form-footer a { color: var(--royal-blue); font-weight: 600; }
.password-wrapper { position: relative; }
.password-toggle {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: var(--text-light);
  font-size: 18px; padding: 4px;
}

/* ================================================================
   PERFORMANCE / ANALYSIS PAGE
   ================================================================ */
.perf-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--royal-blue) 100%);
  border-radius: var(--radius);
  padding: 32px 36px;
  color: white;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.perf-hero-name { font-family: 'Bebas Neue', sans-serif; font-size: 40px; letter-spacing: 2px; }
.perf-hero-belt {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.15); border-radius: 20px;
  padding: 6px 16px; font-size: 14px; font-weight: 600;
}
.readiness-badge {
  padding: 12px 24px;
  border-radius: 12px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700; font-size: 16px; letter-spacing: 1px;
  text-transform: uppercase; text-align: center;
}
.readiness-ready { background: rgba(34,197,94,0.2); border: 2px solid #22c55e; color: #86efac; }
.readiness-developing { background: rgba(240,180,41,0.2); border: 2px solid var(--gold); color: var(--gold-light); }
.readiness-needs { background: rgba(239,68,68,0.2); border: 2px solid var(--danger); color: #fca5a5; }

.progress-bar-wrap { background: #e2e8f0; border-radius: 8px; height: 10px; overflow: hidden; }
.progress-bar { height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--royal-blue), var(--gold)); transition: width 0.8s ease; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .auth-layout { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-form-panel { padding: 40px 24px; }
}

@media (max-width: 768px) {
  .navbar-nav, .navbar-actions { display: none; }
  .hamburger { display: flex; }
  .grid-2, .grid-3, .why-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero-content { max-width: 100%; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .page-body { padding: 20px; }
  .topbar { padding: 0 20px; }
  .perf-hero { flex-direction: column; }
}

@media (max-width: 480px) {
  .auth-form-card { padding: 32px 24px; }
  .event-card { flex-direction: column; }
  .event-date-box { width: 100%; flex-direction: row; gap: 8px; padding: 12px 20px; justify-content: flex-start; }
}

/* ================================================================
   ANIMATIONS
   ================================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp 0.5s ease both; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* Misc */
.divider { border: none; border-top: 1px solid var(--border); margin: 24px 0; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-light); }
.empty-state .empty-icon { font-size: 56px; margin-bottom: 16px; opacity: 0.5; }
.empty-state p { font-size: 16px; }

.nav-mobile-menu {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0;
  background: var(--dark-navy);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  z-index: 999;
  padding: 16px;
}
.nav-mobile-menu.open { display: block; }
.nav-mobile-menu a {
  display: block;
  padding: 12px 16px;
  color: rgba(255,255,255,0.8);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 16px;
  border-radius: 8px;
  text-decoration: none;
}
.nav-mobile-menu a:hover { background: rgba(255,255,255,0.08); color: var(--gold); }

.sidebar-toggle-btn {
  display: none;
  background: none; border: none;
  font-size: 22px; cursor: pointer;
  color: var(--text-dark);
  padding: 4px;
}
@media (max-width: 768px) { .sidebar-toggle-btn { display: block; } }

/* Topbar Back link */
.back-link { font-size: 14px; color: var(--royal-blue); font-weight: 600; }
.back-link:hover { color: var(--navy); }
