/* مِيقَات — اتجاه «فجر القاهرة» */
:root {
  --ink: #f6faf9;
  --muted: #9fb5ba;
  --muted-strong: #d1e1e1;
  --night: #07161d;
  --night-soft: #0b232c;
  --panel: #10303a;
  --panel-raised: #16404a;
  --line: rgba(165, 218, 211, 0.16);
  --gold: #e9c46a;
  --gold-soft: #ffe8ad;
  --gold-ink: #3b2c0a;
  --cyan: #71d7c9;
  --green: #8ce1bd;
  --radius-lg: 28px;
  --radius-md: 18px;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--night);
  font-family: "Tajawal", Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  z-index: -2;
  inset: 0;
  background: radial-gradient(circle at 82% 6%, rgba(48, 139, 132, 0.23), transparent 34%), radial-gradient(circle at 12% 64%, rgba(233, 196, 106, 0.09), transparent 28%), linear-gradient(165deg, #0b252d 0%, #07161d 56%, #041016 100%);
}
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  opacity: .2;
  pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.45) .7px, transparent .7px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, black, transparent 76%);
}
a { color: inherit; text-decoration: none; }
button, select { font: inherit; }
.page-shell { width: min(1160px, calc(100% - 56px)); margin: 0 auto; padding-bottom: 32px; }
.site-header { height: 92px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 39px; height: 39px; display: grid; place-items: center; color: var(--gold); }
.brand-mark svg { width: 100%; height: 100%; fill: currentColor; }
.brand-copy { display: grid; line-height: 1.1; gap: 5px; }
.brand-copy strong { color: var(--ink); font: 700 17px/1 "Alexandria", sans-serif; letter-spacing: .08em; }
.brand-copy small { color: var(--muted); font-size: 11px; }
.header-note { color: var(--muted); display: flex; align-items: center; gap: 8px; font-size: 12px; }
.live-dot, .status-pulse { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(120,214,177,.11); }
main { padding-top: 75px; }
.hero { position: relative; display: grid; grid-template-columns: 1fr 330px; column-gap: 60px; align-items: end; }
.hero::after { content: ""; position: absolute; left: 39%; bottom: 5px; width: 260px; height: 260px; border: 1px solid rgba(242,193,78,.12); border-radius: 50%; transform: translate(-50%, 22%); pointer-events: none; }
.eyebrow { grid-column: 1 / -1; display: flex; align-items: center; gap: 11px; color: var(--gold); font-size: 12px; margin-bottom: 25px; letter-spacing: .03em; }
.eyebrow-line { width: 30px; height: 1px; background: var(--gold); opacity: .75; }
h1 { position: relative; z-index: 1; font: 600 clamp(34px, 5vw, 61px)/1.32 "Alexandria", sans-serif; letter-spacing: -.055em; margin: 0; }
h1 em { color: var(--gold); font-style: normal; }
.hero-intro { color: var(--muted-strong); font-size: 16px; max-width: 355px; margin: 24px 0 7px; }
.location-control { position: relative; z-index: 2; justify-self: end; width: 100%; max-width: 330px; }
.location-control label { display: block; color: var(--muted); font-size: 12px; margin: 0 0 10px 4px; }
.select-wrap { display: flex; align-items: center; gap: 12px; height: 57px; padding: 0 17px; background: rgba(16,48,58,.82); border: 1px solid var(--line); border-radius: 14px; transition: border-color .2s, box-shadow .2s; }
.select-wrap:focus-within { border-color: rgba(242,193,78,.75); box-shadow: 0 0 0 4px rgba(242,193,78,.08); }
.select-wrap > svg:first-child { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: var(--gold); stroke-width: 1.6; }
.select-wrap .chevron { width: 17px; height: 17px; fill: none; stroke: var(--muted); stroke-width: 1.7; margin-right: auto; pointer-events: none; }
select { appearance: none; flex: 1; min-width: 0; color: var(--ink); background: transparent; border: 0; outline: 0; cursor: pointer; font-size: 15px; }
select option { background: #10303a; color: var(--ink); }
.date-strip { margin-top: 82px; padding: 19px 0; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.date-main { display: flex; align-items: center; gap: 12px; font: 500 18px/1.3 "Alexandria", sans-serif; }
.date-main .date-separator { color: var(--gold); font-size: 20px; }
.date-meta { color: var(--muted); display: flex; gap: 8px; align-items: center; font-size: 13px; }
.date-meta strong { color: var(--muted-strong); font-weight: 500; }
.mini-sun { color: var(--gold); font-size: 22px; line-height: 0; }
.next-prayer { margin-top: 28px; padding: 22px 27px 20px; background: linear-gradient(105deg, rgba(19,65,72,.98), rgba(10,35,44,.98)); border: 1px solid rgba(233,196,106,.4); border-radius: var(--radius-lg); box-shadow: 0 18px 60px rgba(0,0,0,.2), inset 0 1px rgba(255,255,255,.04); overflow: hidden; position: relative; }
.next-prayer::before { content: ""; position: absolute; width: 280px; height: 280px; border-radius: 50%; left: -75px; top: -185px; background: rgba(242,193,78,.1); filter: blur(2px); }
.next-topline { position: relative; display: flex; align-items: center; gap: 10px; color: var(--gold); font-size: 12px; }
.next-rule { height: 1px; width: 35px; background: rgba(242,193,78,.35); }
#next-label { color: var(--muted-strong); }
.next-content { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: 15px 0 9px; }
.next-name { font: 600 clamp(23px, 3vw, 32px)/1.3 "Alexandria", sans-serif; color: var(--ink); }
.countdown-label { color: var(--muted); font-size: 12px; margin-top: 6px; }
.countdown-pair { display: flex; align-items: stretch; gap: 12px; }
.countdown-item { min-width: 150px; padding: 9px 13px 10px; border: 1px solid rgba(242,193,78,.25); border-radius: 13px; background: rgba(7,13,33,.2); }
.countdown-item > span { display: block; color: var(--muted); font-size: 10px; margin-bottom: 6px; }
.countdown { display: block; color: var(--gold); font: 600 clamp(25px, 3vw, 38px)/1 "Alexandria", sans-serif; direction: ltr; letter-spacing: .045em; white-space: nowrap; text-shadow: 0 0 25px rgba(242,193,78,.18); }
.iqama-countdown-item { border-color: rgba(139,217,229,.24); }
.iqama-countdown { color: var(--cyan); text-shadow: 0 0 25px rgba(139,217,229,.14); }
.next-time-wrap { display: flex; align-items: end; flex-direction: column; gap: 2px; }
.next-time-label { font-size: 11px; color: var(--muted); }
.next-time-wrap strong { color: var(--gold-soft); font: 500 22px/1.4 "Alexandria", sans-serif; }
.next-iqama-label { color: var(--muted); font-size: 10px; margin-top: 5px; }
.next-time-wrap .next-iqama-time { color: var(--cyan); font-size: 17px; }
.countdown-bar { position: relative; height: 3px; background: rgba(255,255,255,.08); border-radius: 10px; overflow: hidden; }
.countdown-bar span { display: block; height: 100%; width: 0%; background: var(--gold); border-radius: inherit; transition: width 1s linear; }
.prayer-section { margin-top: 58px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 21px; }
.section-kicker { display: block; color: var(--gold); font-size: 11px; margin-bottom: 7px; letter-spacing: .03em; }
h2 { font: 600 24px/1.3 "Alexandria", sans-serif; margin: 0; letter-spacing: -.04em; }
.sunrise-note { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 13px; padding-bottom: 4px; }
.sunrise-note strong { color: var(--muted-strong); font-weight: 500; margin-right: 3px; }
.sunrise-icon { color: var(--gold); font-size: 22px; line-height: 0; }
.prayer-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.prayer-card { min-height: 161px; padding: 22px 19px 18px; display: flex; flex-direction: column; justify-content: space-between; background: rgba(11,36,44,.76); border: 1px solid var(--line); border-radius: var(--radius-md); position: relative; overflow: hidden; transition: transform .25s ease, border-color .25s ease, background .25s ease; animation: rise .5s both; }
.prayer-card:nth-child(2) { animation-delay: .05s; }.prayer-card:nth-child(3) { animation-delay: .1s; }.prayer-card:nth-child(4) { animation-delay: .15s; }.prayer-card:nth-child(5) { animation-delay: .2s; }
.prayer-card:hover { transform: translateY(-4px); border-color: rgba(233,196,106,.5); background: rgba(22,62,68,.9); }
.prayer-card.is-next { background: linear-gradient(150deg, rgba(233,196,106,.16), rgba(11,36,44,.92) 65%); border-color: rgba(233,196,106,.78); box-shadow: 0 12px 35px rgba(0,0,0,.16); }
.prayer-card.is-next::after { content: ""; position: absolute; width: 90px; height: 90px; left: -23px; bottom: -50px; border-radius: 50%; background: rgba(242,193,78,.16); filter: blur(8px); }
.prayer-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.prayer-symbol { width: 28px; height: 28px; display: grid; place-items: center; color: var(--muted); border: 1px solid var(--line); border-radius: 50%; font-size: 15px; }
.is-next .prayer-symbol { color: var(--gold); border-color: rgba(242,193,78,.5); }
.prayer-name { color: var(--muted-strong); font-size: 13px; }
.prayer-card.is-next .prayer-name { color: var(--gold-soft); }
.prayer-times { display: flex; align-items: baseline; justify-content: space-between; gap: 7px; }
.prayer-time { display: block; direction: ltr; text-align: right; color: var(--ink); font: 500 25px/1 "Alexandria", sans-serif; letter-spacing: -.05em; }
.is-next .prayer-time { color: var(--gold); }
.iqama-time { direction: ltr; color: var(--muted-strong); font: 500 13px/1.2 "Alexandria", sans-serif; white-space: nowrap; }
.iqama-label { display: block; direction: rtl; color: var(--muted); font: 400 10px/1.4 "Tajawal", sans-serif; text-align: left; margin-bottom: 3px; }
.is-next .iqama-time { color: var(--gold-soft); }
.prayer-state { color: var(--muted); font-size: 11px; }
.is-next .prayer-state { color: var(--gold); }
.calculation-note { margin-top: 46px; display: flex; align-items: center; gap: 15px; padding: 16px 19px; background: rgba(11,34,42,.68); border: 1px solid rgba(113,215,201,.18); border-radius: 15px; color: var(--muted); }
.note-icon { flex: 0 0 auto; width: 29px; height: 29px; display: grid; place-items: center; color: var(--cyan); border: 1px solid rgba(139,217,229,.3); border-radius: 50%; font-size: 13px; }
.calculation-note p { margin: 0; font-size: 12px; }
.note-arrows { margin-right: auto; color: var(--cyan); font-size: 18px; }
.site-footer { margin-top: 47px; padding-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #71888b; font-size: 11px; border-top: 1px solid rgba(165,218,211,.12); }
.footer-brand { display: flex; gap: 11px; align-items: center; }
.contact-link { display: inline-flex; align-items: center; gap: 9px; padding: 8px 13px; color: var(--muted-strong); border: 1px solid rgba(113,215,201,.2); border-radius: 10px; background: rgba(11,34,42,.58); transition: border-color .2s, color .2s, background .2s; }
.contact-link:hover { color: var(--ink); border-color: rgba(233,196,106,.55); background: rgba(22,62,68,.8); }
.contact-label { color: var(--gold); font-size: 10px; }
.contact-link strong { font-weight: 500; }
.contact-number { color: var(--cyan); letter-spacing: .03em; }
.footer-year { margin-right: auto; color: #465273; direction: ltr; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 1000px) {
  .page-shell { width: min(1320px, calc(100% - 72px)); }
  main { padding-top: 62px; }
  .hero { grid-template-columns: minmax(0, 1fr) 380px; column-gap: 78px; }
  h1 { font-size: clamp(48px, 5.2vw, 76px); }
  .hero-intro { font-size: 18px; max-width: 450px; margin-top: 28px; }
  .location-control { max-width: 380px; }
  .select-wrap { height: 66px; padding-inline: 21px; }
  select { font-size: 18px; }
  .date-strip { margin-top: 64px; padding-block: 24px; }
  .date-main { font-size: 21px; }
  .next-prayer { margin-top: 32px; padding: 30px 36px 26px; }
  .next-name { font-size: clamp(34px, 3.4vw, 52px); }
  .countdown-item { min-width: 188px; padding: 13px 16px 14px; }
  .countdown { font-size: clamp(34px, 3.2vw, 50px); }
  .next-time-wrap strong { font-size: 28px; }
  .prayer-section { margin-top: 66px; }
  h2 { font-size: 30px; }
  .prayer-list { gap: 14px; }
  .prayer-card { min-height: 190px; padding: 26px 23px 21px; }
  .prayer-name { font-size: 16px; }
  .prayer-time { font-size: 31px; }
  .iqama-time { font-size: 14px; }
}
@media (max-width: 780px) {
  .page-shell { width: min(100% - 32px, 560px); }
  .site-header { height: 78px; }
  main { padding-top: 46px; }
  .hero { display: block; }
  .hero::after { left: 12%; bottom: auto; top: 24px; width: 190px; height: 190px; }
  .hero-intro { margin-top: 18px; }
  .location-control { max-width: none; margin-top: 30px; }
  .date-strip { margin-top: 48px; }
  .next-prayer { margin-top: 22px; padding: 19px 20px 17px; }
  .next-content { grid-template-columns: 1fr auto; gap: 16px; }
  .next-time-wrap { grid-column: 2; grid-row: 1; }
  .countdown-pair { grid-column: 1 / -1; grid-row: 2; gap: 8px; margin-top: 6px; }
  .countdown-item { min-width: 0; flex: 1; padding: 8px 9px; }.countdown { font-size: 25px; }
  .prayer-section { margin-top: 44px; }
  .prayer-list { grid-template-columns: repeat(2, 1fr); gap: 9px; }
  .prayer-card { min-height: 142px; }
  .prayer-card:last-child { grid-column: 1 / -1; min-height: 118px; }
}
@media (max-width: 430px) {
  .header-note { font-size: 0; }.header-note .live-dot { width: 8px; height: 8px; }
  h1 { font-size: 34px; }
  .date-main { font-size: 14px; gap: 8px; }.date-meta { font-size: 11px; }
  .section-heading { align-items: start; gap: 12px; }.sunrise-note { font-size: 11px; white-space: nowrap; }
  h2 { font-size: 20px; }.prayer-time { font-size: 22px; }.iqama-time { font-size: 11px; }
  .site-footer { align-items: stretch; flex-direction: column; gap: 12px; }.footer-year { margin-right: 0; }.contact-link { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
