/* ==========================================================================
   Tapkarigar / ServiceHub — "Rangat" design system (layered on Bootstrap 5)
   Neel (ink) · Rani (action) · Genda (highlight) · Peacock (positive) · Kesari
   One bold moment: the toran edge under the hero. Everything else stays quiet.
   ========================================================================== */
:root {
  --neel: #22145c;
  --neel-2: #3a2d7a;
  --ink: #1d1838;
  --ink-2: #4a4566;
  --muted: #6e6889;
  --paper: #faf7ff;
  --surface: #ffffff;
  --line: #ebe5f6;
  --line-2: #ddd4ef;

  --rani: #d81e6c;
  --rani-dark: #b3145a;
  --rani-soft: #fde7f0;
  --genda: #ffb21f;
  --genda-soft: #fff4d9;
  --peacock: #00897b;
  --peacock-soft: #e0f4f1;
  --kesari: #f2661c;
  --kesari-soft: #fdeadf;
  --sky: #2f6fe4;
  --sky-soft: #e5eefd;
  --danger: #c62f2f;
  --danger-soft: #fdeaea;

  --r-xl: 24px;
  --r-lg: 18px;
  --r: 14px;
  --r-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(34, 20, 92, .06);
  --shadow: 0 2px 4px rgba(34, 20, 92, .04), 0 10px 28px rgba(34, 20, 92, .08);
  --shadow-lift: 0 14px 40px rgba(34, 20, 92, .16);

  --font-display: "Baloo 2", "Mukta", system-ui, sans-serif;
  --font-body: "Mukta", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;

  --header-h: 64px;
  --bottom-nav-h: 64px;

  --bs-body-font-family: var(--font-body);
  --bs-body-color: var(--ink);
  --bs-body-bg: var(--paper);
  --bs-border-color: var(--line);
  --bs-link-color: var(--neel);
  --bs-link-color-rgb: 34, 20, 92;
  --bs-link-hover-color: var(--rani);
  --bs-link-hover-color-rgb: 216, 30, 108;
  --bs-primary: var(--rani);
  --bs-primary-rgb: 216, 30, 108;
  --bs-border-radius: var(--r-sm);
}

