/* ============================
   Growing Up — Main Stylesheet
   Deep Navy + Gold Theme
   ============================ */

:root {
  --navy: #0B1D3A;
  --navy-light: #132D5E;
  --navy-dark: #061125;
  --gold: #D4A843;
  --gold-light: #F0D078;
  --gold-dark: #B8912E;
  --white: #FFFFFF;
  --gray-50: #F8F9FA;
  --gray-100: #F0F1F3;
  --gray-200: #E2E4E8;
  --gray-300: #C5C9D0;
  --gray-500: #6B7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --success: #10B981;
  --danger: #EF4444;
  --warning: #F59E0B;
  --info: #3B82F6;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--gray-50);
  color: var(--gray-900);
  line-height: 1.6;
  min-height: 100vh;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* Navbar */
.navbar {
  background: var(--navy);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.navbar .logo {
  display: flex; align-items: center; gap: 10px;
  color: var(--white);
  font-size: 22px;
  font-weight: 700;
}
.logo-img {
  width: 38px; height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  background: var(--white);
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}
.hero-logo {
  width: 100px; height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold);
  background: var(--white);
  margin: 0 auto 24px;
  display: block;
  image-rendering: -webkit-optimize-contrast;
}
.navbar .logo span { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  color: var(--gray-300);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}
.nav-links .btn-gold {
  background: var(--gold);
  color: var(--navy);
  font-weight: 600;
}
.nav-links .btn-gold:hover { background: var(--gold-light); }

.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 26px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  margin-left: auto;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 80px 24px;
  text-align: center;
}
.hero h1 {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}
.hero h1 span { color: var(--gold); }
.hero p {
  font-size: 18px;
  color: var(--gray-300);
  max-width: 600px;
  margin: 0 auto 32px;
}
/* Hero CTA Buttons — stacked full-width */
.hero-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 52px;
  border-radius: 26px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  box-sizing: border-box;
}
.hero-btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.hero-btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212,168,67,0.3);
}
.hero-btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.hero-btn-outline:hover {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  transform: translateY(-1px);
}
.hero-btn-gold {
  background: var(--white);
  color: var(--navy);
}
.hero-btn-gold:hover {
  background: var(--gray-100);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(255,255,255,0.2);
}

/* Profile Icon */
/* Nav Profile Icon (desktop) — Facebook-style silhouette */
.nav-profile-desktop {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #e4e6eb;
  color: #65676b;
  font-size: 18px;
  text-decoration: none;
  transition: var(--transition);
  flex-shrink: 0;
  margin-left: 10px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  overflow: hidden;
}
.nav-profile-desktop:hover {
  background: var(--white);
  border-color: var(--gold-light);
  box-shadow: 0 0 0 2px rgba(212,168,67,0.3);
  color: var(--navy);
}
/* Nav Profile link (mobile hamburger) */
.nav-profile-mobile {
  display: none;
}

/* Dashboard Profile Row */
.dash-profile-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.dash-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 3px solid rgba(255,255,255,0.3);
  overflow: hidden;
}
.dash-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dash-avatar span {
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
}

/* User Dashboard Styles */
.dash-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: -28px;
  margin-bottom: 32px;
}
.dash-stat-card {
  background: var(--white);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  gap: 14px;
}
.dash-stat-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.dash-stat-icon i { font-size: 24px; }
.dash-stat-value { font-size: 22px; font-weight: 800; color: var(--navy); }
.dash-stat-label { font-size: 12px; color: var(--gray-500); margin-top: 2px; }

