/* ═══════════════════════════════════════════
   THABAT ACADEMY — Global Styles
   Fonts: DM Serif Display + DM Sans
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

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

:root {
  --ink:       #1a1a2e;
  --ink-soft:  #2d2d4a;
  --gold:      #c9a84c;
  --gold-lt:   #e8d5a3;
  --gold-dim:  rgba(201,168,76,0.15);
  --cream:     #faf8f3;
  --cream-dk:  #f3f0e8;
  --white:     #ffffff;
  --muted:     #6b6b7a;
  --muted-lt:  #9b9baa;
  --border:    #e4e0d6;
  --border-lt: #eeebe3;
  --serif:     'DM Serif Display', Georgia, serif;
  --sans:      'DM Sans', system-ui, sans-serif;
  --radius:    12px;
  --radius-sm: 8px;
  --shadow:    0 4px 24px rgba(26,26,46,0.07);
  --shadow-lg: 0 12px 48px rgba(26,26,46,0.12);
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

p { line-height: 1.75; }

.section-label {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  display: block;
}

.section-title {
  font-size: clamp(1.9rem, 5vw, 2.9rem);
  color: var(--ink);
  margin-bottom: 16px;
}

.section-body {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.8;
  max-width: 540px;
  font-weight: 300;
}

/* ── LAYOUT ── */
section { padding: 88px 24px; }
.container { max-width: 940px; margin: 0 auto; }
.container-sm { max-width: 680px; margin: 0 auto; }

.divider {
  display: flex; align-items: center; gap: 18px;
  padding: 0 24px; max-width: 940px; margin: 0 auto;
}
.divider-line { flex: 1; height: 1px; background: var(--border); }
.divider-icon { color: var(--gold); font-size: 0.85rem; opacity: 0.7; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px;
  background: rgba(250,248,243,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-lt);
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 2px 20px rgba(26,26,46,0.06); }

.nav-logo {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
  z-index: 101;
  display: flex; align-items: center; gap: 3px;
}
.nav-logo span { color: var(--gold); }

.nav-right { display: flex; align-items: center; gap: 10px; z-index: 101; }

