:root{
  --bg:#f7fbf8;
  --bg2:#eef8f2;
  --card:#ffffff;
  --text:#10251a;
  --muted:#5d7167;
  --accent:#16a263;
  --accent2:#0f7f4c;
  --soft:#e9f7ef;
  --line:#dce9e1;
  --shadow:0 18px 50px rgba(16,37,26,.08);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:linear-gradient(180deg,var(--bg2),var(--bg));
  color:var(--text);
}
a{color:var(--accent);text-decoration:none}
a:hover{color:var(--accent2)}
.app{
  max-width:1080px;
  margin:auto;
  padding:22px 18px 92px;
}
.topnav{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(247,251,248,.92);
  backdrop-filter:blur(16px);
  border-bottom:1px solid var(--line);
}
.topnav-inner{
  max-width:1080px;
  margin:auto;
  padding:14px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--text);
  font-weight:950;
  letter-spacing:-.02em;
}
.logo{
  width:36px;
  height:36px;
  border-radius:14px;
  display:grid;
  place-items:center;
  background:var(--accent);
  color:white;
  font-weight:950;
}
.navlinks{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
}
.nav-link{
  color:var(--muted);
  font-weight:800;
  font-size:14px;
}
.nav-link:hover{color:var(--accent)}
.hero{
  display:grid;
  grid-template-columns:1.08fr .92fr;
  gap:22px;
  align-items:center;
  padding-top:26px;
}
.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  background:var(--soft);
  color:var(--accent2);
  border:1px solid var(--line);
  font-weight:900;
  font-size:14px;
}
h1,h2,h3{color:var(--text);letter-spacing:-.03em}
h1{font-size:clamp(34px,7vw,68px);line-height:1;margin:16px 0}
h2{font-size:clamp(24px,4vw,36px);margin:0 0 12px}
p,.muted{color:var(--muted);line-height:1.72}
.lead{font-size:18px}
.panel,.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:26px;
  box-shadow:var(--shadow);
}
.panel{padding:22px}
.card{padding:18px}
.grid{display:grid;gap:14px}
.grid-2{grid-template-columns:repeat(2,1fr)}
.grid-3{grid-template-columns:repeat(3,1fr)}
.actions,.row{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.btn,button{
  border:1px solid var(--line);
  border-radius:16px;
  padding:12px 15px;
  background:#fff;
  color:var(--text);
  font:inherit;
  font-weight:900;
  cursor:pointer;
}
.btn.primary,button.primary,.primary{
  background:var(--accent);
  color:white;
  border-color:var(--accent);
}
.btn.soft,button.soft,.soft{
  background:var(--soft);
  color:var(--accent2);
  border-color:var(--line);
}
input,select{
  width:100%;
  border:1px solid var(--line);
  border-radius:16px;
  padding:13px 14px;
  background:#fff;
  color:var(--text);
  font:inherit;
}
.surah-card{
  display:grid;
  grid-template-columns:48px 1fr auto;
  align-items:center;
  gap:14px;
  padding:16px;
  border-radius:22px;
  background:#fff;
  border:1px solid var(--line);
  box-shadow:0 10px 30px rgba(16,37,26,.05);
  color:var(--text);
}
.surah-card:hover{border-color:rgba(22,162,99,.35);transform:translateY(-1px)}
.num{
  width:42px;
  height:42px;
  border-radius:15px;
  display:grid;
  place-items:center;
  background:var(--soft);
  color:var(--accent2);
  font-weight:950;
}
.arabic-name{
  font-size:28px;
  direction:rtl;
  font-family:"Times New Roman","Scheherazade New",serif;
}
.reader-hero{margin-top:16px}
.ayah{
  margin:14px 0;
  padding:20px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:26px;
  box-shadow:0 10px 30px rgba(16,37,26,.05);
}
.arabic{
  font-size:clamp(30px,6vw,48px);
  line-height:2.25;
  direction:rtl;
  text-align:right;
  font-family:"Times New Roman","Scheherazade New",serif;
  color:#111b16;
}
.ayah-num{
  display:inline-grid;
  place-items:center;
  min-width:34px;
  height:34px;
  border-radius:999px;
  background:var(--soft);
  color:var(--accent2);
  font-size:14px;
  font-weight:950;
  margin-right:8px;
}
.bookmarked{
  background:var(--accent)!important;
  color:white!important;
  border-color:var(--accent)!important;
}
.time-card{
  padding:18px;
  border-radius:22px;
  background:#fff;
  border:1px solid var(--line);
  box-shadow:0 10px 30px rgba(16,37,26,.05);
}
.time-card b{display:block;color:var(--muted);font-size:14px;margin-bottom:6px}
.time-card strong{font-size:30px;color:var(--text)}
.time-card.next{border-color:rgba(22,162,99,.55);box-shadow:0 0 0 1px rgba(22,162,99,.18),var(--shadow)}
.time-card.next b,.time-card.next strong{color:var(--accent2)}
.bottomnav{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:60;
  background:rgba(255,255,255,.96);
  backdrop-filter:blur(16px);
  border-top:1px solid var(--line);
  padding:10px 12px;
}
.bottomnav-inner{
  max-width:720px;
  margin:auto;
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:8px;
}
.bottom-link{
  text-align:center;
  padding:10px 8px;
  border-radius:14px;
  background:var(--soft);
  color:var(--accent2);
  font-weight:900;
  font-size:13px;
}
.notice{
  background:#fff8df;
  border:1px solid #f0df9e;
  color:#69550c;
  border-radius:18px;
  padding:14px;
}
@media(max-width:820px){
  .topnav-inner{align-items:flex-start;flex-direction:column}
  .navlinks{gap:10px}
  .hero,.grid-2,.grid-3{grid-template-columns:1fr}
  .surah-card{grid-template-columns:46px 1fr}
  .arabic-name{grid-column:2;font-size:25px}
  .app{padding:18px 14px 92px}
}

.audio-player{margin-top:16px;padding:14px;background:var(--soft);border:1px solid var(--line);border-radius:20px}
.audio-player audio{width:100%;margin-top:10px}
