:root {
  --green: #0B5345;
  --green-dark: #073229;
  --green-light: #12684F;
  --gold: #C9A227;
  --gold-light: #E4C662;
  --cream: #FBF7EE;
  --cream-dark: #F3ECDC;
  --ink: #241F16;
  --muted: #6b6455;
  --white: #FFFFFF;
  --danger: #8a2c2c;
  --danger-bg: #FBEAEA;
  --ok: #0B5345;
  --ok-bg: #EAF4EE;
  --shadow-soft: 0 12px 34px rgba(11,83,69,0.08);
  --shadow-lift: 0 18px 44px rgba(11,83,69,0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  color: var(--green);
  margin-top: 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 700;
}
h1 { font-size: 30px; letter-spacing: 0.2px; }
h2 { font-size: 24px; }
h3 { font-size: 19px; }

p { line-height: 1.65; }
p, label, .muted-text { font-family: 'Inter', system-ui, sans-serif; }

a { color: var(--green); }

/* ---------- Header ---------- */

.site-header {
  background: var(--white);
  border-bottom: 1px solid #ECE6D6;
  padding: 12px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 2px 14px rgba(11,83,69,0.05);
}

.site-header .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.site-header .brand img { height: 46px; width: auto; display: block; border-radius: 50%; }

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--green);
  letter-spacing: 0.2px;
}
.brand-tagline {
  font-size: 10.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.nav-links { font-size: 14px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav-links .signed-in-as {
  color: var(--muted);
  margin-right: 10px;
  font-size: 13px;
}
.nav-links a {
  color: var(--green);
  text-decoration: none;
  margin-left: 6px;
  padding: 8px 14px;
  border-radius: 20px;
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-links a:hover { background: var(--cream-dark); }
.nav-links a.nav-cta {
  background: var(--green);
  color: #fff;
}
.nav-links a.nav-cta:hover { background: var(--green-dark); }

/* ---------- Hero (homepage only) ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: #fff;
  padding: 76px 24px 96px;
  text-align: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(228,198,98,0.09) 0, rgba(228,198,98,0.09) 1px, transparent 1px, transparent 38px),
    repeating-linear-gradient(-45deg, rgba(228,198,98,0.09) 0, rgba(228,198,98,0.09) 1px, transparent 1px, transparent 38px);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 48px;
  background: var(--cream);
  clip-path: polygon(0 100%, 100% 100%, 100% 0, 50% 60%, 0 0);
}
.hero-inner { position: relative; max-width: 700px; margin: 0 auto; }
.hero-eyebrow {
  display: inline-block;
  font-size: 12.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-light);
  font-weight: 700;
  margin-bottom: 18px;
}
.hero h1 {
  color: #fff;
  font-size: 44px;
  line-height: 1.18;
  margin-bottom: 18px;
}
.hero p.lead {
  font-size: 17px;
  color: rgba(255,255,255,0.86);
  max-width: 540px;
  margin: 0 auto 34px;
  line-height: 1.7;
}
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Hero: compact variant for login + internal dashboards ---------- */
.hero.hero-compact {
  padding: 44px 24px 60px;
  text-align: left;
}
.hero.hero-compact .hero-inner {
  max-width: 1100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.hero.hero-compact .hero-inner.hero-inner-center {
  justify-content: center;
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}
.hero.hero-compact .hero-eyebrow { margin-bottom: 10px; }
.hero.hero-compact h1 { font-size: 30px; margin-bottom: 6px; }
.hero.hero-compact p.lead { font-size: 15px; margin: 0; max-width: 480px; text-align: left; }
.hero.hero-compact .hero-inner-center p.lead { text-align: center; margin: 0 auto; }
.hero.hero-compact::after { height: 32px; }
.hero-welcome-avatar {
  flex: none;
  width: 58px; height: 58px;
  border-radius: 50%;
  border: 2px solid rgba(228,198,98,0.55);
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-light);
}
.hero-welcome-avatar svg { width: 28px; height: 28px; }
.hero-welcome-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.hero-welcome-row { display: flex; align-items: center; gap: 16px; }
@media (max-width: 640px) {
  .hero.hero-compact { padding: 34px 18px 48px; text-align: center; }
  .hero.hero-compact .hero-inner { justify-content: center; text-align: center; }
  .hero.hero-compact p.lead { text-align: center; margin: 0 auto; }
  .hero-welcome-row { flex-direction: column; }
}

.btn.gold {
  background: var(--gold);
  color: var(--green-dark);
  box-shadow: 0 10px 24px rgba(201,162,39,0.35);
}
.btn.gold:hover { background: var(--gold-light); }
.btn.outline-white {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.6);
}
.btn.outline-white:hover { background: rgba(255,255,255,0.12); border-color: #fff; }

/* ---------- Feature strip ---------- */

.features {
  background: var(--cream);
  padding: 8px 24px 56px;
}
.features-grid {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 22px;
}
.feature {
  background: #fff;
  border: 1px solid #ECE6D6;
  border-radius: 12px;
  padding: 26px 22px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.feature-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--ok-bg);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.feature-icon svg { width: 22px; height: 22px; stroke: var(--green); fill: none; stroke-width: 1.6; }
.feature h3 { margin-bottom: 6px; font-size: 17px; }
.feature p { font-size: 14px; color: var(--muted); margin: 0; }

/* ---------- Layout ---------- */

.container {
  max-width: 820px;
  margin: 44px auto;
  padding: 0 20px;
}

.section-heading { text-align: center; max-width: 640px; margin: 8px auto 36px; }
.section-heading h2 { margin-bottom: 8px; }
.section-heading p { color: var(--muted); margin: 0; }

.card {
  background: var(--white);
  border: 1px solid #ECE6D6;
  border-radius: 14px;
  padding: 38px 40px;
  box-shadow: var(--shadow-soft);
}

/* ---------- Login card ---------- */
.login-card-wrap { margin-top: -46px; position: relative; z-index: 2; }
.login-card {
  max-width: 420px;
  margin: 0 auto;
  box-shadow: var(--shadow-lift);
  border-top: 3px solid var(--gold);
}
.login-card-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--ok-bg);
  color: var(--green);
  display: flex; align-items: center; justify-content: center;
  margin: -66px auto 18px;
  border: 4px solid var(--white);
  box-shadow: var(--shadow-soft);
}
.login-card-icon svg { width: 26px; height: 26px; }

.admin-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-bottom: 20px;
}
.admin-subnav a {
  color: var(--green);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.admin-subnav a:hover { border-bottom-color: var(--green); }

/* ---------- Admin dashboard: greeting, quick actions, stat cards, table ---------- */

.admin-greeting {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}
.admin-greeting-eyebrow {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.admin-greeting h1 { margin-bottom: 0; }

.admin-quick-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.quick-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: #fff;
  font-weight: 600;
  font-size: 13.5px;
  text-decoration: none;
  padding: 11px 18px;
  border-radius: 9px;
  box-shadow: 0 4px 0 var(--green-dark), 0 8px 16px rgba(11,83,69,0.2);
  transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.15s ease;
}
.quick-action-btn:hover { background: var(--green-light); transform: translateY(-1px); }
.quick-action-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--green-dark), 0 3px 8px rgba(11,83,69,0.18); }
.quick-action-btn-alt {
  background: var(--gold);
  color: var(--green-dark);
  box-shadow: 0 4px 0 #9C7A17, 0 8px 16px rgba(201,162,39,0.3);
}
.quick-action-btn-alt:hover { background: var(--gold-light); }
.quick-action-btn-alt:active { box-shadow: 0 1px 0 #9C7A17, 0 3px 8px rgba(201,162,39,0.25); }
.quick-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  font-size: 13px;
  line-height: 1;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 26px;
}
.stat-card {
  position: relative;
  background: #fff;
  border: 1px solid #ECE6D6;
  border-radius: 14px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  opacity: 0;
  transform: translateY(14px);
  animation: statCardIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.stat-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
}
a.stat-card {
  text-decoration: none;
  cursor: pointer;
}
a.stat-card::after {
  content: "View \2192";
  position: absolute;
  right: 20px;
  top: 22px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}
