/* No web fonts, no images, no framework: the whole site is a few KB so it loads on a weak 3G signal. */

/* ---------- tokens ---------- */
:root {
  --bg: #f5efe6;          /* page (warm sand) */
  --card: #fffdf8;        /* cards */
  --white: #ffffff;       /* elevated panels: composer, sidebar */
  --ink: #14302f;         /* text */
  --ink-2: #2f4544;       /* body copy on cards */
  --muted: #5e6b6a;       /* meta text */
  --muted-2: #4a5a59;     /* sub-headings, lead on a light background */
  --line: #e5dccd;        /* card borders */
  --line-input: #e0d6c6;  /* input borders */
  --divider: #ece2d2;     /* row dividers inside cards; segmented control track */
  --teal: #0d5a63;        /* primary */
  --teal-dark: #09434a;   /* hover, prices */
  --teal-tint: #e3eff0;   /* category chips, selected tile background */
  --on-teal: #bfdde0;     /* secondary text on teal */
  --peach: #f0bf94;       /* accent; refined below where oklch is supported */
  --on-peach: #3a1a08;
  --deep: #14302f;        /* "How it works" band */
  --footer: #0f2726; --on-footer: #a9bcbb;
  --pink: #b3155a; --pink-tint: #fbe3ee;  /* women-only */
  --ok: #0a4530; --ok-tint: #dff1e6;      /* verified, protected, chosen */
  --open-tint: #fff1c9;                   /* status Open */
  --red: #b3261e;
  --star: #b77f00;
  --safety-bg: #fff6da; --safety-line: #eedc9c;
  --wa: #128c4b;
  --r-sm: 10px; --r: 14px; --r-md: 16px; --r-lg: 20px; --r-xl: 24px;
}
@supports (color: oklch(0.84 0.09 55)) { :root { --peach: oklch(0.84 0.09 55); } }

/* ---------- base ---------- */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
[lang="ur"] body { font-family: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Urdu Typesetting", "Noto Naskh Arabic", serif; line-height: 2.1; }
a { color: var(--teal); }
h1, h2, h3 { margin: 0 0 .5em; font-weight: 800; line-height: 1.1; }
h1 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -.04em; }
h2 { font-size: 22px; letter-spacing: -.02em; line-height: 1.2; }
h3 { font-size: 17px; letter-spacing: -.01em; line-height: 1.35; font-weight: 700; }
[lang="ur"] h1, [lang="ur"] h2, [lang="ur"] h3 { line-height: 1.9; letter-spacing: 0; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--peach); outline-offset: 2px; }

.wrap { max-width: 1240px; margin: 0 auto; padding-inline: 24px; }
main { min-height: 70vh; }
.page { padding-block: 28px 72px; }
.page > h2 { margin-top: 28px; }
.page > h2:first-child { margin-top: 0; }
.banners { padding-block: 16px 0; }

/* ---------- header ---------- */
#nav { background: var(--teal); color: #fff; position: sticky; top: 0; z-index: 5; }
#nav .in { max-width: 1240px; margin: 0 auto; padding: 10px 24px; min-height: 64px; display: flex; align-items: center; gap: 4px 18px; flex-wrap: wrap; }
#nav a, #nav button { color: var(--on-teal); text-decoration: none; font: inherit; font-size: 15px; font-weight: 500; background: none; border: 0; cursor: pointer; padding: 8px 4px; }
#nav a:hover, #nav button:hover { color: #fff; }
#nav .logo { color: #fff; font-weight: 800; font-size: 22px; letter-spacing: -.03em; margin-inline-end: auto; }
#nav .logo { display: inline-flex; align-items: center; gap: 10px; }
#nav .logo svg { width: 34px; height: 34px; flex: none; }
#nav .logo i { color: var(--peach); font-style: normal; }
#nav .lang { color: #fff; border: 1px solid rgba(255, 255, 255, .4); border-radius: 999px; padding: 4px 14px; font-size: 14px; }
#nav .post { background: var(--peach); color: var(--ink); border-radius: 10px; padding: 9px 16px; font-weight: 700; }
#nav .post:hover { color: var(--ink); }
#nav .bell { position: relative; padding-inline: 6px; }
#nav .bell b { position: absolute; top: 0; inset-inline-end: -6px; min-width: 18px; padding: 0 4px; border-radius: 999px; background: var(--peach); color: var(--on-peach); font-size: 11px; line-height: 18px; text-align: center; }

