/* /* ============================================================
   NŪR — ISLAMIC LEARNING PLATFORM
   styles.css
   Design: Luxury-refined · Islamic gold & deep green · Cormorant Garamond
============================================================ */

/* ── CSS Variables ── */
:root {
  --green-deep:    #0d3b2e;
  --green-mid:     #145a3e;
  --green-soft:    #1e7a56;
  --green-light:   #2d9e72;
  --gold:          #c9a84c;
  --gold-light:    #e2c47a;
  --gold-pale:     #f5e6c0;
  --cream:         #faf7f0;
  --white:         #ffffff;
  --charcoal:      #1a1a1a;
  --text-main:     #2c2c2c;
  --text-muted:    #6b7280;
  --text-light:    #9ca3af;
  --border:        rgba(201,168,76,0.2);
  --border-soft:   rgba(0,0,0,0.08);
  --shadow-sm:     0 2px 8px rgba(0,0,0,0.06);
  --shadow-md:     0 8px 24px rgba(0,0,0,0.1);
  --shadow-lg:     0 20px 60px rgba(0,0,0,0.15);
  --radius-sm:     8px;
  --radius-md:     14px;
  --radius-lg:     22px;
  --nav-h:         70px;
  --transition:    0.3s cubic-bezier(0.4,0,0.2,1);
}

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

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

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

a { text-decoration: none; color: inherit; }

ul { list-style: none; }

/* ── Container ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow {
  max-width: 520px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Section Base ── */
.section {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

/* ── Section Header ── */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-tag {
  font-family: 'Amiri', serif;
  font-size: 1.3rem;
  color: var(--gold);
  display: block;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--green-deep);
  line-height: 1.15;
  margin-bottom: 14px;
}
.section-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border: none;
  border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.3px;
}
.btn--primary {
  background: var(--green-deep);
  color: var(--gold-light);
  box-shadow: 0 4px 16px rgba(13,59,46,0.25);
}
.btn--primary:hover {
  background: var(--green-mid);
  box-shadow: 0 6px 24px rgba(13,59,46,0.35);
  transform: translateY(-2px);
}
.btn--ghost {
  background: transparent;
  color: var(--green-deep);
  border: 1.5px solid var(--green-deep);
}
.btn--ghost:hover {
  background: var(--green-deep);
  color: var(--gold-light);
}
.btn--full { width: 100%; justify-content: center; }

.btn-icon {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  padding: 8px 16px;
  font-size: 0.82rem;
  color: var(--green-deep);
  cursor: pointer;
  transition: var(--transition);
  font-family: 'DM Sans', sans-serif;
}
.btn-icon:hover {
  background: var(--green-deep);
  color: var(--gold-light);
  border-color: var(--green-deep);
}

/* ================================================================
   NAVBAR
================================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
  background: rgba(250,247,240,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(250,247,240,0.96);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  border-color: var(--border);
}

/* Brand */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--green-deep);
  letter-spacing: 0.5px;
}
.brand-ornament { color: var(--gold); font-size: 1rem; }

/* Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 50px;
  color: var(--text-muted);
  transition: var(--transition);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: var(--green-deep);
  background: rgba(13,59,46,0.07);
}
.nav-cta {
  background: var(--green-deep);
  color: var(--gold-light) !important;
  padding: 8px 18px;
  display: flex; align-items: center; gap: 6px;
}
.nav-cta:hover { background: var(--green-mid); }
.cta-icon { font-size: 0.75rem; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--green-deep);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ================================================================
   HERO SECTION
================================================================ */
.section--hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: calc(var(--nav-h) + 40px);
  background: var(--green-deep);
  color: var(--white);
  text-align: center;
  overflow: hidden;
}

/* Geometric background decorations */
.geo-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.geo-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(201,168,76,0.15);
}
.geo-circle--1 {
  width: 600px; height: 600px;
  top: -150px; right: -150px;
  animation: geo-rotate 60s linear infinite;
}
.geo-circle--2 {
  width: 900px; height: 900px;
  bottom: -300px; left: -300px;
  animation: geo-rotate 90s linear infinite reverse;
}
.geo-star {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 700px; height: 700px;
  background: radial-gradient(circle at center, rgba(201,168,76,0.04) 0%, transparent 70%);
  animation: pulse-glow 8s ease-in-out infinite;
}

@keyframes geo-rotate { to { transform: rotate(360deg); } }
@keyframes pulse-glow {
  0%,100% { opacity: 0.5; transform: translate(-50%,-50%) scale(1); }
  50%      { opacity: 1;   transform: translate(-50%,-50%) scale(1.05); }
}

