/* ============================================
   MPA - Shared Stylesheet
   Dark theme, mobile-first, clean & modern
   ============================================ */

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

/* ---------- Root Variables ---------- */
:root {
  --bg:        #0f172a;
  --card:      #1e293b;
  --text:      #e2e8f0;
  --muted:     #94a3b8;
  --green:     #22c55e;
  --gold:      #facc15;
  --orange:    #f97316;
  --blue:      #3b82f6;
  --red:       #ef4444;
  --radius:    12px;
  --shadow:    0 4px 24px rgba(0,0,0,0.3);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
  --max-w:     1200px;
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Hind Siliguri', 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

a {
  color: var(--green);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--gold);
}

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

ul {
  list-style: none;
}

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- Section ---------- */
.section {
  padding: 60px 0;
}

.section-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  margin-bottom: 8px;
}

.section-subtitle {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 32px;
}

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

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-align: center;
  text-decoration: none;
}

.btn-primary {
  background: var(--green);
  color: #0f172a;
}

.btn-primary:hover {
  background: #16a34a;
  color: #0f172a;
}

.btn-outline {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}

.btn-outline:hover {
  background: var(--green);
  color: #0f172a;
}

.btn-gold {
  background: var(--gold);
  color: #0f172a;
}

.btn-gold:hover {
  background: #eab308;
  color: #0f172a;
}

.btn-small {
  padding: 8px 16px;
  font-size: 0.85rem;
}

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

/* ---------- Badges / Pills ---------- */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.badge-html {
  background: rgba(249, 115, 22, 0.15);
  color: var(--orange);
  border: 1px solid rgba(249, 115, 22, 0.3);
}

.badge-c {
  background: rgba(59, 130, 246, 0.15);
  color: var(--blue);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-free {
  background: rgba(34, 197, 94, 0.15);
  color: var(--green);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge-gold {
  background: rgba(250, 204, 21, 0.15);
  color: var(--gold);
  border: 1px solid rgba(250, 204, 21, 0.3);
}

/* ============================================
   NAVBAR (rebuilt from scratch)
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #0f172a;
  border-bottom: 1px solid #1e293b;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  white-space: nowrap;
  text-decoration: none;
  color: var(--text);
}

.nav-brand:hover {
  color: var(--green);
}

.nav-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
}

.nav-brand-name {
  font-weight: 700;
  font-size: 1rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  white-space: nowrap;
  color: #e2e8f0;
  text-decoration: none;
  font-size: 0.95rem;
}

.nav-menu a:hover,
.nav-menu a.active {
  background: #1e293b;
  color: #22c55e;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle .bar {
  width: 24px;
  height: 2px;
  background: #e2e8f0;
  border-radius: 2px;
}

/* Mobile navbar (max-width: 900px) */
@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    background: #0f172a;
    border-bottom: 1px solid #1e293b;
    padding: 0.5rem 1rem;
    width: 100%;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu a {
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  padding: 80px 0 60px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero h1 .highlight {
  color: var(--green);
}

.hero p {
  color: var(--muted);
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  max-width: 560px;
  margin: 0 auto 32px;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   SUBJECT CARDS (Home)
   ============================================ */
.subjects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .subjects-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.subject-card .card-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.subject-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.subject-card p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ============================================
   HOW IT WORKS STRIP
   ============================================ */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  counter-reset: step;
}

@media (min-width: 640px) {
  .steps-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.step-card {
  position: relative;
  text-align: center;
  padding: 32px 20px;
  counter-increment: step;
}

.step-card::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green);
  color: #0f172a;
  font-weight: 700;
  font-size: 1rem;
  margin: 0 auto 12px;
}

.step-card h4 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.step-card p {
  color: var(--muted);
  font-size: 0.85rem;
}

/* ============================================
   IDE PROMO STRIP
   ============================================ */
.promo-card {
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.1), rgba(250, 204, 21, 0.02));
  border: 1px solid rgba(250, 204, 21, 0.2);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

@media (min-width: 768px) {
  .promo-card {
    flex-direction: row;
    text-align: left;
    justify-content: space-between;
  }
}

.promo-card h3 {
  color: var(--gold);
  font-size: 1.3rem;
}

.promo-card p {
  color: var(--muted);
}

.promo-features {
  list-style: disc;
  padding-left: 20px;
  margin-top: 8px;
}

.promo-features li {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.price-badge {
  display: inline-block;
  background: var(--gold);
  color: #0f172a;
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.9rem;
}

/* ============================================
   CLASS CARDS (shared for home + classes)
   ============================================ */
.classes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .classes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .classes-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.class-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.class-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.class-number {
  background: rgba(255,255,255,0.08);
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

.class-card h3 {
  font-size: 1.05rem;
  line-height: 1.4;
}

.class-card .class-meta {
  display: flex;
  gap: 16px;
  color: var(--muted);
  font-size: 0.8rem;
}

.class-card .class-desc {
  color: var(--muted);
  font-size: 0.9rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.class-card .class-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
}

.lock-notice {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--gold);
  font-size: 0.8rem;
  margin-top: 4px;
}

/* ============================================
   FILTER BUTTONS (classes page)
   ============================================ */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.filter-btn {
  background: var(--card);
  color: var(--muted);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 8px 20px;
  border-radius: 20px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--green);
  color: #0f172a;
  border-color: var(--green);
}

/* ============================================
   CLASS DETAIL MODAL
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
}

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

.modal {
  background: var(--card);
  border-radius: var(--radius);
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255,255,255,0.08);
  border: none;
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.modal-close:hover {
  background: rgba(255,255,255,0.15);
}

.modal h2 {
  font-size: 1.4rem;
  margin-bottom: 8px;
  padding-right: 40px;
}

.modal .class-meta {
  display: flex;
  gap: 16px;
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.modal .class-desc {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
  line-height: 1.7;
}

.modal-topics {
  margin-bottom: 20px;
}

.modal-topics h4 {
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.modal-topics ul {
  padding-left: 20px;
}

.modal-topics li {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 4px;
  list-style: disc;
}

.modal-topics li::marker {
  color: var(--green);
}

.modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

/* Video embed */
.video-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  margin-bottom: 20px;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Private video notice */
.private-notice {
  background: rgba(250, 204, 21, 0.08);
  border: 1px solid rgba(250, 204, 21, 0.2);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  margin-bottom: 20px;
}

.private-notice p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.private-notice .icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

/* ============================================
   ROUTINE TABLE
   ============================================ */
.routine-note {
  background: rgba(255,255,255,0.04);
  border-left: 3px solid var(--green);
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 24px;
  font-size: 0.9rem;
  color: var(--muted);
}

.routine-table-wrap {
  overflow-x: auto;
}

.routine-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
}