.nav-social { display: flex; gap: 7px; }
.nav-social a {
  width: 34px; height: 34px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); display: flex;
  align-items: center; justify-content: center;
  text-decoration: none; color: var(--muted); font-size: 1rem;
  transition: all 0.2s;
}
.nav-social a:hover { border-color: var(--gold); color: var(--ink); background: var(--gold-dim); }
.nav-social a.whatsapp:hover { border-color: #25D366; color: #25D366; background: rgba(37,211,102,0.08); }

.nav-cta {
  background: var(--ink); color: var(--white);
  border: none; padding: 9px 20px; border-radius: var(--radius-sm);
  font-family: var(--sans); font-size: 0.82rem; font-weight: 500;
  cursor: pointer; text-decoration: none; transition: background 0.2s;
  display: none; letter-spacing: 0.01em;
}
.nav-cta:hover { background: var(--ink-soft); }
@media (min-width: 600px) { .nav-cta { display: inline-block; } }

/* ── HAMBURGER ── */
.hamburger {
  width: 34px; height: 34px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 5px; padding: 0; transition: border-color 0.2s;
}
.hamburger:hover { border-color: var(--gold); }
.hamburger span {
  display: block; width: 15px; height: 1.5px;
  background: var(--ink); border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── DRAWER ── */
.menu-overlay {
  position: fixed; inset: 0; background: rgba(26,26,46,0.4);
  z-index: 98; opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.menu-overlay.open { opacity: 1; pointer-events: all; }

.menu-drawer {
  position: fixed; top: 0; right: 0;
  width: min(300px, 85vw); height: 100vh;
  background: var(--white); z-index: 99;
  transform: translateX(100%); transition: transform 0.3s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column;
  padding: 84px 28px 36px;
  border-left: 1px solid var(--border);
  box-shadow: -12px 0 48px rgba(26,26,46,0.1);
}
.menu-drawer.open { transform: translateX(0); }

.menu-nav { list-style: none; margin-bottom: 24px; }
.menu-nav li { border-bottom: 1px solid var(--border-lt); }
.menu-nav a {
  display: block; padding: 14px 0;
  font-family: var(--serif); font-size: 1.3rem;
  color: var(--ink); text-decoration: none; transition: color 0.2s;
  position: relative;
}
.menu-nav a:hover { color: var(--gold); }
.menu-nav a.active {
  color: var(--gold);
}
.menu-nav a.active::before {
  content: '';
  position: absolute; left: -28px; top: 0; bottom: 0;
  width: 3px; background: var(--gold); border-radius: 0 2px 2px 0;
}
.menu-nav a.highlight { color: var(--gold); font-weight: 400; }
.menu-nav a.highlight.active { color: var(--gold); }

.menu-cta {
  background: var(--ink); color: var(--white);
  border: none; padding: 13px 20px; border-radius: var(--radius-sm);
  font-family: var(--sans); font-size: 0.88rem; font-weight: 500;
  text-decoration: none; text-align: center; display: block;
  margin-bottom: 18px; transition: background 0.2s; letter-spacing: 0.01em;
}
.menu-cta:hover { background: var(--ink-soft); }

.menu-social { display: flex; gap: 10px; margin-top: auto; }
.menu-social a {
  display: flex; align-items: center; gap: 7px;
  text-decoration: none; color: var(--muted); font-size: 0.82rem; font-weight: 500;
  padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  transition: all 0.2s; flex: 1; justify-content: center;
}
.menu-social a:hover { border-color: var(--gold); color: var(--ink); }
.menu-social a.whatsapp:hover { border-color: #25D366; color: #25D366; }

/* ── BUTTONS ── */
.btn-primary {
  background: var(--ink); color: var(--white);
  border: none; padding: 14px 30px; border-radius: var(--radius-sm);
  font-family: var(--sans); font-size: 0.9rem; font-weight: 500;
  cursor: pointer; text-decoration: none; display: inline-block;
  transition: background 0.2s, transform 0.15s; letter-spacing: 0.01em;
}
.btn-primary:hover { background: var(--ink-soft); transform: translateY(-1px); }

.btn-secondary {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.35);
  padding: 14px 30px; border-radius: var(--radius-sm);
  font-family: var(--sans); font-size: 0.9rem; font-weight: 400;
  cursor: pointer; text-decoration: none; display: inline-block;
  transition: all 0.2s; backdrop-filter: blur(4px);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.22);
  border-color: var(--gold);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-gold {
  display: block; width: 100%;
  background: var(--gold); color: var(--white);
  border: none; padding: 14px; border-radius: var(--radius-sm);
  font-family: var(--sans); font-size: 0.9rem; font-weight: 500;
  cursor: pointer; text-align: center; text-decoration: none;
  transition: background 0.2s, transform 0.15s; letter-spacing: 0.01em;
}
.btn-gold:hover { background: #b8943e; transform: translateY(-1px); }

/* ── FORMS ── */
.form-group { margin-bottom: 13px; }
.form-group label {
  display: block; font-size: 0.78rem; font-weight: 500;
  color: var(--ink); margin-bottom: 5px; letter-spacing: 0.01em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 11px 13px;
  font-family: var(--sans); font-size: 0.88rem; font-weight: 300;
  color: var(--ink); background: var(--cream); outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none; line-height: 1.5;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.1);
}

/* Field validation error state */
.form-group input.field-error,
.form-group select.field-error,
.form-group textarea.field-error {
  border-color: #e53e3e;
  box-shadow: 0 0 0 3px rgba(229,62,62,0.1);
}
.field-error-msg {
  display: block;
  font-size: 0.72rem;
  color: #e53e3e;
  margin-top: 4px;
  font-weight: 400;
}
.form-section-label {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gold); margin: 20px 0 10px;
}
.form-submit {
  width: 100%; background: var(--ink); color: var(--white);
  border: none; padding: 14px; border-radius: var(--radius-sm);
  font-family: var(--sans); font-size: 0.9rem; font-weight: 500;
  cursor: pointer; margin-top: 6px; transition: background 0.2s;
  letter-spacing: 0.01em;
}
.form-submit:hover { background: var(--ink-soft); }
.form-submit:disabled { opacity: 0.4; cursor: not-allowed; }

/* ── MODAL ── */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(26,26,46,0.6); z-index: 200;
  align-items: center; justify-content: center;
  padding: 20px; backdrop-filter: blur(6px);
}
.modal-overlay.active { display: flex; }

.modal {
  background: var(--white); border-radius: var(--radius);
  padding: 36px 28px; width: 100%; max-width: 480px;
  position: relative; max-height: 90vh; overflow-y: auto;
}
.modal h2 { font-size: 1.7rem; margin-bottom: 5px; }
.modal > p { font-size: 0.84rem; color: var(--muted); margin-bottom: 22px; font-weight: 300; }

.modal-close {
  position: sticky; top: 0; float: right;
  background: var(--cream); border: 1px solid var(--border);
  border-radius: 50%; width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--muted); cursor: pointer; margin-bottom: 8px;
}

