:root {
  --bg: #f7f1e8;
  --bg-2: #fffaf1;
  --surface: rgba(255, 255, 255, 0.84);
  --surface-2: #ffffff;
  --surface-soft: #fbf7ef;
  --text: #162033;
  --muted: #7a8698;
  --muted-2: #98a2b3;
  --primary: #064e3b;
  --primary-2: #0f766e;
  --primary-soft: #e8f8ef;
  --primary-line: #bfe8cf;
  --gold: #d6a84f;
  --gold-soft: #fff3ce;
  --danger: #b42318;
  --danger-soft: #fee4e2;
  --line: rgba(127, 99, 54, 0.16);
  --line-2: rgba(127, 99, 54, 0.28);
  --shadow: 0 28px 90px rgba(22, 32, 51, 0.13);
  --shadow-soft: 0 14px 42px rgba(22, 32, 51, 0.08);
  --radius-xl: 36px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --container: 1180px;
  --header-h: 78px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root.dark {
  --bg: #071a16;
  --bg-2: #0b211d;
  --surface: rgba(16, 35, 30, 0.86);
  --surface-2: #10231e;
  --surface-soft: #132c25;
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --primary: #10b981;
  --primary-2: #34d399;
  --primary-soft: rgba(16, 185, 129, 0.12);
  --primary-line: rgba(16, 185, 129, 0.28);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.28);
  --shadow-soft: 0 14px 42px rgba(0, 0, 0, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 26px); }
