/* الأذكار والأدعية — "daily companion" identity: deep teal + gold, calligraphic.
   Own identity for this site only. No other network site uses this palette. */
:root{
  --teal:#0C3B36; --teal-dark:#072622; --teal-mid:#11524B; --teal-soft:#E4EFEA;
  --gold:#C9A227; --gold-light:#E3C766; --gold-soft:#F3EAD0;
  --ivory:#F7F3E8; --paper:#FFFDF6; --ink:#22302D; --muted:#5A6B66;
  --line:#D8CFAF; --radius:18px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0; background:var(--ivory); color:var(--ink);
  font-family:'Tajawal',system-ui,-apple-system,'Segoe UI',sans-serif;
  font-size:17px; line-height:1.9;
}
a{color:var(--teal-mid)}
h1,h2,h3,.ruqaa{font-family:'Aref Ruqaa','Amiri Quran',serif; font-weight:700; line-height:1.6; color:var(--teal-dark)}
h1{font-size:2.3rem} h2{font-size:1.7rem} h3{font-size:1.3rem}
.wrap{max-width:1020px; margin:0 auto; padding:0 18px}
.quran{font-family:'Amiri Quran',serif; font-size:1.45rem; line-height:2.1; color:var(--teal-dark)}
.lead{font-size:1.15rem; color:#33423e}
.muted{color:var(--muted); font-size:.95rem}
.gold-rule{border:0; height:2px; background:linear-gradient(90deg,transparent,var(--gold),transparent); margin:26px auto; max-width:320px}
.orn{text-align:center; color:var(--gold); font-size:1.5rem; letter-spacing:.5em; margin:6px 0}

/* ---------- header: one compact row, NOT sticky on mobile ---------- */
.site-header{background:var(--teal-dark); color:#F3EAD0; border-bottom:3px solid var(--gold)}
.header-inner{display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:60px}
.brand{display:flex; align-items:center; gap:10px; color:#F3EAD0; text-decoration:none}
.brand-mark{font-size:1.7rem; color:var(--gold-light); line-height:1}
.brand-text{font-family:'Aref Ruqaa',serif; font-size:1.45rem; line-height:1.2}
.brand-text small{display:block; font-family:'Tajawal',sans-serif; font-size:.72rem; color:#BFD8CF; letter-spacing:.05em}
.nav-toggle{display:none; background:none; border:1.5px solid var(--gold); border-radius:10px; width:44px; height:40px; cursor:pointer; padding:8px 9px}
.nav-toggle span{display:block; height:2px; background:var(--gold-light); margin:5px 0; border-radius:2px}
.main-nav{display:flex; flex-wrap:wrap; gap:2px}
.main-nav a{color:#DCE9E2; text-decoration:none; padding:8px 11px; border-radius:10px; font-size:.98rem}
.main-nav a:hover{background:rgba(201,162,39,.18); color:#fff}
.main-nav a.active{background:var(--gold); color:var(--teal-dark); font-weight:700}

/* ---------- hero: arched panel + geometric star pattern ---------- */
.hero{
  background:
    linear-gradient(160deg, rgba(7,38,34,.94), rgba(12,59,54,.88)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23C9A227' stroke-opacity='.28'%3E%3Cpath d='M36 6 L43 29 L66 36 L43 43 L36 66 L29 43 L6 36 L29 29 Z'/%3E%3Ccircle cx='36' cy='36' r='7'/%3E%3C/g%3E%3C/svg%3E");
  background-size:auto,72px 72px; color:#F7F3E8; padding:44px 0 40px; text-align:center;
}
.hero-arch{border:1.5px solid var(--gold); border-radius:190px 190px 22px 22px; padding:44px 26px 30px; max-width:760px; margin:0 auto; background:rgba(7,38,34,.45)}
.hero h1{color:#F7F3E8; font-size:2.6rem; margin:.2em 0 .1em}
.hero .bismillah{font-family:'Amiri Quran',serif; font-size:1.6rem; color:var(--gold-light)}
.hero p{color:#DCE9E2; max-width:640px; margin:10px auto}
.hero .btn{display:inline-block; margin-top:14px}
.btn{display:inline-block; background:var(--gold); color:var(--teal-dark); font-weight:700; text-decoration:none; padding:12px 26px; border-radius:999px; border:2px solid var(--gold)}
.btn:hover{background:var(--gold-light)}
.btn-ghost{display:inline-block; background:transparent; color:#F3EAD0; border:2px solid var(--gold-light); text-decoration:none; padding:10px 22px; border-radius:999px; font-weight:700}
.btn-ghost:hover{background:rgba(201,162,39,.15)}
.section{padding:30px 0 8px}
.section>h2{text-align:center}
.section>h2::after{content:""; display:block; width:90px; height:3px; background:var(--gold); margin:10px auto 0; border-radius:3px}
.sub{text-align:center; color:var(--muted); max-width:680px; margin:8px auto 0}

/* ---------- time-of-day widget ---------- */
.time-widget{background:var(--teal); color:#EDF3EF; border-radius:var(--radius); padding:24px; border:2px solid var(--gold); margin:26px 0}
.time-widget h2{color:var(--gold-light); text-align:center; margin-top:0}
.time-now{text-align:center; font-size:1.15rem}
.time-now strong{color:var(--gold-light)}
.periods{display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-top:18px}
.period{background:rgba(255,255,255,.07); border:1.5px solid rgba(227,199,102,.35); border-radius:14px; padding:16px; text-align:center; transition:.2s}
.period h3{color:#F3EAD0; margin:0 0 4px}
.period p{margin:0; font-size:.92rem; color:#C9D8D0}
.period a{color:var(--gold-light); font-weight:700}
.period.active{background:var(--gold); border-color:var(--gold); transform:translateY(-3px)}
.period.active h3{color:var(--teal-dark)}
.period.active p{color:#3d4a45}
.period.active a{color:var(--teal-dark)}
.period .clock{font-size:1.7rem}

/* ---------- tasbih counter ---------- */
.tasbih{background:var(--paper); border:2px solid var(--gold); border-radius:var(--radius); padding:26px; text-align:center; margin:26px 0}
.tasbih-ring{width:190px; height:190px; border-radius:50%; margin:10px auto; display:flex; flex-direction:column; align-items:center; justify-content:center; background:conic-gradient(var(--gold) var(--fill,0%), var(--teal-soft) 0); position:relative; cursor:pointer; border:none; font-family:inherit}
.tasbih-ring::before{content:""; position:absolute; inset:12px; background:var(--teal-dark); border-radius:50%}
.tasbih-ring .count{position:relative; color:var(--gold-light); font-size:2.6rem; font-weight:800; line-height:1}
.tasbih-ring .tap{position:relative; color:#BFD8CF; font-size:.95rem}
.tasbih-goals{display:flex; gap:8px; justify-content:center; flex-wrap:wrap; margin:14px 0}
.goal-btn{border:1.5px solid var(--teal); background:var(--paper); color:var(--teal); border-radius:999px; padding:7px 16px; cursor:pointer; font-family:inherit; font-weight:700}
.goal-btn.sel{background:var(--teal); color:#fff}
.tasbih-today{color:var(--muted)}
.linklike{background:none; border:none; color:var(--teal-mid); cursor:pointer; text-decoration:underline; font-family:inherit; font-size:.95rem}

/* ---------- dhikr cards ---------- */
.dhikr{background:var(--paper); border:1px solid var(--line); border-right:5px solid var(--gold); border-radius:14px; padding:20px 22px; margin:18px 0; box-shadow:0 2px 10px rgba(12,59,54,.06)}
.dhikr h3{margin:0 0 6px; display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap}
.dhikr .dhikr-text{font-family:'Amiri Quran',serif; font-size:1.5rem; line-height:2.1; color:var(--teal-dark); text-align:center; padding:10px 4px}
.dhikr .meaning{color:#33423e}
.dhikr .source{font-size:.9rem; color:var(--muted); border-top:1px dashed var(--line); padding-top:10px; margin-top:10px}
.dhikr .grade-note{background:#FBF6E3; border:1px solid #E4D49A; border-radius:10px; padding:10px 14px; font-size:.93rem; margin-top:10px}
.rep-chip{background:var(--teal-soft); color:var(--teal-dark); border-radius:999px; padding:3px 12px; font-size:.85rem; font-weight:700; white-space:nowrap}
.rep-btn{background:var(--teal); color:#fff; border:none; border-radius:999px; padding:8px 18px; cursor:pointer; font-family:inherit; font-weight:700; margin-top:8px}
.rep-btn:hover{background:var(--teal-mid)}
.rep-btn.done{background:var(--gold); color:var(--teal-dark)}
.rep-dots{letter-spacing:.25em; color:var(--gold); font-size:1.1rem}
.dhikr.done{border-right-color:var(--teal); background:#F2F7F2}
.dhikr details{margin-top:10px}
.dhikr summary{cursor:pointer; color:var(--teal-mid); font-size:.93rem}
.dhikr details p{font-size:.92rem; color:#4a5a54; line-height:1.9}

/* ---------- grids & cards ---------- */
.grid2{display:grid; grid-template-columns:1fr 1fr; gap:16px}
.grid3{display:grid; grid-template-columns:repeat(3,1fr); gap:16px}
.card{background:var(--paper); border:1px solid var(--line); border-radius:14px; padding:20px}
.card h3{margin-top:0}
.card a{font-weight:700}
.kicker{color:#8a6d1a; font-weight:700; font-size:.85rem; letter-spacing:.03em}
.steps{counter-reset:step}
.step-card{position:relative; padding-right:56px}
.step-num{position:absolute; top:16px; right:16px; width:34px; height:34px; border-radius:50%; background:var(--teal); color:var(--gold-light); display:flex; align-items:center; justify-content:center; font-weight:800}
.callout{background:var(--teal-soft); border:1px solid #BFD8CF; border-right:5px solid var(--teal); border-radius:12px; padding:16px 20px; margin:20px 0}
.callout h3{margin-top:0}
.verse-box{background:var(--paper); border:1.5px solid var(--gold); border-radius:14px; padding:20px 24px; text-align:center; margin:18px 0}
.verse-box .ref{color:var(--muted); font-size:.9rem}

/* ---------- wird checklist ---------- */
.wird-list{list-style:none; padding:0}
.wird-list li{background:var(--paper); border:1px solid var(--line); border-radius:12px; padding:12px 16px; margin:10px 0; display:flex; gap:12px; align-items:flex-start; cursor:pointer}
.wird-list li input{width:22px; height:22px; margin-top:5px; accent-color:var(--teal); flex-shrink:0}
.wird-list li.done{background:#EFF6EE; text-decoration:none}
.wird-list li.done .wird-title{color:var(--teal)}
.wird-title{font-weight:700}
.progress-bar{height:14px; background:var(--teal-soft); border-radius:999px; overflow:hidden; margin:12px 0}
.progress-fill{height:100%; background:linear-gradient(90deg,var(--teal),var(--gold)); width:0%; transition:width .4s}

/* ---------- asma browser ---------- */
.asma-search{width:100%; padding:13px 18px; border:2px solid var(--gold); border-radius:999px; font-family:inherit; font-size:1.05rem; background:var(--paper); margin:16px 0}
.asma-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:12px}
.asma-card{background:var(--paper); border:1px solid var(--line); border-radius:14px; padding:16px; text-align:center}
.asma-card .name{font-family:'Amiri Quran',serif; font-size:1.5rem; color:var(--teal-dark)}
.asma-card .mean{font-size:.93rem; color:#4a5a54}
.asma-card .num{font-size:.8rem; color:var(--gold); font-weight:700}

/* ---------- faq ---------- */
.faq details{background:var(--paper); border:1px solid var(--line); border-radius:12px; padding:14px 18px; margin:12px 0}
.faq summary{cursor:pointer; font-weight:700; color:var(--teal-dark); font-size:1.08rem}
.faq details p{margin:10px 0 4px}

/* ---------- related / footer ---------- */
.related{background:var(--teal-soft); border-radius:var(--radius); padding:22px; margin:34px 0 10px}
.related h2{font-size:1.3rem}
.related ul{margin:0; padding-right:20px}
.site-footer{background:var(--teal-dark); color:#9FB8AE; text-align:center; padding:26px 16px; margin-top:40px; border-top:3px solid var(--gold); font-size:.92rem}
.site-footer a{color:#D8CFAF; text-decoration:none}
.site-footer .credit{font-size:.85rem; letter-spacing:.02em}
.breadcrumb{font-size:.9rem; color:var(--muted); margin:18px 0 0}
.breadcrumb a{color:var(--teal-mid)}
.page-head{text-align:center; padding:26px 0 6px}
.page-head h1{margin:.1em 0}
.page-head .lead{max-width:720px; margin:0 auto}

@media (max-width:900px){
  .grid3{grid-template-columns:1fr 1fr}
  .asma-grid{grid-template-columns:1fr 1fr}
}
@media (max-width:768px){
  body{font-size:16px}
  h1{font-size:1.9rem} .hero h1{font-size:2rem}
  .hero-arch{border-radius:110px 110px 18px 18px; padding:30px 16px 22px}
  .grid2,.grid3{grid-template-columns:1fr}
  .periods{grid-template-columns:1fr}
  .nav-toggle{display:block}
  .site-header{position:static}
  .main-nav{display:none; flex-direction:column; width:100%; padding:0 0 12px}
  .main-nav.open{display:flex}
  .main-nav a{padding:11px 12px; border-top:1px solid rgba(255,255,255,.08)}
  .header-inner{flex-wrap:wrap}
  .asma-grid{grid-template-columns:1fr 1fr}
  .dhikr .dhikr-text{font-size:1.3rem}
}
