/* ============================================================
   YAQEEN ACADEMY — Main Stylesheet
   Light, Joyful, RTL-first Design for Kids
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&family=Tajawal:wght@300;400;500;700;800&family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ── CSS Variables ────────────────────────────────────────── */
:root {
  --primary:      #C0392B;
  --primary-dark: #A93226;
  --secondary:    #E74C3C;
  --accent:       #F39C12;
  --accent-light: #FFF3CD;
  --blue:         #3498DB;
  --blue-light:   #EBF5FB;
  --purple:       #9B59B6;
  --purple-light: #F4ECF7;
  --green:        #27AE60;
  --green-light:  #EAFAF1;
  --bg:           #FFF8F8;
  --surface:      #FFFFFF;
  --text:         #1A1A2E;
  --text-muted:   #6C757D;
  --border:       #F0E0E0;
  --shadow-sm:    0 2px 12px rgba(192,57,43,.08);
  --shadow-md:    0 8px 32px rgba(192,57,43,.12);
  --shadow-lg:    0 16px 48px rgba(192,57,43,.16);
  --radius-sm:    12px;
  --radius-md:    16px;
  --radius-lg:    24px;
  --radius-xl:    32px;
  --font-ar:      'Cairo', 'Tajawal', sans-serif;
  --font-en:      'Poppins', sans-serif;
}

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-ar);
  background: var(--bg);
  color: var(--text);
  direction: rtl;
  text-align: right;
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; }
a { text-decoration: none; transition: all .25s ease; }

/* ── Hero stat numbers — target for counter animation ────── */
.hero-stat-num[data-counter] { font-variant-numeric: tabular-nums; }

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }

/* ── Typography ─────────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-ar);
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
}
.en { font-family: var(--font-en); direction: ltr; }

/* ── Old navbar styles removed — replaced by yq-nav in includes/navbar.php ── */

/* ── Hero Section ────────────────────────────────────────────── */
.hero-section {
  background: linear-gradient(135deg, #FFF8F8 0%, #FFF3E0 50%, #FFF8F8 100%);
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(192,57,43,.08) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-section::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(243,156,18,.1) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.2;
  color: var(--text);
}
.hero-title span {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.8;
}

.hero-img-wrap {
  position: relative;
  animation: heroFloat 3s ease-in-out infinite;
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-15px); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 50px;
  padding: 8px 18px;
  font-size: .9rem;
  font-weight: 700;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}
.hero-badge .dot {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: .6; transform: scale(1.3); }
}

.counter-strip {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 20px 32px;
  display: flex;
  gap: 32px;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--border);
  margin-top: 40px;
  flex-wrap: wrap;
}
.counter-item {
  text-align: center;
  flex: 1;
  min-width: 100px;
}
.counter-item .num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary);
  display: block;
}
.counter-item .label {
  font-size: .85rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ── Buttons ──────────────────────────────────────────────────── */
.btn-primary-yq {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
  background-size: 200% auto;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 14px 36px;
  border: none;
  border-radius: 50px;
  box-shadow: 0 6px 24px rgba(192,57,43,.35);
  transition: all .3s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary-yq:hover {
  background-position: right center;
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(192,57,43,.45);
  color: #fff;
}
.btn-primary-yq:active { transform: translateY(-1px); }

.btn-outline-yq {
  background: transparent;
  color: var(--primary);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 12px 32px;
  border: 2.5px solid var(--primary);
  border-radius: 50px;
  transition: all .3s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-outline-yq:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(192,57,43,.3);
}

.btn-accent-yq {
  background: linear-gradient(135deg, var(--accent), #E67E22);
  color: #fff;
  font-weight: 700;
  padding: 12px 28px;
  border: none;
  border-radius: 50px;
  box-shadow: 0 4px 16px rgba(243,156,18,.4);
  transition: all .3s ease;
  cursor: pointer;
}
.btn-accent-yq:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(243,156,18,.5);
  color: #fff;
}

/* ── Section Headings ──────────────────────────────────────── */
.section-header { margin-bottom: 48px; }
.section-label {
  display: inline-block;
  background: rgba(192,57,43,.1);
  color: var(--primary);
  font-weight: 700;
  font-size: .85rem;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 12px;
  letter-spacing: .5px;
  border: 1.5px solid rgba(192,57,43,.2);
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 900;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--text) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
}
.section-divider {
  width: 60px; height: 4px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 2px;
  margin-top: 16px;
  position: relative;
}
.section-divider::after {
  content: '';
  position: absolute;
  width: 20px; height: 4px;
  background: var(--accent);
  border-radius: 2px;
  top: 0; right: -28px;
  opacity: .5;
}

/* ── Course Cards ──────────────────────────────────────────── */
.course-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 2px solid var(--border);
  overflow: hidden;
  transition: all .35s cubic-bezier(.25,.8,.25,1);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 2px 12px rgba(192,57,43,.04);
}
.course-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(192,57,43,.16);
  border-color: var(--primary);
}
.course-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}
.course-card:hover::after { transform: scaleX(1); }