body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 48%, var(--bg-2) 100%);
  color: var(--text);
  overflow-x: hidden;
  font-feature-settings: "tnum" 1;
}
body::selection { background: var(--primary-soft); color: var(--primary); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-bg { position: fixed; inset: 0; pointer-events: none; z-index: -1; overflow: hidden; }
.bg-orb { position: absolute; border-radius: 999px; filter: blur(10px); opacity: 0.78; }
.bg-orb-a { width: 520px; height: 520px; left: -220px; top: -200px; background: radial-gradient(circle, rgba(214,168,79,.30), transparent 65%); }
.bg-orb-b { width: 600px; height: 600px; right: -260px; top: 240px; background: radial-gradient(circle, rgba(6,78,59,.18), transparent 68%); }
.bg-grid { position: absolute; inset: 0; opacity: .06; background-image: linear-gradient(30deg, var(--primary) 12%, transparent 12.5%, transparent 87%, var(--primary) 87.5%), linear-gradient(150deg, var(--primary) 12%, transparent 12.5%, transparent 87%, var(--primary) 87.5%); background-size: 92px 160px; }

.app-header {
  position: sticky;
  top: 14px;
  z-index: 30;
  width: min(calc(100% - 36px), var(--container));
  min-height: var(--header-h);
  margin: 16px auto 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  background: color-mix(in srgb, var(--surface-2) 76%, transparent);
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow-soft);
}
.brand { display: inline-flex; gap: 12px; align-items: center; min-width: 0; }
.brand-mark { width: 52px; height: 52px; border-radius: 19px; display: grid; place-items: center; color: #fff; background: radial-gradient(circle at 70% 20%, rgba(214,168,79,.46), transparent 35%), linear-gradient(135deg, #04382b, #0f766e); box-shadow: 0 14px 28px rgba(6,78,59,.23); flex: none; }
.brand-mark svg { width: 32px; height: 32px; fill: currentColor; }
.brand-text strong { display: block; font-size: 18px; font-weight: 950; letter-spacing: -0.045em; }
.brand-text small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; font-weight: 800; white-space: nowrap; }
.desktop-nav { justify-self: center; display: inline-flex; gap: 4px; padding: 6px; border-radius: 999px; background: color-mix(in srgb, var(--bg) 68%, transparent); border: 1px solid var(--line); }
.desktop-nav a { padding: 10px 13px; border-radius: 999px; color: var(--muted); font-size: 14px; font-weight: 900; transition: .18s ease; }
.desktop-nav a:hover, .desktop-nav a.active { background: var(--surface-2); color: var(--primary); box-shadow: 0 8px 18px rgba(22,32,51,.06); }
.header-actions { display: inline-flex; gap: 8px; align-items: center; justify-content: flex-end; }
.round-action, .lang-pill, .login-pill, .logout-pill, .icon-text-button { border: 0; cursor: pointer; font-weight: 950; }
.round-action, .lang-pill { width: 46px; height: 46px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); }
.login-pill { min-height: 46px; border-radius: 999px; padding: 0 18px; color: #fff; background: linear-gradient(135deg, var(--text), #064e3b); box-shadow: 0 14px 28px rgba(22,32,51,.18); }
.logout-pill { min-height: 42px; padding: 0 14px; border-radius: 999px; background: var(--surface-soft); color: var(--muted); border: 1px solid var(--line); }
.hidden { display: none !important; }

.site-shell { width: min(calc(100% - 36px), var(--container)); margin: 0 auto; }
.section-anchor { scroll-margin-top: calc(var(--header-h) + 32px); }
.hero-section { min-height: calc(100vh - 120px); padding: 86px 0 64px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); gap: 56px; align-items: center; }
.reveal-on-load { animation: revealUp .65s cubic-bezier(.2,.9,.2,1) both; }
.hero-device { animation-delay: .12s; }
@keyframes revealUp { from { opacity: 0; transform: translateY(18px) scale(.985); filter: blur(6px); } to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); } }
.kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--primary); font-size: 13px; font-weight: 950; letter-spacing: .08em; text-transform: uppercase; }
.kicker span:first-child { width: 10px; height: 10px; border-radius: 999px; background: var(--gold); box-shadow: 0 0 0 8px rgba(214,168,79,.16); }
.kicker.text-only { display: block; letter-spacing: .12em; }
.hero-copy h1 { margin: 18px 0 22px; max-width: 760px; font-size: clamp(48px, 6.4vw, 86px); line-height: .92; letter-spacing: -.076em; font-weight: 950; }
.hero-lead { max-width: 640px; margin: 0 0 28px; color: var(--muted); font-size: clamp(17px, 2vw, 21px); line-height: 1.72; font-weight: 700; }
.status-chip { width: fit-content; display: inline-flex; align-items: center; gap: 9px; min-height: 42px; padding: 0 15px; border-radius: 999px; background: color-mix(in srgb, var(--primary-soft) 74%, var(--surface-2)); border: 1px solid var(--primary-line); color: var(--primary); font-size: 14px; font-weight: 900; margin-bottom: 22px; }
.status-chip.is-error { color: var(--danger); background: var(--danger-soft); border-color: rgba(180,35,24,.24); }
.pulse-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--gold); animation: pulse 1.5s ease-in-out infinite; }
@keyframes pulse { 0%,100% { transform: scale(.82); opacity: .55; } 50% { transform: scale(1.08); opacity: 1; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-actions.compact { margin-top: 18px; }
.btn { min-height: 56px; padding: 0 22px; border-radius: 19px; border: 0; display: inline-flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; font-weight: 950; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.99); }
.btn-primary { color: #fff; background: radial-gradient(circle at 75% 24%, rgba(214,168,79,.32), transparent 36%), linear-gradient(135deg, var(--text), #064e3b); box-shadow: 0 18px 42px rgba(6,78,59,.24); }
.btn-secondary { color: var(--text); background: var(--surface); border: 1px solid var(--line); box-shadow: 0 12px 28px rgba(22,32,51,.06); }
.metric-strip { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.metric-strip article { min-width: 128px; padding: 16px 18px; border-radius: 23px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(22,32,51,.04); }
.metric-strip strong { display: block; font-size: 28px; letter-spacing: -.05em; }
.metric-strip span { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; font-weight: 850; }

.hero-device { position: relative; min-height: 620px; display: grid; place-items: center; }
.device-shell { width: min(410px, 100%); padding: 18px; border-radius: 46px; background: linear-gradient(160deg, rgba(255,255,255,.92), rgba(255,247,230,.66)); border: 1px solid rgba(255,255,255,.72); box-shadow: 0 44px 120px rgba(22,32,51,.22); backdrop-filter: blur(22px); }
:root.dark .device-shell { background: linear-gradient(160deg, rgba(16,35,30,.92), rgba(19,44,37,.72)); border-color: var(--line-2); }
.device-top { display: flex; justify-content: space-between; align-items: center; margin: 3px 6px 14px; color: var(--muted); font-size: 13px; font-weight: 950; }
.device-main-card { min-height: 235px; padding: 24px; border-radius: 34px; color: #fff; background: radial-gradient(circle at 84% 16%, rgba(214,168,79,.5), transparent 28%), linear-gradient(145deg, #04382b, #0f766e); position: relative; overflow: hidden; }
.device-main-card::after { content: ""; position: absolute; right: -38px; bottom: -70px; width: 190px; height: 190px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; }
.device-pill { display: inline-flex; padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,.14); font-size: 12px; font-weight: 950; }
.device-main-card h2 { margin: 42px 0 6px; font-size: 52px; letter-spacing: -.08em; }
.device-main-card p { margin: 0 0 6px; color: rgba(255,255,255,.74); font-weight: 850; }
.device-main-card strong { color: #ffe39b; font-size: 36px; letter-spacing: -.05em; }
.device-mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0; }
.device-mini-grid .mini-card, .skeleton-card { min-height: 92px; border-radius: 26px; padding: 18px; background: var(--surface); border: 1px solid var(--line); }
.mini-card span, .preview-row span { color: var(--muted); font-size: 13px; font-weight: 850; }
.mini-card strong { display: block; margin-top: 8px; font-size: 24px; letter-spacing: -.05em; }
.device-list { padding: 10px; border-radius: 30px; background: var(--surface); border: 1px solid var(--line); }
.preview-row { display: flex; justify-content: space-between; align-items: center; padding: 15px 16px; border-radius: 20px; font-weight: 950; }
.preview-row.active { background: var(--primary); color: #fff; }
.preview-row.active span { color: rgba(255,255,255,.72); }
.float-card { position: absolute; padding: 16px 18px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); backdrop-filter: blur(20px); }
.float-card span { display: block; color: var(--muted); font-size: 13px; font-weight: 900; }
.float-card strong { display: block; margin-top: 6px; font-size: 28px; letter-spacing: -.05em; }
.float-qibla { top: 96px; right: 16px; }
.float-zikr { bottom: 80px; left: 0; }

.personal-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 36px; }
.personal-card, .app-section, .final-cta, .auth-modal { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-soft); backdrop-filter: blur(20px); }
.personal-card { padding: 18px; border-radius: 24px; }
.personal-card span { color: var(--muted); font-size: 13px; font-weight: 850; }
.personal-card strong { display: block; margin-top: 6px; font-size: 24px; letter-spacing: -.05em; }
.app-section { margin: 28px 0; padding: 30px; border-radius: var(--radius-xl); }
.section-head { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; margin-bottom: 24px; }
.section-head h2, .section-copy h2, .final-cta h2 { margin: 8px 0 10px; font-size: clamp(31px, 4vw, 54px); line-height: .98; letter-spacing: -.065em; }
.section-head p, .section-copy p, .final-cta p { color: var(--muted); font-size: 17px; line-height: 1.6; font-weight: 700; max-width: 720px; }
.toolbar, .grid-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field { display: grid; gap: 7px; }
.field span { color: var(--muted); font-size: 12px; font-weight: 900; }
.field input, .field select, .field textarea, .search-box input { width: 100%; min-height: 50px; border-radius: 17px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); padding: 0 14px; outline: none; font-weight: 850; transition: border-color .18s ease, box-shadow .18s ease; }
.field textarea { padding: 14px; resize: vertical; line-height: 1.45; }
.field input:focus, .field select:focus, .field textarea:focus, .search-box input:focus { border-color: var(--primary-line); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary-soft) 68%, transparent); }
.field.compact input, .field.compact select { min-height: 46px; }

