:root {
  --emerald-950: #061510;
  --emerald-900: #0b241b;
  --emerald-800: #13392c;
  --emerald-700: #1b503e;
  --gold-300: #f0d79c;
  --gold-400: #dfc077;
  --gold-500: #c59b47;
  --gold-600: #9f792d;
  --gold-100: #f9f2e3;
  --ivory: #faf8f2;
  --surface: #ffffff;
  --ink: #171e1b;
  --ink-muted: #5b6761;
  --border: #e6dfd0;
  --radius-lg: 22px;
  --radius-md: 16px;
  --shadow-card: 0 12px 34px rgba(6, 21, 16, 0.07);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--ivory);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom);
}

.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.hero-header {
  position: relative;
  overflow: hidden;
  background: var(--emerald-950);
  color: #fff;
  padding: calc(20px + env(safe-area-inset-top)) 0 34px;
  border-bottom: 3px solid var(--gold-500);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.48;
  transform: scale(1.03);
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 21, 16, 0.72) 0%, rgba(6, 21, 16, 0.56) 50%, rgba(6, 21, 16, 0.94) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
}

.hero-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.sanctuary-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(223, 192, 119, 0.35);
  backdrop-filter: blur(12px);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--gold-300);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-400);
  box-shadow: 0 0 8px var(--gold-400);
}

.hero-actions {
  display: flex;
  gap: 8px;
}

.glass-btn {
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  color: #fff;
  cursor: pointer;
}

.glass-btn-gold {
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  color: var(--emerald-950);
  border-color: transparent;
}

.bismillah {
  font-family: "Amiri", serif;
  font-size: 2rem;
  color: var(--gold-300);
  text-align: center;
  margin: 0 0 10px;
}

.hero-title-block {
  text-align: center;
}

.site-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.4rem, 6vw, 3.3rem);
  font-weight: 700;
  margin: 0;
  line-height: 1.05;
  background: linear-gradient(180deg, #ffffff 0%, var(--gold-300) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.urdu-title {
  font-family: "Amiri", serif;
  font-size: 1.55rem;
  color: var(--gold-300);
  margin: 6px 0 6px;
}

.site-subtitle {
  margin: 0 auto;
  max-width: 560px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.94rem;
}

/* Main */
.main-content {
  padding: 28px 20px 60px;
}

.progress-banner {
  background: linear-gradient(135deg, var(--emerald-950), var(--emerald-800));
  color: #fff;
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-bottom: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  border: 1px solid rgba(223, 192, 119, 0.3);
  box-shadow: var(--shadow-card);
}

.progress-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-300);
  font-weight: 700;
}

.progress-value {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.75rem;
  line-height: 1.1;
}

.btn-subtle {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #fff;
  border-radius: 999px;
  padding: 8px 16px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

/* Steps Grid */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.step-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--emerald-900), var(--gold-500));
}

.step-card.step-done {
  background: linear-gradient(180deg, #ffffff 0%, #f1faf4 100%);
  border-color: var(--emerald-700);
}

.step-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.step-badge {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--gold-100);
  color: var(--gold-600);
}

.step-note-ur {
  font-family: "Amiri", serif;
  font-size: 1.05rem;
  color: var(--emerald-800);
}

.step-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--emerald-950);
  margin: 10px 0 4px;
}

.step-bismillah {
  font-family: "Amiri", serif;
  font-size: 1.05rem;
  color: var(--gold-600);
  text-align: right;
  margin: 4px 0;
}

.step-arabic {
  font-family: "Amiri", serif;
  font-size: 1.45rem;
  line-height: 1.9;
  color: var(--emerald-950);
  text-align: right;
  margin: 6px 0 0;
}

.qul-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.qul-box {
  background: var(--ivory);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
}

.qul-label {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--gold-600);
  display: block;
  margin-bottom: 4px;
}

.step-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.step-count {
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--emerald-950);
  line-height: 1;
}

.step-count small {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.step-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-dec {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--ivory);
  color: var(--ink-muted);
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-inc {
  height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, var(--emerald-900), var(--emerald-700));
  color: #fff;
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(11, 36, 27, 0.22);
  transition: transform 0.1s ease;
}

.btn-inc:active {
  transform: scale(0.94);
}

/* Closing Card */
.closing-card {
  margin-top: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold-500);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  box-shadow: var(--shadow-card);
}

.closing-badge {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--gold-600);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.closing-ur {
  font-family: "Amiri", serif;
  font-size: 1.32rem;
  color: var(--emerald-950);
  margin: 0 0 8px;
}

.closing-en {
  font-size: 0.92rem;
  color: var(--ink-muted);
  margin: 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 42px;
  text-align: center;
  color: var(--ink-muted);
  font-size: 0.88rem;
}

.ayah-quote {
  font-family: "Amiri", serif;
  font-size: 1.15rem;
  color: var(--emerald-900);
  margin: 0 0 6px;
}

.footer-note {
  margin: 0;
  font-size: 0.8rem;
}

@media (max-width: 768px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .step-card {
    padding: 22px 18px;
  }
  .btn-inc {
    height: 52px;
    padding: 0 26px;
  }
}

@media print {
  .no-print {
    display: none !important;
  }
  body {
    background: #fff;
  }
  .hero-header {
    background: #fff;
    color: #000;
    border-bottom: 2px solid #000;
  }
  .hero-bg,
  .hero-scrim {
    display: none;
  }
  .site-title {
    -webkit-text-fill-color: #000;
  }
  .bismillah,
  .urdu-title,
  .site-subtitle {
    color: #333;
  }
  .step-card {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
  }
}

/* Audio Player & Source Card */
.audio-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-card);
}

.audio-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.audio-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold-600);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.audio-title {
  margin: 4px 0 2px;
  font-size: 1.15rem;
  color: var(--emerald-950);
}

.audio-sub {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.btn-download {
  display: inline-block;
  text-decoration: none;
  background: var(--gold-100);
  color: var(--gold-600);
  border: 1px solid var(--gold-400);
  padding: 8px 15px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.audio-player {
  width: 100%;
  height: 44px;
  border-radius: 10px;
}

.source-card {
  margin-top: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  box-shadow: var(--shadow-card);
}

.source-title {
  margin: 2px 0 6px;
  font-size: 1.18rem;
  color: var(--emerald-950);
}

.source-desc {
  margin: 0 0 14px;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.channel-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.channel-pill {
  text-decoration: none;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--emerald-900);
  color: var(--gold-300);
  font-size: 0.84rem;
  font-weight: 600;
  transition: filter 0.15s ease;
}

.channel-pill:hover {
  filter: brightness(1.15);
}