a.stat-card:hover::after { opacity: 1; transform: translateX(0); }
.stat-card-green::before { background: linear-gradient(var(--green), var(--green-light)); }
.stat-card-gold::before { background: linear-gradient(var(--gold), var(--gold-light)); }
.stat-grid .stat-card:nth-child(1) { animation-delay: 0.02s; }
.stat-grid .stat-card:nth-child(2) { animation-delay: 0.12s; }
.stat-grid .stat-card:nth-child(3) { animation-delay: 0.22s; }
@keyframes statCardIn { to { opacity: 1; transform: translateY(0); } }

.stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--ok-bg);
  color: var(--green);
}
.stat-card-gold .stat-icon { background: #FBF1DC; color: #8a6d1a; }
.stat-icon svg { width: 20px; height: 20px; }
.stat-number {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 700;
  font-size: 34px;
  color: var(--ink);
  line-height: 1;
}
.stat-label { font-size: 13px; color: var(--muted); font-weight: 600; }

.admin-table-wrap {
  border: 1px solid #ECE6D6;
  border-radius: 12px;
  overflow-x: auto;
}
.admin-table { margin: 0; }
.admin-table th {
  background: var(--cream-dark);
}
.admin-table tbody tr, .admin-table tr:not(:first-child) {
  transition: background 0.15s ease;
}
.admin-table tr:not(:first-child):nth-child(even) { background: #FCFAF3; }
.admin-table tr:not(:first-child):hover { background: var(--ok-bg); }
.admin-table th, .admin-table td { padding: 14px 16px; }

.weekday-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.weekday-checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #FCFAF3;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
}
.weekday-checkbox input { margin: 0; }
.weekday-quickpicks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}

.sql-snippet {
  background: var(--green-dark);
  color: #E8F3EE;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 12.5px;
  line-height: 1.6;
  padding: 16px 18px;
  border-radius: 10px;
  overflow-x: auto;
  white-space: pre;
  margin: 14px 0;
}

@media (prefers-reduced-motion: reduce) {
  .stat-card { animation: none; opacity: 1; transform: none; }
}

/* ---------- Role selector cards ---------- */