.times-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 18px; }
.next-prayer-card { min-height: 350px; padding: 28px; border-radius: 30px; color: #fff; background: radial-gradient(circle at 88% 18%, rgba(214,168,79,.42), transparent 30%), linear-gradient(135deg, var(--text), #064e3b); display: flex; flex-direction: column; justify-content: flex-end; box-shadow: 0 22px 54px rgba(6,78,59,.22); }
.next-prayer-card span, .next-prayer-card p { color: rgba(255,255,255,.74); font-weight: 850; }
.next-prayer-card h3 { margin: 10px 0; font-size: 72px; letter-spacing: -.08em; }
.next-prayer-card strong { color: #ffe39b; font-size: 38px; letter-spacing: -.05em; }
.prayer-times-card { display: grid; gap: 11px; }
.time-row { min-height: 58px; padding: 0 18px; border-radius: 21px; display: flex; justify-content: space-between; align-items: center; background: var(--surface-2); border: 1px solid var(--line); animation: fadeIn .24s ease both; }
.time-row span { color: var(--muted); font-weight: 900; }
.time-row strong { font-size: 22px; letter-spacing: -.04em; }
.time-row.selected { color: #fff; background: var(--primary); border-color: var(--primary); box-shadow: 0 18px 34px rgba(6,78,59,.2); }
.time-row.selected span { color: rgba(255,255,255,.76); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.split-section { display: grid; grid-template-columns: 1fr .86fr; gap: 28px; align-items: center; }
.helper-text { color: var(--muted); font-weight: 800; }
.compass-card { display: grid; place-items: center; padding: 24px; }
.compass { width: 280px; aspect-ratio: 1; border-radius: 999px; display: grid; place-items: center; position: relative; background: radial-gradient(circle, var(--surface-2) 0 42%, transparent 43%), conic-gradient(from 0deg, rgba(214,168,79,.16), rgba(6,78,59,.22), rgba(214,168,79,.16)); border: 1px solid var(--line); box-shadow: var(--shadow); }
.compass::before { content: "N"; position: absolute; top: 18px; color: var(--muted); font-weight: 950; }
.needle { position: absolute; width: 8px; height: 116px; transform-origin: 50% 100%; transform: translateY(-58px) rotate(var(--bearing, 285deg)); border-radius: 999px; background: linear-gradient(180deg, var(--gold), var(--primary)); box-shadow: 0 8px 18px rgba(6,78,59,.2); transition: transform .45s cubic-bezier(.2,.9,.2,1); }
.compass strong { font-size: 42px; letter-spacing: -.06em; z-index: 1; }
.compass small { position: absolute; bottom: 78px; color: var(--muted); font-weight: 950; }
.segmented, .target-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.segmented button, .target-pills button { min-height: 42px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); cursor: pointer; font-weight: 950; }
.segmented button.active, .target-pills button.active { background: var(--primary-soft); color: var(--primary); border-color: var(--primary-line); }
.custom-target { width: 120px; }
.zikr-card { min-height: 360px; display: grid; gap: 14px; place-items: center; padding: 28px; border-radius: 34px; background: linear-gradient(160deg, var(--surface-2), var(--surface-soft)); border: 1px solid var(--line); }
.progress-ring { width: 190px; aspect-ratio: 1; border-radius: 999px; display: grid; place-items: center; background: conic-gradient(var(--primary) calc(var(--progress, 0) * 1turn), color-mix(in srgb, var(--primary-soft) 80%, transparent) 0); position: relative; box-shadow: inset 0 0 0 1px var(--line); }
.progress-ring::after { content: ""; position: absolute; inset: 15px; border-radius: 999px; background: var(--surface-2); }
.progress-ring span, .progress-ring small { z-index: 1; }
.progress-ring span { font-size: 54px; font-weight: 950; letter-spacing: -.06em; }
.progress-ring small { margin-top: 58px; position: absolute; color: var(--muted); font-weight: 900; }
.stack-actions { display: flex; gap: 10px; }

.qazo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.qazo-card { padding: 18px; border-radius: 24px; background: var(--surface-2); border: 1px solid var(--line); }
.qazo-card span { color: var(--muted); font-size: 13px; font-weight: 850; }
.qazo-card strong { display: block; font-size: 32px; margin-top: 6px; letter-spacing: -.06em; }
.empty-state { padding: 18px; border-radius: 22px; background: var(--surface-soft); border: 1px dashed var(--line-2); color: var(--muted); font-weight: 850; grid-column: 1/-1; }
.qazo-form, .settings-card, .feedback-card { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; align-items: end; }
.settings-card { grid-template-columns: repeat(3, 1fr); }
.feedback-card { grid-template-columns: 220px 1fr auto; }
.full { grid-column: span 1; }
.toggle-row { min-height: 54px; padding: 0 14px; border-radius: 17px; background: var(--surface-2); border: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 900; }
.toggle-row input { width: 20px; height: 20px; accent-color: var(--primary); }
.icon-text-button { min-height: 48px; padding: 0 15px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); display: inline-flex; gap: 8px; align-items: center; }
.search-box { min-width: 280px; min-height: 54px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); display: flex; align-items: center; gap: 8px; padding: 0 14px; }
.search-box input { min-height: auto; border: 0; padding: 0; background: transparent; }
.daily-asma-card { margin-bottom: 16px; padding: 22px; border-radius: 26px; background: radial-gradient(circle at 92% 22%, rgba(214,168,79,.22), transparent 28%), var(--surface-2); border: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.daily-asma-card .arabic { direction: rtl; font-size: 46px; color: var(--primary); line-height: 1.1; }
.daily-asma-card strong { display: block; font-size: 24px; letter-spacing: -.04em; }
.daily-asma-card p { margin: 5px 0 0; color: var(--muted); font-weight: 800; }
.asma-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.asma-card { padding: 24px; min-height: 190px; border-radius: 26px; background: var(--surface-2); border: 1px solid var(--line); cursor: pointer; transition: .18s ease; }
.asma-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.asma-card .arabic { direction: rtl; text-align: right; display: block; color: var(--primary); font-size: 42px; margin-bottom: 24px; line-height: 1.1; }
.asma-card strong { display: block; font-size: 21px; letter-spacing: -.04em; }
.asma-card p { color: var(--muted); font-weight: 750; margin: 6px 0 0; }
.final-cta { margin: 34px 0; padding: 34px; border-radius: var(--radius-xl); display: flex; align-items: center; justify-content: space-between; gap: 24px; background: radial-gradient(circle at 94% 16%, rgba(214,168,79,.22), transparent 28%), var(--surface); }
.site-footer { width: min(calc(100% - 36px), var(--container)); margin: 32px auto 28px; color: var(--muted); display: flex; justify-content: space-between; align-items: center; font-weight: 850; }
.site-footer a { color: var(--primary); }

.auth-modal { width: min(92vw, 520px); border: 0; border-radius: 34px; padding: 30px; color: var(--text); }
.auth-modal::backdrop { background: rgba(15,23,42,.42); backdrop-filter: blur(6px); }
.modal-close { position: absolute; right: 18px; top: 16px; width: 42px; height: 42px; border-radius: 15px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); cursor: pointer; font-size: 24px; }
.modal-icon { width: 58px; height: 58px; border-radius: 20px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-size: 24px; font-weight: 950; margin-bottom: 16px; }
.auth-modal h2 { font-size: 38px; line-height: 1; letter-spacing: -.06em; margin: 10px 0; }
.auth-modal p { color: var(--muted); font-weight: 750; line-height: 1.55; }
.telegram-widget-box { min-height: 54px; padding: 14px; border-radius: 22px; background: var(--surface-soft); border: 1px solid var(--line); display: grid; place-items: center; margin: 18px 0; }
.auth-hint { font-size: 13px; }
.auth-hint.is-error { color: var(--danger); }
.toast-host { position: fixed; z-index: 80; right: 18px; bottom: 18px; display: grid; gap: 10px; max-width: 360px; }
.toast { padding: 14px 16px; border-radius: 18px; background: var(--text); color: #fff; box-shadow: var(--shadow); font-weight: 850; animation: toastIn .2s ease both; }
.toast.error { background: var(--danger); }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.skeleton-line, .skeleton-card, .skeleton-row { background: linear-gradient(90deg, rgba(148,163,184,.12), rgba(148,163,184,.28), rgba(148,163,184,.12)); background-size: 200% 100%; animation: shimmer 1.2s ease-in-out infinite; }
.skeleton-line { height: 12px; border-radius: 999px; width: 180px; }
.skeleton-line.wide { width: 260px; }
.skeleton-line.short { width: 120px; margin-top: 10px; }
.skeleton-row { min-height: 58px; border-radius: 21px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.mobile-nav { display: none; }

@media (max-width: 1040px) {
  .desktop-nav { display: none; }
  .app-header { grid-template-columns: 1fr auto; }
  .hero-section { grid-template-columns: 1fr; padding-top: 64px; }
  .hero-device { min-height: auto; }
  .times-layout, .split-section { grid-template-columns: 1fr; }
  .personal-strip { grid-template-columns: repeat(2,1fr); }
  .qazo-form, .settings-card, .feedback-card { grid-template-columns: 1fr 1fr; }
  .asma-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 700px) {
  :root { --header-h: 70px; }
  body { padding-bottom: 86px; }
  .app-header { width: min(calc(100% - 24px), var(--container)); border-radius: 26px; top: 10px; }
  .brand-mark { width: 48px; height: 48px; }
  .brand-text small, .round-action, .logout-pill { display: none; }
  .login-pill { min-height: 42px; padding: 0 13px; font-size: 13px; }
  .site-shell { width: min(calc(100% - 24px), var(--container)); }
  .hero-section { padding: 42px 0 28px; gap: 30px; min-height: auto; }
  .hero-copy h1 { font-size: clamp(42px, 12vw, 58px); }
  .hero-lead { font-size: 16px; }
  .hero-actions, .metric-strip { flex-direction: column; align-items: stretch; }
  .metric-strip article { width: 100%; }
  .float-card { display: none; }
  .app-section { padding: 22px; border-radius: 28px; }
  .section-head { flex-direction: column; }
  .section-head h2, .section-copy h2, .final-cta h2 { font-size: 34px; }
  .toolbar, .grid-two, .personal-strip, .qazo-grid, .qazo-form, .settings-card, .feedback-card, .asma-grid { grid-template-columns: 1fr; }
  .next-prayer-card { min-height: 260px; }
  .next-prayer-card h3 { font-size: 58px; }
  .daily-asma-card { align-items: flex-start; flex-direction: column-reverse; }
  .search-box { min-width: 100%; }
  .final-cta { flex-direction: column; align-items: stretch; padding: 24px; }
  .site-footer { flex-direction: column; align-items: flex-start; gap: 8px; }
  .mobile-nav { position: fixed; z-index: 60; left: 12px; right: 12px; bottom: 12px; display: grid; grid-template-columns: repeat(6,1fr); gap: 6px; padding: 8px; border-radius: 26px; background: color-mix(in srgb, var(--surface-2) 90%, transparent); border: 1px solid var(--line); box-shadow: var(--shadow); backdrop-filter: blur(22px); }
  .mobile-nav a { min-height: 54px; border-radius: 18px; display: grid; place-items: center; gap: 2px; color: var(--muted); font-size: 11px; font-weight: 950; }
  .mobile-nav a span { font-size: 18px; line-height: 1; }
  .mobile-nav a.active { color: var(--primary); background: var(--primary-soft); }
  .toast-host { left: 12px; right: 12px; bottom: 92px; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .001ms !important; }
}


/* v12 interaction and polish layer */
:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--gold) 68%, white);
  outline-offset: 3px;
}

