/* ═══════════════════════════════════════════════════════════════
   HIKMAT — Islamic Character Development
   Design System: Dark, Masculine, App-like, Mobile-First
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Amiri:wght@400;700&display=swap');

/* ── CSS Variables ──────────────────────────────────────────── */
:root {
  /* Core Palette */
  --bg-base:       #0d1117;
  --bg-surface:    #161b22;
  --bg-elevated:   #1c2330;
  --bg-card:       #1e2738;
  --bg-input:      #252f3e;

  /* Accent — Gold (Islamic heritage) */
  --gold:          #c9a84c;
  --gold-light:    #e8c56a;
  --gold-dim:      rgba(201, 168, 76, 0.15);
  --gold-border:   rgba(201, 168, 76, 0.3);

  /* Accent — Green (Islam, growth) */
  --green:         #2ea043;
  --green-light:   #3fb950;
  --green-dim:     rgba(46, 160, 67, 0.12);
  --green-border:  rgba(46, 160, 67, 0.3);

  /* Text */
  --text-primary:  #e6edf3;
  --text-secondary:#8b949e;
  --text-muted:    #484f58;
  --text-gold:     #c9a84c;
  --text-green:    #3fb950;

  /* Borders */
  --border:        rgba(255,255,255,0.06);
  --border-hover:  rgba(255,255,255,0.12);

  /* Shadows */
  --shadow-sm:     0 1px 3px rgba(0,0,0,0.4);
  --shadow-md:     0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg:     0 8px 32px rgba(0,0,0,0.6);
  --shadow-gold:   0 0 20px rgba(201,168,76,0.15);

  /* Radii */
  --radius-sm:     8px;
  --radius-md:     12px;
  --radius-lg:     16px;
  --radius-xl:     24px;

  /* Typography */
  --font-display:  'Oswald', sans-serif;
  --font-body:     'Plus Jakarta Sans', sans-serif;
  --font-arabic:   'Amiri', serif;

  /* Spacing */
  --space-xs:      4px;
  --space-sm:      8px;
  --space-md:      16px;
  --space-lg:      24px;
  --space-xl:      32px;
  --space-2xl:     48px;

  /* Nav height */
  --nav-height:    64px;
  --bottom-nav:    72px;
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.hikmat-logged-in {
  padding-bottom: var(--bottom-nav);
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ── Typography ─────────────────────────────────────────────── */
.display-xl { font-family: var(--font-display); font-size: clamp(2rem, 8vw, 4rem); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; line-height: 1.05; }
.display-lg { font-family: var(--font-display); font-size: clamp(1.6rem, 6vw, 3rem); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; line-height: 1.1; }
.display-md { font-family: var(--font-display); font-size: clamp(1.3rem, 4vw, 2rem); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.display-sm { font-family: var(--font-display); font-size: clamp(1rem, 3vw, 1.4rem); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }

.body-lg  { font-size: 1.1rem; line-height: 1.7; }
.body-md  { font-size: 1rem; line-height: 1.7; }
.body-sm  { font-size: 0.875rem; line-height: 1.6; }
.body-xs  { font-size: 0.75rem; line-height: 1.5; }

.text-gold    { color: var(--gold); }
.text-green   { color: var(--green-light); }
.text-muted   { color: var(--text-secondary); }
.text-center  { text-align: center; }
.font-arabic  { font-family: var(--font-arabic); direction: rtl; }

/* ── Layout ─────────────────────────────────────────────────── */
.hikmat-container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.hikmat-container--wide {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.page-content {
  padding-top: calc(var(--nav-height) + var(--space-lg));
  padding-bottom: calc(var(--bottom-nav) + var(--space-xl));
  min-height: 100vh;
}

/* ── Top Navigation ─────────────────────────────────────────── */
.hikmat-topnav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(13, 17, 23, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 var(--space-md);
}

.topnav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.hikmat-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.hikmat-logo-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hikmat-logo-arabic {
  font-family: var(--font-arabic);
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.topnav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.topnav-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.topnav-btn:hover, .topnav-btn:active {
  background: var(--bg-card);
  border-color: var(--gold-border);
  color: var(--gold);
}

/* ── Bottom Navigation (App-style) ──────────────────────────── */
.hikmat-bottomnav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-nav);
  background: rgba(22, 27, 34, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: stretch;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.bottomnav-inner {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.bottomnav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: var(--space-sm) 0;
  color: var(--text-muted);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s;
  position: relative;
}

.bottomnav-item svg,
.bottomnav-item .nav-icon { 
  font-size: 1.3rem;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bottomnav-item.active {
  color: var(--gold);
}

.bottomnav-item.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 25%;
  right: 25%;
  height: 2px;
  background: var(--gold);
  border-radius: 0 0 2px 2px;
}

.bottomnav-item:hover { color: var(--text-secondary); }
.bottomnav-item.active:hover { color: var(--gold); }

/* ── Cards ──────────────────────────────────────────────────── */
.hikmat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all 0.25s;
}

.hikmat-card--elevated {
  background: var(--bg-elevated);
  box-shadow: var(--shadow-md);
}

.hikmat-card--gold {
  border-color: var(--gold-border);
  background: linear-gradient(135deg, rgba(201,168,76,0.05) 0%, var(--bg-surface) 100%);
}

.hikmat-card--green {
  border-color: var(--green-border);
  background: linear-gradient(135deg, rgba(46,160,67,0.07) 0%, var(--bg-surface) 100%);
}

.hikmat-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 14px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), #a87d2e);
  color: #0d1117;
  box-shadow: 0 4px 15px rgba(201,168,76,0.3);
}

.btn-primary:hover, .btn-primary:active {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(201,168,76,0.4);
  color: #0d1117;
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-hover);
}

.btn-secondary:hover {
  border-color: var(--gold-border);
  color: var(--gold);
}

.btn-green {
  background: linear-gradient(135deg, var(--green), #1a6b2c);
  color: #fff;
  box-shadow: 0 4px 15px rgba(46,160,67,0.25);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn--full { width: 100%; }
.btn--sm { padding: 10px 18px; font-size: 0.8rem; }
.btn--lg { padding: 18px 32px; font-size: 1.1rem; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; }

/* ── Progress Bar ───────────────────────────────────────────── */
.progress-bar {
  height: 4px;
  background: var(--bg-input);
  border-radius: 2px;
  overflow: hidden;
}

.progress-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-bar--green .progress-bar__fill {
  background: linear-gradient(90deg, var(--green), var(--green-light));
}

/* ── Badges / Pills ─────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-gold   { background: var(--gold-dim); color: var(--gold); border: 1px solid var(--gold-border); }
.badge-green  { background: var(--green-dim); color: var(--green-light); border: 1px solid var(--green-border); }
.badge-muted  { background: rgba(255,255,255,0.05); color: var(--text-secondary); border: 1px solid var(--border); }
.badge-locked { background: rgba(255,255,255,0.03); color: var(--text-muted); border: 1px solid rgba(255,255,255,0.05); }

/* ── Section Headers ────────────────────────────────────────── */
.section-header {
  margin-bottom: var(--space-lg);
}

.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 6px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 4vw, 1.8rem);
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── Dividers ───────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border);
  margin: var(--space-lg) 0;
}