.success-msg { display: none; text-align: center; padding: 20px 0; }
.success-msg .check-big { font-size: 2.5rem; margin-bottom: 10px; }
.success-msg h3 { font-family: var(--serif); font-size: 1.5rem; color: var(--ink); margin-bottom: 8px; }
.success-msg p { font-size: 0.85rem; color: var(--muted); font-weight: 300; }

/* ── CARDS ── */
.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px 22px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.card:hover { border-color: var(--gold-lt); transform: translateY(-2px); box-shadow: var(--shadow); }

/* ── BADGE ── */
.badge {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 100px; padding: 6px 15px;
  font-size: 0.78rem; font-weight: 400; color: var(--ink);
  display: inline-flex; align-items: center; gap: 7px;
}
.badge-dot { width: 5px; height: 5px; background: var(--gold); border-radius: 50%; flex-shrink: 0; }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  padding: 136px 24px 64px; text-align: center;
  background: linear-gradient(160deg, var(--cream) 0%, rgba(201,168,76,0.05) 100%);
  border-bottom: 1px solid var(--border-lt);
}
.page-hero .arabic-sub {
  font-family: var(--serif); font-size: clamp(1.4rem, 3.5vw, 2rem); font-style: italic;
  color: var(--gold); direction: rtl; margin-bottom: 18px; opacity: 1;
  display: block; letter-spacing: 0.04em;
}
.page-hero h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); margin-bottom: 14px; }
.page-hero p { font-size: 1rem; color: var(--muted); max-width: 480px; margin: 0 auto; font-weight: 300; }

/* ── PRICING ── */
.pricing-section { background: var(--ink); }
.pricing-section .section-label { color: var(--gold); }
.pricing-section .section-title { color: var(--white); }
.pricing-section .section-body { color: rgba(255,255,255,0.45); }

.pricing-toggle-wrap {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; margin: 28px 0 36px;
}
.toggle-label {
  font-size: 0.88rem; font-weight: 400; color: rgba(255,255,255,0.4);
  transition: color 0.2s; cursor: pointer;
}
.toggle-label.active { color: var(--white); }
.toggle-track {
  width: 48px; height: 25px; background: rgba(255,255,255,0.08);
  border-radius: 100px; position: relative; cursor: pointer;
  border: 1px solid rgba(201,168,76,0.3); transition: background 0.2s;
}
.toggle-track.semi { background: rgba(201,168,76,0.18); }
.toggle-thumb {
  width: 17px; height: 17px; background: var(--gold);
  border-radius: 50%; position: absolute; top: 3px; left: 3px;
  transition: transform 0.25s cubic-bezier(.4,0,.2,1);
}
.toggle-track.semi .toggle-thumb { transform: translateX(23px); }
.save-badge {
  background: rgba(201,168,76,0.12); color: var(--gold);
  border: 1px solid rgba(201,168,76,0.25); border-radius: 100px;
  padding: 2px 10px; font-size: 0.7rem; font-weight: 500;
}
.pricing-card {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius); padding: 34px 28px; position: relative; overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s, opacity 0.25s;
}
.pricing-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: linear-gradient(90deg, var(--gold), var(--gold-lt));
}
.pricing-card.inactive { opacity: 0.35; border-color: rgba(255,255,255,0.04); }
.pricing-card.active-plan {
  border-color: rgba(201,168,76,0.5);
  box-shadow: 0 0 0 1px rgba(201,168,76,0.3), 0 8px 40px rgba(201,168,76,0.1);
}
.pricing-badge {
  display: inline-block; background: rgba(201,168,76,0.1); color: var(--gold);
  border: 1px solid rgba(201,168,76,0.2); border-radius: 100px;
  padding: 2px 11px; font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px;
}
.pricing-amount {
  font-family: var(--serif); font-size: 3.6rem;
  color: var(--white); line-height: 1; margin-bottom: 4px;
}
.pricing-amount sup { font-size: 1.3rem; vertical-align: super; }
.pricing-period { font-size: 0.8rem; color: rgba(255,255,255,0.3); margin-bottom: 22px; }
.pricing-features { list-style: none; margin-bottom: 26px; }
.pricing-features li {
  display: flex; align-items: flex-start; gap: 9px;
  padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.86rem; color: rgba(255,255,255,0.65); font-weight: 300;
}
.pricing-features li:last-child { border-bottom: none; }
.check { color: var(--gold); font-size: 0.8rem; flex-shrink: 0; margin-top: 2px; }
.pricing-note { text-align: center; font-size: 0.72rem; color: rgba(255,255,255,0.2); margin-top: 12px; }