.hero-content { position: relative; z-index: 1; }

.hero-bismillah {
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--gold-light);
  margin-bottom: 28px;
  animation: fadeUp 0.8s ease both;
  text-shadow: 0 0 40px rgba(201,168,76,0.3);
}
.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 24px;
  animation: fadeUp 0.8s 0.15s ease both;
}
.hero-title em {
  font-style: italic;
  color: var(--gold-light);
}
.hero-subtitle {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: rgba(255,255,255,0.6);
  margin-bottom: 42px;
  animation: fadeUp 0.8s 0.3s ease both;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.8s 0.45s ease both;
}
.hero-actions .btn--primary { background: var(--gold); color: var(--green-deep); font-weight: 600; }
.hero-actions .btn--primary:hover { background: var(--gold-light); }
.hero-actions .btn--ghost { border-color: rgba(255,255,255,0.3); color: rgba(255,255,255,0.8); }
.hero-actions .btn--ghost:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.5); color: white; }

/* Stats strip */
.hero-stats {
  position: relative; z-index: 1;
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 72px;
  padding: 28px 48px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  animation: fadeUp 0.8s 0.6s ease both;
}
.stat { text-align: center; padding: 0 32px; }
.stat-num {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--gold-light);
  line-height: 1;
}
.stat-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 4px;
  display: block;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(201,168,76,0.2);
  flex-shrink: 0;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ================================================================
   SECTION : CORAN
================================================================ */
.section--coran { background: var(--white); }

/* Search bar */
.search-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 40px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.search-input {
  flex: 1;
  padding: 13px 20px;
  border: 1.5px solid var(--border-soft);
  border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  outline: none;
  background: var(--cream);
  transition: var(--transition);
}
.search-input:focus { border-color: var(--green-light); background: white; }
.search-btn {
  padding: 13px 24px;
  background: var(--green-deep);
  color: var(--gold-light);
  border: none;
  border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.search-btn:hover { background: var(--green-mid); }

/* Sourate grid */
.sourate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  margin-bottom: 48px;
}
.sourate-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--cream);
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  opacity: 0;
  transform: translateY(12px);
}
.sourate-card.visible { opacity: 1; transform: translateY(0); }
.sourate-card:hover {
  border-color: var(--gold);
  background: var(--white);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.sourate-num {
  min-width: 38px; height: 38px;
  background: var(--green-deep);
  color: var(--gold-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  font-weight: 600;
  flex-shrink: 0;
}
.sourate-info { flex: 1; }
.sourate-name { font-size: 0.95rem; font-weight: 500; color: var(--green-deep); }
.sourate-meta { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }
.sourate-arabic {
  font-size: 1.3rem;
  color: var(--gold);
  margin-left: auto;
  padding-right: 8px;
}
.sourate-arrow { color: var(--text-light); font-size: 0.9rem; transition: var(--transition); }
.sourate-card:hover .sourate-arrow { color: var(--green-deep); transform: translateX(4px); }

/* Verset display */
.verset-display {
  background: linear-gradient(135deg, var(--green-deep) 0%, var(--green-mid) 100%);
  border-radius: var(--radius-lg);
  padding: 2px;
}
.verset-display__inner {
  background: linear-gradient(135deg, var(--green-deep) 0%, #0f4a38 100%);
  border-radius: calc(var(--radius-lg) - 2px);
  padding: 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.verset-display__inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(201,168,76,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.verset-display__tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold);
  margin-bottom: 24px;
}
.verset-display__arabic {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--gold-light);
  line-height: 1.8;
  margin-bottom: 20px;
  text-shadow: 0 0 30px rgba(201,168,76,0.2);
}
.verset-display__translation {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: rgba(255,255,255,0.85);
  margin-bottom: 10px;
}
.verset-display__ref {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 28px;
}
.verset-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.verset-actions .btn-icon {
  border-color: rgba(201,168,76,0.3);
  color: var(--gold-light);
}
.verset-actions .btn-icon:hover { background: var(--gold); color: var(--green-deep); border-color: var(--gold); }

/* ================================================================
   SECTION : HADITH
================================================================ */
.section--hadith { background: var(--cream); }

.hadith-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}
.hadith-card {
  background: var(--white);
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: var(--transition);
  opacity: 0;
  transform: translateY(12px);
  border-left: 4px solid var(--gold);
}
.hadith-card.visible { opacity: 1; transform: translateY(0); }
.hadith-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: var(--gold); }
.hadith-card__header {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 16px;
}
.hadith-source { font-size: 0.78rem; font-weight: 500; color: var(--text-muted); }
.hadith-grade {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: auto;
}
.grade--sahih { background: rgba(21,128,61,0.1); color: #15803d; }
.grade--hasan { background: rgba(161,98,7,0.1); color: #a16207; }
.hadith-arabic {
  font-size: 1.4rem;
  color: var(--green-deep);
  line-height: 1.9;
  margin-bottom: 14px;
  text-align: right;
  direction: rtl;
}
.hadith-text {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text-main);
  margin-bottom: 10px;
  line-height: 1.6;
}
.hadith-narrator { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 18px; }
.hadith-footer { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.btn-tag {
  font-size: 0.73rem;
  padding: 4px 12px;
  background: rgba(13,59,46,0.06);
  color: var(--green-deep);
  border: 1px solid rgba(13,59,46,0.1);
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'DM Sans', sans-serif;
}
.btn-tag:hover { background: var(--green-deep); color: var(--gold-light); }
.btn-save {
  margin-left: auto;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--gold);
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: var(--transition);
}
.btn-save:hover { color: var(--gold-light); }

/* ================================================================
   SECTION : MES VERSETS
================================================================ */
.section--versets { background: var(--white); }

/* Progress overview */
.progress-overview {
  display: flex;
  align-items: center;
  gap: 32px;
  background: var(--green-deep);
  color: white;
  border-radius: var(--radius-lg);
  padding: 32px 40px;
  margin-bottom: 48px;
}
.progress-ring-wrap { position: relative; flex-shrink: 0; }
.ring-bg { stroke: rgba(255,255,255,0.1); }
.ring-fill {
  stroke: var(--gold);
  stroke-linecap: round;
  transform-origin: center;
  transform: rotate(-90deg);
  transition: stroke-dashoffset 1s ease;
}
.ring-label {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  text-align: center;
}
.ring-num { font-family: 'Cormorant Garamond', serif; font-size: 2rem; font-weight: 600; color: var(--gold-light); display: block; }
.ring-sub { font-size: 0.75rem; color: rgba(255,255,255,0.5); display: block; }
.progress-info h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; margin-bottom: 6px; }
.progress-info p { font-size: 0.88rem; color: rgba(255,255,255,0.6); margin-bottom: 14px; }
.progress-bar-wrap { display: flex; align-items: center; gap: 12px; }
.progress-bar {
  height: 8px; flex: 1;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  overflow: hidden;
}
.progress-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 4px;
  transition: width 0.8s ease;
}
.progress-bar-wrap span { font-size: 0.85rem; color: var(--gold-light); font-weight: 500; }