/* ---------- Base ---------- */
html { -webkit-tap-highlight-color: transparent; }
body { font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.55; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6, .display-6 { font-family: var(--font-display); color: var(--neel); font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; }
h1, .h1 { font-weight: 800; }
a { color: var(--neel); text-underline-offset: 3px; }
a:hover { color: var(--rani); }
.text-muted, .text-secondary { color: var(--muted) !important; }
.measure { max-width: 62ch; }
.lead { color: var(--ink-2); }
::selection { background: var(--genda); color: var(--neel); }

:focus-visible { outline: 3px solid var(--genda); outline-offset: 2px; border-radius: 6px; }
.btn:focus-visible, .form-control:focus, .form-select:focus, .form-check-input:focus, .accordion-button:focus {
  box-shadow: 0 0 0 .25rem rgba(255, 178, 31, .45); border-color: var(--genda);
}
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 2000; background: var(--neel); color: #fff; padding: .5rem 1rem; border-radius: var(--r-sm); }
.skip-link:focus { left: 8px; color: #fff; }

/* ---------- Buttons ---------- */
.btn { background-image: none; font-weight: 700; border-radius: 999px; padding: .62rem 1.25rem; letter-spacing: .005em; transition: background-color .15s, border-color .15s, color .15s, transform .1s; }
.btn:active { transform: scale(.98); }
.btn-sm { padding: .4rem .9rem; font-size: .92rem; }
.btn-lg { padding: .85rem 1.6rem; }
.btn-primary {
  --bs-btn-bg: var(--rani); --bs-btn-border-color: var(--rani); --bs-btn-color: #fff;
  --bs-btn-hover-bg: var(--rani-dark); --bs-btn-hover-border-color: var(--rani-dark); --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--rani-dark); --bs-btn-active-border-color: var(--rani-dark);
  --bs-btn-disabled-bg: #e58bb0; --bs-btn-disabled-border-color: #e58bb0;
}
.btn-outline-primary {
  --bs-btn-color: var(--neel); --bs-btn-border-color: var(--line-2); --bs-btn-bg: var(--surface);
  --bs-btn-hover-bg: var(--neel); --bs-btn-hover-border-color: var(--neel); --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--neel); --bs-btn-active-border-color: var(--neel); --bs-btn-active-color: #fff;
}
.btn-accent { background: var(--genda); border-color: var(--genda); color: var(--neel); }
.btn-accent:hover { background: #f4a300; border-color: #f4a300; color: var(--neel); }
.btn-link { color: var(--neel); }
.btn[aria-busy="true"] { pointer-events: none; opacity: .75; }
.btn-icon { width: 42px; height: 42px; padding: 0; display: inline-grid; place-items: center; border-radius: 50%; font-size: 1.15rem; }

/* ---------- Forms ---------- */
.form-control, .form-select { border-radius: var(--r-sm); padding: .7rem .9rem; border: 1.5px solid var(--line-2); background-color: var(--surface); font-size: 1rem; }
.form-control::placeholder { color: #9b95b3; }
.form-label { font-weight: 600; font-size: .95rem; margin-bottom: .35rem; color: var(--neel); }
.form-text { color: var(--muted); }
.invalid-feedback { font-weight: 500; }
.input-group > .btn { border-radius: 0 var(--r-sm) var(--r-sm) 0; border-width: 1.5px; }
.form-check-input:checked { background-color: var(--rani); border-color: var(--rani); }
.alert { border-radius: var(--r); border: 0; }
.alert-warning { background: var(--genda-soft); color: #6b4800; }

/* ---------- Brand ---------- */
.brand { font-family: var(--font-display); font-weight: 800; font-size: 1.45rem; letter-spacing: -0.02em; color: var(--neel); text-decoration: none; display: inline-flex; align-items: center; gap: .55rem; line-height: 1; }
.brand:hover { color: var(--neel); }
.brand-mark { width: 36px; height: 36px; border-radius: 11px; background: var(--rani); color: #fff; display: inline-grid; place-items: center; font-size: 1.05rem; position: relative; flex-shrink: 0; box-shadow: inset 0 -4px 0 rgba(0,0,0,.12); }
.brand-mark::after { content: ""; position: absolute; right: -3px; top: -3px; width: 12px; height: 12px; border-radius: 50%; background: var(--genda); border: 2px solid var(--surface); }

/* ---------- Header ---------- */
.site-header { background: var(--surface); position: sticky; top: 0; z-index: 1030; box-shadow: 0 1px 0 var(--line); }
.header-row { display: flex; align-items: center; gap: .75rem; min-height: var(--header-h); }
.city-pill { position: relative; display: flex; align-items: center; }
.city-pill .bi-geo-alt-fill { position: absolute; left: .7rem; color: var(--rani); pointer-events: none; z-index: 1; }
.city-select { min-width: 8.5rem; max-width: 11rem; font-weight: 700; color: var(--neel); background-color: var(--paper); border: 1.5px solid var(--line); border-radius: 999px; padding: .42rem 2rem .42rem 2rem; font-size: .95rem; }
.header-search { position: relative; }
.header-search .bi-search { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.header-search .form-control { background: var(--paper); border: 1.5px solid var(--line); border-radius: 999px; padding-left: 2.6rem; }
.header-search .form-control:focus { background: var(--surface); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--genda); color: var(--neel); display: inline-grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; border: 0; padding: 0; }
.avatar::after { display: none; }
.dropdown-menu { border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lift); padding: .4rem; }
.dropdown-item { border-radius: var(--r-sm); padding: .5rem .75rem; font-weight: 600; }
.dropdown-item:active { background: var(--rani); }
.dropdown-header { font-family: var(--font-display); color: var(--neel); font-weight: 700; font-size: 1rem; }

/* Mobile header: brand + city + avatar, then full-width search */
.header-search-mobile { padding-bottom: .7rem; }
@media (max-width: 767.98px) {
  :root { --header-h: 58px; }
  .brand { font-size: 1.25rem; }
  .brand-mark { width: 32px; height: 32px; }
  .city-select { min-width: 0; max-width: 8.5rem; font-size: .88rem; padding-top: .35rem; padding-bottom: .35rem; }
}

/* ---------- Hero (the one loud moment) ---------- */
.hero { background: var(--neel); color: #e9e4fb; position: relative; padding: 3.5rem 0 3.25rem; overflow: hidden; }
.hero::before { /* soft jaali texture */
  content: ""; position: absolute; inset: 0; opacity: .09; pointer-events: none;
  background-image: radial-gradient(circle at 50% 50%, #fff 1.5px, transparent 2px), radial-gradient(circle at 50% 50%, #fff 1.5px, transparent 2px);
  background-size: 28px 28px; background-position: 0 0, 14px 14px;
}
.hero .container { position: relative; z-index: 1; }
.hero-greeting { display: inline-flex; align-items: center; gap: .5rem; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.14); color: #fff; border-radius: 999px; padding: .3rem .85rem .3rem .4rem; font-weight: 600; font-size: .95rem; margin-bottom: 1.1rem; }
.hero-greeting .dot { width: 26px; height: 26px; border-radius: 50%; background: var(--genda); color: var(--neel); display: inline-grid; place-items: center; font-size: .85rem; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 800; line-height: 1.02; max-width: 14ch; margin-bottom: 1rem; letter-spacing: -0.02em; }
.hero .lede { font-size: 1.15rem; color: #cfc8ef; max-width: 46ch; margin-bottom: 1.6rem; }
.hero-search { background: var(--surface); border-radius: 999px; box-shadow: 0 18px 40px rgba(0,0,0,.25); padding: .4rem; display: flex; align-items: center; gap: .25rem; max-width: 620px; }
.hero-search .bi-search { color: var(--muted); font-size: 1.15rem; margin-left: .9rem; }
.hero-search .form-control { border: 0; font-size: 1.08rem; padding: .75rem .6rem; background: transparent; }
.hero-search .form-control:focus { box-shadow: none; }
.hero-search:focus-within { outline: 3px solid var(--genda); outline-offset: 3px; }
.hero-search .btn { padding: .72rem 1.5rem; }
.quick-chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1rem; }
.quick-chips a { padding: .38rem .9rem; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); color: #fff; text-decoration: none; font-size: .92rem; font-weight: 600; }
.quick-chips a:hover { background: var(--genda); border-color: var(--genda); color: var(--neel); }
.trust-row { display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; margin-top: 2rem; color: #cfc8ef; font-size: .95rem; }
.trust-row span { display: inline-flex; align-items: center; gap: .45rem; }
.trust-row .bi { color: var(--genda); font-size: 1.1rem; }
@media (max-width: 767.98px) {
  .hero { padding: 1.6rem 0 2rem; }
  .hero .lede { font-size: 1rem; margin-bottom: 1.2rem; }
  .hero-search .btn { padding: .65rem 1rem; }
  .quick-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -12px; padding-right: 12px; }
  .quick-chips::-webkit-scrollbar { display: none; }
  .quick-chips a { white-space: nowrap; }
  .trust-row { gap: .5rem 1rem; font-size: .88rem; margin-top: 1.25rem; }
}

.hero-card { background: var(--surface); color: var(--ink); border-radius: var(--r-xl); padding: 1.4rem; box-shadow: 0 24px 60px rgba(0,0,0,.3); transform: rotate(1.5deg); }
.hero-card h2 { font-size: 1.2rem; margin-bottom: .6rem; }
.hero-card-row { display: flex; align-items: center; gap: .8rem; padding: .8rem 0; border-bottom: 1px dashed var(--line-2); text-decoration: none; color: var(--ink); }
.hero-card-row:hover { color: var(--rani); }
.hero-card-row strong { display: block; color: var(--neel); line-height: 1.2; }
.hero-card-row span span, .hero-card-row .flex-grow-1 > span { font-size: .88rem; color: var(--muted); }
.hero-card .cat-icon { width: 44px; height: 44px; border-radius: 13px; background: var(--genda-soft); color: #b27100; display: grid; place-items: center; font-size: 1.2rem; flex-shrink: 0; }
.hero-card-row:nth-of-type(2) .cat-icon { background: var(--rani-soft); color: var(--rani); }
.hero-card-row:nth-of-type(3) .cat-icon { background: var(--peacock-soft); color: var(--peacock); }
.hero-card-row:nth-of-type(4) .cat-icon { background: var(--sky-soft); color: var(--sky); }

/* Toran: a string of festive flags hanging off the hero's bottom edge */
.toran { height: 20px; margin-bottom: -20px; position: relative; z-index: 2;
  background: repeating-linear-gradient(90deg, var(--rani) 0 40px, var(--genda) 40px 80px, var(--peacock) 80px 120px, var(--kesari) 120px 160px);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 0 0 / 40px 100%;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 0 0 / 40px 100%; }
@media (max-width: 767.98px) { .toran { height: 14px; margin-bottom: -14px; background-size: auto; -webkit-mask-size: 28px 100%; mask-size: 28px 100%;
  background: repeating-linear-gradient(90deg, var(--rani) 0 28px, var(--genda) 28px 56px, var(--peacock) 56px 84px, var(--kesari) 84px 112px); } }

/* ---------- Sections ---------- */
.section { padding: 2.75rem 0; }
.section-tight { padding-top: 1.75rem; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.section-head h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); margin: 0; }
.section-head p { margin: .2rem 0 0; color: var(--muted); }
.see-all { font-weight: 700; text-decoration: none; white-space: nowrap; color: var(--rani); }
.see-all:hover { color: var(--rani-dark); text-decoration: underline; }
@media (max-width: 767.98px) { .section { padding: 1.75rem 0; } }

/* ---------- Category grid: app-style icon tiles ---------- */
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .85rem; }
.category-tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.1rem 1rem; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: .7rem; transition: border-color .15s, box-shadow .15s, transform .15s; }
.category-tile:hover { border-color: var(--line-2); box-shadow: var(--shadow); color: var(--ink); transform: translateY(-2px); }
.category-tile .icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 1.5rem; background: var(--rani-soft); color: var(--rani); }
.category-tile .name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--neel); line-height: 1.2; }
.category-tile .count { font-size: .85rem; color: var(--muted); margin-top: -.45rem; }
.category-grid > :nth-child(6n+2) .icon { background: var(--genda-soft); color: #b27100; }
.category-grid > :nth-child(6n+3) .icon { background: var(--peacock-soft); color: var(--peacock); }
.category-grid > :nth-child(6n+4) .icon { background: var(--kesari-soft); color: var(--kesari); }
.category-grid > :nth-child(6n+5) .icon { background: var(--sky-soft); color: var(--sky); }
.category-grid > :nth-child(6n+6) .icon { background: #ece8fb; color: var(--neel-2); }
@media (max-width: 767.98px) {
  .category-grid { grid-template-columns: repeat(4, 1fr); gap: .9rem .5rem; }
  .category-tile { background: transparent; border: 0; padding: 0; align-items: center; text-align: center; gap: .4rem; }
  .category-tile:hover { box-shadow: none; transform: none; }
  .category-tile .icon { width: 62px; height: 62px; border-radius: 20px; font-size: 1.6rem; }
  .category-tile .name { font-family: var(--font-body); font-size: .82rem; font-weight: 600; color: var(--ink); }
  .category-tile .count { display: none; }
}

/* ---------- Horizontal rails (swipe on mobile, grid on desktop) ---------- */
.rail { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
@media (max-width: 767.98px) {
  .rail { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: .8rem; margin: 0 -12px; padding: .25rem 12px .75rem; scrollbar-width: none; }
  .rail::-webkit-scrollbar { display: none; }
  .rail > * { flex: 0 0 78%; scroll-snap-align: start; }
  .rail.rail-offers > * { flex-basis: 86%; }
}

/* ---------- Service cards ---------- */
.service-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.1rem; height: 100%; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); transition: box-shadow .15s, border-color .15s; position: relative; }
.service-card:hover { border-color: var(--line-2); box-shadow: var(--shadow); color: var(--ink); }
.service-card .card-top { display: flex; align-items: center; gap: .6rem; margin-bottom: .75rem; }
.service-card .cat-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--genda-soft); color: #b27100; display: grid; place-items: center; font-size: 1.15rem; flex-shrink: 0; }
.service-card .cat { font-size: .85rem; color: var(--muted); font-weight: 600; }
.service-card h3 { font-size: 1.15rem; margin: 0 0 .35rem; }
.service-card p { font-size: .95rem; color: var(--ink-2); margin-bottom: 1rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.service-card .meta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding-top: .8rem; border-top: 1px dashed var(--line-2); }
.service-card .from { font-size: .82rem; color: var(--muted); display: block; line-height: 1; }
.price { font-family: var(--font-display); font-weight: 800; color: var(--neel); font-size: 1.15rem; }
.rating { font-weight: 700; display: inline-flex; align-items: center; gap: .25rem; }
.rating .bi { color: var(--genda); }
.rating-pill { background: var(--peacock); color: #fff; border-radius: 8px; padding: .12rem .45rem; font-size: .85rem; font-weight: 700; display: inline-flex; align-items: center; gap: .2rem; }
.rating-pill .bi { color: #fff; font-size: .75rem; }
.rating-count { color: var(--muted); font-size: .85rem; font-weight: 500; }
.duration { color: var(--muted); font-size: .9rem; display: inline-flex; align-items: center; gap: .3rem; }
.service-card .go { width: 34px; height: 34px; border-radius: 50%; background: var(--rani-soft); color: var(--rani); display: grid; place-items: center; transition: background-color .15s, color .15s; }
.service-card:hover .go { background: var(--rani); color: #fff; }

/* ---------- Offers ---------- */
.offer { border-radius: var(--r-lg); padding: 1.35rem; height: 100%; color: #fff; background: var(--rani); position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 170px; }
.offer::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 150px; height: 150px; border-radius: 50%; border: 22px solid rgba(255,255,255,.12); }
.rail-offers > :nth-child(3n+2) .offer { background: var(--peacock); }
.rail-offers > :nth-child(3n+3) .offer { background: var(--kesari); }
.offer h3 { font-size: 1.3rem; color: #fff; margin-bottom: .35rem; position: relative; z-index: 1; }
.offer p { color: rgba(255,255,255,.88); margin-bottom: 1rem; position: relative; z-index: 1; }
.coupon-code { margin-top: auto; align-self: flex-start; font-weight: 800; letter-spacing: .06em; background: #fff; color: var(--neel); border-radius: 8px; padding: .3rem .7rem; font-size: .92rem; border: 2px dashed rgba(34,20,92,.25); position: relative; z-index: 1; }

/* ---------- How it works: a real sequence, so numbered ---------- */
.steps { counter-reset: step; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.3rem; position: relative; }
.step::before { counter-increment: step; content: counter(step); display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--neel); color: var(--genda); font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; margin-bottom: .8rem; }
.step h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.step p { color: var(--ink-2); margin: 0; font-size: .97rem; }
@media (max-width: 767.98px) {
  .steps { grid-template-columns: 1fr; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: .5rem 1rem; }
  .step { border: 0; border-radius: 0; padding: .9rem 0 .9rem 3.4rem; border-bottom: 1px dashed var(--line-2); }
  .step:last-child { border-bottom: 0; }
  .step::before { position: absolute; left: 0; top: .9rem; width: 38px; height: 38px; margin: 0; }
}

/* ---------- Partner band ---------- */
.partner-band { background: var(--genda); border-radius: var(--r-xl); padding: 2rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; color: var(--neel); }
.partner-band h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin: 0 0 .3rem; }
.partner-band p { margin: 0; color: #4b3a10; max-width: 52ch; }
@media (max-width: 575.98px) { .partner-band { padding: 1.4rem; border-radius: var(--r-lg); } .partner-band .btn { width: 100%; } }
.partner-band .btn-primary { --bs-btn-bg: var(--neel); --bs-btn-border-color: var(--neel); --bs-btn-hover-bg: #160b44; --bs-btn-hover-border-color: #160b44; }

/* ---------- Quotes & FAQ ---------- */
.quote { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.3rem; height: 100%; margin: 0; display: flex; flex-direction: column; }
.quote .rating { gap: .1rem; }
.quote blockquote { font-size: 1.05rem; margin: .6rem 0 1rem; color: var(--ink); }
.quote figcaption { font-size: .9rem; color: var(--muted); margin-top: auto; display: flex; align-items: center; gap: .6rem; }
.quote .initial { width: 34px; height: 34px; border-radius: 50%; background: var(--peacock-soft); color: var(--peacock); display: grid; place-items: center; font-weight: 800; font-family: var(--font-display); flex-shrink: 0; }
.quote figcaption strong { color: var(--neel); display: block; line-height: 1.2; }

.faq { --bs-accordion-border-color: var(--line); --bs-accordion-border-radius: var(--r-lg); --bs-accordion-inner-border-radius: var(--r-lg); --bs-accordion-btn-focus-box-shadow: 0 0 0 .25rem rgba(255,178,31,.45); }
.faq .accordion-item { border-radius: var(--r-lg) !important; margin-bottom: .6rem; border: 1px solid var(--line) !important; overflow: hidden; }
.faq .accordion-button { font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; color: var(--neel); padding: 1rem 1.2rem; }
.faq .accordion-button:not(.collapsed) { background: var(--genda-soft); color: var(--neel); box-shadow: none; }
.faq .accordion-body { color: var(--ink-2); }

/* ---------- Footer ---------- */
.site-footer { background: var(--neel); color: #c9c2ea; padding: 3.5rem 0 2rem; margin-top: 3rem; position: relative; }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: repeating-linear-gradient(90deg, var(--rani) 0 66px, var(--genda) 66px 132px, var(--peacock) 132px 198px); }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--genda); }
.site-footer h2 { font-size: 1.1rem; color: #fff; margin-bottom: .8rem; }
.site-footer li { margin-bottom: .4rem; }
.site-footer .brand { color: #fff; }
.site-footer .brand-mark::after { border-color: var(--neel); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2rem; padding-top: 1.25rem; font-size: .9rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; }
@media (max-width: 991.98px) { .site-footer { padding-bottom: calc(var(--bottom-nav-h) + 2rem + env(safe-area-inset-bottom)); } }

/* ---------- Mobile bottom nav (app tab bar) ---------- */
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 1030; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); display: flex; padding: .3rem .25rem calc(.3rem + env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px rgba(34,20,92,.06); }
.bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .1rem; padding: .25rem 0; font-size: .74rem; font-weight: 700; color: var(--muted); text-decoration: none; }
.bottom-nav a .bi { font-size: 1.25rem; width: 54px; height: 30px; border-radius: 999px; display: grid; place-items: center; transition: background-color .15s, color .15s; }
.bottom-nav a[aria-current="page"] { color: var(--rani); }
.bottom-nav a[aria-current="page"] .bi { background: var(--rani-soft); color: var(--rani); }
@media (min-width: 992px) { .bottom-nav { display: none; } }
@media (max-width: 991.98px) { body.has-bottom-nav { padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom)); } body.has-bottom-nav .site-footer { padding-bottom: 2rem; } }

/* ---------- Generic surfaces ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.panel-pad { padding: 1.3rem; }
@media (max-width: 575.98px) { .panel-pad { padding: 1.05rem; } }

.page-head { padding: 1.5rem 0 1.25rem; }
.page-head h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); margin-bottom: .3rem; }
.breadcrumb { font-size: .9rem; margin-bottom: .6rem; --bs-breadcrumb-divider-color: var(--muted); }
.breadcrumb a { text-decoration: none; color: var(--muted); }
.breadcrumb a:hover { color: var(--rani); }
.breadcrumb-item.active { color: var(--neel); font-weight: 600; }

/* ---------- Status badges ---------- */
.status { display: inline-flex; align-items: center; gap: .35rem; font-size: .82rem; font-weight: 700; padding: .26rem .65rem; border-radius: 999px; background: #efedf6; color: var(--ink-2); white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-positive { background: var(--peacock-soft); color: var(--peacock); }
.status-attention { background: var(--genda-soft); color: #8a5a00; }
.status-negative { background: var(--danger-soft); color: var(--danger); }

/* ---------- Empty states ---------- */
.empty { text-align: center; padding: 3rem 1.25rem; }
.empty > .bi { font-size: 2rem; width: 72px; height: 72px; border-radius: 22px; display: inline-grid; place-items: center; background: var(--rani-soft); color: var(--rani); }
.empty h2 { font-size: 1.3rem; margin-top: 1rem; }
.empty p { color: var(--muted); max-width: 42ch; margin: .25rem auto 1.1rem; }

/* ---------- Auth layout ---------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr; }
@media (min-width: 992px) { .auth-wrap { grid-template-columns: 5fr 7fr; } }
.auth-aside { background: var(--neel); color: #d6d0f3; padding: 3rem; display: none; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-aside::before { content: ""; position: absolute; inset: 0; opacity: .08; background-image: radial-gradient(circle, #fff 1.5px, transparent 2px); background-size: 28px 28px; pointer-events: none; }
.auth-aside::after { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 8px; background: repeating-linear-gradient(180deg, var(--rani) 0 66px, var(--genda) 66px 132px, var(--peacock) 132px 198px); }
.auth-aside > * { position: relative; }
@media (min-width: 992px) { .auth-aside { display: flex; } }
.auth-aside .brand { color: #fff; }
.auth-aside .brand-mark::after { border-color: var(--neel); }
.auth-aside h2 { color: #fff; font-size: 2.5rem; font-weight: 800; max-width: 14ch; line-height: 1.05; }
.auth-aside li { margin-bottom: .8rem; display: flex; gap: .7rem; align-items: center; font-size: 1.05rem; }
.auth-aside li .bi { width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,.1); color: var(--genda); display: inline-grid; place-items: center; flex-shrink: 0; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 2rem 1.25rem; }
.auth-card { width: 100%; max-width: 440px; }
.auth-card.wide { max-width: 640px; }
.auth-card h1 { font-size: 2rem; }
@media (max-width: 991.98px) {
  .auth-main { align-items: flex-start; padding-top: 0; background: linear-gradient(var(--neel) 0 150px, var(--paper) 150px); }
  .auth-top { background: var(--neel); margin: 0 -1.25rem 0; padding: 1.25rem 1.25rem 0; height: 110px; }
  .auth-top .brand { color: #fff; }
  .auth-top .brand-mark::after { border-color: var(--neel); }
  .auth-card { background: var(--surface); border-radius: var(--r-xl); padding: 1.5rem 1.25rem; box-shadow: var(--shadow); margin-top: 0; }
  .auth-shell { width: 100%; max-width: 640px; }
}
@media (min-width: 992px) { .auth-top { display: none; } .auth-shell { width: 100%; display: flex; justify-content: center; } }

/* ---------- Panel (provider/admin) layout ---------- */
.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: 260px; background: var(--neel); color: #c9c2ea; flex-shrink: 0; padding: 1.25rem .85rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar .brand { color: #fff; padding: 0 .5rem; margin-bottom: 1.75rem; }
.sidebar .brand-mark::after { border-color: var(--neel); }
.sidebar .nav-link { color: #d6d0f3; border-radius: 12px; padding: .62rem .8rem; font-weight: 600; display: flex; gap: .7rem; align-items: center; margin-bottom: .15rem; }
.sidebar .nav-link .bi { font-size: 1.1rem; }
.sidebar .nav-link:hover { background: rgba(255,255,255,.07); color: #fff; }
.sidebar .nav-link[aria-current="page"] { background: var(--rani); color: #fff; }
.sidebar .nav-heading { font-size: .82rem; color: #9a91c9; padding: 1rem .8rem .4rem; font-weight: 700; }
.sidebar-close { display: none; }
.app-main { flex: 1; min-width: 0; }
.app-topbar { background: rgba(255,255,255,.95); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); padding: .7rem 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; position: sticky; top: 0; z-index: 1020; min-height: 64px; }
.app-topbar h1 { font-size: 1.3rem; margin: 0; }
.app-content { padding: 1.75rem 1.5rem 4rem; max-width: 1400px; }
.sidebar-backdrop { display: none; }
@media (max-width: 991.98px) {
  .sidebar { position: fixed; left: 0; top: 0; z-index: 1050; transform: translateX(-105%); transition: transform .22s ease; border-radius: 0 var(--r-xl) var(--r-xl) 0; box-shadow: var(--shadow-lift); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-close { display: inline-grid; position: absolute; right: .75rem; top: 1rem; color: #fff; background: rgba(255,255,255,.1); border: 0; }
  .sidebar-backdrop { position: fixed; inset: 0; z-index: 1045; background: rgba(20, 12, 50, .45); border: 0; padding: 0; }
  .sidebar.open + .sidebar-backdrop { display: block; }
  .app-topbar { padding: .6rem 1rem; }
  .app-content { padding: 1.1rem 1rem 3rem; }
}

/* ---------- Stat tiles ---------- */
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1rem 1.1rem; height: 100%; position: relative; overflow: hidden; }
.stat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--rani); }
.row > :nth-child(5n+2) > .stat::before { background: var(--genda); }
.row > :nth-child(5n+3) > .stat::before { background: var(--peacock); }
.row > :nth-child(5n+4) > .stat::before { background: var(--kesari); }
.row > :nth-child(5n+5) > .stat::before { background: var(--sky); }
.stat .label { font-size: .88rem; color: var(--muted); font-weight: 600; }
.stat .value { font-family: var(--font-display); font-size: 1.65rem; font-weight: 800; color: var(--neel); letter-spacing: -0.01em; margin-top: .15rem; line-height: 1.2; word-break: break-word; }
@media (max-width: 575.98px) { .stat .value { font-size: 1.3rem; } }

/* CSS-only bar chart (no JS needed) */
.bars { display: flex; align-items: flex-end; gap: 6px; height: 170px; padding-top: .5rem; }
.bars .bar { flex: 1; background: var(--neel); border-radius: 6px 6px 0 0; min-height: 2px; position: relative; }
.bars .bar.today { background: var(--rani); }
.bars-labels { display: flex; gap: 6px; font-size: .72rem; color: var(--muted); margin-top: .35rem; }
.bars-labels span { flex: 1; text-align: center; }
/* heights set via classes h-0..h-100 in steps of 5 to avoid inline styles (CSP) */
.bars .h-0{height:0}.bars .h-5{height:5%}.bars .h-10{height:10%}.bars .h-15{height:15%}.bars .h-20{height:20%}.bars .h-25{height:25%}.bars .h-30{height:30%}.bars .h-35{height:35%}.bars .h-40{height:40%}.bars .h-45{height:45%}.bars .h-50{height:50%}.bars .h-55{height:55%}.bars .h-60{height:60%}.bars .h-65{height:65%}.bars .h-70{height:70%}.bars .h-75{height:75%}.bars .h-80{height:80%}.bars .h-85{height:85%}.bars .h-90{height:90%}.bars .h-95{height:95%}.bars .h-100{height:100%}

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { --bs-table-bg: transparent; margin-bottom: 0; }
.table > :not(caption) > * > * { padding: .8rem .95rem; border-bottom-color: var(--line); }
.table thead th { font-size: .85rem; color: var(--muted); font-weight: 700; background: var(--paper); white-space: nowrap; }
.table tbody tr:hover > * { background: #fcfaff; }

/* ---------- Segmented tabs (scroll sideways on phones) ---------- */
.seg { display: flex; gap: .45rem; flex-wrap: wrap; }
.seg a { padding: .48rem 1rem; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: .95rem; color: var(--ink-2); background: var(--surface); border: 1.5px solid var(--line); white-space: nowrap; }
.seg a:hover { border-color: var(--line-2); color: var(--neel); }
.seg a[aria-current="page"] { background: var(--neel); color: #fff; border-color: var(--neel); }
.seg .n { opacity: .65; margin-left: .35rem; font-weight: 600; }
@media (max-width: 767.98px) {
  .seg { flex-wrap: nowrap; overflow-x: auto; margin: 0 -12px; padding: 0 12px .25rem; scrollbar-width: none; }
  .seg::-webkit-scrollbar { display: none; }
}

/* ---------- Pagination ---------- */
.pagination { --bs-pagination-color: var(--neel); --bs-pagination-border-color: var(--line); --bs-pagination-hover-bg: var(--paper); --bs-pagination-hover-color: var(--rani); --bs-pagination-active-bg: var(--rani); --bs-pagination-active-border-color: var(--rani); --bs-pagination-focus-box-shadow: 0 0 0 .25rem rgba(255,178,31,.45); gap: .3rem; }
.pagination .page-link { border-radius: 999px !important; font-weight: 700; min-width: 40px; text-align: center; }

/* ---------- Catalog page ---------- */
.catalog-head { background: var(--surface); border-bottom: 1px solid var(--line); padding: 1.25rem 0 1rem; margin-bottom: 1.5rem; }
.catalog-head h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); margin-bottom: .25rem; }
.catalog-search { display: flex; gap: .5rem; max-width: 460px; width: 100%; }
.catalog-search .form-control { border-radius: 999px; padding-left: 1.1rem; }
.result-count { color: var(--muted); font-size: .95rem; margin-bottom: .9rem; }

/* ---------- Service detail ---------- */
.service-hero { background: var(--surface); border-bottom: 1px solid var(--line); padding: 1.25rem 0 1.75rem; }
.service-hero h1 { font-size: clamp(1.75rem, 4.5vw, 2.6rem); margin-bottom: .6rem; }
.service-badge { width: 64px; height: 64px; border-radius: 20px; background: var(--genda-soft); color: #b27100; display: grid; place-items: center; font-size: 1.8rem; margin-bottom: 1rem; }
.facts { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.fact { display: inline-flex; align-items: center; gap: .4rem; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: .3rem .8rem; font-weight: 600; font-size: .92rem; color: var(--ink-2); }
.fact .bi { color: var(--rani); }
.promise-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.promise-list li { display: flex; gap: .75rem; align-items: flex-start; }
.promise-list .bi { width: 34px; height: 34px; border-radius: 10px; background: var(--peacock-soft); color: var(--peacock); display: inline-grid; place-items: center; flex-shrink: 0; }
.promise-list strong { display: block; color: var(--neel); }
.promise-list span { color: var(--muted); font-size: .95rem; }
.price-card { position: sticky; top: calc(var(--header-h) + 1rem); }
.price-card h2 { font-size: 1.35rem; }
.option-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .9rem 0; border-bottom: 1px dashed var(--line-2); }
.option-row:last-child { border-bottom: 0; }
.option-row strong { color: var(--neel); }
.note-box { background: var(--genda-soft); border-radius: var(--r); padding: .9rem 1rem; font-size: .92rem; color: #5c4510; }
.sticky-cta { display: none; }
@media (max-width: 991.98px) {
  .price-card { position: static; }
  .sticky-cta { display: flex; position: fixed; left: 0; right: 0; bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom)); z-index: 1025; background: var(--surface); border-top: 1px solid var(--line); padding: .65rem 1rem; align-items: center; justify-content: space-between; gap: 1rem; box-shadow: 0 -8px 24px rgba(34,20,92,.08); }
  .sticky-cta .from { font-size: .8rem; color: var(--muted); line-height: 1; display: block; }
  body:has(.sticky-cta) { padding-bottom: calc(var(--bottom-nav-h) + 70px + env(safe-area-inset-bottom)); }
}

/* ---------- Toasts ---------- */
.toast-stack { position: fixed; top: calc(var(--header-h) + .75rem); right: 1rem; z-index: 1100; display: flex; flex-direction: column; gap: .5rem; max-width: min(380px, calc(100vw - 2rem)); }
.toast { border: 0; border-radius: var(--r); box-shadow: var(--shadow-lift); border-left: 5px solid var(--neel); background: var(--surface); }
.toast .toast-body { font-weight: 500; }
.toast.toast-success { border-left-color: var(--peacock); }
.toast.toast-error { border-left-color: var(--danger); }
.toast.toast-info { border-left-color: var(--genda); }
@media (max-width: 575.98px) { .toast-stack { left: 1rem; right: 1rem; max-width: none; } }

/* ---------- Online switch ---------- */
.online-switch .form-check-input { width: 3.2rem; height: 1.7rem; cursor: pointer; }
.online-switch .form-check-input:checked { background-color: var(--peacock); border-color: var(--peacock); }

/* ---------- Minimal (error) layout ---------- */
.minimal-wrap { min-height: 100vh; display: flex; flex-direction: column; }
.minimal-wrap main { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.error-code { font-family: var(--font-display); font-weight: 800; font-size: clamp(4rem, 14vw, 8rem); line-height: 1; color: var(--rani); letter-spacing: -0.03em; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