/* ── PROGRAM CARDS ── */
.program-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
  gap: 16px; margin-top: 44px;
}
.program-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px 22px; cursor: pointer;
  transition: all 0.2s; position: relative;
}
.program-card:hover { border-color: var(--gold-lt); transform: translateY(-2px); box-shadow: var(--shadow); }
.program-card.selected-program {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold), 0 6px 28px rgba(201,168,76,0.1);
}
.program-card.selected-program::after {
  content: '✓'; position: absolute; top: 12px; right: 14px;
  width: 20px; height: 20px; background: var(--gold); color: var(--white);
  border-radius: 50%; font-size: 0.65rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.program-icon { font-size: 1.6rem; margin-bottom: 12px; }
.program-card h3 { font-family: var(--serif); font-size: 1.1rem; color: var(--ink); margin-bottom: 4px; }
.program-arabic { font-size: 0.88rem; color: var(--gold); margin-bottom: 8px; direction: rtl; text-align: right; }
.program-card p { font-size: 0.82rem; color: var(--muted); line-height: 1.65; font-weight: 300; }
.program-terms { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.term-tag {
  background: rgba(201,168,76,0.07); border: 1px solid rgba(201,168,76,0.18);
  color: var(--gold); border-radius: 100px; padding: 2px 9px;
  font-size: 0.67rem; font-weight: 500; letter-spacing: 0.04em;
}

/* ── SCHEDULE ── */
.day-tab {
  padding: 7px 15px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: var(--white);
  font-family: var(--sans); font-size: 0.82rem; font-weight: 400;
  color: var(--muted); cursor: pointer; transition: all 0.15s;
}
.day-tab:hover { border-color: var(--gold); color: var(--ink); }
.day-tab.active { background: var(--ink); color: var(--white); border-color: var(--ink); }

.slot-btn {
  padding: 10px 8px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: var(--white);
  font-family: var(--sans); font-size: 0.77rem; font-weight: 400;
  color: var(--ink); cursor: pointer; text-align: center;
  transition: all 0.15s; line-height: 1.4;
}
.slot-btn:hover:not(.booked) { border-color: var(--gold); background: var(--gold-dim); }
.slot-btn.selected { background: var(--ink); color: var(--white); border-color: var(--ink); }
.slot-btn.booked { background: var(--cream-dk); color: var(--muted-lt); cursor: not-allowed; border-color: var(--border-lt); }

.selected-tag {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--ink); color: var(--white);
  padding: 5px 11px; border-radius: 100px; font-size: 0.74rem; font-weight: 400;
}
.selected-tag button {
  background: none; border: none; color: rgba(255,255,255,0.45);
  cursor: pointer; font-size: 0.85rem; padding: 0; line-height: 1;
}
.selected-tag button:hover { color: var(--white); }

/* ── LOCK / STUDENT PAGE ── */
.lock-screen {
  min-height: 100vh; display: flex; align-items: center;
  justify-content: center; padding: 24px;
  background: linear-height(135deg, var(--ink) 0%, var(--ink-soft) 100%);
  background: var(--ink);
}
.lock-card {
  background: var(--white); border-radius: var(--radius);
  padding: 44px 36px; width: 100%; max-width: 400px; text-align: center;
  box-shadow: var(--shadow-lg);
}
.lock-icon { font-size: 2rem; margin-bottom: 14px; }
.lock-card h2 { font-size: 1.7rem; margin-bottom: 5px; }
.lock-card p { font-size: 0.84rem; color: var(--muted); margin-bottom: 22px; font-weight: 300; }
.lock-error { color: #c0392b; font-size: 0.8rem; margin-top: 10px; display: none; }

/* ── STUDENT DASHBOARD ── */
.student-dashboard { display: none; background: var(--cream); min-height: 100vh; }
.dash-header {
  background: var(--ink); color: var(--white);
  padding: 80px 24px 48px; text-align: center;
}
.dash-header .student-id {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 8px; display: block;
}
.dash-header h1 { font-family: var(--serif); font-size: 2.2rem; margin-bottom: 4px; }
.dash-header p { font-size: 0.83rem; color: rgba(255,255,255,0.38); font-weight: 300; }

.ring-wrap { position: relative; width: 96px; height: 96px; margin: 0 auto; }
.ring-wrap svg { transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: rgba(255,255,255,0.07); stroke-width: 5; }
.ring-fill { fill: none; stroke: var(--gold); stroke-width: 5; stroke-linecap: round; transition: stroke-dashoffset 1.2s cubic-bezier(.4,0,.2,1); }
.ring-label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.ring-pct { font-family: var(--serif); font-size: 1.4rem; color: var(--white); line-height: 1; }
.ring-sub { font-size: 0.58rem; color: rgba(255,255,255,0.3); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 3px; }
.progress-label { font-size: 0.78rem; color: rgba(255,255,255,0.35); margin-top: 10px; font-weight: 300; }

.dash-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px,1fr));
  gap: 14px; padding: 28px 24px; max-width: 940px; margin: 0 auto;
}
.dash-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 18px;
}
.dash-card-label { font-size: 0.67rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 7px; display: block; }
.dash-card-value { font-family: var(--serif); font-size: 1.5rem; color: var(--ink); line-height: 1.1; }
.dash-card-sub { font-size: 0.76rem; color: var(--muted); margin-top: 3px; font-weight: 300; }