.role-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  margin-top: 12px;
}
.role-links .role-card {
  position: relative;
  border: 1px solid #ECE6D6;
  border-top: 3px solid var(--gold);
  border-radius: 12px;
  padding: 24px 22px 22px;
  text-decoration: none;
  color: var(--ink);
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  display: block;
}
.role-links .role-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}
.role-links .role-card h3 { margin-bottom: 6px; }
.role-links .role-card p { font-size: 14px; color: var(--muted); margin: 0 0 14px; }
.role-links .role-card .go {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
}
.role-links .role-card .go::after { content: " →"; }

/* ---------- Forms ---------- */

.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: var(--ink);
  margin-bottom: 6px;
}
.form-row .hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
}

input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="file"],
select, textarea {
  width: 100%;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  padding: 11px 14px;
  border: 1px solid #D8D2C2;
  border-radius: 8px;
  outline: none;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(11,83,69,0.10);
}

.checkbox-row { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.checkbox-row input { width: auto; }

fieldset {
  border: 1px solid #ECE6D6;
  background: #FCFAF3;
  border-radius: 10px;
  padding: 18px 20px 4px;
  margin: 0 0 22px;
}
fieldset legend {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--green);
  padding: 0 8px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: #fff;
  background: var(--green);
  border: none;
  border-radius: 8px;
  padding: 13px 26px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.08s ease, box-shadow 0.08s ease;
  /* 3D "pressable" style: a solid depth edge beneath, plus a soft ambient shadow. */
  box-shadow: 0 4px 0 var(--green-dark), 0 10px 20px rgba(11,83,69,0.18);
}
.btn:hover { background: var(--green-light); transform: translateY(-1px); box-shadow: 0 5px 0 var(--green-dark), 0 12px 22px rgba(11,83,69,0.22); }
.btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--green-dark), 0 3px 8px rgba(11,83,69,0.18);
}
.btn.secondary {
  background: #fff;
  color: var(--green);
  border: 1px solid var(--green);
  box-shadow: 0 4px 0 var(--cream-dark), 0 6px 14px rgba(11,83,69,0.08);
}
.btn.secondary:hover { background: var(--cream-dark); transform: translateY(-1px); box-shadow: 0 5px 0 #E3D9BC, 0 8px 16px rgba(11,83,69,0.1); }
.btn.secondary:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--cream-dark), 0 2px 6px rgba(11,83,69,0.08); }
.btn.small { padding: 8px 15px; font-size: 12.5px; box-shadow: 0 3px 0 var(--green-dark), 0 6px 10px rgba(11,83,69,0.14); }
.btn.small:active { box-shadow: 0 1px 0 var(--green-dark); }
.btn.small.secondary { box-shadow: 0 3px 0 var(--cream-dark), 0 6px 10px rgba(11,83,69,0.06); }
.btn.small.secondary:active { box-shadow: 0 1px 0 var(--cream-dark); }
.btn.gold { box-shadow: 0 4px 0 #9C7A17, 0 10px 22px rgba(201,162,39,0.35); }
.btn.gold:hover { box-shadow: 0 5px 0 #9C7A17, 0 12px 26px rgba(201,162,39,0.4); }
.btn.gold:active { box-shadow: 0 1px 0 #9C7A17, 0 3px 10px rgba(201,162,39,0.3); }
.btn.outline-white:active { transform: translateY(2px); }

/* ---------- Badges & flash ---------- */

.badge {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 4px 11px;
  border-radius: 20px;
  display: inline-block;
  text-transform: uppercase;
}
.badge.pending, .badge.paused, .badge.unpaid { background: #FBF1DC; color: #8a6d1a; }
.badge.approved, .badge.active, .badge.present, .badge.confirmed, .badge.done, .badge.paid { background: var(--ok-bg); color: var(--ok); }
.badge.rejected, .badge.suspended, .badge.ended, .badge.absent, .badge.declined { background: var(--danger-bg); color: var(--danger); }
.badge.holiday, .badge.cancelled, .badge.waived { background: #EDEAE2; color: #6b6455; }

.schedule-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  background: #FBF1DC;
  color: #8a6d1a;
  border: 1px solid #F0DFAE;
  border-radius: 8px;
  padding: 10px 16px;
  margin-bottom: 12px;
}
.schedule-notice.holiday { background: #EDEAE2; color: #6b6455; border-color: #DDD7C9; }

.flash {
  font-size: 14px;
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 20px;
}
.flash.success { background: var(--ok-bg); color: var(--ok); border: 1px solid #CFE6D8; }
.flash.error { background: var(--danger-bg); color: var(--danger); border: 1px solid #F1CFCF; }

/* ---------- Tables ---------- */

table { width: 100%; border-collapse: collapse; font-size: 14px; }
table th, table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid #ECE6D6; }
table th { color: var(--muted); font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.4px; }
table tr:last-child td { border-bottom: none; }

.tag-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Footer ---------- */

.site-footer {
  text-align: center;
  background: var(--green-dark);
  color: rgba(255,255,255,0.75);
  padding: 30px 20px;
  margin-top: 60px;
}
.site-footer .foot-brand {
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.site-footer small { font-size: 11.5px; }

/* ---------- Phone number + country code row ---------- */

.phone-row { display: flex; gap: 8px; align-items: stretch; }
.phone-row input { flex: 1 1 62%; min-width: 0; }
.phone-row select { flex: 1 1 36%; min-width: 0; }

/* ---------- Landing page (homepage) ---------- */

.container.wide { max-width: 1320px; }

.landing-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  grid-template-areas: "main aside";
  gap: 40px;
  align-items: start;
}
.landing-main { grid-area: main; min-width: 0; }
.landing-aside { grid-area: aside; }

.aside-form-card {
  position: sticky;
  top: 88px;
  background: #fff;
  border: 1px solid #ECE6D6;
  border-top: 4px solid var(--gold);
  border-radius: 14px;
  padding: 26px 26px 28px;
  box-shadow: var(--shadow-lift);
}
.aside-form-card h2 { font-size: 20px; margin-bottom: 4px; }
.aside-form-card .aside-sub { font-size: 13.5px; color: var(--muted); margin: 0 0 18px; }
.aside-form-card fieldset { padding: 14px 16px 2px; margin-bottom: 14px; }
.aside-form-card .form-row { margin-bottom: 13px; }
.aside-form-card .btn { width: 100%; text-align: center; }

.about-section { margin-bottom: 48px; }
.about-section h2 { margin-bottom: 12px; }
.about-section p { color: #40392c; }
.about-section p + p { margin-top: 12px; }

.check-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; }
.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  color: #40392c;
  line-height: 1.6;
}
.check-list li .tick {
  flex: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--ok-bg);
  color: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  font-weight: 700;
  margin-top: 2px;
}
.check-list li strong { color: var(--green); }

.compare-table-wrap { overflow-x: auto; margin-top: 18px; }
.compare-table { min-width: 480px; }
.compare-table th:first-child, .compare-table td:first-child { color: var(--ink); font-weight: 600; }
.compare-table td.yes { color: var(--ok); font-weight: 700; }
.compare-table td.no { color: var(--muted); }

.contact-box {
  background: #fff;
  border: 1px solid #ECE6D6;
  border-radius: 12px;
  padding: 22px 24px;
  box-shadow: var(--shadow-soft);
  margin-top: 16px;
}
.contact-box p { margin: 0 0 8px; }
.contact-box .contact-note { font-size: 13.5px; color: var(--muted); margin: 10px 0 0; }

@media (max-width: 900px) {
  .landing-grid { grid-template-columns: 1fr; grid-template-areas: "aside" "main"; gap: 30px; }
  .aside-form-card { position: static; }
}

/* ---------- Avatars ---------- */

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  flex: none;
  background: var(--cream-dark);
  color: var(--green);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 700;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #ECE6D6;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-fallback { font-size: 1.1em; }

.profile-heading { display: flex; align-items: center; gap: 16px; margin-bottom: 4px; flex-wrap: wrap; }
.profile-heading h1 { margin: 0; }

/* ---------- Elegance refinements ---------- */

.about-section h2 {
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 18px;
}
.about-section h2::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 46px; height: 3px;
  border-radius: 2px;
  background: linear-gradient(to right, var(--gold), var(--gold-light));
}

.compare-table-wrap {
  border: 1px solid #ECE6D6;
  border-radius: 12px;
  padding: 6px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  margin-top: 20px;
}
.compare-table { margin: 0; }
.compare-table th, .compare-table td { padding: 14px 16px; }

.contact-box { margin-top: 18px; }

/* ---------- Decorative rosette divider (Islamic geometric motif) ---------- */

.rosette-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 8px 0 40px;
}
.rosette-divider::before, .rosette-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, #D8CFAF, transparent);
}
.rosette-divider svg {
  width: 26px; height: 26px;
  flex: none;
  color: var(--gold);
  animation: rosetteSpin 60s linear infinite;
}
@keyframes rosetteSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ---------- Hero: gentle animated geometric shimmer ---------- */

@keyframes patternDrift {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 152px 152px, -152px 152px; }
}
.hero::before { animation: patternDrift 30s linear infinite; z-index: 0; }

.hero-eyebrow { display: inline-flex; align-items: center; gap: 9px; }

/* ---------- Hero: bold ambient motion (glow + rotating motifs + light dust) ---------- */

.hero-glow {
  position: absolute;
  left: 50%; top: 46%;
  width: 640px; height: 640px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(228,198,98,0.30) 0%, rgba(228,198,98,0.10) 40%, rgba(228,198,98,0) 70%);
  animation: heroGlowPulse 7s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes heroGlowPulse {
  0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(0.92); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); }
}

