/* ============================================================
   DeenKit — Global Stylesheet
   Sections:
   1. Variables & Reset
   2. Shared Components (alerts, buttons, forms)
   3. Login Page
   4. Admin Panel
   5. Ebook Reader
   6. Animations
   7. Responsive
   ============================================================ */

/* ─── 1. Variables & Reset ──────────────────────────────────── */
:root {
  --green-dark:  #1B4332;
  --green-mid:   #2D6A4F;
  --green-light: #52B788;
  --gold:        #D4A017;
  --gold-light:  #F4C55A;
  --cream:       #FFF8E7;
  --cream-dark:  #F0E6C8;
  --text-dark:   #1A1A1A;
  --text-light:  #FFFFFF;
  --shadow-warm: 0 4px 24px rgba(212,160,23,0.18);
  --radius-card: 20px;
  --radius-btn:  50px;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  color: var(--text-dark);
  min-height: 100vh;
  line-height: 1.6;
}

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

/* ─── 2. Shared Components ──────────────────────────────────── */

/* Alerts */
.alert {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 16px;
  line-height: 1.5;
}
.alert-error   { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.alert-success { background: #dcfce7; color: #14532d; border: 1px solid #86efac; }
.alert-warning { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }
.hidden { display: none !important; }

/* Buttons */
.btn-primary {
  display: block;
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--green-mid), var(--green-dark));
  color: var(--text-light);
  border: none;
  border-radius: var(--radius-btn);
  font-family: 'Fredoka One', cursive;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 14px rgba(29,67,50,0.25);
  text-align: center;
  text-decoration: none;
}
.btn-primary:hover  { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(29,67,50,0.3); }
.btn-primary:active { transform: translateY(0); }
.btn-primary.btn-sm { width: auto; padding: 10px 20px; font-size: 0.9rem; display: inline-block; }

.btn-link {
  background: none;
  border: none;
  color: var(--green-mid);
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}
.btn-link:hover { color: var(--green-dark); }
.btn-link.btn-sm { font-size: 0.85rem; }

