/* ==========================================================================
   NOUR — LE SANCTUAIRE DE L'ISLAM
   Design System "Haute Couture Spirituelle" — 5 Thèmes Prestige :
   1. Blanc & Émeraude (blanc-vert) — Alabaster Pur & Vert Médine
   2. Noir & Or Royal (noir-or)     — Onyx OLED & Or Kiswa 24K
   3. Émeraude Nocturne (dark)      — Vert Sanctuaire & Or 24K
   4. Parchemin de Médine (light)   — Ivoire Manuscrit & Or Ancien
   5. Nuit d'Al-Quds (nuit-bleue)   — Saphir Céleste & Or Lunaire
   ========================================================================== */

:root,
[data-theme="blanc-vert"] {
  --bg-abyss: #dfeee7;
  --bg-primary: #f6fbf8;
  --bg-secondary: #eaf5ef;
  --bg-card: rgba(255, 255, 255, 0.96);
  --bg-card-solid: #ffffff;
  --bg-elevated: #e1f1e9;
  --bg-glass: rgba(255, 255, 255, 0.93);
  --border-gold: rgba(10, 110, 74, 0.18);
  --border-gold-strong: rgba(10, 110, 74, 0.46);
  --border-subtle: rgba(7, 38, 27, 0.08);

  --gold-light: #0f8a5f;
  --gold: #0a6e4a;
  --gold-deep: #064e35;
  --gold-gradient: linear-gradient(135deg, #139668 0%, #0a6e4a 55%, #064e35 100%);
  --gold-glow: rgba(10, 110, 74, 0.20);

  --accent-faint: rgba(10, 110, 74, 0.06);
  --accent-soft: rgba(10, 110, 74, 0.12);
  --accent-medium: rgba(10, 110, 74, 0.20);
  --badge-text: #064e35;

  --emerald-bright: #059669;
  --emerald-soft: rgba(5, 150, 105, 0.14);

  --text-primary: #07261b;
  --text-secondary: #355c4d;
  --text-muted: #648779;
  --text-phonetic: #0a6e4a;
  --text-on-gold: #ffffff;

  --hero-overlay-grad: linear-gradient(
    180deg,
    rgba(6, 56, 39, 0.48) 0%,
    rgba(6, 48, 34, 0.78) 55%,
    rgba(4, 34, 24, 0.94) 100%
  );

  --shadow-card: 0 8px 24px rgba(7, 44, 30, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --shadow-Sheet: 0 -12px 42px rgba(7, 44, 30, 0.18);

  --tajwid-allah: #0a6e4a;
  --tajwid-ghunna: #059669;
  --tajwid-qalqalah: #0284c7;
  --tajwid-madd: #e11d48;
}

[data-theme="noir-or"] {
  --bg-abyss: #030304;
  --bg-primary: #09090b;
  --bg-secondary: #121216;
  --bg-card: rgba(20, 20, 26, 0.92);
  --bg-card-solid: #14141a;
  --bg-elevated: #1d1d26;
  --bg-glass: rgba(10, 10, 14, 0.92);
  --border-gold: rgba(224, 184, 76, 0.24);
  --border-gold-strong: rgba(235, 198, 94, 0.62);
  --border-subtle: rgba(255, 255, 255, 0.07);

  --gold-light: #faeab9;
  --gold: #e0b84c;
  --gold-deep: #ad831c;
  --gold-gradient: linear-gradient(135deg, #fbecc0 0%, #dfb648 50%, #9e7312 100%);
  --gold-glow: rgba(224, 184, 76, 0.28);

  --accent-faint: rgba(224, 184, 76, 0.08);
  --accent-soft: rgba(224, 184, 76, 0.15);
  --accent-medium: rgba(224, 184, 76, 0.24);
  --badge-text: #faeab9;

  --emerald-bright: #34d399;
  --emerald-soft: rgba(52, 211, 153, 0.16);

  --text-primary: #faf8f2;
  --text-secondary: #b5b0a4;
  --text-muted: #7d786d;
  --text-phonetic: #e5c878;
  --text-on-gold: #09090b;

  --hero-overlay-grad: linear-gradient(
    180deg,
    rgba(8, 8, 10, 0.56) 0%,
    rgba(10, 10, 14, 0.80) 55%,
    rgba(6, 6, 8, 0.96) 100%
  );

  --shadow-card: 0 14px 36px rgba(0, 0, 0, 0.62), inset 0 1px 0 rgba(251, 236, 192, 0.08);
  --shadow-Sheet: 0 -14px 50px rgba(0, 0, 0, 0.82);

  --tajwid-allah: #faeab9;
  --tajwid-ghunna: #34d399;
  --tajwid-qalqalah: #38bdf8;
  --tajwid-madd: #fb7185;
}

[data-theme="dark"] {
  --bg-abyss: #04130f;
  --bg-primary: #061a14;
  --bg-secondary: #0b261e;
  --bg-card: rgba(12, 40, 32, 0.84);
  --bg-card-solid: #0d2b22;
  --bg-elevated: #13382d;
  --bg-glass: rgba(8, 28, 22, 0.88);
  --border-gold: rgba(212, 175, 55, 0.20);
  --border-gold-strong: rgba(212, 175, 55, 0.52);
  --border-subtle: rgba(255, 255, 255, 0.07);

  --gold-light: #f5e6b3;
  --gold: #d4af37;
  --gold-deep: #aa8220;
  --gold-gradient: linear-gradient(135deg, #f6e7b4 0%, #d4af37 50%, #9f7618 100%);
  --gold-glow: rgba(212, 175, 55, 0.25);

  --accent-faint: rgba(212, 175, 55, 0.08);
  --accent-soft: rgba(212, 175, 55, 0.15);
  --accent-medium: rgba(212, 175, 55, 0.22);
  --badge-text: #f5e6b3;

  --emerald-bright: #10b981;
  --emerald-soft: rgba(16, 185, 129, 0.16);

  --text-primary: #faf6ee;
  --text-secondary: #a5bdb2;
  --text-muted: #6f8b7f;
  --text-phonetic: #d8c38e;
  --text-on-gold: #061a14;

  --hero-overlay-grad: linear-gradient(
    180deg,
    rgba(4, 19, 15, 0.50) 0%,
    rgba(6, 26, 20, 0.76) 55%,
    rgba(4, 19, 15, 0.95) 100%
  );

  --shadow-card: 0 12px 32px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 236, 179, 0.07);
  --shadow-Sheet: 0 -14px 48px rgba(0, 0, 0, 0.65);

  --tajwid-allah: #f5d76e;
  --tajwid-ghunna: #34d399;
  --tajwid-qalqalah: #38bdf8;
  --tajwid-madd: #fb7185;
}

[data-theme="light"] {
  --bg-abyss: #e8dfd0;
  --bg-primary: #f7f2e7;
  --bg-secondary: #efe7d6;
  --bg-card: rgba(255, 252, 245, 0.92);
  --bg-card-solid: #fffcf5;
  --bg-elevated: #ece2ce;
  --bg-glass: rgba(247, 242, 231, 0.92);
  --border-gold: rgba(166, 124, 30, 0.24);
  --border-gold-strong: rgba(166, 124, 30, 0.58);
  --border-subtle: rgba(11, 41, 32, 0.08);

  --gold-light: #c89d3c;
  --gold: #9e7416;
  --gold-deep: #7a580c;
  --gold-gradient: linear-gradient(135deg, #d4af37 0%, #b08520 55%, #876310 100%);
  --gold-glow: rgba(166, 124, 30, 0.18);

  --accent-faint: rgba(166, 124, 30, 0.07);
  --accent-soft: rgba(166, 124, 30, 0.14);
  --accent-medium: rgba(166, 124, 30, 0.22);
  --badge-text: #7a580c;

  --emerald-bright: #059669;
  --emerald-soft: rgba(5, 150, 105, 0.13);

  --text-primary: #0b2920;
  --text-secondary: #486056;
  --text-muted: #73887e;
  --text-phonetic: #8c6512;
  --text-on-gold: #fffdf8;

  --hero-overlay-grad: linear-gradient(
    180deg,
    rgba(24, 18, 8, 0.45) 0%,
    rgba(19, 34, 26, 0.76) 55%,
    rgba(10, 24, 18, 0.94) 100%
  );

  --shadow-card: 0 8px 24px rgba(14, 42, 32, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  --shadow-Sheet: 0 -12px 40px rgba(14, 42, 32, 0.18);

  --tajwid-allah: #9e7416;
  --tajwid-ghunna: #059669;
  --tajwid-qalqalah: #0284c7;
  --tajwid-madd: #e11d48;
}

[data-theme="nuit-bleue"] {
  --bg-abyss: #040b16;
  --bg-primary: #081426;
  --bg-secondary: #0e203b;
  --bg-card: rgba(14, 31, 58, 0.88);
  --bg-card-solid: #0f213d;
  --bg-elevated: #162e52;
  --bg-glass: rgba(8, 20, 38, 0.91);
  --border-gold: rgba(226, 190, 98, 0.22);
  --border-gold-strong: rgba(226, 190, 98, 0.56);
  --border-subtle: rgba(255, 255, 255, 0.08);

  --gold-light: #f6e7bd;
  --gold: #e2be62;
  --gold-deep: #ab8425;
  --gold-gradient: linear-gradient(135deg, #f8eac4 0%, #e2be62 50%, #a47c1d 100%);
  --gold-glow: rgba(226, 190, 98, 0.26);

  --accent-faint: rgba(226, 190, 98, 0.08);
  --accent-soft: rgba(226, 190, 98, 0.15);
  --accent-medium: rgba(226, 190, 98, 0.24);
  --badge-text: #f6e7bd;

  --emerald-bright: #34d399;
  --emerald-soft: rgba(52, 211, 153, 0.16);

  --text-primary: #f4f7fc;
  --text-secondary: #9fb4d1;
  --text-muted: #6981a3;
  --text-phonetic: #e5ca87;
  --text-on-gold: #081426;

  --hero-overlay-grad: linear-gradient(
    180deg,
    rgba(6, 16, 34, 0.52) 0%,
    rgba(8, 22, 44, 0.78) 55%,
    rgba(5, 13, 28, 0.95) 100%
  );

  --shadow-card: 0 12px 34px rgba(0, 0, 0, 0.50), inset 0 1px 0 rgba(246, 231, 189, 0.08);
  --shadow-Sheet: 0 -14px 48px rgba(0, 0, 0, 0.72);

  --tajwid-allah: #f6e7bd;
  --tajwid-ghunna: #34d399;
  --tajwid-qalqalah: #60a5fa;
  --tajwid-madd: #fb7185;
}

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

html, body {
  height: 100%;
  background: var(--bg-abyss);
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow: hidden;
  user-select: none;
  -webkit-font-smoothing: antialiased;
}

/* Permettre la sélection sur les textes spirituels */
.selectable, .ayah-ar, .ayah-fr, .ayah-tr, .dua-ar, .dua-fr {
  user-select: text;
}

/* Fond ambiant sur grand écran PC */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 15%, var(--accent-soft), transparent 45%),
    radial-gradient(circle at 80% 85%, var(--emerald-soft), transparent 45%),
    var(--bg-abyss);
  z-index: 0;
  pointer-events: none;
}

/* Conteneur Principal Mobile Android (Plein écran sur mobile, écrin centré sur PC) */
.app-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  height: 100dvh;
  margin: 0 auto;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: max-width 0.35s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s ease;
}

.app-frame.wide-mode {
  max-width: 980px;
}

@media (min-width: 769px) {
  .app-frame {
    box-shadow: 0 0 0 1px var(--border-gold), 0 28px 90px rgba(0, 0, 0, 0.72);
  }
}

/* Motif géométrique islamique subtil en filigrane */
.geometric-watermark {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  pointer-events: none;
  background-image: radial-gradient(var(--gold) 1px, transparent 1px);
  background-size: 28px 28px;
  z-index: 0;
}

/* ==========================================================================
   EN-TÊTE SUPÉRIEUR (TOP BAR)
   ========================================================================== */
.top-bar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 10px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-gold);
  flex-shrink: 0;
}

.brand-cluster {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  object-fit: cover;
  border: 1px solid var(--border-gold-strong);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.brand-titles {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.05;
}

.brand-hijri {
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: 2px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border-gold);
  background: var(--bg-card);
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.16s ease, border-color 0.2s ease, background 0.2s ease;
}

.icon-btn:hover {
  border-color: var(--border-gold-strong);
  transform: translateY(-1px);
}

.icon-btn:active {
  transform: scale(0.93);
}

.icon-btn.gift-pulse {
  background: linear-gradient(135deg, var(--accent-medium), var(--accent-faint));
  border-color: var(--border-gold-strong);
  box-shadow: 0 0 14px var(--gold-glow);
}

@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }
}