.divider--gold {
  background: linear-gradient(90deg, transparent, var(--gold-border), transparent);
}

/* ════════════════════════════════════════════════════════════
   PAGE: SPLASH / INTRO
   ════════════════════════════════════════════════════════════ */
.splash-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl) var(--space-md);
  background: radial-gradient(ellipse at 50% 0%, rgba(201,168,76,0.08) 0%, transparent 60%), var(--bg-base);
  text-align: center;
}

.splash-bismillah {
  font-family: var(--font-arabic);
  font-size: clamp(1.8rem, 7vw, 2.8rem);
  color: var(--gold);
  margin-bottom: var(--space-sm);
  line-height: 1.4;
}

.splash-bismillah-trans {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: var(--space-2xl);
}

.splash-logo-wrap {
  margin-bottom: var(--space-xl);
}

.splash-bolt {
  font-size: 3rem;
  margin-bottom: var(--space-md);
  animation: pulse-gold 2s ease-in-out infinite;
}

@keyframes pulse-gold {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(0.95); }
}

.splash-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 10vw, 4rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold), #8b6914);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}

.splash-subtitle-arabic {
  font-family: var(--font-arabic);
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
}

.splash-quran {
  background: var(--bg-surface);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
  max-width: 360px;
  position: relative;
  overflow: hidden;
}

