/* Rashad website — design mockup (light theme) */
:root {
  --bg: #F8F5EC;
  --card: #FFFFFF;
  --ink: #14382B;
  --muted: #5F6F65;
  --green: #0B6B4B;
  --green-deep: #084230;
  --gold: #E8B43A;
  --gold-ink: #9C7414;
  --line: #E7DFC8;
  --header-bg: rgba(252, 250, 242, 0.88);
  --hover: rgba(11, 107, 75, 0.08);
  --hover-strong: rgba(11, 107, 75, 0.12);
  --dot: rgba(11, 107, 75, 0.25);
  --shadow-card: rgba(8, 66, 48, 0.05);
  --stage-glow: rgba(11, 107, 75, 0.12);
  --radius: 18px;
}

/* ---------- per-screen whole-page themes: the app's own 9 themes ---------- */
body[data-theme="t2"] {
  --bg: #EEF4F9; --ink: #12293B; --muted: #56687A;
  --green: #0B527E; --green-deep: #073A5A; --gold: #D9A93F; --gold-ink: #0B527E;
  --line: #D7E2EC; --header-bg: rgba(238,244,249,0.88);
  --hover: rgba(11,82,126,0.09); --hover-strong: rgba(11,82,126,0.14);
  --dot: rgba(11,82,126,0.28); --shadow-card: rgba(7,58,90,0.06); --stage-glow: rgba(11,82,126,0.14);
}
body[data-theme="t1"] {
  --bg: #FAF4E2; --ink: #2E2408; --muted: #76683F;
  --green: #6B5410; --green-deep: #3F3008; --gold: #D9A93F; --gold-ink: #6B5410;
  --line: #EADFBB; --header-bg: rgba(250,244,226,0.88);
  --hover: rgba(107,84,16,0.09); --hover-strong: rgba(107,84,16,0.14);
  --dot: rgba(107,84,16,0.28); --shadow-card: rgba(63,48,8,0.06); --stage-glow: rgba(107,84,16,0.14);
}
body[data-theme="t3"] {
  --bg: #F0F2F5; --ink: #18222F; --muted: #5D6673;
  --green: #213043; --green-deep: #141E2C; --gold: #D9A93F; --gold-ink: #213043;
  --line: #DADFE6; --header-bg: rgba(240,242,245,0.88);
  --hover: rgba(33,48,67,0.09); --hover-strong: rgba(33,48,67,0.14);
  --dot: rgba(33,48,67,0.28); --shadow-card: rgba(20,30,44,0.06); --stage-glow: rgba(33,48,67,0.14);
}
body[data-theme="t4"] {
  --bg: #F9F1E7; --ink: #3A2210; --muted: #7A6350;
  --green: #8A4E1F; --green-deep: #5C3213; --gold: #D9A93F; --gold-ink: #8A4E1F;
  --line: #EBDAC6; --header-bg: rgba(249,241,231,0.88);
  --hover: rgba(138,78,31,0.09); --hover-strong: rgba(138,78,31,0.14);
  --dot: rgba(138,78,31,0.28); --shadow-card: rgba(92,50,19,0.06); --stage-glow: rgba(138,78,31,0.14);
}
body[data-theme="t5"] {
  --bg: #F4F0F9; --ink: #2A1646; --muted: #675B7A;
  --green: #4C1F7C; --green-deep: #33145A; --gold: #D9A93F; --gold-ink: #4C1F7C;
  --line: #E0D7EC; --header-bg: rgba(244,240,249,0.88);
  --hover: rgba(76,31,124,0.09); --hover-strong: rgba(76,31,124,0.14);
  --dot: rgba(76,31,124,0.28); --shadow-card: rgba(51,20,90,0.06); --stage-glow: rgba(76,31,124,0.14);
}
body[data-theme="t6"] {
  --bg: #ECF3F6; --ink: #0F2A38; --muted: #52687A;
  --green: #074D71; --green-deep: #043650; --gold: #D9A93F; --gold-ink: #074D71;
  --line: #D3E1E8; --header-bg: rgba(236,243,246,0.88);
  --hover: rgba(7,77,113,0.09); --hover-strong: rgba(7,77,113,0.14);
  --dot: rgba(7,77,113,0.28); --shadow-card: rgba(4,54,80,0.06); --stage-glow: rgba(7,77,113,0.14);
}
body[data-theme="t7"] {
  --bg: #EDF4EF; --ink: #112B1B; --muted: #546B5C;
  --green: #1B6B3C; --green-deep: #164F2F; --gold: #D9A93F; --gold-ink: #1B6B3C;
  --line: #D5E3DA; --header-bg: rgba(237,244,239,0.88);
  --hover: rgba(27,107,60,0.09); --hover-strong: rgba(27,107,60,0.14);
  --dot: rgba(27,107,60,0.28); --shadow-card: rgba(22,79,47,0.06); --stage-glow: rgba(27,107,60,0.14);
}
body[data-theme="t8"] {
  --bg: #F8EEF1; --ink: #3A1220; --muted: #7A5A66;
  --green: #8A2A4C; --green-deep: #6B1F39; --gold: #D9A93F; --gold-ink: #8A2A4C;
  --line: #EBD6DD; --header-bg: rgba(248,238,241,0.88);
  --hover: rgba(138,42,76,0.09); --hover-strong: rgba(138,42,76,0.14);
  --dot: rgba(138,42,76,0.28); --shadow-card: rgba(107,31,57,0.06); --stage-glow: rgba(138,42,76,0.14);
}
body[data-theme="t9"] {
  --bg: #FAF3E2; --ink: #33260A; --muted: #7A6A45;
  --green: #8A6410; --green-deep: #5C430C; --gold: #D9A93F; --gold-ink: #8A6410;
  --line: #EBDDBB; --header-bg: rgba(250,243,226,0.88);
  --hover: rgba(138,100,16,0.09); --hover-strong: rgba(138,100,16,0.14);
  --dot: rgba(138,100,16,0.28); --shadow-card: rgba(92,67,12,0.06); --stage-glow: rgba(138,100,16,0.14);
}