/* Forms */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}
.form-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--green-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="file"],
.search-input {
  padding: 12px 16px;
  border: 2px solid var(--cream-dark);
  border-radius: 12px;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-group input:focus,
.search-input:focus {
  border-color: var(--green-light);
  box-shadow: 0 0 0 3px rgba(82,183,136,0.2);
}

/* OTP input — big digits */
.otp-group input {
  font-size: 1.8rem;
  font-family: 'Fredoka One', cursive;
  letter-spacing: 8px;
  text-align: center;
  padding: 14px 16px;
}

/* Amiri font class */
.amiri { font-family: 'Amiri', serif; }

/* ─── 3. Login Page ─────────────────────────────────────────── */
.login-body {
  background: linear-gradient(160deg, var(--green-dark) 0%, var(--green-mid) 55%, #1a3d2e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px 16px;
  position: relative;
  overflow: hidden;
}

/* Background star decoration */
.bg-decoration {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.stars-layer { position: absolute; inset: 0; }
.star {
  position: absolute;
  color: var(--gold-light);
  font-size: 1rem;
  opacity: 0;
  animation: twinkle 4s ease-in-out infinite;
}
.s1 { top: 10%; left: 12%; animation-delay: 0s;   font-size: 1.2rem; }
.s2 { top: 20%; right: 15%; animation-delay: 0.8s; }
.s3 { top: 60%; left: 8%;  animation-delay: 1.6s; }
.s4 { top: 75%; right: 10%; animation-delay: 2.4s; font-size: 0.8rem; }
.s5 { top: 45%; left: 50%; animation-delay: 3.2s; }
.crescent-deco {
  position: absolute;
  top: -60px; right: -60px;
  width: 280px; height: 280px;
  opacity: 0.4;
  animation: floatUp 8s ease-in-out infinite;
}

/* Login card */
.login-card {
  background: var(--cream);
  border-radius: var(--radius-card);
  padding: 40px 36px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-warm), 0 20px 60px rgba(0,0,0,0.25);
  position: relative;
  z-index: 1;
  animation: slideUp 0.45s cubic-bezier(0.34,1.56,0.64,1) both;
}

/* Brand header */
.brand-header {
  text-align: center;
  margin-bottom: 28px;
}
.brand-moon {
  width: 48px; height: 48px;
  margin: 0 auto 8px;
  filter: drop-shadow(0 2px 8px rgba(212,160,23,0.5));
  animation: floatUp 5s ease-in-out infinite;
}
.brand-name {
  font-family: 'Fredoka One', cursive;
  font-size: 2rem;
  color: var(--green-dark);
  letter-spacing: 1px;
}
.brand-tagline {
  font-size: 0.85rem;
  color: var(--green-mid);
  font-weight: 600;
}

/* Step titles */
.step-title {
  font-family: 'Fredoka One', cursive;
  font-size: 1.4rem;
  color: var(--green-dark);
  margin-bottom: 6px;
}
.step-subtitle {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 20px;
  line-height: 1.5;
}
.step-subtitle strong { color: var(--green-mid); }

/* Resend / back row */
.resend-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #666;
  margin-top: 14px;
}
.back-link { display: block; margin-top: 10px; font-size: 0.85rem; }

/* Not-registered warning */
#not-registered { margin-top: 12px; }

/* Admin login tweak */
.admin-login-body .login-card { max-width: 380px; }

/* ─── 4. Admin Panel ────────────────────────────────────────── */
.admin-body {
  background: #f4f6f8;
  min-height: 100vh;
  font-family: 'Nunito', sans-serif;
}

/* Nav */
.admin-nav {
  background: var(--green-dark);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.admin-nav-brand {
  font-family: 'Fredoka One', cursive;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gold-light);
}
.btn-logout {
  background: rgba(255,255,255,0.12);
  color: var(--text-light);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 8px;
  padding: 8px 16px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-logout:hover { background: rgba(255,255,255,0.22); }

/* Main content */
.admin-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 24px 60px;
}

/* Flash message */
.flash-msg { margin-bottom: 20px; }

/* Stats */
.stats-bar {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.stat-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px 28px;
  flex: 1;
  min-width: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  border-top: 4px solid var(--green-light);
}
.stat-active   { border-top-color: #16a34a; }
.stat-inactive { border-top-color: #dc2626; }
.stat-num {
  font-family: 'Fredoka One', cursive;
  font-size: 2.2rem;
  color: var(--green-dark);
  line-height: 1;
}
.stat-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #666;
  letter-spacing: 0.5px;
}

/* Panels */
.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}
.admin-panel {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
}
.panel-title {
  font-family: 'Fredoka One', cursive;
  font-size: 1.15rem;
  color: var(--green-dark);
  margin-bottom: 16px;
}
.panel-hint {
  font-size: 0.82rem;
  color: #666;
  margin-bottom: 14px;
  line-height: 1.5;
}
.form-row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
}
.form-row .form-group { margin-bottom: 0; flex: 1; min-width: 150px; }
.form-group-btn { flex: 0 0 auto; }

/* Table panel */
.table-panel { grid-column: 1 / -1; }
.table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}
.table-header .panel-title { margin-bottom: 0; }
.search-form {
  display: flex;
  align-items: center;
  gap: 8px;
}
.search-input {
  padding: 9px 14px;
  min-width: 220px;
  border-radius: 10px;
  font-size: 0.9rem;
}