.splash-quran::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.splash-quran-arabic {
  font-family: var(--font-arabic);
  font-size: 1.3rem;
  color: var(--gold);
  direction: rtl;
  line-height: 1.8;
  margin-bottom: var(--space-sm);
}

.splash-quran-trans {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 6px;
}

.splash-quran-ref {
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 600;
}

.splash-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  max-width: 360px;
  width: 100%;
  margin-bottom: var(--space-xl);
}

.splash-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-sm);
  text-align: center;
}

.splash-card-icon { font-size: 1.5rem; margin-bottom: 6px; }
.splash-card-title { font-family: var(--font-display); font-size: 0.7rem; color: var(--gold); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.splash-card-text { font-size: 0.7rem; color: var(--text-secondary); line-height: 1.3; }

.splash-commitment {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  max-width: 360px;
  width: 100%;
  margin-bottom: var(--space-xl);
  text-align: left;
}

.splash-commitment-title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: 6px;
}

.splash-commitment-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.splash-footer-hadith {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: var(--space-md);
}

/* ════════════════════════════════════════════════════════════
   PAGE: DASHBOARD
   ════════════════════════════════════════════════════════════ */
.dashboard-hero {
  background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl) var(--space-lg);
  margin-bottom: var(--space-lg);
  position: relative;
  overflow: hidden;
}

.dashboard-hero::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(201,168,76,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.dashboard-greeting {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 4px;
}

.dashboard-name {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 5vw, 2rem);
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

.dashboard-streak {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.streak-icon { font-size: 1.3rem; }

.streak-count {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.streak-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.2;
}

.streak-label strong { display: block; color: var(--text-primary); }

.dashboard-progress-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
}

/* Today's lesson card */
.today-lesson-card {
  background: linear-gradient(135deg, rgba(201,168,76,0.08), var(--bg-card));
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  position: relative;
  overflow: hidden;
}

.today-lesson-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
}

.today-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold);
  margin-bottom: var(--space-sm);
}

.today-day {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 5vw, 1.8rem);
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.today-meta {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.today-meta span { display: flex; align-items: center; gap: 4px; }

/* Week modules */
.week-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-md);
  transition: all 0.25s;
}

.week-card.active {
  border-color: var(--gold-border);
}

.week-card.locked {
  opacity: 0.5;
}

.week-header {
  padding: var(--space-md) var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  cursor: pointer;
}

.week-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-input);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.week-card.active .week-number {
  background: var(--gold-dim);
  border-color: var(--gold);
  color: var(--gold);
}

.week-card.completed .week-number {
  background: var(--green-dim);
  border-color: var(--green);
  color: var(--green-light);
}

.week-info { flex: 1; min-width: 0; }

.week-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.week-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.week-chevron {
  color: var(--text-muted);
  transition: transform 0.2s;
  font-size: 0.8rem;
}

.week-card.open .week-chevron { transform: rotate(180deg); }

.week-days {
  display: none;
  padding: 0 var(--space-md) var(--space-md);
  gap: var(--space-sm);
  flex-direction: column;
}

.week-card.open .week-days { display: flex; }

.day-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.day-item:hover {
  border-color: var(--gold-border);
}

.day-item.completed {
  border-color: var(--green-border);
  background: var(--green-dim);
}

.day-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
}

.day-item.completed .day-dot { background: var(--green-light); }
.day-item.today .day-dot { background: var(--gold); box-shadow: 0 0 6px rgba(201,168,76,0.5); }

.day-text { font-size: 0.85rem; color: var(--text-secondary); flex: 1; }
.day-item.today .day-text { color: var(--text-primary); font-weight: 600; }

.day-check { font-size: 0.85rem; color: var(--green-light); }

/* ════════════════════════════════════════════════════════════
   PAGE: LESSON
   ════════════════════════════════════════════════════════════ */
.lesson-page {
  padding-top: calc(var(--nav-height) + var(--space-md));
  padding-bottom: calc(var(--bottom-nav) + var(--space-xl));
}