/* ==========================================================================
   ZONE DE CONTENU SCROLLABLE & ONGLETS
   ========================================================================== */
.views-Viewport {
  position: relative;
  z-index: 2;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 14px 15px 128px;
  scroll-behavior: smooth;
}

.views-Viewport::-webkit-scrollbar {
  width: 5px;
}
.views-Viewport::-webkit-scrollbar-thumb {
  background: var(--border-gold);
  border-radius: 99px;
}

.tab-view {
  display: none;
  animation: viewFadeIn 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.tab-view.active {
  display: block;
}

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

/* ==========================================================================
   COMPOSANTS PARTAGÉS : CARTES, TITRES, BADGES, BOUTONS
   ========================================================================== */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 20px 2px 10px;
}

.section-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.32rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 7px;
}

.section-title .ornament {
  color: var(--gold);
  font-size: 1rem;
}

.section-link {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--gold);
  background: none;
  border: none;
  cursor: pointer;
}

.lux-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  margin-bottom: 12px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.lux-card.interactive {
  cursor: pointer;
}
.lux-card.interactive:hover {
  border-color: var(--border-gold-strong);
}
.lux-card.interactive:active {
  transform: scale(0.985);
}

.gold-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 12px;
  border: none;
  background: var(--gold-gradient);
  color: var(--text-on-gold);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
  box-shadow: 0 6px 20px var(--gold-glow);
  transition: transform 0.16s ease, filter 0.2s ease;
}

