/* Permanent theme lock: ruangdzikir.com is always dark, independent of OS/browser theme. */
:root {
  color-scheme: only dark;
}
html, body {
  color-scheme: only dark !important;
  background-color: #09090b !important;
}
html:not(.dark) {
  color-scheme: only dark !important;
}

:root {
  --ring: rgba(16, 185, 129, .24);
}

html { -webkit-tap-highlight-color: transparent; }
body { overflow-x: hidden; }
button, input, select { outline: none; }
button:focus-visible, input:focus-visible, select:focus-visible {
  box-shadow: 0 0 0 4px var(--ring);
}

.nav-link {
  border-radius: 10px;
  padding: 8px 11px;
  font-size: 13px;
  font-weight: 500;
  color: rgb(113 113 122);
  transition: color .2s ease, background .2s ease;
}
.nav-link:hover { color: rgb(24 24 27); background: rgba(255,255,255,.7); }
.nav-link.is-active { color: rgb(4 120 87); background: rgb(236 253 245); }
.nav-link:hover { color: rgb(244 244 245); background: rgba(39,39,42,.55); }
.nav-link.is-active { color: rgb(110 231 183); background: rgba(6,78,59,.34); }

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border-radius: 13px;
  padding: 11px 12px;
  font-size: 13px;
  font-weight: 500;
  color: rgb(82 82 91);
  transition: background .2s ease, color .2s ease;
}
.mobile-nav-link.is-active { background: rgb(236 253 245); color: rgb(4 120 87); }
.mobile-nav-link { color: rgb(161 161 170); }
.mobile-nav-link.is-active { background: rgba(6,78,59,.32); color: rgb(110 231 183); }