.dash-section {
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding: 24px;
  margin-bottom: 20px;
}
.dash-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 8px;
}
.dash-section-header h2 {
  font-size: 18px;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.dash-section-header h2 i { color: var(--gold); }
.dash-section-badge {
  background: rgba(212,168,67,0.12);
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
}
.dash-section-count {
  font-size: 13px;
  color: var(--gray-500);
}

.dash-share-card {
  background: var(--gray-50);
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 20px;
}
.dash-share-label {
  font-size: 13px; font-weight: 600; color: var(--navy);
  margin-bottom: 8px; display: flex; align-items: center; gap: 6px;
}
.dash-share-label i { color: var(--gold); }

.dash-course-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.dash-course-link-card {
  background: var(--gray-50);
  border-radius: 10px;
  padding: 14px;
  border-top: 3px solid var(--gray-200);
}
.dash-course-link-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.dash-course-name { font-size: 13px; font-weight: 700; color: var(--navy); }
.dash-course-price { font-size: 12px; color: var(--gray-500); font-weight: 600; }

.dash-referral-list { display: flex; flex-direction: column; gap: 8px; }
.dash-referral-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--gray-50);
  border-radius: 10px;
  transition: var(--transition);
}
.dash-referral-item:hover { background: var(--gray-100); }
.dash-referral-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; flex-shrink: 0;
}
.dash-referral-info {
  flex: 1; min-width: 0;
}
.dash-referral-info strong { display: block; font-size: 14px; color: var(--navy); }
.dash-referral-info span { font-size: 12px; color: var(--gray-500); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }

.dash-course-list { display: flex; flex-direction: column; gap: 8px; }
.dash-course-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  background: var(--gray-50);
  border-radius: 10px;
  transition: var(--transition);
}
.dash-course-item:hover { background: var(--gray-100); }
.dash-course-item-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.dash-course-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.dash-course-icon i { font-size: 20px; color: var(--navy); }
.dash-course-item-left strong { display: block; font-size: 14px; color: var(--navy); }
.dash-course-item-left span { font-size: 12px; color: var(--gray-500); }

.dash-empty {
  text-align: center;
  padding: 32px 16px;
  color: var(--gray-400);
}
.dash-empty i { font-size: 40px; display: block; margin-bottom: 10px; }
.dash-empty p { font-size: 14px; margin: 0; }

@media (max-width: 768px) {
  .dash-stats { grid-template-columns: 1fr; gap: 10px; }
  .dash-stat-card { padding: 16px; }
  .dash-course-links { grid-template-columns: 1fr; }
  .dash-header h1 { font-size: 22px; }
  .dash-section { padding: 18px; }
}
@media (max-width: 480px) {
  .dash-stats { margin-top: -20px; }
  .dash-stat-value { font-size: 18px; }
  .dash-stat-icon { width: 40px; height: 40px; }
  .dash-stat-icon i { font-size: 20px; }
}

/* Container */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 60px 0; }
.section-title {
  text-align: center; font-size: 32px; font-weight: 700;
  margin-bottom: 12px; color: var(--navy);
}
.section-subtitle {
  text-align: center; color: var(--gray-500); font-size: 16px;
  margin-bottom: 48px;
}

/* Course Cards */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.course-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}
.course-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}
.course-card.featured {
  border-color: var(--gold);
  background: linear-gradient(135deg, #FFFDF5 0%, var(--white) 100%);
}
.course-card.featured::before {
  content: '★ BEST VALUE';
  position: absolute; top: 16px; right: -30px;
  background: var(--gold);
  color: var(--navy);
  padding: 4px 40px;
  font-size: 11px;
  font-weight: 700;
  transform: rotate(45deg);
}
.course-card h3 {
  font-size: 20px; font-weight: 700; margin-bottom: 8px;
  color: var(--navy);
}
.course-card .price {
  font-size: 36px; font-weight: 800; color: var(--gold-dark);
  margin-bottom: 16px;
}
.course-card .price small { font-size: 16px; color: var(--gray-500); }
.course-card p { color: var(--gray-500); font-size: 14px; margin-bottom: 20px; }
.course-card .features { margin-bottom: 24px; }
.course-card .features li {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 0; color: var(--gray-700); font-size: 14px;
}
.course-card .features li i { color: var(--success); font-size: 16px; }
.course-card .btn-course {
  display: block; width: 100%; text-align: center;
  background: var(--navy);
  color: var(--white);
  padding: 12px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: var(--transition);
}
.course-card .btn-course:hover {
  background: var(--navy-light);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition);
  border: none;
}
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-light); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-light); }
.btn-outline {
  background: transparent;
  border: 2px solid var(--navy);
  color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-danger:hover { opacity: 0.9; }
.btn-success { background: var(--success); color: var(--white); }
.btn-success:hover { opacity: 0.9; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Forms */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-weight: 600; margin-bottom: 6px;
  font-size: 14px; color: var(--gray-700);
}
.form-group label .required { color: var(--danger); }
.form-control {
  width: 100%; padding: 12px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 15px;
  transition: var(--transition);
  background: var(--white);
}
.form-control:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(11,29,58,0.1);
}
.form-control.error { border-color: var(--danger); }
.form-control.success { border-color: var(--success); }
.form-text { font-size: 12px; color: var(--gray-500); margin-top: 4px; }
.form-text.error { color: var(--danger); }
.form-text.success { color: var(--success); }