.gold-btn:hover { filter: brightness(1.06); }
.gold-btn:active { transform: scale(0.97); }

.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 11px;
  border: 1px solid var(--border-gold);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.18s ease;
}
.ghost-btn:hover, .ghost-btn.active {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--accent-soft);
}

.badge-gold {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 99px;
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  background: var(--accent-soft);
  color: var(--badge-text);
  border: 1px solid var(--border-gold);
}

/* Typographie Arabe Sacrée */
.font-arabic {
  font-family: 'Amiri Quran', 'Scheherazade New', 'Amiri', 'Traditional Arabic', serif;
  direction: rtl;
  line-height: 2.25;
}

/* ==========================================================================
   ONGLET 1 : ACCUEIL SANCTUAIRE
   ========================================================================== */
.greeting-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 2px 4px;
}

.greeting-text h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.15;
}

.greeting-text p {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Carte Héro Mosquée & Anneau Solaire Prochaine Prière */
.hero-sanctuary {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--border-gold-strong);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.52);
  margin-bottom: 14px;
  color: #faf6ee;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  filter: brightness(0.68) contrast(1.06);
  transform: scale(1.02);
}

.hero-overlay {
  position: relative;
  z-index: 2;
  background: var(--hero-overlay-grad);
  padding: 16px;
}

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