/* Table */
.table-wrap { overflow-x: auto; }
.customers-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.customers-table th {
  background: var(--green-dark);
  color: var(--gold-light);
  padding: 12px 14px;
  text-align: left;
  font-family: 'Fredoka One', cursive;
  font-size: 0.85rem;
  letter-spacing: 0.4px;
  white-space: nowrap;
}
.customers-table th:first-child { border-radius: 10px 0 0 0; }
.customers-table th:last-child  { border-radius: 0 10px 0 0; }
.customers-table td {
  padding: 11px 14px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
}
.customers-table tr:hover td { background: #fafff7; }
.empty-row {
  text-align: center;
  color: #888;
  padding: 32px !important;
  font-style: italic;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.badge-active   { background: #dcfce7; color: #15803d; }
.badge-inactive { background: #fee2e2; color: #b91c1c; }

/* Action buttons */
.action-cell { display: flex; gap: 6px; flex-wrap: wrap; }
.btn-action {
  padding: 5px 10px;
  border-radius: 8px;
  border: none;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s;
  white-space: nowrap;
}
.btn-action:hover   { opacity: 0.8; }
.btn-activate   { background: #dcfce7; color: #15803d; }
.btn-deactivate { background: #fef3c7; color: #92400e; }
.btn-delete     { background: #fee2e2; color: #b91c1c; }

/* ─── 5. Ebook Reader ────────────────────────────────────────── */
.reader-body {
  background: linear-gradient(160deg, var(--green-dark) 0%, #163828 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  position: relative;
}

/* Reader header */
.reader-header {
  width: 100%;
  max-width: 540px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px 10px;
  gap: 12px;
  z-index: 10;
}
.reader-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: 'Fredoka One', cursive;
  font-size: 1rem;
  color: var(--gold-light);
  white-space: nowrap;
}
.btn-logout-reader {
  background: rgba(255,255,255,0.1);
  color: var(--cream);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-logout-reader:hover { background: rgba(255,255,255,0.2); }

/* Progress */
.progress-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 0;
}
.progress-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--cream);
  opacity: 0.85;
  white-space: nowrap;
}
.progress-bar-track {
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.15);
  border-radius: 99px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green-light), var(--gold-light));
  border-radius: 99px;
  transition: width 0.4s cubic-bezier(0.4,0,0.2,1);
}

/* Page dots */
.page-dots {
  display: flex;
  gap: 7px;
  justify-content: center;
  padding: 4px 0 8px;
  z-index: 10;
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: background 0.25s, transform 0.25s;
}
.dot.active {
  background: var(--gold-light);
  transform: scale(1.35);
}

/* Book container */
.book-container {
  position: relative;
  width: 100%;
  max-width: 480px;
  flex: 1;
  overflow: hidden;
  margin: 0 auto;
  padding: 0 16px 16px;
  display: flex;
  align-items: flex-start;
}

/* Pages */
.page {
  position: absolute;
  inset: 0;
  padding: 0 0 80px;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
  will-change: transform;
  overflow-y: auto;
}
.page.active    { transform: translateX(0); }
.page.exit-left { transform: translateX(-100%); }

/* Cover page */
.page-cover { padding: 0; }
.cover-inner {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 20px 100px;
  position: relative;
}
.cover-stars { position: absolute; inset: 0; pointer-events: none; }
.cstar {
  position: absolute;
  color: var(--gold-light);
  animation: twinkle 3s ease-in-out infinite;
  font-size: 0.9rem;
}
.cs1 { top: 8%;  left: 10%;  animation-delay: 0s; font-size: 1.1rem; }
.cs2 { top: 15%; right: 12%; animation-delay: 0.7s; }
.cs3 { top: 55%; left: 6%;  animation-delay: 1.4s; font-size: 0.7rem; }
.cs4 { top: 70%; right: 8%; animation-delay: 2.1s; font-size: 1.3rem; }
.cs5 { top: 35%; right: 5%; animation-delay: 2.8s; font-size: 0.8rem; }

.cover-moon-wrap {
  position: relative;
  width: 160px; height: 160px;
  margin: 10px auto 4px;
}
.cover-moon  { width: 100%; height: 100%; animation: floatUp 6s ease-in-out infinite; }
.cover-hands {
  position: absolute;
  bottom: 8px; left: 50%;
  transform: translateX(-50%);
  width: 80px; height: 80px;
  animation: floatUp 6s ease-in-out infinite 0.3s;
}

/* Geometric border */
.geo-border {
  width: 100%;
  height: 18px;
  background-image: repeating-linear-gradient(
    90deg,
    transparent 0px, transparent 12px,
    var(--gold) 12px, var(--gold) 14px,
    transparent 14px, transparent 26px
  ),
  repeating-linear-gradient(
    0deg,
    transparent 0px, transparent 7px,
    var(--gold) 7px, var(--gold) 9px
  );
  opacity: 0.25;
  margin: 10px 0;
}

/* Cover text */
.cover-text { text-align: center; z-index: 1; }
.cover-bismillah {
  font-size: 1.6rem;
  color: var(--gold);
  margin-bottom: 10px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.cover-title {
  font-family: 'Fredoka One', cursive;
  font-size: 2.2rem;
  color: var(--text-light);
  line-height: 1.2;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.cover-subtitle {
  font-size: 1rem;
  color: var(--cream);
  opacity: 0.9;
  margin: 6px 0 14px;
  font-weight: 600;
}
.cover-divider { margin: 10px auto; width: 200px; }
.cover-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(212,160,23,0.4);
  border-radius: 30px;
  padding: 6px 16px;
  margin: 12px auto 8px;
}
.cover-brand span {
  font-family: 'Fredoka One', cursive;
  font-size: 1.1rem;
  color: var(--gold-light);
}
.cover-count {
  font-size: 0.82rem;
  color: var(--cream);
  opacity: 0.7;
  font-weight: 600;
}
.btn-start {
  margin-top: 28px;
  padding: 16px 40px;
  background: linear-gradient(135deg, var(--gold), #b8860b);
  color: var(--text-dark);
  border: none;
  border-radius: var(--radius-btn);
  font-family: 'Fredoka One', cursive;
  font-size: 1.15rem;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(212,160,23,0.5);
  transition: transform 0.15s, box-shadow 0.15s;
  z-index: 1;
}
.btn-start:hover  { transform: translateY(-3px) scale(1.02); box-shadow: 0 10px 28px rgba(212,160,23,0.6); }
.btn-start:active { transform: translateY(0) scale(0.98); }

/* Doa card */
.doa-card {
  background: var(--cream);
  border-radius: var(--radius-card);
  padding: 24px 22px 28px;
  margin: 8px 0;
  box-shadow: var(--shadow-warm), 0 8px 32px rgba(0,0,0,0.18);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.doa-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 2px dashed var(--cream-dark);
}
.doa-icon {
  font-size: 2.2rem;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}
.doa-num {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--green-light);
  letter-spacing: 1px;
}
.doa-title {
  font-family: 'Fredoka One', cursive;
  font-size: 1.35rem;
  color: var(--green-dark);
  line-height: 1.2;
}

/* Arabic image / placeholder */
.arabic-block { width: 100%; }
.arabic-img {
  width: 100%;
  border-radius: 14px;
  border: 2px solid var(--gold);
  box-shadow: 0 3px 12px rgba(212,160,23,0.2);
}
.arabic-placeholder {
  background: linear-gradient(135deg, var(--cream), #fffbf0);
  border: 2.5px solid var(--gold);
  border-radius: 14px;
  padding: 22px 16px 16px;
  text-align: center;
  box-shadow: inset 0 2px 8px rgba(212,160,23,0.08), 0 3px 12px rgba(212,160,23,0.15);
}
.arabic-placeholder-text {
  font-size: 2.2rem;
  color: var(--green-dark);
  margin-bottom: 10px;
  line-height: 1.4;
}
.arabic-placeholder-label {
  font-size: 0.8rem;
  color: #888;
  font-style: italic;
}
.arabic-placeholder-hint {
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 700;
  margin-top: 4px;
}

/* Transliteration */
.doa-latin-wrap {
  background: rgba(82,183,136,0.08);
  border-left: 4px solid var(--green-light);
  border-radius: 0 10px 10px 0;
  padding: 12px 14px;
}
.doa-latin-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--green-light);
  letter-spacing: 0.8px;
  margin-bottom: 6px;
}
.doa-latin {
  font-size: 1.05rem;
  color: var(--green-dark);
  line-height: 1.7;
}

/* Meaning */
.doa-meaning-wrap {
  background: rgba(212,160,23,0.07);
  border-left: 4px solid var(--gold);
  border-radius: 0 10px 10px 0;
  padding: 12px 14px;
}
.doa-meaning-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gold);
  letter-spacing: 0.8px;
  margin-bottom: 6px;
}
.doa-meaning {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.7;
}