.icon-btn {
  display: inline-grid;
  height: 38px;
  width: 38px;
  place-items: center;
  border-radius: 12px;
  border: 1px solid rgb(228 228 231);
  background: rgba(255,255,255,.72);
  color: rgb(63 63 70);
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.icon-btn:hover { transform: translateY(-1px); background: white; border-color: rgb(212 212 216); }
.icon-btn { border-color: rgb(39 39 42); background: rgba(24,24,27,.8); color: rgb(212 212 216); }
.icon-btn:hover { background: rgb(39 39 42); border-color: rgb(63 63 70); }

.panel {
  border: 1px solid rgb(228 228 231);
  border-radius: 26px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 20px 70px rgba(24,24,27,.06);
}
.panel { border-color: rgb(39 39 42); background: rgba(24,24,27,.64); box-shadow: 0 20px 70px rgba(0,0,0,.18); }

.prayer-surface { min-height: 286px; }

.primary-btn, .secondary-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.primary-btn { background: rgb(4 120 87); color: white; }
.primary-btn:hover { transform: translateY(-1px); background: rgb(5 105 79); }
.primary-btn { background: rgb(16 185 129); color: rgb(2 44 34); }
.primary-btn:hover { background: rgb(52 211 153); }
.secondary-btn { border: 1px solid rgb(228 228 231); background: white; color: rgb(63 63 70); }
.secondary-btn:hover { transform: translateY(-1px); border-color: rgb(212 212 216); background: rgb(250 250 250); }
.secondary-btn { border-color: rgb(63 63 70); background: rgb(24 24 27); color: rgb(228 228 231); }
.secondary-btn:hover { background: rgb(39 39 42); }

.feature-card {
  position: relative;
  overflow: hidden;
  min-height: 205px;
  border: 1px solid rgb(228 228 231);
  border-radius: 22px;
  background: #ffffff;
  padding: 20px;
  color: rgb(24 24 27);
  box-shadow: 0 10px 32px rgba(24,24,27,.045);
  transition: border-color .22s ease, transform .22s ease, box-shadow .22s ease, background .22s ease;
}
.feature-card::after { content:''; position:absolute; inset:auto 0 0; height:3px; background:linear-gradient(90deg, rgba(16,185,129,.0), rgba(16,185,129,.55), rgba(16,185,129,.0)); opacity:.45; }
.feature-card:hover { transform: translateY(-3px); border-color: rgb(167 243 208); background: rgb(255 255 255); box-shadow: 0 16px 40px rgba(24,24,27,.08); }
.feature-card { border-color: #303035 !important; background: #161618 !important; color: #f4f4f5 !important; box-shadow: 0 16px 44px rgba(0,0,0,.18); }
.feature-card:hover { border-color: #047857 !important; background: #1c1c1f !important; box-shadow: 0 20px 50px rgba(0,0,0,.24); }
.feature-icon { display: grid; height: 42px; width: 42px; place-items: center; border-radius: 14px; background: rgb(244 244 245); color: rgb(63 63 70); }
.feature-icon { background: #252528 !important; color: #d4d4d8 !important; border:1px solid #343438; }
.feature-title { display:block; margin-top:20px; font-size:16px; font-weight:650; letter-spacing:-.02em; color:#18181b; }
.feature-title { color:#fafafa !important; }
.feature-copy { display:block; margin-top:8px; font-size:14px; line-height:1.65; color:#71717a; }
.feature-copy { color:#a1a1aa !important; }
.feature-action { display:inline-flex; align-items:center; gap:5px; margin-top:18px; font-size:12px; font-weight:700; color:#047857; }
.feature-action { color:#6ee7b7 !important; }

.eyebrow { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgb(5 150 105); }
.page-title { margin-top: 7px; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.08; font-weight: 600; letter-spacing: -.04em; color: rgb(9 9 11); }
.page-title { color: white; }
.page-subtitle { margin-top: 13px; max-width: 650px; font-size: 15px; line-height: 1.75; color: rgb(113 113 122); }
.page-subtitle { color: rgb(161 161 170); }

.input-field {
  width: 100%;
  border-radius: 13px;
  border: 1px solid rgb(228 228 231);
  background: rgba(255,255,255,.92);
  padding: 10px 12px;
  font-size: 13px;
  color: rgb(39 39 42);
  transition: border-color .18s ease, background .18s ease;
}
.input-field:hover { border-color: rgb(212 212 216); }
.input-field:focus { border-color: rgb(52 211 153); }
.input-field { border-color: rgb(63 63 70); background: rgb(24 24 27); color: rgb(228 228 231); }
.input-field:focus { border-color: rgb(16 185 129); }
.form-label { margin-bottom: 7px; display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgb(113 113 122); }
.form-label { color: rgb(161 161 170); }

.skeleton {
  position: relative;
  overflow: hidden;
  background: rgb(244 244 245);
}
.skeleton::after {
  position: absolute;
  inset: 0;
  content: '';
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.75), transparent);
  animation: shimmer 1.4s infinite;
}
.skeleton { background: rgb(39 39 42); }
.skeleton::after { background: linear-gradient(90deg, transparent, rgba(255,255,255,.05), transparent); }
@keyframes shimmer { to { transform: translateX(100%); } }

.prayer-item { border: 1px solid rgb(228 228 231); border-radius: 15px; padding: 12px 8px; text-align: center; background: rgba(250,250,250,.6); }
.prayer-item { border-color: rgb(39 39 42); background: rgba(9,9,11,.35); }
.prayer-item.is-next { border-color: rgb(167 243 208); background: rgb(236 253 245); }
.prayer-item.is-next { border-color: rgb(6 95 70); background: rgba(6,78,59,.24); }

.surah-card {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: 14px;
  border: 1px solid rgb(228 228 231);
  border-radius: 18px;
  background: rgba(255,255,255,.76);
  padding: 15px;
  text-align: left;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.surah-card:hover { transform: translateY(-2px); border-color: rgb(167 243 208); background: white; }
.surah-card { border-color: rgb(39 39 42); background: rgba(24,24,27,.55); }
.surah-card:hover { border-color: rgb(6 95 70); background: rgb(24 24 27); }
.surah-number { display:grid; height:36px; width:36px; place-items:center; border-radius: 12px; background:rgb(244 244 245); font-size:11px; font-weight:700; color:rgb(82 82 91); }
.surah-number { background:rgb(39 39 42); color:rgb(212 212 216); }

.ayah-card { border: 1px solid rgb(228 228 231); border-radius: 24px; background: rgba(255,255,255,.8); padding: 22px; }
.ayah-card { border-color: rgb(39 39 42); background: rgba(24,24,27,.54); }
.arabic-text { font-family: 'Amiri', serif; font-size: clamp(1.8rem, 5vw, 2.35rem); line-height: 2.15; direction: rtl; text-align: right; color: rgb(24 24 27); }
.arabic-text { color: rgb(250 250 250); }
.latin-text { font-size: 13px; line-height: 1.8; color: rgb(5 150 105); font-style: italic; }
.latin-text { color: rgb(110 231 183); }
.translation-text { font-size: 14px; line-height: 1.85; color: rgb(82 82 91); }
.translation-text { color: rgb(161 161 170); }

.iqro-hero-paper {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(177, 149, 97, .38);
  border-radius: 32px;
  background:
    radial-gradient(circle at top right, rgba(16,185,129,.10), transparent 34%),
    linear-gradient(180deg, rgba(255,250,240,.96), rgba(247,239,223,.96));
  box-shadow: 0 20px 60px rgba(15, 23, 42, .08);
}
.iqro-hero-paper {
  border-color: rgba(154, 121, 78, .45);
  background:
    radial-gradient(circle at top right, rgba(16,185,129,.10), transparent 34%),
    linear-gradient(180deg, rgba(31,27,22,.96), rgba(20,17,14,.98));
  box-shadow: 0 20px 60px rgba(0, 0, 0, .28);
}
.iqro-hero-paper::before {
  content: '';
  position: absolute;
  inset: 16px;
  border-radius: 24px;
  border: 1px solid rgba(164, 130, 74, .28);
  pointer-events: none;
}
.iqro-hero-paper::before { border-color: rgba(164, 130, 74, .20); }
.iqro-hero-grid { display: grid; gap: 28px; padding: 28px; }
@media (min-width: 960px) { .iqro-hero-grid { grid-template-columns: minmax(0,1.2fr) minmax(280px,.8fr); align-items: center; padding: 34px; } }
.iqro-cover-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid rgba(16,185,129,.24);
  background: rgba(255,255,255,.72);
  padding: 9px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  color: rgb(6 95 70);
}
.iqro-cover-badge { background: rgba(24,24,27,.6); color: rgb(110 231 183); border-color: rgba(16,185,129,.22); }
.iqro-hero-title { margin-top: 16px; font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.06; font-weight: 700; letter-spacing: -.04em; color: rgb(24 24 27); }
.iqro-hero-title { color: rgb(250 250 250); }
.iqro-hero-text { margin-top: 14px; max-width: 42rem; font-size: 15px; line-height: 1.9; color: rgb(82 82 91); }
.iqro-hero-text { color: rgb(212 212 216); }
.iqro-hero-meta { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.iqro-hero-meta span {
  display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 9px 12px;
  background: rgba(255,255,255,.8); border: 1px solid rgba(228,228,231,.8); color: rgb(63 63 70); font-size: 12px; font-weight: 500;
}
.iqro-hero-meta span { background: rgba(24,24,27,.6); border-color: rgb(63 63 70); color: rgb(228 228 231); }
.iqro-mini-cover {
  position: relative;
  margin-inline: auto;
  width: min(100%, 320px);
  border-radius: 26px;
  background: linear-gradient(180deg, #272523, #121212);
  padding: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .18);
}
.iqro-mini-cover { box-shadow: 0 24px 60px rgba(0, 0, 0, .32); }
.iqro-mini-frame {
  min-height: 360px;
  border-radius: 18px;
  padding: 18px;
  border: 2px solid rgba(203, 213, 225, .55);
  background:
    linear-gradient(180deg, rgba(190,166,65,.20), rgba(0,0,0,0) 20%),
    linear-gradient(180deg, rgba(15,23,42,.24), rgba(15,23,42,.24)),
    linear-gradient(180deg, #292524, #1c1917);
}
.iqro-mini-top { text-align: center; color: #f8fafc; font-size: 18px; font-weight: 700; letter-spacing: .06em; }
.iqro-mini-center {
  margin: 18px auto 0;
  display: flex; min-height: 220px; width: 100%; flex-direction: column; justify-content: center; gap: 12px;
  border-radius: 24px 24px 50px 50px;
  background: linear-gradient(180deg, #fffefe, #f4ede2);
  border: 3px solid rgba(185, 28, 28, .72);
  padding: 24px 20px; text-align: center;
}
.iqro-mini-sub { font-size: 12px; line-height: 1.6; text-transform: uppercase; letter-spacing: .08em; color: rgb(68 64 60); }
.iqro-mini-word { font-size: clamp(2.7rem, 9vw, 4.2rem); line-height: 1.1; color: rgb(41 37 36); }
.iqro-mini-ribbon {
  margin: 18px auto 0; width: fit-content; border-radius: 999px; background: linear-gradient(180deg, #bbf7d0, #86efac);
  padding: 10px 18px; text-align: center; font-size: 12px; font-weight: 700; letter-spacing: .06em; color: rgb(20 83 45);
}
.iqro-mini-center { background: linear-gradient(180deg, #f5f0e8, #eaddca); }
.iqro-sheet {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(180, 143, 79, .30);
  background: linear-gradient(180deg, rgba(252,248,240,.98), rgba(245,236,218,.98));
  box-shadow: 0 16px 44px rgba(15, 23, 42, .08);
}
.iqro-sheet {
  border-color: rgba(154,121,78,.36);
  background: linear-gradient(180deg, rgba(32,28,24,.98), rgba(24,20,16,.98));
  box-shadow: 0 16px 44px rgba(0, 0, 0, .24);
}
.iqro-sheet::before {
  content: '';
  position: absolute;
  inset: 14px;
  border-radius: 20px;
  border: 1px dashed rgba(164,130,74,.28);
  pointer-events: none;
}
.iqro-sheet::before { border-color: rgba(164,130,74,.18); }
.iqro-sheet-main { position: relative; padding: 22px; }
.iqro-sheet-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.iqro-sheet-lesson {
  display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; background: rgba(5,150,105,.08);
  padding: 8px 12px; font-size: 11px; font-weight: 700; letter-spacing: .16em; color: rgb(6 95 70);
}
.iqro-sheet-lesson { background: rgba(16,185,129,.12); color: rgb(110 231 183); }
.iqro-sheet-badge {
  border-radius: 999px; background: rgba(120,53,15,.08); padding: 8px 12px; font-size: 11px; font-weight: 700; color: rgb(120 53 15);
}
.iqro-sheet-badge { background: rgba(251,191,36,.10); color: rgb(253 224 71); }
.iqro-sheet-title { margin-top: 16px; font-size: 1.5rem; font-weight: 700; letter-spacing: -.03em; color: rgb(28 25 23); }
.iqro-sheet-title { color: rgb(250 250 249); }
.iqro-sheet-copy { margin-top: 8px; font-size: 14px; line-height: 1.75; color: rgb(87 83 78); }
.iqro-sheet-copy { color: rgb(214 211 209); }
.iqro-practice-board {
  margin-top: 18px; border-radius: 22px; background: rgba(255,255,255,.72); border: 1px solid rgba(214,211,209,.95);
  padding: 18px 18px 16px;
}
.iqro-practice-board { background: rgba(9,9,11,.18); border-color: rgba(87,83,78,.8); }
.iqro-practice-label { font-size: 10px; font-weight: 700; letter-spacing: .18em; color: rgb(120 113 108); }
.iqro-practice-label { color: rgb(168 162 158); }
.iqro-practice-arabic { margin-top: 12px; font-family: 'Amiri', serif; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.7; direction: rtl; text-align: right; color: rgb(28 25 23); }
.iqro-practice-arabic { color: rgb(250 250 249); }
.iqro-practice-read { margin-top: 8px; font-size: 13px; font-weight: 600; color: rgb(5 150 105); }
.iqro-practice-read { color: rgb(110 231 183); }
.iqro-practice-words { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.iqro-practice-words span {
  border-radius: 999px; background: rgba(255,255,255,.9); border: 1px solid rgba(214,211,209,.95); padding: 6px 10px;
  font-size: 12px; color: rgb(68 64 60);
}
.iqro-practice-words span { background: rgba(24,24,27,.64); border-color: rgba(87,83,78,.8); color: rgb(231 229 228); }
.iqro-sheet-meta { margin-top: 14px; font-size: 13px; line-height: 1.75; color: rgb(92 87 80); }
.iqro-sheet-meta { color: rgb(214 211 209); }
.iqro-toggle {
  margin-top: 18px; display: inline-flex; align-items: center; gap: 9px; border-radius: 999px; border: 1px solid rgba(16,185,129,.24);
  background: rgba(255,255,255,.78); padding: 10px 14px; font-size: 12px; font-weight: 700; color: rgb(6 95 70);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.iqro-toggle:hover { transform: translateY(-1px); background: rgba(255,255,255,.98); border-color: rgba(16,185,129,.36); }
.iqro-toggle { background: rgba(24,24,27,.62); color: rgb(110 231 183); border-color: rgba(16,185,129,.24); }
.iqro-sheet-detail {
  margin-top: 16px; border-top: 1px dashed rgba(164,130,74,.30); padding-top: 16px;
}
.iqro-sheet-detail { border-top-color: rgba(164,130,74,.18); }
.iqro-sheet-detail p { font-size: 14px; line-height: 1.8; color: rgb(68 64 60); }
.iqro-sheet-detail p { color: rgb(231 229 228); }
.iqro-sheet-tip {
  margin-top: 12px; border-radius: 18px; background: rgba(16,185,129,.08); padding: 13px 14px; font-size: 13px; line-height: 1.7; color: rgb(6 95 70);
}
.iqro-sheet-tip { background: rgba(16,185,129,.10); color: rgb(167 243 208); }


.hijaiyah-hero {
  display:grid;
  gap:24px;
  align-items:center;
  overflow:hidden;
  border:1px solid rgba(180,143,79,.30);
  border-radius:30px;
  padding:24px;
  background:linear-gradient(135deg, #fffaf0 0%, #f8f1e4 58%, #eefbf4 100%);
  box-shadow:0 18px 52px rgba(24,24,27,.06);
}
.hijaiyah-hero { border-color:#3b342b; background:linear-gradient(135deg,#1d1a17 0%,#171717 58%,#0f1d18 100%); box-shadow:0 18px 52px rgba(0,0,0,.22); }
@media(min-width:860px){.hijaiyah-hero{grid-template-columns:1.15fr .85fr;padding:30px 34px;}}
.hijaiyah-kicker{display:inline-flex;border:1px solid rgba(5,150,105,.18);border-radius:999px;background:rgba(255,255,255,.72);padding:7px 11px;font-size:10px;font-weight:800;letter-spacing:.15em;text-transform:uppercase;color:#047857}
.hijaiyah-kicker{background:rgba(24,24,27,.65);border-color:rgba(16,185,129,.22);color:#6ee7b7}
.hijaiyah-hero-copy h2{margin-top:14px;font-family:'Amiri',serif;font-size:clamp(3rem,8vw,5.3rem);line-height:1;text-align:left;color:#292524}
.hijaiyah-hero-copy h2{color:#fafaf9}
.hijaiyah-hero-copy p{margin-top:12px;max-width:600px;font-size:14px;line-height:1.85;color:#57534e}
.hijaiyah-hero-copy p{color:#d6d3d1}
.hijaiyah-legend{display:flex;flex-wrap:wrap;gap:8px;margin-top:17px}
.hijaiyah-legend span{display:inline-flex;align-items:center;gap:7px;border-radius:999px;border:1px solid rgba(214,211,209,.9);background:rgba(255,255,255,.74);padding:8px 10px;font-size:11px;font-weight:600;color:#57534e}
.hijaiyah-legend span{border-color:#3f3f46;background:rgba(24,24,27,.58);color:#d4d4d8}
.hijaiyah-book{width:min(100%,280px);margin-inline:auto;border-radius:24px;background:#18181b;padding:12px;box-shadow:0 22px 45px rgba(0,0,0,.18)}
.hijaiyah-book-inner{min-height:300px;border-radius:17px;border:2px solid rgba(212,212,216,.5);padding:18px;background:linear-gradient(180deg,#26231f,#111827);text-align:center}
.hijaiyah-book-label{font-size:10px;font-weight:800;letter-spacing:.18em;color:#d4d4d8}
.hijaiyah-book-title{margin-top:10px;font-size:18px;font-weight:800;letter-spacing:.05em;color:white}
.hijaiyah-book-arabic{margin-top:28px;border-radius:22px 22px 48px 48px;border:3px solid rgba(185,28,28,.75);background:#fffaf3;padding:26px 12px;font-size:4.3rem;line-height:1;color:#292524}
.hijaiyah-book-row{margin-top:16px;font-size:2.1rem;line-height:1.2;color:#f0fdf4}
.hijaiyah-book-footer{margin-top:18px;font-size:10px;font-weight:700;letter-spacing:.14em;color:#86efac}
.hijaiyah-panel,.hijaiyah-detail{border:1px solid rgb(228 228 231);border-radius:26px;background:#fff;padding:20px;box-shadow:0 14px 40px rgba(24,24,27,.05)}
.hijaiyah-panel,.hijaiyah-detail{border-color:#303035;background:#161618;color:#f4f4f5;box-shadow:0 18px 44px rgba(0,0,0,.18)}
.hijaiyah-count{border-radius:999px;background:#f4f4f5;padding:7px 10px;font-size:10px;font-weight:700;color:#71717a}
.hijaiyah-count{background:#27272a;color:#d4d4d8}
.hijaiyah-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
@media(min-width:520px){.hijaiyah-grid{grid-template-columns:repeat(7,minmax(0,1fr));}}
.hijaiyah-char{display:flex;min-height:70px;align-items:center;justify-content:center;border:1px solid #e4e4e7;border-radius:17px;background:#fafafa;font-family:'Amiri',serif;font-size:2rem;color:#27272a;transition:.18s ease}
.hijaiyah-char:hover{transform:translateY(-2px);border-color:#a7f3d0;background:#ecfdf5;color:#065f46}
.hijaiyah-char.is-active{border-color:#34d399;background:#ecfdf5;color:#065f46;box-shadow:0 0 0 3px rgba(16,185,129,.09)}
.hijaiyah-char{border-color:#343438;background:#202023;color:#f4f4f5}
.hijaiyah-char:hover,.hijaiyah-char.is-active{border-color:#047857;background:#0e2a20;color:#a7f3d0}
.hijaiyah-detail-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.hijaiyah-index{font-size:10px;font-weight:800;letter-spacing:.16em;text-transform:uppercase;color:#059669}
.hijaiyah-name{font-size:14px;font-weight:700;color:#3f3f46}.hijaiyah-name{color:#d4d4d8}
.hijaiyah-letter{
  margin-top:8px;
  min-height:158px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:8px 0 18px;
  text-align:center;
  font-size:clamp(5rem,15vw,7.4rem);
  line-height:1;
  color:#18181b;
}
.hijaiyah-letter{color:#fafafa}
.hijaiyah-read-box{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:0}
.hijaiyah-read-box>div{border-radius:16px;background:#fafafa;padding:12px}.hijaiyah-read-box>div{background:#202023}
.hijaiyah-detail-label{display:block;font-size:9px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:#a1a1aa}
.hijaiyah-read-box strong{display:block;margin-top:5px;font-size:14px;color:#27272a}.hijaiyah-read-box strong{color:#f4f4f5}
.hijaiyah-example{margin-top:12px;border-radius:18px;border:1px solid #e4e4e7;padding:14px;text-align:center}.hijaiyah-example{border-color:#343438}
.hijaiyah-example>div{margin-top:7px;font-size:3rem;line-height:1.3;color:#18181b}.hijaiyah-example>div{color:#fafafa}
.hijaiyah-example p{margin-top:3px;font-size:12px;color:#059669}.hijaiyah-example p{color:#6ee7b7}
.hijaiyah-hint{margin-top:13px;font-size:13px;line-height:1.75;color:#71717a}.hijaiyah-hint{color:#a1a1aa}
.hijaiyah-next{margin-top:16px;display:inline-flex;width:100%;align-items:center;justify-content:center;gap:8px;border-radius:14px;background:#047857;padding:11px 14px;font-size:12px;font-weight:700;color:white;transition:.18s ease}
.hijaiyah-next:hover{background:#065f46;transform:translateY(-1px)}.hijaiyah-next{background:#10b981;color:#022c22}.hijaiyah-next:hover{background:#34d399}

.tasbih-button {
  position: relative;
  z-index: 1;
  display: flex;
  height: 220px;
  width: 220px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgb(228 228 231);
  background: radial-gradient(circle at 50% 35%, #ffffff 0%, #fafafa 68%, #f4f4f5 100%);
  color: rgb(24 24 27);
  box-shadow: 0 20px 45px rgba(24,24,27,.09), inset 0 1px 0 rgba(255,255,255,.8);
  transition: transform .1s ease, box-shadow .2s ease;
  user-select: none;
}
.tasbih-button:active { transform: scale(.975); box-shadow: 0 10px 28px rgba(24,24,27,.08), inset 0 2px 8px rgba(24,24,27,.04); }
.tasbih-button { border-color: rgb(63 63 70); background: radial-gradient(circle at 50% 35%, #27272a 0%, #18181b 72%, #09090b 100%); color: white; box-shadow: 0 22px 50px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.06); }
@media (min-width: 640px) { .tasbih-button { height: 248px; width: 248px; } }

.view-enter { animation: viewIn .28s ease both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

@media(max-width:639px){.hijaiyah-letter{min-height:138px;font-size:5.8rem;padding-bottom:16px}.hijaiyah-read-box{gap:8px}}


/* Asmaul Husna */
.asmaul-highlight{
  display:grid;
  gap:24px;
  align-items:center;
  overflow:hidden;
  border:1px solid #303035;
  border-radius:28px;
  background:
    radial-gradient(circle at 85% 20%, rgba(16,185,129,.12), transparent 32%),
    linear-gradient(135deg,#161618 0%,#111113 72%,#0b1713 100%);
  padding:24px;
  box-shadow:0 18px 48px rgba(0,0,0,.18);
}
@media(min-width:768px){.asmaul-highlight{grid-template-columns:minmax(0,1fr) auto;padding:28px 32px}}
.asmaul-kicker{display:inline-flex;font-size:11px;font-weight:700;letter-spacing:.18em;color:#6ee7b7}
.asmaul-highlight h2{margin-top:10px;max-width:680px;font-size:clamp(1.65rem,4vw,2.6rem);font-weight:700;line-height:1.12;letter-spacing:-.04em;color:#fafafa}
.asmaul-highlight p{margin-top:12px;max-width:650px;font-size:14px;line-height:1.8;color:#a1a1aa}
.asmaul-highlight-arabic{display:grid;min-height:126px;min-width:190px;place-items:center;border:1px solid rgba(16,185,129,.18);border-radius:24px;background:rgba(6,78,59,.12);padding:18px 26px;font-size:clamp(3.4rem,9vw,5.8rem);line-height:1;color:#d1fae5}
.asmaul-grid{display:grid;grid-template-columns:1fr;gap:12px}
@media(min-width:640px){.asmaul-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(min-width:1024px){.asmaul-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
.asmaul-card{
  position:relative;
  overflow:hidden;
  min-height:210px;
  border:1px solid #303035;
  border-radius:22px;
  background:#161618;
  padding:18px;
  transition:transform .18s ease,border-color .18s ease,background .18s ease;
}
.asmaul-card:hover{transform:translateY(-2px);border-color:#047857;background:#191b1a}
.asmaul-card::after{content:'';position:absolute;right:-32px;top:-42px;width:115px;height:115px;border:1px solid rgba(16,185,129,.10);border-radius:999px;pointer-events:none}
.asmaul-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.asmaul-number{display:grid;height:32px;width:32px;place-items:center;border-radius:10px;background:#252528;font-size:10px;font-weight:800;color:#a1a1aa}
.asmaul-translit{font-size:12px;font-weight:700;color:#6ee7b7}
.asmaul-arabic{margin-top:20px;text-align:right;font-family:'Amiri',serif;font-size:2.55rem;line-height:1.35;color:#fafafa}
.asmaul-name{margin-top:14px;font-size:16px;font-weight:700;letter-spacing:-.02em;color:#f4f4f5}
.asmaul-meaning{margin-top:5px;font-size:13px;line-height:1.65;color:#a1a1aa}


/* =========================================================
   FIXED DARK PALETTE
   These rules intentionally ignore prefers-color-scheme.
   ========================================================= */
html, body { background:#09090b !important; color:#f4f4f5 !important; }
body { forced-color-adjust:none; }
header { background:rgba(9,9,11,.92) !important; border-color:#27272a !important; }
footer { border-color:#27272a !important; }
::selection { background:rgba(6,78,59,.8); color:#ecfdf5; }
input, select, textarea, button { color-scheme:dark !important; }

/* Keep the Asmaul Husna Allah mark fully inside its box. */
.asmaul-highlight-arabic{
  display:flex !important;
  width:210px;
  min-width:210px;
  height:156px;
  min-height:156px;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  padding:14px 18px 10px !important;
  font-size:clamp(3.2rem,7vw,4.7rem) !important;
  line-height:1.35 !important;
  text-align:center;
}
.asmaul-highlight-arabic span{
  display:block;
  max-width:100%;
  line-height:1.35;
  transform:translateY(3px);
  white-space:nowrap;
}
@media(max-width:767px){
  .asmaul-highlight-arabic{width:100%;min-width:0;height:132px;min-height:132px;font-size:3.8rem !important;}
}

/* Qibla */
.qibla-layout {
  display: grid;
  gap: 18px;
  align-items: start;
}

@media (min-width: 900px) {
  .qibla-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, .75fr);
  }
}

.qibla-compass-card,
.qibla-control-card {
  border: 1px solid #303035;
  border-radius: 28px;
  background: #161618;
  box-shadow: 0 18px 55px rgba(0, 0, 0, .20);
}

.qibla-compass-card {
  padding: 24px;
  text-align: center;
}

.qibla-control-card {
  padding: 22px;
}

.qibla-compass-wrap {
  width: min(78vw, 390px);
  height: min(78vw, 390px);
  margin: 0 auto;
  display: grid;
  place-items: center;
  border-radius: 999px;
  transition: box-shadow .25s ease;
}

.qibla-compass-wrap.is-aligned {
  box-shadow: 0 0 0 5px rgba(16, 185, 129, .10), 0 0 60px rgba(16, 185, 129, .16);
}

.qibla-compass {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  border: 1px solid #3f3f46;
  background: radial-gradient(circle at 50% 48%, #1b1b1e 0%, #121214 66%, #0d0d0f 100%);
  box-shadow: inset 0 0 0 12px rgba(255, 255, 255, .012), 0 20px 50px rgba(0, 0, 0, .28);
}

.qibla-compass::before {
  content: '';
  position: absolute;
  inset: 9%;
  border-radius: 999px;
  border: 1px solid rgba(110, 231, 183, .12);
}

.qibla-compass::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 4%;
  width: 2px;
  height: 18px;
  transform: translateX(-50%);
  border-radius: 99px;
  background: #6ee7b7;
  box-shadow: 0 0 16px rgba(110, 231, 183, .45);
}

.qibla-ticks {
  position: absolute;
  inset: 4%;
  border-radius: 999px;
  background: repeating-conic-gradient(from 0deg, rgba(161, 161, 170, .36) 0deg 1deg, transparent 1deg 10deg);
  -webkit-mask: radial-gradient(circle, transparent 0 88%, #000 88%);
  mask: radial-gradient(circle, transparent 0 88%, #000 88%);
}

.qibla-cardinal {
  position: absolute;
  z-index: 3;
  font-size: 11px;
  font-weight: 800;
  color: #a1a1aa;
}

.qibla-n {
  top: 9%;
  left: 50%;
  transform: translateX(-50%);
  color: #6ee7b7;
}

.qibla-e {
  right: 9%;
  top: 50%;
  transform: translateY(-50%);
}

.qibla-s {
  bottom: 9%;
  left: 50%;
  transform: translateX(-50%);
}

.qibla-w {
  left: 9%;
  top: 50%;
  transform: translateY(-50%);
}

.qibla-arrow {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  transform-origin: center center;
  transition: transform .16s linear;
}

.qibla-arrow-line {
  position: absolute;
  left: -3px;
  bottom: 0;
  width: 6px;
  height: 126px;
  border-radius: 999px;
  background: linear-gradient(180deg, #6ee7b7 0%, #10b981 62%, rgba(16, 185, 129, .18) 100%);
  transform: translateY(-6px);
  box-shadow: 0 0 24px rgba(16, 185, 129, .22);
}

.qibla-arrow-line::after {
  content: '';
  position: absolute;
  left: 50%;
  top: -10px;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 18px solid #a7f3d0;
}

.qibla-kaaba {
  position: absolute;
  left: 50%;
  bottom: 136px;
  display: grid;
  height: 38px;
  width: 38px;
  place-items: center;
  transform: translateX(-50%);
  border-radius: 12px;
  border: 1px solid #065f46;
  background: #022c22;
  color: #a7f3d0;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .30);
}

.qibla-center-dot {
  position: absolute;
  z-index: 8;
  left: 50%;
  top: 50%;
  height: 18px;
  width: 18px;
  transform: translate(-50%, -50%);
  border: 5px solid #18181b;
  border-radius: 999px;
  background: #6ee7b7;
  box-shadow: 0 0 0 1px #047857;
}

.qibla-live-status {
  margin: 20px auto 0;
  min-height: 24px;
  max-width: 520px;
  font-size: 14px;
  line-height: 1.65;
  color: #d4d4d8;
}

.qibla-compass-wrap.is-aligned + .qibla-live-status {
  color: #6ee7b7;
  font-weight: 600;
}

.qibla-bearing-row {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.qibla-bearing-row > div {
  border: 1px solid #303035;
  border-radius: 16px;
  background: #1d1d20;
  padding: 12px 8px;
}

.qibla-bearing-row strong {
  display: block;
  margin-top: 5px;
  font-size: 15px;
  color: #fafafa;
}

.qibla-stat-label {
  display: block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: #71717a;
}

.qibla-control-icon {
  display: grid;
  height: 44px;
  width: 44px;
  place-items: center;
  border-radius: 14px;
  border: 1px solid #064e3b;
  background: rgba(6, 78, 59, .28);
  color: #6ee7b7;
}

.qibla-control-card h2 {
  margin-top: 16px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.025em;
  color: #fafafa;
}

.qibla-control-card > p {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.8;
  color: #a1a1aa;
}

.qibla-location-box {
  margin-top: 18px;
  border: 1px solid #303035;
  border-radius: 16px;
  background: #1d1d20;
  padding: 13px 14px;
}

.qibla-location-box strong {
  display: block;
  margin-top: 5px;
  font-size: 13px;
  color: #f4f4f5;
}

.qibla-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 14px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #71717a;
}

.qibla-divider span {
  height: 1px;
  flex: 1;
  background: #303035;
}

.qibla-note {
  display: flex;
  gap: 9px;
  margin-top: 16px;
  border-radius: 16px;
  background: rgba(6, 78, 59, .13);
  padding: 12px;
  color: #a7f3d0;
  font-size: 11px;
  line-height: 1.65;
}

.qibla-note svg {
  margin-top: 2px;
  flex: none;
}

.qibla-spinner {
  height: 15px;
  width: 15px;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  border-radius: 999px;
  animation: qiblaSpin .7s linear infinite;
}

@keyframes qiblaSpin {
  to { transform: rotate(360deg); }
}

@media (max-width: 520px) {
  .qibla-compass-card { padding: 18px 12px; }
  .qibla-bearing-row { grid-template-columns: 1fr; }
  .qibla-arrow-line { height: 96px; }
  .qibla-kaaba { bottom: 106px; }
  .qibla-control-card { padding: 18px; }
}


/* =========================================================
   FINAL VISUAL POLISH — ASMAUL + HIJAIYAH COVER
   Keep Arabic glyphs visually centered with safe breathing room.
   ========================================================= */
.asmaul-highlight-arabic{
  width:220px !important;
  min-width:220px !important;
  height:184px !important;
  min-height:184px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:24px 24px 20px !important;
  overflow:hidden !important;
  text-align:center !important;
  font-size:4.45rem !important;
  line-height:1.45 !important;
}
.asmaul-highlight-arabic span{
  display:flex !important;
  width:100%;
  height:100%;
  align-items:center;
  justify-content:center;
  max-width:100%;
  padding:10px 4px 8px;
  line-height:1.45 !important;
  white-space:nowrap;
  transform:translateY(7px) !important;
}

.hijaiyah-book-arabic{
  min-height:152px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-top:28px;
  padding:24px 18px 18px !important;
  overflow:hidden;
  font-size:3.85rem !important;
  line-height:1.45 !important;
  text-align:center;
  transform:none;
}

@media(max-width:767px){
  .asmaul-highlight-arabic{
    width:100% !important;
    min-width:0 !important;
    height:154px !important;
    min-height:154px !important;
    padding:20px 20px 16px !important;
    font-size:4rem !important;
  }
  .asmaul-highlight-arabic span{
    transform:translateY(6px) !important;
  }
  .hijaiyah-book-arabic{
    min-height:142px;
    padding:22px 16px 16px !important;
    font-size:3.65rem !important;
  }
}
