:root{--g:#0a4d3c;--g2:#0f6b52;--g3:#e3efe9;--gold:#c9a227;--gold2:#f2e3a6;--bg:#f7f3e8;--card:#fff;--ink:#1d2a25;--mut:#5f6f68;--red:#c0392b;--r:16px;--sh:0 4px 18px rgba(10,77,60,.10)}
*{box-sizing:border-box}html,body{margin:0;height:100%}
body{font-family:"Hind Siliguri","Noto Sans Bengali","Segoe UI",Roboto,"Noto Sans Arabic",system-ui,sans-serif;background:var(--bg);color:var(--ink);font-size:16px;line-height:1.55;-webkit-tap-highlight-color:transparent;
background-image:radial-gradient(circle at 20px 20px,rgba(201,162,39,.08) 2px,transparent 2.5px);background-size:40px 40px}
a{color:var(--g2)}button,select,input{font:inherit}
.hidden{display:none!important}
.topbar{position:sticky;top:0;z-index:1000;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 14px;padding-top:max(10px,env(safe-area-inset-top));background:linear-gradient(135deg,#083d30,#0f6b52);color:#fff;box-shadow:0 2px 10px rgba(0,0,0,.18);border-bottom:3px solid var(--gold)}
.brand{display:flex;align-items:center;gap:8px;color:#fff;text-decoration:none;font-weight:700;font-size:17px}.brand img{width:32px;height:32px;border-radius:8px}
#langSel{background:rgba(255,255,255,.12);color:#fff;border:1px solid rgba(242,227,166,.6);border-radius:10px;padding:6px 8px}#langSel option{color:#000}
main{max-width:760px;margin:0 auto;padding:14px 14px 96px}
.bottomnav{position:fixed;bottom:0;left:0;right:0;z-index:1000;display:flex;justify-content:space-around;background:#fff;border-top:1px solid #e6dfc8;padding:4px 2px;padding-bottom:max(4px,env(safe-area-inset-bottom));box-shadow:0 -4px 16px rgba(0,0,0,.06)}
.bottomnav a{flex:1;display:flex;flex-direction:column;align-items:center;text-decoration:none;color:var(--mut);font-size:11px;padding:4px 0;border-radius:10px}
.bottomnav a .ic{font-size:20px;line-height:1.2}.bottomnav a.on{color:var(--g);background:var(--g3)}.bottomnav b{font-weight:600}
h1,h2,h3{line-height:1.3;margin:.2em 0 .4em}h1{font-size:22px}h2{font-size:19px;color:var(--g)}h3{font-size:16px}
.card{background:var(--card);border-radius:var(--r);box-shadow:var(--sh);padding:14px;margin:12px 0;border:1px solid #efe7cf}
.hero{position:relative;overflow:hidden;border-radius:20px;padding:20px 18px;color:#fff;background:linear-gradient(140deg,#073a2e 0%,#0f6b52 60%,#14805f 100%);box-shadow:var(--sh)}
.hero:after{content:"";position:absolute;inset:auto -40px -60px auto;width:220px;height:220px;border-radius:50%;border:18px solid rgba(242,227,166,.18)}
.hero h1{color:#fff;margin:0 0 4px}.hero p{margin:0;color:#e9f3ee}
.big2{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:14px}
.bigcard{display:block;text-decoration:none;color:var(--ink);background:#fff;border-radius:18px;padding:16px;box-shadow:var(--sh);border:2px solid var(--gold2);position:relative;overflow:hidden}
.bigcard .em{font-size:38px}.bigcard h2{margin:6px 0 2px}.bigcard small{color:var(--mut)}
.bigcard .go{display:inline-block;margin-top:8px;background:var(--g);color:#fff;border-radius:999px;padding:4px 12px;font-size:13px}
.tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.tile{display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center;text-decoration:none;color:var(--ink);background:#fff;border-radius:14px;padding:12px 6px;box-shadow:var(--sh);font-size:13px;font-weight:600}
.tile span{font-size:26px}
.nextp{display:flex;align-items:center;justify-content:space-between;gap:10px}
.nextp .t{font-size:24px;font-weight:700;color:var(--g)}
.steps{list-style:none;padding:0;margin:0;counter-reset:s}
.steps li a{display:flex;gap:12px;align-items:flex-start;text-decoration:none;color:var(--ink);padding:12px 6px;border-bottom:1px dashed #e4dcc2}
.num{flex:none;width:34px;height:34px;border-radius:50%;background:var(--g);color:#fff;display:grid;place-items:center;font-weight:700;border:2px solid var(--gold)}
.daybadge{display:inline-block;background:var(--gold2);color:#5a4500;border-radius:999px;padding:1px 10px;font-size:12px;font-weight:700;margin-bottom:2px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:0;border-radius:12px;padding:10px 14px;background:var(--g);color:#fff;font-weight:600;cursor:pointer;text-decoration:none}
.btn.gold{background:var(--gold);color:#2b2100}.btn.ghost{background:var(--g3);color:var(--g)}.btn.red{background:var(--red)}.btn.sm{padding:6px 10px;font-size:14px;border-radius:10px}
.btn:disabled{opacity:.5}
.row{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.row.sb{justify-content:space-between}
.chips{display:flex;gap:6px;flex-wrap:wrap;margin:8px 0}
.chip{border:1px solid #d9cfae;background:#fff;border-radius:999px;padding:6px 12px;cursor:pointer;font-size:14px}
.chip.on{background:var(--g);color:#fff;border-color:var(--g)}
.dua{border-inline-start:4px solid var(--gold);background:#fffdf5;border-radius:12px;padding:12px;margin:10px 0}
.ar{font-family:"Amiri","Noto Naskh Arabic","Scheherazade New","Traditional Arabic","Noto Sans Arabic",serif;direction:rtl;text-align:right;font-size:24px;line-height:2;color:#13241e}
.ar.q{font-size:26px}
.tl{color:#6b4e00;font-style:italic;margin:4px 0}.tr{margin:6px 0}.ref{font-size:12.5px;color:var(--mut)}
.ref b{color:var(--g)}
.muted{color:var(--mut);font-size:14px}
.note{background:#fff7dc;border:1px solid #f0de9a;border-radius:12px;padding:10px 12px;font-size:14px}
.map{height:55vh;min-height:320px;border-radius:var(--r);overflow:hidden;box-shadow:var(--sh);border:2px solid var(--gold2)}
.map.small{height:220px;min-height:220px}
.counter{text-align:center}
.counter .bigbtn{width:170px;height:170px;border-radius:50%;border:6px solid var(--gold);background:radial-gradient(circle at 35% 30%,#16855f,#0a4d3c);color:#fff;font-size:54px;font-weight:800;cursor:pointer;box-shadow:0 8px 24px rgba(10,77,60,.35);margin:10px auto;display:block}
.counter .bigbtn small{display:block;font-size:14px;font-weight:600}
.dots{display:flex;justify-content:center;gap:8px;margin:8px 0}.dots i{width:16px;height:16px;border-radius:50%;background:#e1d8bb;display:block}.dots i.on{background:var(--gold)}
.list a.item,.list .item{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:11px 4px;border-bottom:1px solid #eee5cc;text-decoration:none;color:var(--ink)}
.sn{width:36px;height:36px;flex:none;display:grid;place-items:center;background:var(--g3);color:var(--g);border-radius:10px;font-weight:700;transform:rotate(45deg)}.sn>span{transform:rotate(-45deg)}
input[type=text],input[type=search],input[type=number],input[type=date],select.inp{width:100%;padding:10px 12px;border:1px solid #d9cfae;border-radius:12px;background:#fff}
label.f{display:block;margin:10px 0 4px;font-weight:600;font-size:14px}
.stats{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}
.stat{background:#fff;border-radius:12px;padding:10px;box-shadow:var(--sh);text-align:center}.stat b{display:block;font-size:22px;color:var(--g)}.stat small{color:var(--mut)}
.stat.hl{background:linear-gradient(135deg,#0a4d3c,#13805f);color:#fff}.stat.hl b,.stat.hl small{color:#fff}
.ptimes .item.next{background:var(--g3);border-radius:10px;font-weight:700}
.switch{position:relative;width:46px;height:26px;flex:none}.switch input{opacity:0;width:0;height:0}.switch span{position:absolute;inset:0;background:#ccc;border-radius:26px;transition:.2s}.switch span:before{content:"";position:absolute;width:20px;height:20px;left:3px;top:3px;background:#fff;border-radius:50%;transition:.2s}.switch input:checked+span{background:var(--g2)}.switch input:checked+span:before{transform:translateX(20px)}
.qibla{width:200px;height:200px;margin:10px auto;border-radius:50%;border:4px solid var(--gold);background:radial-gradient(#fff,#f3ecd6);position:relative}
.qibla .needle{position:absolute;left:50%;top:50%;width:6px;height:84px;margin-left:-3px;margin-top:-84px;transform-origin:50% 100%;background:linear-gradient(var(--g),var(--g2));border-radius:3px}
.qibla .needle:before{content:"🕋";position:absolute;top:-30px;left:-12px;font-size:24px}
.qibla .n{position:absolute;top:4px;left:50%;transform:translateX(-50%);font-weight:800;color:var(--red)}
.geo-alert{position:sticky;top:58px;z-index:999;margin:8px auto 0;max-width:760px;background:#fff7dc;border:2px solid var(--gold);border-radius:14px;padding:10px 12px;box-shadow:var(--sh);animation:pop .3s}
@keyframes pop{from{transform:scale(.95);opacity:0}}
.toast{position:fixed;left:50%;bottom:86px;transform:translateX(-50%);background:#13241e;color:#fff;padding:10px 16px;border-radius:12px;z-index:3000;max-width:90vw}
.call{position:fixed;inset:0;z-index:5000;background:linear-gradient(170deg,#052a21,#0a4d3c 55%,#0f6b52);color:#fff;display:flex}
.call-inner{margin:auto;width:100%;max-width:420px;height:100%;display:flex;flex-direction:column;justify-content:space-between;padding:60px 24px 40px;text-align:center}
.call-avatar{width:120px;height:120px;border-radius:50%;margin:0 auto 18px;display:grid;place-items:center;font-size:62px;background:rgba(255,255,255,.1);border:3px solid var(--gold);animation:ring 1.4s infinite}
@keyframes ring{0%{box-shadow:0 0 0 0 rgba(242,227,166,.6)}100%{box-shadow:0 0 0 30px rgba(242,227,166,0)}}
.call-label{opacity:.85}.call-name{font-size:34px;font-weight:800;color:var(--gold2)}.call-time{font-size:20px}
.call-wave{display:flex;justify-content:center;gap:6px}.call-wave span{width:6px;height:30px;background:var(--gold2);border-radius:3px;animation:wv 1s infinite alternate}.call-wave span:nth-child(2){animation-delay:.2s}.call-wave span:nth-child(3){animation-delay:.4s}
@keyframes wv{to{height:8px}}
.call-actions{display:flex;justify-content:space-around}
.call-btn{border:0;background:none;color:#fff;display:flex;flex-direction:column;align-items:center;gap:6px;cursor:pointer}
.call-btn span{width:74px;height:74px;border-radius:50%;display:grid;place-items:center;font-size:30px}
.call-btn.decline span{background:#e74c3c}.call-btn.accept span{background:#27ae60}
.call-credit{font-size:10.5px;opacity:.6}
.pin{width:30px;height:30px;border-radius:50% 50% 50% 0;transform:rotate(-45deg);display:grid;place-items:center;border:2px solid #fff;box-shadow:0 2px 6px rgba(0,0,0,.35)}
.pin span{transform:rotate(45deg);font-size:14px}
.pin.ritual{background:#c9a227}.pin.mosque{background:#0a4d3c}.pin.miqat{background:#7b3fa0}.pin.station{background:#1f6fb2}.pin.history{background:#9a5b2c}.pin.dest{background:#c0392b}
.me{width:18px;height:18px;border-radius:50%;background:#1e88e5;border:3px solid #fff;box-shadow:0 0 0 6px rgba(30,136,229,.25)}
.legend{display:flex;flex-wrap:wrap;gap:10px;font-size:12.5px;margin-top:8px}.legend i{display:inline-block;width:10px;height:10px;border-radius:50%;margin-inline-end:4px}
.results{max-height:220px;overflow:auto;background:#fff;border:1px solid #e3d9b8;border-radius:12px;margin-top:4px}
.results div{padding:9px 12px;border-bottom:1px solid #f0e9d4;cursor:pointer;font-size:14px}
.summary dl{display:grid;grid-template-columns:auto 1fr;gap:6px 12px;margin:0}.summary dt{color:var(--mut)}.summary dd{margin:0;font-weight:600}
[dir=rtl] .steps li a,[dir=rtl] .row{direction:rtl}
.ayah{padding:12px 4px;border-bottom:1px solid #eee3c4}.ayah .an{display:inline-grid;place-items:center;min-width:28px;height:28px;border-radius:50%;background:var(--g3);color:var(--g);font-size:12px;font-weight:700;margin-inline-end:6px}
footer.src{font-size:12px;color:var(--mut);text-align:center;margin:20px 0}
@media (min-width:700px){.tiles{grid-template-columns:repeat(6,1fr)}.stats{grid-template-columns:repeat(4,1fr)}}
.geo-alert.arrive{background:#e8f6ee;border-color:#27ae60;font-size:17px}