.location-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 99px;
  background: rgba(6, 26, 20, 0.75);
  border: 1px solid rgba(212, 175, 55, 0.38);
  color: #f5e6b3;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.adhan-mini-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 99px;
  background: rgba(212, 175, 55, 0.22);
  border: 1px solid rgba(212, 175, 55, 0.55);
  color: #f6e7b4;
  font-size: 0.73rem;
  font-weight: 700;
  cursor: pointer;
}

.hero-center {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 6px 0 14px;
}

.next-prayer-info .eyebrow {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #d8c38e;
  font-weight: 600;
}

.next-prayer-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.15rem;
  font-weight: 700;
  color: #faf6ee;
  line-height: 1.05;
  margin: 2px 0 4px;
}

.next-prayer-countdown {
  font-size: 1.15rem;
  font-weight: 700;
  color: #f5e6b3;
  font-variant-numeric: tabular-nums;
}

.solar-ring-wrap {
  position: relative;
  width: 92px;
  height: 92px;
  flex-shrink: 0;
}

.solar-ring-svg {
  width: 92px;
  height: 92px;
  transform: rotate(-90deg);
}

.solar-ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.14);
  stroke-width: 6;
}

.solar-ring-progress {
  fill: none;
  stroke: url(#goldGradSvg);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 238.76;
  stroke-dashoffset: 60;
  transition: stroke-dashoffset 0.8s ease;
}

.solar-ring-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.solar-ring-time {
  font-size: 1.02rem;
  font-weight: 800;
  color: #faf6ee;
  font-variant-numeric: tabular-nums;
}

.solar-ring-sub {
  font-size: 0.62rem;
  color: #d8c38e;
  margin-top: 1px;
}

/* Ruban des 5 Prières dans le Héro */
.hero-prayers-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid rgba(212, 175, 55, 0.22);
}

.mini-prayer-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 7px 4px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mini-prayer-pill.is-next {
  background: rgba(212, 175, 55, 0.22);
  border-color: #d4af37;
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.28);
}