/* Verset cards grid */
.my-versets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}
.my-verset-card {
  background: var(--cream);
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: var(--transition);
  position: relative;
  opacity: 0;
  transform: translateY(10px);
}
.my-verset-card.visible { opacity: 1; transform: translateY(0); }
.my-verset-card.learned {
  border-color: rgba(13,59,46,0.2);
  background: rgba(13,59,46,0.03);
}
.my-verset-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.vcard-status {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--green-soft);
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 5px;
}
.vcard-status.pending { color: var(--text-muted); }
.vcard-arabic {
  font-size: 1.3rem;
  color: var(--green-deep);
  line-height: 1.9;
  margin-bottom: 10px;
  text-align: right;
  direction: rtl;
}
.vcard-trans {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.9rem;
  color: var(--text-main);
  margin-bottom: 6px;
  line-height: 1.5;
}
.vcard-ref { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 16px; }
.btn-learned {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: 50px;
  border: 1.5px solid var(--border-soft);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  font-family: 'DM Sans', sans-serif;
  width: 100%;
}
.btn-learned:hover { border-color: var(--green-deep); color: var(--green-deep); }
.btn-learned.learned {
  background: var(--green-deep);
  color: var(--gold-light);
  border-color: var(--green-deep);
}

/* Add card */
.add-card {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px;
  border: 2px dashed var(--border);
  background: transparent !important;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.85rem;
  min-height: 160px;
  opacity: 1 !important;
  transform: none !important;
  transition: var(--transition);
}
.add-card:hover { border-color: var(--gold); color: var(--gold); background: rgba(201,168,76,0.04) !important; }
.add-icon { font-size: 2rem; line-height: 1; }

/* ================================================================
   SECTION : TÂCHES
================================================================ */
.section--taches { background: var(--cream); }

.task-add-row {
  display: flex; gap: 12px;
  margin-bottom: 24px;
}
.task-input {
  flex: 1;
  padding: 12px 20px;
  border: 1.5px solid var(--border-soft);
  border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  outline: none;
  background: var(--white);
  transition: var(--transition);
}
.task-input:focus { border-color: var(--green-light); }
.task-add-btn { flex-shrink: 0; }

