/* =====================================================================
   ARUUUBA 2 · «Noor» — shared design language for every artboard
   Light, calm, legible. Forest + gold identity, colour only with meaning.
   ===================================================================== */
:root{
  /* ground & surfaces — luminous ivory instead of the old olive grey */
  --bg:#FBFAF6; --bg2:#F3F1EA; --surface:#FFFFFF; --line:#E8E4D9; --line2:#D9D3C5; --hair:#F0EDE5;
  /* ink */
  --ink:#10241D; --ink2:#3B4B44; --mute:#5F6C65; --faint:#8C978F;
  /* identity */
  --forest:#14463A; --forest2:#0E3A2F; --forest-t:#E5EFEA; --mint:#9ED6BE;
  --gold:#C29A3F; --gold-t:#F7EED8; --gold-i:#6B5113;
  /* workspace (Mosque OS) */
  --os:#0F3B31; --os2:#164A3E; --os-ink:#EAF2EE; --os-mute:#A9C7BB; --os-line:#24574A;
  /* type */
  --f-d:"Sora","Inter",system-ui,sans-serif;
  --f-t:"Inter","IBM Plex Sans Arabic",system-ui,sans-serif;
  --f-ar:"IBM Plex Sans Arabic","Inter",system-ui,sans-serif;
  --f-q:"Noto Naskh Arabic","IBM Plex Sans Arabic",serif;
  /* shape */
  --r-xl:22px; --r-l:16px; --r-m:12px; --r-s:10px;
  --sh1:0 1px 2px rgba(16,36,29,.04),0 4px 14px rgba(16,36,29,.04);
  --sh2:0 2px 4px rgba(16,36,29,.05),0 12px 32px rgba(16,36,29,.08);
}
/* kinds: t tint · e edge (1px frame) · i ink on tint · s solid */
.k-post{--t:#EEF2E4;--e:#CDD7B6;--i:#43522B;--s:#5C704A}
.k-prog{--t:#E3F2EE;--e:#AFD8CD;--i:#135A4F;--s:#1F7A6C}
.k-vol{--t:#FAEBE4;--e:#EBC3B2;--i:#843820;--s:#B5542F}
.k-camp{--t:#FCF0DD;--e:#EFCF9F;--i:#74450F;--s:#A35F12}
.k-poll{--t:#ECEDF8;--e:#C8CBEC;--i:#363B86;--s:#5459B3}
.k-live{--t:#FDE9E6;--e:#F2BDB5;--i:#922A21;--s:#C93A2E}
.k-notice{--t:#F7EED8;--e:#E6D19D;--i:#6B5113;--s:#9A7419}
.k-care{--t:#ECEFF3;--e:#CBD2DA;--i:#384350;--s:#5C6878}
.k-os{--t:#E5EFEA;--e:#B4D1C5;--i:#1B4A3E;--s:#2C5A4D}

/* ---------- base ---------- */
.a2{font-family:var(--f-t);color:var(--ink);background:var(--bg);font-size:16px;line-height:1.55;-webkit-font-smoothing:antialiased;box-sizing:border-box}
.a2 *,.a2 *::before,.a2 *::after{box-sizing:border-box}
.a2 p,.a2 h1,.a2 h2,.a2 h3,.a2 h4,.a2 figure{margin:0}
.a2 a{text-decoration:none;color:inherit}
.a2 button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}
.a2 img{display:block;max-width:100%}
.ar{font-family:var(--f-ar)} .q{font-family:var(--f-q)}
.d1{font-family:var(--f-d);font-size:40px;line-height:1.1;font-weight:700;letter-spacing:-.02em}
.h1{font-family:var(--f-d);font-size:30px;line-height:1.15;font-weight:700;letter-spacing:-.015em}
.h2{font-family:var(--f-d);font-size:21px;line-height:1.25;font-weight:600;letter-spacing:-.01em}
.h3{font-family:var(--f-d);font-size:17px;line-height:1.3;font-weight:600}
.t{font-size:16px;line-height:1.55}
.s{font-size:14.5px;line-height:1.5;color:var(--ink2)}
.m{font-size:13px;line-height:1.4;color:var(--mute)}
.cap{font-size:11.5px;line-height:1.2;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--mute)}
.num{font-family:var(--f-d);font-variant-numeric:tabular-nums}
.b{font-weight:600} .bb{font-weight:700}
.row{display:flex;align-items:center;gap:8px}
.col{display:flex;flex-direction:column}
.sp{justify-content:space-between}
.grow{flex:1 1 auto;min-width:0}
.wrap{flex-wrap:wrap}
.ell{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.clamp2{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.clamp3{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.div{height:1px;background:var(--hair);border:0}

/* ---------- icons ---------- */
svg.i{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
svg.i.sm{width:16px;height:16px} svg.i.lg{width:24px;height:24px}
.ib{width:40px;height:40px;border-radius:var(--r-m);display:inline-grid;place-items:center;border:1px solid var(--line);background:var(--surface);color:var(--ink);flex:none;position:relative}
.ib.round{border-radius:999px}
.ib .badge{position:absolute;top:7px;right:8px;width:8px;height:8px;border-radius:50%;background:#C93A2E;box-shadow:0 0 0 2px var(--surface)}
.ico{width:40px;height:40px;border-radius:var(--r-m);display:inline-grid;place-items:center;background:var(--t,var(--forest-t));color:var(--s,var(--forest));flex:none}
.ico.sm{width:32px;height:32px;border-radius:var(--r-s)} .ico.lg{width:48px;height:48px;border-radius:14px}

/* ---------- surfaces ---------- */
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-l);box-shadow:var(--sh1)}
.card.kf{border-color:var(--e)}
.pad{padding:18px 20px} .pad-s{padding:14px 16px}
.inset{background:var(--bg2);border-radius:var(--r-m)}
.sec-h{display:flex;align-items:center;justify-content:space-between;gap:12px}
.link{font-size:14px;font-weight:600;color:var(--forest);display:inline-flex;align-items:center;gap:4px}

/* ---------- controls ---------- */
.btn{height:44px;padding:0 18px;border-radius:var(--r-m);display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:15px;font-weight:600;white-space:nowrap;border:1px solid var(--line2);background:var(--surface);color:var(--ink)}
.btn.p{background:var(--forest);border-color:var(--forest);color:#fff}
.btn.g{border-color:transparent;background:transparent}
.btn.gold{background:var(--gold);border-color:var(--gold);color:#1E1606}
.btn.k{background:var(--s);border-color:var(--s);color:#fff}
.btn.sm{height:36px;padding:0 14px;font-size:14px;border-radius:var(--r-s)}
.btn.pill{border-radius:999px}
.btn.w{width:100%}
.chip{height:34px;padding:0 14px;border-radius:999px;display:inline-flex;align-items:center;gap:6px;font-size:14px;font-weight:600;border:1px solid var(--line);background:var(--surface);color:var(--ink2);white-space:nowrap}
.chip.on{background:var(--ink);border-color:var(--ink);color:#fff}
.chip.sm{height:28px;padding:0 10px;font-size:12.5px}
.kchip{height:26px;padding:0 10px 0 8px;border-radius:999px;display:inline-flex;align-items:center;gap:6px;font-size:12.5px;font-weight:650;background:var(--t);color:var(--i);white-space:nowrap}
.kchip svg.i{width:14px;height:14px;stroke-width:2}
.tag{height:22px;padding:0 8px;border-radius:6px;display:inline-flex;align-items:center;font-size:11.5px;font-weight:700;letter-spacing:.04em;background:var(--bg2);color:var(--mute)}
.tag.ok{background:#E3F2E8;color:#1C6438} .tag.warn{background:var(--gold-t);color:var(--gold-i)} .tag.live{background:#FDE9E6;color:#A12C22}
.field{height:48px;border:1px solid var(--line2);border-radius:var(--r-m);background:var(--surface);display:flex;align-items:center;gap:10px;padding:0 14px;color:var(--mute);font-size:15.5px}
.field.big{height:52px;border-radius:14px;box-shadow:var(--sh1)}
.lab{font-size:13.5px;font-weight:600;color:var(--ink2)}
.seg{display:inline-flex;gap:4px;padding:4px;border-radius:var(--r-m);background:var(--bg2)}
.seg b,.seg span{height:34px;padding:0 14px;border-radius:9px;display:inline-flex;align-items:center;font-size:14px;font-weight:600;color:var(--mute)}
.seg b{background:var(--surface);color:var(--ink);box-shadow:0 1px 2px rgba(16,36,29,.08)}
.tabs{display:flex;gap:24px;border-bottom:1px solid var(--line)}
.tabs span,.tabs b{height:46px;display:inline-flex;align-items:center;font-size:15px;font-weight:600;color:var(--mute);border-bottom:2px solid transparent;margin-bottom:-1px;white-space:nowrap}
.tabs b{color:var(--ink);border-bottom-color:var(--forest)}
.bar{height:8px;border-radius:999px;background:var(--bg2);overflow:hidden}
.bar i{display:block;height:100%;border-radius:999px;background:var(--s,var(--forest))}
.toggle{width:44px;height:26px;border-radius:999px;background:var(--line2);position:relative;flex:none}
.toggle::after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.2)}
.toggle.on{background:var(--forest)} .toggle.on::after{left:21px}

/* ---------- avatars ---------- */
.av{width:40px;height:40px;border-radius:12px;overflow:hidden;flex:none;background:#fff;border:1px solid var(--line)}
.av img{width:100%;height:100%;object-fit:cover}
.av.sm{width:32px;height:32px;border-radius:10px} .av.lg{width:64px;height:64px;border-radius:18px} .av.xl{width:104px;height:104px;border-radius:26px;border:4px solid #fff;box-shadow:var(--sh2)}
.me{width:36px;height:36px;border-radius:50%;display:inline-grid;place-items:center;background:var(--gold-t);color:var(--gold-i);font-size:13px;font-weight:700;flex:none}
.me.lg{width:88px;height:88px;font-size:30px;font-family:var(--f-d)}
.ring{padding:3px;border-radius:20px;background:conic-gradient(var(--gold),var(--mint),var(--gold))}
.ring .av{border:3px solid #fff}

/* ---------- app shell (desktop) ---------- */
.shell{display:flex;flex-direction:column;min-height:100%}
.top{height:68px;display:flex;align-items:center;gap:16px;padding:0 28px;background:rgba(255,255,255,.92);border-bottom:1px solid var(--line)}
.logo{display:inline-flex;align-items:center;gap:10px;font-family:var(--f-d);font-weight:700;font-size:19px;letter-spacing:.06em;color:var(--ink)}
.logo i{width:30px;height:30px;border-radius:10px 10px 8px 8px;border:2.5px solid var(--ink);position:relative;display:inline-block}
.logo i::after{content:"";position:absolute;left:50%;top:52%;width:9px;height:9px;margin:-4.5px 0 0 -4.5px;border-radius:50%;background:#7B5A2E}
.search{flex:0 1 460px;height:44px;border-radius:999px;background:var(--bg2);display:flex;align-items:center;gap:10px;padding:0 16px;color:var(--mute);font-size:15px}
.kbd{margin-left:auto;font-size:12px;font-weight:600;padding:2px 7px;border-radius:6px;border:1px solid var(--line2);color:var(--mute);background:#fff}
.body{display:flex;gap:32px;padding:28px 28px 48px;align-items:flex-start;flex-wrap:wrap}
.side{flex:0 0 248px;display:flex;flex-direction:column;gap:22px}
.nav{display:flex;flex-direction:column;gap:2px}
.nav a{height:44px;padding:0 12px;border-radius:var(--r-m);display:flex;align-items:center;gap:12px;font-size:15.5px;font-weight:550;color:var(--ink2)}
.nav a.on{background:var(--forest-t);color:var(--forest);font-weight:650}
.nav a .cnt{margin-left:auto;min-width:22px;height:22px;padding:0 7px;border-radius:999px;background:var(--forest);color:#fff;font-size:12px;font-weight:700;display:inline-grid;place-items:center}
.main{flex:999 1 560px;min-width:0;display:flex;flex-direction:column;gap:24px}
.feedcol{max-width:640px;width:100%;display:flex;flex-direction:column;gap:20px}
.rail{flex:0 0 340px;display:flex;flex-direction:column;gap:20px}

/* ---------- workspace card in community sidebar ---------- */
.wscard{border-radius:var(--r-l);background:var(--os);color:var(--os-ink);padding:16px;display:flex;flex-direction:column;gap:12px}
.wscard .cap{color:var(--gold)}

/* ---------- Mosque OS shell ---------- */
.os-side{flex:0 0 264px;align-self:stretch;background:var(--os);color:var(--os-ink);display:flex;flex-direction:column;gap:18px;padding:18px 14px 20px}
.os-id{display:flex;align-items:center;gap:12px;padding:12px;border-radius:var(--r-l);background:var(--os2)}
.os-id .av{border:0}
.os-grp{display:flex;flex-direction:column;gap:2px}
.os-grp .cap{color:var(--os-mute);padding:0 12px 6px;display:flex;align-items:center;gap:8px;font-size:11px}
.os-grp .cap::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--dot,var(--mint))}
.os-nav{height:40px;padding:0 12px;border-radius:var(--r-s);display:flex;align-items:center;gap:12px;font-size:14.5px;font-weight:550;color:#D6E5DE}
.os-nav svg.i{width:18px;height:18px;color:var(--os-mute)}
.os-nav.on{background:rgba(255,255,255,.1);color:#fff;font-weight:650;box-shadow:inset 0 0 0 1px rgba(255,255,255,.12)}
.os-nav.on svg.i{color:var(--gold)}
.os-nav .cnt{margin-left:auto;font-size:12px;font-weight:700;color:var(--os)}
.os-nav .cnt{min-width:22px;height:20px;padding:0 6px;border-radius:999px;background:var(--gold);display:inline-grid;place-items:center}
.os-main{flex:999 1 600px;min-width:0;padding:28px 32px 48px;display:flex;flex-direction:column;gap:22px;background:var(--bg)}

/* ---------- prayer hero: the sky of the current hour ---------- */
.sky{border-radius:var(--r-xl);padding:22px 24px;position:relative;overflow:hidden;border:1px solid rgba(16,36,29,.06)}
.sky-fajr{background:linear-gradient(165deg,#DCE5F4 0%,#EFE5EA 55%,#FBEEDF 100%)}
.sky-day{background:linear-gradient(165deg,#E4F1F7 0%,#F1F7F2 55%,#FCFAF1 100%)}
.sky-asr{background:linear-gradient(165deg,#F9EBCB 0%,#FBF2DE 55%,#FDF9EF 100%)}
.sky-maghrib{background:linear-gradient(165deg,#F4CFB8 0%,#EED6DC 55%,#E2D8EE 100%)}
.sky-isha{background:linear-gradient(165deg,#13263A 0%,#1A3248 60%,#223D50 100%);color:#F3EEE2;border-color:rgba(255,255,255,.06)}
.sky-isha .m,.sky-isha .cap{color:#B9C7D3}
.pt-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}
.pt{border-radius:var(--r-m);padding:9px 10px;background:rgba(255,255,255,.55);display:flex;flex-direction:column;gap:2px}
.pt span{font-size:12.5px;font-weight:600;color:var(--mute)}
.pt b{font-family:var(--f-d);font-size:16px;font-weight:600;font-variant-numeric:tabular-nums}
.pt.past{opacity:.55}
.pt.on{background:var(--forest);color:#fff}
.pt.on span{color:var(--mint)}
.sky-isha .pt{background:rgba(255,255,255,.07)} .sky-isha .pt span{color:#AFC0CF}
.sky-isha .pt.on{background:var(--gold);color:#1E1606} .sky-isha .pt.on span{color:#4A3A0E}
.cd{font-family:var(--f-d);font-variant-numeric:tabular-nums;font-weight:700}

/* ---------- feed post ---------- */
.post{background:var(--surface);border:1px solid var(--e,var(--line));border-radius:var(--r-l);box-shadow:var(--sh1);overflow:hidden}
.post-h{display:flex;align-items:center;gap:12px;padding:16px 18px 0}
.post-b{padding:12px 18px 0;display:flex;flex-direction:column;gap:10px}
.post-f{display:flex;align-items:center;gap:4px;padding:8px 10px;margin-top:14px;border-top:1px solid var(--hair)}
.act{height:40px;padding:0 10px;border-radius:var(--r-s);display:inline-flex;align-items:center;gap:7px;font-size:14px;font-weight:600;color:var(--ink2)}
.ttl{font-family:var(--f-d);font-size:18.5px;line-height:1.3;font-weight:600;color:var(--ink)}
.exc{font-size:15.5px;line-height:1.55;color:var(--ink2)}
.media{border-radius:14px;overflow:hidden;position:relative;background:var(--bg2)}
.media img{width:100%;height:100%;object-fit:cover}
.play{position:absolute;left:50%;top:50%;width:60px;height:60px;margin:-30px 0 0 -30px;border-radius:50%;background:rgba(255,255,255,.94);display:grid;place-items:center;color:#C93A2E;box-shadow:var(--sh2)}
.dtile{width:58px;flex:none;border-radius:var(--r-m);background:var(--t);color:var(--i);display:flex;flex-direction:column;align-items:center;justify-content:center;padding:8px 0}
.dtile span{font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.dtile b{font-family:var(--f-d);font-size:22px;line-height:1.1;font-weight:700}
.kblock{border-radius:var(--r-m);background:var(--t);padding:12px 14px;display:flex;flex-direction:column;gap:10px}
.opt{height:44px;border-radius:var(--r-s);border:1px solid var(--e);background:#fff;display:flex;align-items:center;gap:10px;padding:0 12px;font-size:15px;font-weight:550;position:relative;overflow:hidden}
.opt .radio{width:18px;height:18px;border-radius:50%;border:2px solid var(--e);flex:none}

/* ---------- stats & lists ---------- */
.stat{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-l);padding:16px 18px;display:flex;flex-direction:column;gap:6px;box-shadow:var(--sh1)}
.stat .v{font-family:var(--f-d);font-size:30px;line-height:1.05;font-weight:700;font-variant-numeric:tabular-nums}
.stat .dl{font-size:12.5px;font-weight:600}
.up{color:#1C6438} .dn{color:#A12C22}
.li{display:flex;align-items:center;gap:14px;padding:14px 0;border-bottom:1px solid var(--hair)}
.li:last-child{border-bottom:0}
.empty{border:1.5px dashed var(--line2);border-radius:var(--r-l);padding:28px 20px;display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center;color:var(--mute);background:var(--surface)}

/* ---------- tables ---------- */
.tbl{width:100%;border-collapse:collapse;font-size:14.5px}
.tbl th{text-align:left;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--mute);padding:12px 16px;background:var(--bg2);border-bottom:1px solid var(--line)}
.tbl td{padding:14px 16px;border-bottom:1px solid var(--hair);vertical-align:middle}
.tbl tr:last-child td{border-bottom:0}

/* ---------- map ---------- */
.map{position:relative;overflow:hidden;background:#EEF1E8;border-radius:var(--r-l);border:1px solid var(--line)}
.map svg.roads{position:absolute;inset:0;width:100%;height:100%}
.pin{position:absolute;transform:translate(-50%,-100%);display:flex;flex-direction:column;align-items:center}
.pin .pb{width:46px;height:46px;border-radius:14px;background:#fff;border:3px solid var(--forest);overflow:hidden;box-shadow:var(--sh2)}
.pin .pb img{width:100%;height:100%;object-fit:cover}
.pin::after{content:"";width:12px;height:12px;background:var(--forest);transform:rotate(45deg);margin-top:-8px;border-radius:2px}
.pin.on .pb{border-color:var(--gold);width:56px;height:56px}
.pin.on::after{background:var(--gold)}
.cluster{position:absolute;transform:translate(-50%,-50%);width:44px;height:44px;border-radius:50%;background:var(--forest);color:#fff;display:grid;place-items:center;font-weight:700;box-shadow:0 0 0 6px rgba(20,70,58,.18)}

/* ---------- phone mockup ---------- */
.phone{width:390px;border-radius:46px;background:#0E1512;padding:10px;box-shadow:0 30px 60px rgba(16,36,29,.18)}
.scr{border-radius:37px;overflow:hidden;background:var(--bg);position:relative;display:flex;flex-direction:column}
.ptop{height:58px;display:flex;align-items:center;gap:10px;padding:0 16px;background:rgba(255,255,255,.94);border-bottom:1px solid var(--line);flex:none}
.pbody{padding:16px;display:flex;flex-direction:column;gap:16px;flex:1}
.tabbar{height:72px;flex:none;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));border-top:1px solid var(--line);background:rgba(255,255,255,.97);padding-bottom:8px}
.tabbar a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:11px;font-weight:600;color:var(--mute)}
.tabbar a.on{color:var(--forest)}
.tabbar a.on svg.i{background:var(--forest-t);border-radius:10px;width:44px;height:28px;padding:4px 12px}
.cap-board{font-family:var(--f-ar);font-size:15px;color:var(--mute);direction:rtl}