.routine-table th,
.routine-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.routine-table th {
  background: rgba(255,255,255,0.04);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  color: var(--muted);
}

.routine-table td {
  font-size: 0.9rem;
}

.routine-table tr:last-child td {
  border-bottom: none;
}

.routine-table .zoom-link {
  white-space: nowrap;
}

.no-link-text {
  color: var(--muted);
  font-size: 0.8rem;
  font-style: italic;
}

/* Mobile: stacked cards */
@media (max-width: 767px) {
  .routine-table thead {
    display: none;
  }

  .routine-table tbody tr {
    display: block;
    padding: 16px;
    margin-bottom: 12px;
    border-radius: var(--radius);
    background: var(--card);
  }

  .routine-table tbody td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }

  .routine-table tbody td:last-child {
    border-bottom: none;
  }

  .routine-table tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    color: var(--muted);
    margin-right: 12px;
    flex-shrink: 0;
  }
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .about-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

.about-card {
  text-align: center;
  padding: 32px 20px;
}

.about-card .card-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.about-card h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.about-card p {
  color: var(--muted);
  font-size: 0.85rem;
}

.benefits-list {
  display: grid;
  gap: 12px;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: var(--card);
  border-radius: var(--radius);
}

.benefit-item .check {
  color: var(--green);
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.benefit-item p {
  font-size: 0.95rem;
}

/* Teacher card */
.teacher-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 32px;
}

.teacher-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: #0f172a;
}

/* ============================================
   RESOURCES PAGE
   ============================================ */
.featured-card {
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.1), rgba(250, 204, 21, 0.02));
  border: 1px solid rgba(250, 204, 21, 0.25);
  border-radius: var(--radius);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

@media (min-width: 768px) {
  .featured-card {
    flex-direction: row;
    text-align: left;
    justify-content: space-between;
  }
}

.featured-card-text {
  flex: 1;
}

.featured-card h3 {
  font-size: 1.4rem;
  color: var(--gold);
  margin-bottom: 8px;
}

.featured-card p {
  color: var(--muted);
  margin-bottom: 12px;
}

.featured-card-img {
  width: 120px;
  height: 120px;
  border-radius: var(--radius);
  object-fit: cover;
  flex-shrink: 0;
}

.syllabus-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .syllabus-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.syllabus-card h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.syllabus-card ul {
  padding-left: 20px;
}