.lesson-back {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-secondary);
  font-size: 0.85rem;
  padding: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-sm);
  transition: color 0.2s;
}
.lesson-back:hover { color: var(--gold); }

.lesson-hero {
  padding: var(--space-md) var(--space-md) 0;
}

.lesson-week-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold);
  border: 1px solid var(--gold-border);
  background: var(--gold-dim);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: var(--space-sm);
}

.lesson-title-main {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 6vw, 2.5rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: var(--space-sm);
}

.lesson-metas {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.lesson-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Lesson Content */
.lesson-body {
  padding: 0 var(--space-md);
}

/* Dua Block */
.lesson-dua {
  background: linear-gradient(135deg, rgba(46,160,67,0.08), rgba(46,160,67,0.04));
  border: 1px solid var(--green-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.lesson-dua::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
}

.dua-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--green-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.dua-arabic-text {
  font-family: var(--font-arabic);
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  color: var(--green-light);
  direction: rtl;
  line-height: 2;
  margin-bottom: var(--space-sm);
}

.dua-translation-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.6;
  margin-bottom: var(--space-sm);
}

.dua-note-text {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Quran Anchor */
.lesson-quran {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border-left: 3px solid var(--gold);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.quran-verse-text {
  font-family: var(--font-display);
  font-size: clamp(1rem, 3vw, 1.2rem);
  color: var(--gold);
  font-style: italic;
  text-align: center;
  line-height: 1.5;
  margin-bottom: var(--space-sm);
}

.quran-ref-text {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.quran-explain {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Lesson text blocks */
.lesson-block {
  margin-bottom: var(--space-lg);
}

.lesson-section-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.lesson-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.lesson-text strong { color: var(--text-primary); }

/* Hadith */
.lesson-hadith {
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--text-muted);
  padding: var(--space-md) var(--space-lg);
  margin: var(--space-md) 0;
  text-align: center;
}

.hadith-text-content {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 6px;
  line-height: 1.6;
}

.hadith-source-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Hero Example */
.lesson-hero-example {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-lg);
}

.hero-example-header {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}

.hero-example-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.hero-example-subtitle {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-style: italic;
}

.hero-example-body { padding: var(--space-lg); }

.hero-images-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.hero-img-wrap { text-align: center; }
.hero-img-wrap img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 2px solid var(--border);
}

.hero-img-cap {
  font-family: var(--font-display);
  font-size: 0.7rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 6px;
}

.hero-img-desc {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 2px;
}

.hero-quote-block {
  background: var(--bg-elevated);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: var(--space-md);
  margin: var(--space-md) 0;
  font-style: italic;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Questions list */
.lesson-questions {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.question-item {
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  border-left: 2px solid var(--text-muted);
  margin-bottom: var(--space-sm);
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Exercise box */
.lesson-exercise {
  background: linear-gradient(135deg, rgba(46,160,67,0.08), rgba(46,160,67,0.03));
  border: 1px solid var(--green-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  position: relative;
  overflow: hidden;
}

.lesson-exercise::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
}

.exercise-step {
  padding: var(--space-sm) var(--space-md);
  background: rgba(46,160,67,0.06);
  border-radius: var(--radius-sm);
  border-left: 2px solid var(--green);
  margin-bottom: var(--space-sm);
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Challenge box */
.lesson-challenge {
  background: linear-gradient(135deg, rgba(249,115,22,0.08), rgba(249,115,22,0.03));
  border: 1px solid rgba(249,115,22,0.3);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  position: relative;
  overflow: hidden;
}

.lesson-challenge::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #f97316, transparent);
}

.challenge-title-text {
  font-family: var(--font-display);
  font-size: 1rem;
  color: #f97316;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-sm);
}

.challenge-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Strengths/Weaknesses Grid */
.sw-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.sw-box {
  border-radius: var(--radius-md);
  padding: var(--space-md);
  border: 1px solid;
  position: relative;
  overflow: hidden;
}

.sw-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
}

.sw-box.strength {
  background: var(--green-dim);
  border-color: var(--green-border);
}

.sw-box.strength::before { background: linear-gradient(90deg, var(--green), var(--green-light)); }

.sw-box.weakness {
  background: rgba(239,68,68,0.06);
  border-color: rgba(239,68,68,0.25);
}

.sw-box.weakness::before { background: linear-gradient(90deg, #ef4444, #dc2626); }

.sw-box-title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-sm);
  font-weight: 700;
}

.sw-box.strength .sw-box-title { color: var(--green-light); }
.sw-box.weakness .sw-box-title { color: #ef4444; }

.sw-list li {
  font-size: 0.75rem;
  color: var(--text-secondary);
  padding: 3px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  line-height: 1.4;
}

.sw-list li:last-child { border-bottom: none; }

/* Complete lesson CTA */
.lesson-complete-cta {
  padding: var(--space-lg) var(--space-md);
  text-align: center;
}

/* ════════════════════════════════════════════════════════════
   PAGE: LOGIN / REGISTER
   ════════════════════════════════════════════════════════════ */
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl) var(--space-md);
  background: radial-gradient(ellipse at 50% 0%, rgba(201,168,76,0.06) 0%, transparent 60%), var(--bg-base);
}

.auth-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  width: 100%;
  max-width: 400px;
}

.auth-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.auth-logo-text {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 3px;
  display: block;
  margin-bottom: 4px;
}

.auth-tagline {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.auth-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text-primary);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.auth-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Form elements */
.form-group { margin-bottom: var(--space-md); }

.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: all 0.2s;
  outline: none;
  -webkit-appearance: none;
}

.form-input:focus {
  border-color: var(--gold-border);
  background: var(--bg-elevated);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.1);
}

