/* District Paharpur — design system (Urdu RTL + English LTR, app-style) */
:root {
  --bg: #f4f6f3;
  --surface: #ffffff;
  --surface-2: #eef3ee;
  --surface-3: #e3ebe4;
  --text: #13221a;
  --muted: #5d6d63;
  --line: #e1e8e2;
  --brand: #0f7a52;
  --brand-2: #14a06b;
  --brand-ink: #063a27;
  --accent: #f2a516;
  --accent-ink: #5a3a00;
  --danger: #d23a2f;
  --hero-1: #052a1d;
  --hero-2: #0b4a33;
  --hero-3: #127556;
  --shadow-sm: 0 1px 2px rgba(10,30,20,.06);
  --shadow: 0 1px 2px rgba(10,30,20,.05), 0 8px 28px rgba(10,40,25,.08);
  --shadow-lg: 0 20px 50px rgba(5,40,25,.18);
  --r: 18px;
  --r-sm: 12px;
  --head: "Noto Nastaliq Urdu", serif;
  --body: "Noto Naskh Arabic", "Segoe UI", Tahoma, sans-serif;
  --latin: "Inter", "Segoe UI", system-ui, sans-serif;
  --tabbar: 0px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a110d; --surface: #111b15; --surface-2: #17241c; --surface-3: #1e2f25; --text: #e7efe9;
    --muted: #97ab9e; --line: #22332a; --brand: #3fcf8e; --brand-2: #5fe0a6; --brand-ink: #c9f5df;
    --accent: #f6b73c; --accent-ink: #2b1c00; --danger: #ff7b70;
    --shadow-sm: none; --shadow: 0 1px 0 rgba(255,255,255,.03); --shadow-lg: 0 20px 50px rgba(0,0,0,.5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a110d; --surface: #111b15; --surface-2: #17241c; --surface-3: #1e2f25; --text: #e7efe9;
  --muted: #97ab9e; --line: #22332a; --brand: #3fcf8e; --brand-2: #5fe0a6; --brand-ink: #c9f5df;
  --accent: #f6b73c; --accent-ink: #2b1c00; --danger: #ff7b70;
  --shadow-sm: none; --shadow: 0 1px 0 rgba(255,255,255,.03); --shadow-lg: 0 20px 50px rgba(0,0,0,.5);
  color-scheme: dark;
}
html[lang="en"] { --head: var(--latin); --body: var(--latin); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--body); font-size: 17px; line-height: 1.85;
  padding-bottom: var(--tabbar);
}
html[lang="en"] body { font-size: 16px; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
svg.i { width: 1.25em; height: 1.25em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.2em; }
.en { font-family: var(--latin); direction: ltr; unicode-bidi: isolate; }
.ur { font-family: "Noto Naskh Arabic", serif; direction: rtl; unicode-bidi: isolate; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 2; margin: 0 0 .35em; }
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3 { line-height: 1.2; letter-spacing: -.02em; }
h1 { font-size: clamp(30px, 5.5vw, 52px); }
h2 { font-size: clamp(22px, 3.2vw, 30px); }
h3 { font-size: 18px; }
html[lang="en"] h3 { font-size: 17px; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--hero-1) 88%, transparent);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.08); color: #fff;
}
.site-header .wrap { display: flex; align-items: center; gap: 14px; min-height: 62px; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; font-family: var(--head); font-size: 19px; white-space: nowrap; }
html[lang="en"] .logo { font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.logo:hover { text-decoration: none; }
.logo-mark { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand-2), #0b5d3f); box-shadow: inset 0 1px 0 rgba(255,255,255,.25); }
.logo-mark svg { width: 24px; height: 24px; }
.nav { margin-inline-start: auto; display: flex; gap: 2px; align-items: center; }
.nav a { color: rgba(255,255,255,.82); padding: 6px 12px; border-radius: 10px; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { background: rgba(255,255,255,.1); color: #fff; text-decoration: none; }
.lang-switch { display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(255,255,255,.25); color: #fff !important; border-radius: 999px !important; padding: 5px 12px !important; margin-inline-start: 8px; font-size: 14px; }
.lang-switch:hover { background: #fff !important; color: var(--hero-1) !important; }
.header-lang { display: none; margin-inline-start: auto; }
@media (max-width: 860px) {
  .nav { display: none; }
  .header-lang { display: inline-flex; }
}

/* ---------- Bottom tab bar (mobile app feel) ---------- */
.tabbar { display: none; }
@media (max-width: 860px) {
  :root { --tabbar: 68px; }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; inset-inline: 0; bottom: 0; z-index: 40;
    height: calc(var(--tabbar) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--muted); font-size: 12px; line-height: 1.2; }
  html[lang="ur"] .tabbar a { font-size: 12.5px; }
  .tabbar a svg.i { width: 23px; height: 23px; }
  .tabbar a[aria-current="page"] { color: var(--brand); }
  .tabbar a[aria-current="page"] svg.i { stroke-width: 2.3; }
  .tabbar a:hover { text-decoration: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff; isolation: isolate;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(20,160,107,.55), transparent 60%),
    radial-gradient(700px 380px at 5% 10%, rgba(242,165,22,.18), transparent 60%),
    linear-gradient(170deg, var(--hero-1) 0%, var(--hero-2) 55%, var(--hero-3) 100%);
  padding: 56px 0 120px;
}
.hero::before { /* dotted grid texture */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .18;
  background-image: radial-gradient(rgba(255,255,255,.55) 1px, transparent 1px); background-size: 22px 22px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 75%); -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 75%);
}
.hero .scene { position: absolute; inset-inline: 0; bottom: -1px; z-index: -1; width: 100%; height: 150px; }
.hero.small { padding: 40px 0 92px; }
.hero.small .scene { height: 110px; }
.hero h1 { color: #fff; margin-bottom: .25em; }
.hero .lead { font-size: 19px; color: rgba(255,255,255,.82); max-width: 680px; }
html[lang="en"] .hero .lead { font-size: 18px; }
.hero a:not(.btn) { color: #b9f3d7; }
.badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); color: #fff; border-radius: 999px; padding: 3px 14px; font-size: 14px; margin-bottom: 14px; }
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(242,165,22,.25); }

.search-big { display: flex; gap: 8px; margin-top: 22px; max-width: 640px; padding: 6px; border-radius: 16px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(8px); }
.search-big input { flex: 1; min-width: 0; background: transparent; border: 0; color: #fff; padding: 10px 12px; }
.search-big input::placeholder { color: rgba(255,255,255,.65); }
.search-big input:focus { outline: none; }
.search-big .btn { border-radius: 12px; }

.live-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.live-chip { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 14px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); color: #fff; font-size: 15px; min-height: 44px; }
.live-chip:hover { text-decoration: none; background: rgba(255,255,255,.16); }
.live-chip b { font-family: var(--latin); direction: ltr; unicode-bidi: isolate; }
.live-chip .pulse { width: 8px; height: 8px; border-radius: 50%; background: #3ee79b; box-shadow: 0 0 0 0 rgba(62,231,155,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(62,231,155,0); } 100% { box-shadow: 0 0 0 0 rgba(62,231,155,0); } }
@media (prefers-reduced-motion: reduce) { .live-chip .pulse { animation: none; } }

/* ---------- Buttons & controls ---------- */
input, select, textarea { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 14px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand-2); outline-offset: 1px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; cursor: pointer; background: var(--brand); color: #fff; border: 0; border-radius: var(--r-sm); padding: 10px 20px; white-space: nowrap; transition: transform .15s, background .15s; }
.btn:hover { background: var(--brand-2); text-decoration: none; color: #fff; }
.btn:active { transform: scale(.98); }
.btn.accent { background: var(--accent); color: var(--accent-ink); }
.btn.accent:hover { background: #ffb935; color: var(--accent-ink); }
.btn.ghost { background: transparent; color: var(--brand); border: 1px solid color-mix(in srgb, var(--brand) 40%, transparent); }
.btn.ghost:hover { background: var(--surface-2); }
.btn.light { background: #fff; color: var(--hero-1); }

/* ---------- Sections ---------- */
section.block { padding: 44px 0; }
.lift { margin-top: -84px; position: relative; z-index: 2; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.section-head h2 { margin: 0; }
.section-head p { color: var(--muted); margin: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .06em; font-family: var(--latin); }
html[lang="ur"] .eyebrow { font-family: var(--body); letter-spacing: 0; text-transform: none; font-size: 14px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .2em; }
a.card { color: var(--text); display: block; transition: transform .18s, box-shadow .18s, border-color .18s; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); text-decoration: none; }
.card-title { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.card-title h2, .card-title h3 { margin: 0; font-size: 20px; }
html[lang="ur"] .card-title h2 { font-size: 22px; }
.card-title .ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-2); color: var(--brand); }
.card-title .ico svg.i { width: 21px; height: 21px; }
.card-title .live-tag { margin-inline-start: auto; }
.live-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, transparent); padding: 2px 10px; border-radius: 999px; font-family: var(--latin); }
.live-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- Quick-action tiles ---------- */
.tiles { display: grid; gap: 12px; grid-template-columns: repeat(6, 1fr); }
@media (max-width: 1000px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 520px) { .tiles { grid-template-columns: repeat(4, 1fr); gap: 8px; } }
.tile { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 6px 14px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); color: var(--text); box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s; font-size: 14.5px; line-height: 1.4; }
html[lang="ur"] .tile { font-size: 14px; }
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); text-decoration: none; }
.tile .bub { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; color: #fff; }
.tile .bub svg.i { width: 24px; height: 24px; }
.tile small { display: block; color: var(--muted); font-size: 11px; }
@media (max-width: 520px) { .tile { padding: 12px 2px 10px; font-size: 12.5px; border-radius: 14px; } .tile .bub { width: 44px; height: 44px; border-radius: 13px; } }
.c1 { background: linear-gradient(135deg,#ef5350,#c62828); } .c2 { background: linear-gradient(135deg,#26a69a,#00796b); }
.c3 { background: linear-gradient(135deg,#ab47bc,#7b1fa2); } .c4 { background: linear-gradient(135deg,#ffa726,#ef6c00); }
.c5 { background: linear-gradient(135deg,#42a5f5,#1565c0); } .c6 { background: linear-gradient(135deg,#ff7043,#d84315); }
.c7 { background: linear-gradient(135deg,#66bb6a,#2e7d32); } .c8 { background: linear-gradient(135deg,#5c6bc0,#283593); }
.c9 { background: linear-gradient(135deg,#ffca28,#f9a825); } .c10 { background: linear-gradient(135deg,#29b6f6,#0277bd); }
.c11 { background: linear-gradient(135deg,#8d6e63,#5d4037); } .c12 { background: linear-gradient(135deg,#78909c,#455a64); }

/* ---------- Bento / roadmap ---------- */
.bento { display: grid; gap: 14px; grid-template-columns: repeat(4, 1fr); }
.bento .card { position: relative; overflow: hidden; padding: 22px; }
.bento .wide { grid-column: span 2; }
@media (max-width: 900px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } .bento .wide { grid-column: auto; } }
.bento .feat-ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; color: #fff; margin-bottom: 12px; }
.bento .feat-ico svg.i { width: 22px; height: 22px; }
.bento p { color: var(--muted); font-size: 15px; margin: 0; }
.soon { position: absolute; top: 14px; inset-inline-end: 14px; font-size: 11.5px; font-weight: 700; font-family: var(--latin); background: color-mix(in srgb, var(--accent) 20%, transparent); color: color-mix(in srgb, var(--accent) 70%, var(--text)); padding: 2px 10px; border-radius: 999px; }
html[lang="ur"] .soon { font-family: var(--body); font-size: 12.5px; }
.bento .card.dark { background: linear-gradient(150deg, var(--hero-1), var(--hero-3)); color: #fff; border-color: transparent; }
.bento .card.dark p { color: rgba(255,255,255,.8); }

/* ---------- Stats band ---------- */
.band { background: linear-gradient(160deg, var(--hero-1), var(--hero-2)); color: #fff; border-radius: 24px; padding: 28px; position: relative; overflow: hidden; }
.band h2 { color: #fff; }
.band a:not(.btn) { color: #b9f3d7; }
.stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px 16px; }
.band .stat { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.12); }
.stat .num { font-family: var(--latin); font-size: 28px; font-weight: 800; letter-spacing: -.02em; color: var(--brand); direction: ltr; text-align: end; }
html[lang="en"] .stat .num { text-align: left; }
.band .stat .num { color: #7ff0bd; }
.stat .lbl { color: var(--muted); font-size: 14.5px; }
.band .stat .lbl { color: rgba(255,255,255,.75); }

/* ---------- Ad / sponsor slot ---------- */
.promo { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 22px 24px; border-radius: 22px; background: linear-gradient(120deg, #ffefc9, #ffd98a); color: #3d2a00; border: 1px solid #f5cf7a; }
.promo h3 { margin: 0; font-size: 20px; }
.promo p { margin: 0; color: #5d4400; }
.promo .btn { margin-inline-start: auto; background: #3d2a00; color: #ffe2a6; }
[data-theme="dark"] .promo, :root:not([data-theme="light"]) .promo { }
.ad-label { font-size: 11px; font-family: var(--latin); letter-spacing: .08em; text-transform: uppercase; opacity: .7; }

/* ---------- Emergency ---------- */
.emg { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.emg a { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; color: var(--text); box-shadow: var(--shadow-sm); }
.emg a:hover { text-decoration: none; border-color: var(--danger); }
.emg .no { font-family: var(--latin); font-weight: 800; font-size: 20px; color: var(--danger); direction: ltr; display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--r-sm); border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; background: var(--surface); }
th, td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { background: var(--surface-2); font-weight: 700; }

/* ---------- Prayer & weather ---------- */
.live { min-height: 120px; }
.pray-table { width: 100%; border-collapse: separate; border-spacing: 0 5px; background: none; }
.pray-table th { background: none; font-size: 13.5px; color: var(--muted); padding: 2px 10px; border: 0; }
.pray-table td { background: var(--surface-2); padding: 8px 12px; border: 0; }
.pray-table td:first-child { border-start-start-radius: 10px; border-end-start-radius: 10px; font-weight: 700; }
.pray-table td:last-child { border-start-end-radius: 10px; border-end-end-radius: 10px; }
.pray-table td.t { font-family: var(--latin); font-weight: 700; direction: ltr; text-align: center; white-space: nowrap; }
.pray-table th.c { text-align: center; }
.pray-table tr.next td { background: var(--brand); color: #fff; }
.wx-now { display: flex; align-items: center; gap: 14px; }
.wx-now .temp { font-family: var(--latin); font-size: 48px; font-weight: 800; letter-spacing: -.03em; direction: ltr; line-height: 1.1; }
.wx-days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 14px; }
.wx-days > div { background: var(--surface-2); border-radius: var(--r-sm); padding: 8px 4px; text-align: center; font-size: 14px; }

/* ---------- Directory ---------- */
.filters { display: grid; gap: 10px; grid-template-columns: 2fr 1fr 1fr; margin-bottom: 14px; }
@media (max-width: 700px) { .filters { grid-template-columns: 1fr 1fr; } .filters input { grid-column: 1 / -1; } }
.chips { display: flex; gap: 8px; margin-bottom: 18px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.chip { flex: none; border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 999px; padding: 5px 14px; cursor: pointer; font: inherit; font-size: 14.5px; }
.chip.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.listing { display: flex; flex-direction: column; }
.listing .top { display: flex; gap: 12px; align-items: flex-start; }
.listing .avatar { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 22px; background: var(--surface-2); flex: none; }
.listing h3 { margin: 0; }
.listing .tag { display: inline-block; font-size: 12.5px; background: var(--surface-2); color: var(--brand); border-radius: 6px; padding: 0 8px; margin-inline-end: 6px; }
.listing .tag.warn { color: color-mix(in srgb, var(--accent) 70%, var(--text)); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.listing .meta { font-size: 14.5px; color: var(--muted); margin: 8px 0 0; }
.listing .actions { display: flex; gap: 8px; margin-top: auto; padding-top: 14px; flex-wrap: wrap; }
.listing .actions a { font-size: 14px; padding: 6px 14px; }
.empty { text-align: center; padding: 40px 16px; color: var(--muted); }

/* ---------- Prose, guides ---------- */
.prose { max-width: 820px; }
.prose ul { padding-inline-start: 1.3em; }
.prose li { margin-bottom: .35em; }
.note { background: color-mix(in srgb, var(--accent) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); border-radius: var(--r-sm); padding: 12px 16px; font-size: 15px; }
details.guide { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 4px 18px; margin-bottom: 10px; box-shadow: var(--shadow-sm); }
details.guide summary { cursor: pointer; font-weight: 700; padding: 12px 0; font-size: 18px; }
details.guide[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.toc a { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: #fff !important; border-radius: 999px; padding: 2px 14px; font-size: 14.5px; }
.toc a:hover { background: rgba(255,255,255,.2); text-decoration: none; }
.sources { font-size: 14px; color: var(--muted); }
.sources a { word-break: break-word; }
.ucs { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }

/* ---------- Sports ---------- */
.tabs { display: inline-flex; gap: 4px; background: var(--surface-2); padding: 4px; border-radius: 14px; margin-bottom: 18px; }
.tabs button { font: inherit; border: 0; background: transparent; color: var(--muted); padding: 8px 18px; border-radius: 11px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); font-weight: 700; }
.match { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; text-align: center; }
.match .team b { display: block; font-size: 17px; }
.match .vs { font-family: var(--latin); font-weight: 800; color: var(--muted); }
.empty-ill { display: grid; place-items: center; gap: 12px; text-align: center; padding: 36px 16px; }
.empty-ill .big { width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center; color: #fff; }
.empty-ill .big svg.i { width: 34px; height: 34px; }

/* ---------- Map ---------- */
#map { height: min(70vh, 620px); border-radius: var(--r); border: 1px solid var(--line); box-shadow: var(--shadow); z-index: 1; }
.leaflet-container { font: inherit; }

/* ---------- Footer ---------- */
.site-footer { background: var(--hero-1); color: rgba(255,255,255,.7); padding: 36px 0 22px; margin-top: 48px; font-size: 15px; }
.site-footer h3 { color: #fff; font-size: 16px; }
html[lang="ur"] .site-footer h3 { font-size: 18px; }
.site-footer a { color: #b9f3d7; }
.site-footer .cols { display: grid; gap: 24px; grid-template-columns: 2fr 1fr 1fr; }
@media (max-width: 700px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } .site-footer .cols > :first-child { grid-column: 1 / -1; } }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 4px; }
.site-footer .bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 22px; padding-top: 14px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; align-items: center; }
.theme-btn { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); color: #fff; border-radius: 999px; padding: 3px 12px; font: inherit; font-size: 14px; cursor: pointer; }
.install-btn[hidden] { display: none; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 14px; }
.form label, .row label, .sched label { display: grid; gap: 4px; font-weight: 600; font-size: 15px; }
.row { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .row { grid-template-columns: 1fr; } }
.form-err { color: var(--danger); margin: 0; min-height: 1em; font-size: 15px; }
.btn.sm { padding: 5px 12px; font-size: 14px; border-radius: 10px; }
.btn.big { padding: 14px 28px; font-size: 18px; }
.btn.danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
html[dir="rtl"] svg.i use[href="#i-arrow"] { transform: scaleX(-1); transform-origin: center; }

/* ---------- Appointments ---------- */
.avatar { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; flex: none; background: var(--surface-2); }
.avatar svg.i { width: 23px; height: 23px; }
.provider-card { display: flex; flex-direction: column; gap: 10px; }
.provider-card .top { display: flex; gap: 12px; align-items: center; }
.provider-card h3 { margin: 0; }
.provider-card .meta { font-size: 14.5px; color: var(--muted); margin: 0; }
.provider-card .actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.row-pills { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.status-pill { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; padding: 3px 12px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.status-pill .d { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status-pill.ok { background: color-mix(in srgb, #16a34a 14%, transparent); color: #15803d; }
.status-pill.warn { background: color-mix(in srgb, var(--accent) 18%, transparent); color: color-mix(in srgb, var(--accent) 60%, var(--text)); }
.status-pill.off { background: var(--surface-2); color: var(--muted); }
:root[data-theme="dark"] .status-pill.ok { color: #4ade80; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .status-pill.ok { color: #4ade80; } }
.serving { font-size: 14px; color: var(--muted); } .serving b { color: var(--brand); font-size: 16px; }
.day-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.day { flex: none; display: grid; gap: 2px; min-width: 96px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; cursor: pointer; text-align: center; }
.day small { color: var(--muted); font-size: 12px; }
.day.on { background: var(--brand); border-color: var(--brand); color: #fff; } .day.on small { color: rgba(255,255,255,.8); }
.day:disabled { opacity: .45; cursor: not-allowed; }
.slot-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
.slot { display: grid; gap: 0; padding: 9px 6px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit; cursor: pointer; }
.slot small { color: var(--muted); font-size: 12px; }
.slot:hover { border-color: var(--brand); }
.slot.on { background: var(--brand); color: #fff; border-color: var(--brand); } .slot.on small { color: rgba(255,255,255,.85); }
.selected { font-weight: 600; color: var(--brand); min-height: 1.4em; }
.my-b { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); color: var(--text); flex-wrap: wrap; }
.my-b:hover { text-decoration: none; color: var(--brand); }
.my-b b { color: var(--brand); font-size: 18px; min-width: 40px; }

.ticket { max-width: 560px; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--surface); border: 1px solid var(--line); }
.ticket-top { display: flex; justify-content: space-between; gap: 16px; padding: 22px 24px; color: #fff; background: linear-gradient(150deg, var(--hero-1), var(--hero-3)); }
.ticket-top .status-pill { background: rgba(255,255,255,.15); color: #fff; }
.muted-l { font-size: 13px; opacity: .75; }
.token-big { font-size: 72px; font-weight: 800; line-height: 1; letter-spacing: -.04em; }
.code { font-size: 22px; font-weight: 800; letter-spacing: .12em; }
.ticket-body { padding: 20px 24px 24px; border-top: 2px dashed var(--line); }
.ticket-body h3 { margin: 0; font-size: 20px; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 8px 0 0; }
.kv div { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; display: grid; }
.kv span { font-size: 13px; color: var(--muted); }
.live-box { margin-top: 14px; padding: 14px; border-radius: 14px; background: color-mix(in srgb, var(--brand) 8%, var(--surface)); border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent); display: grid; gap: 6px; justify-items: start; }
.serving-big { font-size: 18px; } .serving-big b { font-size: 30px; color: var(--brand); }
.ahead { font-weight: 700; color: var(--brand); }

.dash-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { font: inherit; font-size: 14.5px; border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 10px; padding: 7px 12px; cursor: pointer; }
.seg button.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.serving-num { display: grid; justify-items: center; margin: 4px 0 14px; }
.serving-num small { color: var(--muted); }
.serving-num b { font-size: 84px; line-height: 1; font-weight: 800; color: var(--brand); letter-spacing: -.04em; }
.blist { display: grid; gap: 8px; }
.brow { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.brow .tok { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 18px; background: var(--surface-2); color: var(--brand); }
.brow .who { display: grid; min-width: 0; } .brow .who span, .brow .who small { font-size: 13.5px; }
.brow .acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.brow.current { border-color: var(--brand); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 30%, transparent); }
.brow.current .tok { background: var(--brand); color: #fff; }
.brow.done, .brow.noshow, .brow.cancelled { opacity: .6; }
@media (max-width: 640px) { .brow { grid-template-columns: auto 1fr; } .brow .acts { grid-column: 1 / -1; justify-content: flex-start; } }
.sched { display: grid; gap: 8px; }
.sched label { grid-template-columns: 90px 1fr; align-items: center; }
details > summary { list-style: none; } details > summary::-webkit-details-marker { display: none; }
.avatar.c2 { background: linear-gradient(135deg,#26a69a,#00796b); } .avatar.c3 { background: linear-gradient(135deg,#ab47bc,#7b1fa2); }
