:root{
  --emerald:#0d7b66;
  --emerald-dark:#082e2a;
  --emerald-deep:#041b19;
  --emerald-soft:#123f39;
  --gold:#dcb35d;
  --gold-soft:#f7e1a0;
  --white:#ffffff;
  --ink:#effaf7;
  --ink-soft:#b9d7cf;
  --muted:#8db1a8;
  --surface:#0b211d;
  --surface-2:#0e2924;
  --surface-3:#102f29;
  --line:rgba(220,179,93,.22);
  --line-soft:rgba(255,255,255,.08);
  --shadow:0 18px 48px rgba(0,0,0,.35);
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html{scroll-behavior:smooth}
body{
  margin:0;
  min-height:100vh;
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:
    radial-gradient(circle at 20% 0%,rgba(19,163,127,.28),transparent 30%),
    radial-gradient(circle at 85% 12%,rgba(220,179,93,.18),transparent 22%),
    linear-gradient(180deg,#052420 0%,#041816 52%,#031311 100%);
  color:var(--ink);
  overflow-x:hidden;
}
button,input,select{font:inherit}
button{cursor:pointer;border:0}
.poster-bg{position:fixed;inset:auto;pointer-events:none;filter:blur(30px);opacity:.6;z-index:0;border-radius:999px}
.poster-glow-1{width:260px;height:260px;left:-120px;top:-80px;background:rgba(26,218,171,.45)}
.poster-glow-2{width:320px;height:320px;right:-150px;bottom:10%;background:rgba(220,179,93,.18)}
.poster-crescent{position:fixed;right:8%;top:70px;color:rgba(247,225,160,.85);font-size:52px;line-height:1;z-index:0;text-shadow:0 0 25px rgba(220,179,93,.35)}
.app-shell{
  position:relative;
  z-index:1;
  width:min(100%,480px);
  min-height:100vh;
  margin:0 auto;
  background:linear-gradient(180deg,#071816 0%,#0a201d 100%);
  box-shadow:0 0 0 1px rgba(255,255,255,.05),0 30px 90px rgba(0,0,0,.55);
  padding-bottom:104px;
  overflow:hidden;
}
.app-shell::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 80% 10%,rgba(255,255,255,.08),transparent 16%),
    linear-gradient(180deg,rgba(255,255,255,.02),transparent 30%),
    linear-gradient(0deg,rgba(220,179,93,.07),transparent 12%);
  pointer-events:none;
}
.hero-card{
  position:relative;
  padding:14px 18px 26px;
  min-height:360px;
  color:#fff;
  overflow:hidden;
  background:
    radial-gradient(circle at 78% 18%,rgba(255,255,255,.10),transparent 18%),
    linear-gradient(135deg,#061d1a 0%,#06332f 45%,#0b5d57 100%);
  border-bottom-left-radius:34px;
  border-bottom-right-radius:34px;
  border-bottom:1px solid rgba(220,179,93,.18);
}
.hero-card::before{
  content:"";
  position:absolute;
  left:0;right:0;bottom:62px;height:132px;
  background:linear-gradient(180deg,transparent 0%,rgba(0,0,0,.08) 100%);
}
.hero-card::after{
  content:"";
  position:absolute;
  right:-10px;bottom:108px;
  width:190px;height:190px;
  background:radial-gradient(circle at 50% 50%,rgba(220,179,93,.15),transparent 55%);
  border-radius:50%;
}
.status-row,.hero-topbar,.hero-copy,.prayer-today-card{position:relative;z-index:1}
.status-row{height:42px;display:flex;align-items:center;justify-content:space-between}
.status-row strong{font-weight:800;letter-spacing:.04em;color:#fff}
.island{width:116px;height:30px;border-radius:999px;background:#04100f;box-shadow:inset 0 -1px 0 rgba(255,255,255,.08)}
.net-pill{font-size:11px;font-weight:900;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.10);border-radius:999px;padding:7px 10px;color:#fff}
.hero-topbar{display:grid;grid-template-columns:40px 1fr auto;align-items:center;gap:10px;margin-top:10px}
.plain-icon{width:40px;height:40px;border-radius:12px;background:rgba(255,255,255,.06);color:#fff;display:flex;align-items:center;justify-content:center;border:1px solid rgba(255,255,255,.08);font-size:18px}
.hero-top-actions{display:flex;gap:8px}
.brand-line{display:flex;align-items:center;gap:8px;min-width:0}
.brand-mark{color:var(--gold-soft);font-size:18px}
.brand-line b{font-size:18px;color:var(--gold-soft);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.premium-dark-card{
  background:linear-gradient(180deg,rgba(7,28,25,.9),rgba(8,37,32,.86));
  border:1px solid rgba(220,179,93,.14);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04),var(--shadow);
}
.hero-copy{margin-top:16px;padding:18px;border-radius:26px}
.hero-salam{margin:0 0 8px;color:#38d39f;font-weight:800}
.hero-copy h1{margin:0;color:#fff;font-size:22px;line-height:1.28}
.big-clock{margin-top:16px;font-size:56px;font-weight:900;letter-spacing:-.04em;line-height:.95;color:#fff}
.hero-date{margin-top:14px;display:flex;align-items:center;gap:8px;color:#d7ece7;font-size:14px;font-weight:700}
.prayer-today-card{
  margin:18px 0 -55px;
  padding:18px;
  border-radius:24px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  background:linear-gradient(135deg,rgba(8,77,70,.98),rgba(6,47,43,.98));
  border:1px solid rgba(220,179,93,.22);
  box-shadow:0 18px 45px rgba(0,0,0,.33);
}
.prayer-today-card small{font-weight:900;color:#c7f3e7}
.prayer-today-card h2{margin:6px 0 4px;font-size:22px;color:#fff}
.prayer-today-card p{margin:0;color:#d4ece6;font-size:12px;line-height:1.45}
.prayer-today-card button{
  flex:0 0 auto;
  background:linear-gradient(135deg,var(--gold),#b9892c);
  color:#1d1808;
  border-radius:999px;
  padding:11px 14px;
  font-weight:900;
  box-shadow:0 8px 20px rgba(0,0,0,.18);
}
main{padding:68px 18px 16px;position:relative;z-index:1}
.page{display:none;animation:fadeUp .24s ease}.page.active{display:block}
@keyframes fadeUp{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.section-head,.page-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.section-head h2,.page-top h2{margin:0;font-size:23px;letter-spacing:-.03em;color:#fff}
.compact-head h2{font-size:20px}
.section-head button,.tool-row button,.select-card button,.button-stack button,.location-chip{
  background:linear-gradient(135deg,#0d7b66,#18a983);
  color:#fff;
  border-radius:15px;
  padding:11px 14px;
  font-weight:900;
  box-shadow:0 10px 22px rgba(11,125,95,.22);
}
.page-top{align-items:flex-start;justify-content:flex-start}
.page-top p{margin:5px 0 0;color:var(--ink-soft);font-size:13px;font-weight:650}
.back-btn{width:44px;height:44px;border-radius:15px;background:#11352f;color:var(--gold-soft);font-size:30px;font-weight:900;line-height:1;border:1px solid rgba(220,179,93,.12)}
.feature-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:16px}
.overview-chip{padding:12px 10px;border-radius:18px;background:linear-gradient(180deg,#0e2b26,#0a211e);border:1px solid rgba(220,179,93,.14);color:#dcefe9;font-size:12px;font-weight:800;text-align:center;line-height:1.35}
.overview-chip span{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;border-radius:999px;background:rgba(220,179,93,.16);color:var(--gold-soft);margin-right:4px;padding:0 6px}
.poster-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.menu-card{
  min-height:118px;
  text-align:left;
  padding:14px;
  border-radius:22px;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.premium-card{
  background:linear-gradient(180deg,#0f2d28,#0a211e);
  border:1px solid rgba(220,179,93,.14);
  color:#fff;
  box-shadow:0 12px 35px rgba(0,0,0,.20);
}
.menu-card.wide{grid-column:1/-1;min-height:82px}
.menu-card span{width:46px;height:46px;display:flex;align-items:center;justify-content:center;background:rgba(220,179,93,.10);border-radius:16px;font-size:25px;border:1px solid rgba(220,179,93,.14)}
.menu-card b{font-size:15px;line-height:1.22;color:#fff}
.menu-card small{color:#bdd7d0;font-weight:700;line-height:1.35}
.wide-banner{flex-direction:row;align-items:center;gap:14px;justify-content:space-between;background:linear-gradient(135deg,#0f3a34,#0b2622)}
.wide-banner div{flex:1;min-width:0;text-align:left}
.wide-banner em{font-style:normal;font-size:30px;color:var(--gold-soft)}
.schedule-dashboard,.premium-panel,.warning-card,.select-card,.list-item,.detail-card,input,select,.loader,.empty,.error{
  border-radius:24px;
  border:1px solid rgba(220,179,93,.12);
}
.schedule-dashboard{margin-top:16px;padding:18px;background:linear-gradient(180deg,#0e2b26,#091f1c)}
.schedule-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.schedule-head h3{margin:0;font-size:20px;color:#fff}
.location-chip{font-size:12px;padding:9px 12px;background:#133b35}
.home-prayer-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.time-box{padding:12px 8px;border-radius:18px;background:#112f2a;border:1px solid rgba(255,255,255,.06);text-align:center}
.time-box small{display:block;color:#a7c9bf;font-weight:800;font-size:12px}
.time-box b{display:block;margin-top:5px;color:#fff;font-size:18px}
.time-box.active{border-color:rgba(220,179,93,.4);box-shadow:inset 0 0 0 1px rgba(220,179,93,.16);background:linear-gradient(180deg,#173b34,#112924)}
.countdown-box{margin-top:14px;padding:14px 16px;border-radius:20px;background:linear-gradient(180deg,#0b1e1c,#071311);border:1px solid rgba(220,179,93,.18);display:flex;align-items:center;justify-content:space-between;gap:10px}
.countdown-box small{display:block;color:#b8d6cf;font-weight:800}
.countdown-box h4{margin:6px 0 0;color:var(--gold-soft);font-size:29px;line-height:1}
.countdown-timer{font-size:26px;font-weight:900;color:#fff;letter-spacing:.04em}
.home-promo-panel{margin-top:16px;background:linear-gradient(180deg,#0f2d28,#0a211e);box-shadow:0 12px 35px rgba(0,0,0,.18);display:flex;align-items:center;justify-content:space-between;gap:14px;padding:18px}
.premium-panel small{color:#42d39f;font-weight:900}
.premium-panel h3{margin:3px 0 5px;font-size:17px;color:#fff}
.premium-panel p,.warning-card p,.list-item p,.detail-card p{margin:0;color:var(--ink-soft);font-size:13px;line-height:1.55}
.premium-panel>span{width:44px;height:44px;border-radius:50%;background:linear-gradient(135deg,#dcb35d,#f4d37a);display:flex;align-items:center;justify-content:center;font-weight:900;color:#604600;flex:0 0 auto}
.benefit-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:16px}
.benefit-chip{padding:12px 10px;border-radius:16px;background:#0d2622;border:1px solid rgba(220,179,93,.12);color:#dfeee9;font-size:12px;font-weight:800;text-align:center}
.warning-card{display:block;background:#251c0d;border-color:rgba(220,179,93,.20);padding:18px}
.warning-card b{display:block;margin-bottom:7px;color:#f3d78c}
.tool-row{display:grid;grid-template-columns:1fr auto;gap:10px;margin-bottom:14px}
input,select,.list-item,.detail-card,.select-card,.loader,.empty,.error{
  background:linear-gradient(180deg,#0f2c27,#0a211e);
  color:#effffb;
  box-shadow:0 12px 32px rgba(0,0,0,.14);
}
input,select{width:100%;outline:0;padding:14px 14px;font-weight:750}
input:focus,select:focus{border-color:rgba(220,179,93,.35);box-shadow:0 0 0 4px rgba(220,179,93,.08)}
.list-stack,.detail-stack{display:grid;gap:12px}
.list-item{display:flex;align-items:center;gap:13px;text-align:left;width:100%;color:inherit;padding:15px}
.num-badge{width:42px;height:42px;border-radius:15px;background:linear-gradient(135deg,#173b34,#1d4b42);color:var(--gold-soft);display:flex;align-items:center;justify-content:center;font-weight:950;flex:0 0 auto;border:1px solid rgba(220,179,93,.14)}
.list-item h3,.detail-card h3{margin:0;font-size:16px;color:#fff}
.detail-card{padding:15px}
.arabic{font-family:"Noto Naskh Arabic","Amiri",serif;font-size:25px;line-height:2.1;text-align:right;color:#fff8de}
.latin{color:#8fd0bd;font-size:13px;line-height:1.7}
.translation{color:#effffb;font-weight:650;line-height:1.65}
.audio-row{display:flex;flex-wrap:wrap;gap:9px;margin-top:10px}
.audio-row button,.mini-btn{background:#133a34;color:#f6e0a7;border-radius:999px;padding:9px 12px;font-weight:900;border:1px solid rgba(220,179,93,.14)}
.select-card{display:grid;gap:10px;margin-bottom:14px;padding:15px}.select-card label{font-weight:900;font-size:13px;color:#d0e8e1}
.compact .list-item{align-items:flex-start}
.prayer-times-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-top:12px}
.time-chip{border-radius:16px;background:#112f2a;padding:10px;text-align:center;border:1px solid rgba(255,255,255,.05)}
.time-chip small{display:block;color:#b6d3cb;font-weight:800}.time-chip b{display:block;margin-top:3px;color:#fff;font-size:15px}
.button-stack{display:grid;gap:12px;margin:14px 0}
.button-stack button:nth-child(2){background:linear-gradient(135deg,#4b5563,#111827)}
.button-stack button:nth-child(3){background:linear-gradient(135deg,#dcb35d,#b48127);color:#201504}
.button-stack button:nth-child(4){background:#11352f;color:#fff;border:1px solid rgba(220,179,93,.12)}
.bottom-nav{
  position:fixed;
  left:50%;
  bottom:16px;
  transform:translateX(-50%);
  width:min(calc(100% - 28px),446px);
  height:74px;
  background:rgba(10,31,28,.95);
  backdrop-filter:blur(16px);
  border:1px solid rgba(220,179,93,.12);
  border-radius:30px;
  box-shadow:0 18px 45px rgba(0,0,0,.40);
  display:grid;
  grid-template-columns:repeat(5,1fr);
  align-items:center;
  z-index:20;
}
.bottom-nav button{background:transparent;color:#96b6ad;font-size:11px;font-weight:900;display:flex;flex-direction:column;align-items:center;gap:4px}.bottom-nav button span{font-size:20px}
.bottom-nav button.active{color:var(--gold-soft)}
.bottom-nav .main-fab{width:58px;height:58px;border-radius:50%;background:linear-gradient(135deg,#0d7b66,#20c08f);color:#fff;margin:0 auto;box-shadow:0 12px 25px rgba(11,125,95,.34);font-size:0}.bottom-nav .main-fab span{font-size:27px}
.toast{position:fixed;left:50%;bottom:104px;transform:translateX(-50%) translateY(20px);width:min(calc(100% - 38px),400px);background:#071715;color:#fff;border-radius:18px;padding:13px 15px;font-weight:800;text-align:center;box-shadow:0 18px 45px rgba(0,0,0,.35);opacity:0;pointer-events:none;transition:.22s;z-index:40;border:1px solid rgba(220,179,93,.12)}.toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
.loader,.empty,.error{padding:18px;color:#d7e9e4;font-weight:800;text-align:center}
.error{background:#34161b;color:#ffd9df;border-color:#7f3140}.hidden{display:none!important}
@media (max-width:420px){
  .poster-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .home-prayer-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .home-prayer-grid .time-box:nth-child(4),
  .home-prayer-grid .time-box:nth-child(5){grid-column:span 1}
  .big-clock{font-size:48px}
}
@media(max-width:360px){
  .app-shell{width:100%}
  .hero-card{padding-left:14px;padding-right:14px}
  .hero-copy h1{font-size:20px}
  .poster-grid,.feature-overview,.benefit-strip{grid-template-columns:repeat(2,minmax(0,1fr))}
  .overview-chip:last-child,.benefit-chip:last-child{grid-column:1/-1}
  .home-prayer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .countdown-box{flex-direction:column;align-items:flex-start}
  .countdown-timer{font-size:22px}
  main{padding-left:14px;padding-right:14px}
  .prayer-times-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
body.light{
  background:linear-gradient(180deg,#e5fff9 0%,#f3fffb 55%,#ecfef8 100%);
  color:#12322d;
}
body.light .app-shell{background:linear-gradient(180deg,#f4fffc,#edfff8);box-shadow:0 20px 65px rgba(0,0,0,.15)}
body.light .hero-card{background:linear-gradient(135deg,#0b4d44 0%,#0d7b66 45%,#0fa982 100%)}
body.light .premium-dark-card,
body.light .menu-card.premium-card,
body.light .schedule-dashboard,
body.light .home-promo-panel,
body.light input,
body.light select,
body.light .list-item,
body.light .detail-card,
body.light .select-card,
body.light .benefit-chip,
body.light .overview-chip,
body.light .bottom-nav,
body.light .warning-card,
body.light .time-box,
body.light .countdown-box,
body.light .time-chip{background:#ffffff;color:#17322d;border-color:rgba(12,93,72,.10)}
body.light .section-head h2,
body.light .page-top h2,
body.light .schedule-head h3,
body.light .list-item h3,
body.light .detail-card h3,
body.light .premium-panel h3,
body.light .menu-card b{color:#14352f}
body.light .premium-panel p,
body.light .list-item p,
body.light .detail-card p,
body.light .page-top p,
body.light .menu-card small,
body.light .overview-chip,
body.light .benefit-chip,
body.light .time-box small,
body.light .time-chip small,
body.light .hero-date,
body.light .translation,
body.light .latin{color:#476760}
body.light .bottom-nav button{color:#5f7973}
body.light .bottom-nav button.active{color:var(--emerald)}
body.light .brand-line b{color:#fff}
body.light .location-chip,.body.light .plain-icon{background:#effaf6}


/* V7 poster-2 pixel closer overrides */
.hero-card{min-height:378px;padding-bottom:24px;background:radial-gradient(circle at 78% 22%,rgba(255,255,255,.07),transparent 18%),linear-gradient(180deg,#061b18 0%,#072826 40%,#0a3c39 100%)}
.hero-card::before{content:"";position:absolute;inset:auto 16px 88px auto;width:172px;height:118px;background:radial-gradient(circle at 50% 100%,rgba(220,179,93,.18),transparent 55%);border-radius:999px}
.hero-card::after{content:"🕌";position:absolute;right:24px;bottom:96px;font-size:90px;opacity:.14;filter:grayscale(1)}
.hero-topbar{margin-top:8px}
.plain-icon{background:rgba(255,255,255,.04);border-color:rgba(255,255,255,.07);border-radius:10px}
.brand-line b{font-size:17px}
.hero-copy{margin-top:14px;padding:16px 18px 14px;border-radius:22px}
.hero-salam{font-size:14px;margin-bottom:4px}
.hero-copy h1{font-size:19px;color:#e9fffa}
.big-clock{margin-top:10px;font-size:58px;letter-spacing:-.05em}
.hero-date{margin-top:8px;font-size:13px;color:#d2e7e1}
.prayer-today-card{margin-top:16px;padding:16px 18px;border-radius:20px;background:linear-gradient(180deg,#0a3a34,#082621)}
.prayer-today-card h2{font-size:18px}
.prayer-today-card button{padding:10px 13px;font-size:13px}
.poster-mini-head{margin-bottom:12px}
.poster-mini-head h2{font-size:18px}
.poster-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.menu-card{min-height:104px;padding:12px 11px;border-radius:18px;align-items:flex-start;justify-content:flex-start}
.menu-card span{width:42px;height:42px;font-size:22px;border-radius:14px}
.menu-card b{font-size:14px}
.menu-card small{font-size:11px;line-height:1.25}
.wide-banner{min-height:66px;padding:12px 14px;border-radius:18px}
.wide-banner span{flex:0 0 38px;width:38px;height:38px}
.wide-banner div b{font-size:15px}
.wide-banner div small{font-size:11px}
.schedule-dashboard{margin-top:14px;padding:16px;border-radius:22px}
.schedule-head h3{font-size:17px}
.location-chip{padding:8px 10px;border-radius:999px;background:#12362f;color:#f3d78c;font-size:11px}
.home-prayer-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.time-box{padding:10px 6px;border-radius:14px;background:#0f2924}
.time-box small{font-size:11px}
.time-box b{font-size:17px;margin-top:4px}
.poster-countdown{margin-top:12px;padding:13px 14px;border-radius:16px;background:linear-gradient(180deg,#0a1b18,#081311)}
.count-left small{font-size:11px}
.count-left h4{font-size:20px;color:#ffd98a}
.count-right{text-align:right}
.count-right span{display:block;margin-top:4px;color:#91b4ab;font-size:10px;font-weight:800}
.countdown-timer{font-size:24px}
.home-location-footer{margin-top:10px;width:100%;text-align:left;background:#0f2924;border:1px solid rgba(220,179,93,.12);color:#d9ece6;padding:12px 14px;border-radius:16px;font-weight:800}
.poster-benefits{margin-top:14px}
.benefit-chip{font-size:11px;padding:11px 8px;border-radius:14px}
.compact-panel{margin-top:14px;padding:14px 16px;border-radius:18px}
.compact-panel h3{font-size:15px}
.compact-panel p{font-size:12px}
@media (max-width:420px){
  .big-clock{font-size:50px}
  .poster-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .menu-card{min-height:98px}
  .home-prayer-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
  .time-box b{font-size:15px}
}
@media (max-width:360px){
  .poster-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .menu-card.wide{grid-column:1/-1}
  .home-prayer-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .big-clock{font-size:44px}
}


/* V8 ultra closer to poster 2 */
.app-shell{width:min(100%,430px);background:linear-gradient(180deg,#071513 0%,#0a1c19 100%)}
.hero-card{min-height:402px;padding:12px 16px 24px;border-bottom-left-radius:28px;border-bottom-right-radius:28px;background:radial-gradient(circle at 80% 22%,rgba(255,255,255,.05),transparent 18%),linear-gradient(180deg,#051513 0%,#08211e 38%,#0b3330 100%)}
.hero-card::after{font-size:84px;right:30px;bottom:110px;opacity:.12}
.status-row{height:36px}
.status-row strong{font-size:13px}
.island{width:112px;height:28px}
.net-pill{display:none}
.hero-topbar{grid-template-columns:34px 1fr auto;gap:8px;margin-top:12px}
.plain-icon{width:34px;height:34px;font-size:16px;border-radius:10px;background:rgba(255,255,255,.035)}
.brand-line{gap:7px}
.brand-mark{font-size:16px}
.brand-line b{font-size:16px;font-weight:800}
.hero-copy{margin-top:12px;padding:14px 16px 12px;border-radius:20px;background:linear-gradient(180deg,rgba(7,26,23,.88),rgba(7,30,26,.84))}
.hero-salam{font-size:12px;color:#36c38d;margin-bottom:2px}
.hero-copy h1{font-size:16px;line-height:1.35;font-weight:600;color:#f1fffc}
.big-clock{margin-top:12px;font-size:54px;font-weight:900;letter-spacing:-.045em}
.hero-date{margin-top:7px;font-size:12px;gap:6px}
.prayer-today-card{margin-top:14px;margin-bottom:-50px;padding:14px 16px;border-radius:18px;background:linear-gradient(180deg,#0c3c35,#082722);border-color:rgba(220,179,93,.17)}
.prayer-today-card small{font-size:11px}
.prayer-today-card h2{font-size:17px;margin:4px 0 3px}
.prayer-today-card p{font-size:11px;max-width:220px}
.prayer-today-card button{padding:9px 12px;border-radius:999px;font-size:12px}
main{padding:60px 14px 14px}
.home-poster-frame{background:transparent}
.poster-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.menu-card{min-height:92px;padding:10px;border-radius:16px;gap:7px;justify-content:flex-start}
.menu-card span{width:38px;height:38px;font-size:20px;border-radius:12px}
.menu-card b{font-size:12px;line-height:1.25;font-weight:800}
.menu-card small{display:none}
.wide-banner{min-height:58px;padding:10px 12px;border-radius:16px;gap:10px}
.wide-banner span{width:34px;height:34px;flex:0 0 34px;font-size:18px;border-radius:10px}
.wide-banner div b{display:block;font-size:13px;line-height:1.2}
.wide-banner div small{display:block;font-size:10px;color:#bbd7cf;line-height:1.25}
.wide-banner em{font-size:24px}
.schedule-dashboard{margin-top:12px;padding:14px;border-radius:18px;background:linear-gradient(180deg,#0c2622,#081614)}
.schedule-head{margin-bottom:10px}
.schedule-head h3{font-size:16px;font-weight:800}
.location-chip{padding:7px 10px;font-size:10px;line-height:1.2}
.home-prayer-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}
.time-box{padding:8px 4px;border-radius:12px;background:#0d231f}
.time-box small{font-size:10px;line-height:1.15}
.time-box b{font-size:14px;margin-top:3px;font-weight:900}
.time-box.active{background:linear-gradient(180deg,#183730,#102521);border-color:rgba(220,179,93,.26)}
.poster-countdown{margin-top:10px;padding:12px;border-radius:14px;align-items:center}
.count-left small{font-size:10px}
.count-left h4{font-size:16px;margin-top:4px}
.count-right .countdown-timer{font-size:22px;letter-spacing:.02em}
.count-right span{font-size:9px;opacity:.95}
.home-location-footer{margin-top:10px;padding:10px 12px;border-radius:14px;font-size:12px;background:#0d231f}
.poster-benefits{margin-top:12px;gap:8px}
.benefit-chip{padding:10px 6px;border-radius:12px;font-size:10px;background:#0d231f}
.after-poster-panel{margin-top:14px}
.compact-panel{padding:13px 14px;border-radius:16px}
.compact-panel small{font-size:11px}.compact-panel h3{font-size:14px}.compact-panel p{font-size:11px}
.bottom-nav{width:min(calc(100% - 26px),404px);height:68px;border-radius:24px;bottom:12px}
.bottom-nav button{font-size:10px;gap:3px}.bottom-nav button span{font-size:18px}
.bottom-nav .main-fab{width:54px;height:54px}.bottom-nav .main-fab span{font-size:24px}
.toast{bottom:90px;width:min(calc(100% - 32px),360px)}
@media (max-width:360px){
  .app-shell{width:100%}
  .big-clock{font-size:46px}
  .poster-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .menu-card.wide{grid-column:1/-1}
  .home-prayer-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .time-box:nth-child(4),.time-box:nth-child(5){grid-column:span 1}
  .count-right .countdown-timer{font-size:18px}
}


/* V9 super final additions */
.home-poster-frame{padding-bottom:2px}
.tools-poster-section{margin-top:12px;padding:14px;border-radius:16px;background:linear-gradient(180deg,#0c221f,#081614);border:1px solid rgba(220,179,93,.12);box-shadow:0 12px 30px rgba(0,0,0,.16)}
.tools-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}
.tools-head h3{margin:0;color:#fff;font-size:15px;font-weight:800}.tools-head span{color:#f3d78c;font-size:11px;font-weight:800}
.tools-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.mini-tool-card{display:flex;align-items:center;gap:10px;padding:12px;border-radius:14px;background:#0d231f;border:1px solid rgba(220,179,93,.12);color:#fff;text-align:left;box-shadow:0 8px 24px rgba(0,0,0,.16)}
.mini-tool-card span{width:40px;height:40px;border-radius:12px;display:flex;align-items:center;justify-content:center;background:rgba(220,179,93,.10);font-size:20px;border:1px solid rgba(220,179,93,.14)}
.mini-tool-card b{display:block;font-size:13px;line-height:1.25}.mini-tool-card small{display:block;margin-top:3px;color:#b8d3cc;font-size:10px;line-height:1.3}
.tasbih-card,.qibla-card{padding:18px;border-radius:20px;background:linear-gradient(180deg,#0f2a26,#0a1d1a);border:1px solid rgba(220,179,93,.12);box-shadow:0 12px 32px rgba(0,0,0,.16)}
.tasbih-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.tasbih-top small{color:#f3d78c;font-weight:900}
.tasbih-number{font-size:64px;line-height:1;font-weight:900;color:#fff;text-align:center;margin:16px 0 8px;letter-spacing:-.04em}
.tasbih-sub{text-align:center;color:#b9d4cd;font-size:13px;margin:0 0 16px}
.tasbih-actions{display:grid;grid-template-columns:90px 1fr;gap:10px}.tasbih-btn{height:58px;border-radius:18px;font-weight:900;font-size:18px}.tasbih-btn.minus{background:#1a2624;color:#f4d78d;border:1px solid rgba(220,179,93,.12)}.tasbih-btn.plus{background:linear-gradient(135deg,#0d7b66,#19b084);color:#fff;box-shadow:0 12px 24px rgba(11,125,95,.22)}
.tasbih-presets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:12px}.preset-btn{padding:11px 10px;border-radius:14px;background:#0d231f;color:#e9f7f3;border:1px solid rgba(220,179,93,.12);font-weight:800}
.qibla-card{text-align:center}
.qibla-compass{position:relative;width:248px;height:248px;margin:0 auto 18px;border-radius:50%;background:radial-gradient(circle at 50% 50%,#11312c 0%,#0b201d 65%,#081513 100%);border:2px solid rgba(220,179,93,.22);box-shadow:inset 0 0 0 10px rgba(220,179,93,.03),0 18px 38px rgba(0,0,0,.18)}
.compass-ring{position:absolute;inset:14px;border-radius:50%;border:1px dashed rgba(220,179,93,.28)}
.compass-center{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:18px;height:18px;border-radius:50%;background:linear-gradient(135deg,#f3d78c,#b9892c);box-shadow:0 0 0 6px rgba(220,179,93,.08)}
.qibla-arrow{position:absolute;left:50%;top:24px;transform:translateX(-50%) rotate(0deg);transform-origin:50% 100px;font-size:42px;line-height:1;color:#22d3a1;text-shadow:0 0 18px rgba(34,211,161,.32);transition:transform .2s ease}
.qibla-label{position:absolute;left:50%;bottom:20px;transform:translateX(-50%);font-size:14px;font-weight:900;color:#f3d78c;letter-spacing:.06em}
.qibla-stats{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:12px}.qibla-stat{padding:12px;border-radius:14px;background:#0d231f;border:1px solid rgba(220,179,93,.10)}.qibla-stat small{display:block;color:#b4cec7;font-size:11px;font-weight:800}.qibla-stat b{display:block;margin-top:6px;color:#fff;font-size:19px}
.qibla-status{padding:12px;border-radius:14px;background:#0d231f;color:#dbece7;font-size:13px;line-height:1.45;margin-bottom:14px;border:1px solid rgba(220,179,93,.10)}
.qibla-buttons{margin:0}
@media(max-width:360px){.tools-grid{grid-template-columns:1fr}.qibla-compass{width:220px;height:220px}.qibla-arrow{transform-origin:50% 86px}.tasbih-number{font-size:54px}}
body.light .tools-poster-section,body.light .mini-tool-card,body.light .tasbih-card,body.light .qibla-card,body.light .qibla-stat,body.light .qibla-status,body.light .preset-btn{background:#ffffff;color:#17322d;border-color:rgba(12,93,72,.10)}
body.light .tools-head h3,body.light .mini-tool-card b,body.light .qibla-stat b,body.light .tasbih-number{color:#16362f}
body.light .mini-tool-card small,body.light .qibla-stat small,body.light .qibla-status,body.light .tasbih-sub{color:#4d6e66}

.preset-btn.active{background:linear-gradient(135deg,#0d7b66,#19b084);color:#fff;box-shadow:0 8px 18px rgba(11,125,95,.18)}


/* V10 ultra-final homepage precision overrides */
.app-shell{width:min(100%,412px);border-left:1px solid rgba(255,255,255,.04);border-right:1px solid rgba(255,255,255,.04)}
.hero-card{min-height:392px;padding:11px 15px 22px;border-bottom-left-radius:26px;border-bottom-right-radius:26px;background:radial-gradient(circle at 78% 21%,rgba(255,255,255,.05),transparent 16%),linear-gradient(180deg,#041311 0%,#07201d 38%,#0a322f 100%)}
.hero-card::after{right:28px;bottom:108px;font-size:78px;opacity:.11}
.status-row{height:34px}
.status-row strong{font-size:12px;font-weight:700}.island{width:108px;height:27px}
.hero-topbar{margin-top:10px;grid-template-columns:32px 1fr auto}.plain-icon{width:32px;height:32px;border-radius:9px;font-size:15px}
.brand-mark{font-size:15px}.brand-line b{font-size:15px}
.hero-copy{margin-top:11px;padding:13px 15px 11px;border-radius:18px}
.hero-copy h1{font-size:15px;line-height:1.35}.hero-salam{font-size:11px}.big-clock{font-size:52px;margin-top:10px}.hero-date{font-size:11px;margin-top:6px}
.prayer-today-card{margin-top:13px;margin-bottom:-47px;padding:13px 14px;border-radius:16px}.prayer-today-card h2{font-size:16px}.prayer-today-card p{font-size:10.5px}
main{padding:56px 12px 12px}
.home-poster-frame{display:grid;gap:10px}
.poster-grid{gap:7px}.menu-card{min-height:88px;padding:9px;border-radius:15px}.menu-card span{width:36px;height:36px;border-radius:11px;font-size:18px}.menu-card b{font-size:11.5px;line-height:1.2}
.wide-banner{min-height:54px;padding:9px 11px;border-radius:15px}.wide-banner span{width:32px;height:32px;flex:0 0 32px}.wide-banner div b{font-size:12.5px}.wide-banner div small{font-size:9.5px}.wide-banner em{font-size:22px}
.schedule-dashboard{margin-top:0;padding:13px;border-radius:16px}.schedule-head h3{font-size:15px}.location-chip{font-size:9.5px;padding:7px 9px}
.home-prayer-grid{gap:6px}.time-box{padding:8px 4px;border-radius:11px}.time-box small{font-size:9px}.time-box b{font-size:13px}
.poster-countdown{margin-top:9px;padding:11px 12px;border-radius:13px}.count-left small{font-size:9px}.count-left h4{font-size:15px}.count-right .countdown-timer{font-size:21px}.count-right span{font-size:8.5px}
.home-location-footer{margin-top:9px;padding:9px 11px;border-radius:12px;font-size:11px}
.tools-poster-section{margin-top:0;padding:12px;border-radius:15px}.tools-head{margin-bottom:8px}.tools-head h3{font-size:14px}.tools-head span{font-size:10px}
.tools-grid{gap:8px}.mini-tool-card{padding:10px;border-radius:13px}.mini-tool-card span{width:36px;height:36px;border-radius:11px;font-size:18px}.mini-tool-card b{font-size:12px}.mini-tool-card small{font-size:9.5px}
.poster-benefits{gap:7px;margin-top:0}.benefit-chip{padding:9px 5px;border-radius:11px;font-size:9.5px}
.after-poster-panel{margin-top:12px}.compact-panel{padding:12px 13px;border-radius:15px}.compact-panel h3{font-size:13.5px}.compact-panel p{font-size:10.5px;line-height:1.45}
.bottom-nav{width:min(calc(100% - 22px),390px);height:66px;bottom:10px;border-radius:22px}.bottom-nav button{font-size:9.5px}.bottom-nav button span{font-size:17px}.bottom-nav .main-fab{width:52px;height:52px}.bottom-nav .main-fab span{font-size:23px}
@media (max-width:360px){
  .app-shell{width:100%}
  .big-clock{font-size:46px}
  .menu-card{min-height:86px}
  .tools-grid{grid-template-columns:1fr}
}
body.light .app-shell{width:min(100%,412px)}


/* V11 MASTER FINAL: poster-2 closer + mobile fix */
html{font-size:16px;-webkit-text-size-adjust:100%;text-size-adjust:100%}
body,button,input,select{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif!important}
.app-shell{width:min(100%,414px);background:linear-gradient(180deg,#061513 0%,#071b18 46%,#071411 100%)}
.hero-card{min-height:286px!important;padding:10px 15px 18px!important;border-bottom-left-radius:28px!important;border-bottom-right-radius:28px!important;background:radial-gradient(circle at 82% 36%,rgba(17,185,139,.10),transparent 22%),linear-gradient(180deg,#041311 0%,#061d1a 56%,#08322e 100%)!important}
.hero-card::before{height:92px!important;bottom:30px!important;opacity:.35!important}
.hero-card::after{right:28px!important;bottom:38px!important;font-size:70px!important;opacity:.11!important}
.status-row{height:32px!important}.status-row strong{font-size:12px!important;letter-spacing:.02em!important}.island{width:108px!important;height:27px!important}
.hero-topbar{margin-top:8px!important;grid-template-columns:34px 1fr auto!important}.plain-icon{width:34px!important;height:34px!important;border-radius:12px!important;background:rgba(255,255,255,.045)!important}.brand-line b{font-size:16px!important;color:#f5d889!important}.brand-mark{font-size:16px!important}
.hero-copy{margin-top:11px!important;padding:14px 16px 13px!important;border-radius:22px!important;background:linear-gradient(180deg,rgba(4,24,21,.88),rgba(4,33,28,.82))!important;border-color:rgba(220,179,93,.16)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.04),0 12px 28px rgba(0,0,0,.24)!important}
.hero-salam{font-size:12px!important;margin-bottom:4px!important;color:#24d194!important}.hero-copy h1{font-size:16px!important;line-height:1.3!important;font-weight:700!important}.big-clock{font-size:50px!important;margin-top:11px!important;letter-spacing:-.045em!important}.hero-date{font-size:12px!important;margin-top:8px!important;color:#d8eee8!important}
.prayer-today-card{display:none!important}
main{padding:18px 12px 12px!important}
.home-poster-frame{display:grid!important;gap:10px!important}
.poster-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}
.menu-card{min-height:92px!important;padding:9px!important;border-radius:16px!important;gap:7px!important;background:linear-gradient(180deg,#0d2a25,#091c19)!important;border:1px solid rgba(220,179,93,.17)!important;box-shadow:0 9px 22px rgba(0,0,0,.20)!important}
.menu-card span{width:37px!important;height:37px!important;border-radius:12px!important;font-size:19px!important;background:rgba(220,179,93,.12)!important;border:1px solid rgba(220,179,93,.16)!important}.menu-card b{font-size:11.5px!important;line-height:1.2!important;font-weight:800!important;color:#fff!important}.menu-card small{display:none!important}
.wide-banner{grid-column:1/-1!important;min-height:58px!important;padding:10px 12px!important;border-radius:16px!important;display:flex!important;flex-direction:row!important;align-items:center!important;gap:10px!important;background:linear-gradient(180deg,#0d2f2a,#091e1b)!important}.wide-banner span{width:34px!important;height:34px!important;flex:0 0 34px!important;font-size:18px!important}.wide-banner div b{font-size:13px!important}.wide-banner div small{display:block!important;font-size:10px!important;color:#b9d4cd!important}.wide-banner em{font-size:24px!important;color:#fff!important}
.schedule-dashboard{margin-top:0!important;padding:13px!important;border-radius:18px!important;background:linear-gradient(180deg,#0c2420,#071614)!important;border:1px solid rgba(220,179,93,.15)!important;box-shadow:0 12px 28px rgba(0,0,0,.20)!important}.schedule-head{margin-bottom:10px!important}.schedule-head h3{font-size:15px!important;font-weight:850!important}.location-chip{font-size:10px!important;padding:7px 9px!important;border-radius:999px!important;background:#12352f!important;color:#f3d78c!important;max-width:142px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.home-prayer-grid{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:6px!important}.time-box{padding:8px 4px!important;border-radius:12px!important;background:#0d231f!important}.time-box small{font-size:9px!important}.time-box b{font-size:13.5px!important}.time-box.active{border-color:rgba(220,179,93,.38)!important;background:linear-gradient(180deg,#1b3b34,#10231f)!important}
.poster-countdown{margin-top:10px!important;padding:11px 12px!important;border-radius:14px!important}.count-left small{font-size:9px!important}.count-left h4{font-size:16px!important}.count-right .countdown-timer{font-size:21px!important}.count-right span{font-size:8.5px!important}.home-location-footer{margin-top:9px!important;padding:10px 12px!important;border-radius:13px!important;font-size:11.5px!important;background:#0d231f!important;color:#d9ece6!important}
.tools-poster-section{margin-top:0!important;padding:12px!important;border-radius:16px!important;background:linear-gradient(180deg,#0c221f,#071614)!important}.tools-head h3{font-size:14px!important}.tools-head span{font-size:10px!important}.tools-grid{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important}.mini-tool-card{padding:10px!important;border-radius:14px!important;background:#0d231f!important}.mini-tool-card span{width:36px!important;height:36px!important;font-size:18px!important}.mini-tool-card b{font-size:12px!important}.mini-tool-card small{font-size:9.5px!important}
.poster-benefits{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important;margin-top:0!important}.benefit-chip{padding:9px 5px!important;border-radius:12px!important;font-size:9.5px!important;background:#0d231f!important;border:1px solid rgba(220,179,93,.14)!important;color:#e7f4f0!important}.after-poster-panel{margin-top:12px!important}.compact-panel{padding:12px 13px!important;border-radius:16px!important}.compact-panel h3{font-size:13.5px!important}.compact-panel p{font-size:10.5px!important;line-height:1.45!important}
.bottom-nav{width:min(calc(100% - 22px),390px)!important;height:66px!important;bottom:10px!important;border-radius:24px!important;background:rgba(6,22,19,.96)!important}.bottom-nav button{font-size:9.5px!important}.bottom-nav button span{font-size:17px!important}.bottom-nav .main-fab{width:52px!important;height:52px!important}.bottom-nav .main-fab span{font-size:23px!important}
.select-card select option{color:#10231f;background:#fff}
@media(max-width:370px){.poster-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}.menu-card{min-height:88px!important;padding:8px!important}.menu-card b{font-size:10.5px!important}.home-prayer-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important}.time-box b{font-size:12px!important}.tools-grid{grid-template-columns:1fr!important}.big-clock{font-size:43px!important}}

/* V13 notification trigger buttons */
.button-stack button{min-height:48px;text-align:center}
.button-stack #triggerPrayerNotifBtn{background:linear-gradient(135deg,#0d7b66,#14b88d);color:#fff}
.button-stack #triggerAdzanNowBtn{background:linear-gradient(135deg,#dcb35d,#b9872a);color:#211606}
.button-stack #rescheduleAdzanBtn{background:linear-gradient(135deg,#155e75,#0f766e);color:#fff}
.button-stack #disableAdzanBtn{background:linear-gradient(135deg,#4b5563,#111827);color:#fff}
.button-stack #openPermissionBtn{background:#11352f;color:#fff;border:1px solid rgba(220,179,93,.12)}
body.light .button-stack #openPermissionBtn{background:#ffffff;color:#0d7b66;border-color:rgba(12,93,72,.12)}