/* Phones: a compact header that scrolls away, so two rows of links do not cover the page. */
@media (max-width: 640px) {
  .wrap { padding-inline: 16px; }
  #nav { position: static; }
  #nav .in { padding: 6px 16px; gap: 0 12px; min-height: 56px; }
  #nav a, #nav button { font-size: 14px; padding: 6px 2px; }
  #nav .logo { font-size: 20px; }
  #nav .post { padding: 7px 12px; }
  #nav .lang { padding: 2px 12px; }
  .composer { padding: 20px; min-height: 0; }
  .hero-grid { gap: 32px; padding-block: 28px 48px; }
  .section { padding-top: 48px; }
  .band-deep { margin-top: 48px; padding-bottom: 56px; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; border: 1.5px solid var(--teal); color: var(--teal); background: transparent;
  border-radius: 999px; padding: 10px 20px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; text-align: center; transition: background .15s, border-color .15s, color .15s; }
.btn:hover { border-color: var(--teal-dark); color: var(--teal-dark); }
.btn.primary { background: var(--teal); color: #fff; border-radius: 12px; padding: 14px 24px; }
.btn.primary:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; }
.btn.small { min-height: 40px; padding: 8px 14px; font-size: 14px; border-radius: 10px; }
.btn.primary.small { padding: 8px 16px; }
.btn.gold, .btn.accent { background: var(--peach); border-color: var(--peach); color: var(--on-peach); border-radius: 12px; }
.btn.dark { background: var(--ink); border-color: var(--ink); color: #fff; border-radius: 12px; }
.btn.wa { background: var(--wa); border-color: var(--wa); color: #fff; border-radius: 12px; }
.btn.wa-outline { border-color: var(--wa); color: var(--wa); }
.btn.danger { border-color: var(--red); color: var(--red); }
.btn.block { display: flex; width: 100%; }
.btn:disabled { opacity: .4; cursor: default; }
@media (pointer: coarse) { .btn.small { min-height: 44px; } }
button.link { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-decoration: underline; color: var(--teal); }
button.link.danger { color: var(--red); }
.back { display: inline-block; margin-bottom: 14px; color: var(--muted-2); text-decoration: none; font-weight: 600; font-size: 15px; }
.back:hover { color: var(--teal); }
[dir="ltr"] .go::after { content: " \2192"; }
[dir="rtl"] .go::after { content: " \2190"; }

/* ---------- forms ---------- */
form.stack, .stack { display: grid; gap: 16px; align-content: start; }
.narrow { max-width: 520px; margin: 28px auto 0; }
label { display: grid; gap: 4px; font-weight: 600; font-size: 15px; }
label small, .hint { font-weight: 400; color: var(--muted); font-size: 13px; }
.hint { margin: 6px 0 0; }
input, select, textarea { font: inherit; font-size: 16px; color: inherit; background: #fff; border: 1.5px solid var(--line-input); border-radius: 12px; padding: 12px 14px; width: 100%; min-width: 0; }
input:focus, select:focus, textarea:focus { border-color: var(--teal); outline: none; }
input[type="checkbox"], input[type="radio"] { width: 20px; height: 20px; padding: 0; flex: none; accent-color: var(--teal); }
textarea { min-height: 110px; resize: vertical; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 12px; }
label.check { display: flex; gap: 10px; align-items: flex-start; background: var(--pink-tint); border: 1px solid #f3c6d9; border-radius: var(--r); padding: 12px; }
label.check input { margin-top: 3px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.consent input { margin-top: 3px; }
.field { display: grid; gap: 4px; justify-items: start; font-size: 15px; }
.ask { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 12px; }
.money { display: flex; align-items: center; gap: 8px; background: #fff; border: 1.5px solid var(--line-input); border-radius: 12px; padding-inline-start: 14px; }
.money:focus-within { border-color: var(--teal); }
.money span { font-weight: 700; color: var(--muted); }
.money input { border: 0; padding-inline-start: 0; }
.picks { border: 1.5px solid var(--line-input); border-radius: 12px; padding: 10px 12px; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 4px 12px; }
.picks legend { font-weight: 600; font-size: 15px; padding: 0 6px; }
.pick { display: flex; align-items: center; gap: 8px; font-weight: 400; min-height: 32px; }
.modes { grid-template-columns: 1fr; gap: 10px; }
.modes .pick { align-items: flex-start; }
.modes .pick input { margin-top: 4px; }
/* The "how you will pay" choice only applies when paying the tasker directly. */
.modes:has(input[value="protected"]:checked) + label { display: none; }
.service-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 8px; margin-top: 12px; }
details { margin-top: 8px; }
summary { cursor: pointer; color: var(--red); font-weight: 600; padding: 6px 0; }
summary.plain { color: var(--muted); font-weight: 400; }

/* ---------- cards, chips, tags ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; }
.card.lg { border-radius: var(--r-lg); padding: clamp(20px, 3vw, 32px); }
a.card { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
a.card:hover { border-color: var(--teal); transform: translateY(-1px); }
a.card h3, a.card p { margin: 0; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.grow { flex: 1 1 auto; min-width: 0; }
.chip { display: inline-block; font-size: 13px; font-weight: 600; background: var(--teal-tint); color: var(--teal-dark); border-radius: 999px; padding: 3px 11px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-block; font-size: 12px; border-radius: 6px; padding: 1px 8px; background: var(--divider); color: var(--ink); white-space: nowrap; }
.tag.f { background: var(--pink-tint); color: var(--pink); }
.tag.ok { background: var(--ok-tint); color: var(--ok); }
.tag.open { background: var(--open-tint); }
.tags { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.tag-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.price { font-size: 19px; font-weight: 800; color: var(--teal-dark); white-space: nowrap; }
.meta { color: var(--muted); font-size: 14px; margin: 0; }
.rating { color: var(--star); white-space: nowrap; }
.body { color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: normal; font-size: 14px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--divider); padding-top: 14px; margin-top: 16px; }
a.user { color: inherit; text-decoration: underline; text-decoration-color: var(--peach); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }
.empty-state { text-align: center; color: var(--muted); padding: 48px 0; display: grid; gap: 10px; justify-items: center; }
.empty-state .big { font-size: 40px; line-height: 1; }
.avatar { display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; font-weight: 800; font-size: 18px; color: var(--ink); background: var(--peach); }
.avatar.av-1 { background: #cfe5e7; } .avatar.av-2 { background: #f1d9c9; } .avatar.av-3 { background: #e3dcc9; }
.avatar.lg { width: 48px; height: 48px; }
.avatar.xl { width: 96px; height: 96px; font-size: 40px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; font-size: 14px; }
.pills li { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; }
.pills.glass li { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); color: #fff; }
.pills.glass li span { color: var(--peach); }

/* ---------- browse: title row, segmented control, filter panel, lists ---------- */
.title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-bottom: 18px; }
.title-row h1 { flex: 1 1 300px; margin: 0; }
.seg { display: inline-flex; background: var(--divider); border-radius: 12px; padding: 4px; }
.seg a { padding: 8px 18px; border-radius: 9px; font-weight: 700; font-size: 15px; color: var(--muted-2); text-decoration: none; min-height: 40px; display: inline-flex; align-items: center; }
.seg a.on { background: var(--white); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.filter-panel { border-radius: 18px; padding: 14px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filter-row input[type="search"] { flex: 2 1 240px; width: auto; }
.filter-row select { flex: 1 1 150px; width: auto; }
.toggle { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 16px; border: 1.5px solid var(--line-input); border-radius: 12px; background: #fff; font-weight: 600; font-size: 15px; cursor: pointer; white-space: nowrap; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle.on, .toggle:has(input:checked) { background: var(--pink-tint); border-color: var(--pink); color: var(--pink); }
.toggle:has(input:focus-visible) { outline: 3px solid var(--peach); outline-offset: 2px; }
.chip-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-block: 2px; }
.chip-row::-webkit-scrollbar { display: none; }
.fchip { position: relative; display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 40px; padding: 0 14px; border: 1.5px solid var(--line-input); border-radius: 999px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer; }
.fchip:hover { border-color: var(--teal); }
.fchip.on, .fchip:has(input:checked) { background: var(--teal); border-color: var(--teal); color: #fff; }
.fchip input { position: absolute; opacity: 0; pointer-events: none; }
.fchip:has(input:focus-visible) { outline: 3px solid var(--peach); outline-offset: 2px; }
.section-gap { margin-top: 18px; }
.result-line { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; margin: 18px 0 12px; color: var(--muted-2); font-size: 15px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 14px; }
.grid.wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.task h3 { font-size: 17px; }
.task .foot { margin-top: auto; padding-top: 4px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px; font-size: 13px; }
.tasker .who { display: flex; gap: 12px; align-items: center; }
.tasker .who h3 { font-size: 17px; }
.tasker .who .meta { font-size: 13px; }
.tasker .card-foot { margin-top: auto; padding-top: 12px; font-size: 14px; }
.tasker .card-foot .price { font-size: 17px; }
.tasker .go { color: var(--teal); font-weight: 700; }

/* ---------- task detail ---------- */
.task-layout { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.t-main { flex: 2 1 560px; min-width: 0; display: grid; gap: 16px; }
.t-aside { flex: 1 1 320px; min-width: 0; display: grid; gap: 16px; position: sticky; top: 88px; }
/* Stacked (narrow) layout: the budget and offer form come right after the task, before the offers. */
@media (max-width: 959px) {
  .task-layout { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 16px; }
  .t-main, .t-aside { display: contents; }
  .t-head { order: 1; } .t-side { order: 2; } .t-rest { order: 3; } .t-extra { order: 4; }
}
.t-rest, .t-extra { display: grid; gap: 16px; min-width: 0; }
.t-rest > .card, .t-extra > .card:not(.safety) { border-radius: var(--r-lg); padding: clamp(18px, 2.5vw, 24px); }
.task-title { font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -.03em; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 15px; color: var(--muted-2); }
.details { font-size: 17px; line-height: 1.6; }
[lang="ur"] .details { line-height: 2.1; }
.offer { border-top: 1px solid var(--divider); padding: 14px 0; }
.offer:last-child { padding-bottom: 0; }
.offer p { margin: 6px 0 0; overflow-wrap: anywhere; }
.offer-top { display: flex; gap: 12px; align-items: center; }
.offer-top .price { font-size: 20px; }
.side { background: var(--white); border-radius: var(--r-lg); padding: 24px; box-shadow: 0 20px 40px -30px rgba(20, 48, 47, .5); display: grid; gap: 8px; }
.side .budget { font-size: 40px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; color: var(--teal-dark); margin: 0; }
.side form, .side .btn { margin-top: 8px; }
.contact { background: #e3f3e9; border-color: #b9dcc6; }
.safety { background: var(--safety-bg); border-color: var(--safety-line); border-radius: var(--r-lg); font-size: 14px; }
.safety ul { margin: 0; padding-inline-start: 20px; display: grid; gap: 6px; }
.pay { border-inline-start: 5px solid var(--teal); }
.pay-pending { border-inline-start-color: var(--peach); background: #fffaf0; }
.pay-disputed { border-inline-start-color: var(--red); background: #fdf3f2; }
.pay p { margin: 6px 0; }
.pay .btn { margin: 8px 0; }

/* ---------- photos ---------- */
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.thumbs:empty { display: none; }
.thumb { position: relative; }
.thumb img { display: block; width: 92px; height: 92px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); background: var(--divider); }
.thumb button { position: absolute; top: -6px; inset-inline-end: -6px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; font-size: 16px; line-height: 1; cursor: pointer; }
.profile-grid .thumbs { display: grid; grid-template-columns: repeat(3, 1fr); }
.profile-grid .thumbs img { width: 100%; height: auto; aspect-ratio: 1; }
.upload { position: relative; cursor: pointer; }
.upload input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.upload:focus-within { outline: 3px solid var(--peach); outline-offset: 2px; }
.upload.busy { opacity: .5; pointer-events: none; }
img.cnic { max-width: 100%; max-height: 360px; border-radius: 12px; border: 1px solid var(--line); background: var(--divider); }

/* ---------- tasker profile ---------- */
.profile-head { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; background: var(--teal); color: #fff; border-radius: var(--r-xl); padding: clamp(24px, 4vw, 40px); margin-bottom: 18px; }
.profile-head .btn { flex: none; }
.profile-grid .offer.row { flex-wrap: nowrap; align-items: center; }
.profile-head h1 { color: #fff; margin: 0 0 6px; }
.profile-head p { color: var(--on-teal); margin: 0 0 12px; }
.profile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 18px; align-items: start; }
.profile-grid .card { border-radius: 18px; padding: 22px; }

/* ---------- home ---------- */
.hero { background: var(--teal); color: #fff; }
.hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 48px; align-items: start; padding-block: 40px 80px; }
.hero .kicker { color: var(--peach); font-weight: 700; font-size: 15px; margin-bottom: 14px; }
.display { font-size: clamp(40px, 5.4vw, 68px); line-height: 1; letter-spacing: -.04em; color: #fff; text-wrap: balance; margin-bottom: 20px; }
.hero .lead { font-size: 18px; color: var(--on-teal); max-width: 34em; margin-bottom: 22px; }
.hero-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 24px 0 0; }
.hero-links a { color: #fff; font-weight: 600; text-decoration: underline; text-decoration-color: var(--peach); text-underline-offset: 4px; padding-block: 8px; }
.composer { background: var(--white); color: var(--ink); border-radius: var(--r-xl); padding: 28px; min-height: 540px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .5); display: flex; flex-direction: column; gap: 16px; }
.composer h3 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin: 0; }
.progress { display: flex; gap: 6px; }
.progress span { flex: 1; height: 4px; border-radius: 2px; background: var(--line); }
.progress span.on { background: var(--teal); }
.step-label { font-size: 13px; color: var(--muted); margin: -8px 0 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.tiles:not(.all) .tile:nth-child(n+9), .cat-grid:not(.all) a:nth-child(n+13) { display: none; }
.show-toggle { justify-self: start; min-height: 40px; font-weight: 600; }
.show-toggle .less-l, .all + .show-toggle .more-l { display: none; }
.all + .show-toggle .less-l { display: inline; }
fieldset.step { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 14px; }
.tile, .opt { position: relative; cursor: pointer; }
.opt { display: inline-grid; }
.tile input, .opt input { position: absolute; opacity: 0; pointer-events: none; }
.tile .face { display: grid; gap: 4px; align-content: start; height: 100%; background: #fff; border: 1.5px solid var(--line-input); border-radius: var(--r); padding: 12px; font-size: 14px; }
.tile .face span { font-size: 22px; line-height: 1.2; }
.tile:hover .face { border-color: var(--teal); }
.tile input:checked + .face { border-color: var(--teal); background: var(--teal-tint); }
.opt input:checked + .fchip { background: var(--teal); border-color: var(--teal); color: #fff; }
.tile input:focus-visible + .face, .opt input:focus-visible + .fchip { outline: 3px solid var(--peach); outline-offset: 2px; }
.composer-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 8px; }
.composer-foot .btn.primary { margin-inline-start: auto; }
.section { padding-block: 72px 0; }
.section:last-child { padding-bottom: 88px; }
.section-h { font-size: clamp(30px, 3.6vw, 44px); line-height: 1; letter-spacing: -.04em; margin-bottom: 24px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 8px 24px; margin-bottom: 24px; }
.section-head .section-h { margin-bottom: 6px; }
.section-head .sub { color: var(--muted-2); margin: 0; }
.section-head .more { font-weight: 700; text-decoration: none; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); gap: 10px; margin-bottom: 18px; }
.cat-grid a { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; text-decoration: none; color: var(--ink); font-size: 15px; font-weight: 600; transition: border-color .15s, transform .15s; }
.cat-grid a:hover { border-color: var(--teal); transform: translateY(-1px); }
.cat-grid span { font-size: 24px; line-height: 1; }
.band-deep { background: var(--deep); color: #fff; margin-top: 72px; padding-bottom: 80px; }
.band-deep .section-h { color: #fff; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 32px; padding: 0; margin: 0; list-style: none; }
.steps .num { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--peach); color: var(--on-peach); font-weight: 800; margin-bottom: 14px; }
.steps h3 { font-size: 22px; font-weight: 800; color: #fff; }
.steps p { color: var(--on-teal); margin: 0; }
.why { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.why .card { border-radius: 18px; padding: 22px; }
.why .emoji { font-size: 28px; line-height: 1; display: block; margin-bottom: 12px; }
.why p { color: var(--muted-2); margin: 0; font-size: 15px; }
.earn-band { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; background: var(--peach); color: var(--on-peach); border-radius: var(--r-xl); padding: clamp(24px, 4vw, 44px); }
.earn-band h2 { font-size: clamp(26px, 3.2vw, 38px); letter-spacing: -.03em; line-height: 1.1; margin: 0 0 8px; }
[lang="ur"] .earn-band h2 { line-height: 1.9; letter-spacing: 0; }
.earn-band p { margin: 0; max-width: 40em; }

/* ---------- notices, alerts, legal ---------- */
.notice { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; background: var(--safety-bg); border-color: var(--safety-line); }
.notice p { margin: 4px 0; }
.code { font-size: 18px; letter-spacing: .08em; }
.alert { flex-direction: row !important; justify-content: space-between; gap: 12px; align-items: baseline; }
.alert.new { border-inline-start: 4px solid var(--peach); font-weight: 600; }
.legal { max-width: 760px; margin-inline: auto; }
.legal h1 { font-size: clamp(26px, 5vw, 36px); }
.legal h3 { margin-top: 1.6em; }

/* ---------- admin panel and moderation ---------- */
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 2px solid var(--line); margin: 12px 0 18px; }
.tabs a { padding: 8px 14px; text-decoration: none; color: var(--muted); font-weight: 600; white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tabs a.on { color: var(--teal-dark); border-bottom-color: var(--peach); }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 8px; }
.stat { display: grid; gap: 2px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; text-decoration: none; color: inherit; }
a.stat:hover { border-color: var(--teal); }
.stat b { font-size: 24px; color: var(--teal-dark); }
.stat span { color: var(--muted); font-size: 14px; }
.events { margin: 0; padding-inline-start: 20px; font-size: 14px; color: var(--muted); display: grid; gap: 4px; }
.events .failed { color: var(--red); font-weight: 600; }
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 8px; margin: 20px 0; }
.confirm-box { background: var(--pink-tint); border: 1px solid #f3c6d9; border-radius: 12px; padding: 10px 12px; }
.confirm-box p { margin: 0; }
.reset-result { background: #e3f3e9; border: 1px solid #b9dcc6; border-radius: 12px; padding: 10px 12px; margin: 0; font-weight: 600; }
.narrow-card { max-width: 520px; }
.card.dismissed { opacity: .6; }

/* ---------- footer, toast ---------- */
#foot { background: var(--footer); color: var(--on-footer); font-size: 14px; }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-block: 28px; }
.foot-in a { color: var(--on-footer); }
#toast { position: fixed; inset-inline: 16px; bottom: 18px; margin: auto; max-width: 420px; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 12px; text-align: center; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 9; }
#toast.on { opacity: 1; }