.radio-group { display: flex; gap: 16px; }
.radio-option {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 20px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  font-size: 14px;
}
.radio-option:hover { border-color: var(--navy); }
.radio-option input[type="radio"] { accent-color: var(--navy); }
.radio-option.selected { border-color: var(--navy); background: rgba(11,29,58,0.04); }

/* Cards */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

/* Registration Steps */
.reg-container {
  max-width: 600px;
  margin: 40px auto;
  padding: 0 24px;
}
.steps-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
  gap: 0;
}
.step-item {
  display: flex; align-items: center; gap: 0;
}
.step-dot {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 16px;
  background: var(--gray-200);
  color: var(--gray-500);
  transition: var(--transition);
}
.step-dot.active { background: var(--navy); color: var(--white); }
.step-dot.completed { background: var(--success); color: var(--white); }
.step-line {
  width: 60px; height: 3px;
  background: var(--gray-200);
  transition: var(--transition);
}
.step-line.active { background: var(--navy); }
.step-line.completed { background: var(--success); }

.step-panel { display: none; }
.step-panel.active { display: block; animation: fadeIn 0.4s ease; }

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

/* QR Display */
.qr-container {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  margin-bottom: 24px;
}
.qr-box {
  text-align: center;
  padding: 20px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  transition: var(--transition);
}
.qr-box:hover { border-color: var(--gold); }
.qr-box img {
  max-width: 180px; margin: 0 auto 10px;
  border-radius: var(--radius-sm);
}
.qr-box h4 { font-size: 14px; font-weight: 600; color: var(--navy); }
.qr-placeholder {
  width: 180px; height: 180px;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 10px;
  color: var(--gray-500);
  font-size: 14px;
}

/* Referral Info Box */
.referral-info {
  display: none;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-top: 8px;
  font-size: 13px;
  align-items: center;
  gap: 8px;
}
.referral-info.show { display: flex; }
.referral-info.valid {
  background: rgba(16,185,129,0.1);
  border: 1px solid var(--success);
  color: var(--success);
}
.referral-info.invalid {
  background: rgba(239,68,68,0.1);
  border: 1px solid var(--danger);
  color: var(--danger);
}

/* Pending Page */
.pending-container {
  display: flex; align-items: center; justify-content: center;
  min-height: calc(100vh - 64px);
  padding: 24px;
}
.pending-card {
  text-align: center; max-width: 480px;
  background: var(--white);
  padding: 48px 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.pending-card i { font-size: 64px; color: var(--warning); margin-bottom: 20px; }
.pending-card h2 { font-size: 24px; margin-bottom: 12px; color: var(--navy); }
.pending-card p { color: var(--gray-500); font-size: 15px; }

/* Dashboard */
.dash-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 40px 24px;
}
.dash-header h1 { font-size: 28px; margin-bottom: 4px; }
.dash-header p { color: var(--gray-300); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: -30px;
  margin-bottom: 32px;
}
.stat-card {
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}
.stat-card i { font-size: 32px; color: var(--gold); margin-bottom: 8px; }
.stat-card .stat-value { font-size: 28px; font-weight: 800; color: var(--navy); }
.stat-card .stat-label { font-size: 13px; color: var(--gray-500); margin-top: 4px; }

