@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("fonts/ibm-plex-sans-arabic-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: optional;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-089F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E, U+2010-2011, U+204F, U+2E41;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("fonts/ibm-plex-sans-arabic-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: optional;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-089F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E, U+2010-2011, U+204F, U+2E41;
}
@font-face {
  font-family: "Ramadan Arabic Fallback";
  src: local("Segoe UI"), local("Tahoma");
  size-adjust: 105%;
  ascent-override: 95%;
  descent-override: 25%;
  line-gap-override: 0%;
}
:root {
  --bg: #071d2b;
  --bg2: #0b222e;
  --panel: #102a35;
  --panel-line: #294754;
  --ink: #edf4f6;
  --ink-dim: #9db4be;
  --accent: #cbf36a;
  --accent2: #9ecb38;
  --chip: #17384a;
  --radius: 18px;
  --font: "IBM Plex Sans Arabic", "Ramadan Arabic Fallback", "Segoe UI", Tahoma, "Noto Naskh Arabic", "Geeza Pro", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.7;
  overflow-x: clip;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent2); }
img { display: block; max-width: 100%; }
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 20px; }
header, footer { background: var(--bg2); border-color: var(--panel-line); }
header { border-bottom: 1px solid var(--panel-line); }
footer { border-top: 1px solid var(--panel-line); margin-top: 44px; padding: 26px 0 34px; }
.header-in, .foot-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.header-in { padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand img { width: 46px; height: 46px; border-radius: 12px; }
.bname { font-weight: 700; font-size: 20px; }
.bname small { display: block; font-size: 12px; color: var(--ink-dim); font-weight: 400; letter-spacing: .4px; }
nav { display: flex; flex-wrap: wrap; gap: 14px 22px; }
nav a { color: var(--ink-dim); }
nav a:hover, nav a:focus-visible { color: var(--accent); }
.hero { padding: 52px 0 10px; text-align: center; }
h1 { font-size: 40px; font-weight: 800; line-height: 1.35; margin: 0; }
h1 .hl, h2 .hl { color: var(--accent); }
h2 { font-size: 26px; font-weight: 800; margin: 0 0 14px; }
.answer-line { margin: 12px 0 0; font-size: 19px; }
.answer-line b, .v, .accent { color: var(--accent); }
.status-row, .chips { margin-top: 14px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.chip {
  background: var(--chip);
  border: 1px solid var(--panel-line);
  color: var(--ink);
  padding: 5px 16px;
  border-radius: 999px;
  font-size: 14px;
}
.chip.expected { color: var(--accent); border-color: var(--accent2); }
.counter {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 34px auto 8px;
  max-width: 760px;
  min-height: 118px;
}
.unit {
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  padding: 22px 6px 14px;
  text-align: center;
  min-height: 118px;
}
.num, .day-figure, .fasting-figure {
  font-variant-numeric: tabular-nums;
  direction: ltr;
  unicode-bidi: isolate;
  color: var(--accent);
  font-weight: 800;
}
.unit .num { font-size: 52px; line-height: 1.1; min-height: 58px; }
.unit .lbl { font-size: 16px; color: var(--ink-dim); margin-top: 4px; }
.fasting-figure { font-size: clamp(4.6rem, 22vw, 7.5rem); line-height: 1; margin: 18px 0 0; }
.counter-note { text-align: center; color: var(--ink-dim); font-size: 14px; margin: 10px 0 0; }
.datecard, .card, .pause, .twin, .eid-strip {
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  padding: 22px 26px;
}
.datecard { max-width: 760px; margin: 26px auto 0; text-align: start; }
.datecard .row, .twin p { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px dashed var(--panel-line); flex-wrap: wrap; }
.datecard .row:last-of-type { border-bottom: none; }
.datecard .k { color: var(--ink-dim); }
.datecard .v { font-weight: 700; }
.basis { margin: 14px 0 0; font-size: 14px; color: var(--ink-dim); text-align: center; }
section { padding: 38px 0 6px; }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { padding: 11px 10px; text-align: right; border-bottom: 1px solid var(--panel-line); }
th { color: var(--ink-dim); font-weight: 600; }
tr:last-child td { border-bottom: none; }
.faq details {
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: 14px;
  padding: 14px 20px;
  margin-bottom: 10px;
}
.faq summary { cursor: pointer; font-weight: 700; font-size: 17px; }
.faq p { color: var(--ink-dim); margin: 8px 0 0; }
.links-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.links-grid a {
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: 14px;
  padding: 16px 18px;
  color: var(--ink);
  font-weight: 600;
  display: block;
}
.links-grid a:hover { border-color: var(--accent2); color: var(--accent); }
.progress { height: 10px; background: var(--chip); border-radius: 999px; overflow: hidden; margin-top: 16px; }
.progress span { display: block; height: 100%; background: var(--accent); }
.crumbs { color: var(--ink-dim); font-size: 14px; margin-top: 22px; }
.foot-in { color: var(--ink-dim); font-size: 14px; align-items: flex-start; }
.eid-strip, .pause { max-width: 760px; margin: 18px auto 0; text-align: start; }
@media (max-width: 720px) {
  h1 { font-size: 30px; }
  .unit .num { font-size: 36px; }
  .hero { padding-top: 32px; }
  table, thead, tbody, tr, th, td { display: block; width: 100%; }
  thead { display: none; }
  tr { border-bottom: 1px solid var(--panel-line); padding: 8px 0; }
  td { border-bottom: 0; padding: 4px 0; }
  td::before { content: attr(data-label); display: block; color: var(--ink-dim); font-size: 13px; }
}
@media (max-width: 380px) {
  .counter { gap: 8px; }
  .unit { padding: 14px 2px; }
  .wrap { padding: 0 14px; }
}