/* Filter tabs */
.task-filters {
  display: flex; gap: 8px;
  margin-bottom: 28px;
}
.task-filter {
  font-size: 0.82rem;
  font-weight: 500;
  padding: 7px 18px;
  border-radius: 50px;
  border: 1.5px solid var(--border-soft);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  font-family: 'DM Sans', sans-serif;
}
.task-filter.active, .task-filter:hover {
  background: var(--green-deep);
  color: var(--gold-light);
  border-color: var(--green-deep);
}

/* Task list */
.task-list { display: flex; flex-direction: column; gap: 10px; }
.task-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--white);
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-md);
  transition: var(--transition);
  opacity: 0;
  transform: translateX(-8px);
}
.task-item.visible { opacity: 1; transform: translateX(0); }
.task-item.done { opacity: 0.6; }
.task-item.done .task-text { text-decoration: line-through; color: var(--text-muted); }
.task-item:hover { box-shadow: var(--shadow-sm); }

.task-check {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border-soft);
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem;
  color: transparent;
  flex-shrink: 0;
}
.task-check:hover { border-color: var(--green-light); }
.task-check.checked {
  background: var(--green-deep);
  border-color: var(--green-deep);
  color: var(--gold-light);
}
.task-text { flex: 1; font-size: 0.9rem; }
.task-cat {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  flex-shrink: 0;
}
.cat--coran { background: rgba(13,59,46,0.08); color: var(--green-deep); }
.cat--hadith { background: rgba(161,98,7,0.1); color: #a16207; }
.cat--memorisation { background: rgba(201,168,76,0.15); color: #8a6a10; }
.cat--connaissance { background: rgba(79,70,229,0.08); color: #4f46e5; }

.task-delete {
  background: none; border: none;
  color: var(--text-light);
  cursor: pointer;
  font-size: 0.8rem;
  padding: 4px 6px;
  border-radius: 4px;
  transition: var(--transition);
  flex-shrink: 0;
}
.task-delete:hover { background: rgba(239,68,68,0.08); color: #ef4444; }

.task-summary {
  text-align: right;
  margin-top: 20px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ================================================================
   SECTION : HEURES DE PRIÈRE
================================================================ */
.section--prieres {
  background: var(--green-deep);
  color: white;
}
.section--prieres .section-tag { color: var(--gold); }
.section--prieres .section-title { color: white; }
.section--prieres .section-desc { color: rgba(255,255,255,0.55); }

.prayer-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 48px;
}
.prayer-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,168,76,0.12);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px);
  cursor: default;
}
.prayer-card.visible { opacity: 1; transform: translateY(0); }
.prayer-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(201,168,76,0.3);
  transform: translateY(-4px);
}
.prayer-card.active-prayer {
  background: rgba(201,168,76,0.1);
  border-color: var(--gold);
  box-shadow: 0 0 30px rgba(201,168,76,0.15);
}
.prayer-next-badge {
  position: absolute; top: 10px; left: 50%;
  transform: translateX(-50%);
  font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.8px;
  background: var(--gold);
  color: var(--green-deep);
  padding: 3px 10px;
  border-radius: 50px;
  font-weight: 700;
  white-space: nowrap;
}
.prayer-icon { font-size: 1.8rem; margin-bottom: 10px; margin-top: 8px; }
.prayer-name { font-size: 1rem; font-weight: 500; margin-bottom: 4px; }
.prayer-name-ar { font-size: 1rem; color: rgba(255,255,255,0.5); margin-bottom: 12px; }
.prayer-time {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 12px;
}
.prayer-notif { display: flex; justify-content: center; }
.notif-btn {
  background: none; border: none;
  font-size: 1rem; cursor: pointer;
  opacity: 0.3; transition: var(--transition);
  padding: 4px;
}
.notif-btn:hover { opacity: 0.7; transform: scale(1.15); }
.notif-btn.active { opacity: 1; filter: drop-shadow(0 0 4px rgba(201,168,76,0.5)); }

/* Countdown */
.prayer-countdown {
  text-align: center;
  padding: 36px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(201,168,76,0.12);
  border-radius: var(--radius-lg);
}
.countdown-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 20px;
}
.countdown-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.countdown-unit { text-align: center; }
.cd-num {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.5rem;
  font-weight: 600;
  color: var(--gold-light);
  line-height: 1;
  min-width: 80px;
}
.cd-label {
  display: block;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.7px;
  margin-top: 6px;
}
.cd-sep {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  color: var(--gold);
  line-height: 1;
  padding-bottom: 16px;
}

