:root {
  /* Palette chaleureuse & accueillante (clair) */
  --bg:        #faf5ec;   /* crème/sable */
  --bg-2:      #f3ead8;
  --card:      #fffdf8;   /* blanc cassé chaud */
  --green:     #2f7d5b;
  --green-d:   #1f5b41;
  --green-l:   #e7f1ea;
  --gold:      #c79a3b;
  --gold-d:    #a87d22;
  --gold-l:    #f7eccc;
  --ink:       #2b2a24;
  --muted:     #8c8472;
  --line:      #ece1cc;
  --warn-bg:   #fdf3e0;
  --warn-line: #e7c884;
  --ok-bg:     #e7f1ea;
  --radius:    18px;
  --radius-s:  12px;
  --shadow:    0 2px 4px rgba(99,76,28,.05), 0 10px 30px rgba(99,76,28,.07);
  --shadow-sm: 0 1px 2px rgba(99,76,28,.06), 0 4px 14px rgba(99,76,28,.05);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(620px 420px at 100% -40px, rgba(199,154,59,.12), transparent 60%),
    radial-gradient(520px 420px at 0 30%, rgba(47,125,91,.07), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  background-attachment: fixed;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Motif géométrique islamique discret en fond */
.bg-pattern {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='%23c79a3b' stroke-opacity='0.10' stroke-width='1'%3E%3Cpath d='M30 2l8 14 16 0-8 14 8 14-16 0-8 14-8-14-16 0 8-14-8-14 16 0z'/%3E%3Ccircle cx='30' cy='30' r='8'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 60px 60px;
}

.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 18px; position: relative; z-index: 1; }

/* ---------- Animations d'apparition ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s cubic-bezier(.22,.61,.36,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- En-tête ---------- */
.topbar {
  background:
    radial-gradient(900px 260px at 50% -80px, rgba(255,221,140,.30), transparent 70%),
    radial-gradient(700px 300px at 85% 0%, rgba(95,178,140,.35), transparent 60%),
    linear-gradient(160deg, #3c8c66 0%, #2a7150 55%, #235f44 100%);
  color: #fff;
  padding: 24px 0 92px;          /* espace en bas pour la silhouette */
  position: relative;
  z-index: 1;
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* Ciel étoilé + croissant */
.hero-sky { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero-sky::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(2px 2px at 12% 26%, rgba(255,233,168,.9), transparent 60%),
    radial-gradient(1.6px 1.6px at 22% 60%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(2px 2px at 68% 22%, rgba(255,233,168,.8), transparent 60%),
    radial-gradient(1.5px 1.5px at 88% 48%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(1.6px 1.6px at 45% 18%, rgba(255,255,255,.6), transparent 60%),
    radial-gradient(2px 2px at 78% 66%, rgba(255,233,168,.7), transparent 60%);
  animation: twinkle 4s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .55; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hero-sky::before { animation: none; } }
.crescent { position: absolute; top: 16px; right: 22px; filter: drop-shadow(0 0 10px rgba(255,233,168,.6)); }

/* Silhouette de mosquée en bas de l'en-tête */
.hero-mosque { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 0; line-height: 0; opacity: .9; }
.hero-mosque svg { width: 100%; height: 110px; display: block; filter: drop-shadow(0 -2px 6px rgba(0,0,0,.12)); }
.topbar .wrap { position: relative; z-index: 2; }

.bismillah { text-align: center; margin-bottom: 14px; }
.bismillah .ar {
  display: block;
  font-family: "Amiri", serif;
  font-size: 1.5rem;
  color: #ffe9a8;
  letter-spacing: .5px;
  text-shadow: 0 1px 8px rgba(0,0,0,.18);
}
.bismillah .fr { display: block; font-size: .74rem; opacity: .82; margin-top: 2px; font-style: italic; }

.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.brand-mark { color: #ffe9a8; display: inline-flex; filter: drop-shadow(0 2px 6px rgba(0,0,0,.2)); animation: spin-slow 40s linear infinite; }
@keyframes spin-slow { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .brand-mark { animation: none; } }
.brand h1 { margin: 0; font-size: 1.55rem; font-weight: 800; letter-spacing: .3px; }
.tagline { margin: 2px 0 0; font-size: .82rem; opacity: .9; font-weight: 500; }

/* Nisab */
.nisab-banner {
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: var(--radius);
  padding: 12px 16px;
  backdrop-filter: blur(4px);
}
.nisab-line { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.nisab-label { font-size: .85rem; opacity: .92; font-weight: 600; }
.nisab-value {
  font-size: 1.5rem; font-weight: 800; color: #ffe9a8;
  background: linear-gradient(90deg,#ffe9a8,#fff6dc,#ffe9a8);
  background-size: 200% auto; -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 5s linear infinite;
}
@keyframes shimmer { to { background-position: 200% center; } }
@media (prefers-reduced-motion: reduce) { .nisab-value { animation: none; } }
.nisab-sub { font-size: .8rem; opacity: .9; margin-top: 5px; }

.carat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.2);
}
.carat-grid:empty { display: none; }
.carat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: .78rem;
}
.carat-label { font-weight: 700; opacity: .9; }
.carat-price { color: #ffe9a8; font-weight: 700; }

/* ---------- Confiance ---------- */
.trust {
  display: flex; align-items: center; gap: 10px;
  background: var(--ok-bg);
  border: 1px solid #bfe0cd;
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: .88rem;
  margin: 20px 0;
  box-shadow: var(--shadow-sm);
}
.trust-ico { font-size: 1.1rem; }

/* ---------- Intro ---------- */
.intro {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; margin-bottom: 18px; box-shadow: var(--shadow-sm);
}
.intro-title { margin: 0 0 8px; font-size: 1.08rem; display: inline-flex; align-items: center; gap: 8px; }
.intro p { margin: 0 0 12px; font-size: .9rem; }
.intro-steps { display: flex; flex-wrap: wrap; gap: 8px; }
.intro-steps span {
  flex: 1 1 auto; text-align: center; font-size: .82rem; font-weight: 600; color: var(--green-d);
  background: var(--green-l); border: 1px solid #cfe6d8; border-radius: 999px; padding: 7px 12px;
}
.intro-steps b { color: var(--gold-d); }

/* ---------- Toggle Calendrier ---------- */
.cal-choice {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 18px; margin-bottom: 4px; box-shadow: var(--shadow-sm);
}
.cal-label {
  display: block; font-weight: 800; font-size: .92rem; color: var(--green-d);
  margin-bottom: 10px;
}
.cal-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cal-btn {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 12px 10px; border: 2px solid var(--line); border-radius: var(--radius-s);
  background: var(--bg); font-family: inherit; cursor: pointer;
  transition: border-color .2s, background .2s, transform .15s;
}
.cal-btn:hover { transform: translateY(-2px); border-color: var(--green); }
.cal-btn.active {
  border-color: var(--green); background: var(--green-l);
  box-shadow: 0 0 0 3px rgba(47,125,91,.14);
}
.cal-ico { font-size: 1.3rem; }
.cal-name { font-weight: 800; font-size: .95rem; color: var(--green-d); }
.cal-rate { font-size: .8rem; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 5px; }
.cal-badge {
  background: var(--green); color: #fff; font-size: .68rem; font-weight: 700;
  padding: 2px 7px; border-radius: 999px;
}

/* ---------- Actions (Calculer / Recommencer) ---------- */
.actions { display: flex; gap: 12px; margin: 22px 0 4px; }
.btn-calc {
  flex: 1; padding: 16px 18px; border: none; border-radius: var(--radius);
  font-family: inherit; font-size: 1.05rem; font-weight: 800; color: #fff; cursor: pointer;
  background: radial-gradient(500px 80px at 50% 0, rgba(199,154,59,.4), transparent 70%), linear-gradient(135deg, var(--green), var(--green-d));
  box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}
.btn-calc:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn-calc:active { transform: translateY(0); }
.btn-reset {
  flex: none; padding: 16px 18px; border: 1.5px solid var(--line); border-radius: var(--radius);
  font-family: inherit; font-size: .95rem; font-weight: 700; color: var(--muted); cursor: pointer;
  background: var(--card); transition: background .15s ease, color .15s ease, border-color .15s;
}
.btn-reset:hover { background: var(--bg-2); color: var(--ink); border-color: var(--gold); }

/* ---------- Aide onglets (dépliable au clic) ---------- */
.tabs-help { margin-bottom: 12px; }
.tabs-help-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 15px; font-family: inherit; font-size: .86rem; font-weight: 700;
  color: var(--green-d); cursor: pointer; box-shadow: var(--shadow-sm);
  transition: background .15s ease, transform .15s ease;
}
.tabs-help-btn:hover { background: var(--green-l); transform: translateY(-1px); }
.tabs-help-btn .hi {
  display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px;
  border-radius: 50%; background: linear-gradient(135deg, var(--gold), var(--gold-d)); color: #fff; font-size: .72rem;
}
.tabs-help-btn .chev { font-size: .7rem; transition: transform .25s ease; }
.tabs-help-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }

.tabs-help-panel { max-height: 0; overflow: hidden; opacity: 0; transition: max-height .35s ease, opacity .3s ease, margin .35s ease; }
.tabs-help-panel.open { max-height: 640px; opacity: 1; margin-top: 10px; }
.thp-inner { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow-sm); }
.thp-row { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; font-size: .88rem; }
.thp-row + .thp-row { border-top: 1px dashed var(--line); }
.thp-ico { font-size: 1.45rem; flex: none; line-height: 1.2; }
.thp-row em { display: block; color: var(--muted); font-style: italic; margin-top: 5px; font-size: .82rem; }
.thp-note { font-size: .83rem; color: var(--green-d); background: var(--green-l); border: 1px solid #cfe6d8; border-radius: var(--radius-s); padding: 9px 11px; margin: 10px 0 0; }

/* ---------- Onglets ---------- */
.tabs { display: flex; gap: 10px; margin-bottom: 18px; }
.tab {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 13px 10px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius);
  font-family: inherit; font-size: .92rem; font-weight: 700; color: var(--muted);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  box-shadow: var(--shadow-sm);
}
.tab:hover { transform: translateY(-2px); }
.tab.active { color: #fff; background: linear-gradient(135deg, var(--green), var(--green-d)); border-color: var(--green-d); box-shadow: var(--shadow); }
.tab-ico { font-size: 1rem; }

/* ---------- Panneaux / fieldsets ---------- */
.panel { display: flex; flex-direction: column; gap: 16px; }
fieldset {
  border: 1px solid #f1e8d6;
  border-radius: 22px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90' viewBox='0 0 90 90'%3E%3Cpath d='M45 6l6 12 12-6-6 12 12 6-12 6 6 12-12-6-6 12-6-12-12 6 6-12-12-6 12-6-6-12 12 6z' fill='none' stroke='%23c79a3b' stroke-opacity='0.08' stroke-width='2'/%3E%3C/svg%3E") right -16px top -16px no-repeat,
    var(--card);
  padding: 16px 18px 18px;
  margin: 0;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s ease, transform .25s ease;
}
fieldset:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
fieldset.deductible { border-left: 4px solid var(--warn-line); }
legend {
  font-weight: 800; padding: 2px 12px; font-size: 1.02rem; display: inline-flex; align-items: center; gap: 7px;
  color: var(--green-d); background: var(--green-l); border: 1px solid #d4e8dd; border-radius: 999px;
}
.leg-ico { font-size: 1.05rem; }
.sub-legend { font-weight: 700; font-size: .9rem; margin: 14px 0 7px; color: var(--green-d); }
label { display: block; font-size: .9rem; margin-top: 11px; color: var(--ink); font-weight: 500; }

/* Disposition en 2 colonnes des champs */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; }
.grid-2 > label { margin-top: 10px; }

input[type=number], input[type=date], select {
  width: 100%; margin-top: 5px; padding: 11px 13px;
  border: 1px solid var(--line); border-radius: var(--radius-s);
  font-family: inherit; font-size: 1rem; background: #fff; color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(47,125,91,.16); }

/* ---------- Lots or/argent ---------- */
.lots { display: flex; flex-direction: column; gap: 9px; }
.lot {
  display: grid; grid-template-columns: 1fr 92px auto auto; gap: 9px; align-items: center;
  padding: 9px; border-radius: var(--radius-s); background: var(--gold-l);
  border: 1px solid #ecdcb0;
  animation: pop .3s ease;
}
@keyframes pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.lot input, .lot select { margin-top: 0; }
.lot-eq { font-size: .82rem; grid-column: 1 / -1; color: var(--gold-d); font-weight: 600; }
.lot-fixed { font-size: .85rem; text-align: center; color: var(--muted); }
.lot-del { background: none; border: none; color: var(--muted); font-size: 1rem; cursor: pointer; padding: 6px; border-radius: 8px; transition: background .15s, color .15s; }
.lot-del:hover { background: #f3d9d9; color: #b3261e; }

.add-lot {
  margin-top: 10px; background: none; border: 1.5px dashed var(--green);
  color: var(--green-d); border-radius: var(--radius-s); padding: 9px 14px;
  font-family: inherit; font-size: .88rem; font-weight: 700; cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.add-lot:hover { background: var(--green-l); transform: translateY(-1px); }

/* ---------- Mode avancé ---------- */
.advanced { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: 4px 18px; box-shadow: var(--shadow-sm); }
.advanced summary { cursor: pointer; font-weight: 700; padding: 13px 0; color: var(--green-d); list-style: none; }
.advanced summary::-webkit-details-marker { display: none; }
.advanced[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.advanced-body { padding-bottom: 14px; display: flex; flex-direction: column; gap: 8px; }
.adv-row.checkbox { display: flex; align-items: center; gap: 9px; }
.adv-row.checkbox input { width: auto; margin-top: 0; }
.solaire-note { background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: var(--radius-s); padding: 9px 12px; font-size: .85rem; margin-top: 6px; }
.pro-intro { font-size: .9rem; background: var(--green-l); padding: 13px 16px; border-radius: var(--radius); border: 1px solid #cfe6d8; }

/* ---------- Résultat ---------- */
.result { margin: 22px 0; }
.res-grid { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; box-shadow: var(--shadow); }
.res-grid > div { display: flex; justify-content: space-between; padding: 8px 0; font-size: .94rem; }
.res-grid .res-net { border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); font-weight: 800; color: var(--green-d); }
.res-banner { margin-top: 14px; padding: 20px; border-radius: var(--radius); text-align: center; animation: rise .45s cubic-bezier(.22,.61,.36,1); }
@keyframes rise { from { opacity: 0; transform: translateY(10px) scale(.99); } to { opacity: 1; transform: none; } }
.res-banner.ok {
  background: radial-gradient(600px 120px at 50% 0, rgba(199,154,59,.35), transparent 70%), linear-gradient(135deg, var(--green), var(--green-d));
  color: #fff; box-shadow: var(--shadow);
}
.res-zakat-label { font-size: .92rem; opacity: .92; font-weight: 600; }
.res-zakat { font-size: 2.3rem; font-weight: 800; letter-spacing: .5px; animation: zoomin .5s cubic-bezier(.22,.61,.36,1); }
@keyframes zoomin { from { transform: scale(.8); opacity: 0; } to { transform: none; opacity: 1; } }
.res-banner.info-banner { background: var(--green-l); border: 1px solid #cfe6d8; }
.res-banner.warn { background: var(--warn-bg); border: 1px solid var(--warn-line); }
.res-banner.muted-banner { background: var(--card); border: 1px dashed var(--line); color: var(--muted); }
.res-note { font-size: .82rem; color: var(--muted); margin-top: 9px; text-align: center; }
@media (prefers-reduced-motion: reduce) { .res-banner, .res-zakat { animation: none; } }

/* ---------- Sections info ---------- */
.anniv, .asnaf, .fiqh, .spiritual {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; margin: 18px 0; box-shadow: var(--shadow-sm);
}
.section-title, .anniv h2 { font-size: 1.12rem; margin: 0 0 10px; display: inline-flex; align-items: center; gap: 8px; }
.h-ico { font-size: 1.1rem; }
.muted { color: var(--muted); font-size: .88rem; }
.hijri-out { margin-top: 12px; font-size: .9rem; background: var(--gold-l); border: 1px solid #ecdcb0; border-radius: var(--radius-s); padding: 10px 12px; }
.hijri-out:empty { display: none; }

/* ---------- Cartes fiqh ---------- */
.fiqh-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 6px; }
.fiqh-card {
  background: linear-gradient(180deg, #fff, var(--bg)); border: 1px solid var(--line);
  border-radius: var(--radius-s); padding: 14px; transition: transform .2s ease, box-shadow .2s ease;
}
.fiqh-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.fiqh-ico { font-size: 1.6rem; margin-bottom: 4px; }
.fiqh-card h3 { margin: 4px 0 4px; font-size: .98rem; color: var(--green-d); }
.fiqh-card p { margin: 0; font-size: .84rem; color: var(--ink); }

/* ---------- Verset / asnaf ---------- */
.verse {
  margin: 0 0 16px; padding: 18px; border-radius: var(--radius-s);
  background: linear-gradient(135deg, var(--green-l), #fff);
  border: 1px solid #cfe6d8; position: relative;
}
.verse::before, .verse::after { content: "﴿"; color: var(--gold); font-size: 1.4rem; position: absolute; top: 10px; }
.verse::before { right: 12px; } .verse::after { content: "﴾"; left: 12px; }
.verse-ar {
  font-family: "Amiri", serif; font-size: 1.5rem; line-height: 2.1; text-align: center;
  color: var(--green-d); margin: 6px 0 12px;
}
.verse-fr { font-size: .9rem; color: var(--ink); text-align: center; font-style: italic; }
.verse-fr cite { display: block; margin-top: 8px; font-style: normal; font-weight: 700; color: var(--gold-d); font-size: .82rem; }

.asnaf-list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.asnaf-list li { display: flex; align-items: center; gap: 10px; font-size: .9rem; padding: 8px 10px; background: var(--bg); border-radius: var(--radius-s); border: 1px solid var(--line); }
.asnaf-n {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-d)); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: .82rem;
}
.asnaf-list em { color: var(--muted); font-size: .82rem; }

/* ---------- Rappel spirituel ---------- */
.spiritual {
  background:
    radial-gradient(800px 200px at 50% -60px, rgba(199,154,59,.18), transparent 70%),
    linear-gradient(135deg, var(--green-d), var(--green));
  color: #fff; text-align: center; border: none;
}
.spiritual-inner { position: relative; }
.spiritual-mark { font-size: 1.6rem; color: #ffe9a8; display: block; margin-bottom: 8px; }
.spiritual-ar { font-family: "Amiri", serif; font-size: 1.5rem; line-height: 2; color: #ffe9a8; margin: 0 0 10px; }
.spiritual-fr { font-size: .92rem; font-style: italic; margin: 0 0 12px; opacity: .95; }
.spiritual-fr cite, .spiritual-hadith cite { font-style: normal; font-weight: 700; opacity: .85; font-size: .8rem; }
.spiritual-hadith { font-size: .86rem; opacity: .92; margin: 0; border-top: 1px solid rgba(255,255,255,.2); padding-top: 12px; }

/* ---------- Ornement décoratif ---------- */
.ornament { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--gold); margin: 26px 0 22px; }
.ornament span { height: 1.5px; width: 72px; max-width: 22vw; background: linear-gradient(90deg, transparent, var(--gold)); border-radius: 2px; }
.ornament span:last-child { background: linear-gradient(90deg, var(--gold), transparent); }
.ornament svg { flex: none; filter: drop-shadow(0 1px 2px rgba(167,125,34,.3)); }

/* ---------- Disclaimer ---------- */
.disclaimer { background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: var(--radius); padding: 15px 18px; margin: 18px 0 36px; font-size: .85rem; }

/* ---------- Infobulles ---------- */
.info {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-d)); color: #fff;
  font-size: .72rem; font-weight: 700; cursor: help; position: relative; vertical-align: middle;
}
.info:hover::after, .info:focus::after {
  content: attr(data-tip); position: absolute; bottom: 135%; left: 50%; transform: translateX(-50%);
  width: 244px; background: #2b2a24; color: #fff; padding: 9px 11px; border-radius: 10px;
  font-size: .78rem; font-weight: 400; line-height: 1.45; z-index: 20; box-shadow: var(--shadow);
}
.info:hover::before, .info:focus::before {
  content: ''; position: absolute; bottom: 123%; left: 50%; transform: translateX(-50%);
  border: 6px solid transparent; border-top-color: #2b2a24; z-index: 20;
}

/* ---------- Responsive ---------- */
@media (max-width: 520px) {
  .grid-2 { grid-template-columns: 1fr; }
  .lot { grid-template-columns: 1fr 80px auto; }
  .info:hover::after, .info:focus::after { width: 200px; }
  .brand h1 { font-size: 1.35rem; }
  .bismillah .ar { font-size: 1.3rem; }
  .fiqh-grid { grid-template-columns: 1fr; }
  .asnaf-list { grid-template-columns: 1fr; }
  .verse-ar, .spiritual-ar { font-size: 1.3rem; }
}