.course-card-img {
  width: 100%; height: 200px;
  object-fit: cover;
  transition: transform .4s ease;
}
.course-card:hover .course-card-img { transform: scale(1.04); }

.course-card-img-placeholder {
  width: 100%; height: 200px;
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem;
  background: linear-gradient(135deg, #FFF0F0, #FFF8F0);
  transition: transform .4s ease;
}
.course-card:hover .course-card-img-placeholder { transform: scale(1.04); }

.course-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.course-badge {
  position: absolute; top: 14px; right: 14px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; font-size: .75rem; font-weight: 700;
  padding: 4px 12px; border-radius: 50px;
  box-shadow: 0 3px 12px rgba(192,57,43,.3);
}
.course-badge.new { background: linear-gradient(135deg, var(--green), #1ABC9C); box-shadow: 0 3px 12px rgba(39,174,96,.3); }

.course-title {
  font-size: 1.1rem; font-weight: 800;
  margin-bottom: 8px; color: var(--text); line-height: 1.4;
  transition: color .2s;
}
.course-card:hover .course-title { color: var(--primary); }

.course-desc {
  font-size: .9rem; color: var(--text-muted);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.course-meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 16px; padding-top: 16px;
  border-top: 1px solid var(--border);
}
.course-price { font-size: 1.4rem; font-weight: 900; color: var(--primary); }
.course-students { font-size: .85rem; color: var(--text-muted); }
.course-rating { color: var(--accent); font-size: .9rem; }

/* ── Package Cards ──────────────────────────────────────────── */
.package-card {
  background: linear-gradient(135deg, var(--primary) 0%, #8E1A10 100%);
  border-radius: var(--radius-xl);
  padding: 36px;
  color: #fff;
  position: relative;
  overflow: hidden;
  transition: all .3s ease;
}
.package-card::before {
  content: '';
  position: absolute;
  top: -60px; left: -60px;
  width: 200px; height: 200px;
  background: rgba(255,255,255,.05);
  border-radius: 50%;
}
.package-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(192,57,43,.4);
}
.package-badge {
  background: var(--accent);
  color: var(--text);
  font-weight: 800;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: .85rem;
  display: inline-block;
  margin-bottom: 16px;
}
.package-title { font-size: 1.6rem; font-weight: 900; margin-bottom: 12px; color: #fff; }
.package-price-old { text-decoration: line-through; opacity: .6; font-size: 1.1rem; }
.package-price-new { font-size: 2.5rem; font-weight: 900; }
.package-course-list { list-style: none; padding: 0; margin: 16px 0; }
.package-course-list li {
  padding: 6px 0;
  font-size: .95rem;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: .9;
}
.package-course-list li::before { content: '✅'; }

/* ── Testimonials ───────────────────────────────────────────── */
.testimonial-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 2px solid var(--border);
  transition: all .3s ease;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.testimonial-card::before {
  content: '\201C';
  position: absolute; top: -10px; left: 16px;
  font-size: 6rem; line-height: 1;
  color: var(--accent); opacity: .12;
  font-family: Georgia, serif;
  pointer-events: none;
}
.testimonial-card:hover {
  border-color: var(--accent);
  box-shadow: 0 12px 40px rgba(243,156,18,.15);
  transform: translateY(-6px);
}
.testimonial-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; font-size: 1.4rem; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
  box-shadow: 0 4px 16px rgba(192,57,43,.25);
}
.testimonial-text {
  font-size: .95rem; color: var(--text-muted);
  line-height: 1.8; font-style: italic; margin-bottom: 16px;
}
.testimonial-name { font-weight: 800; color: var(--text); }
.testimonial-role { font-size: .85rem; color: var(--text-muted); }
.testimonial-rating { color: var(--accent); margin-bottom: 12px; font-size: 1rem; }

/* ── Auth Pages ─────────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #FFF8F8 0%, #FFF3E0 100%);
  display: flex;
  align-items: center;
  padding: 40px 0;
}
.auth-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--border);
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}
.auth-title {
  font-size: 2rem;
  font-weight: 900;
  text-align: center;
  margin-bottom: 8px;
}
.auth-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: .95rem;
}
.auth-logo {
  display: block;
  margin: 0 auto 24px;
  height: 60px;
}

/* ── Form Elements ───────────────────────────────────────────── */
.form-floating { margin-bottom: 16px; }
.form-floating label { color: var(--text-muted); }
.form-control, .form-select {
  border: 2px solid var(--border);
  border-radius: var(--radius-sm) !important;
  padding: 12px 16px;
  font-family: var(--font-ar);
  font-size: .95rem;
  transition: all .25s ease;
  background: var(--bg);
  color: var(--text);
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(192,57,43,.12);
  background: var(--surface);
  outline: none;
}
.form-control.is-invalid { border-color: var(--secondary); }
.form-control.is-valid { border-color: var(--green); }
.invalid-feedback, .valid-feedback { font-size: .875rem; font-weight: 600; }

.form-label {
  font-weight: 700;
  font-size: .9rem;
  margin-bottom: 6px;
  color: var(--text);
}

/* ── Course Detail Page ─────────────────────────────────────── */
.course-hero {
  background: linear-gradient(135deg, var(--text) 0%, #2D2D44 100%);
  padding: 60px 0;
  color: #fff;
}
.course-hero-title { font-size: clamp(1.6rem,3vw,2.4rem); font-weight: 900; color: #fff; margin-bottom: 16px; }
.course-hero-desc { color: rgba(255,255,255,.8); font-size: 1.05rem; line-height: 1.8; }

.lecture-list { list-style: none; padding: 0; margin: 0; }
.lecture-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  margin-bottom: 8px;
  background: var(--surface);
  transition: all .25s ease;
  cursor: pointer;
}
.lecture-item:hover {
  border-color: var(--primary);
  background: rgba(192,57,43,.03);
}
.lecture-item.completed { border-color: var(--green); background: var(--green-light); }
.lecture-item.active { border-color: var(--primary); background: rgba(192,57,43,.05); }
.lecture-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: .85rem;
  flex-shrink: 0;
}
.lecture-num.done { background: var(--green); border-color: var(--green); color: #fff; }

/* ── Video Player ───────────────────────────────────────────── */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #000;
}
.video-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

/* ── Progress Bar ───────────────────────────────────────────── */
.progress-yq {
  height: 10px;
  border-radius: 5px;
  background: var(--border);
  overflow: hidden;
  margin: 8px 0;
}
.progress-bar-yq {
  height: 100%;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--green) 0%, var(--accent) 60%, var(--primary) 100%);
  transition: width .8s cubic-bezier(.25,.8,.25,1);
  position: relative;
}
.progress-bar-yq::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.3) 50%, rgba(255,255,255,0) 100%);
  animation: shimmer 2s infinite;
}
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ── Dashboard ──────────────────────────────────────────────── */
.dashboard-wrap {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 260px;
  background: var(--surface);
  border-left: 2px solid var(--border);
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  flex-shrink: 0;
}
.sidebar-logo {
  padding: 0 20px 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.sidebar-logo img { height: 44px; }

.sidebar-nav { flex: 1; }
.sidebar-section-label {
  font-size: .75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 12px 20px 4px;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: .95rem;
  transition: all .25s ease;
  border-right: 3px solid transparent;
}
.sidebar-link:hover {
  color: var(--primary);
  background: rgba(192,57,43,.05);
  border-right-color: var(--primary);
}
.sidebar-link.active {
  color: var(--primary);
  background: rgba(192,57,43,.08);
  border-right-color: var(--primary);
  font-weight: 700;
}
.sidebar-link .icon { font-size: 1.2rem; flex-shrink: 0; }

.dashboard-main {
  flex: 1;
  padding: 32px;
  overflow-y: auto;
  background: var(--bg);
}

.dash-page-title {
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: 6px;
  color: var(--text);
}
.dash-page-subtitle {
  color: var(--text-muted);
  font-size: .95rem;
  margin-bottom: 32px;
}

/* ── Stat Cards ─────────────────────────────────────────────── */
.stat-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all .3s ease;
  height: 100%;
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.stat-icon {
  width: 60px; height: 60px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}
.stat-icon.red    { background: rgba(192,57,43,.12); color: #C0392B; }
.stat-icon.yellow { background: rgba(243,156,18,.12); color: #E67E22; }
.stat-icon.green  { background: rgba(39,174,96,.12);  color: #27AE60; }
.stat-icon.blue   { background: rgba(52,152,219,.12);  color: #3498DB; }
.stat-icon.purple { background: rgba(155,89,182,.12);  color: #9B59B6; }

.stat-value {
  font-size: 2rem;
  font-weight: 900;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: .875rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ── Tables ─────────────────────────────────────────────────── */
.table-yq {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--border);
}
.table-yq thead {
  background: var(--bg);
}
.table-yq thead th {
  font-weight: 800;
  font-size: .875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 14px 16px;
  border-bottom: 2px solid var(--border);
  border-top: none;
}
.table-yq tbody td {
  padding: 14px 16px;
  vertical-align: middle;
  border-bottom: 1px solid var(--border);
  font-size: .95rem;
}
.table-yq tbody tr:last-child td { border-bottom: none; }
.table-yq tbody tr:hover { background: var(--bg); }

/* ── Modals ─────────────────────────────────────────────────── */
.modal-content {
  border-radius: var(--radius-lg) !important;
  border: 2px solid var(--border) !important;
  box-shadow: var(--shadow-lg) !important;
}
.modal-header {
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
}
.modal-body { padding: 24px; }
.modal-footer {
  border-top: 1px solid var(--border);
  padding: 16px 24px;
}
.modal-title { font-weight: 800; font-size: 1.2rem; }

/* ── Alert / Flash ───────────────────────────────────────────── */
.alert-yq {
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-weight: 600;
  border: none;
  display: flex;
  align-items: center;
  gap: 12px;
}
.alert-success-yq { background: var(--green-light); color: #155724; }
.alert-danger-yq  { background: #FDECEA; color: #721C24; }
.alert-warning-yq { background: var(--accent-light); color: #856404; }
.alert-info-yq    { background: var(--blue-light); color: #0C5460; }

/* ── Payment Modal ───────────────────────────────────────────── */
.payment-method-card {
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  cursor: pointer;
  transition: all .25s ease;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.payment-method-card:hover,
.payment-method-card.selected {
  border-color: var(--primary);
  background: rgba(192,57,43,.04);
}
.payment-method-card input[type="radio"] { accent-color: var(--primary); }
.payment-icon { font-size: 2rem; }
.payment-name { font-weight: 800; font-size: 1rem; color: var(--text); }
.payment-number { font-size: .9rem; color: var(--text-muted); font-family: var(--font-en); direction: ltr; }

/* ── Upload Zone ─────────────────────────────────────────────── */
.upload-zone {
  border: 3px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  cursor: pointer;
  transition: all .25s ease;
  background: var(--bg);
}
.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--primary);
  background: rgba(192,57,43,.03);
}
.upload-zone .upload-icon { font-size: 3rem; margin-bottom: 12px; }
.upload-zone .upload-text { font-weight: 700; color: var(--text); margin-bottom: 4px; }
.upload-zone .upload-hint { font-size: .85rem; color: var(--text-muted); }

/* ── Enrollment Status Banner ───────────────────────────────── */
.enrollment-banner {
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.enrollment-banner.pending  { background: var(--accent-light); border: 2px solid var(--accent); }
.enrollment-banner.approved { background: var(--green-light);  border: 2px solid var(--green); }
.enrollment-banner.rejected { background: #FDECEA; border: 2px solid var(--secondary); }
.enrollment-banner .icon { font-size: 2.5rem; }

/* ── Confetti Animation ──────────────────────────────────────── */
.confetti-wrap {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 9999;
}

/* ── Skeleton Loading ────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, #f0e0e0 25%, #f8f0f0 50%, #f0e0e0 75%);
  background-size: 200% 100%;
  animation: skeletonPulse 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes skeletonPulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Footer ─────────────────────────────────────────────────── */
.footer-main {
  background: linear-gradient(160deg, #1A1A2E 0%, #16213E 60%, #0F3460 100%);
  color: rgba(255,255,255,.8);
  padding: 60px 0 24px;
  margin-top: 80px;
  position: relative;
  overflow: hidden;
}
.footer-main::before {
  content: '';
  position: absolute; top: -80px; right: -80px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(192,57,43,.08) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.footer-main::after {
  content: '';
  position: absolute; bottom: -60px; left: -60px;
  width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(243,156,18,.06) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.footer-logo { height: 50px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-tagline { font-size: .95rem; opacity: .7; margin-bottom: 24px; }
.footer-heading { font-size: 1rem; font-weight: 800; color: #fff; margin-bottom: 16px; }
.footer-link {
  display: block;
  color: rgba(255,255,255,.7);
  font-size: .9rem;
  margin-bottom: 8px;
  transition: color .2s;
}
.footer-link:hover { color: var(--accent); }
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  justify-content: flex-end;
}
.social-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 1rem;
  transition: all .25s ease;
}
.social-btn:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-3px);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  margin-top: 40px;
  text-align: center;
  color: rgba(255,255,255,.5);
  font-size: .875rem;
}
.footer-payment-nums {
  background: rgba(255,255,255,.05);
  border-radius: var(--radius-md);
  padding: 20px;
}
.payment-num-item { margin-bottom: 8px; font-size: .9rem; }
.payment-num-item span { color: var(--accent); font-weight: 700; }

/* ── Admin specific ─────────────────────────────────────────── */
.admin-topbar {
  background: var(--surface);
  border-bottom: 2px solid var(--border);
  padding: 12px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}
.admin-user-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  padding: 6px 14px;
  border-radius: 50px;
  border: 1.5px solid var(--border);
}
.admin-user-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: .9rem;
}

.chart-wrap {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 2px solid var(--border);
}
.chart-title { font-size: 1.1rem; font-weight: 800; margin-bottom: 16px; color: var(--text); }

/* ── Badge overrides ─────────────────────────────────────────── */
.badge { font-family: var(--font-ar); font-weight: 700; font-size: .8rem; padding: 5px 10px; border-radius: 50px; }

/* ── Mobile ─────────────────────────────────────────────────── */
@media (max-width: 991px) {
  .sidebar {
    position: fixed;
    right: -260px;
    z-index: 1050;
    transition: right .3s ease;
    height: 100vh;
    box-shadow: var(--shadow-lg);
  }
  .sidebar.open { right: 0; }
  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 1040;
  }
  .sidebar-overlay.show { display: block; }
  .dashboard-main { padding: 20px 16px; }
  .auth-card { padding: 32px 20px; }
  .counter-strip { gap: 16px; padding: 16px; }
  .hero-section { padding: 40px 0; }
}

@media (max-width: 576px) {
  .stat-card { flex-direction: column; text-align: center; }
  .package-card { padding: 24px 20px; }
  .table-yq { font-size: .875rem; }
  .course-card-img-placeholder { height: 150px; font-size: 3rem; }
}

/* ── Utilities ───────────────────────────────────────────────── */
.gap-3 { gap: 12px; }
.text-primary-yq { color: var(--primary) !important; }
.text-accent { color: var(--accent) !important; }
.bg-primary-yq { background: var(--primary) !important; }
.rounded-yq { border-radius: var(--radius-lg) !important; }
.shadow-yq { box-shadow: var(--shadow-md) !important; }
.border-yq { border: 2px solid var(--border) !important; }

.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.fade-in {
  animation: fadeIn .5s ease forwards;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════════
   HERO V2 — Full redesigned homepage hero
   ═══════════════════════════════════════════════════════════════ */

.hero-v2 {
  background: linear-gradient(160deg, #FFF0F0 0%, #FFFBF0 40%, #F0F8FF 100%);
  padding: 0 0 70px;
  position: relative;
  overflow: hidden;
}
.hero-v2::before {
  content: '';
  position: absolute; top: -120px; right: -120px;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(192,57,43,.10) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.hero-v2::after {
  content: '';
  position: absolute; bottom: -100px; left: -100px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(243,156,18,.12) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}

/* Circular logo at top */
.hero-logo-wrap {
  text-align: center;
  padding: 40px 0 32px;
  position: relative; z-index: 2;
}
.hero-logo-circle {
  width: 150px; height: 150px;
  border-radius: 50%;
  background: #fff;
  border: 5px solid #fff;
  box-shadow: 0 8px 40px rgba(192,57,43,.22), 0 0 0 10px rgba(192,57,43,.08);
  display: inline-flex; align-items: center; justify-content: center;
  animation: logoPop .8s cubic-bezier(.34,1.56,.64,1) both;
  overflow: hidden;
  position: relative;
}
@keyframes logoPop {
  from { transform: scale(.5); opacity: 0; }
  to   { transform: scale(1);  opacity: 1; }
}
.hero-logo-circle img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block; border-radius: 50%;
}
.hero-logo-tagline {
  display: block; margin-top: 14px;
  font-size: 1rem; font-weight: 700;
  color: var(--primary); letter-spacing: .5px;
}

/* Kids avatar row */
.kids-row {
  display: flex; justify-content: center; align-items: flex-end;
  gap: 16px; margin-bottom: -10px;
  position: relative; z-index: 2; flex-wrap: wrap;
}
.kid-card {
  display: flex; flex-direction: column; align-items: center;
  animation: kidBounce 3s ease-in-out infinite;
}
.kid-card:nth-child(2) { animation-delay: .4s; }
.kid-card:nth-child(3) { animation-delay: .8s; }
.kid-card:nth-child(4) { animation-delay: .3s; }
.kid-card:nth-child(5) { animation-delay: .6s; }
@keyframes kidBounce {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-12px); }
}
.kid-avatar {
  width: 90px; height: 90px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 6px 24px rgba(0,0,0,.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 3.2rem; line-height: 1;
  position: relative;
}
.kid-avatar.big {
  width: 115px; height: 115px; font-size: 4rem;
  border: 4px solid #fff;
  box-shadow: 0 8px 32px rgba(192,57,43,.2);
}
.kid-badge {
  position: absolute; top: -6px; right: -6px;
  background: var(--accent); color: #fff;
  font-size: .65rem; font-weight: 800;
  padding: 3px 7px; border-radius: 50px;
  white-space: nowrap; border: 2px solid #fff;
}
.kid-name {
  margin-top: 8px;
  font-size: .78rem; font-weight: 800;
  color: var(--text-muted);
}

/* Floating tech bubbles */
.float-bubble {
  position: absolute;
  background: #fff;
  border-radius: 16px;
  padding: 8px 14px;
  font-size: .8rem; font-weight: 800;
  box-shadow: 0 4px 20px rgba(0,0,0,.1);
  border: 2px solid var(--border);
  white-space: nowrap;
  animation: bubbleFloat 4s ease-in-out infinite;
  z-index: 3;
}
.float-bubble:nth-child(2) { animation-delay: 1s; }
.float-bubble:nth-child(3) { animation-delay: 2s; }
.float-bubble:nth-child(4) { animation-delay: 1.5s; }
@keyframes bubbleFloat {
  0%,100% { transform: translateY(0) rotate(-2deg); }
  50%     { transform: translateY(-10px) rotate(2deg); }
}

/* Hero text */
.hero-v2-text {
  text-align: center;
  padding: 32px 16px 0;
  position: relative; z-index: 2;
}
.hero-v2-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900; line-height: 1.2;
  color: var(--text); margin-bottom: 16px;
}
.hero-v2-title .grad {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-v2-sub {
  font-size: 1.1rem; color: var(--text-muted);
  max-width: 600px; margin: 0 auto 32px;
  line-height: 1.8;
}
.hero-v2-btns {
  display: flex; justify-content: center;
  flex-wrap: wrap; gap: 14px; margin-bottom: 40px;
}

/* Stats row */
.hero-stats {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 0; background: #fff;
  border-radius: var(--radius-xl);
  border: 2px solid var(--border);
  box-shadow: var(--shadow-md);
  max-width: 680px; margin: 0 auto; overflow: hidden;
}
.hero-stat-item {
  flex: 1; min-width: 130px;
  text-align: center; padding: 20px 16px;
  border-left: 1px solid var(--border);
  transition: background .2s;
}
.hero-stat-item:last-child { border-left: none; }
.hero-stat-item:hover { background: rgba(192,57,43,.03); }
.hero-stat-num {
  display: block;
  font-size: 2rem; font-weight: 900;
  color: var(--primary); line-height: 1; margin-bottom: 4px;
}
.hero-stat-label { font-size: .8rem; font-weight: 700; color: var(--text-muted); }

/* Wave divider */
.hero-wave {
  position: absolute; bottom: 0; left: 0; right: 0;
  line-height: 0;
}

/* Trust pills */
.trust-pill {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  padding: 7px 18px;
  font-size: .85rem; font-weight: 700;
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
  display: inline-flex; align-items: center; gap: 6px;
  transition: all .25s ease;
}
.trust-pill:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Code editor block */
.code-editor-preview {
  max-width: 520px; margin: 28px auto 0;
  background: #1A1A2E;
  border-radius: 16px; padding: 16px 20px;
  direction: ltr; font-family: 'Courier New', monospace;
  font-size: .85rem; box-shadow: 0 8px 32px rgba(0,0,0,.2);
}
.code-editor-dots {
  display: flex; gap: 8px; align-items: center; margin-bottom: 12px;
}
.code-dot {
  width: 12px; height: 12px; border-radius: 50%; display: inline-block;
}
.code-dot.red    { background: #E74C3C; }
.code-dot.yellow { background: #F39C12; }
.code-dot.green  { background: #27AE60; }
.code-filename {
  color: #6C757D; font-size: .72rem;
  margin-right: auto; margin-left: 8px;
}

/* ── Hero Cards (Student Heroes section) ─────────────────── */
.hero-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(243,156,18,.2);
  border-color: var(--accent) !important;
}

/* How-it-works step card */
.step-card {
  text-align: center; padding: 32px 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 2px solid var(--border);
  transition: all .3s ease;
  height: 100%;
}
.step-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.step-icon-wrap {
  width: 70px; height: 70px;
  border-radius: 50%;
  background: rgba(0,0,0,.05);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.step-num {
  display: inline-block; color: #fff;
  border-radius: 50%; width: 26px; height: 26px;
  line-height: 26px; font-size: .8rem;
  font-weight: 900; margin-bottom: 8px;
}

/* Features strip */
.feature-icon-wrap {
  margin-bottom: 12px; width: 60px; height: 60px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-left: auto; margin-right: auto;
}

@media (max-width: 576px) {
  .hero-v2 { padding: 0 0 50px; }
  .hero-logo-circle { width: 110px; height: 110px; }
  .kid-avatar { width: 68px; height: 68px; font-size: 2.4rem; }
  .kid-avatar.big { width: 88px; height: 88px; font-size: 3rem; }
  .float-bubble { display: none; }
  .hero-stats { border-radius: var(--radius-lg); }
  .hero-stat-item { min-width: 100px; padding: 14px 10px; }
  .hero-stat-num { font-size: 1.5rem; }
}
