@charset "UTF-8";
@font-face { font-family: "Noto Kufi Arabic"; src: url("/fonts/NotoKufi-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Noto Kufi Arabic"; src: url("/fonts/NotoKufi-Bold.ttf") format("truetype"); font-weight: 700 900; font-display: swap; }
@font-face { font-family: "Noto Naskh Arabic"; src: url("/fonts/NotoNaskh-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Noto Naskh Arabic"; src: url("/fonts/NotoNaskh-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Amiri Quran"; src: url("/fonts/AmiriQuran-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
:root {
  --green-950: #071C16;
  --green-900: #103D30;
  --green-800: #08785D;
  --green-700: #13916F;
  --green-100: #DDEDE7;
  --green-50: #EEF6F2;
  --ink: #17362D;
  --muted: #71847B;
  --cream: #F3F2E9;
  --gold: #C9AA5B;
  --gold-pale: #F2EBD8;
  --line: #DEE7E1;
  --white: #FFFFFF;
  --shadow: 0 22px 50px rgba(10, 65, 48, .10);
  --radius-lg: 30px;
  --radius-md: 20px;
  --radius-sm: 14px;
  font-family: "Noto Kufi Arabic", Tahoma, sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-synthesis: none;
}
html[data-theme="dark"] {
  --green-100: #1b3e31;
  --green-50: #173127;
  --ink: #edf5f0;
  --muted: #a4b7ad;
  --cream: #101a16;
  --gold-pale: #43391f;
  --line: #2c4036;
  --white: #18251f;
  --shadow: 0 22px 50px rgba(0,0,0,.24);
}
* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; min-width: 320px; background: var(--cream); }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; text-decoration: none; }
.app-shell { min-height: 100vh; background: radial-gradient(circle at 8% 8%, rgba(201,173,101,.10), transparent 25rem), var(--cream); }
.topbar { position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 18px max(20px, calc((100% - 1180px) / 2)); background: rgba(247,248,245,.88); border-bottom: 1px solid rgba(228,235,230,.75); backdrop-filter: blur(18px); }
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: 0; border: 0; padding: 0; background: transparent; color: inherit; cursor: pointer; text-align: right; }
.brand-mark { width: 44px; height: 44px; border-radius: 15px; object-fit: cover; box-shadow: 0 7px 16px rgba(13,91,69,.20); }
.brand-copy { display: grid; gap: 2px; }
.brand-name { font-family: "Noto Naskh Arabic", serif; font-weight: 700; letter-spacing: -.02em; font-size: 22px; line-height: .9; }
.brand-tagline { font-size: 10px; color: var(--muted); white-space: nowrap; }
.topbar-actions { display: flex; align-items: center; gap: 9px; }
.settings-button { display: inline-grid; place-items: center; width: 39px; height: 39px; border: 1px solid var(--line); border-radius: 50%; background: var(--white); color: var(--green-900); cursor: pointer; font-size: 17px; transition: transform .18s ease, background .18s ease; }
.settings-button:hover { transform: rotate(18deg); background: var(--green-50); }
.status-pill, .ghost-button, .install-button { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 999px; min-height: 39px; padding: 0 13px; background: var(--white); color: var(--ink); font-size: 12px; cursor: pointer; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.status-pill { cursor: default; color: var(--muted); }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #52af7d; box-shadow: 0 0 0 4px rgba(82,175,125,.14); }
.status-pill.offline .status-dot { background: #c78b53; box-shadow: 0 0 0 4px rgba(199,139,83,.14); }
.install-button { background: var(--green-900); color: var(--white); border-color: var(--green-900); font-weight: 800; }
.ghost-button:hover, .install-button:hover, .nav-btn:hover { transform: translateY(-2px); }
.install-button[hidden] { display: none; }
.page-wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 48px 0 118px; }
.screen { display: none; animation: rise .42s cubic-bezier(.22,.8,.25,1) both; will-change: opacity, transform; }
.screen.active { display: block; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.hero { position: relative; overflow: hidden; min-height: 300px; padding: 43px clamp(25px, 6vw, 70px); display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 34px; color: var(--white); background: linear-gradient(130deg, var(--green-950), var(--green-900) 61%, #23785c); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.13); pointer-events: none; }
.hero::before { width: 410px; height: 410px; left: -115px; top: -200px; box-shadow: 0 0 0 24px rgba(255,255,255,.035), 0 0 0 48px rgba(255,255,255,.028); }
.hero::after { width: 230px; height: 230px; right: 33%; bottom: -165px; }
.hero-content, .hero-orbit { position: relative; z-index: 1; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--gold); font-weight: 800; letter-spacing: .02em; }
.kicker::before { content: ""; display: inline-block; width: 24px; height: 1px; background: currentColor; }
.hero h1 { max-width: 620px; margin: 16px 0 13px; font-size: clamp(31px, 5vw, 59px); line-height: 1.13; letter-spacing: -.065em; font-weight: 800; }
.hero p { max-width: 530px; margin: 0; color: rgba(255,255,255,.75); font-size: 15px; line-height: 1.9; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.primary-action, .secondary-action { border: 0; border-radius: 13px; min-height: 47px; padding: 0 17px; cursor: pointer; font-weight: 800; transition: transform .18s ease, box-shadow .18s ease; }
.primary-action { background: var(--gold); color: #25372c; box-shadow: 0 10px 20px rgba(0,0,0,.12); }
.secondary-action { background: rgba(255,255,255,.11); color: var(--white); border: 1px solid rgba(255,255,255,.18); }
.primary-action:hover, .secondary-action:hover { transform: translateY(-2px); }
.hero-orbit { display: grid; place-items: center; min-height: 210px; }
.orbit-art { width: 195px; height: 195px; border: 1px solid rgba(255,255,255,.24); border-radius: 50%; display: grid; place-items: center; position: relative; box-shadow: 0 0 0 18px rgba(255,255,255,.025), 0 0 0 42px rgba(255,255,255,.018); }
.orbit-art::before, .orbit-art::after { content: ""; position: absolute; border: 1px solid rgba(201,173,101,.55); border-radius: 50%; transform: rotate(45deg); }
.orbit-art::before { inset: 30px; border-radius: 48% 52% 48% 52%; }
.orbit-art::after { inset: 52px; border-color: rgba(142,203,178,.75); }
.orbit-center { width: 76px; height: 76px; display: grid; place-items: center; border-radius: 50%; color: var(--gold); border: 1px solid rgba(255,255,255,.33); font-size: 36px; font-family: Georgia, serif; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin: 43px 0 17px; }
.section-head h2, .page-title h1 { margin: 0; letter-spacing: -.045em; font-size: clamp(22px, 3vw, 31px); }
.section-head p, .page-title p { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.text-link { color: var(--green-800); font-weight: 800; font-size: 13px; white-space: nowrap; }
.text-link:hover { color: var(--green-950); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.feature-card { position: relative; overflow: hidden; padding: 21px; min-height: 188px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--white); box-shadow: 0 8px 24px rgba(10,65,48,.035); transition: transform .2s ease, box-shadow .2s ease; }
.feature-card::before { content: ""; position: absolute; width: 100px; height: 100px; top: -48px; left: -35px; border-radius: 50%; background: var(--green-50); }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-icon { position: relative; display: grid; place-items: center; width: 43px; height: 43px; border-radius: 14px; background: var(--green-100); color: var(--green-900); font-size: 21px; }
.feature-card:nth-child(2) .feature-icon { background: var(--gold-pale); color: #8b6d27; }
.feature-card:nth-child(3) .feature-icon { background: #e8eef3; color: #35627a; }
.feature-card h3 { position: relative; margin: 14px 0 5px; font-size: 17px; }
.feature-card p { position: relative; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.card-foot { position: relative; display: flex; align-items: center; justify-content: space-between; margin-top: 16px; color: var(--green-800); font-size: 12px; font-weight: 800; }
.progress-line { overflow: hidden; height: 6px; border-radius: 99px; background: var(--green-100); }
.progress-line > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--green-700), var(--gold)); transition: width .3s ease; }
.insight-band { display: grid; grid-template-columns: 1.3fr .7fr; gap: 15px; margin-top: 16px; }
.insight-card { padding: 23px; border-radius: var(--radius-md); background: var(--white); border: 1px solid var(--line); }
.insight-card.highlight { background: var(--gold-pale); border-color: #eee2bf; }
.insight-card .label { color: var(--muted); font-size: 12px; }
.insight-card strong { display: block; margin-top: 9px; font-size: 25px; letter-spacing: -.04em; }
.insight-card p { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.page-title { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin-bottom: 24px; }
.page-title-main { display: flex; align-items: center; gap: 14px; }
.back-button { width: 43px; height: 43px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); cursor: pointer; color: var(--green-900); font-size: 20px; }
.page-actions { display: flex; gap: 9px; }
.page-actions .ghost-button { min-height: 42px; }
.meter-card { padding: 21px 24px; margin-bottom: 17px; border-radius: var(--radius-md); background: var(--green-900); color: var(--white); }
.meter-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 13px; }
.meter-title { font-size: 13px; color: rgba(255,255,255,.75); }
.meter-value { font-size: 21px; font-weight: 900; }
.meter-card .progress-line { background: rgba(255,255,255,.17); }
.meter-card .progress-line > span { background: var(--gold); }
.dhikr-list { display: grid; gap: 13px; }
.dhikr-card { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: start; padding: 21px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--white); transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.dhikr-card.done { background: linear-gradient(90deg, var(--green-50), var(--white)); border-color: #b7ddca; }
.dhikr-card.done .dhikr-number { background: var(--green-900); color: var(--white); }
.dhikr-number { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 11px; background: var(--green-100); color: var(--green-900); font-size: 12px; font-weight: 900; }
.dhikr-body h3 { margin: 0 0 9px; font-size: 16px; }
.dhikr-text { margin: 0; color: #38534a; font-family: "Amiri Quran", "Noto Naskh Arabic", Georgia, serif; font-size: 24px; line-height: 2.1; letter-spacing: .01em; }
.dhikr-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.source-tag, .repeat-tag { display: inline-flex; align-items: center; min-height: 25px; padding: 0 9px; border-radius: 8px; font-size: 10px; }
.source-tag { background: var(--green-50); color: var(--green-800); }
.repeat-tag { background: var(--gold-pale); color: #856b2d; font-weight: 800; }
.source-link { font-size: 11px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.dhikr-control { display: grid; justify-items: center; gap: 8px; min-width: 94px; }
.count-ring { display: grid; place-items: center; width: 66px; height: 66px; border-radius: 50%; background: conic-gradient(var(--green-700) var(--fill, 0%), var(--green-100) 0); position: relative; }
.count-ring::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--white); }
.count-ring strong { position: relative; z-index: 1; font-size: 14px; color: var(--green-900); }
.dhikr-card.done .count-ring::after { background: var(--green-50); }
.dhikr-action { border: 0; border-radius: 11px; min-height: 37px; padding: 0 11px; background: var(--green-900); color: var(--white); font-size: 11px; font-weight: 800; cursor: pointer; }
.dhikr-action:disabled { cursor: default; background: var(--green-100); color: var(--green-800); }
.card-status { color: var(--green-800); font-size: 11px; font-weight: 800; }
.tasbeeh-layout { display: grid; grid-template-columns: .82fr 1.18fr; gap: 18px; align-items: stretch; }
.tasbeeh-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 500px; padding: 35px 22px; text-align: center; border-radius: var(--radius-lg); background: linear-gradient(145deg, var(--green-950), var(--green-900)); color: var(--white); box-shadow: var(--shadow); overflow: hidden; position: relative; }
.tasbeeh-panel::before { content: ""; position: absolute; width: 340px; height: 340px; border: 1px solid rgba(255,255,255,.11); border-radius: 50%; top: -215px; right: -125px; box-shadow: 0 0 0 25px rgba(255,255,255,.028), 0 0 0 50px rgba(255,255,255,.018); }
.tasbeeh-kicker, .tasbeeh-panel h1, .tasbeeh-panel p, .tasbeeh-progress, .tasbeeh-button { position: relative; }
.tasbeeh-kicker { color: var(--gold); font-size: 12px; font-weight: 800; }
.tasbeeh-panel h1 { margin: 10px 0 4px; font-size: 20px; }
.tasbeeh-panel p { margin: 0; color: rgba(255,255,255,.65); font-size: 12px; }
.tasbeeh-button { width: min(270px, 72vw); aspect-ratio: 1; margin: 25px 0 18px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; background: radial-gradient(circle at 35% 28%, #2d9070, var(--green-800) 49%, var(--green-950)); color: var(--white); cursor: pointer; box-shadow: inset 0 0 0 10px rgba(255,255,255,.035), 0 18px 42px rgba(0,0,0,.25); transition: transform .12s ease, box-shadow .12s ease; }
.tasbeeh-button:active { transform: scale(.99); box-shadow: inset 0 0 0 10px rgba(255,255,255,.04), 0 12px 25px rgba(0,0,0,.2); }
@keyframes tasbeeh-pulse { 0% { transform: scale(1); box-shadow: inset 0 0 0 10px rgba(255,255,255,.035), 0 18px 42px rgba(0,0,0,.25); } 50% { transform: scale(1.012); box-shadow: inset 0 0 0 12px rgba(255,255,255,.055), 0 20px 44px rgba(8,120,93,.24); } 100% { transform: scale(1); box-shadow: inset 0 0 0 10px rgba(255,255,255,.035), 0 18px 42px rgba(0,0,0,.25); } }
.tasbeeh-button.tap-pulse { animation: tasbeeh-pulse 160ms ease-out; }
.tasbeeh-count { display: block; font-size: clamp(52px, 10vw, 82px); line-height: .9; letter-spacing: -.08em; font-weight: 900; }
.tasbeeh-unit { display: block; margin-top: 13px; color: rgba(255,255,255,.68); font-size: 11px; }
.tasbeeh-progress { width: min(270px, 72vw); }
.tasbeeh-progress .progress-line { background: rgba(255,255,255,.16); }
.tasbeeh-progress .progress-line > span { background: var(--gold); }
.goal-caption { display: flex; justify-content: space-between; margin-top: 8px; color: rgba(255,255,255,.72); font-size: 10px; }
.tasbeeh-side { display: flex; flex-direction: column; gap: 15px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); }
.side-heading { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.side-heading h2 { margin: 0; font-size: 22px; letter-spacing: -.04em; }
.side-heading p { max-width: 280px; margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.goal-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 6px; }
.goal-option { min-height: 70px; padding: 9px; border: 1px solid var(--line); border-radius: 15px; background: var(--cream); color: var(--muted); cursor: pointer; text-align: center; transition: all .18s ease; }
.goal-option strong { display: block; color: var(--ink); font-size: 20px; }
.goal-option span { display: block; margin-top: 5px; font-size: 10px; }
.goal-option.selected { border-color: var(--green-700); background: var(--green-50); box-shadow: 0 0 0 3px rgba(33,132,99,.10); }
.goal-option.selected strong, .goal-option.selected span { color: var(--green-900); }
.tasbeeh-actions { display: flex; gap: 10px; margin-top: auto; }
.tasbeeh-actions button { flex: 1; }
.stat-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 3px; }
.stat-box { padding: 15px; border-radius: 15px; background: var(--cream); }
.stat-box span { color: var(--muted); font-size: 11px; }
.stat-box strong { display: block; margin-top: 6px; font-size: 21px; }
.info-note { margin-top: 16px; padding: 15px 17px; border-radius: 15px; background: var(--gold-pale); color: #725c27; font-size: 11px; line-height: 1.8; }
.update-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; padding: 12px 15px; border: 1px solid rgba(33,132,99,.28); border-radius: 15px; background: var(--green-50); color: var(--green-900); font-size: 12px; font-weight: 800; }
.update-banner .primary-action { min-height: 36px; padding: 0 12px; font-size: 11px; }
.update-modal-backdrop { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 20px; background: rgba(6,61,48,.34); backdrop-filter: blur(7px); }
.update-modal { width: min(430px, 100%); padding: 28px; border: 1px solid rgba(201,173,101,.34); border-radius: 24px; background: var(--white); box-shadow: 0 26px 80px rgba(0,0,0,.22); text-align: center; animation: rise .3s ease both; }
.update-modal-icon { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 18px; background: var(--green-50); color: var(--green-800); font-size: 28px; }
.update-modal h2 { margin: 0 0 9px; font-size: 21px; letter-spacing: -.04em; }
.update-modal p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.9; }
.update-modal-actions { display: flex; gap: 9px; margin-top: 22px; }
.update-modal-actions > * { flex: 1; min-height: 43px; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.settings-card { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--white); box-shadow: var(--shadow); }
.settings-card-head { display: flex; align-items: start; justify-content: space-between; gap: 14px; }
.settings-card h2 { margin: 6px 0 4px; font-size: 20px; letter-spacing: -.04em; }
.settings-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.8; }
.settings-icon, .version-badge { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 9px; border-radius: 14px; background: var(--green-50); color: var(--green-900); font-size: 20px; }
.version-badge { font-size: 11px; font-weight: 800; }
.theme-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
.theme-option { display: grid; place-items: center; gap: 4px; min-height: 83px; border: 1px solid var(--line); border-radius: 13px; background: var(--cream); color: var(--ink); cursor: pointer; font-size: 17px; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.theme-option strong { font-size: 11px; }
.theme-option small { color: var(--muted); font-size: 9px; }
.theme-option.selected { border-color: var(--green-700); background: var(--green-50); box-shadow: 0 0 0 3px rgba(33,132,99,.10); }
.settings-times { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
.settings-times label { display: grid; gap: 6px; color: var(--green-900); font-size: 10px; font-weight: 800; }
.settings-times input { width: 100%; min-height: 39px; padding: 0 8px; border: 1px solid var(--line); border-radius: 11px; background: var(--cream); color: var(--ink); font: inherit; font-size: 12px; direction: ltr; text-align: center; }
.settings-actions { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.settings-actions .primary-action { min-height: 40px; padding: 0 13px; font-size: 11px; white-space: nowrap; }
.settings-actions small, .version-note { color: var(--muted); font-size: 10px; line-height: 1.7; }
.version-card { grid-column: 1 / -1; }
.update-button { min-height: 40px; margin-top: 14px; }
html[data-theme="dark"] .topbar { background: rgba(16,26,22,.90); border-color: rgba(44,64,54,.85); }
html[data-theme="dark"] .feature-card, html[data-theme="dark"] .dhikr-card, html[data-theme="dark"] .tasbeeh-side, html[data-theme="dark"] .reminder-card, html[data-theme="dark"] .insight-card { background: #15231d; border-color: var(--line); }
html[data-theme="dark"] .bottom-nav { background: rgba(24,37,31,.94); border-color: var(--line); }
html[data-theme="dark"] .dhikr-text { color: #dcebe3; }
.reminder-card { margin-top: 16px; padding: 22px; border: 1px solid #dce9e1; border-radius: var(--radius-md); background: linear-gradient(135deg, #eef8f2, #fff); }
.reminder-heading { display: flex; align-items: start; justify-content: space-between; gap: 15px; }
.reminder-heading h2 { margin: 6px 0 4px; font-size: 21px; letter-spacing: -.04em; }
.reminder-heading p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.reminder-bell { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 14px; background: var(--green-900); color: var(--gold); font-size: 25px; }
.reminder-times { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 18px; }
.reminder-times label { display: grid; gap: 7px; color: var(--green-900); font-size: 11px; font-weight: 800; }
.reminder-times input { width: 100%; min-height: 43px; padding: 0 12px; border: 1px solid #cfe1d6; border-radius: 12px; background: var(--white); color: var(--ink); font: inherit; font-size: 14px; direction: ltr; text-align: center; }
.reminder-actions { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.reminder-actions .primary-action { min-height: 42px; padding: 0 14px; font-size: 12px; white-space: nowrap; }
.reminder-actions small { color: var(--muted); font-size: 10px; line-height: 1.7; }
.bottom-nav { position: fixed; z-index: 20; right: 50%; bottom: 16px; transform: translateX(50%); display: flex; align-items: center; gap: 4px; padding: 6px; background: rgba(255,255,255,.91); border: 1px solid rgba(228,235,230,.95); border-radius: 20px; box-shadow: 0 15px 36px rgba(10,65,48,.15); backdrop-filter: blur(18px); }
.nav-btn { min-width: 79px; min-height: 50px; border: 0; border-radius: 15px; background: transparent; color: var(--muted); cursor: pointer; transition: all .18s ease; font-size: 10px; }
.nav-icon { display: block; margin-bottom: 3px; font-size: 18px; line-height: 1; }
.nav-btn.active { background: var(--green-900); color: var(--white); box-shadow: 0 5px 12px rgba(13,91,69,.22); }
.toast { position: fixed; z-index: 40; left: 50%; bottom: 90px; transform: translate(-50%, 16px); max-width: min(90vw, 400px); padding: 12px 17px; border-radius: 13px; background: var(--ink); color: var(--white); box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .22s ease, transform .22s ease; font-size: 12px; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.primary-action:active, .secondary-action:active, .ghost-button:active, .install-button:active, .nav-btn:active, .feature-card:active, .dhikr-action:active, .goal-option:active { transform: scale(.97); }
.noscript { padding: 60px 25px; text-align: center; }
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-orbit { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 145px; }
  .insight-band { grid-template-columns: 1fr; }
  .tasbeeh-layout { grid-template-columns: 1fr; }
  .tasbeeh-panel { min-height: 470px; }
}
@media (max-width: 600px) {
  .topbar { padding: 13px 15px; }
  .brand-mark { width: 39px; height: 39px; border-radius: 13px; }
  .brand-name { font-size: 16px; }
  .brand-tagline { font-size: 9px; }
  .status-pill { display: none; }
  .install-button { min-height: 35px; padding: 0 10px; font-size: 11px; }
  .page-wrap { width: min(100% - 28px, 540px); padding-top: 26px; }
  .hero { padding: 29px 23px 31px; border-radius: 24px; }
  .hero h1 { font-size: 34px; }
  .hero p { font-size: 13px; }
  .hero-actions { margin-top: 22px; }
  .primary-action, .secondary-action { min-height: 44px; font-size: 12px; }
  .section-head { margin-top: 31px; }
  .section-head h2, .page-title h1 { font-size: 24px; }
  .page-title { align-items: start; }
  .page-title-main { align-items: start; }
  .page-actions .ghost-button { padding: 0 10px; }
  .page-actions .ghost-button span { display: none; }
  .dhikr-card { grid-template-columns: auto 1fr; gap: 12px; padding: 17px 14px; }
  .dhikr-control { grid-column: 1 / -1; grid-template-columns: auto 1fr; width: 100%; min-width: 0; justify-items: start; align-items: center; }
  .count-ring { width: 52px; height: 52px; }
  .dhikr-action { width: 100%; }
  .dhikr-text { font-size: 21px; line-height: 2.05; }
  .bottom-nav { width: calc(100% - 24px); justify-content: space-around; bottom: 10px; }
  .nav-btn { flex: 1; min-width: 0; }
  .tasbeeh-side { padding: 19px; }
  .tasbeeh-panel { min-height: 455px; }
  .reminder-card { padding: 18px; }
  .reminder-times { grid-template-columns: 1fr 1fr; }
  .reminder-actions { align-items: stretch; flex-direction: column; }
  .reminder-actions .primary-action { width: 100%; }
  .settings-grid { grid-template-columns: 1fr; }
  .settings-card { padding: 18px; }
  .version-card { grid-column: auto; }
  .settings-actions { align-items: stretch; flex-direction: column; }
  .settings-actions .primary-action { width: 100%; }
  .update-banner { align-items: stretch; flex-direction: column; }
  .update-banner .primary-action { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

/* أثَر 2.0 — لوحة اليوم والأدوات الجديدة */
:root { --blue-soft: #e9f0f2; --rose-soft: #f3e8e2; --danger: #a45145; }
html[data-theme="dark"] { --green-100: #1c4034; --green-50: #173229; --ink: #edf5f0; --muted: #a8bbb1; --cream: #0b1914; --gold-pale: #42391f; --line: #2b4438; --white: #14251e; --blue-soft: #20343b; --rose-soft: #3d2e2a; }
html[data-font-scale="small"] .dhikr-text { font-size: 20px; }
html[data-font-scale="medium"] .dhikr-text { font-size: 24px; }
html[data-font-scale="large"] .dhikr-text { font-size: 29px; }
html[data-font-family="kufi"] .dhikr-text { font-family: "Noto Kufi Arabic", Tahoma, sans-serif; font-size: 18px; line-height: 2.1; }
html[data-font-family="quran"] .dhikr-text { font-family: "Amiri Quran", "Noto Naskh Arabic", serif; }
html.reading-mode .dhikr-card { max-width: 900px; margin-inline: auto; }
html.reading-mode .dhikr-text { line-height: 2.35; letter-spacing: .025em; }
.icon-button { display: inline-grid; place-items: center; width: 39px; height: 39px; border: 1px solid var(--line); border-radius: 50%; background: var(--white); color: var(--green-900); cursor: pointer; font-size: 18px; transition: transform .18s ease, background .18s ease; }
.icon-button:hover { transform: translateY(-2px); background: var(--green-50); }
.section-kicker { display: inline-block; color: var(--green-800); font-size: 11px; font-weight: 900; letter-spacing: .02em; }
.hero .section-kicker, .hero .kicker { color: var(--gold); }
.hero h1 em { color: var(--gold); font-style: normal; }
.date-pair { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 15px; color: rgba(255,255,255,.62); font-size: 11px; }
.daily-dashboard { display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; }
.daily-dashboard article { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; padding: 15px; border: 1px solid var(--line); border-radius: 17px; background: var(--white); }
.dashboard-icon { grid-row: span 2; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--green-100); color: var(--green-900); font-size: 18px; }
.dashboard-icon.gold { background: var(--gold-pale); color: #8c712b; }
.dashboard-icon.blue { background: var(--blue-soft); color: #376b78; }
.dashboard-icon.rose { background: var(--rose-soft); color: #925f51; }
.daily-dashboard strong { font-size: 20px; line-height: 1; }
.daily-dashboard small { color: var(--muted); font-size: 10px; }
.text-link, .inline-link { border: 0; background: transparent; color: var(--green-800); cursor: pointer; font: inherit; font-size: 12px; font-weight: 900; }
.inline-link { padding: 0; text-align: start; }
.home-lower-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 15px; margin-top: 16px; }
.insight-card .inline-link { display: block; margin-top: 14px; }
.reminder-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(8,120,93,.13); color: var(--muted); font-size: 11px; }
.limitation-note { display: block; margin-top: 12px; color: var(--muted); font-size: 10px; line-height: 1.8; }
.quick-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; margin-top: 16px; }
.quick-links button { display: grid; gap: 4px; padding: 16px; border: 1px solid var(--line); border-radius: 17px; background: var(--white); color: var(--ink); cursor: pointer; text-align: start; transition: transform .18s ease, border-color .18s ease; }
.quick-links button:hover { transform: translateY(-3px); border-color: var(--green-700); }
.quick-links span { color: var(--green-800); font-size: 21px; }
.quick-links strong { font-size: 12px; }
.quick-links small { color: var(--muted); font-size: 10px; }
.meter-bottom { margin: 12px 0 0 !important; }
.dhikr-group-title { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin: 18px 3px 8px; color: var(--green-900); }
.dhikr-group-title span { font-weight: 900; font-size: 14px; }
.dhikr-group-title small { color: var(--muted); font-size: 10px; }
.dhikr-title-row { display: flex; align-items: start; justify-content: space-between; gap: 10px; }
.dhikr-title-row h3 { margin-bottom: 0; }
.favorite-button { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--muted); cursor: pointer; font-size: 18px; line-height: 1; }
.favorite-button.selected { color: #b45d50; border-color: #e5bcb3; background: var(--rose-soft); }
.dhikr-tools { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.dhikr-tools button { min-height: 28px; padding: 0 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--cream); color: var(--muted); cursor: pointer; font-size: 10px; }
.dhikr-tools button:hover { color: var(--green-800); border-color: var(--green-700); }
.card-nav { display: flex; gap: 5px; }
.card-nav button { min-height: 28px; padding: 0 7px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); color: var(--muted); cursor: pointer; font-size: 9px; }
.card-nav button:disabled { opacity: .35; cursor: default; }
.field-label { display: grid; gap: 7px; margin-top: 12px; color: var(--green-900); font-size: 11px; font-weight: 900; }
.field-label input, .field-label select, .search-box input, .reminder-row input, .reminder-row select { width: 100%; min-height: 42px; padding: 0 11px; border: 1px solid var(--line); border-radius: 11px; background: var(--cream); color: var(--ink); font: inherit; font-size: 12px; }
.field-label select, .reminder-row select { cursor: pointer; }
.goal-picker { grid-template-columns: repeat(5, 1fr); }
.switch-row, .check-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 16px; color: var(--muted); font-size: 11px; }
.switch-row label, .check-row { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.switch-row input, .check-row input { accent-color: var(--green-800); }
.favorite-list, .search-results { display: grid; gap: 12px; }
.favorite-row, .search-result { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
.favorite-row h2, .search-result h2 { margin: 8px 0 5px; font-size: 17px; }
.favorite-row p, .search-result p { max-width: 700px; margin: 0; color: var(--muted); font-family: "Noto Naskh Arabic", serif; font-size: 17px; line-height: 1.9; }
.row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.row-actions > button:not(.favorite-button) { min-height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--cream); color: var(--green-900); cursor: pointer; font-size: 10px; font-weight: 800; }
.empty-state, .search-hint { display: grid; justify-items: center; gap: 9px; padding: 58px 20px; border: 1px dashed var(--line); border-radius: 20px; background: var(--white); text-align: center; }
.empty-state span, .search-hint span { color: var(--gold); font-size: 44px; }
.empty-state h2, .search-hint h2 { margin: 0; font-size: 20px; }
.empty-state p, .search-hint p { margin: 0; color: var(--muted); font-size: 12px; }
.empty-state .primary-action { margin-top: 8px; }
.empty-state.compact { padding: 32px; }
.search-box { display: flex; align-items: center; gap: 10px; min-height: 58px; margin-bottom: 15px; padding: 0 16px; border: 1px solid var(--green-700); border-radius: 17px; background: var(--white); box-shadow: 0 10px 28px rgba(8,120,93,.08); }
.search-box span { color: var(--green-800); font-size: 23px; }
.search-box input { min-height: 44px; padding: 0; border: 0; outline: 0; background: transparent; font-size: 14px; }
.result-count { margin: 0 0 10px; color: var(--muted); font-size: 11px; }
.achievement-hero { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 27px; border-radius: 23px; background: linear-gradient(130deg, var(--green-950), var(--green-900)); color: var(--white); }
.achievement-hero h2 { margin: 10px 0 4px; font-size: 28px; }
.achievement-hero p { margin: 0; color: rgba(255,255,255,.68); font-size: 12px; }
.achievement-mark { display: grid; place-items: center; width: 74px; height: 74px; border: 1px solid rgba(201,170,91,.55); border-radius: 50%; color: var(--gold); font-size: 35px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; margin-top: 15px; }
.stats-grid article { padding: 17px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.stats-grid span { color: var(--muted); font-size: 10px; }
.stats-grid strong { display: block; margin-top: 7px; color: var(--green-900); font-size: 24px; }
.achievement-columns { display: grid; grid-template-columns: .8fr 1.2fr; gap: 15px; margin-top: 15px; }
.badge-row { display: flex; gap: 9px; margin-top: 22px; }
.badge-row span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: var(--gold-pale); color: var(--gold); font-size: 20px; }
.activity-list { display: grid; gap: 7px; margin-top: 15px; }
.activity-list > div { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.activity-list strong { color: var(--green-900); }
.activity-list small { font-size: 9px; }
.muted, .setting-note, .version-note { color: var(--muted); font-size: 11px; line-height: 1.8; }
.preference-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.settings-grid .reminders-settings, .settings-grid .data-card, .settings-grid .about-card { grid-column: 1 / -1; }
.reminders-list { display: grid; gap: 9px; margin-top: 18px; }
.reminder-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px; border: 1px solid var(--line); border-radius: 13px; background: var(--cream); }
.reminder-row-main { display: grid; grid-template-columns: minmax(110px, .55fr) minmax(180px, 1fr); gap: 8px; flex: 1; }
.reminder-row-actions { display: flex; align-items: center; gap: 7px; }
.reminder-row input, .reminder-row select { min-height: 36px; font-size: 10px; }
.reminder-row-actions input { width: 105px; direction: ltr; text-align: center; }
.toggle-chip, .remove-button { min-height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--white); color: var(--muted); cursor: pointer; font-size: 10px; }
.toggle-chip.selected { border-color: var(--green-700); background: var(--green-100); color: var(--green-900); font-weight: 900; }
.remove-button { width: 34px; padding: 0; color: var(--danger); font-size: 19px; }
.data-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 17px; }
.danger-button { min-height: 40px; padding: 0 13px; border: 1px solid #e1b6ad; border-radius: 10px; background: var(--rose-soft); color: var(--danger); cursor: pointer; font: inherit; font-size: 11px; font-weight: 800; }
.about-card details { margin-top: 16px; color: var(--muted); font-size: 11px; line-height: 1.9; }
.about-card summary { cursor: pointer; color: var(--green-800); font-weight: 900; }
.about-card details p { margin: 8px 0 0; }
.about-card .inline-link { display: block; margin-top: 15px; }
@media (max-width: 820px) { .daily-dashboard, .stats-grid { grid-template-columns: repeat(2, 1fr); } .home-lower-grid, .achievement-columns { grid-template-columns: 1fr; } .goal-picker { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .topbar-actions { gap: 5px; } .icon-button { width: 35px; height: 35px; } .quick-links { grid-template-columns: 1fr; } .daily-dashboard article { padding: 12px; } .favorite-row, .search-result { align-items: stretch; flex-direction: column; } .favorite-row p, .search-result p { font-size: 16px; } .row-actions { width: 100%; } .row-actions > button:not(.favorite-button) { flex: 1; } .reminder-row { align-items: stretch; flex-direction: column; } .reminder-row-main { grid-template-columns: 1fr; } .reminder-row-actions input { flex: 1; width: auto; } .reminder-row-actions .toggle-chip { flex: 1; } .achievement-hero h2 { font-size: 23px; } .achievement-mark { width: 58px; height: 58px; } .settings-grid .reminders-settings, .settings-grid .data-card, .settings-grid .about-card { grid-column: auto; } .preference-grid { grid-template-columns: 1fr; } .data-actions > * { flex: 1; } }

/* Islamic library */
.library-tabs { display:flex; gap:12px; flex-wrap:wrap; margin:18px 0; }
.library-tabs .theme-option { min-width:160px; }
.library-controls { display:grid; grid-template-columns:minmax(0, 1fr) minmax(180px, .35fr); gap:14px; align-items:end; margin-bottom:14px; }
.library-status, .library-pagination, .hadith-card-top, .hadith-meta { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.library-status { color:var(--muted); font-size:.85rem; margin:12px 0; }
.hadith-list { display:grid; gap:14px; }
.hadith-card { background:var(--surface); border:1px solid var(--line); border-radius:22px; padding:20px; box-shadow:var(--shadow); }
.hadith-card-top { color:var(--muted); }
.hadith-number { color:var(--gold); font-weight:700; }
.hadith-text { font-family:var(--font-quran), var(--font-naskh), serif; font-size:1.22rem; line-height:2.1; margin:18px 0; white-space:normal; }
.hadith-meta { color:var(--muted); font-size:.86rem; border-top:1px solid var(--line); padding-top:12px; }
.hadith-note { display:block; color:var(--muted); margin-top:10px; line-height:1.7; }
.library-pagination { justify-content:center; margin:22px 0 28px; }
.library-pagination span { color:var(--muted); }
.quote-library-card { border-style:dashed; }
@media (max-width:700px) { .library-controls { grid-template-columns:1fr; } .hadith-card { padding:16px; } .hadith-text { font-size:1.08rem; } }