/* Referral Link Box */
.referral-box {
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.referral-box h3 { margin-bottom: 12px; color: var(--navy); }
.referral-link-group {
  display: flex; gap: 8px;
}
.referral-link-group input {
  flex: 1; padding: 10px 14px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 13px;
  background: var(--gray-50);
}
.referral-link-group button { white-space: nowrap; }

/* Tables */
.table-container { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead { background: var(--gray-50); }
th {
  text-align: left; padding: 12px 16px;
  font-size: 12px; text-transform: uppercase;
  color: var(--gray-500); font-weight: 600;
  letter-spacing: 0.5px;
}
td { padding: 12px 16px; font-size: 14px; border-bottom: 1px solid var(--gray-100); }

/* Status Badges */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.badge-pending { background: rgba(245,158,11,0.1); color: var(--warning); }
.badge-approved { background: rgba(16,185,129,0.1); color: var(--success); }
.badge-rejected { background: rgba(239,68,68,0.1); color: var(--danger); }
.badge-active { background: rgba(16,185,129,0.1); color: var(--success); }
.badge-inactive { background: rgba(239,68,68,0.1); color: var(--danger); }

/* Modal */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
  align-items: center; justify-content: center;
  padding: 24px;
}
.modal-overlay.show { display: flex; }
.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 500px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  animation: fadeIn 0.3s ease;
}
.modal h3 { margin-bottom: 20px; color: var(--navy); }
.modal-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 24px; }

/* Alert */
.alert {
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}
.alert-success { background: rgba(16,185,129,0.1); color: var(--success); border: 1px solid var(--success); }
.alert-danger { background: rgba(239,68,68,0.1); color: var(--danger); border: 1px solid var(--danger); }
.alert-warning { background: rgba(245,158,11,0.1); color: var(--warning); border: 1px solid var(--warning); }
.alert-info { background: rgba(59,130,246,0.1); color: var(--info); border: 1px solid var(--info); }

/* Footer */
.footer {
  background: var(--navy-dark);
  color: var(--gray-300);
  padding: 0;
}
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}
.footer-brand h3 { color: var(--white); font-size: 20px; margin-bottom: 8px; }
.footer-brand p { font-size: 13px; color: var(--gray-500); max-width: 300px; line-height: 1.6; }
.footer-logo {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  background: var(--white);
  margin-bottom: 10px;
}
.footer-links h4, .footer-contact h4 {
  color: var(--white); font-size: 14px; font-weight: 600;
  margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.5px;
}
.footer-links a, .footer-contact a {
  display: block; color: var(--gray-500); font-size: 13px;
  margin-bottom: 10px; transition: var(--transition);
}
.footer-links a:hover, .footer-contact a:hover { color: var(--gold); }
.footer-contact a { display: flex; align-items: center; gap: 8px; }
.footer-contact a i { font-size: 16px; color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 16px 24px;
  text-align: center;
  font-size: 12px;
  color: var(--gray-500);
}
.footer a { color: var(--gold); }

/* Admin Sidebar */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 250px;
  background: var(--navy);
  color: var(--white);
  padding: 24px 0;
  position: fixed;
  top: 0; bottom: 0;
  overflow-y: auto;
  z-index: 100;
}
.admin-sidebar .sidebar-logo {
  padding: 0 20px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 16px;
  font-size: 20px; font-weight: 700;
  display: flex; align-items: center; gap: 10px;
}
.admin-sidebar .sidebar-logo .logo-img {
  width: 34px; height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  background: var(--white);
}
.admin-sidebar .sidebar-logo span { color: var(--gold); }
.sidebar-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 24px;
  color: var(--gray-300);
  font-size: 14px;
  transition: var(--transition);
}
.sidebar-nav a:hover, .sidebar-nav a.active {
  background: rgba(255,255,255,0.1);
  color: var(--white);
}
.sidebar-nav a i { font-size: 18px; width: 22px; text-align: center; }
.sidebar-divider {
  height: 1px; background: rgba(255,255,255,0.1);
  margin: 12px 20px;
}