.hero-motif {
  position: absolute;
  left: 50%; top: 50%;
  pointer-events: none;
  color: var(--gold-light);
  z-index: 0;
}
.hero-motif svg { display: block; width: 100%; height: 100%; stroke-width: 1.1; }
.hero-motif-a {
  width: 620px; height: 620px;
  margin: -310px 0 0 -310px;
  opacity: 0.14;
  animation: grandRotate 110s linear infinite;
}
.hero-motif-b {
  width: 380px; height: 380px;
  margin: -190px 0 0 -190px;
  opacity: 0.16;
  animation: grandRotate 80s linear infinite reverse;
}
@keyframes grandRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-dust { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.hero-dust span {
  position: absolute;
  bottom: -20px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold-light);
  box-shadow: 0 0 6px 1px rgba(228,198,98,0.8);
  opacity: 0;
  animation: dustFloat 11s ease-in infinite;
}
.hero-dust span:nth-child(1) { left: 8%;  animation-duration: 12s; animation-delay: 0s; }
.hero-dust span:nth-child(2) { left: 20%; animation-duration: 9s;  animation-delay: 1.5s; }
.hero-dust span:nth-child(3) { left: 35%; animation-duration: 13s; animation-delay: 3s; }
.hero-dust span:nth-child(4) { left: 52%; animation-duration: 10s; animation-delay: 0.8s; }
.hero-dust span:nth-child(5) { left: 68%; animation-duration: 14s; animation-delay: 4s; }
.hero-dust span:nth-child(6) { left: 82%; animation-duration: 9.5s; animation-delay: 2.2s; }
.hero-dust span:nth-child(7) { left: 93%; animation-duration: 12.5s; animation-delay: 5s; }
@keyframes dustFloat {
  0%   { transform: translateY(0) scale(0.6); opacity: 0; }
  12%  { opacity: 0.9; }
  50%  { transform: translateY(-160px) scale(1); opacity: 0.7; }
  100% { transform: translateY(-340px) scale(0.5); opacity: 0; }
}