.mini-prayer-pill.is-done {
  border-color: rgba(16, 185, 129, 0.55);
  background: rgba(16, 185, 129, 0.14);
}

.mini-prayer-pill .mp-name {
  font-size: 0.68rem;
  color: #d0ddd7;
  font-weight: 600;
}

.mini-prayer-pill .mp-time {
  font-size: 0.8rem;
  font-weight: 700;
  color: #faf6ee;
  margin: 2px 0;
  font-variant-numeric: tabular-nums;
}

.mini-prayer-pill .mp-check {
  font-size: 0.66rem;
  color: #34d399;
  height: 13px;
}

/* Puces Émotionnelles ("Comment se sent ton cœur ?") */
.emotions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.emotion-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 12px;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.81rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 0.18s ease;
}

.emotion-chip:hover {
  border-color: var(--gold);
  background: var(--bg-elevated);
  transform: translateY(-1px);
}

.emotion-chip .emo-icon {
  font-size: 1.15rem;
  flex-shrink: 0;
}

/* Carte Reprise Lecture & Jardin Spirituel */
.resume-quran-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(135deg, var(--accent-soft) 0%, var(--bg-card-solid) 75%);
  border: 1px solid var(--border-gold-strong);
}

.garden-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.garden-stat {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 10px 8px;
  text-align: center;
}

.garden-stat .gs-val {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.garden-stat .gs-lbl {
  font-size: 0.67rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Capsules Fraternelles Scellées */
.capsules-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  scrollbar-width: none;
}
.capsules-scroll::-webkit-scrollbar { display: none; }

.capsule-card {
  min-width: 168px;
  max-width: 168px;
  background: linear-gradient(160deg, var(--bg-elevated), var(--bg-card-solid));
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  padding: 13px;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  transition: transform 0.18s ease, border-color 0.2s ease;
}

.capsule-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.capsule-seal {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: var(--text-on-gold);
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px var(--gold-glow);
}

.capsule-title {
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
}

/* ==========================================================================
   ONGLET 2 : LE NOBLE CORAN (114 SOURATES HORS-LIGNE + AUDIO + TAJWID + HIFZ)
   ========================================================================== */
.quran-search-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.search-input-wrap {
  position: relative;
  flex: 1;
}

.search-input {
  width: 100%;
  padding: 11px 14px 11px 36px;
  border-radius: 13px;
  border: 1px solid var(--border-gold);
  background: var(--bg-card-solid);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.85rem;
  outline: none;
}

.search-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: 0.9rem;
  pointer-events: none;
}

.pills-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 8px;
  scrollbar-width: none;
}
.pills-row::-webkit-scrollbar { display: none; }

.filter-pill {
  padding: 7px 13px;
  border-radius: 99px;
  border: 1px solid var(--border-gold);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.18s ease;
}

.filter-pill.active {
  background: var(--gold-gradient);
  color: var(--text-on-gold);
  border-color: transparent;
  font-weight: 700;
}

/* Liste des 114 Sourates */
.surah-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.surah-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 15px;
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.15s ease;
}

.surah-row:hover {
  border-color: var(--gold);
}
.surah-row:active {
  transform: scale(0.988);
}

.surah-star-num {
  width: 38px;
  height: 38px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--gold);
  background: var(--accent-soft);
  border: 1px solid var(--border-gold);
  border-radius: 11px;
  transform: rotate(45deg);
  flex-shrink: 0;
}
.surah-star-num span {
  transform: rotate(-45deg);
}

.surah-meta {
  flex: 1;
  min-width: 0;
}

.surah-title-fr {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-primary);
}

.surah-sub {
  font-size: 0.73rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.surah-name-ar {
  font-family: 'Amiri', serif;
  font-size: 1.25rem;
  color: var(--gold);
  font-weight: 700;
}

/* Vue Lecture d'une Sourate */
.reader-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  background: var(--bg-card-solid);
  border: 1px solid var(--border-gold);
  border-radius: 15px;
  margin-bottom: 12px;
  position: sticky;
  top: -8px;
  z-index: 6;
}

.surah-ornate-banner {
  text-align: center;
  padding: 20px 16px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 0%, var(--accent-medium), transparent 70%),
    var(--bg-card-solid);
  border: 1px solid var(--border-gold-strong);
  margin-bottom: 14px;
  box-shadow: var(--shadow-card);
}

.surah-ornate-ar {
  font-family: 'Amiri', serif;
  font-size: 2rem;
  color: var(--gold);
  line-height: 1.3;
}