.admin-content {
  flex: 1;
  margin-left: 250px;
  padding: 32px;
  min-height: 100vh;
}
.admin-content h1 {
  font-size: 24px; color: var(--navy); margin-bottom: 24px;
  display: flex; align-items: center; gap: 10px;
}
.admin-content h1 i { color: var(--gold); }

/* Admin Topbar */
.admin-topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
.admin-topbar h1 { margin-bottom: 0; font-size: 22px; }
.admin-topbar .hamburger { display: none; }

/* Admin Stats Grid — new card design */
.dash-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.dash-stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1px solid var(--gray-100);
  transition: var(--transition);
}
.dash-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}
.dash-stat-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.dash-stat-icon i { font-size: 24px; color: var(--white); }
.dash-stat-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dash-stat-value { font-size: 24px; font-weight: 800; color: var(--navy); line-height: 1.2; }
.dash-stat-label { font-size: 12px; color: var(--gray-500); font-weight: 500; white-space: nowrap; }

/* Keep old class names for backwards compat */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.admin-stat-card {
  padding: 20px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  color: var(--white);
}
.admin-stat-left { position: relative; z-index: 1; }
.admin-stat-value { font-size: 26px; font-weight: 800; }
.admin-stat-label { font-size: 12px; opacity: 0.85; margin-top: 2px; }
.admin-stat-icon-bg {
  width: 50px; height: 50px;
  border-radius: 12px;
  background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
}
.admin-stat-icon-bg i { font-size: 24px; color: var(--white); }
.admin-stat-blue { background: linear-gradient(135deg, #3B82F6, #2563EB); }
.admin-stat-gold { background: linear-gradient(135deg, #D4A843, #B8902E); }
.admin-stat-green { background: linear-gradient(135deg, #10B981, #059669); }
.admin-stat-teal { background: linear-gradient(135deg, #14B8A6, #0D9488); }
.admin-stat-orange { background: linear-gradient(135deg, #F59E0B, #D97706); }

/* Admin Quick Actions Grid */
.admin-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}
.admin-action-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 12px;
  border-radius: 10px;
  background: var(--gray-50);
  border: 2px solid var(--gray-100);
  text-decoration: none;
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
  position: relative;
}
.admin-action-card:hover {
  border-color: var(--gold);
  background: rgba(212,168,67,0.06);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.admin-action-card i { font-size: 26px; color: var(--gold); }
.admin-action-badge {
  position: absolute;
  top: 8px; right: 8px;
  background: var(--danger);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}

@media (max-width: 768px) {
  .admin-topbar .hamburger { display: flex; }
  .admin-stats-grid { grid-template-columns: 1fr 1fr; }
  .admin-actions-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .admin-stats-grid { grid-template-columns: 1fr; }
  .admin-stat-value { font-size: 20px; }
}

/* Screenshot Preview */
.screenshot-thumb {
  width: 60px; height: 60px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  cursor: pointer;
  border: 2px solid var(--gray-200);
  transition: var(--transition);
}
.screenshot-thumb:hover { border-color: var(--navy); transform: scale(1.05); }

/* Loading spinner */
.spinner {
  display: inline-block;
  width: 20px; height: 20px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.spinner-dark {
  border-color: rgba(0,0,0,0.15);
  border-top-color: var(--navy);
}

/* Toast notification */
.toast-container {
  position: fixed; top: 80px; right: 24px;
  z-index: 99999;
  display: flex; flex-direction: column; gap: 8px;
}
.toast {
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: slideIn 0.3s ease;
  display: flex; align-items: center; gap: 8px;
  min-width: 280px;
}
.toast-success { background: var(--success); color: var(--white); }
.toast-error { background: var(--danger); color: var(--white); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* Responsive */
@media (max-width: 768px) {
  .hamburger { display: flex; align-items: center; justify-content: center; }
  .navbar .logo { font-size: 17px; gap: 7px; }
  .logo-img { width: 30px; height: 30px; }
  .navbar { height: 52px; padding: 0 14px; }
  .nav-links {
    display: none;
    position: absolute;
    top: 52px; left: 0; right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 8px 12px;
    gap: 2px;
    z-index: 998;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 11px 14px; width: 100%; border-radius: var(--radius-sm); font-size: 14px; }
  .nav-links .btn-gold { text-align: center; margin-top: 4px; }

  .nav-profile-desktop { display: none; }
  .nav-profile-mobile { display: flex !important; }



  .hero h1 { font-size: 32px; }
  .hero p { font-size: 15px; }

  .courses-grid { grid-template-columns: 1fr; }
  .courses-grid-2x2 { grid-template-columns: 1fr; }
  .qr-container { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-content { grid-template-columns: 1fr; gap: 24px; padding: 32px 24px 24px; }

  .admin-sidebar {
    transform: translateX(-100%);
    transition: var(--transition);
  }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-content { margin-left: 0; }

  .steps-indicator { gap: 0; }
  .step-line { width: 40px; }

  .referral-link-group { flex-direction: column; }
  
  .course-detail-card { margin: 0 -8px; }
  .how-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero { padding: 50px 16px; }
  .hero h1 { font-size: 26px; }
  .stats-grid { grid-template-columns: 1fr; }
  .radio-group { flex-direction: column; }

  .nav-profile-desktop { display: none; }


}

/* ========================================
   New Course Cards (2x2 Grid)
   ======================================== */
.courses-grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  max-width: 820px;
  margin: 0 auto;
}
.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}
.course-card-new {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  font-size: 13px;
}
.course-card-new:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
}
.course-card-new.featured-new {
  border: 2px solid var(--gold);
  border-top: 4px solid;
  border-image: linear-gradient(135deg, #3B82F6, #D4A843) 1;
}

/* Badge */
.course-badge {
  position: absolute;
  top: 10px; right: 10px;
  background: var(--gold);
  color: var(--navy);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  z-index: 5;
  box-shadow: 0 2px 6px rgba(212,168,67,0.4);
}

/* Thumbnail */
.course-thumb {
  position: relative;
  width: 100%;
  height: 90px;
  overflow: hidden;
}
.course-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.course-card-new:hover .course-thumb img {
  transform: scale(1.05);
}
.course-thumb-overlay {
  position: absolute;
  bottom: 6px; left: 6px;
  width: 28px; height: 28px;
  background: var(--navy);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.course-thumb-overlay i {
  color: var(--gold);
  font-size: 14px;
}

/* Body */
.course-body {
  padding: 10px 12px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.course-title-new {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1px;
}
.course-subtitle {
  font-size: 10px;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  margin-bottom: 4px;
}
.course-price-new {
  font-size: 18px;
  font-weight: 800;
  color: var(--gold-dark);
  margin-bottom: 3px;
}
.course-desc {
  color: var(--gray-500);
  font-size: 12px;
  margin-bottom: 10px;
  line-height: 1.4;
}

/* Content List */
.course-content-list {
  list-style: none;
  margin-bottom: 10px;
  flex: 1;
}
.course-content-list li {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 1px 0;
  font-size: 11px;
  color: var(--gray-700);
}
.content-emoji {
  font-size: 12px;
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

/* No Certification Notice */
.no-cert-notice {
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.3);
  border-radius: var(--radius-sm);
  padding: 5px 8px;
  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin-bottom: 8px;
  font-size: 10px;
  color: #92640A;
  line-height: 1.3;
}
.no-cert-notice i {
  color: var(--warning);
  font-size: 14px;
  margin-top: 1px;
  flex-shrink: 0;
}

/* Get Started Button */
.btn-course-new {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  padding: 8px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 12px;
  transition: var(--transition);
  text-decoration: none;
  margin-top: auto;
}
.btn-course-new:hover {
  background: var(--navy-light);
  transform: translateY(-1px);
}

/* ========================================
   Course Detail Page
   ======================================== */
.course-detail-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}
.course-detail-thumb {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
}
.course-detail-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.course-detail-icon {
  position: absolute;
  bottom: -24px; left: 32px;
  width: 56px; height: 56px;
  background: var(--navy);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  border: 3px solid var(--white);
}
.course-detail-icon i {
  color: var(--gold);
  font-size: 26px;
}
.course-detail-body {
  padding: 40px 32px 32px;
}
.course-detail-label {
  font-size: 12px;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  margin-bottom: 4px;
}
.course-detail-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
}
.course-detail-price {
  font-size: 36px;
  font-weight: 800;
  color: var(--gold-dark);
  margin-bottom: 12px;
}
.course-detail-desc {
  color: var(--gray-500);
  font-size: 16px;
  margin-bottom: 24px;
  line-height: 1.6;
}
.course-detail-content {
  list-style: none;
  margin-bottom: 20px;
}
.course-detail-content li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-size: 15px;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
}
.course-detail-content li:last-child {
  border-bottom: none;
}
.course-detail-actions {
  margin-top: 8px;
}

/* Refer & Earn Box */
.refer-earn-box {
  margin-top: 16px;
  padding: 20px;
  background: rgba(212,168,67,0.06);
  border: 1px solid rgba(212,168,67,0.25);
  border-radius: var(--radius);
}
.refer-earn-box h4 {
  color: var(--navy);
  font-size: 16px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Locked course card */
.course-card-locked {
  opacity: 0.55;
  pointer-events: none;
  filter: grayscale(40%);
  position: relative;
}
.course-card-locked::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.04);
  border-radius: var(--radius-lg);
}
.locked-msg {
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 12px;
  color: var(--danger);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

/* ========================================
   Dashboard Referral Section Enhanced
   ======================================== */
.referral-dashboard {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}
.referral-dashboard .card {
  padding: 14px;
}

/* Course border color classes */
.course-border-starter { border-top: 3px solid #3B82F6; }
.course-border-prime { border-top: 3px solid #8B5CF6; }
.course-border-master { border-top: 3px solid #D4A843; }
.course-border-everything { border-top: 3px solid; border-image: linear-gradient(135deg, #3B82F6, #D4A843) 1; }
@media (max-width: 768px) {
  .referral-dashboard { grid-template-columns: 1fr; }
}

/* WhatsApp share button in dashboard */
.btn-whatsapp {
  background: #25D366;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.btn-whatsapp:hover { background: #1EBE5A; }

/* Registration Course Selection Grid */
.reg-course-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
}
.reg-course-option {
  position: relative;
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 14px;
  cursor: pointer;
  transition: var(--transition);
}
.reg-course-option:hover {
  border-color: var(--gold);
  box-shadow: 0 2px 12px rgba(212,168,67,0.15);
}
.reg-course-option.selected {
  border-color: var(--navy);
  background: rgba(11,29,58,0.03);
  box-shadow: 0 0 0 3px rgba(11,29,58,0.1);
}
@media (max-width: 480px) {
  .reg-course-grid { grid-template-columns: 1fr; }
}

/* ── Password Toggle Eye ── */
.password-wrapper {
  position: relative;
  width: 100%;
}
.password-wrapper .form-control {
  padding-right: 48px;
  width: 100%;
  box-sizing: border-box;
}
.password-wrapper .password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-500);
  font-size: 20px;
  padding: 0;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  z-index: 2;
  line-height: 1;
  width: 28px;
  height: 28px;
}
.password-wrapper .password-toggle:hover {
  color: var(--gold);
}