.hero-inner { z-index: 1; }

/* ---------- Hero: side Arabic calligraphy accents ---------- */

.hero-calligraphy {
  position: absolute;
  top: 50%;
  font-family: 'Amiri', 'Traditional Arabic', serif;
  font-weight: 700;
  white-space: nowrap;
  color: var(--gold-light);
  opacity: 0.22;
  pointer-events: none;
  z-index: 0;
  transform-origin: center;
  animation: calligraphyGlow 6s ease-in-out infinite;
}
.hero-calligraphy-left {
  left: 18px;
  font-size: 46px;
  transform: translateY(-50%) rotate(-90deg);
}
.hero-calligraphy-right {
  right: 18px;
  font-size: 40px;
  transform: translateY(-50%) rotate(90deg);
  animation-delay: 1.4s;
}
@keyframes calligraphyGlow {
  0%, 100% { opacity: 0.16; }
  50% { opacity: 0.34; }
}
@media (max-width: 900px) {
  .hero-calligraphy-left { font-size: 30px; left: 6px; }
  .hero-calligraphy-right { font-size: 26px; right: 6px; }
}
@media (max-width: 640px) {
  .hero-calligraphy { display: none; }
}

/* Headline entrance: a one-time rise-and-fade-in on load, staggered per element. */
.hero-rise {
  opacity: 0;
  transform: translateY(22px);
  animation: heroRise 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-rise-1 { animation-delay: 0.05s; }
.hero-rise-2 { animation-delay: 0.2s; }
.hero-rise-3 { animation-delay: 0.38s; }
.hero-rise-4 { animation-delay: 0.55s; }
@keyframes heroRise {
  to { opacity: 1; transform: translateY(0); }
}

/* Shine sweep across the primary gold button, drawing the eye to it periodically. */
.btn.gold { position: relative; overflow: hidden; }
.btn.gold::after {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: skewX(-20deg);
  animation: shineSweep 4.5s ease-in-out infinite;
}
@keyframes shineSweep {
  0%, 35% { left: -60%; }
  65%, 100% { left: 130%; }
}

/* Subtle life on interactive rows/icons elsewhere on the page. */
.check-list li .tick { transition: transform 0.2s ease; }
.check-list li:hover .tick { transform: scale(1.15) rotate(-6deg); }
.compare-table tbody tr, .compare-table tr:not(:first-child) {
  transition: background 0.18s ease;
}
.compare-table tr:hover td { background: var(--cream-dark); }
.hero-eyebrow .twinkle {
  display: inline-block;
  font-size: 11px;
  animation: twinkle 2.6s ease-in-out infinite;
}
.hero-eyebrow .twinkle:last-child { animation-delay: 1s; }
@keyframes twinkle {
  0%, 100% { opacity: 0.35; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1); }
}

/* ---------- Student classroom ---------- */

.container.classroom-page { max-width: 1360px; }

.classroom-shell {
  display: flex;
  align-items: flex-start;
  gap: 22px;
}

.classroom-menu {
  width: 232px;
  flex: 0 0 232px;
  background: #fff;
  border: 1px solid #ECE6D6;
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  padding: 22px 16px;
  position: sticky;
  top: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.classroom-menu-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid #ECE6D6;
}
.classroom-menu-profile-name { font-weight: 700; font-size: 14.5px; color: var(--ink); line-height: 1.25; }
.classroom-menu-profile-role { font-size: 12px; color: var(--muted); }
.classroom-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.classroom-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  text-decoration: none;
  background: none;
  border: none;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  padding: 11px 12px;
  border-radius: 9px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.classroom-nav-link:hover { background: var(--cream-dark); }
.classroom-nav-link.active { background: var(--ok-bg); color: var(--green); }
.classroom-nav-icon { font-size: 15px; width: 18px; text-align: center; }
.classroom-logout {
  display: block;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  padding-top: 14px;
  border-top: 1px solid #ECE6D6;
}
.classroom-logout:hover { color: var(--green); }

.classroom-main { flex: 1; min-width: 0; }
.classroom-panel { animation: statCardIn 0.4s ease forwards; }