.surah-ornate-fr {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  margin-top: 2px;
}

.basmala-calligraphy {
  font-family: 'Amiri Quran', 'Amiri', serif;
  font-size: 1.65rem;
  color: var(--badge-text);
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border-gold);
}

/* Carte de Verset (Ayah) */
.ayah-card {
  padding: 16px 15px;
  border-radius: 17px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  margin-bottom: 10px;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.ayah-card.playing {
  border-color: var(--gold);
  background: linear-gradient(135deg, var(--accent-soft), var(--bg-card-solid));
  box-shadow: 0 0 22px var(--gold-glow);
}

.ayah-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.ayah-badge {
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--gold);
  padding: 3px 9px;
  border-radius: 8px;
  background: var(--accent-soft);
  border: 1px solid var(--border-gold);
}

.ayah-actions {
  display: flex;
  gap: 6px;
}

.ayah-mini-btn {
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 0.74rem;
  cursor: pointer;
}
.ayah-mini-btn:hover, .ayah-mini-btn.bookmarked {
  border-color: var(--gold);
  color: var(--gold);
}

.ayah-ar {
  font-family: 'Amiri Quran', 'Scheherazade New', 'Amiri', serif;
  font-size: var(--quran-ar-size, 28px);
  line-height: 2.3;
  direction: rtl;
  text-align: right;
  color: var(--text-primary);
  margin-bottom: 10px;
  transition: filter 0.3s ease;
}

/* Mode Mémorisation (Hifz Studio Flou Révélateur) */
.hifz-active .ayah-ar:not(.revealed),
.hifz-active .ayah-tr:not(.revealed) {
  filter: blur(8px);
  cursor: pointer;
}

.ayah-end-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 0.85em;
  margin-right: 6px;
}

.ayah-tr {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-phonetic);
  line-height: 1.55;
  margin-bottom: 8px;
}

.ayah-fr {
  font-size: 0.91rem;
  color: var(--text-primary);
  opacity: 0.94;
  line-height: 1.65;
}

.ayah-note-box {
  margin-top: 9px;
  padding: 8px 11px;
  border-radius: 10px;
  background: var(--accent-faint);
  border-left: 3px solid var(--gold);
  font-size: 0.78rem;
  color: var(--text-secondary);
}

/* Tajwid Coloré */
.tj-allah { color: var(--tajwid-allah); font-weight: 700; }
.tj-ghunna { color: var(--tajwid-ghunna); }
.tj-qalqalah { color: var(--tajwid-qalqalah); }
.tj-madd { color: var(--tajwid-madd); }

/* ==========================================================================
   ONGLET 3 : PRIÈRES, SALAT PAS-À-PAS & WOUDOU
   ========================================================================== */
.prayer-full-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  margin-bottom: 8px;
}

.prayer-full-row.next-highlight {
  border-color: var(--gold);
  background: linear-gradient(90deg, var(--accent-soft), var(--bg-secondary));
}

.salat-stepper-card {
  background: var(--bg-card-solid);
  border: 1px solid var(--border-gold-strong);
  border-radius: 20px;
  padding: 18px;
}

.step-progress-bar {
  height: 5px;
  background: var(--bg-secondary);
  border-radius: 99px;
  overflow: hidden;
  margin: 10px 0 14px;
}

.step-progress-fill {
  height: 100%;
  background: var(--gold-gradient);
  transition: width 0.3s ease;
}

/* ==========================================================================
   ONGLET 4 : DOUAS, CITADELLE SWIPABLE & TASBIH HAPTIQUE
   ========================================================================== */
.tasbih-sanctuary {
  text-align: center;
  padding: 22px 16px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 45%, var(--accent-soft), transparent 65%),
    var(--bg-card-solid);
  border: 1px solid var(--border-gold-strong);
  box-shadow: var(--shadow-card);
}

.tasbih-wheel-btn {
  position: relative;
  width: 210px;
  height: 210px;
  margin: 16px auto;
  border-radius: 50%;
  border: none;
  background: radial-gradient(circle at 35% 30%, var(--bg-elevated), var(--bg-primary));
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.48),
    inset 0 2px 6px rgba(255, 236, 179, 0.18),
    0 0 0 1px var(--border-gold);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.09s ease, box-shadow 0.2s ease;
}

.tasbih-wheel-btn:active,
.tasbih-wheel-btn.pulse {
  transform: scale(0.955);
  box-shadow: 0 0 32px var(--gold-glow), inset 0 2px 10px rgba(212, 175, 55, 0.35);
}

