/* Athar 4.2.7: shared theme surfaces, navigation opacity, prayer details. */
body .glass-nav,body[data-theme='dark'] .glass-nav,body[data-theme='oled'] .glass-nav,body[data-theme='light'] .glass-nav,body[data-theme='dark']:has(#view-today.active) .glass-nav{
 background:rgba(var(--athar-nav-rgb,7,14,22),var(--nav-surface-alpha,.85))!important;
 -webkit-backdrop-filter:none!important;backdrop-filter:none!important;
 box-shadow:none!important;
}
body .glass-nav:before{background:none!important;opacity:0!important}
body[data-theme='dark']:has(#view-today.active) .glass-nav .nav-glider,body .glass-nav .nav-glider{background:color-mix(in srgb,var(--athar-card-color,var(--surface)) 90%,transparent)!important}
/* Keep the existing dimensions and icon treatments; only surfaces adapt to theme. */
body[data-theme='dark'] .surface-card,body[data-theme='dark'] .dua-card,body[data-theme='dark'] .qada-row,
body[data-theme='oled'] .surface-card,body[data-theme='oled'] .dua-card,body[data-theme='oled'] .qada-row,
body[data-theme='dark'] .setting-section .grouped-settings,
body[data-theme='dark'] .fast-record-form,
body[data-theme='oled'] .fast-record-form {
 background:var(--athar-card-color,var(--surface))!important;border-color:var(--athar-card-border,var(--line))!important;
}
body[data-theme='dark'] #view-today .athar-prayer-row,body[data-theme='oled'] #view-today .athar-prayer-row{
 background:linear-gradient(115deg,var(--athar-card-color,var(--surface)),color-mix(in srgb,var(--athar-card-color,var(--surface)) 92%,var(--bg)))!important;
 border-color:var(--athar-card-border,var(--line))!important;
}
body[data-theme='dark'] #view-today .athar-prayer-hero,body[data-theme='oled'] #view-today .athar-prayer-hero{
 background:linear-gradient(115deg,var(--athar-card-color,var(--surface)) 0%,color-mix(in srgb,var(--athar-card-color,var(--surface)) 85%,var(--bg)) 74%,var(--athar-card-color,var(--surface)) 100%)!important;
 border-color:var(--athar-card-border,var(--line))!important;
}
#view-today .athar-prayer-open-control{border:0;background:none;color:inherit;text-align:inherit;padding:0;cursor:pointer;font:inherit;min-width:0;display:flex;align-items:center}
#view-today .athar-prayer-open-control:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:12px}
.athar-prayer-detail[hidden]{display:none!important}
.athar-prayer-detail{position:fixed;inset:0;z-index:16;overflow-y:auto;overscroll-behavior:contain;background:var(--bg);color:var(--text);padding:calc(env(safe-area-inset-top) + 18px) max(18px,env(safe-area-inset-right)) calc(env(safe-area-inset-bottom) + 45px) max(18px,env(safe-area-inset-left));}
.prayer-detail-inner{max-width:565px;margin:0 auto}
.prayer-detail-header{display:flex;align-items:center;justify-content:space-between;min-height:44px;margin-bottom:27px;gap:12px}
.detail-back{background:none;border:none;color:var(--text);font-size:32px;line-height:1;display:flex;align-items:center;gap:9px;cursor:pointer}
.detail-back span{font-size:14px}.detail-date{color:var(--muted);font-size:12px}
.detail-prayer-heading{display:flex;align-items:center;gap:17px;margin-bottom:28px}
.detail-prayer-heading .athar-prayer-symbol{width:62px;height:62px;flex:0 0 62px;display:grid;place-items:center;border-radius:50%}
.detail-prayer-heading .athar-prayer-symbol svg{width:38px;height:38px}
.detail-prayer-heading h1{font-size:39px;line-height:1.4;margin:0;color:var(--accent)}
.detail-kicker{font-size:11px;letter-spacing:1.7px;color:var(--muted);font-weight:700}
.detail-block{border:1px solid var(--athar-card-border,var(--line));background:var(--athar-card-color,var(--surface));border-radius:24px;padding:20px;margin-bottom:16px}
.detail-block h2{font-size:18px;margin:0 0 15px;font-weight:700}
.detail-example{font-size:11px;color:var(--muted);line-height:1.6;margin:0 0 15px}
.detail-time{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:13px 0;border-top:1px solid var(--line);font-size:15px}
.detail-time strong{font-variant-numeric:tabular-nums;color:var(--accent);white-space:nowrap}
.detail-dua{display:flex;align-items:center;text-align:start;width:100%;gap:9px;border:0;border-top:1px solid var(--line);background:transparent;color:var(--text);padding:15px 0;cursor:pointer}
.detail-dua span{flex:1;font-size:16px;font-weight:650}.detail-dua small{color:var(--muted);font-size:11px}.detail-dua b{font-size:25px;font-weight:400;color:var(--muted)}
.tasbih-panel{text-align:center}.tasbih-panel h2{font-size:18px}
.tasbih-phrase{font-size:31px;line-height:1.65;color:var(--accent);margin:20px 0 5px;font-weight:700}
.tasbih-number{font-size:36px;font-weight:750;font-variant-numeric:tabular-nums;margin-bottom:17px}
.tasbih-tap{width:100%;min-height:95px;background:color-mix(in srgb,var(--accent) 13%,var(--surface));border:1px solid var(--accent);color:var(--text);border-radius:20px;font-size:17px;font-weight:700;cursor:pointer;touch-action:manipulation}
.tasbih-tap:active{transform:scale(.99)}.tasbih-progress{font-size:13px;color:var(--muted);margin:18px 0}.tasbih-reset{background:transparent;border:1px solid var(--line);border-radius:16px;padding:12px 18px;color:var(--text);cursor:pointer}.tasbih-complete{font-size:20px;color:var(--accent);line-height:1.7;margin-top:18px}.tasbih-total{font-size:28px;margin:15px 0;font-weight:750}
#athar-prayer-dua-form textarea{width:100%;box-sizing:border-box;min-height:220px;border-radius:12px;border:1px solid var(--line);background:var(--bg);color:var(--text);font-family:var(--font-arabic);font-size:20px;line-height:1.9;padding:12px;margin:10px 0}
.detail-dua-preview{white-space:pre-wrap;overflow-wrap:anywhere;max-height:180px;overflow:auto;border-top:1px solid var(--line);margin-top:12px;padding-top:13px;color:var(--muted);font-size:15px;line-height:1.8}
@media(max-width:390px){.detail-block{padding:16px}.detail-prayer-heading h1{font-size:33px}.detail-dua span{font-size:14px}}
body.athar-prayer-open .glass-nav{display:none!important}
.detail-prayer-heading .athar-prayer-symbol{color:var(--accent);background:color-mix(in srgb,var(--accent) 14%,transparent)}
.detail-prayer-heading .athar-symbol-3{color:#fc955c;background:rgba(241,133,83,.15)}
.detail-prayer-heading .athar-symbol-4{color:#a6a0ff;background:rgba(131,129,221,.19)}
.detail-prayer-heading .athar-prayer-symbol svg{stroke:currentColor;stroke-width:2.1;stroke-linecap:round;stroke-linejoin:round;fill:none}
body[data-theme='dark'] .glass-card,body[data-theme='oled'] .glass-card,
body[data-theme='dark'] .dua-search-wrap,body[data-theme='oled'] .dua-search-wrap,
body[data-theme='dark'] .calendar-panel,body[data-theme='oled'] .calendar-panel,
body[data-theme='dark'] .fasting-record-card,body[data-theme='oled'] .fasting-record-card{
 background:var(--athar-card-color,var(--surface))!important;
 border-color:var(--athar-card-border,var(--line))!important;
}