.form-input::placeholder { color: var(--text-muted); }

.form-error {
  font-size: 0.8rem;
  color: #ef4444;
  margin-top: 4px;
}

.auth-switch {
  text-align: center;
  margin-top: var(--space-lg);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.auth-switch a { color: var(--gold); font-weight: 600; }

/* ════════════════════════════════════════════════════════════
   PAGE: PROFILE
   ════════════════════════════════════════════════════════════ */
.profile-header {
  text-align: center;
  padding: var(--space-xl) var(--space-md) var(--space-lg);
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 3px solid var(--gold-border);
  margin: 0 auto var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--gold);
  overflow: hidden;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.stat-box {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ════════════════════════════════════════════════════════════
   ANIMATIONS
   ════════════════════════════════════════════════════════════ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.animate-in {
  animation: fadeInUp 0.4s ease-out both;
}

.animate-in--delay-1 { animation-delay: 0.1s; }
.animate-in--delay-2 { animation-delay: 0.2s; }
.animate-in--delay-3 { animation-delay: 0.3s; }

/* Loading skeleton */
.skeleton {
  background: linear-gradient(90deg, var(--bg-surface) 25%, var(--bg-elevated) 50%, var(--bg-surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

/* ════════════════════════════════════════════════════════════
   UTILITIES
   ════════════════════════════════════════════════════════════ */
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.px-md { padding-left: var(--space-md); padding-right: var(--space-md); }
.py-md { padding-top: var(--space-md); padding-bottom: var(--space-md); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-full { width: 100%; }
.hidden { display: none !important; }

/* ════════════════════════════════════════════════════════════
   ADMIN (lesson editor) — minimal overrides
   ════════════════════════════════════════════════════════════ */
.hikmat-admin-notice {
  background: var(--bg-surface);
  border-left: 4px solid var(--gold);
  padding: 12px 16px;
  margin: 16px 0;
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE: Desktop breakpoint (tablet+)
   ════════════════════════════════════════════════════════════ */
@media (min-width: 600px) {
  .hikmat-container { padding: 0 var(--space-lg); }

  .bottomnav-item { font-size: 0.7rem; }

  .dashboard-hero { padding: var(--space-2xl); }

  .page-content { max-width: 480px; margin: 0 auto; }

  .lesson-hero-example { max-width: 100%; }
}

@media (min-width: 900px) {
  body.hikmat-logged-in .hikmat-bottomnav { display: none; }
  body.hikmat-logged-in { padding-bottom: 0; }

  .page-content {
    max-width: 640px;
    padding-top: calc(var(--nav-height) + var(--space-xl));
    padding-bottom: var(--space-xl);
  }
}