.tasbih-ring-svg {
  position: absolute;
  inset: -6px;
  width: 222px;
  height: 222px;
  transform: rotate(-90deg);
  pointer-events: none;
}

.tasbih-count-num {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 3.4rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.tasbih-count-target {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ==========================================================================
   ONGLET 5 : SAVOIR, LIVRES, 99 NOMS, QIBLA & ZAKAT
   ========================================================================== */
.library-hero {
  position: relative;
  height: 138px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-gold-strong);
  margin-bottom: 14px;
}

.library-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.58);
}

.library-hero-caption {
  position: absolute;
  inset: 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(180deg, transparent 10%, rgba(4, 19, 15, 0.92) 100%);
  color: #faf6ee;
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.book-cover-card {
  background: linear-gradient(155deg, var(--bg-elevated) 0%, var(--bg-card-solid) 100%);
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  padding: 14px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 136px;
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.2s ease;
}

.book-cover-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: var(--gold-gradient);
}

.book-cover-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

/* Boussole Qibla */
.qibla-stage {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--border-gold-strong);
  padding: 20px 16px;
  text-align: center;
  color: #faf6ee;
  background: #051611;
}

.qibla-stage-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
}

.qibla-compass-dial {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 16px auto;
  border-radius: 50%;
  border: 2px solid rgba(212, 175, 55, 0.45);
  background: radial-gradient(circle, rgba(6, 26, 20, 0.88) 0%, rgba(4, 15, 12, 0.96) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.65);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.qibla-compass-dial.aligned {
  border-color: #34d399;
  box-shadow: 0 0 36px rgba(52, 211, 153, 0.5), 0 0 18px rgba(212, 175, 55, 0.45);
}

.qibla-needle-wrap {
  position: absolute;
  inset: 0;
  transition: transform 0.22s ease-out;
}

/* Grille des 99 Noms d'Allah */
.asma-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.asma-tile {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 14px;
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.18s ease;
}
.asma-tile:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}
.asma-tile .asma-ar {
  font-family: 'Amiri', serif;
  font-size: 1.45rem;
  color: var(--gold);
  line-height: 1.35;
}
.asma-tile .asma-tr {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 3px;
}
.asma-tile .asma-fr {
  font-size: 0.66rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* ==========================================================================
   MINI-LECTEUR AUDIO FLOTTANT & BARRE DE NAVIGATION ANDROID (BOTTOM BAR)
   ========================================================================== */
.mini-audio-player {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 74px;
  z-index: 25;
  background: var(--bg-glass);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--border-gold-strong);
  border-radius: 16px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
}

.mini-audio-player.hidden {
  transform: translateY(130%);
  opacity: 0;
  pointer-events: none;
}

.bottom-nav {
  position: relative;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: var(--bg-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--border-gold);
  padding: 6px 6px calc(8px + env(safe-area-inset-bottom, 0px));
  flex-shrink: 0;
}

.nav-item {
  border: none;
  background: none;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 2px;
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.2s ease, transform 0.15s ease;
}

.nav-item svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.9;
}

.nav-item span {
  font-size: 0.67rem;
  font-weight: 600;
}

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

.nav-item.active svg {
  filter: drop-shadow(0 0 8px var(--gold-glow));
}

/* ==========================================================================
   MODALES, BOTTOM SHEETS & CÉRÉMONIE "COFFRE SCELLÉ D'OR" (CADEAU FRATERNEL)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(2, 10, 8, 0.76);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.bottom-sheet {
  width: 100%;
  max-width: 520px;
  max-height: 88dvh;
  background: var(--bg-card-solid);
  border-top: 1px solid var(--border-gold-strong);
  border-radius: 26px 26px 0 0;
  padding: 14px 18px calc(22px + env(safe-area-inset-bottom, 0px));
  box-shadow: var(--shadow-Sheet);
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal-backdrop.open .bottom-sheet {
  transform: translateY(0);
}

.sheet-handle {
  width: 42px;
  height: 4px;
  border-radius: 99px;
  background: var(--border-gold-strong);
  margin: 0 auto 14px;
}

/* Cérémonie d'ouverture Cadeau Fraternel */
.gift-ceremony {
  position: fixed;
  inset: 0;
  z-index: 120;
  background:
    radial-gradient(circle at 50% 35%, rgba(212, 175, 55, 0.22) 0%, transparent 55%),
    linear-gradient(180deg, #04130f 0%, #07221a 55%, #04130f 100%);
  color: #faf6ee;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.gift-ceremony.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.gift-arch-card {
  width: 100%;
  max-width: 430px;
  border-radius: 190px 190px 26px 26px;
  border: 1.5px solid rgba(212, 175, 55, 0.62);
  background: rgba(8, 31, 24, 0.88);
  backdrop-filter: blur(18px);
  padding: 40px 24px 28px;
  text-align: center;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.78), 0 0 50px rgba(212, 175, 55, 0.16);
}

