/* ApnaHonor - modern mobile-first UI (light + dark) */
:root {
  --p: #4f46e5; --p2: #7c3aed; --p-dark: #4338ca; --p-light: #eef2ff;
  --grad: linear-gradient(135deg, #4f46e5 0%, #7c3aed 60%, #a855f7 100%);
  --ok: #059669; --ok-light: #d1fae5;
  --warn: #d97706; --warn-light: #fef3c7;
  --bad: #dc2626; --bad-light: #fee2e2;
  --ink: #0f172a; --mut: #64748b; --line: #e2e8f0;
  --bg: #f1f5f9; --card: #ffffff; --card2: #f8fafc;
  --r: 16px;
  --shadow: 0 1px 2px rgba(15,23,42,.04), 0 4px 16px rgba(15,23,42,.06);
  --shadow-lg: 0 8px 30px rgba(79,70,229,.14);
}
[data-theme="dark"] {
  --p-light: #312e81;
  --ok-light: #064e3b; --warn-light: #452a03; --bad-light: #450a0a;
  --ink: #e2e8f0; --mut: #94a3b8; --line: #293548;
  --bg: #0b1220; --card: #131c2e; --card2: #0f1727;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.25);
  --shadow-lg: 0 8px 30px rgba(0,0,0,.4);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

/* ---------- app-like page transitions (Chrome/Edge: native cross-page animation) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .16s ease both; }
::view-transition-new(root) { animation: vt-in .22s cubic-bezier(.2,.8,.3,1) both; }
@keyframes vt-out { to { opacity: 0; transform: translateX(-14px) scale(.995); } }
@keyframes vt-in { from { opacity: 0; transform: translateX(18px) scale(.995); } }
/* fallback entrance for other browsers */
main.container { animation: page-in .28s cubic-bezier(.2,.8,.3,1) both; }
@keyframes page-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
/* soft fade while leaving (progress bar running) */
body.nav-leaving main.container { opacity: .55; transition: opacity .25s; pointer-events: none; }

/* ---------- top progress bar (buffer loader) ---------- */
#navProgress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 200;
  background: linear-gradient(90deg, #4f46e5, #a855f7, #4f46e5);
  background-size: 200% 100%; border-radius: 0 3px 3px 0;
  box-shadow: 0 0 8px rgba(124,58,237,.6); opacity: 0;
}
#navProgress.run { opacity: 1; animation: bar-grow 2.5s cubic-bezier(.1,.6,.2,1) forwards, bar-shine 1s linear infinite; }
@keyframes bar-grow { 0% { width: 0; } 60% { width: 72%; } 100% { width: 92%; } }
@keyframes bar-shine { to { background-position: -200% 0; } }

/* ---------- full-screen spinner (appears if a page takes long) ---------- */
#navLoader {
  position: fixed; inset: 0; z-index: 190; display: flex; align-items: center; justify-content: center;
  background: var(--bg);
  animation: fade .18s ease both;
}
#navLoader[hidden] { display: none; }  /* the hidden attribute must always win */
@keyframes fade { from { opacity: 0; } }
.spin-wrap { position: relative; width: 66px; height: 66px; }
.spin-logo {
  position: absolute; inset: 11px; background: transparent;
  display: flex; align-items: center; justify-content: center;
  animation: pulse-logo 1.1s ease-in-out infinite;
}
@keyframes pulse-logo { 50% { transform: scale(.88); } }
.spin-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 3px solid color-mix(in srgb, var(--p) 20%, transparent); border-top-color: var(--p);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- skeleton shimmer (for future async blocks) ---------- */
.skeleton {
  background: linear-gradient(90deg, var(--card2) 25%, var(--line) 50%, var(--card2) 75%);
  background-size: 200% 100%; animation: bar-shine 1.2s linear infinite; border-radius: 8px; color: transparent;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.55;
  padding-bottom: 84px;
  transition: background .25s, color .25s;
}
a { color: var(--p); text-decoration: none; }
img { max-width: 100%; }
i.fa-solid, i.fa-regular { line-height: 1; }

/* ---------- top bar (solid simple background) ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 12px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  padding: 10px 14px; padding-top: max(10px, env(safe-area-inset-top));
}
.brand { display: flex; align-items: center; gap: 8px; font-size: 19px; font-weight: 800; color: var(--ink); letter-spacing: -.5px; }
.brand .hl { color: var(--p); }
.logo {
  width: 32px; height: 32px; background: transparent;
  display: inline-flex; align-items: center; justify-content: center;
}
.topnav { display: none; gap: 4px; margin-left: 12px; flex: 1; }
.topnav a { display: flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 999px; color: var(--mut); font-weight: 600; font-size: 13.5px; transition: .15s; }
.topnav a.on, .topnav a:hover { background: var(--p-light); color: var(--p); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn {
  position: relative; width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--card); color: var(--mut); font-size: 15px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; transition: .15s;
}
.icon-btn:hover { color: var(--p); border-color: var(--p); }
.bell-badge {
  position: absolute; top: -5px; right: -5px; background: var(--bad); color: #fff;
  font-size: 10px; font-weight: 800; min-width: 17px; height: 17px; line-height: 17px;
  text-align: center; border-radius: 9px; padding: 0 4px; border: 2px solid var(--card);
}

/* ---------- layout ---------- */
.container { max-width: 1040px; margin: 0 auto; padding: 18px 14px; }
.grid { display: grid; gap: 12px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(2, 1fr); }
.page-title { position: relative; font-size: 21px; font-weight: 800; letter-spacing: -.3px; margin: 4px 0 14px; padding-left: 13px; display: flex; align-items: center; gap: 9px; }
.page-title::before { content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px; border-radius: 4px; background: var(--grad); }
.page-title i { color: var(--p); font-size: 18px; }
.sub { color: var(--mut); font-size: 13px; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.mt { margin-top: 14px; } .mb { margin-bottom: 12px; }
.hide-sm { display: none; }

/* ---------- cards ---------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 16px; box-shadow: var(--shadow);
  animation: rise .3s ease both;
}
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
/* staggered entrance — cards cascade in like a native app list */
.card:nth-child(2), .grid .card:nth-child(2) { animation-delay: .04s; }
.card:nth-child(3), .grid .card:nth-child(3) { animation-delay: .08s; }
.card:nth-child(4), .grid .card:nth-child(4) { animation-delay: .12s; }
.card:nth-child(5) { animation-delay: .16s; }
.card:nth-child(6) { animation-delay: .20s; }
.card:nth-child(n+7) { animation-delay: .24s; }
.card + .card { margin-top: 12px; }
.card h3 { font-size: 15.5px; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.card h3 i { color: var(--p); }
.card.clickable { transition: .18s; }
.card.clickable:hover { border-color: var(--p); transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* stat cards with icon chips */
.stat { display: flex; align-items: center; gap: 12px; position: relative; overflow: hidden; }
.stat::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad); opacity: .7; }
.stat .s-ic {
  width: 44px; height: 44px; border-radius: 13px; flex: none;
  display: inline-flex; align-items: center; justify-content: center; font-size: 17px;
  background: var(--p-light); color: var(--p);
}
.stat .s-ic.ok { background: var(--ok-light); color: var(--ok); }
.stat .s-ic.warn { background: var(--warn-light); color: var(--warn); }
.stat .s-ic.bad { background: var(--bad-light); color: var(--bad); }
.stat .num { font-size: 20px; font-weight: 800; letter-spacing: -.4px; }
.stat .lbl { color: var(--mut); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }

/* ---------- badges / chips ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.b-open { background: var(--p-light); color: var(--p); }
.b-accepted { background: #e0f2fe; color: #0369a1; }
[data-theme="dark"] .b-accepted { background: #0c3a54; color: #7dd3fc; }
.b-progress { background: var(--warn-light); color: var(--warn); }
.b-done { background: var(--ok-light); color: var(--ok); }
.b-cancel { background: var(--bad-light); color: var(--bad); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; background: var(--card2); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 12px; font-size: 12.5px; color: var(--mut); font-weight: 600; transition: .15s;
}
a.chip:hover { border-color: var(--p); color: var(--p); }
.chip.active { background: var(--p); color: #fff; border-color: var(--p); }
.chip-instant { background: var(--warn-light); color: var(--warn); border-color: transparent; }
.chip-fixed { background: var(--p-light); color: var(--p); border-color: transparent; }
.stars { color: #f59e0b; font-size: 12px; letter-spacing: 1px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; cursor: pointer; font-weight: 700; font-size: 14.5px;
  border-radius: 12px; padding: 12px 19px; transition: .18s; text-align: center;
}
.btn:active { transform: scale(.96); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 4px 14px rgba(124,58,237,.3); }
.btn-primary:hover { filter: brightness(1.08); box-shadow: 0 6px 20px rgba(124,58,237,.4); }
.btn-ok { background: linear-gradient(135deg, #059669, #10b981); color: #fff; box-shadow: 0 4px 14px rgba(16,185,129,.28); }
.btn-danger { background: linear-gradient(135deg, #dc2626, #ef4444); color: #fff; box-shadow: 0 4px 14px rgba(239,68,68,.25); }
.btn-outline { background: transparent; color: var(--p); border: 1.5px solid var(--p); }
.btn-outline:hover { background: var(--p-light); }
.btn-ghost { background: transparent; color: var(--mut); border: 1px solid var(--line); }
.btn-ghost:hover { color: var(--ink); border-color: var(--mut); }
.btn-sm { padding: 8px 13px; font-size: 13px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- forms ---------- */
label.f { display: block; font-weight: 700; font-size: 13px; margin: 13px 0 6px; color: var(--ink); }
input, select, textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px;
  font: inherit; background: var(--card2); color: var(--ink); transition: .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--p); background: var(--card); box-shadow: 0 0 0 4px color-mix(in srgb, var(--p) 15%, transparent); }