/* Audio player */
.audio-player {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  border-radius: 50px;
  box-shadow: 0 4px 14px rgba(29,67,50,0.3);
}
.audio-btn {
  width: 44px; height: 44px;
  min-width: 44px;
  border-radius: 50%;
  border: none;
  background: var(--gold);
  color: var(--text-dark);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(212,160,23,0.4);
  transition: transform 0.15s, box-shadow 0.15s;
}
.audio-btn:hover  { transform: scale(1.1); box-shadow: 0 5px 16px rgba(212,160,23,0.55); }
.audio-btn:active { transform: scale(0.95); }

/* Waveform bars */
.waveform {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  flex: 1;
}
.bar {
  width: 4px;
  border-radius: 99px;
  background: rgba(255,255,255,0.6);
  height: 10px;
  transition: height 0.15s;
}
.audio-player.playing .bar { animation: wavePulse 0.8s ease-in-out infinite; }
.audio-player.playing .b1 { animation-delay: 0s;    animation-duration: 0.7s; }
.audio-player.playing .b2 { animation-delay: 0.12s; animation-duration: 0.9s; }
.audio-player.playing .b3 { animation-delay: 0.24s; animation-duration: 0.65s;}
.audio-player.playing .b4 { animation-delay: 0.36s; animation-duration: 0.85s;}
.audio-player.playing .b5 { animation-delay: 0.48s; animation-duration: 0.75s;}