.classroom-split {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
.classroom-video, .classroom-quran {
  background: #fff;
  border: 1px solid #ECE6D6;
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  padding: 18px;
}
.classroom-video { flex: 1.3; min-width: 0; position: sticky; top: 20px; }
.classroom-quran { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.classroom-video-head, .classroom-quran-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.classroom-video-head h2, .classroom-quran-head h2 { margin: 0; font-size: 19px; }

.jitsi-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--green-dark);
  border-radius: 10px;
  overflow: hidden;
}
.jitsi-container { width: 100%; height: 100%; }
.jitsi-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  color: #fff;
  text-align: center;
  padding: 20px;
  font-size: 13.5px;
}
.jitsi-placeholder .spinner {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.25);
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.course-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.course-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ok-bg);
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
}
.course-badge strong { font-weight: 700; }

.quran-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid #ECE6D6;
}
.quran-mode-toggle { display: flex; gap: 6px; width: 100%; }
.quran-mode-btn {
  flex: 1;
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #ECE6D6;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
}
.quran-mode-btn.active { background: var(--green); color: #fff; border-color: var(--green); }
.quran-controls select, .quran-controls input[type="number"] {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  padding: 8px 10px;
  border: 1px solid #ddd4bd;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}
.quran-controls select { flex: 1; min-width: 140px; }
.quran-controls input[type="number"] { width: 84px; }
.quran-jump-row { display: flex; gap: 8px; flex-wrap: wrap; width: 100%; }
.quran-jump-row .btn.small { flex: 0 0 auto; }

.quran-text-area {
  flex: 1;
  overflow-y: auto;
  max-height: 460px;
  padding-right: 4px;
}
.quran-status { color: var(--muted); font-size: 13px; padding: 20px 4px; text-align: center; }
.ayah-block {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 6px;
  border-bottom: 1px dashed #ECE6D6;
  scroll-margin-top: 12px;
}
.ayah-block:last-child { border-bottom: none; }
.ayah-block.highlighted { background: var(--ok-bg); border-radius: 8px; }
.ayah-number {
  flex: 0 0 auto;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--cream-dark);
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
}
.ayah-arabic {
  font-family: 'Amiri', 'Traditional Arabic', serif;
  font-size: 24px;
  line-height: 2.1;
  color: var(--ink);
  text-align: right;
  direction: rtl;
  flex: 1;
}
.ayah-ref { display: block; font-family: 'Inter', system-ui, sans-serif; font-size: 11px; color: var(--muted); font-weight: 600; margin-top: 4px; text-align: right; }

.classroom-simple-table th, .classroom-simple-table td { padding: 12px 14px; }

@media (max-width: 980px) {
  .classroom-shell { flex-direction: column; }
  .classroom-menu {
    width: 100%;
    flex: 1 1 auto;
    position: static;
    flex-direction: row;
    align-items: center;
    overflow-x: auto;
    padding: 14px;
  }
  .classroom-menu-profile { border-bottom: none; padding-bottom: 0; }
  .classroom-nav { flex-direction: row; }
  .classroom-logout { border-top: none; padding-top: 0; white-space: nowrap; }
  .classroom-split { flex-direction: column; }
  .classroom-video { position: static; top: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .classroom-panel { animation: none; }
  .jitsi-placeholder .spinner { animation: none; }
}

/* ---------- Messages ---------- */

.messages-shell {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
.messages-contacts {
  width: 260px;
  flex: 0 0 260px;
  background: #fff;
  border: 1px solid #ECE6D6;
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  padding: 10px;
  max-height: 640px;
  overflow-y: auto;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  text-decoration: none;
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
  color: var(--ink);
  margin-bottom: 2px;
}
.contact-item:hover { background: var(--cream-dark); }
.contact-item.active { background: var(--ok-bg); }
.contact-item-name { font-size: 13.5px; font-weight: 700; line-height: 1.3; }
.contact-item-sub { font-size: 11.5px; color: var(--muted); }
.contact-item-badge {
  margin-left: auto;
  background: var(--green);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  border-radius: 999px;
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

.messages-thread {
  flex: 1;
  min-width: 0;
  background: #fff;
  border: 1px solid #ECE6D6;
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  height: 640px;
}
.messages-thread-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid #ECE6D6;
  font-weight: 700;
}
.messages-log {
  flex: 1;
  overflow-y: auto;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.message-bubble {
  max-width: 72%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.5;
  word-wrap: break-word;
}
.message-bubble.received { align-self: flex-start; background: var(--cream-dark); color: var(--ink); border-bottom-left-radius: 4px; }
.message-bubble.sent { align-self: flex-end; background: var(--green); color: #fff; border-bottom-right-radius: 4px; }
.message-meta { display: block; font-size: 10.5px; margin-top: 5px; opacity: 0.7; }
.messages-compose {
  display: flex;
  gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid #ECE6D6;
}
.messages-compose textarea {
  flex: 1;
  resize: none;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  padding: 10px 12px;
  border: 1px solid #ddd4bd;
  border-radius: 10px;
  height: 44px;
}
.messages-empty { color: var(--muted); text-align: center; padding: 40px 20px; font-size: 14px; }

@media (max-width: 800px) {
  .messages-shell { flex-direction: column; }
  .messages-contacts { width: 100%; flex: 1 1 auto; max-height: 200px; }
  .messages-thread { height: 520px; width: 100%; }
}

/* ---------- Scroll reveal (progressive enhancement — content is visible by
   default; JS only adds the fade-in if it can also observe intersection) ---------- */

body.js-reveal-enabled .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
body.js-reveal-enabled .reveal.revealed {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero::before { animation: none; }
  .hero-eyebrow .twinkle { animation: none; opacity: 0.8; }
  .rosette-divider svg { animation: none; }
  .hero-glow, .hero-motif, .hero-dust span, .hero-calligraphy { animation: none; }
  .hero-glow { opacity: 0.85; }
  .hero-calligraphy { opacity: 0.22; }
  .hero-rise { animation: none; opacity: 1; transform: none; }
  .btn.gold::after { animation: none; display: none; }
  body.js-reveal-enabled .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 600px) {
  .container { margin: 24px auto; }
  .card { padding: 26px 22px; }
  .hero { padding: 56px 18px 78px; }
  .hero h1 { font-size: 32px; }
  .site-header { padding: 10px 18px; }
  .site-header .brand img { height: 42px; }
  .aside-form-card { padding: 20px 18px 22px; }
}

/* =========================================================================
 * Fee voucher (printable)
 * ========================================================================= */
.voucher-card { max-width: 720px; margin: 0 auto; }
.voucher-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  border-bottom: 2px solid var(--green); padding-bottom: 16px; margin-bottom: 22px;
}
.voucher-academy { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 700; font-size: 26px; color: var(--green); }
.voucher-academy-sub { color: var(--muted); font-size: 12.5px; }
.voucher-head-right { text-align: right; }
.voucher-number { font-weight: 600; margin-bottom: 6px; }
.voucher-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; margin-bottom: 22px;
}
.voucher-label { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin-bottom: 3px; }
.voucher-value { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.voucher-amount-table { margin-bottom: 18px; }
.voucher-total-row td { border-top: 2px solid var(--green); font-size: 16px; padding-top: 12px; }
.voucher-payment-instructions {
  background: var(--cream-dark); border-radius: 10px; padding: 14px 16px; margin-top: 8px; font-size: 13.5px;
}
.voucher-footer-note { color: var(--muted); font-size: 11.5px; margin-top: 22px; text-align: center; }

@media print {
  .site-header, .site-footer, .no-print, .classroom-menu { display: none !important; }
  body { background: #fff; }
  .container { margin: 0; padding: 0; max-width: 100%; }
  .card { box-shadow: none; border: none; }
}

@media (max-width: 600px) {
  .voucher-grid { grid-template-columns: 1fr; }
  .voucher-head { flex-direction: column; gap: 10px; }
  .voucher-head-right { text-align: left; }
}

/* =========================================================================
 * Fee voucher arrival popup (family login)
 * ========================================================================= */
.fee-popup-overlay {
  position: fixed; inset: 0; background: rgba(36,31,22,0.55); z-index: 999;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.fee-popup-card {
  background: var(--white); border-radius: 16px; padding: 30px 28px; max-width: 420px; width: 100%;
  box-shadow: var(--shadow-lift); text-align: center; position: relative;
}
.fee-popup-icon { font-size: 34px; margin-bottom: 10px; }
.fee-popup-card h3 { margin-bottom: 8px; }
.fee-popup-card p { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.fee-popup-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.fee-popup-close {
  position: absolute; top: 10px; right: 14px; background: none; border: none; font-size: 20px;
  color: var(--muted); cursor: pointer; line-height: 1;
}

/* ---------- Both-timezones preview (admin: Assign a class) ---------- */
.tz-preview-box {
  background: var(--ok-bg);
  border: 1px solid rgba(11,83,69,0.15);
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tz-preview-row { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.tz-preview-label { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.tz-preview-value { font-size: 13.5px; color: var(--green); font-weight: 700; }

/* Same look, used to show both parties' time on schedule tables. */
.dual-time-note { display: block; font-size: 11.5px; color: var(--muted); margin-top: 3px; font-weight: 600; }

/* ---------- Start Class (teacher-triggered live-class notification) ---------- */
.start-class-msg {
  font-size: 11.5px;
  margin-top: 5px;
  max-width: 180px;
  line-height: 1.4;
}
.start-class-msg.error { color: var(--danger); }
.start-class-msg.success { color: var(--green); }

/* .fee-popup-overlay sets display:flex unconditionally (it's normally
   removed from the DOM outright on close) — #classLivePopup instead toggles
   the hidden attribute, so it needs an explicit override to actually hide. */
#classLivePopup[hidden] { display: none; }

/* ---------- Qibla direction finder ---------- */
.qibla-wrap { max-width: 480px; margin: -46px auto 0; position: relative; z-index: 2; }
.qibla-card { text-align: center; box-shadow: var(--shadow-lift); border-top: 3px solid var(--gold); }
.qibla-compass {
  position: relative; width: 240px; height: 240px; margin: 6px auto 22px;
  border-radius: 50%; background: radial-gradient(circle at 50% 38%, #fff, var(--cream));
  border: 4px solid var(--green); box-shadow: inset 0 2px 10px rgba(11,83,69,0.12), var(--shadow-soft);
}
.qibla-fixed-pointer {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  width: 0; height: 0; border-left: 9px solid transparent; border-right: 9px solid transparent;
  border-bottom: 16px solid var(--gold); z-index: 3;
}
.qibla-compass-face { position: absolute; inset: 0; border-radius: 50%; transition: transform 0.2s linear; }
.qibla-cardinal {
  position: absolute; font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 700;
  font-size: 15px; color: var(--muted);
}
.qibla-n { top: 10px; left: 50%; transform: translateX(-50%); color: var(--green); }
.qibla-s { bottom: 10px; left: 50%; transform: translateX(-50%); }
.qibla-e { right: 12px; top: 50%; transform: translateY(-50%); }
.qibla-w { left: 12px; top: 50%; transform: translateY(-50%); }
.qibla-needle {
  position: absolute; left: 50%; top: 50%; width: 0; height: 0;
  transform-origin: 0 0; transition: transform 0.2s linear;
}
.qibla-needle-shaft {
  position: absolute; left: -2px; top: -92px; width: 4px; height: 92px;
  background: linear-gradient(var(--gold), var(--gold-light)); border-radius: 4px;
}
.qibla-needle-kaaba {
  position: absolute; left: -13px; top: -116px; font-size: 22px; line-height: 1;
}
.qibla-center-dot {
  position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px;
  border-radius: 50%; background: var(--green); border: 2px solid #fff; box-shadow: var(--shadow-soft);
}
.qibla-status { color: var(--muted); font-size: 14px; text-align: center; min-height: 24px; }
.qibla-status strong { color: var(--ink); }
.qibla-result { display: flex; flex-direction: column; gap: 8px; margin-bottom: 4px; }
.qibla-result-row {
  display: flex; align-items: center; justify-content: space-between; padding: 10px 14px;
  background: var(--cream); border-radius: 10px; font-size: 13.5px;
}
.qibla-result-label { color: var(--muted); font-weight: 600; }
.qibla-result-value { color: var(--green); font-weight: 700; }
.qibla-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.qibla-manual { margin-top: 16px; text-align: left; background: var(--cream); border-radius: 10px; padding: 16px; }

/* ---------- Daily Inspiration widget (homepage) ---------- */
.inspiration-card {
  max-width: 640px; margin: 0 auto 48px; text-align: center; position: relative;
  border-top: 3px solid var(--gold); overflow: hidden;
}
.inspiration-kicker {
  display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-light-2, #9C7A17);
  background: var(--ok-bg); padding: 5px 14px; border-radius: 999px; margin-bottom: 16px;
}
.inspiration-arabic {
  font-family: 'Amiri', 'Cormorant Garamond', serif; font-size: 26px; line-height: 1.9;
  color: var(--green); direction: rtl; margin-bottom: 12px;
}
.inspiration-text { font-size: 16.5px; color: var(--ink); line-height: 1.7; margin-bottom: 10px; }
.inspiration-ref { font-size: 12.5px; color: var(--muted); font-weight: 600; }

/* ---------- Course badge: highlight the active learner ---------- */
.course-badge-active { background: var(--green); color: #fff; }

/* ---------- 15-line Mushaf reader ---------- */
.mushaf-toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.mushaf-toolbar select { flex: 1; min-width: 140px; }
.mushaf-frame {
  background: var(--cream); border: 6px double var(--gold); border-radius: 10px;
  padding: 22px 18px; box-shadow: var(--shadow-soft); flex: 1;
}
.mushaf-page-header {
  text-align: center; font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 700;
  color: var(--green); font-size: 15px; margin-bottom: 12px; padding-bottom: 8px;
  border-bottom: 1px solid rgba(11,83,69,0.15);
}
.mushaf-lines { display: flex; flex-direction: column; gap: 2px; }
.mushaf-line {
  font-family: 'Amiri', serif; font-size: 24px; line-height: 40px; direction: rtl;
  text-align: justify; text-align-last: justify; white-space: nowrap; overflow: hidden; color: var(--ink);
}
.mushaf-page-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.mushaf-page-indicator { font-size: 12.5px; color: var(--muted); font-weight: 600; }

/* ---------- Noorani Qaida viewer ---------- */
.qaida-toolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.qaida-toolbar select { flex: 1; }
.qaida-viewer { flex: 1; overflow-y: auto; max-height: 460px; }
.qaida-lesson-title { color: var(--green); margin-bottom: 4px; font-size: 18px; }
.qaida-lesson-subtitle { color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.qaida-section { margin-bottom: 20px; }
.qaida-section-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin-bottom: 8px; }
.qaida-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.qaida-item {
  font-family: 'Amiri', serif; font-size: 28px; line-height: 1; padding: 12px 16px;
  background: #fff; border: 1px solid #EDE6D3; border-radius: 10px; min-width: 52px;
  text-align: center; box-shadow: var(--shadow-soft);
}
.qaida-row-0 .qaida-item { color: var(--green); border-color: rgba(11,83,69,0.18); }
.qaida-row-1 .qaida-item { color: #9C7A17; border-color: rgba(201,162,39,0.3); }
.qaida-row-2 .qaida-item { color: #7A3B8C; border-color: rgba(122,59,140,0.22); }
.qaida-row-3 .qaida-item { color: #B0432E; border-color: rgba(176,67,46,0.22); }

@media (max-width: 980px) {
  .mushaf-line { font-size: 19px; line-height: 32px; }
  .qaida-item { font-size: 22px; padding: 9px 12px; }
}