textarea { min-height: 96px; resize: vertical; }
.form-narrow { max-width: 460px; margin: 0 auto; }
.err { background: var(--bad-light); color: var(--bad); border-radius: 12px; padding: 11px 15px; font-size: 14px; margin-bottom: 12px; font-weight: 600; }
.msg-ok { background: var(--ok-light); color: var(--ok); border-radius: 12px; padding: 11px 15px; font-size: 14px; margin-bottom: 12px; font-weight: 600; }
.seg { display: flex; gap: 10px; }
.seg label {
  flex: 1; border: 1.5px solid var(--line); border-radius: 14px; padding: 13px 10px;
  text-align: center; cursor: pointer; font-weight: 700; background: var(--card2); transition: .15s; font-size: 14px;
}
.seg label i { display: block; font-size: 18px; margin-bottom: 5px; color: var(--mut); }
.seg input { display: none; }
.seg label:has(input:checked) { border-color: var(--p); background: var(--p-light); color: var(--p); box-shadow: 0 0 0 4px color-mix(in srgb, var(--p) 12%, transparent); }
.seg label:has(input:checked) i { color: var(--p); }

/* ---------- job cards ---------- */
.job-card { display: block; color: inherit; }
.job-card .t { font-weight: 800; font-size: 15.5px; display: flex; align-items: center; gap: 8px; }
.job-card .t .c-ic {
  width: 36px; height: 36px; border-radius: 11px; flex: none; font-size: 15px;
  background: var(--p-light); color: var(--p); display: inline-flex; align-items: center; justify-content: center;
}
.job-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; color: var(--mut); font-size: 13px; margin-top: 9px; }
.job-meta i { font-size: 11.5px; opacity: .8; margin-right: 3px; }
.price { font-weight: 800; color: var(--p); font-size: 16px; }
[data-theme="dark"] .price { color: #a5b4fc; }

/* ---------- bids / negotiation ---------- */
.bid { border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-top: 10px; background: var(--card); box-shadow: var(--shadow); }
.bid.winner { border-color: var(--ok); }
.avatar {
  width: 42px; height: 42px; border-radius: 50%; background: var(--grad); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800; flex: none; font-size: 16px;
}
.nego { margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 9px; font-size: 13px; }
.nego div { padding: 3px 0; color: var(--mut); display: flex; align-items: center; gap: 6px; }
.nego b { color: var(--ink); }
.nego i { font-size: 11px; width: 15px; text-align: center; color: var(--p); }

/* ---------- chat ---------- */
.chat-box { display: flex; flex-direction: column; gap: 8px; padding: 13px; min-height: 320px; max-height: 60vh; overflow-y: auto; background: var(--card2); border: 1px solid var(--line); border-radius: 14px; }
.bubble { max-width: 78%; padding: 10px 14px; border-radius: 16px; font-size: 14.5px; word-wrap: break-word; animation: rise .2s ease both; }
.bubble.me { align-self: flex-end; background: var(--grad); color: #fff; border-bottom-right-radius: 5px; }
.bubble.them { align-self: flex-start; background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.bubble .tm { display: block; font-size: 10.5px; opacity: .7; margin-top: 3px; }
.chat-input { display: flex; gap: 8px; margin-top: 12px; }
.chat-locked { text-align: center; padding: 32px 16px; color: var(--mut); }
.chat-locked .big { font-size: 34px; color: var(--p); margin-bottom: 10px; }

/* ---------- countdown / otp ---------- */
.count-wrap { background: var(--warn-light); border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent); border-radius: var(--r); padding: 16px; text-align: center; }
.count { font-size: 34px; font-weight: 800; color: var(--warn); font-variant-numeric: tabular-nums; letter-spacing: 1px; margin: 4px 0; }
.otp-box { letter-spacing: 10px; font-size: 28px; font-weight: 800; text-align: center; background: var(--p-light); color: var(--p); border-radius: 14px; padding: 14px; border: 1.5px dashed var(--p); }

/* ---------- timeline ---------- */
.timeline { list-style: none; }
.timeline li { position: relative; padding: 0 0 15px 24px; }
.timeline li::before { content: ''; position: absolute; left: 5px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 3px var(--p-light); }
.timeline li::after { content: ''; position: absolute; left: 9px; top: 19px; bottom: -1px; width: 1.5px; background: var(--line); }
.timeline li:last-child::after { display: none; }

/* ---------- tables (admin) ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r); border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 640px; }
th, td { text-align: left; padding: 11px 13px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { background: var(--card2); font-size: 11.5px; text-transform: uppercase; letter-spacing: .5px; color: var(--mut); }
tr:last-child td { border-bottom: none; }
tbody tr:hover td, tr:hover td { background: color-mix(in srgb, var(--p) 4%, transparent); }

/* ---------- bottom nav (solid background) ---------- */
.bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  display: flex; border-top: 1px solid var(--line);
  background: var(--card);
  padding-bottom: env(safe-area-inset-bottom);
}
.bottomnav a { flex: 1; text-align: center; padding: 9px 2px 7px; color: var(--mut); font-size: 10.5px; font-weight: 700; transition: .15s; -webkit-tap-highlight-color: transparent; }
.bottomnav a i {
  display: block; width: 46px; height: 26px; line-height: 26px; margin: 0 auto 3px;
  font-size: 17px; border-radius: 999px;
  transition: transform .18s cubic-bezier(.2,.8,.3,1), background .2s, color .2s;
}
.bottomnav a:hover, .bottomnav a:active { color: var(--p); }
.bottomnav a:active i { transform: translateY(-3px) scale(1.15); }
.bottomnav a.on { color: var(--p); }
.bottomnav a.on i { background: var(--p-light); color: var(--p); animation: nav-pop .25s cubic-bezier(.2,.8,.3,1); }
@keyframes nav-pop { 0% { transform: scale(.8); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }
a, button { -webkit-tap-highlight-color: transparent; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 92px; transform: translateX(-50%);
  background: var(--ink); color: var(--bg); padding: 12px 20px; border-radius: 999px;
  font-size: 14px; font-weight: 600; z-index: 100; max-width: 90vw; box-shadow: 0 10px 30px rgba(0,0,0,.3);
}
.toast.show { animation: pop .25s ease; }
@keyframes pop { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ---------- landing page v2 ---------- */
.hero2 {
  position: relative; overflow: hidden; border-radius: 24px; margin-top: 4px;
  background:
    radial-gradient(600px 300px at 85% -10%, rgba(255,255,255,.16), transparent 60%),
    radial-gradient(500px 260px at -10% 110%, rgba(255,255,255,.10), transparent 60%),
    linear-gradient(135deg, #4338ca 0%, #6d28d9 55%, #9333ea 100%);
  color: #fff; text-align: center; padding: 46px 20px 30px; box-shadow: var(--shadow-lg);
}
.hero2-inner { position: relative; z-index: 2; max-width: 560px; margin: 0 auto; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25);
  font-size: 12.5px; font-weight: 700; letter-spacing: .3px;
}
.hero2 h1 { font-size: 34px; line-height: 1.12; letter-spacing: -1px; margin: 16px 0 12px; }
.grad-word {
  background: linear-gradient(90deg, #fde68a, #f9a8d4, #a5b4fc);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero2 p { opacity: .92; margin: 0 auto 20px; max-width: 460px; font-size: 15px; }
.btn-hero { background: #fff; color: #4f46e5; box-shadow: 0 8px 24px rgba(0,0,0,.18); border-radius: 14px; }
.btn-hero.alt { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.35); }
.btn-hero:hover { transform: translateY(-2px); }
.hero-stats {
  display: flex; justify-content: center; gap: 6px; margin-top: 26px;
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.18);
  border-radius: 16px; padding: 12px 6px;
}
.hero-stats div { flex: 1; min-width: 0; }
.hero-stats b { display: block; font-size: 17px; letter-spacing: -.3px; }
.hero-stats span { font-size: 10.5px; opacity: .85; text-transform: uppercase; letter-spacing: .5px; font-weight: 700; }
.hero-float {
  position: absolute; z-index: 1; color: rgba(255,255,255,.16); font-size: 34px;
  animation: floaty 5s ease-in-out infinite;
}
.hero-float.f1 { top: 16%; left: 6%; }
.hero-float.f2 { top: 62%; right: 7%; font-size: 28px; animation-delay: 1.2s; }
.hero-float.f3 { bottom: 12%; left: 12%; font-size: 26px; animation-delay: 2.4s; }
.hero-float.f4 { top: 12%; right: 14%; font-size: 22px; animation-delay: 3.2s; }
@keyframes floaty { 50% { transform: translateY(-14px) rotate(6deg); } }

/* how it works */
.steps { display: grid; gap: 12px; grid-template-columns: 1fr; }
.step { position: relative; text-align: center; padding: 24px 16px 18px; }
.step-num {
  position: absolute; top: 12px; left: 14px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--grad); color: #fff; font-weight: 800; font-size: 13px;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(124,58,237,.35);
}
.step-ic {
  width: 54px; height: 54px; margin: 0 auto 10px; border-radius: 18px; font-size: 22px;
  background: var(--p-light); color: var(--p); display: flex; align-items: center; justify-content: center;
}
.step b { display: block; margin-bottom: 4px; font-size: 15.5px; }

/* top providers horizontal scroll */
.scroll-x { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 10px; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; }
.scroll-x::-webkit-scrollbar { display: none; }
.pcard { flex: 0 0 150px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 3px; scroll-snap-align: start; margin: 0 !important; }

/* why us */
.why { text-align: left; }
.why b { display: block; margin: 10px 0 3px; }
.why-ic {
  width: 44px; height: 44px; border-radius: 14px; color: #fff; font-size: 17px;
  display: inline-flex; align-items: center; justify-content: center;
}
.why-ic.w1 { background: linear-gradient(135deg,#f59e0b,#f97316); }
.why-ic.w2 { background: linear-gradient(135deg,#10b981,#059669); }
.why-ic.w3 { background: linear-gradient(135deg,#6366f1,#8b5cf6); }
.why-ic.w4 { background: linear-gradient(135deg,#ec4899,#db2777); }
.why-ic.w5 { background: linear-gradient(135deg,#06b6d4,#0284c7); }
.why-ic.w6 { background: linear-gradient(135deg,#ef4444,#dc2626); }

/* ---------- auth pages (login / register) ---------- */
.auth-wrap { max-width: 430px; margin: 0 auto; padding-top: 10px; }
.auth-hero { text-align: center; margin-bottom: 18px; }
.auth-logo {
  width: 64px; height: 64px; margin: 6px auto 12px; border-radius: 20px; font-size: 26px; color: #fff;
  background: var(--grad); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(124,58,237,.4); animation: nav-pop .4s cubic-bezier(.2,.8,.3,1);
}
.auth-hero h1 { font-size: 24px; letter-spacing: -.5px; }
.auth-card { border-radius: 20px; padding: 20px 18px; }
.auth-card::before { display: none; }
.iwrap { position: relative; }
.iwrap > i {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--mut); font-size: 14px; pointer-events: none; transition: color .15s;
}
.iwrap input, .iwrap select { padding-left: 40px; }
.iwrap:focus-within > i { color: var(--p); }
.pw-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border: none; background: transparent; color: var(--mut);
  cursor: pointer; border-radius: 10px; font-size: 14px;
}
.pw-toggle:hover { color: var(--p); background: var(--p-light); }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0 14px; color: var(--mut); font-size: 12px; font-weight: 700; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.auth-foot { text-align: center; margin-top: 16px; }
.auth-trust { display: flex; justify-content: center; gap: 16px; margin-top: 18px; color: var(--mut); font-size: 12px; font-weight: 600; }
.auth-trust span i { color: var(--ok); margin-right: 5px; }
.role-seg label { padding: 15px 10px; border-radius: 16px; }
.role-seg label i { font-size: 21px; }
.role-seg small { display: block; font-weight: 600; color: var(--mut); font-size: 11px; margin-top: 2px; }

/* tick lists (for consumers / providers) */
.ticks { list-style: none; margin-top: 10px; }
.ticks li { position: relative; padding: 5px 0 5px 28px; font-size: 14px; color: var(--mut); }
.ticks li::before {
  content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
  position: absolute; left: 0; top: 6px; width: 19px; height: 19px; border-radius: 50%;
  background: var(--ok-light); color: var(--ok); font-size: 10px;
  display: flex; align-items: center; justify-content: center;
}

/* FAQ accordion */
.faq details { padding: 0; overflow: hidden; }
.faq summary {
  cursor: pointer; list-style: none; font-weight: 700; font-size: 14.5px;
  padding: 15px 44px 15px 16px; position: relative; -webkit-tap-highlight-color: transparent;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '\2b'; position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  width: 24px; height: 24px; border-radius: 8px; background: var(--p-light); color: var(--p);
  display: flex; align-items: center; justify-content: center; font-weight: 800; transition: .2s;
}
.faq details[open] summary::after { content: '\2212'; transform: translateY(-50%) rotate(180deg); }
.faq details p { padding: 0 16px 15px; animation: rise .25s ease both; }
.faq details + details { margin-top: 10px; }

/* bottom CTA + footer */
.cta-band {
  margin-top: 26px; border-radius: 22px; text-align: center; color: #fff; padding: 34px 20px;
  background: linear-gradient(135deg, #0f172a, #312e81 70%, #6d28d9);
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { font-size: 24px; letter-spacing: -.5px; }
.cta-band p { opacity: .85; margin: 8px 0 18px; }
.site-footer { text-align: center; padding: 30px 10px 6px; }
.site-footer .logo { display: inline-flex; margin-right: 6px; vertical-align: middle; }
.site-footer p { margin-top: 6px; }

@media (min-width: 768px) {
  .hero2 { padding: 70px 30px 40px; }
  .hero2 h1 { font-size: 52px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .hero-stats { max-width: 520px; margin: 30px auto 0; }
  .hero-stats b { font-size: 21px; }
}

/* ---------- landing hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--grad); color: #fff; border-radius: 22px; padding: 40px 24px; text-align: center; box-shadow: var(--shadow-lg); }
.hero::before, .hero::after {
  content: ''; position: absolute; border-radius: 50%; background: rgba(255,255,255,.09);
}
.hero::before { width: 260px; height: 260px; top: -110px; right: -80px; }
.hero::after { width: 180px; height: 180px; bottom: -90px; left: -60px; }
.hero > * { position: relative; z-index: 1; }
.hero h1 { font-size: 28px; letter-spacing: -.8px; }
.hero p { opacity: .92; margin: 10px auto 20px; max-width: 480px; }
.hero .btn { background: #fff; color: var(--p); box-shadow: 0 6px 20px rgba(0,0,0,.15); }
.hero .btn.alt { background: rgba(255,255,255,.16); color: #fff; border: 1px solid rgba(255,255,255,.35); }
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.cat-grid .card { text-align: center; padding: 16px 6px; font-size: 12.5px; font-weight: 700; transition: .18s; }
.cat-grid .card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--p); }
.cat-grid .cat-ic {
  width: 46px; height: 46px; margin: 0 auto 8px; border-radius: 15px; font-size: 18px; color: #fff;
  background: linear-gradient(135deg, #6366f1, #8b5cf6); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 5px 14px rgba(99,102,241,.35);
}
/* colourful tiles: each category gets its own hue */
.cat-grid .card:nth-child(6n+2) .cat-ic { background: linear-gradient(135deg, #f59e0b, #f97316); box-shadow: 0 5px 14px rgba(249,115,22,.35); }
.cat-grid .card:nth-child(6n+3) .cat-ic { background: linear-gradient(135deg, #10b981, #059669); box-shadow: 0 5px 14px rgba(16,185,129,.35); }
.cat-grid .card:nth-child(6n+4) .cat-ic { background: linear-gradient(135deg, #06b6d4, #0284c7); box-shadow: 0 5px 14px rgba(6,182,212,.35); }
.cat-grid .card:nth-child(6n+5) .cat-ic { background: linear-gradient(135deg, #ec4899, #db2777); box-shadow: 0 5px 14px rgba(236,72,153,.35); }
.cat-grid .card:nth-child(6n)   .cat-ic { background: linear-gradient(135deg, #ef4444, #dc2626); box-shadow: 0 5px 14px rgba(239,68,68,.35); }

/* ---------- desktop ---------- */
@media (min-width: 768px) {
  body { padding-bottom: 24px; font-size: 15.5px; }
  .topnav { display: flex; }
  .bottomnav { display: none; }
  .toast { bottom: 34px; }
  .hide-sm { display: inline; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .cat-grid { grid-template-columns: repeat(6, 1fr); }
  .hero { padding: 64px 30px; }
  .hero h1 { font-size: 40px; }
  .container { padding: 24px 18px; }
}