.surah-progress { padding: 0 24px 40px; max-width: 940px; margin: 0 auto; }
.surah-title { font-family: var(--serif); font-size: 1.3rem; margin-bottom: 14px; }
.surah-list { display: flex; flex-direction: column; gap: 7px; }
.surah-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 16px;
}
.surah-status {
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; font-weight: 700; flex-shrink: 0;
}
.status-done { background: rgba(201,168,76,0.12); color: var(--gold); }
.status-active { background: rgba(26,26,46,0.07); color: var(--ink); }
.status-pending { background: var(--cream-dk); color: var(--muted-lt); }
.surah-name { font-weight: 400; font-size: 0.86rem; flex: 1; }
.surah-arabic { font-family: var(--serif); font-size: 0.88rem; color: var(--muted); direction: rtl; }
.surah-juz { font-size: 0.7rem; color: var(--muted); white-space: nowrap; }

.teacher-notes { padding: 0 24px 60px; max-width: 940px; margin: 0 auto; }
.note-item {
  background: var(--white); border: 1px solid var(--border);
  border-left: 3px solid var(--gold); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 16px; margin-bottom: 10px;
}
.note-date { font-size: 0.7rem; color: var(--muted); margin-bottom: 5px; font-weight: 300; }
.note-text { font-size: 0.86rem; color: var(--ink); line-height: 1.7; font-weight: 300; }

/* ── FOOTER ── */
.site-footer {
  background: var(--ink); color: rgba(255,255,255,0.3);
  padding: 52px 24px 28px; font-size: 0.78rem; font-weight: 300;
}
.footer-inner { max-width: 940px; margin: 0 auto; }
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr));
  gap: 32px; margin-bottom: 36px; padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-col-title {
  color: rgba(255,255,255,0.5); font-weight: 500;
  font-size: 0.68rem; letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 14px; display: block;
}
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links a { color: rgba(255,255,255,0.3); text-decoration: none; transition: color 0.2s; font-weight: 300; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  display: flex; flex-wrap: wrap;
  justify-content: space-between; align-items: center; gap: 10px;
}
.footer-social { display: flex; gap: 12px; margin-top: 14px; }
.footer-social a { color: rgba(255,255,255,0.35); text-decoration: none; font-size: 1.1rem; transition: color 0.2s; }
.footer-social a:hover { color: var(--gold); }
.footer-social a.whatsapp:hover { color: #25D366; }

/* ── WHATSAPP FLOAT ── */
.wa-float {
  position: fixed; bottom: 22px; right: 22px; z-index: 90;
  width: 50px; height: 50px; background: #25D366;
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; box-shadow: 0 4px 20px rgba(37,211,102,0.35);
  text-decoration: none; color: white; font-size: 1.4rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(37,211,102,0.45); }

/* ── LOGOUT BTN (student pages) ── */
.logout-btn {
  position: fixed; top: 16px; right: 16px; z-index: 200;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.4); border-radius: var(--radius-sm);
  padding: 8px 14px; font-family: var(--sans); font-size: 0.76rem;
  cursor: pointer; transition: all 0.2s;
}
.logout-btn:hover { background: rgba(255,255,255,0.1); color: var(--white); }

/* ── RESPONSIVE ── */
@media (max-width: 480px) {
  section { padding: 64px 18px; }
  .modal { padding: 28px 18px; }
  .lock-card { padding: 36px 22px; }
  nav { padding: 14px 18px; }
}
