/* =====================================================================
   Ad-Deen website — same warm language as the app.
   Day: paper + amber + brown ink. Night: espresso + amber + cream ink.
   ===================================================================== */
:root {
  --bg: #FBF6EC;
  --bg-top: #FCEBD0;
  --surface: #FFFFFF;
  --tile: #F6EEE0;
  --tile-2: #F1E4CF;
  --ink: #2B2118;
  --ink-2: #6E5E4D;           /* 5.6:1 on --bg */
  --brand: #874D14;           /* action / brand brown */
  --on-brand: #FFFFFF;
  --amber: #F2A93B;
  --glow: #F7C98A;
  --skyline: #E9B977;
  --line: rgba(135, 77, 20, .14);
  --shadow: 0 1px 2px rgba(120, 72, 20, .06), 0 8px 24px rgba(120, 72, 20, .07);
  --radius: 20px;
  --radius-sm: 14px;
  --font: "Hind Siliguri", system-ui, -apple-system, "Segoe UI", sans-serif;
  --arabic: "Amiri", "Traditional Arabic", serif;
  --ease: cubic-bezier(.22, .8, .24, 1);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #17120E;
  --bg-top: #2A1E12;
  --surface: #221B15;
  --tile: #2C241C;
  --tile-2: #352B21;
  --ink: #F4EBDD;
  --ink-2: #C2B49E;
  --brand: #F2B35A;
  --on-brand: #2A1A08;
  --amber: #F2B35A;
  --glow: #7A4E1E;
  --skyline: #5C4026;
  --line: rgba(242, 179, 90, .16);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: linear-gradient(180deg, var(--bg-top) 0, var(--bg) 520px) var(--bg);
  transition: background-color .6s var(--ease), color .6s var(--ease);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
h1, h2, h3 { line-height: 1.3; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 6vw, 3.9rem); line-height: 1.15; }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.accent { color: var(--brand); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.center { text-align: center; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: var(--on-brand); padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }

.eyebrow {
  display: inline-block;
  font-size: .82rem; font-weight: 600; letter-spacing: .04em;
  color: var(--brand);
  background: var(--tile);
  padding: 4px 12px; border-radius: 999px;
  margin-bottom: 14px;
}
.section { padding: clamp(64px, 10vw, 112px) 0; position: relative; }
.section--tint { background: color-mix(in srgb, var(--tile) 55%, transparent); }
.section-lead { color: var(--ink-2); font-size: 1.08rem; max-width: 640px; margin-bottom: 36px; }
.center .section-lead { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 24px;
  border-radius: 999px; border: 0;
  background: var(--brand); color: var(--on-brand);
  font: 600 1rem/1.2 var(--font); text-decoration: none; cursor: pointer;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--brand) 28%, transparent);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .3s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px color-mix(in srgb, var(--brand) 32%, transparent); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--ghost { background: transparent; color: var(--brand); box-shadow: inset 0 0 0 1.5px var(--brand); }
.btn--ghost:hover { background: var(--tile); box-shadow: inset 0 0 0 1.5px var(--brand); }
.btn--small { min-height: 42px; padding: 8px 18px; font-size: .95rem; }
.btn--big { min-height: 60px; padding: 16px 32px; font-size: 1.1rem; }
.btn[aria-disabled="true"] { opacity: .6; pointer-events: none; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: var(--tile); color: var(--brand);
  transition: transform .2s var(--ease), background-color .3s;
}
.icon-btn:hover { transform: rotate(-12deg); }
.i-moon { display: none; }
[data-theme="dark"] .i-moon { display: block; }
[data-theme="dark"] .i-sun { display: none; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .6s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand img { border-radius: 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.2rem; }
.nav__links { display: flex; gap: 22px; margin-inline: auto; }
.nav__links a { color: var(--ink-2); text-decoration: none; font-weight: 500; padding: 8px 2px; position: relative; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--amber); transform: scaleX(0); transition: transform .25s var(--ease); }
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__actions { display: flex; align-items: center; gap: 10px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(40px, 7vw, 88px) 0 clamp(60px, 9vw, 120px); overflow: hidden; }
.hero__glow {
  position: absolute; inset: -20% -10% auto; height: 760px; z-index: -1;
  background: radial-gradient(closest-side, var(--glow), transparent 72%);
  opacity: .75; animation: breathe 7s ease-in-out infinite;
}
.hero__skyline { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 200px; color: var(--skyline); z-index: -1; opacity: .7; }
[data-theme="dark"] .hero__skyline { opacity: .35; }
.only-dark { display: none; }
[data-theme="dark"] .only-dark { display: block; }
[data-theme="dark"] .only-light { display: none; }
.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; }
.lead { font-size: clamp(1.08rem, 2vw, 1.25rem); color: var(--ink-2); max-width: 560px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 14px; }
.hero__meta { color: var(--ink-2); font-size: .9rem; }
.hero__phone { justify-self: center; }

