/* KaziLink — light theme. All colour pairs verified for WCAG AA (see frontend report). */
:root {
  color-scheme: light;
  --bg: #f7f9f8;
  --surface: #ffffff;
  --surface-2: #f1f5f3;
  --text: #101a16;
  --text-muted: #4a5852;
  --border: #d5dfda;
  --border-strong: #7a8a83;
  --brand: #0b7a58;
  --brand-hover: #075c42;
  --brand-soft: #e6f4ed;
  --brand-text: #06573e;
  --warning: #8f4a06;
  --warning-soft: #fdf1e3;
  --info: #2553b8;
  --info-soft: #eaf0fd;
  --danger: #a3302a;
  --danger-soft: #fbecea;
  --hero-from: #e8f5ee;
  --hero-to: #f7fbf9;
  --focus: #0b7a58;
  --shadow: 0 14px 34px rgba(15, 35, 27, .08);
  --shadow-lg: 0 24px 60px rgba(15, 35, 27, .18);
  --radius: 16px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation-duration: .01ms !important; }
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
}
body.modal-open { overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
a { color: var(--brand-text); }
[hidden] { display: none !important; }
ul, ol { list-style: none; }
h1, h2, h3 { line-height: 1.2; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.btn:focus-visible, .chip:focus-visible, .pick:focus-visible, .tab:focus-visible { outline-offset: 3px; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--text); color: #fff; padding: 10px 14px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }
main:focus, h1[tabindex="-1"]:focus, h2[tabindex="-1"]:focus { outline: none; }

/* utilities */
.mt-7 { margin-top: 7px; } .mt-10 { margin-top: 10px; } .mt-11 { margin-top: 11px; }
.mb-6 { margin-bottom: 6px; } .mb-10 { margin-bottom: 10px; } .mb-12 { margin-bottom: 12px; } .mb-14 { margin-bottom: 14px; }
.center { text-align: center; } .pad-10 { padding: 10px 0; }
.muted-text { font-size: 16px; color: var(--text-muted); }
.small-muted { font-size: 16px; color: var(--text-muted); }

/* ---------------- NAV ---------------- */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.nav-inner { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 800; font-size: 20px; letter-spacing: -.4px; flex: none; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; box-shadow: 0 8px 16px rgba(11, 122, 88, .22); }
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 16px; font-weight: 600; white-space: nowrap; }
.nav-links a:hover { color: var(--brand-text); text-decoration: underline; }
.nav-actions { display: flex; align-items: center; gap: 8px; }

.acct { position: relative; }
.acct-btn { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 999px; padding: 4px 10px 4px 4px; font-size: 16px; font-weight: 700; color: var(--text); min-height: 40px; max-width: 220px; }
.acct-btn:hover { background: var(--surface-2); }
.acct-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 13.5px; font-weight: 800; flex: none; }
.acct-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-caret { font-size: 13px; color: var(--text-muted); }
.acct-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 150; }
.acct-head { padding: 10px 12px 10px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.acct-head strong { display: block; font-size: 16px; overflow-wrap: anywhere; }
.acct-head span { font-size: 16px; color: var(--text-muted); }
.menu-item { display: block; width: 100%; text-align: left; background: none; border: 0; border-radius: 9px; padding: 10px 12px; font-size: 16px; font-weight: 600; color: var(--text); text-decoration: none; }
.menu-item:hover, .menu-item:focus-visible { background: var(--brand-soft); color: var(--brand-text); }
.sm-only { display: none; }

@media (min-width: 640px) {
  .acct-btn.logged-out { display: none; }
}
@media (max-width: 639px) {
  .hide-sm { display: none !important; }
  .sm-only { display: block; }
  .acct-name { display: none; }
  .acct-btn { padding-right: 10px; }
}

/* ---------------- BUTTONS ---------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid transparent; border-radius: 10px; padding: 11px 15px; font-weight: 700; font-size: 16px; transition: background-color .15s ease, border-color .15s ease; white-space: nowrap; text-decoration: none; min-height: 42px; }
.btn-outline { background: var(--surface); border-color: var(--border-strong); color: var(--text); }
.btn-outline:hover { background: var(--surface-2); border-color: var(--text-muted); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); }
.btn-amber { background: var(--warning); color: #fff; }
.btn-amber:hover { background: #733b04; }
.btn-blue { background: var(--info); color: #fff; }
.btn-blue:hover { background: #1c4399; }
.btn-danger { background: var(--danger-soft); color: var(--danger); border-color: #e3b5b1; }
.btn-danger:hover { background: #f6dcd9; }
.btn-sm { padding: 8px 12px; font-size: 16px; min-height: 36px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; padding: 2px 0; color: var(--brand-text); font-weight: 700; font-size: 16px; text-decoration: underline; text-underline-offset: 2px; }

/* ---------------- HERO (light) ---------------- */
.hero { background: linear-gradient(135deg, var(--hero-from), var(--hero-to) 70%); border-bottom: 1px solid var(--border); padding: 56px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .9fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-flex; gap: 7px; background: var(--surface); border: 1px solid var(--border); color: var(--brand-text); padding: 7px 12px; border-radius: 999px; font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.hero h1 { font-size: clamp(30px, 4.6vw, 52px); line-height: 1.06; letter-spacing: -1.4px; max-width: 620px; }
.hero-lead { margin-top: 14px; font-size: 17px; color: var(--text-muted); max-width: 560px; }
.search-panel { margin-top: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: 15px; padding: 8px; box-shadow: var(--shadow); display: grid; grid-template-columns: 1.3fr .8fr auto; gap: 7px; }
.search-field { background: var(--surface); border: 1px solid var(--border-strong); border-radius: 10px; display: flex; align-items: center; gap: 8px; padding: 0 12px; min-width: 0; }
.search-field:focus-within { outline: 3px solid var(--focus); outline-offset: 1px; }
.search-field input, .search-field select { border: none; outline: none; background: transparent; width: 100%; min-width: 0; color: var(--text); padding: 12px 0; }
.search-field input::placeholder { color: var(--text-muted); opacity: 1; }
.search-panel .btn { padding: 12px 20px; }
.hero-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.stat-strip { display: flex; gap: 26px; margin-top: 24px; flex-wrap: wrap; min-height: 48px; }
.stat-strip div strong { display: block; font-size: 21px; color: var(--brand-text); }
.stat-strip div span { font-size: 16px; color: var(--text-muted); }

.hero-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 20px; box-shadow: var(--shadow); }
.hero-card h2 { font-size: 17px; margin-bottom: 13px; }
.flow-step { display: flex; gap: 10px; align-items: center; background: var(--surface-2); border-radius: 12px; padding: 11px; margin-bottom: 8px; }
.flow-step:last-child { margin-bottom: 0; }
.flow-step .n { width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 13.5px; font-weight: 900; display: grid; place-items: center; flex: none; }
.flow-step strong { display: block; font-size: 16px; }

/* ---------------- SECTIONS ---------------- */
section { padding: 52px 0; scroll-margin-top: 68px; }
.band { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-end; margin-bottom: 20px; flex-wrap: wrap; }
.section-head h2 { font-size: 27px; letter-spacing: -.7px; }
.section-head p { color: var(--text-muted); font-size: 16px; max-width: 640px; margin-top: 4px; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.sub-head { font-size: 16px; margin-bottom: 9px; }

.toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chip { background: var(--surface); border: 1px solid var(--border-strong); border-radius: 999px; padding: 8px 14px; font-size: 16px; font-weight: 700; color: var(--text-muted); min-height: 36px; }
.chip:hover { color: var(--text); background: var(--surface-2); }
.chip[aria-pressed="true"] { background: var(--brand); color: #fff; border-color: var(--brand); }
.search-note { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; background: var(--brand-soft); color: var(--brand-text); border-radius: 12px; padding: 10px 14px; font-size: 16px; font-weight: 600; margin-bottom: 14px; }

/* ---------------- TASK CARDS ---------------- */
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.task-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 17px; display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.task-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.task-title { font-size: 17px; font-weight: 800; overflow-wrap: anywhere; }
.badge { font-size: 13px; font-weight: 800; padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.badge-open { background: var(--brand-soft); color: var(--brand-text); }
.badge-mine { background: var(--info-soft); color: var(--info); }
.badge-claimed { background: var(--warning-soft); color: var(--warning); }
.badge-removed { background: var(--surface-2); color: var(--text-muted); border: 1px solid var(--border); }
.task-meta { display: flex; gap: 10px; flex-wrap: wrap; color: var(--text-muted); font-size: 16px; }
.task-desc { font-size: 16px; color: var(--text-muted); min-height: 34px; overflow-wrap: anywhere; }
.task-pay { font-size: 20px; font-weight: 900; color: var(--brand-text); }
.task-foot { display: flex; gap: 8px; margin-top: auto; padding-top: 4px; }
.task-foot .btn { flex: 1; }
.empty-state { grid-column: 1 / -1; background: var(--surface); border: 1px dashed var(--border-strong); border-radius: var(--radius); padding: 34px; text-align: center; color: var(--text-muted); }
.empty-state strong { display: block; color: var(--text); margin-bottom: 6px; font-size: 17px; }

/* ---------------- PLAN CARDS ---------------- */
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.plan-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.plan-card .btn { margin-top: auto; }
.plan-card.highlight { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.plan-tag { font-size: 13px; font-weight: 800; color: var(--brand-text); background: var(--brand-soft); padding: 5px 9px; border-radius: 999px; width: fit-content; letter-spacing: .3px; }
.plan-tag-neutral { color: var(--text-muted); background: var(--surface-2); }
.plan-tag-info { color: var(--info); background: var(--info-soft); }
.plan-price { font-size: 26px; font-weight: 900; }
.plan-price span { font-size: 16px; color: var(--text-muted); font-weight: 600; }
.plan-list { display: grid; gap: 7px; font-size: 16px; color: var(--text-muted); margin: 4px 0 6px; }
.plan-list li { display: flex; gap: 7px; }

/* ---------------- PROVIDER CARDS ---------------- */
.provider-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 10px; position: relative; min-width: 0; }
.provider-card.featured { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.provider-top { display: flex; gap: 12px; align-items: center; min-width: 0; }
.avatar { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-weight: 900; color: #fff; font-size: 17px; flex: none; }
.av-0 { background: #0b7a58; } .av-1 { background: #2553b8; } .av-2 { background: #8f4a06; } .av-3 { background: #6b3fb8; } .av-4 { background: #b0364f; }
.provider-name { font-size: 17px; font-weight: 800; overflow-wrap: anywhere; }
.provider-cat { font-size: 16px; color: var(--text-muted); }
.status-row { display: flex; gap: 6px; flex-wrap: wrap; }
.status-row:empty { display: none; }
.status-pill { font-size: 13px; font-weight: 800; padding: 4px 9px; border-radius: 999px; }
.status-pill.verified { background: var(--brand-soft); color: var(--brand-text); }
.status-pill.featured { background: var(--warning-soft); color: var(--warning); }
.provider-desc { font-size: 16px; color: var(--text-muted); overflow-wrap: anywhere; }
.service-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.service-pill { background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 4px 8px; font-size: 16px; font-weight: 700; color: var(--text-muted); }
.provider-card .card-action { margin-top: auto; }
.contact-box { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; font-size: 16px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.contact-box a { color: var(--brand-text); font-weight: 800; font-size: 17px; }
.contact-box.revealed { background: var(--brand-soft); border-color: #b9dfcd; }
.unavailable-note { font-size: 16px; color: var(--text-muted); background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.own-note { font-size: 16px; color: var(--info); background: var(--info-soft); border-radius: 10px; padding: 10px 12px; font-weight: 600; }
.provider-gallery { display: flex; gap: 6px; }
.provider-gallery img { width: 60px; height: 44px; border-radius: 8px; object-fit: cover; border: 1px solid var(--border); }
.task-photo { width: 100%; height: 130px; border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.task-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------------- STATS ROW ---------------- */
.platform-stats { display: flex; gap: 26px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 18px; margin-bottom: 18px; min-height: 64px; }
.platform-stats div strong { display: block; font-size: 19px; }
.platform-stats div span { font-size: 16px; color: var(--text-muted); }

/* ---------------- DASHBOARD ---------------- */
.dash-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.dash-card.inset { background: var(--surface-2); }
.dash-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; }
.dash-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.dash-stat { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 14px; }
.dash-stat strong { display: block; font-size: 20px; overflow-wrap: anywhere; }
.dash-stat span { font-size: 16px; color: var(--text-muted); }
.lead-log { display: grid; gap: 8px; max-height: 420px; overflow: auto; padding-right: 2px; }
.lead-item { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; font-size: 16px; display: grid; gap: 4px; }
.lead-item .lead-top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.lead-item .lead-who { font-weight: 800; }
.lead-item .lead-meta { color: var(--text-muted); font-size: 16px; }
.lead-item a { font-weight: 800; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin-top: 12px; font-size: 16px; }
.kv dt { color: var(--text-muted); }
.kv dd { font-weight: 700; overflow-wrap: anywhere; }
.pill { display: inline-block; font-size: 13px; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: var(--surface-2); color: var(--text-muted); border: 1px solid var(--border); }
.pill-ok { background: var(--brand-soft); color: var(--brand-text); border-color: transparent; }
.pill-warn { background: var(--warning-soft); color: var(--warning); border-color: transparent; }
.pill-bad { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.pill-info { background: var(--info-soft); color: var(--info); border-color: transparent; }

/* ---------------- FOOTER ---------------- */
footer { border-top: 1px solid var(--border); padding: 30px 0; color: var(--text-muted); font-size: 16px; text-align: center; background: var(--bg); }

/* ---------------- MODALS ---------------- */
.modal { display: none; position: fixed; inset: 0; background: rgba(8, 16, 12, .5); align-items: center; justify-content: center; padding: 16px; z-index: 400; }
.modal.show { display: flex; }
.modal-card { width: min(560px, 100%); background: var(--surface); border-radius: 20px; padding: 22px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: auto; box-shadow: var(--shadow-lg); }
.modal-card:focus { outline: none; }
.modal-sm { width: min(400px, 100%); }
.modal-md { width: min(460px, 100%); }
.modal-lg { width: min(680px, 100%); }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 16px; }
.modal-head h2 { font-size: 20px; overflow-wrap: anywhere; }
.modal.forced .close { display: none; }
.close { width: 36px; height: 36px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface); font-size: 20px; line-height: 1; color: var(--text); flex: none; }
.close:hover { background: var(--surface-2); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid.one { grid-template-columns: 1fr; }
.group { display: grid; gap: 6px; align-content: start; min-width: 0; }
.group.full { grid-column: 1 / -1; }
.group label, .group .label { font-size: 16px; font-weight: 800; color: var(--text); }
.group input, .group select, .group textarea { border: 1px solid var(--border-strong); background: var(--surface); border-radius: 10px; padding: 11px; color: var(--text); width: 100%; min-width: 0; min-height: 44px; }
.group input::placeholder, .group textarea::placeholder { color: var(--text-muted); opacity: 1; }
.group input:focus, .group select:focus, .group textarea:focus { outline: 3px solid var(--focus); outline-offset: 0; border-color: var(--brand); }
.group textarea { min-height: 80px; resize: vertical; }
.group [aria-invalid="true"] { border-color: var(--danger); border-width: 2px; }
.hint { font-size: 16px; color: var(--text-muted); }
.field-error { font-size: 16px; color: var(--danger); font-weight: 700; }
.field-error::before { content: ""; display: inline-block; width: 1.1em; height: 1.1em; vertical-align: -0.2em; margin-inline-end: .3em; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' x2='12' y1='8' y2='12'/%3E%3Cline x1='12' x2='12.01' y1='16' y2='16'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' x2='12' y1='8' y2='12'/%3E%3Cline x1='12' x2='12.01' y1='16' y2='16'/%3E%3C/svg%3E") center / contain no-repeat; }
.form-error { background: var(--danger-soft); color: var(--danger); border-radius: 10px; padding: 10px 12px; font-size: 16px; font-weight: 600; margin-bottom: 12px; }
.notice { border-radius: 10px; padding: 10px 12px; font-size: 16px; font-weight: 600; }
.notice-info { background: var(--info-soft); color: var(--info); }
.notice-warning { background: var(--warning-soft); color: var(--warning); margin-bottom: 12px; }
.notice-success { background: var(--brand-soft); color: var(--brand-text); }
#authReason { margin-bottom: 12px; }
.modal-foot { display: flex; gap: 9px; margin-top: 18px; flex-wrap: wrap; }
.modal-foot .btn { flex: 1 1 140px; }
.step-dots { display: flex; gap: 6px; margin-bottom: 16px; }
.step-dots span { height: 5px; flex: 1; border-radius: 99px; background: var(--border); }
.step-dots span.on { background: var(--brand); }
.pick-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pick { border: 1px solid var(--border-strong); border-radius: 12px; padding: 13px; text-align: left; background: var(--surface); color: var(--text); }
.pick:hover { background: var(--surface-2); }
.pick strong { display: block; font-size: 16px; margin-bottom: 3px; }
.pick span { font-size: 16px; color: var(--text-muted); }
.pick[aria-pressed="true"] { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); background: var(--brand-soft); }
.pick[aria-pressed="true"] strong { color: var(--brand-text); }

.tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface-2); border-radius: 12px; padding: 4px; gap: 4px; margin-bottom: 16px; }
.tab { border: 0; background: transparent; border-radius: 9px; padding: 9px; font-weight: 700; font-size: 16px; color: var(--text-muted); }
.tab[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }

/* my tasks */
.my-task-list { display: grid; gap: 10px; }
.my-task { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; display: grid; gap: 6px; background: var(--surface); }
.my-task-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.my-task-title { font-weight: 800; overflow-wrap: anywhere; }
.my-task-meta { font-size: 16px; color: var(--text-muted); display: flex; gap: 10px; flex-wrap: wrap; }
.claimer { background: var(--warning-soft); color: var(--warning); border-radius: 10px; padding: 8px 10px; font-size: 16px; font-weight: 600; }
.claimer a { color: var(--warning); font-weight: 800; }
.my-task-actions { display: flex; gap: 8px; justify-content: flex-end; }

/* M-PESA */
.mpesa-body { text-align: center; padding: 10px 4px 4px; }
.mpesa-body p { font-size: 16px; }
.mpesa-icon { width: 56px; height: 56px; border-radius: 16px; background: var(--brand-soft); color: var(--brand-text); display: grid; place-items: center; font-size: 26px; margin: 0 auto 14px; }
.mpesa-icon.warn { background: var(--warning-soft); }
.mpesa-icon.bad { background: var(--danger-soft); }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--border); border-top-color: var(--brand); animation: spin 1s linear infinite; margin: 0 auto 14px; }
@keyframes spin { to { transform: rotate(360deg); } }
.mpesa-amount { font-size: 24px; font-weight: 900; margin: 6px 0; }
.mpesa-note { font-size: 16px; color: var(--text-muted); margin-top: 14px; background: var(--surface-2); border-radius: 10px; padding: 9px 11px; text-align: left; }
.txn-code { font-family: ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace; font-size: 16px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 8px; margin: 10px 0; letter-spacing: .5px; }
.mpesa-body .btn { margin-top: 14px; }

/* uploads */
.upload-box { border: 1.5px dashed var(--border-strong); border-radius: 12px; padding: 14px; text-align: center; background: var(--surface-2); }
.upload-box input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.upload-btn { display: inline-flex; gap: 6px; align-items: center; padding: 9px 14px; border-radius: 9px; background: var(--surface); border: 1px solid var(--border-strong); font-weight: 700; font-size: 16px; cursor: pointer; color: var(--text); }
.upload-box input[type=file]:focus-visible + .upload-btn { outline: 3px solid var(--focus); outline-offset: 2px; }
.upload-box p { font-size: 16px; color: var(--text-muted); margin-top: 8px; }
.preview-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.preview-grid:empty { display: none; }
.preview { position: relative; height: 64px; border-radius: 9px; overflow: hidden; border: 1px solid var(--border); }
.preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.remove-img { position: absolute; top: 3px; right: 3px; width: 24px; height: 24px; border-radius: 50%; border: none; background: rgba(0, 0, 0, .72); color: #fff; font-size: 16px; line-height: 1; display: grid; place-items: center; padding: 0; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--text); color: #fff; padding: 12px 18px; border-radius: 11px; font-size: 16px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease; z-index: 500; width: max-content; max-width: min(560px, calc(100vw - 32px)); box-shadow: var(--shadow-lg); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.toast-error { background: var(--danger); }
@media (max-width: 480px) { body.modal-open .toast { bottom: auto; top: 12px; } }

/* ---------------- ADMIN ---------------- */
.admin-main { padding: 28px 0 60px; }
.admin-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0; }
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px; }
.tile strong { display: block; font-size: 22px; }
.tile span { font-size: 16px; color: var(--text-muted); }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
table.data { width: 100%; border-collapse: collapse; font-size: 16px; min-width: 760px; }
table.data th, table.data td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.data th { background: var(--surface-2); font-size: 16px; text-transform: uppercase; letter-spacing: .3px; color: var(--text-muted); position: sticky; top: 0; }
table.data tr:last-child td { border-bottom: 0; }
table.data td .sub { display: block; color: var(--text-muted); font-size: 16px; }
.toggle { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border-strong); background: var(--surface); border-radius: 999px; padding: 4px 10px; font-size: 16px; font-weight: 700; color: var(--text-muted); min-height: 32px; }
.toggle[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.panel-msg { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 28px; max-width: 520px; margin: 40px auto; text-align: center; }
.panel-msg h1 { font-size: 22px; margin-bottom: 8px; }
.panel-msg p { color: var(--text-muted); margin-bottom: 16px; }
.gate-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.inline-controls { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.inline-controls label { font-size: 16px; font-weight: 700; }
.inline-controls select { border: 1px solid var(--border-strong); border-radius: 10px; padding: 8px 10px; background: var(--surface); min-height: 38px; }

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 980px) {
  .dash-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .nav-links { display: none; }
}
@media (max-width: 880px) {
  .hero { padding: 36px 0 44px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .search-panel { grid-template-columns: 1fr; }
  .grid3, .plan-grid, .dash-grid, .pick-row { grid-template-columns: minmax(0, 1fr); }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  section { padding: 40px 0; }
  .section-head h2 { font-size: 23px; }
}
@media (max-width: 480px) {
  .modal { padding: 8px; align-items: flex-end; }
  .modal-card { padding: 18px 16px; border-radius: 18px; max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); }
  .dash-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .brand { font-size: 19px; }
  .preview-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.admin-title { font-size: 26px; letter-spacing: -.6px; }
.admin-section { padding: 4px 0 24px; }
table.data a[href^="tel:"], .lead-item a[href^="tel:"], .claimer a[href^="tel:"] { white-space: nowrap; }

.inline-group { display: flex; align-items: center; gap: 8px; }
.inline-group select { padding: 6px 10px; }
.mt-24 { margin-top: 24px; }
.event-meta { font-size: 16px; color: var(--text-muted); word-break: break-word; }
@media (max-width: 560px) {
  .stat-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .stat-strip div span { display: block; line-height: 1.3; }
}

/* =================== ROUND 1: pages, bell, My Tasks, listings, verification =================== */
/* page views (#my-tasks, #dashboard, #listing/<id>) */
.page-view { min-height: 62vh; }
#dashboard { min-height: 62vh; }
.back-link { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 16px; margin-bottom: 16px; color: var(--brand-text); }

/* nav: dashboard link, unverified dot, notifications bell */
.acct-btn.needs-verify .acct-avatar { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--warning); }
.menu-item.menu-cta { color: var(--warning); }
.bell { position: relative; }
.bell-btn { position: relative; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); display: grid; place-items: center; font-size: 18px; line-height: 1; padding: 0; }
.bell-btn:hover { background: var(--surface-2); }
.bell-count { position: absolute; top: -5px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--danger); color: #fff; font-size: 13px; font-weight: 800; display: grid; place-items: center; line-height: 1; border: 2px solid var(--surface); }
.bell-menu { position: absolute; right: 0; top: calc(100% + 8px); width: 360px; max-width: calc(100vw - 24px); background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 150; }
.bell-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 10px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.bell-head .link-btn:disabled { opacity: .55; cursor: not-allowed; text-decoration: none; }
.bell-list { display: grid; gap: 4px; max-height: min(60vh, 440px); overflow: auto; }
.bell-entry { display: grid; gap: 2px; padding: 9px 10px; border-radius: 9px; text-decoration: none; color: var(--text); font-size: 16px; background: var(--surface); }
a.bell-entry:hover { background: var(--surface-2); }
.bell-item.unread .bell-entry { background: var(--brand-soft); color: var(--text); }
.bell-title { font-weight: 800; overflow-wrap: anywhere; }
.bell-body { color: var(--text-muted); overflow-wrap: anywhere; }
.bell-time { font-size: 16px; color: var(--text-muted); }
.bell-empty { padding: 16px 10px; color: var(--text-muted); font-size: 16px; text-align: center; }
@media (max-width: 639px) {
  .bell-menu { position: fixed; left: 12px; right: 12px; top: 72px; width: auto; max-width: none; }
}

/* status badges & notices added this round */
.badge-done { background: var(--info-soft); color: var(--info); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.notice-danger { background: var(--danger-soft); color: var(--danger); }
.btn-danger-solid { background: var(--danger); color: #fff; }
.btn-danger-solid:hover { background: #85241f; }

/* provider cards → detail page */
.provider-card[data-action] { cursor: pointer; }
.provider-card[data-action]:hover { border-color: var(--border-strong); }
.provider-link { color: inherit; text-decoration: none; }
.provider-link:hover, .provider-link:focus-visible { text-decoration: underline; }
.service-pill.more { border-style: dashed; }
.card-bottom { margin-top: auto; display: grid; gap: 8px; }
.card-bottom .link-btn { justify-self: start; }
.listing-detail { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 24px; display: grid; gap: 14px; max-width: 880px; min-width: 0; }
.listing-detail.featured { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.listing-detail h2 { font-size: 24px; letter-spacing: -.5px; overflow-wrap: anywhere; }
.detail-head { display: flex; gap: 14px; align-items: center; min-width: 0; }
.detail-desc { font-size: 17px; overflow-wrap: anywhere; }
.detail-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.detail-gallery img { width: 100%; height: 120px; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); display: block; }
.detail-contact { max-width: 440px; }
.tick-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; }
.tick-list li { display: flex; gap: 8px; align-items: flex-start; font-size: 16.5px; overflow-wrap: anywhere; min-width: 0; }
.tick { color: var(--brand-text); font-weight: 900; flex: none; }

/* claim dialog + My Tasks */
.claim-summary { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; display: grid; gap: 6px; }
.claim-summary .task-desc { min-height: 0; }
.tabs-page { max-width: 560px; }
.tab-count { font-weight: 600; }
[role="tabpanel"]:focus-visible { outline-offset: 4px; }
.my-task { gap: 10px; padding: 14px; }
.my-task-body { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.my-task-main { display: grid; gap: 6px; min-width: 0; flex: 1; }
.my-task-title { font-size: 17px; }
.my-task-thumb { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; flex: none; border: 1px solid var(--border); }
.my-task-actions { flex-wrap: wrap; justify-content: flex-start; }
.person-box { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; display: grid; gap: 8px; font-size: 16px; min-width: 0; }
.person-line { overflow-wrap: anywhere; }
.person-label { color: var(--text-muted); }
.person-phone { white-space: nowrap; font-weight: 700; }
.contact-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.contact-actions .btn { flex: 0 1 auto; }

/* business dashboard: one card per listing */
.biz-list { display: grid; gap: 14px; }
.biz-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; display: grid; gap: 12px; min-width: 0; }
.biz-card.is-hidden { border-style: dashed; border-color: var(--border-strong); }
.biz-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.biz-title { min-width: 0; }
.biz-name { font-size: 17px; font-weight: 800; overflow-wrap: anywhere; }
.biz-banner { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0; }
.biz-banner strong { display: block; font-size: 16px; }
.biz-banner span { font-weight: 600; }
.banner-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.biz-facts { margin-top: 0; }
.biz-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.leads-panel { border-top: 1px solid var(--border); padding-top: 12px; display: grid; gap: 4px; }

/* verification panel */
.verify-card { margin-bottom: 18px; display: grid; gap: 10px; }
.verify-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.verify-head h3 { font-size: 17px; }
.doc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.group input[type=file] { padding: 8px; font-size: 16px; }
.doc-preview:empty { display: none; }
.doc-preview img { width: 100%; max-width: 180px; height: 110px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); display: block; }
.doc-file { font-size: 16px; color: var(--text-muted); overflow-wrap: anywhere; }

/* listing form: service tags + suggestions */
.tag-entry { display: flex; gap: 8px; align-items: stretch; }
.tag-entry input { flex: 1; }
.tag-entry .btn { min-height: 44px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-list:empty { display: none; }
.tag { display: inline-flex; align-items: center; gap: 2px; background: var(--brand-soft); color: var(--brand-text); border-radius: 999px; padding: 3px 3px 3px 11px; font-size: 16px; font-weight: 700; max-width: 100%; }
.tag span { overflow-wrap: anywhere; }
.tag-x { width: 28px; height: 28px; border-radius: 50%; border: 0; background: transparent; color: var(--brand-text); font-size: 18px; line-height: 1; display: grid; place-items: center; flex: none; padding: 0; }
.tag-x:hover { background: var(--surface); }
.suggest { display: grid; gap: 6px; }
.suggest-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.suggest-chip { border: 1px dashed var(--border-strong); background: var(--surface); color: var(--text-muted); border-radius: 999px; padding: 5px 11px; font-size: 16px; font-weight: 700; min-height: 32px; }
.suggest-chip:hover { background: var(--surface-2); color: var(--text); }
.char-count { text-align: right; }

/* account state banner (suspended / email not verified) */
.account-banner { padding-top: 16px; }
.account-banner a { color: inherit; font-weight: 800; }
.link-btn:disabled { opacity: .55; cursor: not-allowed; text-decoration: none; }

@media (max-width: 880px) {
  .doc-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .tick-list { grid-template-columns: minmax(0, 1fr); }
  .listing-detail { padding: 18px 16px; }
  .listing-detail h2 { font-size: 21px; }
  .my-task-thumb { width: 56px; height: 56px; }
  .biz-top { flex-wrap: wrap; }
}

/* Install prompt (PWA) in the footer */
.install-app { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 16px; }
.install-app[hidden], .install-hint[hidden] { display: none; }
.install-hint { margin: 0; font-size: 16px; color: var(--text-muted); }

/* Lucide icons (public/js/icons.js). Sized to the surrounding text. */
.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }
i[data-icon] { display: inline-block; width: 1.15em; height: 1.15em; vertical-align: -0.2em; }
.ic-gap { margin-inline-end: .35em; }
.ic-ok { color: var(--brand-text); }
.task-meta > span, .my-task-meta > span, .provider-cat, .status-pill { display: inline-flex; align-items: center; gap: .35em; flex-wrap: wrap; }
.plan-list .ic, .tick-list .ic { margin-top: .17em; }
.mpesa-icon .ic { width: 30px; height: 30px; }
.mpesa-icon.bad, .mpesa-icon.bad .ic { color: var(--danger); }
.mpesa-icon.warn .ic { color: var(--warning); }
.acct-avatar .ic { width: 16px; height: 16px; }

/* Skeleton loading placeholders (public/js/skeletons.js): shapes of the real content with a shimmer. */
.sk { display: block; height: 14px; border-radius: 7px; background: linear-gradient(90deg, #e1e9e5 0%, #f1f5f3 40%, #e1e9e5 80%); background-size: 300% 100%; animation: sk-shimmer 1.3s ease-in-out infinite; }
@keyframes sk-shimmer { from { background-position: 100% 0; } to { background-position: -50% 0; } }
.sk-w20 { width: 20%; } .sk-w30 { width: 30%; } .sk-w40 { width: 40%; } .sk-w50 { width: 50%; } .sk-w60 { width: 60%; }
.sk-w70 { width: 70%; } .sk-w80 { width: 80%; } .sk-w90 { width: 90%; } .sk-w100 { width: 100%; }
.sk-card { pointer-events: none; }
.sk-row { display: flex; gap: 8px; align-items: center; }
.sk-row .sk-title + .sk-pill { margin-left: auto; }
.sk-stack { display: grid; gap: 8px; flex: 1; min-width: 0; }
.sk-gap { gap: 12px; }
.sk-title { height: 18px; }
.sk-heading { height: 26px; }
.sk-price { height: 22px; margin-top: 4px; }
.sk-pill { height: 22px; border-radius: 999px; max-width: 90px; }
.sk-chip { height: 30px; border-radius: 8px; }
.sk-btn { height: 44px; border-radius: 10px; margin-top: auto; }
.sk-avatar { width: 48px; height: 48px; border-radius: 12px; flex: none; }
.sk-avatar-lg { width: 64px; height: 64px; border-radius: 16px; }
.sk-thumb { width: 72px; height: 72px; border-radius: 10px; flex: none; }
.sk-photo { height: 120px; border-radius: 10px; }
.sk-stat { width: 44px; height: 26px; margin-bottom: 4px; border-radius: 6px; }
.provider-card.sk-card { min-height: 280px; }
.task-card.sk-card { min-height: 250px; }
.sk-bell { padding: 10px 12px; }
.sk-table { padding: 8px 0; }
.sk-trow { display: grid; grid-template-columns: repeat(auto-fit, minmax(60px, 1fr)); gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.sk-thead .sk { height: 10px; }
@media (prefers-reduced-motion: reduce) { .sk { animation: none; } }

/* Push notification opt-in (bell menu) */
.push-panel { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; background: var(--brand-soft); color: var(--brand-text); border-radius: 10px; padding: 10px 12px; margin: 0 4px 6px; font-size: 16px; }
.push-panel[hidden] { display: none; }
.push-panel p { flex: 1 1 200px; margin: 0; }
.push-panel .push-ic { width: 20px; height: 20px; margin-top: 2px; }
.push-panel .btn { margin-left: auto; }