/* smooth whole-page color transition */
body, header, .nav .brand, .hero h1, .hero .tagline, .sec-title, .card h3, .verse, .verse p, footer, footer .dua, .feat, .feat h3 {
  transition: background-color 0.9s ease, color 0.9s ease, border-color 0.9s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Tajawal", sans-serif;
  background-color: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  direction: rtl;
  line-height: 1.8;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1100px 480px at 85% -10%, rgba(232, 180, 58, 0.14), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, transparent 35%, rgba(30, 25, 10, 0.05) 100%);
}

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

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }

/* ---------- header ---------- */
header {
  position: sticky; top: 0; z-index: 10;
  background-color: var(--header-bg);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 14px; padding: 12px 0; }
.nav .brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.3rem; color: var(--green-deep); }
.nav .brand img { width: 38px; height: 38px; border-radius: 10px; }
.nav .links { margin-inline-start: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.nav .links a {
  padding: 7px 14px; border-radius: 999px; font-size: 0.98rem; color: var(--muted);
  transition: background 0.15s, color 0.15s;
}
.nav .links a:hover { background: var(--hover); color: var(--green-deep); }
.nav .links a.active { background: var(--hover-strong); color: var(--green); font-weight: 700; }

/* ---------- hero ---------- */
.hero { text-align: center; padding: 74px 0 46px; }
.hero .appicon {
  width: 132px; height: 132px; border-radius: 30px;
  box-shadow: 0 18px 46px rgba(8, 66, 48, 0.28), 0 0 0 1px rgba(232, 180, 58, 0.4);
}
.hero h1 { font-size: 3rem; font-weight: 800; margin-top: 20px; color: var(--green-deep); letter-spacing: 0.5px; }
.hero .tagline { font-size: 1.25rem; color: var(--gold-ink); margin-top: 6px; font-weight: 700; }
.hero .sub { color: var(--muted); max-width: 560px; margin: 14px auto 0; font-size: 1.05rem; }

.btn {
  display: inline-block; margin-top: 30px;
  background: linear-gradient(180deg, #F0C25A, var(--gold));
  color: #2A1E05; font-weight: 800; font-size: 1.12rem;
  padding: 15px 42px; border-radius: 999px;
  box-shadow: 0 10px 26px rgba(232, 180, 58, 0.4);
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(232, 180, 58, 0.5); }
.hero .note { display: block; margin-top: 14px; font-size: 0.9rem; color: var(--muted); }

/* ---------- verse band ---------- */
.verse {
  text-align: center; margin: 30px auto; padding: 26px 20px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.verse p { font-family: "Amiri Quran", serif; font-size: 1.7rem; color: var(--green); }
.verse cite { display: block; font-family: "Tajawal", sans-serif; font-style: normal; font-size: 0.9rem; color: var(--muted); margin-top: 8px; }

/* ---------- section titles ---------- */
section { padding: 40px 0; }
.sec-title { font-size: 1.7rem; font-weight: 800; margin-bottom: 6px; color: var(--green-deep); }
.sec-title::after {
  content: ""; display: block; width: 56px; height: 3px; margin-top: 8px;
  background: linear-gradient(90deg, var(--gold), transparent); border-radius: 3px;
}
.sec-desc { color: var(--muted); margin-bottom: 26px; max-width: 640px; }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.cards.six { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: 0 4px 18px var(--shadow-card);
  transition: transform 0.15s, border-color 0.9s ease, box-shadow 0.15s, background-color 0.9s ease;
}
.card:hover { transform: translateY(-3px); border-color: rgba(232, 180, 58, 0.7); box-shadow: 0 10px 26px rgba(8, 66, 48, 0.1); }
.card .ic { width: 46px; height: 46px; margin-bottom: 14px; }
.card h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: 8px; color: var(--green-deep); }
.card p { font-size: 0.95rem; color: var(--muted); }

/* ---------- feature rows (inner page) ---------- */
.feat {
  display: grid; grid-template-columns: 84px 1fr; gap: 22px; align-items: start;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; margin-bottom: 18px;
  box-shadow: 0 4px 18px var(--shadow-card);
}
.feat .ic { width: 64px; height: 64px; }
.feat h3 { font-size: 1.35rem; font-weight: 800; margin-bottom: 8px; color: var(--green-deep); }
.feat p { color: var(--muted); }
.feat ul { color: var(--muted); margin-top: 10px; padding-inline-start: 20px; }
.feat li { margin-bottom: 4px; }
.feat .v {
  font-family: "Amiri Quran", serif; color: var(--green); font-size: 1.25rem;
  border-inline-start: 3px solid var(--gold); padding-inline-start: 14px; margin-top: 14px;
}

/* ---------- screenshots: 3D coverflow carousel ---------- */
.stage {
  padding: 20px 0 26px;
  background: radial-gradient(640px 300px at 50% 88%, var(--stage-glow), transparent 70%);
  overflow: hidden;
  user-select: none;
}
.coverflow {
  position: relative; height: 560px;
  perspective: 1400px; perspective-origin: 50% 42%;
  transform-style: preserve-3d;
}
.phone {
  position: absolute; top: 0; left: 50%;
  width: 236px; aspect-ratio: 9 / 19.2;
  margin-left: -118px;              /* centers without a transform, keeps rotate clean */
  border-radius: 40px;
  transition: transform 0.78s cubic-bezier(0.22, 0.9, 0.26, 1), opacity 0.78s ease;
  will-change: transform;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}
.bezel {
  height: 100%; padding: 10px; border-radius: 40px;
  background: linear-gradient(160deg, #2A2A2C, #060607);
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.28),
    inset 0 0 0 1.5px rgba(255,255,255,0.14);
}
.screen {
  position: relative; height: 100%; border-radius: 31px; overflow: hidden;
  background: #EEF5F0;
}
.screen img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.screen::before {
  content: ""; position: absolute; top: 9px; left: 50%; transform: translateX(-50%); z-index: 2;
  width: 60px; height: 15px; border-radius: 999px; background: #000;
}
.shot-cap { text-align: center; color: var(--green-deep); font-weight: 700; font-size: 1rem; margin-top: 10px; min-height: 1.6em; transition: opacity 0.3s, color 0.9s ease; }
.dots { display: flex; justify-content: center; gap: 8px; margin-top: 8px; }
.dots button {
  width: 9px; height: 9px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--dot); transition: width 0.3s, background 0.3s;
}
.dots button.on { width: 26px; background: var(--gold); }

/* ---------- mini screenshot gallery on feature pages ---------- */
.gal { display: flex; gap: 16px; overflow-x: auto; padding: 14px 4px 20px; }
.gph {
  flex: 0 0 auto; width: 168px; aspect-ratio: 9 / 19.2;
  border-radius: 28px; padding: 7px;
  background: linear-gradient(160deg, #2A2A2C, #060607);
  box-shadow: 0 16px 34px rgba(8, 66, 48, 0.25), inset 0 0 0 1.2px rgba(255,255,255,0.14);
  transition: transform 0.25s ease;
}
.gph:hover { transform: translateY(-6px); }
.gph .screen { border-radius: 21px; }
.gph .screen::before { width: 38px; height: 11px; top: 7px; }
.gph.soon .screen {
  display: flex; align-items: center; justify-content: center; padding: 12px; text-align: center;
}
.gph.soon .screen span { font-size: 0.82rem; color: #55705F; line-height: 1.7; }

/* ---------- footer ---------- */
footer {
  margin-top: 50px; border-top: 1px solid var(--line);
  padding: 30px 0 44px; text-align: center; color: var(--muted); font-size: 0.95rem;
}
footer .dua { color: var(--gold-ink); margin-bottom: 6px; font-weight: 500; }

/* ---------- mobile ---------- */
@media (max-width: 760px) {
  .hero { padding: 52px 0 34px; }
  .hero h1 { font-size: 2.3rem; }
  .hero .appicon { width: 104px; height: 104px; }
  .cards, .cards.two, .cards.six { grid-template-columns: 1fr 1fr; }
  .gph { width: 138px; }
  .nav .links a { padding: 6px 10px; font-size: 0.9rem; }
  .feat { grid-template-columns: 1fr; }
  .verse p { font-size: 1.35rem; }
  .coverflow { height: 430px; }
  .phone { width: 176px; margin-left: -88px; border-radius: 32px; }
  .bezel { border-radius: 32px; padding: 8px; }
  .screen { border-radius: 25px; }
  .screen::before { width: 44px; height: 12px; }
}

.dl-row { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.dl-row .btn { margin-top: 0; }
.gp-soon { display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px; border-radius: 12px; background: #111; color: #fff; opacity: 0.55; cursor: not-allowed; user-select: none; border: 1px solid #333; }
.gp-soon span { display: flex; flex-direction: column; line-height: 1.25; text-align: right; }
.gp-soon small { font-size: 0.72rem; color: #E8B43A; }
.gp-soon b { font-size: 1.05rem; font-family: Arial, sans-serif; letter-spacing: 0.3px; }

/* ---------- performance & motion ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.22s; }
.coverflow { contain: layout; }
.screen img { background: #EEF5F0; }
img { max-width: 100%; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ---------- cosmetic touches (CSS only, transform/opacity animations) ---------- */
::selection { background: var(--hover-strong); color: var(--green-deep); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 8px; }

.hero, footer { position: relative; isolation: isolate; }
  content: ""; position: absolute; z-index: -1; pointer-events: none; left: 0; right: 0;
  background-color: var(--green); opacity: 0.07;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='black' stroke-width='1.2'%3E%3Crect x='16' y='16' width='32' height='32'/%3E%3Crect x='16' y='16' width='32' height='32' transform='rotate(45 32 32)'/%3E%3Ccircle cx='32' cy='32' r='5'/%3E%3C/g%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='black' stroke-width='1.2'%3E%3Crect x='16' y='16' width='32' height='32'/%3E%3Crect x='16' y='16' width='32' height='32' transform='rotate(45 32 32)'/%3E%3Ccircle cx='32' cy='32' r='5'/%3E%3C/g%3E%3C/svg%3E");
  transition: background-color 0.9s ease;
}
.hero::before { top: 0; height: 100%; -webkit-mask-size: 64px; mask-size: 64px;
  -webkit-mask-image: linear-gradient(#000, transparent 85%), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='black' stroke-width='1.2'%3E%3Crect x='16' y='16' width='32' height='32'/%3E%3Crect x='16' y='16' width='32' height='32' transform='rotate(45 32 32)'/%3E%3Ccircle cx='32' cy='32' r='5'/%3E%3C/g%3E%3C/svg%3E");
  -webkit-mask-composite: source-in; mask-composite: intersect;
  mask-image: linear-gradient(#000, transparent 85%), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='black' stroke-width='1.2'%3E%3Crect x='16' y='16' width='32' height='32'/%3E%3Crect x='16' y='16' width='32' height='32' transform='rotate(45 32 32)'/%3E%3Ccircle cx='32' cy='32' r='5'/%3E%3C/g%3E%3C/svg%3E");
}
footer::before { top: 0; bottom: 0; -webkit-mask-size: 64px; mask-size: 64px; opacity: 0.06; }

/* slow-turning star behind the app icon */
.hero .appicon { position: relative; z-index: 1; }
.hero .halo {
  position: absolute; left: 50%; top: 20px; width: 300px; height: 300px; margin-left: -150px; z-index: -1;
  pointer-events: none; opacity: 0.12; background-color: var(--gold);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='black' stroke-width='0.8'%3E%3Crect x='20' y='20' width='60' height='60'/%3E%3Crect x='20' y='20' width='60' height='60' transform='rotate(45 50 50)'/%3E%3Ccircle cx='50' cy='50' r='34'/%3E%3Ccircle cx='50' cy='50' r='20'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='black' stroke-width='0.8'%3E%3Crect x='20' y='20' width='60' height='60'/%3E%3Crect x='20' y='20' width='60' height='60' transform='rotate(45 50 50)'/%3E%3Ccircle cx='50' cy='50' r='34'/%3E%3Ccircle cx='50' cy='50' r='20'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat;
  animation: spin 90s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* section title ornament: line + small star */
.sec-title::after {
  width: 96px; height: 14px; margin-top: 8px; border-radius: 0;
  background:
    linear-gradient(90deg, var(--gold), transparent) left 0 center / 70px 2px no-repeat,
    radial-gradient(circle, var(--gold) 0 2px, transparent 2.5px) right 6px center / 12px 12px no-repeat;
}

/* verse band ornament */
.verse { position: relative; }
.verse::before, .verse::after {
  content: "✦"; position: absolute; left: 50%; margin-left: -8px; font-size: 14px; line-height: 1;
  color: var(--gold); background: var(--bg); padding: 0 8px; transition: background-color 0.9s ease;
}
.verse::before { top: -8px; } .verse::after { bottom: -8px; }

/* soft hover and press */
.btn { position: relative; overflow: hidden; }
.btn:active { transform: translateY(0) scale(0.97); box-shadow: 0 6px 16px rgba(232, 180, 58, 0.35); }
.btn::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: translateX(0) skewX(-18deg); animation: shine 5.5s ease-in-out infinite; pointer-events: none;
}
@keyframes shine { 0%, 62% { transform: translateX(0) skewX(-18deg); } 100% { transform: translateX(520%) skewX(-18deg); } }
.card:active, .feat:active { transform: scale(0.99); }
.feat { transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.9s ease, background-color 0.9s ease; }
.feat:hover { box-shadow: 0 10px 28px var(--shadow-card); }
.card .ic, .feat .ic { transition: transform 0.35s cubic-bezier(0.22, 0.9, 0.26, 1); }
.card:hover .ic, .feat:hover .ic { transform: translateY(-3px) rotate(-6deg) scale(1.06); }
.nav .links a:active { transform: scale(0.95); }

/* gentle breathing glow behind the phones */
.stage { position: relative; }
.stage::before {
  content: ""; position: absolute; left: 50%; top: 24%; width: 520px; height: 420px; margin-left: -260px;
  background: radial-gradient(closest-side, var(--stage-glow), transparent); opacity: 0.9;
  animation: breathe 7s ease-in-out infinite; pointer-events: none; transition: background 0.9s ease;
}
@keyframes breathe { 0%, 100% { transform: scale(0.92); opacity: 0.6; } 50% { transform: scale(1.08); opacity: 1; } }
.coverflow { z-index: 1; }

/* reading progress bar */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 50; transform-origin: right center; transform: scaleX(0);
  background: linear-gradient(90deg, var(--gold), var(--green)); pointer-events: none; }

/* scroll reveal (only when JS is on) */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 0.9, 0.26, 1); }
.js .rv.in { opacity: 1; transform: none; }
.js .cards .rv:nth-child(3n+2) { transition-delay: 0.08s; } .js .cards .rv:nth-child(3n) { transition-delay: 0.16s; }

/* refined footer */
footer { margin-top: 60px; }
footer .wrap::before {
  content: ""; display: block; width: 46px; height: 46px; margin: 0 auto 10px; background-color: var(--gold);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M30 6a18 18 0 1 0 0 36 15 15 0 0 1 0-36z' fill='black'/%3E%3Cpath d='M36 14l1.6 3.4 3.7.5-2.7 2.6.7 3.7-3.3-1.8-3.3 1.8.7-3.7-2.7-2.6 3.7-.5z' fill='black'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M30 6a18 18 0 1 0 0 36 15 15 0 0 1 0-36z' fill='black'/%3E%3Cpath d='M36 14l1.6 3.4 3.7.5-2.7 2.6.7 3.7-3.3-1.8-3.3 1.8.7-3.7-2.7-2.6 3.7-.5z' fill='black'/%3E%3C/svg%3E") center/contain no-repeat;
  opacity: 0.8;
}
@media (prefers-reduced-motion: reduce) {
  .hero .halo, .btn::after, .stage::before { animation: none !important; }
  .js .rv { opacity: 1; transform: none; }
}
@media (max-width: 760px) { .hero .halo { width: 220px; height: 220px; margin-left: -110px; } .stage::before { width: 360px; margin-left: -180px; } }

/* ---------- night mode: per-theme dark palettes ---------- */
html.dark { color-scheme: dark; }
html.dark body[data-theme="home"], html.dark body:not([data-theme]) {
  --bg: #0B1C16; --card: #172722; --ink: #E7F0ED; --muted: #839C93;
  --green: #85B5A5; --green-deep: #D3E4DF; --gold: #E8B43A; --gold-ink: #E8B43A;
  --line: #2B3A34; --header-bg: rgba(11,28,22,0.9); --hover: rgba(133,181,165,0.14); --hover-strong: rgba(133,181,165,0.22);
  --dot: rgba(133,181,165,0.35); --shadow-card: rgba(0,0,0,0.35); --stage-glow: rgba(11,107,75,0.35);
}
html.dark body[data-theme="t2"] {
  --bg: #0B191D; --card: #172428; --ink: #E7EEF2; --muted: #8396A0;
  --green: #85A8BE; --green-deep: #D3E0E8; --gold: #E8B43A; --gold-ink: #E8B43A;
  --line: #2B373A; --header-bg: rgba(11,25,29,0.9); --hover: rgba(133,168,190,0.14); --hover-strong: rgba(133,168,190,0.22);
  --dot: rgba(133,168,190,0.35); --shadow-card: rgba(0,0,0,0.35); --stage-glow: rgba(11,82,126,0.35);
}
html.dark body[data-theme="t1"] {
  --bg: #17190E; --card: #23241A; --ink: #F0EEE7; --muted: #9A9685;
  --green: #B5AA88; --green-deep: #E4E0D4; --gold: #E8B43A; --gold-ink: #E8B43A;
  --line: #35372D; --header-bg: rgba(23,25,14,0.9); --hover: rgba(181,170,136,0.14); --hover-strong: rgba(181,170,136,0.22);
  --dot: rgba(181,170,136,0.35); --shadow-card: rgba(0,0,0,0.35); --stage-glow: rgba(107,84,16,0.35);
}
html.dark body[data-theme="t3"] {
  --bg: #0E1415; --card: #1A2021; --ink: #E9EAEC; --muted: #888D91;
  --green: #9098A1; --green-deep: #D7DADD; --gold: #E8B43A; --gold-ink: #E8B43A;
  --line: #2D3333; --header-bg: rgba(14,20,21,0.9); --hover: rgba(144,152,161,0.14); --hover-strong: rgba(144,152,161,0.22);
  --dot: rgba(144,152,161,0.35); --shadow-card: rgba(0,0,0,0.35); --stage-glow: rgba(33,48,67,0.35);
}
html.dark body[data-theme="t4"] {
  --bg: #1C1810; --card: #27241C; --ink: #F3EDE9; --muted: #A29588;
  --green: #C4A68F; --green-deep: #EADFD7; --gold: #E8B43A; --gold-ink: #E8B43A;
  --line: #3A362F; --header-bg: rgba(28,24,16,0.9); --hover: rgba(196,166,143,0.14); --hover-strong: rgba(196,166,143,0.22);
  --dot: rgba(196,166,143,0.35); --shadow-card: rgba(0,0,0,0.35); --stage-glow: rgba(138,78,31,0.35);
}
html.dark body[data-theme="t5"] {
  --bg: #13121C; --card: #1F1E27; --ink: #EDE9F2; --muted: #93899F;
  --green: #A68FBE; --green-deep: #DFD7E7; --gold: #E8B43A; --gold-ink: #E8B43A;
  --line: #32313A; --header-bg: rgba(19,18,28,0.9); --hover: rgba(166,143,190,0.14); --hover-strong: rgba(166,143,190,0.22);
  --dot: rgba(166,143,190,0.35); --shadow-card: rgba(0,0,0,0.35); --stage-glow: rgba(76,31,124,0.35);
}
html.dark body[data-theme="t6"] {
  --bg: #0A181B; --card: #162426; --ink: #E6EDF1; --muted: #81949D;
  --green: #83A6B8; --green-deep: #D2DFE5; --gold: #E8B43A; --gold-ink: #E8B43A;
  --line: #2A3639; --header-bg: rgba(10,24,27,0.9); --hover: rgba(131,166,184,0.14); --hover-strong: rgba(131,166,184,0.22);
  --dot: rgba(131,166,184,0.35); --shadow-card: rgba(0,0,0,0.35); --stage-glow: rgba(7,77,113,0.35);
}
html.dark body[data-theme="t7"] {
  --bg: #0D1C14; --card: #192720; --ink: #E8F0EC; --muted: #879C90;
  --green: #8DB59E; --green-deep: #D6E4DC; --gold: #E8B43A; --gold-ink: #E8B43A;
  --line: #2C3A33; --header-bg: rgba(13,28,20,0.9); --hover: rgba(141,181,158,0.14); --hover-strong: rgba(141,181,158,0.22);
  --dot: rgba(141,181,158,0.35); --shadow-card: rgba(0,0,0,0.35); --stage-glow: rgba(27,107,60,0.35);
}
html.dark body[data-theme="t8"] {
  --bg: #1C1316; --card: #271F22; --ink: #F3EAED; --muted: #A28B94;
  --green: #C494A6; --green-deep: #EAD9DF; --gold: #E8B43A; --gold-ink: #E8B43A;
  --line: #3A3234; --header-bg: rgba(28,19,22,0.9); --hover: rgba(196,148,166,0.14); --hover-strong: rgba(196,148,166,0.22);
  --dot: rgba(196,148,166,0.35); --shadow-card: rgba(0,0,0,0.35); --stage-glow: rgba(138,42,76,0.35);
}
html.dark body[data-theme="t9"] {
  --bg: #1C1B0E; --card: #27261A; --ink: #F3F0E7; --muted: #A29A85;
  --green: #C4B288; --green-deep: #EAE3D4; --gold: #E8B43A; --gold-ink: #E8B43A;
  --line: #3A392D; --header-bg: rgba(28,27,14,0.9); --hover: rgba(196,178,136,0.14); --hover-strong: rgba(196,178,136,0.22);
  --dot: rgba(196,178,136,0.35); --shadow-card: rgba(0,0,0,0.35); --stage-glow: rgba(138,100,16,0.35);
}
html.dark body::before { background: radial-gradient(1100px 480px at 85% -10%, rgba(232,180,58,0.07), transparent 60%); }
html.dark .btn { color: #2A1E05; }
html.dark .card:hover { box-shadow: 0 10px 26px rgba(0,0,0,0.45); }
html.dark .screen img { background: #0E1512; }
html.dark .gp-soon { border-color: #444; }
html.dark .hero::before, html.dark footer::before { opacity: 0.1; }

/* mode toggle */
.mode-toggle { width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--green-deep); cursor: pointer; display: grid; place-items: center; flex: 0 0 auto; transition: transform 0.2s ease, background-color 0.9s ease, border-color 0.9s ease; }
.mode-toggle:active { transform: scale(0.92); }
.mode-toggle svg { grid-area: 1/1; width: 22px; height: 22px; transition: transform 0.5s cubic-bezier(0.22,0.9,0.26,1), opacity 0.3s ease; }
.mode-toggle .i-moon { opacity: 0; transform: rotate(-70deg) scale(0.5); }
html.dark .mode-toggle .i-sun { opacity: 0; transform: rotate(70deg) scale(0.5); }
html.dark .mode-toggle .i-moon { opacity: 1; transform: none; }

/* sky: sun and clouds by day, moon and stars by night */
.hero .sky { position: absolute; left: 0; right: 0; top: 0; height: 100%; z-index: -1; pointer-events: none; overflow: hidden; }
.sky .sun, .sky .moon, .sky .star, .sky .cloud { position: absolute; transition: opacity 0.9s ease; }
.sky .sun { top: 26px; right: 9%; width: 84px; height: 84px; border-radius: 50%;
  background: radial-gradient(circle at 40% 38%, #FFE9A6, #F4C24E 62%, #E8B43A); box-shadow: 0 0 0 14px rgba(244,194,78,0.16), 0 0 70px 26px rgba(244,194,78,0.25); animation: pulse 6s ease-in-out infinite; }
.sky .moon { top: 28px; right: 9%; width: 78px; height: 78px; opacity: 0; filter: none; animation: pulse 8s ease-in-out infinite; }
.sky .cloud { opacity: 0.85; width: 150px; height: 46px; background: #fff; border-radius: 999px; box-shadow: 0 0 0 1px rgba(11,107,75,0.05); }
.sky .cloud::before, .sky .cloud::after { content: ""; position: absolute; background: #fff; border-radius: 50%; }
.sky .cloud::before { width: 62px; height: 62px; left: 22px; top: -28px; } .sky .cloud::after { width: 48px; height: 48px; left: 78px; top: -20px; }
.sky .c1 { top: 70px; left: 6%; animation: drift 46s linear infinite alternate; }
.sky .c2 { top: 150px; left: 56%; transform: scale(0.7); animation: drift2 58s linear infinite alternate; opacity: 0.7; }
.sky .c3 { top: 36px; left: 34%; transform: scale(0.55); animation: drift 70s linear infinite alternate-reverse; opacity: 0.6; }
@keyframes drift { from { transform: translateX(-30px); } to { transform: translateX(70px); } }
@keyframes drift2 { from { transform: scale(0.7) translateX(-40px); } to { transform: scale(0.7) translateX(60px); } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.sky .star { opacity: 0; width: 3px; height: 3px; border-radius: 50%; background: #FFF3C4; box-shadow: 0 0 6px 1px rgba(255,243,196,0.6); }
html.dark .sky .sun, html.dark .sky .cloud { opacity: 0; }
html.dark .sky .moon { opacity: 1; }
html.dark .sky .star { animation: twinkle 3.6s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: 0.15; } 50% { opacity: 1; } }
.sky .s1 { top: 12%; left: 8%; } .sky .s2 { top: 26%; left: 20%; animation-delay: -1.2s !important; } .sky .s3 { top: 9%; left: 33%; animation-delay: -2.1s !important; } .sky .s4 { top: 30%; left: 44%; animation-delay: -0.6s !important; }
.sky .s5 { top: 14%; left: 57%; animation-delay: -2.8s !important; } .sky .s6 { top: 38%; left: 70%; animation-delay: -1.7s !important; } .sky .s7 { top: 8%; left: 78%; animation-delay: -0.3s !important; } .sky .s8 { top: 44%; left: 90%; animation-delay: -2.4s !important; }
.sky .s9 { top: 52%; left: 12%; animation-delay: -1s !important; } .sky .s10 { top: 60%; left: 83%; animation-delay: -3s !important; }
@media (max-width: 760px) { .sky .sun, .sky .moon { width: 56px; height: 56px; right: 5%; top: 16px; } .sky .c3 { display: none; } .sky .s9, .sky .s10 { display: none; } }
@media (prefers-reduced-motion: reduce) { .sky *, .mode-toggle svg { animation: none !important; } }

/* mode-dependent lines (day / night) */
.mn { display: none; } html.dark .mn { display: block; } html.dark .md { display: none; }
html.dark .greet span.mn { display: inline; }
.greet { font-family: "Amiri Quran", serif; color: var(--gold-ink); font-size: 1.15rem; margin-top: 14px; min-height: 1.8em; }
.greet span.md { display: inline; }
.verse cite.md, .verse cite.mn { display: block; }
html.dark .verse cite.md, html:not(.dark) .verse cite.mn, html:not(.dark) .verse p.mn { display: none; }
html.dark .greet span.md { display: none; }
html:not(.dark) .greet span.mn { display: none; }
.hero::before, footer::before { display: none; }

.card .mini { display: flex; gap: 10px; justify-content: center; margin-top: 14px; }
.card .mini .gph { display: block; width: 96px; border-radius: 18px; padding: 4px; }
.card .mini .gph:hover { transform: none; }
.card .mini .screen { display: block; border-radius: 14px; }
.card .mini .gph .screen::before { display: none; }
.card .mini img { display: block; width: 100%; height: auto; }
html, body { overflow-x: clip; max-width: 100%; }
@media (max-width: 760px) {
  .cards { grid-template-columns: minmax(0, 1fr) !important; }
  .card { min-width: 0; }
  .nav .links { gap: 2px; }
  .nav .links a { padding: 7px 10px; font-size: 0.92rem; }
  .hero .halo { width: 170px; height: 170px; margin-left: -85px; top: 36px; opacity: 0.16; }
}