button[disabled], .btn[disabled] {
  cursor: not-allowed;
  opacity: .62;
  transform: none !important;
}

.form-note {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}

.asma-modal {
  width: min(92vw, 580px);
  border: 0;
  border-radius: 34px;
  padding: 0;
  color: var(--text);
  background: var(--surface-2);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.asma-modal::backdrop { background: rgba(15,23,42,.46); backdrop-filter: blur(8px); }
.asma-modal-body {
  padding: 34px;
  background:
    radial-gradient(circle at 92% 8%, rgba(214,168,79,.26), transparent 32%),
    linear-gradient(180deg, var(--surface-2), var(--surface-soft));
}
.asma-detail-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}
.asma-detail-index {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 950;
}
.asma-detail-arabic {
  direction: rtl;
  color: var(--primary);
  font-size: clamp(56px, 12vw, 92px);
  line-height: 1.05;
  text-align: right;
  margin: 6px 0 20px;
}
.asma-detail-title {
  margin: 0;
  font-size: clamp(34px, 8vw, 54px);
  line-height: .96;
  letter-spacing: -.065em;
}
.asma-detail-meaning {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.7;
}
.asma-detail-meta {
  margin-top: 22px;
  display: grid;
  gap: 10px;
}
.asma-detail-meta article {
  padding: 14px 16px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface-2) 75%, var(--primary-soft));
  border: 1px solid var(--line);
}
.asma-detail-meta span {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.asma-detail-meta strong { font-size: 15px; line-height: 1.5; }

[data-asma-index] { position: relative; overflow: hidden; }
[data-asma-index]::after {
  content: "→";
  position: absolute;
  right: 20px;
  bottom: 18px;
  color: var(--gold);
  font-weight: 950;
  opacity: .0;
  transform: translateX(-6px);
  transition: .18s ease;
}
[data-asma-index]:hover::after { opacity: 1; transform: translateX(0); }

@media (max-width: 700px) {
  .mobile-nav { grid-template-columns: repeat(6,1fr); left: 8px; right: 8px; bottom: max(8px, env(safe-area-inset-bottom)); padding: 7px; }
  .mobile-nav a { min-height: 52px; border-radius: 17px; font-size: 10px; }
  .mobile-nav a span { font-size: 17px; }
  .asma-modal-body { padding: 28px 22px; }
}

@media (max-width: 380px) {
  .mobile-nav a b { display: none; }
  .mobile-nav a { min-height: 48px; }
}

/* v13 elegant hero redesign based on approved mockup */
:root {
  --cream: #fff9ef;
  --cream-2: #f7efe1;
  --ink: #122033;
  --deep-emerald: #06463b;
  --emerald-900: #03382f;
  --gold-line: rgba(204, 157, 73, .46);
  --hero-shadow: 0 28px 90px rgba(31, 42, 61, .11);
  --hero-soft-shadow: 0 16px 46px rgba(89, 65, 24, .10);
}

body {
  background:
    radial-gradient(circle at 88% 8%, rgba(220, 176, 91, .16), transparent 28%),
    radial-gradient(circle at 4% 24%, rgba(6, 78, 59, .08), transparent 24%),
    linear-gradient(180deg, #fffaf2 0%, #f8f0e3 54%, #fff8ed 100%);
}

:root.dark body {
  background:
    radial-gradient(circle at 88% 8%, rgba(220, 176, 91, .10), transparent 28%),
    radial-gradient(circle at 4% 24%, rgba(16, 185, 129, .10), transparent 24%),
    linear-gradient(180deg, #071a16 0%, #0b211d 56%, #071a16 100%);
}

.bg-grid {
  opacity: .08;
  background-image:
    linear-gradient(30deg, var(--primary) 12%, transparent 12.5%, transparent 87%, var(--primary) 87.5%),
    linear-gradient(150deg, var(--primary) 12%, transparent 12.5%, transparent 87%, var(--primary) 87.5%);
  background-size: 144px 250px;
  transform: translateY(-36px) scale(1.04);
}

.app-header {
  top: 18px;
  border-color: rgba(204,157,73,.20);
  background: color-mix(in srgb, var(--cream) 82%, transparent);
  box-shadow: 0 18px 54px rgba(89, 65, 24, .08);
}

:root.dark .app-header {
  background: color-mix(in srgb, var(--surface-2) 84%, transparent);
  border-color: var(--line);
}

.brand-mark {
  background: radial-gradient(circle at 70% 22%, rgba(231,192,99,.58), transparent 37%), linear-gradient(135deg, #063a31, #0b6f5f);
}

.login-pill,
.btn-primary {
  background: radial-gradient(circle at 22% 12%, rgba(231,192,99,.38), transparent 34%), linear-gradient(135deg, #064d42, #03382f);
}

.hero-elegant {
  position: relative;
  width: min(100%, 1320px);
  margin: 0 auto;
  min-height: calc(100vh - 92px);
  padding: clamp(48px, 7vw, 86px) 0 36px;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
  column-gap: clamp(38px, 7vw, 88px);
  row-gap: 32px;
  align-items: center;
}

.hero-elegant::before {
  content: "";
  position: absolute;
  inset: 18px -58px auto -58px;
  height: 78%;
  pointer-events: none;
  border-radius: 60px;
  background:
    radial-gradient(circle at 72% 32%, rgba(255,255,255,.68), transparent 35%),
    linear-gradient(90deg, rgba(255,255,255,.28), transparent 62%);
  opacity: .82;
  z-index: -1;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  min-height: 48px;
  padding: 0 28px 0 20px;
  border-radius: 999px;
  background: rgba(255,255,255,.48);
  border: 1px solid rgba(214,168,79,.16);
  box-shadow: 0 16px 46px rgba(89, 65, 24, .06);
  color: var(--deep-emerald);
  letter-spacing: .12em;
  font-size: clamp(12px, 1.1vw, 15px);
}

:root.dark .hero-eyebrow {
  background: rgba(255,255,255,.06);
  color: var(--primary-2);
}

.hero-eyebrow span:first-child {
  width: 17px;
  height: 17px;
  box-shadow: 0 0 0 15px rgba(214,168,79,.15);
}

.hero-copy h1 {
  margin: clamp(28px, 4vw, 42px) 0 22px;
  max-width: 780px;
  font-size: clamp(52px, 6.15vw, 98px);
  line-height: 1.075;
  letter-spacing: -.066em;
  font-weight: 900;
  color: var(--ink);
  white-space: pre-line;
  text-wrap: balance;
  text-shadow: 0 10px 28px rgba(2, 20, 37, .06);
}

:root.dark .hero-copy h1 { color: var(--text); text-shadow: none; }

.hero-lead {
  max-width: 620px;
  margin-bottom: 24px;
  color: color-mix(in srgb, var(--text) 62%, white 8%);
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.48;
  font-weight: 650;
}

:root.dark .hero-lead { color: var(--muted); }

.status-chip {
  min-height: 38px;
  margin: 0 0 24px;
  background: rgba(255,255,255,.50);
  border-color: rgba(214,168,79,.22);
  box-shadow: 0 12px 30px rgba(89, 65, 24, .06);
}

:root.dark .status-chip { background: var(--primary-soft); }

.hero-actions { gap: 22px; }

.hero-actions .btn {
  min-height: 72px;
  min-width: 290px;
  padding: 0 28px;
  border-radius: 15px;
  font-size: 19px;
  letter-spacing: -.018em;
  box-shadow: 0 20px 44px rgba(6,78,59,.16);
}

.hero-actions .btn-secondary {
  min-width: 330px;
  color: var(--deep-emerald);
  background: rgba(255,255,255,.52);
  border: 1.5px solid rgba(189, 143, 55, .54);
  box-shadow: 0 16px 36px rgba(89, 65, 24, .06);
}

:root.dark .hero-actions .btn-secondary {
  background: rgba(255,255,255,.05);
  color: var(--text);
  border-color: var(--line-2);
}

.btn-icon {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
  color: #f6d48a;
  background: rgba(255,255,255,.11);
  font-size: 22px;
  font-weight: 900;
}

.btn-secondary .btn-icon {
  color: #fff;
  background: linear-gradient(135deg, #076252, #06463b);
  border-radius: 999px;
  font-size: 20px;
}

.hero-art {
  position: relative;
  min-height: 640px;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.hero-art::before {
  content: "";
  position: absolute;
  width: 540px;
  height: 540px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255,255,255,.82), rgba(255,255,255,.40) 45%, transparent 72%);
  filter: blur(1px);
  z-index: -2;
}

.mosque-silhouette {
  position: absolute;
  left: 3%;
  right: -6%;
  bottom: 82px;
  height: 158px;
  opacity: .22;
  background:
    radial-gradient(ellipse at 72% 78%, rgba(144,117,68,.42) 0 11%, transparent 11.5%),
    radial-gradient(ellipse at 88% 75%, rgba(144,117,68,.36) 0 10%, transparent 10.5%),
    linear-gradient(to top, rgba(144,117,68,.30) 0 41px, transparent 42px),
    linear-gradient(to top, transparent 0 25px, rgba(144,117,68,.28) 25px 118px, transparent 119px);
  clip-path: polygon(0 100%, 100% 100%, 100% 42%, 93% 42%, 93% 22%, 90% 22%, 90% 42%, 82% 42%, 82% 28%, 76% 5%, 70% 28%, 70% 42%, 62% 42%, 62% 54%, 54% 54%, 54% 35%, 50% 18%, 46% 35%, 46% 54%, 35% 54%, 35% 64%, 28% 64%, 28% 42%, 24% 32%, 20% 42%, 20% 64%, 0 64%);
}

.mihrab-scene {
  position: relative;
  width: min(100%, 540px);
  height: 590px;
  display: grid;
  place-items: end center;
}

.mihrab-frame {
  position: absolute;
  top: 0;
  left: 50%;
  width: 360px;
  height: 520px;
  transform: translateX(-50%);
  border: 2px solid rgba(214,168,79,.54);
  border-bottom: 0;
  border-radius: 190px 190px 18px 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.62), rgba(255,248,235,.38));
  box-shadow:
    inset 0 0 0 18px rgba(255,255,255,.42),
    inset 0 0 0 24px rgba(214,168,79,.18),
    0 28px 90px rgba(89,65,24,.10);
  clip-path: polygon(50% 0, 100% 34%, 100% 100%, 0 100%, 0 34%);
}

.mihrab-inner {
  position: absolute;
  inset: 58px 54px 30px;
  border: 1px solid rgba(214,168,79,.50);
  border-bottom-color: transparent;
  border-radius: 140px 140px 18px 18px;
  overflow: hidden;
  background: rgba(255,255,255,.45);
  clip-path: polygon(50% 0, 100% 30%, 100% 100%, 0 100%, 0 30%);
}

.lattice {
  position: absolute;
  inset: -20px;
  opacity: .30;
  background-image:
    linear-gradient(30deg, rgba(214,168,79,.45) 12%, transparent 12.5%, transparent 87%, rgba(214,168,79,.45) 87.5%),
    linear-gradient(150deg, rgba(214,168,79,.45) 12%, transparent 12.5%, transparent 87%, rgba(214,168,79,.45) 87.5%),
    linear-gradient(30deg, rgba(214,168,79,.35) 12%, transparent 12.5%, transparent 87%, rgba(214,168,79,.35) 87.5%),
    linear-gradient(150deg, rgba(214,168,79,.35) 12%, transparent 12.5%, transparent 87%, rgba(214,168,79,.35) 87.5%);
  background-position: 0 0, 0 0, 44px 76px, 44px 76px;
  background-size: 88px 152px;
}

.scene-platform {
  width: 420px;
  height: 64px;
  margin-bottom: 24px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,.82), rgba(242,226,197,.72));
  border: 1px solid rgba(214,168,79,.12);
  box-shadow: 0 20px 58px rgba(89,65,24,.12);
}

.lantern {
  position: absolute;
  left: 50%;
  bottom: 54px;
  width: 82px;
  height: 126px;
  transform: translateX(-50%);
  border-radius: 32px 32px 16px 16px;
  border: 3px solid rgba(187,133,42,.72);
  background:
    radial-gradient(circle at 50% 70%, rgba(255,228,145,.98), transparent 32%),
    linear-gradient(180deg, #f4d17a, #b77c22);
  box-shadow: 0 12px 34px rgba(160,100,24,.24), inset 0 0 0 8px rgba(255,255,255,.20);
}

.lantern::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -31px;
  width: 30px;
  height: 34px;
  transform: translateX(-50%);
  border: 4px solid rgba(187,133,42,.72);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
}

.lantern::after {
  content: "";
  position: absolute;
  inset: 18px 20px;
  border-left: 2px solid rgba(255,255,255,.42);
  border-right: 2px solid rgba(255,255,255,.42);
}

.lantern span {
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: 30px;
  height: 46px;
  transform: translateX(-50%);
  border-radius: 999px 999px 12px 12px;
  background: rgba(255,248,191,.80);
  filter: blur(.2px);
}

.plant {
  position: absolute;
  right: 24px;
  bottom: 42px;
  width: 122px;
  height: 190px;
}

.plant b {
  position: absolute;
  left: 37px;
  bottom: 0;
  width: 72px;
  height: 66px;
  border-radius: 8px 8px 28px 28px;
  background: linear-gradient(180deg, #fbf7ee, #d8c6a5);
  box-shadow: 0 18px 42px rgba(89,65,24,.12);
}

.plant i {
  position: absolute;
  bottom: 54px;
  left: 58px;
  width: 34px;
  height: 98px;
  border-radius: 100% 0 100% 0;
  background: linear-gradient(135deg, #2f7d3f, #79a866);
  transform-origin: bottom center;
  box-shadow: inset 7px 0 14px rgba(255,255,255,.15);
}
.plant i:nth-child(1) { transform: rotate(-44deg); left: 20px; bottom: 56px; }
.plant i:nth-child(2) { transform: rotate(-12deg); left: 44px; bottom: 82px; height: 112px; }
.plant i:nth-child(3) { transform: rotate(28deg); left: 73px; bottom: 72px; height: 104px; }
.plant i:nth-child(4) { transform: rotate(58deg); left: 86px; bottom: 48px; height: 86px; }

.hero-live-card {
  position: absolute;
  z-index: 4;
  border-radius: 24px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(214,168,79,.18);
  box-shadow: var(--hero-soft-shadow);
  backdrop-filter: blur(18px);
}

:root.dark .hero-live-card {
  background: rgba(16,35,30,.75);
  border-color: var(--line-2);
}

.next-card {
  left: 0;
  top: 104px;
  width: 178px;
  min-height: 178px;
  padding: 18px;
}
.next-card span,
.next-card small,
.next-card b { display: block; color: var(--muted); font-size: 12px; font-weight: 850; font-style: normal; }
.next-card strong { display: block; margin: 12px 0 2px; color: var(--deep-emerald); font-size: 44px; line-height: .92; letter-spacing: -.06em; }
.next-card em { display: block; margin-top: 8px; color: var(--gold); font-size: 27px; font-weight: 950; font-style: normal; letter-spacing: -.04em; }
.next-card b { position: absolute; right: 16px; top: 16px; }

.qibla-card,
.zikr-card-mini {
  min-width: 120px;
  padding: 14px 16px;
}
.qibla-card { right: 6px; top: 108px; }
.zikr-card-mini { left: 30px; bottom: 112px; }
.qibla-card span,
.zikr-card-mini span { display: block; color: var(--muted); font-size: 12px; font-weight: 900; }
.qibla-card strong,
.zikr-card-mini strong { display: block; margin-top: 3px; color: var(--deep-emerald); font-size: 24px; letter-spacing: -.04em; }
:root.dark .next-card strong,
:root.dark .qibla-card strong,
:root.dark .zikr-card-mini strong { color: var(--primary-2); }

.hero-data-cache {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.hero-benefits {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
  gap: 0;
  margin-top: 6px;
  border-radius: 28px;
  background: rgba(255,255,255,.32);
  border: 1px solid rgba(214,168,79,.13);
  box-shadow: 0 18px 60px rgba(89,65,24,.06);
  backdrop-filter: blur(12px);
  overflow: hidden;
}

.hero-benefits article {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px 28px;
  min-height: 112px;
  position: relative;
}
.hero-benefits article + article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22%;
  bottom: 22%;
  width: 1px;
  background: rgba(89,65,24,.13);
}
.benefit-icon {
  width: 62px;
  height: 62px;
  flex: none;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255,246,224,.84);
  border: 1px solid rgba(214,168,79,.12);
  color: #bd8d34;
  font-size: 30px;
  font-weight: 900;
  box-shadow: inset 0 0 0 10px rgba(255,255,255,.42);
}
.hero-benefits strong { display: block; color: var(--ink); font-size: 16px; letter-spacing: -.025em; }
.hero-benefits p { margin: 6px 0 0; color: var(--muted); font-size: 14px; font-weight: 650; line-height: 1.35; }
:root.dark .hero-benefits { background: rgba(255,255,255,.04); border-color: var(--line); }
:root.dark .hero-benefits strong { color: var(--text); }
:root.dark .benefit-icon { background: rgba(214,168,79,.10); color: #e7c063; }

.metric-strip { display: none; }

.app-section,
.personal-strip,
.final-cta {
  background: rgba(255,255,255,.58);
  border-color: rgba(214,168,79,.16);
  box-shadow: 0 24px 70px rgba(89,65,24,.07);
}

:root.dark .app-section,
:root.dark .personal-strip,
:root.dark .final-cta { background: var(--surface); border-color: var(--line); }

.section-head h2,
.section-copy h2,
.final-cta h2 {
  color: var(--ink);
  font-weight: 900;
  letter-spacing: -.055em;
}
:root.dark .section-head h2,
:root.dark .section-copy h2,
:root.dark .final-cta h2 { color: var(--text); }

@media (max-width: 1180px) {
  .hero-elegant { grid-template-columns: 1fr; min-height: auto; padding-top: 64px; }
  .hero-copy h1 { max-width: 880px; }
  .hero-art { min-height: 560px; }
  .next-card { left: 8%; }
  .qibla-card { right: 10%; }
  .zikr-card-mini { left: 14%; }
  .hero-benefits { grid-template-columns: repeat(2, 1fr); }
  .hero-benefits article:nth-child(3)::before { display: none; }
}

@media (max-width: 700px) {
  .app-header { top: 10px; border-radius: 24px; }
  .hero-elegant { padding-top: 40px; row-gap: 26px; }
  .hero-eyebrow { min-height: 42px; padding: 0 15px 0 14px; gap: 8px; font-size: 10.5px; letter-spacing: .08em; }
  .hero-eyebrow span:first-child { width: 13px; height: 13px; box-shadow: 0 0 0 11px rgba(214,168,79,.14); }
  .hero-copy h1 { margin-top: 24px; font-size: clamp(43px, 13.2vw, 62px); line-height: 1.06; letter-spacing: -.064em; }
  .hero-lead { font-size: 16px; line-height: 1.62; }
  .status-chip { font-size: 12px; max-width: 100%; }
  .hero-actions { gap: 12px; }
  .hero-actions .btn { min-width: 0; width: 100%; min-height: 62px; border-radius: 16px; font-size: 16px; justify-content: center; }
  .btn-icon { width: 36px; height: 36px; font-size: 18px; }
  .hero-art { min-height: 430px; transform: translateX(0); }
  .hero-art::before { width: 360px; height: 360px; }
  .mihrab-scene { width: 100%; height: 410px; transform: translateX(10px); }
  .mihrab-frame { width: 250px; height: 356px; }
  .mihrab-inner { inset: 44px 38px 24px; }
  .scene-platform { width: 320px; height: 48px; margin-bottom: 20px; }
  .lantern { width: 62px; height: 94px; bottom: 43px; }
  .plant { right: 4px; bottom: 34px; transform: scale(.72); transform-origin: bottom right; }
  .mosque-silhouette { bottom: 54px; opacity: .18; }
  .next-card { left: 0; top: 36px; width: 150px; min-height: 150px; padding: 14px; border-radius: 20px; }
  .next-card strong { font-size: 36px; }
  .next-card em { font-size: 22px; }
  .qibla-card { right: 0; top: 54px; }
  .zikr-card-mini { left: 8px; bottom: 74px; }
  .qibla-card, .zikr-card-mini { min-width: 106px; border-radius: 18px; padding: 11px 13px; }
  .qibla-card strong, .zikr-card-mini strong { font-size: 20px; }
  .hero-benefits { grid-template-columns: 1fr; border-radius: 24px; }
  .hero-benefits article { min-height: 92px; padding: 18px; }
  .hero-benefits article + article::before { top: 0; bottom: auto; left: 18px; right: 18px; width: auto; height: 1px; }
  .benefit-icon { width: 52px; height: 52px; font-size: 24px; }
}

@media (max-width: 420px) {
  .hero-copy h1 { font-size: clamp(38px, 12.2vw, 51px); }
  .hero-art { min-height: 390px; }
  .mihrab-scene { transform: translateX(20px) scale(.92); }
  .next-card { transform: scale(.88); transform-origin: left top; }
  .qibla-card { transform: scale(.86); transform-origin: right top; }
  .zikr-card-mini { transform: scale(.86); transform-origin: left bottom; }
}

/* v13 global width tuning */
:root { --container: 1320px; }
