/* Rijal Al-Fajr public site. Tokens copied from the design handoff (tokens/tokens.css). */
:root {
  --rf-night-950:#081528; --rf-night-900:#0A1830; --rf-night-800:#10254A; --rf-night-700:#1B3A66; --rf-night-600:#2B4C7E;
  --rf-gold-400:#F2C676; --rf-gold-500:#E8B65A; --rf-gold-600:#D9993C; --rf-gold-text:#8A5A12; --rf-gold-text-strong:#5E3D0B;
  --rf-gold-surface:#FFF6E3; --rf-gold-surface-2:#FBE7BE; --rf-gold-border:#F0DDB4; --rf-gold-ring:#FBEBC8;
  --rf-green-300:#7FC4A6; --rf-green-500:#2F7D62; --rf-green-600:#1F6B52; --rf-green-700:#16503D;
  --rf-green-surface:#E6F2EC; --rf-green-section:#EAF3EE; --rf-green-border:#CFE2D8;
  --rf-paper:#FBF7EF; --rf-card:#FFFFFF; --rf-ink:#142238; --rf-muted:#586274; --rf-line:#ECE4D4; --rf-line-soft:#F0EADD;
  --rf-track:#F0ECE3; --rf-chip-bg:#F3EEE3; --rf-neutral-pill:#F1F2F4; --rf-input-border:#DCD3C1; --rf-empty-day:#EFE9DC;
  --rf-hero-bg: radial-gradient(140% 52% at 50% 106%, rgba(240,186,104,.95) 0%, rgba(214,152,82,.55) 30%, rgba(27,58,102,0) 66%),
    linear-gradient(180deg, var(--rf-night-950) 0%, var(--rf-night-800) 55%, var(--rf-night-700) 100%);
  --rf-bar-gold: linear-gradient(270deg, #D49A3A, #F0C67A);
  --rf-bar-green: linear-gradient(270deg, #2F7D62, #5FAE8C);
  --rf-font:'IBM Plex Sans Arabic', system-ui, sans-serif;
  --rf-shadow-card:0 14px 40px rgba(16,37,74,.08);
}
* { box-sizing:border-box; }
html { -webkit-text-size-adjust:100%; }
body { margin:0; background:var(--rf-paper); color:var(--rf-ink); font-family:var(--rf-font); font-size:15px; line-height:1.8; }
a { color:var(--rf-green-600); } a:hover { color:var(--rf-green-700); }
a:focus-visible, button:focus-visible, select:focus-visible { outline:2px solid var(--rf-gold-500); outline-offset:2px; }
h1, h2, h3, p { margin:0; }
.sr { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.wrap { width:100%; max-width:1200px; margin:0 auto; padding-inline:16px; }
.muted { color:var(--rf-muted); }
.num { font-variant-numeric:tabular-nums; }

/* Hero + header */
.hero { position:relative; overflow:hidden; color:#fff; background:var(--rf-hero-bg); padding-bottom:36px; }
.hero--inner { background: radial-gradient(130% 60% at 50% 120%, rgba(240,186,104,.75) 0%, rgba(214,152,82,.35) 32%, rgba(27,58,102,0) 66%), linear-gradient(180deg, #081528 0%, #10254A 60%, #1B3A66 100%); padding-bottom:30px; }
.pattern { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; }
.site-header { position:relative; display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:76px; }
.brand { display:flex; align-items:center; gap:10px; color:#fff; text-decoration:none; }
.brand:hover { color:#fff; }
.brand b { font-size:19px; line-height:1.2; display:block; }
.brand small { font-size:11px; color:rgba(255,255,255,.72); display:block; }
.nav { display:flex; align-items:center; gap:28px; font-size:15px; font-weight:600; }
.nav-links { display:none; gap:28px; }
.nav-links a { color:rgba(255,255,255,.82); text-decoration:none; }
.nav-links a:hover { color:var(--rf-gold-500); }
.nav-links a[aria-current="page"] { color:#fff; }
.pill-link { display:inline-flex; align-items:center; min-height:44px; padding:0 16px; border-radius:999px; font-size:14px; font-weight:600; color:#fff; text-decoration:none; border:1px solid rgba(232,182,90,.45); }
.pill-link:hover { color:#fff; background:rgba(232,182,90,.14); }
.btn-gold { display:inline-flex; align-items:center; justify-content:center; min-height:50px; padding:0 22px; border-radius:14px; font-size:15px; font-weight:700; background:var(--rf-gold-500); color:var(--rf-night-900); text-decoration:none; }
.btn-gold:hover { background:var(--rf-gold-400); color:var(--rf-night-900); }
.btn-ghost { display:inline-flex; align-items:center; justify-content:center; min-height:50px; padding:0 22px; border-radius:14px; font-size:15px; font-weight:600; color:#fff; text-decoration:none; border:1px solid rgba(255,255,255,.35); background:rgba(8,21,40,.35); }
.btn-ghost:hover { color:#fff; background:rgba(255,255,255,.08); }
.nav .btn-gold { display:none; min-height:44px; padding:0 20px; border-radius:12px; }
.crumb { font-size:12px; color:rgba(255,255,255,.5); }
.crumb a { color:rgba(255,255,255,.75); text-decoration:none; } .crumb a:hover { color:var(--rf-gold-500); }
.crumb span { color:var(--rf-gold-500); }
.page-title { position:relative; display:flex; flex-direction:column; gap:6px; padding-top:8px; }
.page-title h1 { font-size:30px; font-weight:700; line-height:1.35; }
.page-title p { font-size:14px; color:rgba(255,255,255,.8); }

/* Home hero */
.home-hero { position:relative; display:grid; grid-template-columns:repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap:28px; align-items:center; padding-top:8px; }
.home-hero__text { display:flex; flex-direction:column; gap:12px; }
.tag { align-self:flex-start; display:inline-flex; align-items:center; gap:8px; padding:6px 12px; border-radius:999px; background:rgba(127,196,166,.14); border:1px solid rgba(127,196,166,.35); color:#BFE5D3; font-size:12px; font-weight:600; }
.tag::before { content:""; width:7px; height:7px; border-radius:50%; background:var(--rf-green-300); }
.display { font-size:34px; line-height:1.35; font-weight:700; }
.display em { font-style:normal; color:var(--rf-gold-500); }
.lead { font-size:15px; line-height:1.8; color:rgba(255,255,255,.82); max-width:520px; }
.cta-row { display:flex; gap:10px; }
.cta-row a { flex:1; }
.counter { display:flex; flex-direction:column; align-items:center; gap:4px; padding:26px 20px 22px; border-radius:24px; background:rgba(8,21,40,.55); border:1px solid rgba(232,182,90,.35); text-align:center; backdrop-filter:blur(6px); }
.counter__label { font-size:14px; font-weight:600; color:rgba(255,255,255,.85); }
.counter__value { display:flex; align-items:baseline; gap:10px; }
.counter__value b { font-size:76px; line-height:1.05; font-weight:700; color:var(--rf-gold-500); letter-spacing:-1px; }
.counter__value span { font-size:22px; font-weight:600; }
.counter__caption { display:inline-flex; align-items:center; gap:6px; font-size:12px; color:rgba(255,255,255,.72); }

/* Sections and cards */
.section { padding-top:32px; display:flex; flex-direction:column; gap:16px; }
.section-head { display:flex; align-items:flex-end; justify-content:space-between; gap:12px; }
.section-head h2 { font-size:22px; font-weight:700; }
.section-head p { font-size:13px; color:var(--rf-muted); }
.more { display:inline-flex; align-items:center; gap:2px; min-height:44px; font-size:13px; font-weight:600; white-space:nowrap; color:var(--rf-gold-text); text-decoration:none; }
.more:hover { color:#6B4409; text-decoration:underline; }
.card { border-radius:18px; background:var(--rf-card); border:1px solid var(--rf-line); }
.stats { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:10px; padding-top:24px; }
.stat { display:flex; flex-direction:column; gap:4px; padding:16px 12px; border-radius:18px; background:#fff; border:1px solid var(--rf-line); }
.stat__icon { display:none; }
.stat > span:last-child { display:flex; flex-direction:column; gap:4px; }
.stat b { font-size:26px; font-weight:700; color:var(--rf-night-800); line-height:1.3; }
.stat span { font-size:12px; line-height:1.5; color:var(--rf-muted); }
.stat--gold { background:var(--rf-gold-surface); border-color:var(--rf-gold-border); }
.stat--gold b { color:var(--rf-gold-text); } .stat--gold span { color:#6B5326; }

/* Podium (visual order RTL: 2nd, 1st, 3rd) */
.podium { display:flex; align-items:flex-end; gap:10px; padding:24px 12px 0; border-radius:24px; background:linear-gradient(180deg, #FFFFFF 0%, #FFF8EA 100%); border:1px solid var(--rf-line); }
.pod { flex:1; min-width:0; display:flex; flex-direction:column; align-items:center; gap:8px; color:var(--rf-ink); text-decoration:none; }
.pod:hover { color:var(--rf-ink); }
.pod--1 { flex:1.15; }
.pod__avatar { width:48px; height:48px; border-radius:50%; display:grid; place-items:center; font-weight:700; font-size:18px; }
.pod--1 .pod__avatar { width:56px; height:56px; background:var(--rf-night-800); color:var(--rf-gold-500); box-shadow:0 0 0 4px var(--rf-gold-ring); font-size:22px; }
.pod--2 .pod__avatar { background:#EEF2F7; color:var(--rf-night-700); }
.pod--3 .pod__avatar { background:#F7ECE2; color:#7A4A24; }
.pod__name { display:flex; flex-direction:column; align-items:center; text-align:center; }
.pod__name b { font-size:14px; font-weight:700; line-height:1.5; }
.pod--1 .pod__name b { font-size:15px; }
.pod__name span { font-size:12px; color:var(--rf-muted); }
.pod__block { width:100%; border-radius:14px 14px 0 0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; }
.pod__block b { font-weight:700; line-height:1; }
.pod__block span { font-weight:700; }
.pod--1 .pod__block { height:150px; background:linear-gradient(180deg, #F2C676 0%, #DDA145 100%); color:var(--rf-night-900); }
.pod--1 .pod__block b { font-size:38px; } .pod--1 .pod__block span { font-size:17px; }
.pod--2 .pod__block { height:112px; background:linear-gradient(180deg, #E4E9F0 0%, #C9D3E0 100%); color:var(--rf-night-800); }
.pod--2 .pod__block b { font-size:30px; color:var(--rf-night-700); } .pod--2 .pod__block span { font-size:15px; }
.pod--3 .pod__block { height:88px; background:linear-gradient(180deg, #EBC3A0 0%, #D7A27A 100%); color:#4A2A12; }
.pod--3 .pod__block b { font-size:28px; } .pod--3 .pod__block span { font-size:15px; }
.podium--students .pod--1 .pod__block { height:128px; }
.podium--students .pod--2 .pod__block { height:98px; }
.podium--students .pod--3 .pod__block { height:78px; }
.podium--students .pod__block b { font-size:26px !important; }
.podium--students .pod__block span { font-size:13px !important; }

/* Rate rows (halaqat, mosques) */
.list { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px; }
.rate-card { display:flex; flex-direction:column; gap:12px; padding:16px; border-radius:18px; background:#fff; border:1px solid var(--rf-line); color:var(--rf-ink); text-decoration:none; }
a.rate-card:hover { color:var(--rf-ink); border-color:#E2C88F; box-shadow:0 6px 18px rgba(16,37,74,.07); }
.rate-card__top { display:flex; align-items:center; gap:12px; }
.rate-card__icon { width:40px; height:40px; flex-shrink:0; border-radius:12px; display:grid; place-items:center; background:var(--rf-green-surface); color:var(--rf-green-600); }
.rate-card__body { flex:1; min-width:0; display:flex; flex-direction:column; }
.rate-card__body b { font-size:15px; font-weight:700; line-height:1.5; }
.rate-card__body span { font-size:12px; color:var(--rf-muted); }
.rate-card__pct { font-size:20px; font-weight:700; color:var(--rf-green-600); }
.rate-card__pct--navy { color:var(--rf-night-800); line-height:1.1; }
.rate-card__right { display:flex; flex-direction:column; align-items:flex-end; gap:4px; }
.rank { width:40px; height:40px; flex-shrink:0; border-radius:12px; display:grid; place-items:center; font-size:17px; font-weight:700; background:#EEF1F5; color:var(--rf-night-700); }
.rank--1 { background:var(--rf-gold-500); color:var(--rf-night-900); }
.rank--2 { background:#D5DDE8; color:var(--rf-night-700); }
.rank--3 { background:#E9C2A0; color:#4A2A12; }
.bar { height:8px; border-radius:99px; background:var(--rf-track); overflow:hidden; display:block; }
.bar > span { display:block; height:100%; border-radius:99px; background:var(--rf-bar-green); }
.bar--gold > span { background:var(--rf-bar-gold); }
.bar--green-track { background:#EEF0EC; }
.change { display:inline-flex; align-items:center; gap:2px; padding:2px 8px; border-radius:999px; font-size:12px; font-weight:700; background:var(--rf-neutral-pill); color:var(--rf-muted); white-space:nowrap; }
.change--up { background:var(--rf-green-surface); color:var(--rf-green-600); }
.caption { font-size:12px; color:var(--rf-muted); }

/* How to participate */
.how { margin-top:36px; padding:28px 20px; border-radius:28px; background:var(--rf-green-section); display:flex; flex-direction:column; gap:22px; scroll-margin-top:16px; }
.how h2 { font-size:22px; font-weight:700; }
.how__sub { font-size:13px; color:#44524B; }
.steps { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; }
.step { display:flex; gap:14px; }
.step__rail { display:flex; flex-direction:column; align-items:center; }
.step__icon { width:44px; height:44px; border-radius:50%; display:grid; place-items:center; background:var(--rf-night-800); color:var(--rf-gold-500); flex-shrink:0; }
.step--last .step__icon { background:var(--rf-gold-500); color:var(--rf-night-900); }
.step__line { width:2px; flex:1; min-height:20px; background:repeating-linear-gradient(#9CC3B1 0 4px, transparent 4px 8px); }
.step__body { display:flex; flex-direction:column; gap:4px; padding-bottom:20px; }
.step__body small { font-size:12px; font-weight:700; color:var(--rf-green-600); }
.step__body b { font-size:17px; font-weight:700; }
.step__body span { font-size:14px; line-height:1.7; color:#44524B; }
.chips-title { font-size:13px; font-weight:700; }
.chips { list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:8px; }
.chips li { padding:6px 12px; border-radius:999px; background:#fff; font-size:13px; color:#1F4A3B; border:1px solid var(--rf-green-border); }
.how__extra { display:flex; flex-direction:column; gap:10px; padding-top:16px; border-top:1px solid var(--rf-green-border); }

/* Footer */
.foot { margin-top:48px; background:var(--rf-night-900); color:#fff; }
.foot .wrap { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:18px; padding-block:32px 28px; }
.foot nav { display:flex; flex-wrap:wrap; gap:6px 20px; font-size:14px; }
.foot a { color:rgba(255,255,255,.8); text-decoration:none; min-height:32px; display:inline-flex; align-items:center; }
.foot a:hover { color:var(--rf-gold-500); }
.foot__privacy { flex-basis:100%; display:flex; gap:8px; font-size:12px; line-height:1.8; color:rgba(255,255,255,.7); }
.foot__credit { flex-basis:100%; margin:0; font-size:12px; color:rgba(255,255,255,.55); }
.foot__credit a { color:#fff; font-weight:600; }

/* Ranking page */
.filters { position:relative; margin-top:-14px; padding:16px; border-radius:22px; background:#fff; border:1px solid var(--rf-line); box-shadow:0 10px 30px rgba(16,37,74,.08); display:flex; flex-wrap:wrap; gap:14px 32px; align-items:flex-end; }
.field { display:flex; flex-direction:column; gap:8px; flex:1 1 280px; }
.field--city { flex:0 1 240px; }
.field > span, .field > label { font-size:13px; font-weight:600; color:var(--rf-muted); }
.seg { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:4px; padding:4px; border-radius:14px; background:var(--rf-chip-bg); max-width:480px; }
.seg a { display:grid; place-items:center; min-height:44px; border-radius:10px; font-size:14px; font-weight:600; padding:0 6px; color:#44506A; text-decoration:none; text-align:center; }
.seg a[aria-pressed="true"] { background:var(--rf-night-800); color:#fff; box-shadow:0 2px 6px rgba(16,37,74,.2); }
select { min-height:46px; padding:0 14px; border-radius:12px; border:1px solid var(--rf-input-border); background:#fff; font-family:inherit; font-size:15px; color:var(--rf-ink); }
.explainer { display:flex; gap:12px; padding:16px; border-radius:18px; background:var(--rf-gold-surface); border:1px solid var(--rf-gold-border); }
.explainer__icon { width:36px; height:36px; flex-shrink:0; border-radius:50%; display:grid; place-items:center; background:var(--rf-gold-surface-2); color:var(--rf-gold-text); }
.explainer b { display:block; font-size:15px; color:var(--rf-gold-text-strong); }
.explainer p { font-size:13px; line-height:1.75; color:#6B5326; }
.ranking-layout { display:flex; flex-wrap:wrap; gap:24px; align-items:flex-start; padding-top:18px; }
.ranking-main { flex:999 1 640px; min-width:0; display:flex; flex-direction:column; gap:10px; }
.ranking-side { flex:1 1 300px; min-width:0; display:none; flex-direction:column; gap:16px; }
.list-head { display:flex; justify-content:space-between; padding:0 4px; font-size:12px; color:var(--rf-muted); }
.table-card { display:none; border-radius:24px; background:#fff; border:1px solid var(--rf-line); overflow:hidden; }
.table-scroll { overflow-x:auto; }
.rtable { width:100%; min-width:680px; border-collapse:collapse; font-size:15px; }
.rtable thead tr { background:#F7F3EA; color:var(--rf-muted); font-size:13px; }
.rtable th, .rtable td { padding:14px 12px; text-align:right; }
.rtable th:first-child, .rtable td:first-child { padding-inline-start:20px; }
.rtable thead th { font-weight:600; }
.rtable tbody tr { border-top:1px solid var(--rf-line-soft); }
.rtable tbody th a { display:inline-flex; align-items:center; gap:10px; min-height:44px; color:var(--rf-ink); text-decoration:none; font-weight:700; }
.rtable tbody th a:hover { color:var(--rf-green-600); }
.side-card { display:flex; flex-direction:column; gap:10px; padding:24px; border-radius:24px; }
.side-card h2 { font-size:18px; font-weight:700; }
.side-card--gold { background:var(--rf-gold-surface); border:1px solid var(--rf-gold-border); }
.side-card--gold h2 { color:var(--rf-gold-text-strong); }
.side-card--gold p { font-size:14px; line-height:1.85; color:#6B5326; }
.side-card--gold .note { padding:12px 14px; border-radius:14px; background:#fff; color:var(--rf-gold-text-strong); }
.side-card--green { background:var(--rf-green-section); border:1px solid #D4E6DC; }
.side-card--green li { display:flex; align-items:center; justify-content:space-between; gap:12px; font-size:15px; }
.side-card--green .change { background:#fff; }

/* Mosque page */
.mosque-title { display:flex; align-items:center; gap:12px; }
.mosque-title__icon { width:52px; height:52px; flex-shrink:0; border-radius:16px; display:grid; place-items:center; background:rgba(232,182,90,.16); border:1px solid rgba(232,182,90,.45); color:var(--rf-gold-500); }
.mosque-title h1 { font-size:28px; font-weight:700; line-height:1.3; }
.mosque-title p { font-size:14px; color:rgba(255,255,255,.8); }
.tiles { position:relative; display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:8px; margin-top:20px; max-width:720px; }
.tile { display:flex; flex-direction:column; gap:2px; padding:12px; border-radius:16px; background:rgba(8,21,40,.5); border:1px solid rgba(255,255,255,.16); }
.tile--gold { border-color:rgba(232,182,90,.4); }
.tile span { font-size:11px; color:rgba(255,255,255,.75); }
.tile b { display:flex; align-items:center; gap:4px; font-size:24px; font-weight:700; }
.tile--gold b { color:var(--rf-gold-500); }
.tile small { font-size:13px; font-weight:500; color:rgba(255,255,255,.7); }
.chart { margin-top:18px; padding:18px 16px 14px; border-radius:22px; background:#fff; border:1px solid var(--rf-line); display:flex; flex-direction:column; gap:14px; }
.chart__head { display:flex; justify-content:space-between; align-items:flex-start; gap:8px; }
.chart__head h2 { font-size:17px; font-weight:700; }
.pill-green { padding:4px 10px; border-radius:999px; background:var(--rf-green-surface); color:var(--rf-green-600); font-size:12px; font-weight:700; white-space:nowrap; }
.bars { display:flex; align-items:flex-end; gap:5px; height:150px; padding-top:8px; border-bottom:1px solid var(--rf-line); }
.bars > span { flex:1; display:flex; flex-direction:column; align-items:center; justify-content:flex-end; gap:4px; height:100%; }
.bars small { font-size:10px; font-weight:500; color:var(--rf-muted); }
.bars i { display:block; width:100%; border-radius:6px 6px 2px 2px; background:linear-gradient(180deg, #2B4C7E, #1B3A66); }
.bars .today small { font-weight:700; color:var(--rf-gold-text); }
.bars .today i { background:linear-gradient(180deg, #F2C676, #D9993C); }
.days { display:flex; gap:5px; margin-top:-8px; }
.days span { flex:1; text-align:center; font-size:10px; color:var(--rf-muted); }
.days .today { color:var(--rf-gold-text); font-weight:700; }
.chart__legend { display:flex; justify-content:space-between; font-size:11px; color:var(--rf-muted); }
.chart__legend i { display:inline-block; width:10px; height:10px; border-radius:3px; background:#E0A848; margin-inline-end:6px; }
.tabs { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:4px; padding:4px; border-radius:16px; background:var(--rf-empty-day); max-width:560px; }
.tabs a { display:grid; place-items:center; min-height:46px; border-radius:12px; font-size:15px; font-weight:700; color:#44506A; text-decoration:none; }
.tabs a[aria-selected="true"] { background:var(--rf-night-800); color:#fff; box-shadow:0 2px 8px rgba(16,37,74,.2); }
.chip-row { display:flex; flex-wrap:wrap; gap:8px; }
.chip { display:inline-flex; align-items:center; min-height:40px; padding:0 16px; border-radius:999px; font-size:14px; font-weight:600; background:#fff; color:#2B3A52; border:1px solid var(--rf-input-border); text-decoration:none; }
.chip[aria-pressed="true"] { background:var(--rf-green-600); color:#fff; border-color:var(--rf-green-600); }
.srows { border-radius:20px; background:#fff; border:1px solid var(--rf-line); overflow:hidden; }
.srows ol { list-style:none; margin:0; padding:0; }
.srows li { border-top:1px solid var(--rf-line-soft); }
.srow { display:grid; grid-template-columns:26px minmax(0, 1fr) 40px 52px 46px; gap:8px; align-items:center; min-height:60px; padding:8px 12px; color:var(--rf-ink); text-decoration:none; }
.srow:hover { color:var(--rf-ink); background:#FFF8EA; }
.srow--head { min-height:0; padding:10px 12px; background:#F7F3EA; font-size:11px; font-weight:600; color:var(--rf-muted); }
.srow__who { display:flex; align-items:center; gap:8px; min-width:0; }
.srow__who > span:last-child { display:flex; flex-direction:column; min-width:0; }
.srow__who b { font-size:14px; font-weight:700; line-height:1.4; }
.srow__who small { font-size:11px; color:var(--rf-muted); }
.avatar { width:34px; height:34px; flex-shrink:0; border-radius:50%; display:grid; place-items:center; background:#EEF1F5; color:var(--rf-night-700); font-size:14px; font-weight:700; }
.flame { display:inline-flex; align-items:center; justify-content:center; gap:2px; font-size:13px; font-weight:600; color:var(--rf-gold-text); }
.empty { padding:20px; border-radius:18px; background:#fff; border:1px dashed var(--rf-input-border); text-align:center; color:var(--rf-muted); }

/* Student card (dialog + standalone) */
.sheet { border:0; padding:0; margin:auto auto 0; width:100%; max-width:480px; max-height:92vh; border-radius:28px 28px 0 0; background:var(--rf-paper); color:var(--rf-ink); box-shadow:0 -12px 40px rgba(0,0,0,.3); }
.sheet::backdrop { background:rgba(8,21,40,.6); }
.scard { display:flex; flex-direction:column; gap:16px; padding:10px 20px 24px; }
.scard__handle { align-self:center; width:44px; height:5px; border-radius:99px; background:var(--rf-input-border); }
.scard__top { display:flex; align-items:center; justify-content:space-between; }
.scard__label { font-size:13px; font-weight:700; color:var(--rf-gold-text); }
.close { width:44px; height:44px; border-radius:50%; display:grid; place-items:center; color:var(--rf-ink); text-decoration:none; background:none; border:0; cursor:pointer; }
.close:hover { color:var(--rf-ink); background:var(--rf-empty-day); }
.scard__who { display:flex; align-items:center; gap:16px; margin-top:-8px; }
.scard__avatar { width:84px; height:84px; flex-shrink:0; border-radius:50%; display:grid; place-items:center; background:var(--rf-night-800); color:var(--rf-gold-500); font-size:36px; font-weight:700; box-shadow:0 0 0 4px var(--rf-paper), 0 0 0 6px var(--rf-gold-500); }
.scard__who > span:last-child { display:flex; flex-direction:column; gap:4px; min-width:0; }
.scard__who h2 { font-size:24px; font-weight:700; line-height:1.3; }
.scard__who small { font-size:13px; color:var(--rf-muted); }
.level-chip { align-self:flex-start; display:inline-flex; align-items:center; gap:6px; padding:4px 10px; border-radius:999px; background:var(--rf-night-800); color:var(--rf-gold-500); font-size:12px; font-weight:700; }
.level { display:flex; flex-direction:column; gap:10px; padding:14px; border-radius:18px; background:#fff; border:1px solid var(--rf-line); }
.level__head { display:flex; justify-content:space-between; align-items:baseline; gap:8px; font-size:13px; }
.level__head b { color:var(--rf-night-800); }
.ladder { list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:4px; }
.ladder li { display:flex; flex-direction:column; gap:6px; font-size:11px; color:var(--rf-muted); }
.ladder li.current { font-weight:700; color:var(--rf-gold-text); }
.ladder i { height:6px; border-radius:99px; display:block; }
.mini { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:8px; }
.mini > div { display:flex; flex-direction:column; gap:2px; padding:12px; border-radius:16px; background:#fff; border:1px solid var(--rf-line); }
.mini b { display:flex; align-items:center; gap:4px; font-size:22px; font-weight:700; color:var(--rf-night-800); }
.mini span { font-size:11px; color:var(--rf-muted); }
.mini .gold { background:var(--rf-gold-surface); border-color:var(--rf-gold-border); }
.mini .gold b { color:var(--rf-gold-text); } .mini .gold span { color:#6B5326; }
.mini .green b { color:var(--rf-green-600); }
.grid30 { display:grid; grid-template-columns:repeat(10, minmax(0, 1fr)); gap:6px; }
.grid30 span { display:block; aspect-ratio:1 / 1; border-radius:6px; background:var(--rf-empty-day); border:1px solid #E2D9C7; }
.grid30 span.on { background:var(--rf-green-500); border-color:var(--rf-green-500); }
.grid30 span.today { box-shadow:0 0 0 2px var(--rf-paper), 0 0 0 4px var(--rf-gold-500); }
.sub-head { display:flex; justify-content:space-between; align-items:baseline; }
.sub-head h3 { font-size:15px; font-weight:700; }
.legend { display:flex; justify-content:space-between; align-items:center; font-size:11px; color:var(--rf-muted); }
.legend i { display:inline-block; width:10px; height:10px; border-radius:3px; margin-inline-end:4px; vertical-align:middle; }
.badges { list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:6px; }
.badges li { display:flex; flex-direction:column; align-items:center; gap:6px; text-align:center; font-size:11px; font-weight:700; line-height:1.4; }
.badge-tile { width:52px; height:52px; border-radius:16px; display:grid; place-items:center; }
.badges li.locked { font-weight:600; color:#44506A; }
.badges li.locked .badge-tile { background:#fff; border:1.5px dashed #D9C9A6; color:#A0824C; }
.badges li small { font-size:10px; font-weight:700; color:var(--rf-gold-text); }
.b-full_week .badge-tile { background:linear-gradient(160deg, #F2C676, #D9993C); color:var(--rf-night-900); }
.b-sunrise .badge-tile { background:linear-gradient(160deg, #3C8F70, #1F6B52); color:#fff; }
.b-streak_40 .badge-tile { background:linear-gradient(160deg, #F2C676, #D9993C); color:var(--rf-night-900); }
.b-juz_amma .badge-tile { background:linear-gradient(160deg, #2B4C7E, #10254A); color:var(--rf-gold-500); }
.share { min-height:52px; border-radius:16px; background:var(--rf-green-600); color:#fff; font-size:16px; font-weight:700; display:inline-flex; align-items:center; justify-content:center; gap:10px; text-decoration:none; }
.share:hover { background:#185842; color:#fff; }
.standalone { max-width:480px; margin:24px auto 0; border-radius:28px; background:var(--rf-paper); }

@media (min-width:720px) {
  .wrap { padding-inline:32px; }
  .site-header { min-height:88px; }
  .brand b { font-size:21px; } .brand small { font-size:12px; }
  .nav-links { display:flex; }
  .nav .btn-gold { display:inline-flex; }
  .nav .pill-link { display:none; }
  .hero { padding-bottom:112px; }
  .hero--inner { padding-bottom:72px; }
  .home-hero { gap:48px; padding-top:48px; }
  .home-hero__text { gap:20px; }
  .tag { font-size:13px; padding:7px 14px; }
  .display { font-size:56px; line-height:1.3; }
  .lead { font-size:18px; line-height:1.9; }
  .cta-row a { flex:0 0 auto; min-height:54px; padding:0 28px; font-size:16px; }
  .counter { padding:44px 32px 36px; border-radius:32px; gap:8px; box-shadow:0 30px 80px rgba(4,10,22,.35); }
  .counter__label { font-size:17px; }
  .counter__value b { font-size:120px; line-height:1; letter-spacing:-2px; }
  .counter__value span { font-size:30px; }
  .counter__caption { font-size:14px; }
  .stats { position:relative; margin-top:-64px; grid-template-columns:repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap:16px; padding-top:0; }
  .stat { flex-direction:row; align-items:center; gap:16px; padding:24px; border-radius:22px; box-shadow:var(--rf-shadow-card); }
  .stat__icon { display:grid; width:52px; height:52px; flex-shrink:0; border-radius:16px; place-items:center; background:#EEF2F7; color:var(--rf-night-700); }
  .stat__icon--green { background:var(--rf-green-surface); color:var(--rf-green-600); }
  .stat--gold .stat__icon { background:var(--rf-gold-surface-2); color:var(--rf-gold-text); }
  .stat > span:last-child { display:flex; flex-direction:column; }
  .stat b { font-size:34px; line-height:1.2; }
  .stat span { font-size:14px; }
  .home-split { display:flex; flex-wrap:wrap; gap:24px; align-items:stretch; padding-top:72px; }
  .home-split > .section { padding:32px; border-radius:28px; border:1px solid var(--rf-line); }
  .home-split > .section--podium { flex:999 1 560px; min-width:0; background:linear-gradient(180deg, #FFFFFF 0%, #FFF8EA 100%); gap:24px; }
  .home-split > .section--halaqat { flex:1 1 340px; min-width:0; background:#fff; }
  .section--podium .podium { border:0; background:none; padding:0; margin-top:auto; gap:16px; }
  .section-head h2 { font-size:28px; } .section-head p { font-size:15px; } .more { font-size:15px; }
  .section--halaqat .section-head h2 { font-size:24px; }
  .section--halaqat .rate-card { background:#F7FBF8; border-color:#DCEBE2; }
  .pod__avatar { width:60px; height:60px; }
  .pod--1 .pod__avatar { width:72px; height:72px; box-shadow:0 0 0 5px var(--rf-gold-ring); }
  .pod__name b { font-size:18px !important; } .pod--1 .pod__name b { font-size:20px !important; } .pod__name span { font-size:14px; }
  .pod--1 .pod__block { height:210px; } .pod--2 .pod__block { height:160px; } .pod--3 .pod__block { height:124px; }
  .pod__block { border-radius:18px 18px 0 0; }
  .pod--1 .pod__block b { font-size:56px; } .pod--1 .pod__block span { font-size:24px; }
  .pod--2 .pod__block b { font-size:44px; } .pod--3 .pod__block b { font-size:40px; } .pod--2 .pod__block span, .pod--3 .pod__block span { font-size:20px; }
  .how { margin-top:72px; padding:44px 40px; border-radius:32px; gap:32px; }
  .how > div:first-child { align-items:center; text-align:center; }
  .how h2 { font-size:32px; } .how__sub { font-size:16px; }
  .steps { display:grid; grid-template-columns:repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap:20px; }
  .step { flex-direction:column; gap:12px; padding:28px; border-radius:24px; background:#fff; border:1px solid #D4E6DC; }
  .step__line { display:none; }
  .step__icon { width:56px; height:56px; border-radius:18px; }
  .step__body { padding-bottom:0; }
  .foot { margin-top:80px; }
  .foot .wrap { padding-block:40px; gap:24px; }
  .foot__privacy { font-size:13px; padding-top:20px; border-top:1px solid rgba(255,255,255,.1); }
  .page-title { gap:8px; padding-top:36px; }
  .page-title h1 { font-size:44px; line-height:1.3; }
  .page-title p { font-size:17px; }
  .crumb { font-size:13px; }
  .filters { margin-top:-48px; padding:22px 24px; border-radius:24px; box-shadow:var(--rf-shadow-card); }
  .ranking-layout { padding-top:32px; }
  .ranking-main .list, .ranking-main .list-head, .explainer--mobile { display:none; }
  .table-card { display:block; }
  .ranking-side { display:flex; }
  .mosque-title h1 { font-size:40px; }
  .chart, .tabs-section { max-width:none; }
  .scard { padding:20px 28px 28px; }
  .sheet { margin:auto; border-radius:28px; }
  .scard__handle { display:none; }
}
@media (max-width:359px) {
  .counter__value b { font-size:64px; }
  .display { font-size:30px; }
}