.gift-medallion {
  width: 86px;
  height: 86px;
  margin: 0 auto 16px;
  border-radius: 24px;
  border: 1.5px solid #d4af37;
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.38);
  overflow: hidden;
  animation: floatSlow 4s ease-in-out infinite;
}

.gift-medallion img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.form-field {
  margin-bottom: 12px;
  text-align: left;
}
.form-field label {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 5px;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 11px;
  border: 1px solid var(--border-gold);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.86rem;
  outline: none;
}
.form-textarea {
  min-height: 76px;
  resize: vertical;
}

/* Toast Notification */
.nour-toast {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%) translateY(-80px);
  z-index: 200;
  background: var(--bg-card-solid);
  border: 1px solid var(--gold);
  color: var(--text-primary);
  padding: 10px 18px;
  border-radius: 99px;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.nour-toast.show {
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   GALERIE DES 5 THÈMES HAUTE-COUTURE & RUBAN 1-CLIC ACCUEIL
   ========================================================================== */
.theme-strip-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  margin-bottom: 4px;
  scrollbar-width: none;
}
.theme-strip-bar::-webkit-scrollbar {
  display: none;
}

.theme-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 99px;
  border: 1px solid var(--border-gold);
  background: var(--bg-card-solid);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.18s ease;
}

.theme-chip:hover {
  border-color: var(--gold);
  color: var(--text-primary);
}

.theme-chip.active {
  background: var(--gold-gradient);
  color: var(--text-on-gold);
  border-color: transparent;
  box-shadow: 0 4px 14px var(--gold-glow);
}

.theme-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1.5px solid rgba(128, 128, 128, 0.35);
}

.theme-swatch-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  margin-top: 10px;
}

.theme-swatch-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 15px;
  border: 1.5px solid var(--border-gold);
  background: var(--bg-secondary);
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: transform 0.16s ease, border-color 0.2s ease;
}

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

.theme-swatch-card.active {
  border-color: var(--gold);
  background: linear-gradient(90deg, var(--accent-soft), var(--bg-secondary));
  box-shadow: 0 0 0 1px var(--gold);
}

.swatch-preview-duo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  flex-shrink: 0;
  border: 1.5px solid rgba(128, 128, 128, 0.35);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}

/* ==========================================================================
   NOUR IA — COMPAGNON SPIRITUEL INFAILLIBLE (100 % SOURCÉ CORAN & SUNNA)
   ========================================================================== */
.icon-btn.ai-sparkle-btn {
  width: auto;
  padding: 0 10px;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 800;
  background: var(--gold-gradient);
  color: var(--text-on-gold);
  border: none;
  box-shadow: 0 4px 14px var(--gold-glow);
}

.nour-ai-home-card {
  background:
    radial-gradient(circle at 100% 0%, var(--accent-medium), transparent 62%),
    var(--bg-card-solid);
  border: 1.5px solid var(--border-gold-strong);
  border-radius: 20px;
  padding: 15px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-card);
}

.nour-ai-search-form {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.nour-ai-input {
  flex: 1;
  min-width: 0;
  padding: 11px 13px;
  border-radius: 12px;
  border: 1px solid var(--border-gold);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.84rem;
  outline: none;
}

.nour-ai-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.ai-answer-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  padding: 14px;
  margin-top: 12px;
}

.ai-summary-line {
  font-size: 0.85rem;
  line-height: 1.62;
  color: var(--text-primary);
  margin-bottom: 7px;
}
.ai-summary-line strong {
  color: var(--gold);
}

.ai-source-card {
  background: var(--bg-card-solid);
  border: 1px solid var(--border-gold);
  border-radius: 14px;
  padding: 12px;
  margin-top: 10px;
}

.daily-gem-card {
  background: linear-gradient(150deg, var(--bg-card-solid) 0%, var(--bg-secondary) 100%);
  border: 1px solid var(--border-gold-strong);
  border-radius: 19px;
  padding: 15px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-card);
}