/* ================================================================
   SECTION : CONNEXION
================================================================ */
.section--connexion { background: var(--cream); }

.auth-box {
  background: var(--white);
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-lg);
}
.auth-panel.hidden { display: none; }
.auth-header {
  text-align: center;
  margin-bottom: 32px;
}
.auth-ornament { font-size: 1.5rem; color: var(--gold); display: block; margin-bottom: 12px; }
.auth-header h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--green-deep);
  margin-bottom: 6px;
}
.auth-header p { font-size: 0.9rem; color: var(--text-muted); }

.auth-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; position: relative; }
.form-group label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.form-input {
  padding: 13px 16px;
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
  background: var(--cream);
}
.form-input:focus { border-color: var(--green-light); background: white; }
.forgot-link {
  background: none; border: none;
  color: var(--gold);
  font-size: 0.78rem;
  cursor: pointer;
  text-align: right;
  align-self: flex-end;
  font-family: 'DM Sans', sans-serif;
  transition: var(--transition);
  margin-top: 4px;
}
.forgot-link:hover { color: var(--gold-light); }
.auth-switch { text-align: center; font-size: 0.85rem; color: var(--text-muted); }
.auth-switch a { color: var(--green-deep); font-weight: 500; }
.auth-switch a:hover { color: var(--green-light); }

/* Profile panel */
.profile-avatar { display: flex; justify-content: center; margin-bottom: 20px; }
.avatar-circle {
  width: 72px; height: 72px;
  background: var(--green-deep);
  color: var(--gold-light);
  font-family: 'Amiri', serif;
  font-size: 2rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(13,59,46,0.3);
}
.profile-stats {
  display: flex;
  justify-content: space-around;
  padding: 28px 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  margin: 28px 0;
}
.pstat { text-align: center; }
.pstat-num {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--green-deep);
}
.pstat-label { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; display: block; }

/* ================================================================
   FOOTER
================================================================ */
.footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.5);
  padding: 56px 24px;
}
.footer-inner { max-width: 600px; margin: 0 auto; text-align: center; }
.footer .nav-brand { justify-content: center; margin-bottom: 20px; }
.footer .brand-name { color: white; font-size: 1.8rem; }
.footer-ayat {
  font-size: 1.3rem;
  color: var(--gold);
  margin-bottom: 10px;
  line-height: 1.8;
}
.footer-ayat-trans {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 28px;
  line-height: 1.6;
}
.footer-copy { font-size: 0.75rem; color: rgba(255,255,255,0.25); }

/* ================================================================
   TOAST
================================================================ */
.toast {
  position: fixed;
  bottom: 32px; left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--green-deep);
  color: var(--gold-light);
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  z-index: 9999;
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), opacity 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  border: 1px solid rgba(201,168,76,0.2);
  max-width: 90vw;
  text-align: center;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ================================================================
   RESPONSIVE
================================================================ */

/* Tablets & small desktop */
@media (max-width: 960px) {
  .prayer-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-stats {
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 24px 28px;
  }
  .stat-divider { display: none; }
  .progress-overview { flex-direction: column; text-align: center; }
  .progress-bar-wrap { justify-content: center; }
}

/* Mobile */
@media (max-width: 768px) {
  .navbar { padding: 0 20px; }

  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: rgba(250,247,240,0.97);
    backdrop-filter: blur(16px);
    padding: 20px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-link { padding: 11px 16px; border-radius: var(--radius-sm); width: 100%; }
  .hamburger { display: flex; }

  .section { padding: 72px 0; }

  .section--hero { padding-top: calc(var(--nav-h) + 28px); }
  .hero-stats { margin: 48px 16px 0; padding: 20px 16px; }
  .stat { padding: 0 16px; }

  .sourate-grid { grid-template-columns: 1fr; }
  .hadith-list { grid-template-columns: 1fr; }
  .my-versets-grid { grid-template-columns: 1fr; }
  .prayer-grid { grid-template-columns: repeat(2, 1fr); }

  .verset-display__inner { padding: 32px 24px; }

  .task-add-row { flex-direction: column; }
  .task-add-btn { width: 100%; }

  .auth-box { padding: 32px 24px; }

  .countdown-display { gap: 4px; }
  .cd-num { font-size: 2.5rem; min-width: 60px; }

  .search-bar { flex-direction: column; }
}

@media (max-width: 480px) {
  .prayer-grid { grid-template-columns: 1fr 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 280px; justify-content: center; }
  .hadith-footer { flex-direction: column; align-items: flex-start; }
  .btn-save { margin-left: 0; }
  .prayer-card.active-prayer { grid-column: span 2; }
}