.syllabus-card li {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 6px;
  list-style: disc;
}

.syllabus-card li::marker {
  color: var(--green);
}

.tools-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .tools-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.tool-card h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.tool-card p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

/* ============================================
   CODE CONTAINER (VS Code look)
   ============================================ */
.code-container {
  background: #1e1e1e;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
  overflow: hidden;
  margin-top: 16px;
  max-width: 100%;
}

.code-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #2d2d2d;
}

.code-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.code-dot-red    { background: #ff5f56; }
.code-dot-yellow { background: #ffbd2e; }
.code-dot-green  { background: #27c93f; }

.code-filename {
  flex: 1;
  text-align: center;
  color: #94a3b8;
  font-size: 0.8rem;
  font-family: 'Consolas', 'Courier New', monospace;
}

.code-body {
  padding: 16px;
  overflow-x: auto;
}

.code-body pre {
  margin: 0;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 0.85rem;
  line-height: 1.6;
  color: #d4d4d4;
}

.code-body code {
  font-family: inherit;
}

/* Syntax highlight colors */
.code-tag   { color: #22c55e; }
.code-attr  { color: #facc15; }
.code-str   { color: #f97316; }
.code-cmt   { color: #64748b; }
.code-kw    { color: #3b82f6; }
.code-fn    { color: #facc15; }
.code-num   { color: #f97316; }

.code-caption {
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 8px;
  font-style: italic;
}

/* ============================================
   ENROLL PAGE - Timeline
   ============================================ */
.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(34, 197, 94, 0.3);
}

.timeline-step {
  position: relative;
  padding: 0 0 32px 24px;
}

.timeline-step::before {
  content: "";
  position: absolute;
  left: -21px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--green);
}

.timeline-step h4 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.timeline-step p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Price card */
.price-card {
  text-align: center;
  padding: 40px 32px;
  border: 2px solid var(--green);
}

.price-card .price {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 800;
  color: var(--green);
  margin-bottom: 8px;
}

.price-card .period {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 16px;
}

/* Payment methods */
.payment-box {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
}

.payment-box h4 {
  font-size: 1rem;
  margin-bottom: 12px;
}

.payment-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.payment-item:last-child {
  border-bottom: none;
}

.payment-item .method-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.payment-item .method-number {
  color: var(--green);
  font-family: monospace;
  font-size: 0.95rem;
}

/* ============================================
   FAQ ACCORDION
   ============================================ */
.faq-list {
  display: grid;
  gap: 8px;
}

.faq-item {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  padding: 16px 20px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-question .arrow {
  transition: transform var(--transition);
  flex-shrink: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.faq-item.open .faq-question .arrow {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer-inner {
  padding: 0 20px 16px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

/* ============================================
   REGISTRATION FORM
   ============================================ */
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .form-grid .form-group.full-width {
    grid-column: 1 / -1;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
}

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

.form-control {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition);
  width: 100%;
}

.form-control:focus {
  outline: none;
  border-color: var(--green);
}

.form-control.error {
  border-color: var(--red);
}

.form-control.valid {
  border-color: var(--green);
}

select.form-control {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

select.form-control option {
  background: var(--card);
  color: var(--text);
}

/* Phone input group */
.phone-group {
  display: flex;
  align-items: stretch;
}

.phone-prefix {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-right: none;
  border-radius: 8px 0 0 8px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
}

.phone-group .form-control {
  border-radius: 0 8px 8px 0;
}

/* File input */
.file-input-wrap {
  position: relative;
}

.file-input-wrap input[type="file"] {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px dashed rgba(255,255,255,0.15);
  border-radius: 8px;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color var(--transition);
}

.file-input-wrap input[type="file"]:hover {
  border-color: var(--green);
}

.file-preview {
  margin-top: 8px;
}

.file-preview img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid rgba(255,255,255,0.1);
}

/* Date of birth selects */
.dob-group {
  display: flex;
  gap: 8px;
}

.dob-group .form-control {
  flex: 1;
  min-width: 0;
}

/* Validation messages */
.field-error {
  color: var(--red);
  font-size: 0.8rem;
  min-height: 18px;
}

.field-success {
  color: var(--green);
  font-size: 0.8rem;
  min-height: 18px;
}

/* ============================================
   SUCCESS PANEL
   ============================================ */
.success-panel {
  text-align: center;
  padding: 40px 20px;
}

.success-panel .reg-id {
  font-size: clamp(1.3rem, 4vw, 1.8rem);
  font-weight: 800;
  color: var(--gold);
  font-family: monospace;
  background: rgba(250, 204, 21, 0.08);
  padding: 16px 24px;
  border-radius: 8px;
  display: inline-block;
  margin: 16px 0;
  border: 1px solid rgba(250, 204, 21, 0.2);
  word-break: break-all;
}

.success-panel .save-note {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.summary-table {
  width: 100%;
  max-width: 500px;
  margin: 0 auto 24px;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: left;
}

.summary-table td {
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.9rem;
}

.summary-table td:first-child {
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  width: 140px;
}

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

/* ============================================
   STEP INDICATOR (Two-step flow)
   ============================================ */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 16px 0 8px;
}

.step-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  opacity: 0.35;
  transition: opacity var(--transition);
}

.step-dot.active {
  opacity: 1;
}

.step-dot.done {
  opacity: 0.7;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
  transition: all var(--transition);
}

.step-dot.active .step-num {
  background: var(--green);
  border-color: var(--green);
  color: #0f172a;
}

.step-dot.done .step-num {
  background: var(--green);
  border-color: var(--green);
  color: #0f172a;
}

.step-label {
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
}

.step-line {
  width: 80px;
  height: 2px;
  background: rgba(255,255,255,0.1);
  margin: 0 12px;
  margin-bottom: 18px;
}

/* ============================================
   PAYMENT BOX
   ============================================ */
.payment-box {
  background: rgba(34, 197, 94, 0.06);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: var(--radius);
  padding: 24px;
  margin: 24px auto;
  max-width: 500px;
  text-align: center;
}

.payment-box h3 {
  color: var(--green);
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.payment-box p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.payment-number {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--green);
  font-family: monospace;
  background: rgba(34, 197, 94, 0.1);
  padding: 8px 20px;
  border-radius: 8px;
  display: inline-block;
  margin: 8px 0;
  letter-spacing: 1px;
}

.mt-16 {
  margin-top: 16px;
}

/* ============================================
   PAID STUDENTS PAGE
   ============================================ */
.paid-week-badge {
  display: inline-block;
  background: rgba(34, 197, 94, 0.12);
  color: var(--green);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 20px;
  padding: 8px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.paid-range {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
  font-family: 'Poppins', sans-serif;
}

.paid-notice-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
}

.paid-notice-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.paid-notice-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

.paid-notice-ended {
  border: 1px solid rgba(250, 204, 21, 0.3);
  background: rgba(250, 204, 21, 0.05);
}

.paid-notice-ended h3 {
  color: var(--gold);
}

.paid-table-wrap {
  overflow-x: auto;
}

.paid-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
}

.paid-table th,
.paid-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.paid-table th {
  background: rgba(255,255,255,0.04);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  color: var(--muted);
}

.paid-table td {
  font-size: 0.9rem;
}

.paid-table tr:last-child td {
  border-bottom: none;
}

.paid-summary {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 16px;
}

/* Mobile: stacked cards */
@media (max-width: 767px) {
  .paid-table thead {
    display: none;
  }

  .paid-table tbody tr {
    display: block;
    padding: 16px;
    margin-bottom: 12px;
    border-radius: var(--radius);
    background: var(--card);
  }

  .paid-table tbody td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }

  .paid-table tbody td:last-child {
    border-bottom: none;
  }

  .paid-table tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    color: var(--muted);
    margin-right: 12px;
    flex-shrink: 0;
  }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  margin-top: auto;
  background: rgba(0,0,0,0.2);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-brand h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  color: var(--muted);
  margin-bottom: 12px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-links a {
  color: var(--text);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--green);
}

.footer-contact ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-contact a {
  color: var(--muted);
}

.footer-contact a:hover {
  color: var(--green);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 20px;
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
}

.footer-bottom a {
  color: var(--green);
}

/* ============================================
   FADE-IN ANIMATIONS
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   UTILITY
   ============================================ */
.text-center {
  text-align: center;
}

.text-green {
  color: var(--green);
}

.text-gold {
  color: var(--gold);
}

.mb-0 { margin-bottom: 0; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }

.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }

.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }

/* Page intro header */
.page-header {
  padding: 40px 0 20px;
  text-align: center;
}

.page-header h1 {
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 8px;
}

.page-header p {
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}

.empty-state .icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

/* Class not found (hash) */
.not-found {
  text-align: center;
  padding: 80px 20px;
}

.not-found h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.not-found p {
  color: var(--muted);
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.12);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.2);
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  .site-header,
  .footer,
  .hero-buttons,
  .class-actions,
  .modal-overlay,
  .filter-bar {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}