/* ---------- Device frame ---------- */
.device {
  --w: 300px;
  width: var(--w); aspect-ratio: 9 / 19.5;
  border-radius: 44px; padding: 10px;
  background: #1D1712;
  box-shadow: 0 0 0 2px #3a2e24, 0 30px 60px -20px rgba(80, 45, 10, .45), 0 12px 24px -12px rgba(80, 45, 10, .35);
  position: relative;
}
.device::before { /* camera notch */
  content: ""; position: absolute; top: 18px; left: 50%; width: 76px; height: 20px; translate: -50% 0;
  background: #1D1712; border-radius: 12px; z-index: 3;
}
.device img, .device__screen { width: 100%; height: 100%; border-radius: 34px; object-fit: cover; overflow: hidden; }
.device--static { animation: float 6s ease-in-out infinite; }

/* ---------- Story & hadith ---------- */
.story p { font-size: 1.12rem; }
.story strong { color: var(--brand); font-weight: 600; }
.signature { color: var(--ink-2); font-style: normal; margin-top: 24px; }
.hadith {
  margin: 0 0 22px; padding: 28px clamp(20px, 4vw, 36px);
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.hadith::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--amber); }
.hadith blockquote { margin: 0; }
.hadith .arabic { font-family: var(--arabic); font-size: clamp(1.6rem, 4vw, 2.2rem); line-height: 1.9; color: var(--brand); text-align: center; margin-bottom: 10px; }
.hadith blockquote p:last-child { font-size: 1.15rem; font-weight: 500; text-align: center; }
.hadith figcaption { color: var(--ink-2); font-size: .92rem; text-align: center; }
.hadith__more { color: var(--ink-2); font-size: .98rem; margin: 16px 0 0; padding-top: 16px; border-top: 1px dashed var(--line); text-align: center; }
.hadith--soft { background: color-mix(in srgb, var(--surface) 60%, transparent); box-shadow: none; }
.hadith--soft::before { background: var(--skyline); }
.principle { font-size: 1.12rem; text-align: center; margin-top: 30px; }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  background: var(--surface); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.feature:hover { transform: translateY(-4px); }
.feature__problem { font-size: .95rem; color: var(--ink-2); font-style: italic; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px dashed var(--line); }
.feature__icon { width: 46px; height: 46px; border-radius: 14px; background: var(--tile); color: var(--brand); display: grid; place-items: center; margin-bottom: 14px; }
.feature__icon svg { width: 22px; height: 22px; }
.feature p:last-child { color: var(--ink-2); margin: 0; }
.promise { list-style: none; padding: 0; margin: 36px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: center; }
.promise li { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.promise svg { color: var(--brand); width: 18px; height: 18px; }

/* ---------- Simulator section ---------- */
.sim { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; }
.sim__guide { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; counter-reset: none; }
.sim__guide button {
  width: 100%; display: flex; align-items: center; gap: 14px; text-align: left;
  padding: 14px 16px; border-radius: var(--radius-sm); border: 0; cursor: pointer;
  background: var(--surface); color: var(--ink); font: inherit; box-shadow: var(--shadow);
  transition: transform .2s var(--ease), background-color .3s;
}
.sim__guide button:hover, .sim__guide button.is-active { transform: translateX(4px); background: var(--tile-2); }
.sim__guide small { display: block; color: var(--ink-2); font-size: .9rem; line-height: 1.4; }
.sim__guide strong { font-weight: 600; }
.step {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700;
  background: var(--brand); color: var(--on-brand);
}
.sim__guide .is-done .step { background: var(--amber); color: #2A1A08; }
.sim__stage { display: grid; justify-items: center; gap: 16px; }
.sim__stage .device { --w: 320px; }
.sim__controls { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.select { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); padding: 6px 6px 6px 14px; border-radius: 999px; box-shadow: var(--shadow); font-size: .92rem; color: var(--ink-2); }
.select select { font: inherit; color: var(--ink); background: var(--tile); border: 0; border-radius: 999px; padding: 8px 12px; min-height: 36px; cursor: pointer; }
.chip-btn { font: 500 .92rem var(--font); min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 0; cursor: pointer; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.chip-btn[aria-pressed="true"] { background: var(--brand); color: var(--on-brand); }

/* ---------- Screenshots ---------- */
.shots {
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 10px max(16px, calc((100vw - 1120px) / 2)) 26px; scrollbar-width: thin;
}
.shots figure { flex: 0 0 auto; margin: 0; scroll-snap-align: center; text-align: center; }
.shots img { width: 220px; height: auto; border-radius: 26px; box-shadow: var(--shadow); background: var(--tile); }
.shots figcaption { margin-top: 10px; color: var(--ink-2); font-size: .92rem; }

/* ---------- Download ---------- */
.dl-logo { margin: 0 auto 18px; border-radius: 24px; box-shadow: 0 10px 30px color-mix(in srgb, var(--amber) 40%, transparent); animation: float 6s ease-in-out infinite; }
.dl-meta { color: var(--ink-2); font-size: .92rem; margin-top: 12px; }
.install { list-style: none; padding: 0; margin: 36px auto 0; display: grid; gap: 10px; text-align: left; max-width: 560px; }
.install li { display: flex; gap: 14px; align-items: center; background: var(--surface); padding: 14px 16px; border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.note { color: var(--ink-2); margin-top: 22px; font-size: .95rem; }

/* ---------- Open source ---------- */
.os { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.os__text > p { color: var(--ink-2); font-size: 1.05rem; }
.os__text strong { color: var(--ink); }
.os__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.os__card { background: var(--surface); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.os__card-title { font-weight: 600; margin-bottom: 12px; }
.tags { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { background: var(--tile); color: var(--ink); font-size: .88rem; padding: 4px 12px; border-radius: 999px; font-family: system-ui, sans-serif; }
.os__steps { margin: 0; padding-left: 20px; color: var(--ink-2); }

/* ---------- Feedback form ---------- */
.form { background: var(--surface); border-radius: var(--radius); padding: clamp(20px, 4vw, 32px); box-shadow: var(--shadow); display: grid; gap: 18px; }
.form__type { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.form__type legend { font-weight: 600; margin-bottom: 10px; padding: 0; }
.form__type label { cursor: pointer; }
.form__type input { position: absolute; opacity: 0; pointer-events: none; }
.form__type span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border-radius: 999px; background: var(--tile); transition: background-color .2s, color .2s; }
.form__type input:checked + span { background: var(--brand); color: var(--on-brand); }
.form__type input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: 2px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field > span { font-weight: 600; font-size: .98rem; }
.field em { font-style: normal; font-weight: 400; color: var(--ink-2); font-size: .88rem; }
.field input, .field textarea {
  font: inherit; color: var(--ink); background: var(--tile); border: 1.5px solid transparent;
  border-radius: 12px; padding: 12px 14px; min-height: 48px; transition: border-color .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); background: var(--surface); }
.field [aria-invalid="true"] { border-color: #C2410C; }
.help { color: var(--ink-2); font-size: .88rem; }
.error { color: #C2410C; font-size: .9rem; font-weight: 500; }
[data-theme="dark"] .error { color: #FB923C; }
.form .btn { justify-self: start; }
.form__status { margin: 0; min-height: 1.6em; font-weight: 500; }
.form__status.is-ok { color: var(--brand); }
.form__status.is-err { color: #C2410C; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.footer { padding: 48px 0 56px; border-top: 1px solid var(--line); }
.footer__inner { display: grid; gap: 8px; justify-items: center; text-align: center; }
.footer p { margin: 0; color: var(--ink-2); }
.footer__small { font-size: .88rem; max-width: 640px; }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: .7; } 50% { transform: scale(1.06); opacity: .9; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav__actions { margin-left: auto; }
  .hero__inner, .sim, .os { grid-template-columns: 1fr; }
  .hero__text { text-align: center; }
  .hero__text .lead { margin-inline: auto; }
  .hero__cta { justify-content: center; }
  .features { grid-template-columns: 1fr 1fr; }
  .sim__stage { order: -1; }
  .sim__guide { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .features, .form__row, .sim__guide { grid-template-columns: 1fr; }
  .device { --w: 270px; }
  .sim__stage .device { --w: min(300px, 86vw); }
  .hero__cta .btn { width: 100%; }
  .shots img { width: 190px; }
}

/* =====================================================================
   Phone simulator (mini Ad-Deen inside the device frame)
   ===================================================================== */
.app {
  --a-bg: #FBF6EC; --a-surface: #FFFFFF; --a-tile: #F6EEE0; --a-ink: #2B2118; --a-ink2: #8A7A69;
  --a-brand: #874D14; --a-amber: #F2A93B; --a-glow: #F7C98A; --a-sky: #EFC184; --a-track: #E7DDCB;
  height: 100%; display: flex; flex-direction: column; position: relative;
  background: var(--a-bg); color: var(--a-ink); font-size: 13px; line-height: 1.45;
  border-radius: 34px; overflow: hidden; user-select: none; -webkit-user-select: none;
  transition: background-color .8s var(--ease), color .8s var(--ease);
}
.app.is-night {
  --a-bg: #17120E; --a-surface: #221B15; --a-tile: #2C241C; --a-ink: #F4EBDD; --a-ink2: #B5A690;
  --a-brand: #F2B35A; --a-amber: #F2B35A; --a-glow: #7A4E1E; --a-sky: #5C4026; --a-track: #3A3027;
}
.app svg { width: 18px; height: 18px; }
.app__status { display: flex; justify-content: space-between; padding: 12px 22px 0; font-size: 11px; font-weight: 600; height: 34px; }
.app__body { flex: 1; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; position: relative; }
.app__body::-webkit-scrollbar { display: none; }
.app__title { text-align: center; font-weight: 600; letter-spacing: .12em; font-size: 12px; padding: 6px 0 2px; }
.app__screen { animation: screenIn .35s var(--ease); padding: 0 14px 16px; }
@keyframes screenIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.a-hero { position: relative; margin: 0 -14px; padding: 4px 14px 6px; text-align: center; overflow: hidden; }
.a-hero::before { content: ""; position: absolute; inset: -40px -20px auto; height: 230px; background: radial-gradient(closest-side, var(--a-glow), transparent 75%); animation: breathe 7s ease-in-out infinite; }
.a-hero > * { position: relative; }
.a-hero__cap { font-size: 9.5px; letter-spacing: .12em; color: var(--a-brand); opacity: .85; text-transform: uppercase; margin-top: 4px; }
.a-hero__sky { position: absolute; left: 0; right: 0; bottom: 48px; height: 70px; color: var(--a-sky); }
.a-hero__sky svg { width: 100%; height: 100%; }
.a-clock { font: 700 64px/1 "Roboto Condensed", "Arial Narrow", sans-serif-condensed, var(--font); color: var(--a-brand); letter-spacing: -.02em; margin: 6px 0 2px; font-stretch: condensed;
  -webkit-mask-image: linear-gradient(#000 45%, rgba(0,0,0,.2)); mask-image: linear-gradient(#000 45%, rgba(0,0,0,.2)); }
.a-clock small { font-size: 13px; font-weight: 600; margin-left: 2px; }
.a-hero__row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin-top: 36px; font-size: 11px; }
.a-hero__row > div:first-child { text-align: right; }
.a-hero__row > div:last-child { text-align: left; }
.a-hero__row .bar { width: 1px; height: 30px; background: currentColor; opacity: .2; }
.a-muted { color: var(--a-ink2); font-size: 9.5px; letter-spacing: .04em; }
.a-count { font: 700 16px "Roboto Condensed", "Arial Narrow", sans-serif; font-variant-numeric: tabular-nums; }

.a-section { font-weight: 600; font-size: 13.5px; margin: 14px 2px 8px; display: flex; justify-content: space-between; }
.a-section a { color: var(--a-brand); font-weight: 500; font-size: 11.5px; text-decoration: none; cursor: pointer; }
.a-card { background: var(--a-surface); border-radius: 16px; padding: 12px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.a-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 4px; }
.a-grid button { background: none; border: 0; color: var(--a-ink); font: inherit; font-size: 10.5px; display: grid; justify-items: center; gap: 4px; cursor: pointer; padding: 4px 0; border-radius: 10px; }
.a-grid button svg { width: 24px; height: 24px; stroke-width: 2.2; color: var(--c, var(--a-brand)); }
.a-grid button:active { transform: scale(.92); }
.a-strip { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.a-strip::-webkit-scrollbar { display: none; }
.a-chip { flex: 0 0 64px; background: var(--a-tile); border-radius: 13px; padding: 9px 4px; text-align: center; font-size: 10.5px; }
.a-chip b { display: block; font-size: 13px; }
.a-chip.is-now { background: color-mix(in srgb, var(--a-amber) 30%, var(--a-tile)); }
.a-chip svg { display: block; width: 18px; height: 18px; margin: 0 auto 4px; color: var(--a-amber); }
.a-score { display: flex; gap: 12px; align-items: center; }
.a-ring { width: 64px; height: 64px; flex: 0 0 auto; position: relative; display: grid; place-items: center; }
.a-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.a-ring circle { fill: none; stroke-width: 6; }
.a-ring .track { stroke: var(--a-track); }
.a-ring .bar { stroke: var(--a-amber); stroke-linecap: round; transition: stroke-dashoffset .6s var(--ease); }
.a-ring b { font-size: 16px; position: relative; }
.a-perfect { display: inline-block; background: var(--a-amber); color: #2A1A08; font-size: 10px; font-weight: 700; border-radius: 8px; padding: 1px 8px; animation: pop .45s var(--ease); }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 70% { transform: scale(1.1); } 100% { transform: scale(1); opacity: 1; } }

.a-row { display: flex; align-items: center; gap: 10px; background: var(--a-surface); border-radius: 14px; padding: 9px 10px; margin-bottom: 7px; }
.a-row.is-now { background: color-mix(in srgb, var(--a-amber) 22%, var(--a-surface)); }
.a-row__icon { width: 32px; height: 32px; border-radius: 10px; background: var(--a-tile); color: var(--a-brand); display: grid; place-items: center; flex: 0 0 auto; }
.a-row__text { flex: 1; min-width: 0; }
.a-row__text b { display: block; font-size: 12.5px; font-weight: 600; }
.a-row__text span { font-size: 10.5px; color: var(--a-ink2); font-variant-numeric: tabular-nums; }
.a-switch { width: 38px; height: 22px; border-radius: 11px; border: 0; padding: 0; background: var(--a-track); position: relative; cursor: pointer; flex: 0 0 auto; transition: background-color .25s; }
.a-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .25s var(--ease); }
.a-switch[aria-checked="true"] { background: var(--a-brand); }
.a-switch[aria-checked="true"]::after { transform: translateX(16px); }

.a-prayer { background: var(--a-surface); border-radius: 14px; padding: 9px 10px; margin-bottom: 7px; }
.a-prayer header { display: flex; justify-content: space-between; font-weight: 600; font-size: 12.5px; margin-bottom: 6px; }
.a-prayer header span { color: var(--a-ink2); font-weight: 500; font-size: 10.5px; }
.a-status { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.a-status button { border: 0; border-radius: 10px; background: var(--a-tile); color: var(--a-ink2); font: inherit; font-size: 10.5px; padding: 6px 0; cursor: pointer; line-height: 1.3; transition: background-color .2s, color .2s, transform .15s; }
.a-status button small { display: block; font-size: 9.5px; }
.a-status button[aria-pressed="true"] { background: color-mix(in srgb, var(--a-amber) 35%, var(--a-tile)); color: var(--a-brand); font-weight: 600; }
.a-status button:active { transform: scale(.94); }

.a-tabs { display: flex; gap: 4px; background: var(--a-tile); padding: 3px; border-radius: 12px; margin: 6px 0 12px; }
.a-tabs button { flex: 1; border: 0; background: none; color: var(--a-ink2); font: inherit; font-size: 11px; padding: 6px 0; border-radius: 9px; cursor: pointer; }
.a-tabs button[aria-pressed="true"] { background: var(--a-surface); color: var(--a-brand); font-weight: 600; }
.a-tasbih { display: grid; justify-items: center; gap: 8px; padding-top: 6px; }
.a-tasbih__ar { font-family: var(--arabic); font-size: 24px; color: var(--a-brand); direction: rtl; }
.a-tasbih__btn { width: 178px; height: 178px; border-radius: 50%; border: 0; cursor: pointer; position: relative; background: var(--a-surface); color: var(--a-ink); display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.06); }
.a-tasbih__btn svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.a-tasbih__btn circle { fill: none; stroke-width: 8; }
.a-tasbih__btn .track { stroke: var(--a-track); }
.a-tasbih__btn .bar { stroke: var(--a-amber); stroke-linecap: round; transition: stroke-dashoffset .3s var(--ease); }
.a-tasbih__btn b { font: 700 40px "Roboto Condensed", "Arial Narrow", sans-serif; position: relative; }
.a-tasbih__btn small { display: block; font-size: 11px; color: var(--a-ink2); }
.a-tasbih__btn:active { transform: scale(.97); }
.a-tasbih__btn.is-done { animation: pop .45s var(--ease); }
.a-link { border: 0; background: none; color: var(--a-brand); font: inherit; font-size: 11.5px; cursor: pointer; padding: 6px 10px; }

.app__nav { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--a-surface); border-top: 1px solid rgba(135,77,20,.1); padding: 6px 4px 10px; }
.app__nav button { border: 0; background: none; color: var(--a-ink2); font: inherit; font-size: 10px; display: grid; justify-items: center; gap: 2px; cursor: pointer; padding: 4px 0; transition: color .2s; }
.app__nav button[aria-current="page"] { color: var(--a-brand); font-weight: 600; }
.app__nav svg { width: 20px; height: 20px; }

.a-toast { position: absolute; left: 10px; right: 10px; bottom: 62px; background: #2B2118; color: #fff; border-radius: 12px; padding: 9px 12px; font-size: 11.5px; display: flex; align-items: center; gap: 8px; z-index: 5; animation: toastIn .3s var(--ease); }
.a-toast span { flex: 1; }
.a-toast button { border: 0; background: none; color: var(--a-amber); font: 600 11.5px var(--font); cursor: pointer; padding: 4px 6px; }
.app.is-night .a-toast { background: #352B21; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