.audio-unavail {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  font-style: italic;
  flex: 1;
}

/* Navigation buttons */
.nav-buttons {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 20px;
  z-index: 20;
}
.nav-btn {
  width: 54px; height: 54px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.15);
  color: var(--text-light);
  font-size: 1.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255,255,255,0.25);
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.nav-btn:hover       { background: rgba(255,255,255,0.25); transform: scale(1.08); }
.nav-btn:active      { transform: scale(0.95); }
.nav-btn:disabled    { opacity: 0.3; pointer-events: none; }

/* Completion screen */
.page-complete { display: flex; align-items: center; justify-content: center; }
.complete-inner {
  text-align: center;
  padding: 32px 24px 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.complete-stars { display: flex; gap: 10px; justify-content: center; margin-bottom: 4px; }
.cmp-star {
  font-size: 2rem;
  animation: starPop 0.5s cubic-bezier(0.34,1.56,0.64,1) both;
}
.cmp-star.s1 { animation-delay: 0.1s; }
.cmp-star.s2 { animation-delay: 0.25s; }
.cmp-star.s3 { animation-delay: 0.4s; }
.complete-badge { font-size: 4rem; animation: starPop 0.5s cubic-bezier(0.34,1.56,0.64,1) 0s both; }
.complete-title {
  font-family: 'Fredoka One', cursive;
  font-size: 2.4rem;
  color: var(--gold-light);
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.complete-msg {
  font-size: 1.2rem;
  color: var(--cream);
  font-weight: 700;
}
.complete-sub {
  font-size: 0.9rem;
  color: var(--cream);
  opacity: 0.75;
  max-width: 280px;
  line-height: 1.6;
}
.complete-divider { width: 200px; margin: 4px auto; }
.btn-restart {
  padding: 15px 36px;
  background: linear-gradient(135deg, var(--gold), #b8860b);
  color: var(--text-dark);
  border: none;
  border-radius: var(--radius-btn);
  font-family: 'Fredoka One', cursive;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(212,160,23,0.5);
  transition: transform 0.15s;
  margin-top: 8px;
}
.btn-restart:hover { transform: translateY(-2px); }

/* ─── 6. Animations ─────────────────────────────────────────── */
@keyframes twinkle {
  0%, 100% { opacity: 0;   transform: scale(0.8); }
  50%       { opacity: 0.9; transform: scale(1.1); }
}
@keyframes floatUp {
  0%, 100% { transform: translateY(0px);  }
  50%       { transform: translateY(-9px); }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0);    }
}
@keyframes wavePulse {
  0%, 100% { height: 6px;  }
  50%       { height: 22px; }
}
@keyframes starPop {
  from { opacity: 0; transform: scale(0) rotate(-20deg); }
  to   { opacity: 1; transform: scale(1) rotate(0deg);   }
}

/* ─── 7. Responsive ─────────────────────────────────────────── */
@media (max-width: 640px) {
  .login-card { padding: 28px 22px; }
  .brand-name { font-size: 1.7rem; }

  .admin-grid { grid-template-columns: 1fr; }
  .admin-main { padding: 20px 14px 50px; }
  .stats-bar  { gap: 10px; }
  .stat-card  { padding: 16px 18px; }
  .form-row   { flex-direction: column; }
  .form-group-btn { width: 100%; }
  .form-group-btn .btn-primary { width: 100%; display: block; }
  .table-header { flex-direction: column; align-items: flex-start; }
  .search-form  { width: 100%; }
  .search-input { min-width: unset; flex: 1; }

  .cover-title   { font-size: 1.8rem; }
  .doa-card      { padding: 18px 16px 22px; }
  .doa-title     { font-size: 1.15rem; }
  .nav-btn       { width: 48px; height: 48px; font-size: 1.6rem; }
}

@media (max-width: 380px) {
  .otp-group input { font-size: 1.4rem; letter-spacing: 5px; }
  .cover-moon-wrap { width: 130px; height: 130px; }
}
