/*
 * Visual identity: "neighbourhood market". Each service group has its own jewel colour
 * (peacock, indigo, leaf, saffron, lotus, violet, earth) so people find things by colour and
 * icon as much as by reading — important when users switch between 11 languages.
 * Headings use Baloo (rounded, friendly, with a matching cut for every Indian script);
 * body text uses the phone's own system font (Noto on Android), which renders all scripts.
 */
:root,
[data-bs-theme="light"] {
  --ink: #1b2a41;
  --ink-soft: #4a5873;
  --brand: #0a7c86;          /* peacock */
  --brand-rgb: 10, 124, 134;
  --brand-dark: #075f67;
  --accent: #f5a300;         /* marigold */
  --accent-rgb: 245, 163, 0;
  --sos: #d62839;            /* kumkum red */
  --surface: #f2f6fa;
  --card: #ffffff;
  --line: #dfe6ee;
  --heading-font: "Baloo 2", system-ui, sans-serif;

  /* Section colours */
  --sec-home: #0a7c86;      --sec-home-bg: #e2f4f5;
  --sec-vehicle: #3f56cf;   --sec-vehicle-bg: #e7ebfd;
  --sec-daily: #24935a;     --sec-daily-bg: #e3f5ea;
  --sec-spiritual: #d9730d; --sec-spiritual-bg: #fff0dc;
  --sec-health: #cc3d82;    --sec-health-bg: #fce7f1;
  --sec-everyday: #6a4bc4;  --sec-everyday-bg: #eee9fb;
  --sec-work: #8e5f2a;      --sec-work-bg: #f6ece0;

  --bs-body-color: var(--ink);
  --bs-body-bg: #ffffff;
  --bs-primary: var(--brand);
  --bs-primary-rgb: var(--brand-rgb);
  --bs-link-color: var(--brand);
  --bs-link-color-rgb: var(--brand-rgb);
  --bs-link-hover-color: var(--brand-dark);
  --bs-link-hover-color-rgb: 7, 95, 103;
  --bs-primary-text-emphasis: #064c52;
  --bs-primary-bg-subtle: #dff3f4;
  --bs-primary-border-subtle: #a6dde1;
  --bs-border-color: var(--line);
  --bs-secondary-color: var(--ink-soft);
  --bs-border-radius: .7rem;
  --bs-border-radius-lg: 1.1rem;
  --bs-body-font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Devanagari", "Noto Sans Tamil", sans-serif;
}

[data-bs-theme="dark"] {
  --ink: #e8eef6;
  --ink-soft: #a9b6c8;
  --brand: #3cc6cf;
  --brand-rgb: 60, 198, 207;
  --brand-dark: #7ddde3;
  --surface: #121a24;
  --card: #18222e;
  --line: #2a3747;
  --sec-home-bg: #0f3236;     --sec-vehicle-bg: #1c2550;  --sec-daily-bg: #133622;
  --sec-spiritual-bg: #3d2610; --sec-health-bg: #3c1a2b;   --sec-everyday-bg: #271d47;
  --sec-work-bg: #33261a;
  --bs-body-bg: #0e151d;
  --bs-body-color: var(--ink);
  --bs-primary: var(--brand);
  --bs-primary-rgb: var(--brand-rgb);
  --bs-link-color: var(--brand);
  --bs-link-color-rgb: var(--brand-rgb);
  --bs-link-hover-color: var(--brand-dark);
  --bs-primary-text-emphasis: #b5f0f3;
  --bs-primary-bg-subtle: #0f3236;
  --bs-primary-border-subtle: #1d5a60;
  --bs-border-color: var(--line);
}

/* ---------- Type */
h1, h2, h3, .h1, .h2, .h3, .h4, .h5, .display-5, .display-6, .navbar-brand, .heading {
  font-family: var(--heading-font);
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.2;
}
h1, .h1 { font-weight: 800; }
.h6, h6 { font-weight: 700; }
body { display: flex; flex-direction: column; min-height: 100vh; -webkit-font-smoothing: antialiased; }
main { flex: 1 0 auto; }
.bg-surface { background-color: var(--surface) !important; }
.text-ink-soft { color: var(--ink-soft) !important; }
.tabular { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 3px solid rgba(var(--brand-rgb), .45); outline-offset: 2px; }

/* ---------- Buttons & forms */
.btn { font-weight: 600; }
.btn-lg { padding: .75rem 1.4rem; border-radius: .9rem; }
.btn-primary {
  --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand);
  --bs-btn-hover-bg: var(--brand-dark); --bs-btn-hover-border-color: var(--brand-dark);
  --bs-btn-active-bg: var(--brand-dark); --bs-btn-active-border-color: var(--brand-dark);
  --bs-btn-disabled-bg: var(--brand); --bs-btn-disabled-border-color: var(--brand);
  --bs-btn-color: #fff; --bs-btn-hover-color: #fff; --bs-btn-active-color: #fff;
}
[data-bs-theme="dark"] .btn-primary { --bs-btn-color: #04201d; --bs-btn-hover-color: #04201d; --bs-btn-active-color: #04201d; }
.btn-outline-primary {
  --bs-btn-color: var(--brand); --bs-btn-border-color: var(--brand);
  --bs-btn-hover-bg: var(--brand); --bs-btn-hover-border-color: var(--brand);
  --bs-btn-active-bg: var(--brand); --bs-btn-active-border-color: var(--brand);
}
.btn-accent {
  --bs-btn-bg: var(--accent); --bs-btn-border-color: var(--accent); --bs-btn-color: #2a1800;
  --bs-btn-hover-bg: #e09500; --bs-btn-hover-border-color: #e09500; --bs-btn-hover-color: #2a1800;
  --bs-btn-active-bg: #c98500; --bs-btn-active-color: #2a1800;
}
.btn-sos {
  --bs-btn-bg: var(--sos); --bs-btn-border-color: var(--sos); --bs-btn-color: #fff;
  --bs-btn-hover-bg: #b51f2e; --bs-btn-hover-border-color: #b51f2e; --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: #9c1a27; --bs-btn-active-color: #fff;
}
.form-control, .form-select { border-radius: .7rem; }
.form-control:focus, .form-select:focus, .form-check-input:focus {
  border-color: rgba(var(--brand-rgb), .6);
  box-shadow: 0 0 0 .2rem rgba(var(--brand-rgb), .18);
}
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.nav-pills { --bs-nav-pills-link-active-bg: var(--brand); --bs-nav-link-font-weight: 600; }
.nav-pills .nav-link { border-radius: 999px; }
.page-link { color: var(--brand); }
.active > .page-link, .page-link.active { background-color: var(--brand); border-color: var(--brand); }
.text-bg-primary { background-color: var(--brand) !important; color: #fff !important; }
.card { --bs-card-border-color: var(--line); --bs-card-bg: var(--card); border-radius: 1rem; }

/* ---------- Select2 (Bootstrap 5 theme) tuned to the app */
.select2-container--bootstrap-5 .select2-selection { border-radius: .7rem; border-color: var(--line); min-height: calc(1.5em + .75rem + 2px); }
.select2-container--bootstrap-5.select2-container--focus .select2-selection,
.select2-container--bootstrap-5.select2-container--open .select2-selection { border-color: rgba(var(--brand-rgb), .6); box-shadow: 0 0 0 .2rem rgba(var(--brand-rgb), .18); }
.select2-container--bootstrap-5 .select2-dropdown { border-color: rgba(var(--brand-rgb), .4); border-radius: .7rem; overflow: hidden; }
.select2-container--bootstrap-5 .select2-dropdown .select2-results__options .select2-results__option.select2-results__option--highlighted { background-color: var(--brand); color: #fff; }
.select2-container--bootstrap-5 .select2-dropdown .select2-results__options .select2-results__option.select2-results__option--selected { background-color: var(--bs-primary-bg-subtle); color: var(--ink); }
[data-bs-theme="dark"] .select2-container--bootstrap-5 .select2-selection,
[data-bs-theme="dark"] .select2-container--bootstrap-5 .select2-dropdown { background: var(--card); color: var(--ink); }
[data-bs-theme="dark"] .select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered { color: var(--ink); }
[data-bs-theme="dark"] .select2-container--bootstrap-5 .select2-dropdown .select2-search .select2-search__field { background: var(--surface); color: var(--ink); border-color: var(--line); }
.select2-lg + .select2-container--bootstrap-5 .select2-selection { min-height: 3.4rem; font-size: 1.1rem; padding: .7rem 1rem; border-radius: 1rem; }
.select2-lg + .select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered { line-height: 1.9rem; }

/* ---------- App shell: slim side rail + top bar */
.app-shell { display: flex; min-height: 100vh; }
.app-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.app-main > main { flex: 1 0 auto; }
.skip-link { position: absolute; left: .5rem; top: .5rem; z-index: 2000; background: var(--card); padding: .4rem .8rem; border-radius: .5rem; }

.rail {
  position: sticky; top: 0; height: 100vh; width: 5.25rem; flex: 0 0 5.25rem; z-index: 1031;
  flex-direction: column; align-items: center; gap: .15rem; padding: .7rem .35rem .8rem;
  background: var(--surface); border-right: 1px solid var(--line); overflow-y: auto; scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail-logo { display: grid; place-items: center; margin-bottom: .55rem; border-radius: .9rem; }
.rail-logo:focus-visible, .rail-link:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.rail-tag { font-size: .62rem; font-weight: 800; letter-spacing: .02em; color: #fff; background: var(--accent); border-radius: 999px; padding: .05rem .5rem; margin: -.3rem 0 .45rem; }
.rail-items, .rail-foot { display: flex; flex-direction: column; align-items: stretch; gap: .15rem; width: 100%; }
.rail-foot { margin-top: auto; padding-top: .5rem; border-top: 1px dashed var(--line); }
.rail-link {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: .18rem; width: 100%;
  padding: .45rem .15rem .4rem; border-radius: .85rem; color: var(--ink-soft); text-decoration: none; text-align: center; cursor: pointer;
}
.rail-link .bi { font-size: 1.22rem; line-height: 1; display: grid; place-items: center; width: 2.6rem; height: 1.85rem; border-radius: 999px; transition: background-color .15s ease; }
.rail-label { font-size: .66rem; font-weight: 600; line-height: 1.15; overflow-wrap: anywhere; max-width: 100%; }
.rail-link:hover { color: var(--ink); }
.rail-link:hover .bi { background: rgba(var(--brand-rgb), .08); }
.rail-link.active { color: var(--brand); }
.rail-link.active .bi { background: var(--bs-primary-bg-subtle); color: var(--brand); }
.rail-link.active .rail-label { font-weight: 800; }
.rail-link.rail-sos { color: var(--sos); }
.rail-link.rail-sos .bi { background: rgba(214, 40, 57, .1); }
.rail-link.rail-switch .bi { background: rgba(var(--accent-rgb), .18); color: #a86d00; }
.rail-badge { position: absolute; top: .2rem; left: calc(50% + .55rem); font-size: .58rem; padding: .2em .45em; }
.rail-pro { background: linear-gradient(180deg, rgba(var(--accent-rgb), .07), var(--surface) 30%); }

.app-header { background: color-mix(in srgb, var(--bs-body-bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar { display: flex; align-items: center; gap: .5rem; padding: .55rem clamp(.75rem, 2vw, 1.5rem); min-height: 3.6rem; }
.topbar-brand, .footer-brand, .navbar-brand { display: inline-flex; align-items: center; gap: .45rem; text-decoration: none; }
.brand-word { font-family: var(--heading-font); font-weight: 800; font-size: 1.28rem; letter-spacing: -.01em; color: var(--ink); line-height: 1; }
.topbar-search { flex: 0 1 26rem; margin-left: .5rem; }
.topbar-search .select2-container--bootstrap-5 .select2-selection { border-radius: 999px; background: var(--surface); border-color: transparent; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 2.35rem; height: 2.35rem; border-radius: 50%; border: 0; background: transparent; color: var(--ink); font-size: 1.2rem; text-decoration: none; }
.icon-btn:hover { background: var(--surface); color: var(--ink); }
.chip {
  display: inline-flex; align-items: center; gap: .35rem; max-width: 100%;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  border-radius: 999px; padding: .35rem .8rem; font-size: .9rem; font-weight: 600; line-height: 1.2;
}
.chip:hover { border-color: rgba(var(--brand-rgb), .5); color: var(--ink); }
.chip .bi { color: var(--brand); }
.chip-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 12rem; }
.notif-dot { position: absolute; top: .05rem; right: -.05rem; font-size: .58rem; }

.mobile-menu { --bs-offcanvas-width: min(22rem, 88vw); }
.menu-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .2rem; }
.menu-grid .rail-label { font-size: .7rem; }
.d-contents { display: contents; }

/* ---------- Hero */
.hero {
  background:
    radial-gradient(circle at 1px 1px, rgba(var(--brand-rgb), .16) 1.2px, transparent 1.6px) 0 0 / 22px 22px,
    linear-gradient(180deg, var(--surface), var(--bs-body-bg));
  border-bottom: 1px solid var(--line);
}
.hero h1 { font-size: clamp(1.9rem, 4.6vw, 3.1rem); }
.hero .lead { color: var(--ink-soft); max-width: 36rem; }
.quick-needs { display: flex; gap: .6rem; overflow-x: auto; padding-bottom: .35rem; scrollbar-width: none; }
.quick-needs::-webkit-scrollbar { display: none; }
.quick-need {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: .45rem; text-decoration: none;
  border-radius: 999px; padding: .45rem .9rem .45rem .45rem; font-weight: 600; font-size: .92rem;
  background: var(--card); color: var(--ink); border: 1px solid var(--line);
}
.quick-need .dot { width: 1.9rem; height: 1.9rem; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: .95rem; }
.quick-need.sos { background: var(--sos); color: #fff; border-color: var(--sos); }
.quick-need.sos .dot { background: rgba(255, 255, 255, .22); }

/* ---------- Service sections: the signature "launcher" grid */
.section-block { padding: 1.4rem 0; }
.section-head { display: flex; align-items: center; gap: .6rem; margin-bottom: .9rem; }
.section-head .sec-badge { width: 2.2rem; height: 2.2rem; border-radius: .75rem; display: grid; place-items: center; color: #fff; background: var(--sec); }
.section-head h2 { margin: 0; font-size: 1.35rem; }
.section-head a { margin-left: auto; font-weight: 600; font-size: .9rem; text-decoration: none; color: var(--sec); }
.launcher { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .9rem .5rem; }
@media (min-width: 576px) { .launcher { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (min-width: 992px) { .launcher { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
.launcher a { display: flex; flex-direction: column; align-items: center; gap: .45rem; text-align: center; text-decoration: none; color: var(--ink); }
.launcher .tile-icon {
  width: 3.6rem; height: 3.6rem; border-radius: 1.15rem; display: grid; place-items: center; font-size: 1.55rem;
  background: var(--sec-bg); color: var(--sec); transition: transform .12s ease;
}
.launcher a:hover .tile-icon, .launcher a:focus-visible .tile-icon { transform: translateY(-3px); }
.launcher .tile-label { font-size: .82rem; font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }
.sec-home      { --sec: var(--sec-home);      --sec-bg: var(--sec-home-bg); }
.sec-vehicle   { --sec: var(--sec-vehicle);   --sec-bg: var(--sec-vehicle-bg); }
.sec-daily     { --sec: var(--sec-daily);     --sec-bg: var(--sec-daily-bg); }
.sec-spiritual { --sec: var(--sec-spiritual); --sec-bg: var(--sec-spiritual-bg); }
.sec-health    { --sec: var(--sec-health);    --sec-bg: var(--sec-health-bg); }
.sec-everyday  { --sec: var(--sec-everyday);  --sec-bg: var(--sec-everyday-bg); }
.sec-work      { --sec: var(--sec-work);      --sec-bg: var(--sec-work-bg); }
.sec-tint { background: var(--sec-bg); }
.sec-text { color: var(--sec) !important; }
.sec-icon { width: 3.25rem; height: 3.25rem; border-radius: 1rem; display: grid; place-items: center; font-size: 1.5rem; background: var(--sec-bg); color: var(--sec); flex-shrink: 0; }

/* ---------- Cards & lists */
.service-card { border-radius: 1rem; border: 1px solid var(--line); background: var(--card); height: 100%; position: relative; transition: border-color .12s ease; }
.service-card:hover { border-color: var(--sec, var(--brand)); }
.service-card .price { font-family: var(--heading-font); font-weight: 800; font-size: 1.35rem; }
.feature-band { border-radius: 1.25rem; padding: 1.5rem; }
.stars { color: var(--accent); white-space: nowrap; }
.avatar { flex-shrink: 0; }
.avatar-initials { display: inline-grid; place-items: center; font-weight: 700; background: var(--bs-primary-bg-subtle); color: var(--bs-primary-text-emphasis); }
.stat-card .stat-value { font-family: var(--heading-font); font-size: 1.7rem; font-weight: 800; }
.stat-card .stat-label { color: var(--ink-soft); font-size: .85rem; }
.empty-state .bi { color: var(--ink-soft); opacity: .6; }

.timeline { list-style: none; padding-left: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 1rem 1.6rem; }
.timeline li::before { content: ""; position: absolute; left: .35rem; top: .35rem; width: .65rem; height: .65rem; border-radius: 50%; background: var(--brand); }
.timeline li:not(:last-child)::after { content: ""; position: absolute; left: .64rem; top: 1rem; bottom: -.1rem; width: 2px; background: var(--line); }

.otp-code { font-family: var(--heading-font); font-size: 2.4rem; letter-spacing: .35em; font-weight: 800; }
.otp-input { font-size: 1.6rem; letter-spacing: .5em; text-align: center; font-variant-numeric: tabular-nums; }
.price-summary dt { font-weight: 400; }
.price-summary dd { text-align: right; font-variant-numeric: tabular-nums; }
.sticky-summary { position: sticky; top: 5.5rem; }
.qty { max-width: 9rem; }
.qty input { text-align: center; font-weight: 700; }

/* Temple / donation */
.receipt { max-width: 640px; margin: 0 auto; border: 2px solid var(--sec-spiritual); border-radius: 1rem; background: var(--card); }
.receipt-head { background: var(--sec-spiritual-bg); border-bottom: 1px dashed var(--sec-spiritual); border-radius: 1rem 1rem 0 0; }
.amount-pills .btn-check:checked + .btn { background: var(--sec-spiritual); border-color: var(--sec-spiritual); color: #fff; }
.amount-pills .btn { border-color: var(--sec-spiritual); color: var(--sec-spiritual); }

/* SOS */
.sos-hero { background: linear-gradient(160deg, #d62839, #a3162a); color: #fff; border-radius: 1.4rem; }
.sos-hero .btn-light { color: var(--sos); font-weight: 800; }
.helpline { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--ink); padding: .8rem; border-radius: 1rem; border: 1px solid var(--line); background: var(--card); height: 100%; }
.helpline:hover { border-color: var(--sos); color: var(--ink); }
.helpline .num { font-family: var(--heading-font); font-weight: 800; font-size: 1.35rem; color: var(--sos); line-height: 1; }
.helpline .ic { width: 2.6rem; height: 2.6rem; border-radius: .8rem; display: grid; place-items: center; background: #fde6e8; color: var(--sos); font-size: 1.2rem; flex-shrink: 0; }
[data-bs-theme="dark"] .helpline .ic { background: #3a1419; }

/* Language picker */
.lang-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
@media (min-width: 576px) { .lang-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.lang-grid button { border: 1px solid var(--line); background: var(--card); border-radius: .9rem; padding: .7rem; text-align: left; width: 100%; color: var(--ink); }
.lang-grid button:hover, .lang-grid button.active { border-color: var(--brand); background: var(--bs-primary-bg-subtle); }
.lang-grid .native { font-family: var(--heading-font); font-size: 1.3rem; font-weight: 700; display: block; line-height: 1.2; }
.lang-grid .english { font-size: .8rem; color: var(--ink-soft); }

/* Admin */
.admin-sidebar .nav-link { color: var(--ink); border-radius: .5rem; padding: .5rem .75rem; }
.admin-sidebar .nav-link.active, .admin-sidebar .nav-link:hover { background: var(--bs-primary-bg-subtle); color: var(--bs-primary-text-emphasis); }
.table > :not(caption) > * > * { vertical-align: middle; }

/* Mobile bottom navigation with a central SOS (or "find work") button */
.bottom-nav { display: none; }
@media (max-width: 767.98px) {
  .bottom-nav {
    display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; position: fixed; bottom: 0; left: 0; right: 0; z-index: 1030;
    background: var(--bs-body-bg); border-top: 1px solid var(--line); padding: .3rem 0 calc(.35rem + env(safe-area-inset-bottom));
  }
  .bottom-nav a { position: relative; display: flex; flex-direction: column; align-items: center; gap: .1rem; font-size: .68rem; font-weight: 600; color: var(--ink-soft); text-decoration: none; text-align: center; line-height: 1.1; }
  .bottom-nav a.active { color: var(--brand); }
  .bottom-nav .bi { font-size: 1.3rem; }
  .bottom-nav .sos-btn .bi { width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; background: var(--sos); color: #fff; margin-top: -1.4rem; box-shadow: 0 .3rem .8rem rgba(214, 40, 57, .35); font-size: 1.25rem; }
  .bottom-nav .sos-btn { color: var(--sos); }
  .bottom-nav .find-work-btn .bi { background: var(--brand); box-shadow: 0 .3rem .8rem rgba(var(--brand-rgb), .35); }
  .bottom-nav .find-work-btn { color: var(--brand); }
  .bn-badge { position: absolute; top: -.2rem; left: calc(50% + .35rem); font-size: .55rem; }
  body { padding-bottom: 4.6rem; }
  .sticky-summary { position: static; }
}

.footer a { color: var(--ink-soft); text-decoration: none; }
.footer a:hover { color: var(--brand); }

@media print {
  .app-header, .footer, .bottom-nav, .rail, .no-print { display: none !important; }
  body { padding: 0; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---------- Pro: my services & prices */
.price-list { overflow: hidden; }
.price-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .75rem 1rem; align-items: center; padding: .85rem 1rem; border-bottom: 1px solid var(--line); }
.price-row:last-child { border-bottom: 0; }
.price-row-name { display: flex; gap: .75rem; align-items: center; min-width: 0; }
.price-row-fields { display: grid; grid-template-columns: 8rem 12rem auto; gap: .5rem; align-items: center; }
.price-input .form-control { font-weight: 700; }
.sec-icon.sec-sm { width: 2.2rem; height: 2.2rem; font-size: 1rem; flex: 0 0 auto; }
.sticky-actions { position: sticky; bottom: 0; padding: .75rem 0; background: linear-gradient(180deg, transparent, var(--bs-body-bg) 35%); }
@media (max-width: 767.98px) {
  .price-row { grid-template-columns: 1fr; }
  .price-row-fields { grid-template-columns: 7rem 1fr; }
  .price-row-fields .form-switch { grid-column: 1 / -1; }
  .sticky-actions { bottom: 4.4rem; }
}

/* ---------- Service page: choose your professional */
.pro-filter { display: grid; grid-template-columns: minmax(0, 1fr) 12rem; gap: .5rem; }
.pro-picks { display: grid; gap: .75rem; }
.pro-pick { border: 1px solid var(--line); border-radius: 1rem; background: var(--card); padding: 1rem; }
.pro-pick:hover { border-color: rgba(var(--brand-rgb), .45); }
.pro-pick-head { display: flex; gap: .85rem; align-items: flex-start; }
.pro-pick-price { flex: 0 0 auto; min-width: 5.5rem; }
.pro-pick-review { margin: .8rem 0 0; padding: .6rem .8rem; border-left: 3px solid var(--sec, var(--brand)); background: var(--surface); border-radius: 0 .6rem .6rem 0; font-size: .92rem; }
.pro-pick-actions { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .85rem; }
.pro-pick-actions form { display: inline; }
.chosen-pro { border-color: rgba(var(--brand-rgb), .45); background: var(--bs-primary-bg-subtle); }
@media (max-width: 575.98px) {
  .pro-filter { grid-template-columns: 1fr; }
  .pro-pick-actions .btn { flex: 1 1 auto; }
}

/* ---------- Chat */
.chat-shell { display: grid; grid-template-columns: 20rem minmax(0, 1fr); height: calc(100vh - 3.6rem); border-top: 0; }
.chat-aside { border-right: 1px solid var(--line); overflow-y: auto; background: var(--bs-body-bg); }
.chat-list { display: flex; flex-direction: column; padding: .25rem .5rem 1rem; }
.chat-list-item { display: flex; gap: .7rem; align-items: center; padding: .6rem .6rem; border-radius: .8rem; color: var(--ink); text-decoration: none; }
.chat-list-item:hover { background: var(--surface); color: var(--ink); }
.chat-list-item.active { background: var(--bs-primary-bg-subtle); }
.chat-list-item.unread strong { color: var(--brand); }
.chat-pane { display: flex; flex-direction: column; min-height: 0; background: var(--surface); }
.chat-placeholder { place-items: center; }
.chat-head { display: flex; align-items: center; gap: .7rem; padding: .6rem 1rem; background: var(--bs-body-bg); border-bottom: 1px solid var(--line); }
.chat-context { display: flex; gap: .4rem; overflow-x: auto; padding: .5rem 1rem; background: var(--bs-body-bg); border-bottom: 1px solid var(--line); }
.context-chip { flex: 0 0 auto; font-size: .78rem; font-weight: 600; padding: .25rem .65rem; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; background: var(--card); }
.chat-thread { flex: 1 1 auto; overflow-y: auto; padding: 1rem clamp(.75rem, 3vw, 2rem); display: flex; flex-direction: column; gap: .35rem; overscroll-behavior: contain; }
.chat-safety { align-self: center; text-align: center; color: var(--ink-soft); background: var(--card); border: 1px dashed var(--line); border-radius: .8rem; padding: .4rem .8rem; margin-bottom: .6rem; max-width: 36rem; }
.msg { display: flex; }
.msg-mine { justify-content: flex-end; }
.msg-bubble { max-width: min(36rem, 82%); padding: .5rem .75rem .35rem; border-radius: 1.1rem; background: var(--card); border: 1px solid var(--line); box-shadow: 0 1px 0 rgba(0,0,0,.03); }
.msg-mine .msg-bubble { background: var(--brand); color: #fff; border-color: transparent; border-bottom-right-radius: .35rem; }
.msg-theirs .msg-bubble { border-bottom-left-radius: .35rem; }
.msg-text { white-space: normal; overflow-wrap: anywhere; }
.msg-time { display: block; text-align: right; font-size: .66rem; opacity: .7; margin-top: .1rem; }
.msg-image img { display: block; max-width: 100%; max-height: 16rem; border-radius: .7rem; margin-bottom: .3rem; }
.msg-file { display: inline-flex; gap: .3rem; align-items: center; font-weight: 600; color: inherit; }
.msg-mine .msg-file, .msg-mine a { color: #fff; }
.msg-system { justify-content: center; font-size: .78rem; color: var(--ink-soft); text-align: center; margin: .35rem 0; }
.msg-system > span { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: .2rem .75rem; max-width: 92%; }
.chat-compose { display: flex; align-items: flex-end; gap: .4rem; padding: .6rem clamp(.6rem, 2vw, 1.25rem) calc(.6rem + env(safe-area-inset-bottom)); background: var(--bs-body-bg); border-top: 1px solid var(--line); }
.chat-compose textarea { resize: none; border-radius: 1.2rem; min-height: 2.6rem; max-height: 10rem; }
.chat-send { border-radius: 50%; width: 2.6rem; height: 2.6rem; padding: 0; flex: 0 0 auto; }
.chat-file:empty { display: none; }
.chat-file { align-self: center; max-width: 8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 767.98px) {
  .chat-shell { grid-template-columns: 1fr; height: calc(100vh - 3.6rem - 4.6rem); }
  .chat-shell.has-thread { height: calc(100dvh - 3.6rem); }
  .chat-shell .chat-aside { border-right: 0; }
  body:has(.chat-shell.has-thread) .bottom-nav { display: none; }
  body:has(.chat-shell.has-thread) { padding-bottom: 0; }
}

/* ---------- Hire & escrow */
.hire-hero { background: radial-gradient(circle at 1px 1px, rgba(var(--brand-rgb), .14) 1.2px, transparent 1.6px) 0 0 / 22px 22px, var(--card); }
.escrow-steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: .55rem; }
.escrow-steps li { counter-increment: step; display: grid; grid-template-columns: 2rem 1fr; gap: .6rem; align-items: center; font-size: .92rem; }
.escrow-steps li .bi { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--bs-primary-bg-subtle); color: var(--brand); }
.escrow-figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.escrow-figures > div { display: flex; flex-direction: column; gap: .1rem; }
.escrow-figures span { font-size: .8rem; color: var(--ink-soft); }
.escrow-figures strong { font-family: var(--heading-font); font-size: 1.35rem; }
.escrow-figures .held strong, .escrow-figures .held span { color: var(--brand); }
.milestones { display: grid; gap: .6rem; }
.milestone { border: 1px solid var(--line); border-radius: 1rem; background: var(--card); padding: .85rem 1rem; }
.milestone-head { display: flex; gap: .75rem; align-items: center; }
.milestone-dot { width: .8rem; height: .8rem; border-radius: 50%; flex: 0 0 auto; background: var(--line); box-shadow: 0 0 0 4px var(--surface); }
.milestone-funded .milestone-dot, .milestone-submitted .milestone-dot { background: var(--brand); }
.milestone-released .milestone-dot { background: #24935a; }
.milestone-disputed .milestone-dot { background: var(--sos); }
.milestone-submitted { border-color: rgba(var(--brand-rgb), .5); }
.milestone-note { margin-top: .6rem; font-size: .88rem; padding: .45rem .7rem; background: var(--surface); border-radius: .6rem; }
.milestone-note.warn { background: rgba(var(--accent-rgb), .14); }
.milestone-actions { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .7rem; }
.milestone-actions:empty { display: none; }
.milestone-actions form { display: inline; }
.milestone-actions details > summary { list-style: none; display: inline-block; }
.milestone-actions details > summary::-webkit-details-marker { display: none; }
@media (max-width: 575.98px) { .escrow-figures strong { font-size: 1.1rem; } }
.requested-job { border-left: 4px solid var(--brand) !important; background: var(--bs-primary-bg-subtle); }
.quick-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; }
.quick-tile { display: flex; gap: .6rem; align-items: center; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: .9rem; background: var(--card); color: var(--ink); text-decoration: none; font-size: .9rem; }
.quick-tile:hover { border-color: rgba(var(--brand-rgb), .5); color: var(--ink); }
.quick-tile .bi { font-size: 1.25rem; color: var(--brand); }
@media (max-width: 767.98px) { .quick-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hire-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.4rem 1.6rem; border-radius: 1.25rem; color: #fff;
  background: radial-gradient(circle at 1px 1px, rgba(255,255,255,.14) 1.2px, transparent 1.6px) 0 0 / 22px 22px, linear-gradient(120deg, #0a7c86, #065a63); }
.hire-band h2 { color: #fff; }
.hire-band p { color: rgba(255,255,255,.85); max-width: 40rem; }

/* Small phones: logo mark only, compact chips so every header button fits */
@media (max-width: 575.98px) {
  .topbar { gap: .3rem; padding-inline: .6rem; }
  .topbar .chip { padding: .3rem .55rem; font-size: .85rem; }
  .topbar .chip-truncate { max-width: 7.5rem; }
  .icon-btn { width: 2.15rem; height: 2.15rem; font-size: 1.1rem; }
}
@media (max-width: 419.98px) {
  .topbar-brand .brand-word { display: none; }
  .topbar .chip-truncate { max-width: 6.2rem; }
}
@media (min-width: 768px) {
  .has-rail .app-shell { background: linear-gradient(90deg, var(--surface) 5.25rem, var(--line) 5.25rem, var(--line) calc(5.25rem + 1px), transparent calc(5.25rem + 1px)); }
}
.price-input .form-control::placeholder { font-weight: 400; color: var(--ink-soft); opacity: .55; }
.msg-system > span { border-radius: 1rem; display: inline-block; }
.mobile-menu .list-group-item { border-left: 0; border-right: 0; text-align: left; width: 100%; }
.mobile-menu form.d-contents button.list-group-item { border-bottom: 0; }

/* =====================================================================
   Refresh: visitor top bar, peacock hero with a kolam, section cards
   ===================================================================== */
:root, [data-bs-theme="light"] {
  --peacock-deep: #064a50;
  --night: #14212e;            /* footer and join band */
  --lift: 0 1px 2px rgba(20, 33, 46, .06), 0 8px 24px -12px rgba(20, 33, 46, .18);
  --lift-hover: 0 2px 4px rgba(20, 33, 46, .06), 0 16px 32px -14px rgba(20, 33, 46, .28);
}
[data-bs-theme="dark"] { --night: #0a1118; --lift: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px -12px rgba(0,0,0,.6); --lift-hover: 0 16px 32px -14px rgba(0,0,0,.7); }

/* ---- Visitor top bar: logo, search, actions; menu strip below */
.app-header-guest .topbar { min-height: 4rem; }
.app-header-guest .topbar-search { flex: 1 1 28rem; max-width: 34rem; }
.topbar-link { align-items: center; gap: .35rem; padding: .4rem .7rem; border-radius: 999px; font-weight: 600; font-size: .9rem; color: var(--ink); text-decoration: none; white-space: nowrap; }
.topbar-link:hover { background: var(--surface); color: var(--brand); }
.topbar-link .bi { color: var(--accent); }
.btn-login { border-radius: 999px; padding: .42rem 1.1rem; font-size: .92rem; box-shadow: 0 4px 12px -4px rgba(var(--brand-rgb), .55); }
.guest-nav { border-top: 1px solid var(--line); }
.guest-nav-track { display: flex; align-items: center; gap: .15rem; overflow-x: auto; scrollbar-width: none; padding: .35rem clamp(.6rem, 2vw, 1.5rem); }
.guest-nav-track::-webkit-scrollbar { display: none; }
.guest-nav-link { flex: 0 0 auto; display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .75rem .3rem .35rem; border-radius: 999px;
  font-size: .86rem; font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; transition: background-color .15s ease; }
.guest-nav-link .gn-dot { width: 1.6rem; height: 1.6rem; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; background: var(--sec-bg, var(--bs-primary-bg-subtle)); color: var(--sec, var(--brand)); }
.guest-nav-link:hover, .guest-nav-link.active { background: var(--sec-bg, var(--bs-primary-bg-subtle)); color: var(--ink); }
.guest-nav-hire { --sec: var(--brand); --sec-bg: var(--bs-primary-bg-subtle); }
.guest-nav-sos { color: var(--sos); }
.guest-nav-sos .gn-dot { background: var(--sos); color: #fff; }
.guest-nav-sos:hover { background: rgba(214, 40, 57, .08); color: var(--sos); }
.guest-nav-sep { flex: 0 0 1px; height: 1.4rem; background: var(--line); margin: 0 .35rem; }
@media (max-width: 767.98px) { .guest-nav-link { font-size: .8rem; } .guest-nav-link .gn-dot { width: 1.4rem; height: 1.4rem; } }

/* ---- Hero: deep peacock, a kolam drawn at the "doorstep", live cards from real data */
.hero-x { position: relative; overflow: hidden; color: #fff; isolation: isolate;
  background: radial-gradient(120% 90% at 85% 10%, #0f97a1 0%, transparent 55%), linear-gradient(160deg, #0a7c86 0%, var(--peacock-deep) 70%); }
.hero-x::after { content: ""; position: absolute; inset: auto 0 0 0; height: 5px; z-index: 1;
  background: repeating-linear-gradient(90deg, var(--accent) 0 18px, transparent 18px 26px); opacity: .9; }
.hero-x-inner { position: relative; z-index: 1; padding-block: clamp(2rem, 6vw, 4.25rem) clamp(2.2rem, 6vw, 4.5rem); }
.hero-x-title { color: #fff; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.08; max-width: 15ch; margin-bottom: .75rem; }
.hero-x-lead { color: rgba(255, 255, 255, .86); font-size: clamp(1.02rem, 1.6vw, 1.2rem); max-width: 34rem; margin-bottom: 1.4rem; }
.hero-x-search { position: relative; max-width: 38rem; }
.hero-x-search-icon { position: absolute; left: 1.15rem; top: 50%; transform: translateY(-50%); z-index: 2; color: var(--brand); font-size: 1.15rem; pointer-events: none; }
.hero-x .select2-lg + .select2-container--bootstrap-5 .select2-selection { border: 0; border-radius: 1.1rem; padding-left: 2.9rem; min-height: 3.7rem; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .55); background: #fff; }
.hero-x .select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered { color: #1b2a41; }
.hero-x .select2-container--bootstrap-5 .select2-selection--single .select2-selection__placeholder { color: #6b778c; }
.hero-x .quick-needs { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); padding-right: 2rem; }
.hero-x .quick-need { border-color: transparent; box-shadow: 0 6px 16px -10px rgba(0, 0, 0, .5); background: #fff; color: #1b2a41; }
.hero-x .quick-need.sos { background: var(--sos); color: #fff; }
.hero-x-facts { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; padding: 0; margin: 1.4rem 0 0; font-size: .9rem; color: rgba(255, 255, 255, .85); }
.hero-x-facts li { display: inline-flex; align-items: center; gap: .4rem; }
.hero-x-facts .bi { color: var(--accent); }
.kolam { position: absolute; pointer-events: none; }
.kolam .kolam-lines { fill: none; stroke: currentColor; stroke-width: 1.4; }
.kolam .kolam-dots { fill: var(--accent); }
.hero-kolam { z-index: 0; color: rgba(255, 255, 255, .16); width: min(46rem, 80vw); right: -9rem; top: 50%; transform: translateY(-50%); opacity: .9; }
.hero-kolam .kolam-dots { opacity: .65; }
@media (max-width: 991.98px) { .hero-kolam { width: 26rem; right: -10rem; top: auto; bottom: -9rem; transform: none; opacity: .55; } }

.hero-stack { position: relative; height: 25rem; }
.float-card { position: absolute; display: flex; align-items: center; gap: .75rem; width: 19rem; padding: .85rem 1rem; border-radius: 1.1rem;
  background: var(--card); color: var(--ink); text-decoration: none; box-shadow: 0 24px 48px -20px rgba(0, 0, 0, .55); transition: transform .2s ease; }
a.float-card:hover { color: var(--ink); transform: translateY(-3px); }
.fc-1 { top: 0; left: 8%; }
.fc-2 { top: 6.6rem; right: 0; }
.fc-3 { top: 13.2rem; left: 0; }
.fc-4 { top: 19.8rem; right: 6%; width: 16rem; }
.fc-body { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.fc-body > strong { font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fc-meta { font-size: .8rem; color: var(--ink-soft); }
.fc-kicker { font-size: .75rem; color: var(--brand); font-weight: 700; }
.fc-icon { flex: 0 0 auto; width: 2.7rem; height: 2.7rem; border-radius: .85rem; display: grid; place-items: center; font-size: 1.2rem; background: var(--sec-bg); color: var(--sec); }
.fc-lock { background: var(--night); color: var(--accent); }

/* ---- Service groups as cards: tinted head, launcher tiles inside */
.sec-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: -1.6rem; position: relative; z-index: 2; }
@media (min-width: 992px) { .sec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; } }
.sec-card { border-radius: 1.35rem; padding: 1.1rem 1.15rem 1.25rem; border: 1px solid var(--line); box-shadow: var(--lift);
  background: linear-gradient(180deg, var(--sec-bg) 0, var(--card) 5.2rem); }
.sec-card .section-head { align-items: flex-start; margin-bottom: 1rem; }
.sec-card .section-head h2 { font-size: 1.2rem; }
.sec-card .sec-badge { width: 2.5rem; height: 2.5rem; border-radius: .85rem; flex: 0 0 auto; box-shadow: 0 6px 14px -6px var(--sec); }
.sec-sub { margin: .1rem 0 0; font-size: .82rem; color: var(--ink-soft); line-height: 1.3; }
.sec-more { margin-left: auto; flex: 0 0 auto; white-space: nowrap; font-weight: 700; font-size: .85rem; text-decoration: none; color: var(--sec); padding: .25rem .6rem; border-radius: 999px; background: var(--card); }
.sec-more:hover { color: var(--sec); background: var(--sec-bg); }
.sec-card .launcher { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .85rem .4rem; }
.launcher .tile-icon { background: var(--card); border: 1px solid color-mix(in srgb, var(--sec) 18%, transparent); box-shadow: 0 6px 14px -10px var(--sec); transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease; }
.launcher a:hover .tile-icon, .launcher a:focus-visible .tile-icon { background: var(--sec); color: #fff; box-shadow: 0 10px 18px -10px var(--sec); }
.launcher a:hover .tile-label { color: var(--sec); }
@media (min-width: 576px) and (max-width: 991.98px) { .sec-card .launcher { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

/* ---- How booking works: a real sequence, so it is numbered */
.how { margin: 3rem 0 2.5rem; }
.how h2 { margin-bottom: 1.25rem; }
.how-steps { list-style: none; counter-reset: how; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; padding: 0; margin: 0; position: relative; }
.how-steps::before { content: ""; position: absolute; top: 1.6rem; left: 8%; right: 8%; border-top: 2px dashed var(--line); z-index: 0; }
.how-steps li { counter-increment: how; position: relative; z-index: 1; display: flex; flex-direction: column; gap: .35rem; }
.how-ic { width: 3.2rem; height: 3.2rem; border-radius: 1rem; display: grid; place-items: center; font-size: 1.35rem; background: var(--sec); color: #fff; box-shadow: 0 0 0 6px var(--bs-body-bg); position: relative; margin-bottom: .4rem; }
.how-ic::after { content: counter(how); position: absolute; top: -.45rem; right: -.45rem; width: 1.35rem; height: 1.35rem; border-radius: 50%; background: var(--accent); color: #2a1800; font: 800 .75rem/1.35rem var(--heading-font); text-align: center; }
.how-steps strong { font-family: var(--heading-font); font-size: 1.08rem; }
.how-steps span:last-child { color: var(--ink-soft); font-size: .92rem; max-width: 30ch; }
.how-steps-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.how-steps-4::before { left: 6%; right: 6%; }
@media (min-width: 768px) and (max-width: 1199.98px) {
  .how-steps-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.75rem; }
  .how-steps-4::before { display: none; }
}
@media (max-width: 767.98px) {
  .how-steps { grid-template-columns: 1fr; gap: 1rem; }
  .how-steps::before { top: 1rem; bottom: 1rem; left: 1.6rem; right: auto; border-top: 0; border-left: 2px dashed var(--line); }
  .how-steps li { display: grid; grid-template-columns: 3.2rem 1fr; column-gap: 1rem; }
  .how-ic { grid-row: span 2; margin: 0; }
}

/* ---- Bands */
.hire-band { box-shadow: var(--lift); }
.sos-hero { box-shadow: 0 16px 36px -22px rgba(214, 40, 57, .8); }
.join-band { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem;
  padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: 1.5rem; background: var(--night); color: #fff; }
.join-band h2 { color: #fff; }
.join-band p { color: rgba(255, 255, 255, .78); max-width: 38rem; }
.join-band-text { position: relative; z-index: 1; }
.join-band .btn { position: relative; z-index: 1; }
.join-kolam { z-index: 0; width: 22rem; right: -5rem; top: 50%; transform: translateY(-50%); color: rgba(255, 255, 255, .1); }

/* ---- Real reviews */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 991.98px) { .quotes { grid-template-columns: 1fr; } }
.quote { margin: 0; padding: 1.25rem 1.3rem; border-radius: 1.25rem; background: var(--card); border: 1px solid var(--line); box-shadow: var(--lift); display: flex; flex-direction: column; }
.quote blockquote { font-size: 1.02rem; line-height: 1.5; flex: 1 1 auto; position: relative; padding-top: .9rem; }
.quote blockquote::before { content: "\201C"; position: absolute; top: -1.1rem; left: -.15rem; font: 800 3.2rem/1 var(--heading-font); color: var(--accent); opacity: .55; }
.quote figcaption { display: flex; gap: .65rem; align-items: center; font-size: .9rem; }

/* ---- Cards lift a little on hover */
.service-card, .pro-pick, .quick-tile { box-shadow: 0 1px 2px rgba(20, 33, 46, .04); transition: border-color .15s ease, box-shadow .2s ease, transform .2s ease; }
.service-card:hover, .pro-pick:hover, .quick-tile:hover { box-shadow: var(--lift-hover); transform: translateY(-2px); }

/* ---- Footer on the night colour */
.footer { background: var(--night) !important; color: rgba(255, 255, 255, .8); border-top: 0 !important; position: relative; }
.footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--brand), var(--accent)); }
.footer h2 { color: #fff; font-size: .95rem; margin-bottom: .8rem; }
.footer a, .footer .btn-link { color: rgba(255, 255, 255, .72) !important; }
.footer a:hover, .footer .btn-link:hover { color: var(--accent) !important; }
.footer .text-body-secondary { color: rgba(255, 255, 255, .62) !important; }
.footer .btn-link.fw-bold { color: #fff !important; }
.footer .brand-word { color: #fff; }
.join-kolam .kolam-dots { opacity: .5; }

/* ---- Side rail in deep peacock (customers) or night (pros), matching the hero */
.has-rail { --rail-bg: var(--peacock-deep); }
.has-rail.in-pro { --rail-bg: var(--night); }
.rail { background: linear-gradient(180deg, #0a6f78 0%, var(--rail-bg) 60%); border-right: 0; }
.in-pro .rail, .rail.rail-pro { background: linear-gradient(180deg, #1d2e3f 0%, var(--night) 60%); }
@media (min-width: 768px) {
  .has-rail .app-shell { background: linear-gradient(90deg, var(--rail-bg) 5.25rem, transparent 5.25rem); }
}
.rail .rail-link { color: rgba(255, 255, 255, .72); }
.rail .rail-link:hover { color: #fff; }
.rail .rail-link:hover .bi { background: rgba(255, 255, 255, .1); }
.rail .rail-link.active { color: #fff; }
.rail .rail-link.active .bi { background: #fff; color: var(--brand); box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .5); }
.in-pro .rail .rail-link.active .bi { background: var(--accent); color: #2a1800; }
.rail .rail-link.rail-sos { color: #ffb3bb; }
.rail .rail-link.rail-sos .bi { background: var(--sos); color: #fff; }
.rail .rail-link.rail-switch .bi { background: rgba(var(--accent-rgb), .22); color: var(--accent); }
.rail .rail-foot { border-top-color: rgba(255, 255, 255, .16); }
.rail .rail-tag { color: #2a1800; }
.rail .rail-logo .brand-logo { filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .35)); }
.rail .dropdown-menu .dropdown-item { color: var(--ink); }
[data-bs-theme="dark"] .rail .rail-link.active .bi { background: var(--brand); color: #04201d; }

/* ---- Pro dashboard header on the night colour */
.pro-head { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(120deg, #1d2e3f, var(--night)); color: #fff; }
.pro-head-inner { position: relative; z-index: 1; padding-block: 1.6rem 1.7rem; }
.pro-head h1 { color: #fff; }
.pro-head .text-body-secondary { color: rgba(255, 255, 255, .7) !important; }
.pro-head-kolam { z-index: 0; width: 20rem; right: -4rem; top: 50%; transform: translateY(-50%); color: rgba(255, 255, 255, .1); }
.pro-head-kolam .kolam-dots { opacity: .55; }
.pro-head::after { content: ""; position: absolute; inset: auto 0 0 0; height: 4px; background: repeating-linear-gradient(90deg, var(--accent) 0 18px, transparent 18px 26px); }

/* =====================================================================
   Wallet, pay-on-approval and launch offers
   ===================================================================== */
/* ---- Launch offer ribbon */
.launch-offer { display: flex; align-items: center; gap: .75rem; padding: .65rem .9rem .65rem .65rem; border-radius: 1rem;
  background: linear-gradient(100deg, #fff4d6, #ffe7b0); color: #3d2a00; border: 1px solid #f3cf7a; }
.launch-offer-icon { flex: 0 0 auto; width: 2.4rem; height: 2.4rem; border-radius: .8rem; display: grid; place-items: center; font-size: 1.15rem; background: var(--accent); color: #2a1800; }
.launch-offer-text { display: flex; flex-direction: column; line-height: 1.3; font-size: .85rem; }
.launch-offer-text strong { font-size: .95rem; }
.launch-offer-pro { background: linear-gradient(100deg, #e2f4f5, #cdeef0); border-color: #a6dde1; color: #063a3f; }
.launch-offer-pro .launch-offer-icon { background: var(--brand); color: #fff; }
.launch-offer-hero { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .28); color: #fff; backdrop-filter: blur(4px); padding-block: .45rem; }
.launch-offer-hero .launch-offer-text span { color: rgba(255, 255, 255, .82); }
a:hover > .launch-offer-hero { background: rgba(255, 255, 255, .18); }
[data-bs-theme="dark"] .launch-offer:not(.launch-offer-hero) { background: #3a2c0c; border-color: #6b5214; color: #ffe6ad; }
[data-bs-theme="dark"] .launch-offer-pro { background: #0f3236; border-color: #1d5a60; color: #c9f1f3; }

/* ---- Wallet card */
.wallet-card { position: relative; overflow: hidden; isolation: isolate; border-radius: 1.5rem; color: #fff;
  background: radial-gradient(110% 90% at 90% 0%, #0f97a1 0%, transparent 60%), linear-gradient(150deg, #0a7c86, var(--peacock-deep)); box-shadow: var(--lift); }
.wallet-card-inner { position: relative; z-index: 1; padding: 1.5rem 1.5rem 1.25rem; }
.wallet-kolam { z-index: 0; width: 17rem; right: -4rem; top: -3rem; color: rgba(255, 255, 255, .14); }
.wallet-kolam .kolam-dots { opacity: .6; }
.wallet-label { font-size: .85rem; color: rgba(255, 255, 255, .8); }
.wallet-amount { font-size: clamp(2.2rem, 6vw, 3rem); font-weight: 800; line-height: 1.1; margin-bottom: 1rem; }
.wallet-split { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.wallet-split > div { display: flex; flex-direction: column; gap: .1rem; padding: .7rem .85rem; border-radius: 1rem; background: rgba(255, 255, 255, .12); }
.wallet-split span { font-size: .8rem; color: rgba(255, 255, 255, .8); }
.wallet-split strong { font-family: var(--heading-font); font-size: 1.3rem; }
.wallet-split small { font-size: .72rem; color: rgba(255, 255, 255, .7); line-height: 1.3; }
.topup-presets { display: flex; flex-wrap: wrap; gap: .5rem; }
.topup-chip { border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; padding: .4rem .9rem; font-weight: 700; font-size: .9rem; }
.topup-chip:hover, .topup-chip.active { border-color: var(--brand); background: var(--bs-primary-bg-subtle); color: var(--brand); }
.tx-list { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: 1rem; background: var(--card); overflow: hidden; }
.tx { display: flex; align-items: center; gap: .8rem; padding: .75rem 1rem; border-bottom: 1px solid var(--line); }
.tx:last-child { border-bottom: 0; }
.tx-icon { flex: 0 0 auto; width: 2.3rem; height: 2.3rem; border-radius: .75rem; display: grid; place-items: center; background: var(--surface); color: var(--ink-soft); }
.tx-credit .tx-icon { background: #e3f5ea; color: #1d7a4b; }
[data-bs-theme="dark"] .tx-credit .tx-icon { background: #133622; color: #7fdcaa; }
.tx-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.tx-title { font-weight: 600; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx-meta { font-size: .76rem; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.tx-tag { padding: 0 .45rem; border-radius: 999px; background: rgba(var(--accent-rgb), .16); color: #8a5a00; font-weight: 600; }
[data-bs-theme="dark"] .tx-tag { color: #ffd27a; }
.tx-amount { font-family: var(--heading-font); font-weight: 800; white-space: nowrap; }
.tx-credit .tx-amount { color: #1d7a4b; }
[data-bs-theme="dark"] .tx-credit .tx-amount { color: #7fdcaa; }
.wallet-how, .pay-checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; font-size: .88rem; }
.wallet-how li, .pay-checklist li { display: grid; grid-template-columns: 1.6rem 1fr; gap: .4rem; align-items: start; }
.wallet-how .bi, .pay-checklist .bi { color: var(--brand); font-size: 1.05rem; }
.withdrawals li { display: flex; justify-content: space-between; gap: .5rem; padding: .45rem 0; border-top: 1px dashed var(--line); }
.withdraw-route { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .5rem; counter-reset: wr; }
.withdraw-route li { display: grid; grid-template-columns: 2.2rem 1fr; gap: .6rem; align-items: start; padding: .7rem .8rem; border-radius: .9rem; background: var(--surface); font-size: .86rem; }
.withdraw-route .bi { width: 2.2rem; height: 2.2rem; border-radius: .7rem; display: grid; place-items: center; background: var(--card); color: var(--brand); }
.withdraw-route strong { display: block; }

/* ---- Review and pay */
.pay-step { padding: .9rem 1rem; border-radius: 1rem; background: var(--surface); }
.pay-note { margin: .9rem 0 0; padding: .7rem .9rem; border-left: 3px solid var(--brand); background: var(--bs-primary-bg-subtle); border-radius: 0 .7rem .7rem 0; font-size: .92rem; }
.pay-card { box-shadow: var(--lift); border-color: rgba(var(--brand-rgb), .3); }
.wallet-use { display: flex; align-items: center; gap: .75rem; padding: .8rem .9rem; border: 1px solid rgba(var(--brand-rgb), .35); border-radius: 1rem; background: var(--bs-primary-bg-subtle); cursor: pointer; }
.wallet-use .form-check-input { margin: 0; flex: 0 0 auto; width: 1.3rem; height: 1.3rem; }
.pay-split { padding: .55rem .75rem; border-radius: .8rem; background: var(--surface); }
.confirm-check { display: flex; gap: .6rem; padding: .75rem .9rem; border: 1px dashed var(--line); border-radius: .9rem; }
.confirm-check .form-check-input { margin: .15rem 0 0; flex: 0 0 auto; }
.confirm-check:has(:checked) { border-style: solid; border-color: #24935a; background: rgba(36, 147, 90, .06); }

/* ---- Contract summary */
.escrow-figures .paid strong, .escrow-figures .paid span { color: #1d7a4b; }
[data-bs-theme="dark"] .escrow-figures .paid strong, [data-bs-theme="dark"] .escrow-figures .paid span { color: #7fdcaa; }
.contract-progress { height: .5rem; border-radius: 999px; background: var(--surface); overflow: hidden; }
.contract-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), #24935a); }
.milestone-cancelled, .milestone-refunded { opacity: .6; }
.milestone-cancelled h3 { text-decoration: line-through; }
.milestone-released { border-color: rgba(36, 147, 90, .4); }

/* ---- First-visit language banner (language picked from the visitor's state) */
.locale-banner { background: var(--bs-primary-bg-subtle); border-bottom: 1px solid var(--bs-primary-border-subtle); }
.locale-banner-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem .75rem; padding: .45rem clamp(.75rem, 2vw, 1.5rem); }
.locale-banner-text { font-size: .88rem; color: var(--bs-primary-text-emphasis); }
.locale-banner-text .bi { color: var(--brand); }
.locale-banner-actions { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.locale-banner .btn-sm { border-radius: 999px; padding-inline: .8rem; }

/* =====================================================================
   Feedback: toasts, field errors, error summary, busy buttons
   ===================================================================== */
.toast-region { position: fixed; z-index: 1090; top: 4.6rem; right: 1rem; width: min(24rem, calc(100vw - 1.5rem));
  display: flex; flex-direction: column; gap: .55rem; pointer-events: none; }
.no-rail .toast-region { top: 7.4rem; }                     /* visitors: top bar + menu strip */
@media (max-width: 575.98px) {
  .toast-region { right: .75rem; left: .75rem; width: auto; top: 4rem; }
  .no-rail .toast-region { top: 6.7rem; }
}

.app-toast { --tone: var(--brand); position: relative; overflow: hidden; pointer-events: auto;
  display: grid; grid-template-columns: auto 1fr auto; gap: .7rem; align-items: start;
  padding: .8rem .65rem .85rem .85rem; border-radius: 1rem; background: var(--card); color: var(--ink);
  border: 1px solid var(--line); border-left: 4px solid var(--tone); box-shadow: 0 18px 40px -18px rgba(20, 33, 46, .45), 0 2px 6px rgba(20, 33, 46, .06);
  opacity: 0; transform: translateY(-10px) scale(.98); transition: opacity .22s ease, transform .22s cubic-bezier(.2, .8, .2, 1); }
.app-toast.is-in { opacity: 1; transform: none; }
.app-toast.is-out { opacity: 0; transform: translateX(16px); }
.app-toast-success { --tone: #1d7a4b; }
.app-toast-error   { --tone: var(--sos); }
.app-toast-warning { --tone: #b7791f; }
.app-toast-info    { --tone: var(--brand); }
[data-bs-theme="dark"] .app-toast-success { --tone: #4cc38a; }
[data-bs-theme="dark"] .app-toast-warning { --tone: #f0b44c; }
.app-toast-icon { width: 2rem; height: 2rem; border-radius: .65rem; display: grid; place-items: center; font-size: 1.05rem;
  color: var(--tone); background: color-mix(in srgb, var(--tone) 13%, transparent); }
.app-toast-body { min-width: 0; line-height: 1.35; padding-top: .05rem; }
.app-toast-title { display: block; font-size: .92rem; }
.app-toast-message { font-size: .88rem; color: var(--ink-soft); overflow-wrap: anywhere; }
.app-toast-close { border: 0; background: transparent; color: var(--ink-soft); width: 1.9rem; height: 1.9rem; border-radius: .6rem; display: grid; place-items: center; }
.app-toast-close:hover { background: var(--surface); color: var(--ink); }
.app-toast-timer { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--tone); opacity: .45; transform-origin: left; display: none; }
.app-toast.has-timer .app-toast-timer { display: block; animation: toast-timer linear forwards; }
.app-toast.is-paused .app-toast-timer { animation-play-state: paused; }
@keyframes toast-timer { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { .app-toast { transition: none; } .app-toast-timer { display: none !important; } }

/* ---- Field errors */
.invalid-feedback { font-size: .84rem; font-weight: 500; margin-top: .35rem; }
.invalid-feedback::before { content: ""; display: inline-block; width: .42rem; height: .42rem; border-radius: 50%; background: currentColor; margin-right: .45rem; vertical-align: .08rem; }
.form-control.is-invalid, .form-select.is-invalid { background-color: color-mix(in srgb, var(--bs-form-invalid-border-color) 4%, var(--bs-body-bg)); }
.form-control.is-invalid:focus, .form-select.is-invalid:focus { box-shadow: 0 0 0 .2rem rgba(214, 40, 57, .16); }
.is-invalid + .select2-container--bootstrap-5 .select2-selection { border-color: var(--bs-form-invalid-border-color) !important; }
.input-group > .is-invalid { z-index: 3; }
.form-check-input.is-invalid ~ .form-check-label { color: inherit; }

/* ---- Error summary at the top of a form */
.form-errors { display: flex; gap: .75rem; align-items: flex-start; padding: .85rem 1rem; margin-bottom: 1.1rem; border-radius: 1rem;
  border: 1px solid rgba(214, 40, 57, .3); background: rgba(214, 40, 57, .06); color: var(--ink); outline: none; }
.form-errors:focus-visible { box-shadow: 0 0 0 .2rem rgba(214, 40, 57, .2); }
.form-errors-icon { color: var(--sos); font-size: 1.25rem; line-height: 1; margin-top: .1rem; }
.form-errors strong { display: block; margin-bottom: .2rem; }
.form-errors ul { margin: 0; padding-left: 1.1rem; font-size: .9rem; }
.form-errors-link { color: inherit; text-decoration: underline dotted; text-underline-offset: 3px; }
.form-errors-link:hover { color: var(--sos); }

/* ---- Busy buttons */
button[aria-busy="true"], input[aria-busy="true"] { cursor: progress; opacity: .85; }
button[aria-busy="true"] .spinner-border { vertical-align: -.15em; }

/* =====================================================================
   Sign up / log in, pricing and legal pages
   ===================================================================== */
/* ---- Auth */
.auth-shell { max-width: 480px; }
.auth-shell-wide { max-width: 1040px; }
.auth-card { background: var(--card); border: 1px solid var(--line); border-radius: 1.25rem; padding: 1.75rem; box-shadow: var(--lift); }
.auth-card-head { margin-bottom: 1.5rem; }
.role-choice { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.role-option { position: relative; display: flex; flex-direction: column; gap: .6rem; padding: 1rem; border: 1.5px solid var(--line); border-radius: 1rem; cursor: pointer;
  background: var(--card); transition: border-color .15s, background-color .15s, box-shadow .15s; }
.role-option:hover { border-color: var(--bs-primary-border-subtle); }
.role-radio { position: absolute; opacity: 0; pointer-events: none; }
.role-icon { width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border-radius: .8rem; font-size: 1.2rem; background: var(--surface); color: var(--ink-soft); transition: inherit; }
.role-text { display: flex; flex-direction: column; gap: .2rem; line-height: 1.35; }
.role-text strong { font-family: var(--heading-font); font-size: 1.05rem; }
.role-text small { color: var(--ink-soft); }
.role-check { position: absolute; top: .75rem; right: .75rem; width: 1.4rem; height: 1.4rem; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid var(--line); color: transparent; font-size: .8rem; transition: inherit; }
.role-option:has(.role-radio:checked) { border-color: var(--brand); background: var(--bs-primary-bg-subtle); box-shadow: 0 0 0 3px rgba(var(--brand-rgb), .12); }
.role-option:has(.role-radio:checked) .role-icon { background: var(--brand); color: #fff; }
.role-option:has(.role-radio:checked) .role-check { background: var(--brand); border-color: var(--brand); color: #fff; }
.role-option:has(.role-radio:focus-visible) { outline: 3px solid rgba(var(--brand-rgb), .45); outline-offset: 2px; }
[data-bs-theme="dark"] .role-option:has(.role-radio:checked) .role-icon,
[data-bs-theme="dark"] .role-option:has(.role-radio:checked) .role-check { color: #04201d; }
/* What changes with the chosen role (no JS needed) */
.auth-shell [data-for="pro"] { display: none; }
.auth-shell:has(#as_pro:checked) [data-for="pro"] { display: revert; }
.auth-shell:has(#as_pro:checked) [data-for="customer"] { display: none; }
.auth-aside { padding: 1.5rem; border-radius: 1.25rem; background: var(--surface); border: 1px solid var(--line); }
.auth-points { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.auth-points li { display: flex; gap: .6rem; align-items: flex-start; }
.auth-points .bi { color: var(--brand); margin-top: .15rem; }
.auth-steps { counter-reset: step; list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .65rem; }
.auth-steps li { counter-increment: step; display: flex; gap: .7rem; align-items: center; }
.auth-steps li::before { content: counter(step); flex: 0 0 1.7rem; height: 1.7rem; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; font-size: .85rem; background: var(--brand); color: #fff; }
@media (max-width: 575.98px) {
  .auth-card { padding: 1.25rem; border-radius: 1rem; }
  .role-choice { grid-template-columns: 1fr; }
  .role-option { flex-direction: row; align-items: center; padding: .85rem 2.6rem .85rem .85rem; }
  .role-check { top: 50%; transform: translateY(-50%); }
}

/* ---- Professional setup steps */
.setup-card { background: var(--card); border: 1px solid var(--line); border-radius: 1.1rem; padding: 1.25rem; box-shadow: var(--lift); }
.setup-steps { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.setup-card .setup-steps { margin-bottom: 0; }
.setup-step { position: relative; display: flex; gap: .6rem; align-items: flex-start; padding-top: .9rem; border-top: 3px solid var(--line); }
.setup-step.is-done { border-top-color: var(--brand); }
.setup-step.is-current { border-top-color: var(--accent); }
.setup-dot { flex: 0 0 1.7rem; height: 1.7rem; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .8rem;
  background: var(--surface); color: var(--ink-soft); border: 1.5px solid var(--line); }
.setup-step.is-done .setup-dot { background: var(--brand); border-color: var(--brand); color: #fff; }
.setup-step.is-current .setup-dot { background: var(--accent); border-color: var(--accent); color: #2a1800; }
.setup-label { display: flex; flex-direction: column; line-height: 1.3; font-size: .9rem; }
.setup-label small { color: var(--ink-soft); }
.setup-step:not(.is-done):not(.is-current) .setup-label strong { color: var(--ink-soft); font-weight: 600; }
@media (max-width: 767.98px) {
  .setup-steps { grid-template-columns: 1fr 1fr; row-gap: 1rem; }
}

/* ---- Offer services card on profile */
.offer-services { display: flex; gap: .9rem; align-items: center; flex-wrap: wrap; padding: 1rem; border-radius: 1rem; border: 1px dashed var(--bs-primary-border-subtle); background: var(--bs-primary-bg-subtle); }
.offer-services-icon { width: 2.5rem; height: 2.5rem; border-radius: .8rem; display: grid; place-items: center; background: var(--brand); color: #fff; font-size: 1.1rem; }

/* ---- Pricing */
.pricing-hero { padding: 3rem 0 2rem; background:
  radial-gradient(circle at 1px 1px, rgba(var(--brand-rgb), .16) 1.2px, transparent 1.6px) 0 0 / 22px 22px, var(--surface); border-bottom: 1px solid var(--line); }
.pricing-title { font-family: var(--heading-font); font-weight: 800; font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.1; margin-bottom: .6rem; }
.pricing-lead { color: var(--ink-soft); font-size: 1.1rem; max-width: 36rem; margin: 0 auto 1.75rem; }
.pricing-switch { display: inline-flex; gap: .25rem; padding: .3rem; border-radius: 999px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--lift); }
.pricing-switch .nav-link { border-radius: 999px; padding: .55rem 1.2rem; font-weight: 600; color: var(--ink-soft); display: inline-flex; gap: .45rem; align-items: center; }
.pricing-switch .nav-link.active { background: var(--brand); color: #fff; }
[data-bs-theme="dark"] .pricing-switch .nav-link.active { color: #04201d; }
.pricing-body { padding-top: 2.5rem; max-width: 1100px; }
.pricing-offer { max-width: 640px; }
.pricing-h2 { font-family: var(--heading-font); font-size: 1.5rem; font-weight: 700; text-align: center; margin: 3.5rem 0 1.25rem; }

.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; align-items: stretch; max-width: 1040px; margin-inline: auto; }
.plan-grid-start { margin-inline: 0; }
.plan-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 1.25rem; padding: 1.5rem; position: relative; }
.plan-card-highlight { border: 2px solid var(--brand); box-shadow: 0 18px 40px -22px rgba(var(--brand-rgb), .55); }
.plan-card-highlight::before { content: ""; position: absolute; inset: -2px -2px auto; height: 6px; border-radius: 1.25rem 1.25rem 0 0;
  background: repeating-linear-gradient(90deg, var(--accent) 0 14px, transparent 14px 20px); }
.plan-card-current { border-color: var(--brand); }
.plan-name { font-family: var(--heading-font); font-size: 1.3rem; font-weight: 700; margin: 0; }
.plan-name .bi { color: var(--brand); }
.plan-tag { font-size: .75rem; font-weight: 700; padding: .25rem .6rem; border-radius: 999px; background: #fff0cc; color: #6b4500; white-space: nowrap; }
.plan-tag-current { background: var(--bs-primary-bg-subtle); color: var(--bs-primary-text-emphasis); }
[data-bs-theme="dark"] .plan-tag { background: #3a2c0c; color: #ffd98a; }
.plan-price { margin: 1rem 0 .35rem; display: flex; align-items: baseline; gap: .35rem; }
.plan-amount { font-family: var(--heading-font); font-weight: 800; font-size: 2.6rem; line-height: 1; letter-spacing: -.01em; }
.plan-per { color: var(--ink-soft); }
.plan-note { color: var(--ink-soft); font-size: .9rem; margin: 0; }
.plan-card-head { padding-bottom: 1.1rem; margin-bottom: 1.1rem; border-bottom: 1px solid var(--line); }
.plan-perks { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .65rem; font-size: .93rem; }
.plan-perks li { display: flex; gap: .55rem; align-items: flex-start; }
.plan-perks .bi { color: var(--brand); font-size: 1rem; margin-top: .1rem; flex: 0 0 auto; }
.plan-cta { margin-top: auto; }
.plan-cta form { margin: 0; }

.pricing-example { display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: center; justify-content: space-between; margin: 2rem auto 0; max-width: 1040px;
  padding: 1.25rem 1.5rem; border-radius: 1.1rem; background: var(--surface); border: 1px solid var(--line); }
.pricing-example > div:first-child { flex: 1 1 22rem; }
.pricing-example-figures { display: flex; gap: .75rem; margin: 0; }
.pricing-example-figures > div { padding: .6rem 1rem; border-radius: .9rem; background: var(--card); border: 1px solid var(--line); min-width: 8.5rem; }
.pricing-example-figures .is-pro { border-color: var(--brand); }
.pricing-example-figures dt { font-size: .8rem; font-weight: 600; color: var(--ink-soft); }
.pricing-example-figures dd { margin: 0; font-family: var(--heading-font); font-size: 1.35rem; font-weight: 700; }

.compare-wrap { max-width: 820px; margin: 0 auto; border: 1px solid var(--line); border-radius: 1.1rem; background: var(--card); }
.compare-table { --bs-table-bg: transparent; }
.compare-table th, .compare-table td { padding: .85rem 1rem; }
.compare-table thead th { font-family: var(--heading-font); font-size: 1.05rem; border-bottom-width: 1px; }
.compare-table tbody th { font-weight: 500; color: var(--ink); }
.compare-table td, .compare-table thead th:not(:first-child) { text-align: center; width: 28%; }
.compare-table .is-pro { background: rgba(var(--brand-rgb), .06); font-weight: 600; }
.compare-table tr:last-child > * { border-bottom: 0; }
.compare-yes { color: var(--brand); font-size: 1.15rem; }
.compare-no { color: var(--ink-soft); }

.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: .6rem; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: .9rem; padding: 0 1.1rem; }
.faq-item summary { cursor: pointer; padding: 1rem 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--brand); transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--ink-soft); padding-bottom: 1rem; margin: 0; }

.pro-badge { display: inline-flex; align-items: center; gap: .25rem; font-size: .72rem; font-weight: 700; padding: .2rem .5rem; border-radius: 999px;
  background: linear-gradient(120deg, var(--brand), var(--brand-dark)); color: #fff; vertical-align: middle; }
[data-bs-theme="dark"] .pro-badge { color: #04201d; }
.plan-meter { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; align-items: center; font-size: .88rem; padding: .6rem .85rem;
  border-radius: .8rem; background: var(--surface); border: 1px solid var(--line); margin-bottom: 1rem; }
.plan-meter-out { background: #fff4e0; border-color: #f3cf7a; color: #5a3b00; }
[data-bs-theme="dark"] .plan-meter-out { background: #3a2c0c; border-color: #6b5214; color: #ffe6ad; }

/* ---- Legal pages */
.legal-hero { background: var(--surface); border-bottom: 1px solid var(--line); padding: 2.25rem 0 1.75rem; }
.legal-container { max-width: 1080px; }
.legal-tabs { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; padding: 0; margin: 0 0 1.25rem; }
.legal-tabs a { display: inline-block; padding: .35rem .8rem; border-radius: 999px; text-decoration: none; color: var(--ink-soft); border: 1px solid var(--line); background: var(--card); font-weight: 500; }
.legal-tabs a:hover { color: var(--brand); border-color: var(--bs-primary-border-subtle); }
.legal-tabs a.active { background: var(--ink); color: var(--card); border-color: var(--ink); }
.legal-title { font-family: var(--heading-font); font-weight: 800; font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: .35rem; }
.legal-lead { font-size: 1.1rem; color: var(--ink-soft); max-width: 40rem; margin-bottom: .75rem; }
.legal-meta { font-size: .85rem; color: var(--ink-soft); margin: 0; }
.legal-body { padding-top: 2rem; padding-bottom: 1rem; }
.legal-language { display: flex; gap: .6rem; align-items: flex-start; padding: .8rem 1rem; border-radius: .9rem; background: var(--bs-primary-bg-subtle); color: var(--bs-primary-text-emphasis); margin-bottom: 1.75rem; font-size: .92rem; }
.legal-grid { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 3rem; align-items: start; }
.legal-grid:has(> .legal-doc:only-child) { grid-template-columns: minmax(0, 1fr); }
.legal-toc { position: sticky; top: 6rem; font-size: .88rem; }
.legal-toc-title { font-weight: 700; margin-bottom: .5rem; }
.legal-toc ol { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.legal-toc a { display: block; padding: .3rem 0 .3rem .85rem; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-soft); text-decoration: none; }
.legal-toc a:hover { color: var(--brand); border-left-color: var(--brand); }
.legal-doc { max-width: 68ch; font-size: 1rem; line-height: 1.7; }
.legal-doc section { scroll-margin-top: 6rem; padding-bottom: .75rem; }
.legal-doc section + section { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.legal-doc h2 { font-family: var(--heading-font); font-size: 1.3rem; font-weight: 700; margin-bottom: .75rem; }
.legal-doc ul { padding-left: 1.2rem; }
.legal-doc li { margin-bottom: .45rem; }
.legal-doc li::marker { color: var(--brand); }
.legal-summary { list-style: none; padding: 1rem 1.25rem !important; border-radius: 1rem; background: var(--surface); border: 1px solid var(--line); }
.legal-summary li { position: relative; padding-left: 1.6rem; }
.legal-summary li::before { content: "\F26E"; font-family: "bootstrap-icons"; position: absolute; left: 0; color: var(--brand); }
.legal-table { font-size: .92rem; --bs-table-bg: transparent; }
.legal-table thead th { font-size: .82rem; color: var(--ink-soft); font-weight: 600; }
.legal-contact { padding: 1rem 1.25rem; border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 .9rem .9rem 0; font-style: normal; }
.legal-callouts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-bottom: 2rem; }
.legal-callouts > div { padding: 1rem; border-radius: 1rem; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: .2rem; line-height: 1.4; }
.legal-callouts strong { font-family: var(--heading-font); font-size: 1.25rem; color: var(--brand); }
.legal-callouts span { font-size: .88rem; color: var(--ink-soft); }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 2rem; max-width: none; }
.contact-tile { padding: 1.25rem; border-radius: 1.1rem; border: 1px solid var(--line); background: var(--card); }
.contact-tile p { font-size: .92rem; color: var(--ink-soft); }
.contact-icon { width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border-radius: .8rem; background: var(--bs-primary-bg-subtle); color: var(--brand); font-size: 1.15rem; margin-bottom: .75rem; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.footer-legal-links { display: flex; flex-wrap: wrap; gap: 1.1rem; }
.footer-legal-links a { color: var(--ink-soft); text-decoration: none; }
.footer-legal-links a:hover { color: var(--brand); }
.topbar-login { font-weight: 600; }
@media (max-width: 991.98px) {
  .legal-grid { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .legal-toc { position: static; }
  .legal-toc ol { columns: 2; column-gap: 1.5rem; }
}
@media (max-width: 767.98px) {
  .legal-callouts, .contact-grid { grid-template-columns: 1fr; }
  .legal-doc { max-width: none; }
  .legal-toc ol { columns: 1; }
  .pricing-switch .nav-link { padding: .5rem .9rem; font-size: .92rem; }
  .pricing-example-figures { width: 100%; }
  .pricing-example-figures > div { flex: 1; min-width: 0; }
}
@media (max-width: 575.98px) {
  .compare-table { font-size: .84rem; }
  .compare-table th, .compare-table td { padding: .65rem .5rem; }
  .compare-table td, .compare-table thead th:not(:first-child) { width: 26%; overflow-wrap: anywhere; }
}

/* =====================================================================
   Proof of work, file chips, chat media, public pro page, admin controls
   ===================================================================== */
/* ---- File picker (proof of work, chat) */
.proof-field { position: relative; }
.proof-input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.proof-drop { display: flex; gap: .85rem; align-items: center; padding: 1rem; border: 1.5px dashed var(--bs-primary-border-subtle); border-radius: 1rem;
  background: var(--bs-primary-bg-subtle); cursor: pointer; transition: border-color .15s, background-color .15s; }
.proof-drop:hover, .proof-field.is-dragging .proof-drop { border-color: var(--brand); background: rgba(var(--brand-rgb), .14); }
.proof-input:focus-visible + * , .proof-field:has(.proof-input:focus-visible) .proof-drop { outline: 3px solid rgba(var(--brand-rgb), .45); outline-offset: 2px; }
.proof-drop-icon { width: 2.6rem; height: 2.6rem; border-radius: .8rem; display: grid; place-items: center; background: var(--brand); color: #fff; font-size: 1.2rem; flex: 0 0 auto; }
.proof-drop-text { display: flex; flex-direction: column; line-height: 1.35; }
.proof-drop-text small { color: var(--ink-soft); }
.proof-field:has(.proof-input.is-invalid) .proof-drop { border-color: var(--bs-danger); }
.file-chips { list-style: none; padding: 0; margin: .75rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .5rem; }
.file-chip { display: flex; align-items: center; gap: .55rem; padding: .4rem .45rem .4rem .4rem; border-radius: .8rem; background: var(--card); border: 1px solid var(--line); min-width: 0; }
.file-chip-thumb { flex: 0 0 2.6rem; height: 2.6rem; border-radius: .55rem; overflow: hidden; display: grid; place-items: center; background: var(--surface); color: var(--brand); font-size: 1.15rem; }
.file-chip-thumb img { width: 100%; height: 100%; object-fit: cover; }
.file-chip-meta { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.25; }
.file-chip-name { font-size: .82rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-chip-size { font-size: .75rem; color: var(--ink-soft); }
.file-chip-remove { flex: 0 0 auto; width: 1.9rem; height: 1.9rem; border-radius: 50%; border: 0; background: transparent; color: var(--ink-soft); display: grid; place-items: center; }
.file-chip-remove:hover { background: var(--surface); color: var(--bs-danger); }
[data-bs-theme="dark"] .proof-drop-icon { color: #04201d; }
.finish-card { border-color: rgba(25, 135, 84, .35); }

/* ---- Proof gallery */
.proof-gallery .proof-note { background: var(--surface); border-radius: .8rem; padding: .65rem .85rem; font-size: .92rem; margin-bottom: .75rem; }
.proof-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .5rem; }
.proof-grid li { aspect-ratio: 4 / 3; border-radius: .8rem; overflow: hidden; background: #000; }
.proof-grid img, .proof-grid video { width: 100%; height: 100%; object-fit: cover; display: block; }
.proof-image { display: block; height: 100%; }
.proof-image:hover img { opacity: .9; }

/* ---- Chat: several files per message */
.chat-compose { flex-direction: column; align-items: stretch; position: relative; }
.chat-compose-row { display: flex; align-items: flex-end; gap: .5rem; }
.chat-chips { margin: 0 0 .5rem; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.chat-drop-hint { display: none; position: absolute; inset: 0; border: 2px dashed var(--brand); border-radius: 1rem; background: rgba(var(--brand-rgb), .1);
  color: var(--brand); font-weight: 600; place-items: center; z-index: 2; pointer-events: none; }
.chat-compose.is-dragging .chat-drop-hint { display: grid; }
.msg-media { display: grid; gap: .3rem; margin: -.15rem -.2rem .35rem; }
.msg-media-grid { grid-template-columns: 1fr 1fr; }
.msg-media .msg-image img, .msg-video { width: 100%; max-height: 260px; object-fit: cover; border-radius: .7rem; display: block; background: #000; }
.msg-media-grid .msg-image img, .msg-media-grid .msg-video { height: 130px; }
.msg-audio { width: min(260px, 100%); height: 2.4rem; margin-bottom: .3rem; display: block; }
.msg-file { display: flex; align-items: center; gap: .45rem; padding: .5rem .65rem; border-radius: .7rem; background: rgba(0, 0, 0, .06); color: inherit; text-decoration: none; margin-bottom: .3rem; min-width: 0; }
.msg-mine .msg-file { background: rgba(255, 255, 255, .18); }
.msg-file .bi { font-size: 1.3rem; }
.msg-file-name { font-weight: 600; font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.msg-file-size { font-size: .75rem; opacity: .75; margin-left: auto; white-space: nowrap; }

/* ---- Booking: the pro the customer asked for */
.requested-pro { border-style: dashed; border-color: var(--bs-primary-border-subtle); background: var(--bs-primary-bg-subtle); }

/* ---- Public pro page */
.pro-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; margin: 1.25rem 0 0; }
.pro-facts > div { padding: .8rem .9rem; border-radius: 1rem; background: var(--surface); border: 1px solid var(--line); }
.pro-facts dt { font-size: .78rem; font-weight: 600; color: var(--ink-soft); }
.pro-facts dd { margin: .15rem 0 0; font-family: var(--heading-font); font-weight: 700; font-size: 1.35rem; line-height: 1.15; display: flex; flex-direction: column; }
.pro-facts dd small { font-family: var(--bs-body-font-family); font-weight: 400; font-size: .76rem; color: var(--ink-soft); margin-top: .15rem; }
.pro-bio { max-width: 68ch; }
.rating-bars { display: grid; gap: .3rem; max-width: 420px; }
.rating-bar { display: grid; grid-template-columns: 2.6rem 1fr 2rem; gap: .6rem; align-items: center; font-size: .85rem; }
.rating-bar-track { height: .5rem; border-radius: 999px; background: var(--surface); overflow: hidden; border: 1px solid var(--line); }
.rating-bar-track > span { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.pro-detail-list { margin-bottom: 1rem; }
.pro-detail-list dt { font-weight: 600; margin-top: .75rem; }
.pro-detail-list dt:first-child { margin-top: 0; }
.pro-detail-list dt .bi { color: var(--brand); }
.pro-detail-list dd { margin: .15rem 0 0 1.3rem; }
@media (max-width: 767.98px) { .pro-facts { grid-template-columns: 1fr 1fr; } }

/* ---- Pro area: paused / removed */
.pro-hold { background: #fff4e0; color: #5a3b00; border-bottom: 1px solid #f3cf7a; font-size: .92rem; }
.pro-hold .bi { font-size: 1.15rem; margin-top: .1rem; }
[data-bs-theme="dark"] .pro-hold { background: #3a2c0c; color: #ffe6ad; border-color: #6b5214; }

/* ---- Admin: professional / user pages */
.admin-pro-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.admin-pro-head form { margin: 0; }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .6rem; }
.admin-stat { padding: .7rem .9rem; border-radius: .9rem; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; }
.admin-stat span { font-size: .75rem; color: var(--ink-soft); font-weight: 600; }
.admin-stat strong { font-size: 1.15rem; }
.admin-dl dt { font-weight: 400; color: var(--ink-soft); }
.admin-dl dd { margin-bottom: .45rem; }
.admin-note { background: #fff8e6; border-radius: .6rem; padding: .4rem .6rem; }
.admin-note p { margin: 0; }
[data-bs-theme="dark"] .admin-note { background: #3a2c0c; }
.admin-services summary { list-style: none; cursor: pointer; border-bottom: 1px solid var(--line); }
.admin-services summary::-webkit-details-marker { display: none; }
.admin-services summary::before { content: "\F285"; font-family: "bootstrap-icons"; font-size: .7rem; margin-right: .4rem; display: inline-block; transition: transform .15s; }
.admin-services[open] summary::before { transform: rotate(90deg); }

/* ---- Confirm / alert dialog (replaces the browser's boxes) */
.confirm-modal .modal-dialog { max-width: 420px; }
.confirm-modal .modal-content { border: 0; border-radius: 1.25rem; box-shadow: 0 24px 60px -20px rgba(15, 30, 50, .45); overflow: hidden; }
.confirm-modal .modal-body { padding: 1.75rem 1.75rem .75rem; text-align: center; }
.confirm-icon { --tone: var(--brand); width: 3.4rem; height: 3.4rem; margin: 0 auto 1rem; border-radius: 50%; display: grid; place-items: center; font-size: 1.55rem;
  color: var(--tone); background: color-mix(in srgb, var(--tone) 14%, transparent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--tone) 6%, transparent); }
.confirm-danger .confirm-icon { --tone: var(--bs-danger); }
.confirm-warning .confirm-icon { --tone: #d98a00; }
.confirm-success .confirm-icon { --tone: var(--bs-success); }
.confirm-title { font-family: var(--heading-font); font-size: 1.25rem; font-weight: 700; margin-bottom: .4rem; overflow-wrap: anywhere; }
.confirm-message { color: var(--ink-soft); margin-bottom: .25rem; line-height: 1.5; overflow-wrap: anywhere; }
.confirm-details { font-size: .85rem; color: var(--ink-soft); background: var(--surface); border-radius: .7rem; padding: .5rem .75rem; margin: .75rem 0 0; }
.confirm-modal .modal-footer { border: 0; padding: .75rem 1.75rem 1.5rem; gap: .5rem; flex-wrap: nowrap; }
.confirm-modal .modal-footer .btn { flex: 1; margin: 0; padding-block: .6rem; font-weight: 600; border-radius: .8rem; }
.confirm-modal .confirm-cancel[hidden] { display: none; }
.confirm-warning .confirm-ok { color: #2a1800; }
@media (max-width: 575.98px) {
  .confirm-modal .modal-dialog { margin: auto .75rem 1rem; display: flex; align-items: flex-end; min-height: calc(100% - 1rem); }
  .confirm-modal .modal-content { border-radius: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) { .confirm-modal.fade .modal-dialog { transition: none; } }
.modal-backdrop { --bs-backdrop-bg: #0b1420; --bs-backdrop-opacity: .55; }
@supports (backdrop-filter: blur(2px)) { .modal-backdrop.show { backdrop-filter: blur(2px); } }

/* ---- Service cards: who's available instead of a price */
.service-card-foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding-top: .75rem; border-top: 1px dashed var(--line); }
.service-card-pros { font-size: .85rem; font-weight: 600; color: var(--ink); display: inline-flex; align-items: center; gap: .35rem; }
.service-card-pros .bi { color: var(--sec, var(--brand)); }
.service-card-pros.is-empty { color: var(--ink-soft); font-weight: 500; }
.service-card-go { color: var(--ink-soft); transition: transform .15s, color .15s; }
.service-card:hover .service-card-go { color: var(--brand); transform: translateX(2px); }
@media (prefers-reduced-motion: reduce) { .service-card-go { transition: none; } }

/* ---- Admin dashboard and disputes */
.metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: .75rem; }
.metric { border: 1px solid var(--line); border-radius: .8rem; padding: .8rem .9rem; background: var(--card); display: flex; flex-direction: column; }
.metric span { font-size: .78rem; color: var(--bs-secondary-color); }
.metric strong { font-size: 1.4rem; line-height: 1.2; }
.metric small { color: var(--bs-secondary-color); font-size: .75rem; }
.bar-list li { display: grid; grid-template-columns: minmax(4rem, 7rem) 1fr auto; gap: .5rem; align-items: center; font-size: .85rem; padding: .2rem 0; }
.bar-list .bar { height: .5rem; background: var(--bs-secondary-bg); border-radius: 999px; overflow: hidden; }
.bar-list .bar i { display: block; height: 100%; background: var(--brand); border-radius: 999px; }
.dispute-chat { max-height: 26rem; overflow-y: auto; display: flex; flex-direction: column-reverse; gap: .5rem; }
.dispute-chat li { padding: .45rem .7rem; border-radius: .7rem; max-width: 88%; background: var(--bs-secondary-bg); }
.dispute-chat li.is-customer { align-self: flex-start; }
.dispute-chat li.is-pro { align-self: flex-end; background: var(--bs-primary-bg-subtle); }
.dispute-chat li.is-system { align-self: center; background: transparent; border: 1px dashed var(--line); font-size: .85rem; }
.dispute-thumb { width: 72px; height: 72px; object-fit: cover; border-radius: .4rem; }
/* ---- Booking live status, extras, ratings, favourites */
.live-card { display: flex; gap: .9rem; align-items: flex-start; padding: 1rem 1.1rem; border-radius: 1rem; border: 1px solid var(--line); background: var(--card); }
.live-icon { flex: 0 0 auto; width: 2.6rem; height: 2.6rem; border-radius: .8rem; display: grid; place-items: center; font-size: 1.2rem; background: var(--bs-primary-bg-subtle); color: var(--brand); }
.live-moving { border-color: var(--bs-primary-border-subtle); background: linear-gradient(120deg, var(--bs-primary-bg-subtle), var(--card)); }
.live-moving .live-icon { background: var(--brand); color: #fff; animation: live-bob 1.6s ease-in-out infinite; }
.live-wait { border-color: #f3cf7a; background: #fff8e6; }
.live-wait .live-icon { background: var(--accent); color: #2a1800; }
.live-extra { border-color: rgba(25, 135, 84, .35); }
.live-extra .live-icon { background: #e2f5ea; color: var(--bs-success); }
[data-bs-theme="dark"] .live-wait { background: #3a2c0c; border-color: #6b5214; }
@keyframes live-bob { 50% { transform: translateY(-2px); } }
@media (prefers-reduced-motion: reduce) { .live-moving .live-icon { animation: none; } }
.otw-form { max-width: 26rem; margin-bottom: 1rem; }
.extra-card summary { list-style: none; cursor: pointer; }
.extra-card summary::-webkit-details-marker { display: none; }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: .15rem; border: 0; padding: 0; margin: 0; }
.star-input input { position: absolute; opacity: 0; pointer-events: none; }
.star-input label { font-size: 1.6rem; color: var(--line); cursor: pointer; line-height: 1; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: var(--accent); }
.star-input input:focus-visible + label { outline: 2px solid var(--brand); border-radius: .3rem; }
.mine-badge { background: var(--bs-danger-bg-subtle); color: var(--bs-danger-text-emphasis); font-weight: 600; }
/* ---- "How paying works" (hire banner) */
.hire-how-steps { list-style: none; counter-reset: hire; padding: 0; margin: 0 0 1rem; display: grid; gap: .9rem; }
.hire-how-steps li { counter-increment: hire; display: grid; grid-template-columns: 2rem 1fr; column-gap: .75rem; }
.hire-how-steps li::before { content: counter(hire); grid-row: span 2; width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--bs-primary-bg-subtle); color: var(--brand); font-weight: 700; }
.hire-how-steps strong { display: block; }
.hire-how-steps span { color: var(--ink-soft); font-size: .92rem; }
/* Bootstrap has no min-width utility; flex children need it so long text truncates instead of overflowing. */
.min-w-0 { min-width: 0; }
/* ---- Posted work list (Find work, public board) */
.work-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding-top: .9rem; padding-bottom: .9rem; }
.work-row-main { flex: 1 1 auto; min-width: 0; }
.work-row-title { display: block; }
.work-row-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.work-row-side { flex: 0 0 auto; text-align: end; display: flex; flex-direction: column; align-items: flex-end; gap: .3rem; }
@media (max-width: 575.98px) {
  .work-row { flex-direction: column; gap: .4rem; }
  .work-row-side { flex-direction: row; align-items: center; }
  .work-row-text { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
}
/* ---- Admin visitors */
.visit-chart { display: flex; align-items: flex-end; gap: 3px; height: 170px; }
.visit-day { flex: 1 1 0; min-width: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }
.visit-day small, .visit-n { font-size: .6rem; color: var(--bs-secondary-color); }
.visit-bars { position: relative; width: 100%; height: 120px; display: flex; align-items: flex-end; justify-content: center; }
.visit-bars i { position: absolute; bottom: 0; width: 70%; border-radius: 3px 3px 0 0; min-height: 1px; }
.v-views { background: var(--bs-primary-bg-subtle); }
.visit-bars .v-views { background: color-mix(in srgb, var(--brand) 30%, transparent); }
.visit-bars .v-people, .legend.v-people { background: var(--brand); }
.visit-bars .v-people { width: 40%; }
.legend { display: inline-block; width: .8rem; height: .8rem; border-radius: 2px; vertical-align: -1px; }
.legend.v-views { background: color-mix(in srgb, var(--brand) 30%, transparent); }
.visit-table td { vertical-align: top; }
tr.visit-break td { border-top: 2px solid var(--line); }
/* ---- Jobs board: applying and applicants */
.job-facts { display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin: 0; }
.job-facts dt { font-size: .8rem; font-weight: 400; color: var(--bs-secondary-color); }
.job-facts dd { margin: 0; font-family: var(--heading-font); font-weight: 700; font-size: 1.15rem; }
.apply-form .form-label { margin-bottom: .2rem; }
.applied-card { border-radius: .8rem; }
.app-steps { list-style: none; padding: 0; margin: 0; display: flex; gap: .25rem; counter-reset: s; }
.app-steps li { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: .25rem; font-size: .72rem; color: var(--bs-secondary-color); text-align: center; position: relative; }
.app-steps li + li::before { content: ""; position: absolute; top: .7rem; right: 50%; width: 100%; height: 2px; background: var(--line); z-index: 0; }
.app-steps li.done + li.done::before { background: var(--brand); }
.app-dot { position: relative; z-index: 1; width: 1.4rem; height: 1.4rem; border-radius: 50%; display: grid; place-items: center; background: var(--card); border: 2px solid var(--line); font-size: .7rem; }
.app-steps li.done { color: var(--bs-body-color); font-weight: 600; }
.app-steps li.done .app-dot { background: var(--brand); border-color: var(--brand); color: #fff; }
.app-end { display: inline-flex; gap: .4rem; align-items: center; font-size: .88rem; padding: .35rem .7rem; border-radius: 999px; background: var(--bs-secondary-bg); color: var(--bs-secondary-color); }
.applied-row { display: block; border: 1px solid var(--line); border-radius: .9rem; padding: 1rem 1.1rem; background: var(--card); }
a.applied-row:hover { border-color: var(--bs-primary-border-subtle); }
.job-pipeline { list-style: none; padding: 0; margin: .8rem 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.job-pipeline li { background: var(--bs-secondary-bg); border-radius: .6rem; padding: .45rem .6rem; display: flex; flex-direction: column; }
.job-pipeline strong { font-size: 1.05rem; }
.job-pipeline span { font-size: .72rem; color: var(--bs-secondary-color); }
.applicant-card { border: 1px solid var(--line); border-radius: .9rem; padding: 1rem 1.1rem; background: var(--card); }
.applicant-card.is-new { border-color: #f3cf7a; box-shadow: inset 3px 0 0 var(--accent); }
.applicant-head { display: flex; gap: .75rem; align-items: center; }
.applicant-facts { list-style: none; padding: 0; margin: .7rem 0 0; display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; font-size: .86rem; }
.applicant-facts li { color: var(--bs-secondary-color); }
.applicant-msg { margin: .6rem 0 0; padding: .55rem .75rem; border-radius: .6rem; background: var(--bs-secondary-bg); font-size: .9rem; overflow-wrap: anywhere; }
.applicant-actions { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-top: .8rem; }
.applicant-actions form { display: inline; }
.empty-hint { padding: 1rem; border: 1px dashed var(--line); border-radius: .8rem; color: var(--bs-secondary-color); }
.app-thread { display: flex; flex-direction: column; gap: .4rem; max-height: 32rem; overflow-y: auto; padding: .25rem 0; }
.app-thread .msg-system { justify-content: center; }
.app-thread .msg-system span { font-size: .78rem; color: var(--bs-secondary-color); background: var(--bs-secondary-bg); padding: .2rem .6rem; border-radius: 999px; }
.app-compose { border-top: 1px solid var(--line); margin-top: .75rem; padding-top: .75rem; }
.app-details { display: grid; grid-template-columns: auto 1fr; gap: .35rem .9rem; font-size: .9rem; margin-bottom: .8rem; }
.app-details dt { font-weight: 400; color: var(--bs-secondary-color); }
.app-details dd { margin: 0; }
@media (max-width: 575.98px) { .job-pipeline { grid-template-columns: repeat(2, 1fr); } }
/* ---- Temple management portal */
.manage-head { background: var(--surface); border-bottom: 1px solid var(--line); }
.manage-tabs { display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; margin-bottom: -1px; }
.manage-tabs::-webkit-scrollbar { display: none; }
.manage-tab { display: inline-flex; gap: .4rem; align-items: center; white-space: nowrap; padding: .55rem .85rem; color: var(--bs-secondary-color); text-decoration: none; border-bottom: 2px solid transparent; font-weight: 500; }
.manage-tab:hover { color: var(--bs-body-color); }
.manage-tab.active { color: var(--brand); border-bottom-color: var(--brand); }
.slot-line { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.slot-line:last-child { border-bottom: 0; }
.slot-meter { width: 6rem; height: .35rem; background: var(--bs-secondary-bg); border-radius: 999px; overflow: hidden; margin-top: .25rem; }
.slot-meter i { display: block; height: 100%; background: var(--brand); }
.gate-card { border-width: 2px; }
.gate-card.is-valid { border-color: var(--bs-success); }
.gate-card.is-used { border-color: var(--bs-warning); }
.gate-card.is-invalid { border-color: var(--bs-danger); }
.gate-persons { display: flex; flex-direction: column; align-items: center; font-size: 1.8rem; font-weight: 800; line-height: 1; }
.gate-persons small { font-size: .7rem; font-weight: 500; color: var(--bs-secondary-color); }
.manage-intro { border: 1px solid var(--line); border-radius: 1rem; padding: 1.4rem; background: var(--card); }
.manage-benefits { list-style: none; padding: 0; display: grid; gap: .5rem; margin: .8rem 0; }
.list-temple-band { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.2rem 1.4rem; border: 1px dashed var(--line); border-radius: 1rem; background: var(--surface); }
/* ---- Development toolbar (never shown in production) */
.dev-bar { position: fixed; left: .75rem; bottom: .75rem; z-index: 1080; display: flex; align-items: center; gap: .25rem; padding: .25rem .35rem; border-radius: 999px; background: #1f2937; color: #f9fafb; font-size: .75rem; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.dev-bar-tag { font-weight: 700; letter-spacing: .04em; padding: .1rem .5rem; border-radius: 999px; background: #f59e0b; color: #1f2937; }
.dev-bar-link { color: #f9fafb; text-decoration: none; padding: .15rem .5rem; border-radius: 999px; }
a.dev-bar-link:hover { background: rgba(255,255,255,.12); color: #fff; }
@media (max-width: 991.98px) { .dev-bar { bottom: 5rem; } }
@media print { .dev-bar { display: none; } }
/* ---- Test checkout (development) */
.test-checkout-banner { display: flex; flex-wrap: wrap; gap: .35rem; align-items: baseline; padding: .6rem .8rem; margin-bottom: 1rem; border-radius: .6rem; background: repeating-linear-gradient(-45deg, #fef3c7 0 12px, #fde68a 12px 24px); color: #78350f; font-size: .85rem; }
.test-methods { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; }
@media (max-width: 480px) { .test-methods { grid-template-columns: repeat(2, 1fr); } }
.test-method { position: relative; }
.test-method input { position: absolute; opacity: 0; }
.test-method span { display: flex; flex-direction: column; align-items: center; gap: .2rem; padding: .55rem .25rem; border: 1px solid var(--line); border-radius: .6rem; font-size: .8rem; cursor: pointer; }
.test-method input:checked + span { border-color: var(--brand); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 25%, transparent); color: var(--brand); font-weight: 600; }
.test-method input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
/* ---- Regular orders (milk, water, maid…) */
.qty-lg { max-width: 11rem; }
.qty-lg .form-control { font-size: 1.25rem; font-weight: 700; text-align: center; }
.choice-grid { display: grid; gap: .5rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 576px) { .choice-grid-3 { grid-template-columns: repeat(3, 1fr); } .choice-grid-4 { grid-template-columns: repeat(4, 1fr); } }
.choice { position: relative; margin: 0; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice > span { display: flex; flex-direction: column; gap: .15rem; height: 100%; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: .75rem; cursor: pointer; background: var(--bs-body-bg); transition: border-color .15s, box-shadow .15s; }
.choice > span small { color: var(--bs-secondary-color); font-size: .78rem; line-height: 1.3; }
.choice-window > span .bi { font-size: 1.3rem; color: var(--brand); margin-bottom: .15rem; }
.choice input:checked + span { border-color: var(--brand); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 22%, transparent); background: color-mix(in srgb, var(--brand) 5%, var(--bs-body-bg)); }
.choice input:focus-visible + span, .day-chip input:focus-visible + span, .date-chip input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.day-chips > label { margin-right: .3rem; }
.day-chip { position: relative; display: inline-block; }
.day-chip input { position: absolute; opacity: 0; }
.day-chip span { display: inline-flex; align-items: center; justify-content: center; min-width: 2.9rem; height: 2.4rem; padding: 0 .5rem; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-weight: 500; }
.day-chip input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.date-chips { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .25rem; scrollbar-width: thin; }
.date-chip { position: relative; flex: 0 0 auto; margin: 0; }
.date-chip input { position: absolute; opacity: 0; }
.date-chip span { display: flex; flex-direction: column; align-items: center; min-width: 4.4rem; padding: .4rem .5rem; border: 1px solid var(--line); border-radius: .65rem; cursor: pointer; }
.date-chip span small { color: var(--bs-secondary-color); font-size: .72rem; }
.date-chip input:checked + span { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, var(--bs-body-bg)); }
.date-chip input:checked + span small { color: var(--brand); }
.date-chip.is-disabled span { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
.plan-line { font-size: 1.05rem; font-weight: 600; margin-bottom: .75rem; min-height: 1.5rem; }
.plan-figures { margin: 0 0 .5rem; }
.plan-figures > div { display: flex; justify-content: space-between; padding: .3rem 0; border-bottom: 1px dashed var(--line); font-size: .9rem; }
.plan-figures dt { font-weight: 400; color: var(--bs-secondary-color); }
.plan-figures dd { margin: 0; font-weight: 600; }
.plan-total { display: flex; justify-content: space-between; align-items: baseline; padding: .6rem 0 .3rem; }
.plan-total strong { font-size: 1.5rem; }
.plan-perks { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .35rem; font-size: .82rem; color: var(--bs-secondary-color); }
.plan-perks .bi { color: var(--brand); margin-right: .25rem; }
.plan-figures > div[hidden], .plan-total[hidden] { display: none; }
.next-delivery { border-left: 4px solid var(--brand); }
.reg-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .35rem; }
.reg-day { border: 1px solid var(--line); border-radius: .6rem; overflow: hidden; display: flex; flex-direction: column; min-height: 5.2rem; background: var(--bs-body-bg); }
.reg-day-head { display: flex; flex-direction: column; align-items: center; padding: .25rem 0 .1rem; font-size: .7rem; color: var(--bs-secondary-color); }
.reg-day-head strong { font-size: 1rem; color: var(--bs-body-color); }
.reg-day.is-today .reg-day-head strong { color: var(--brand); }
.reg-day form { display: flex; flex: 1; }
.reg-day-btn, .reg-day-state { flex: 1; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem; border: 0; padding: .2rem; font-size: .66rem; line-height: 1.15; text-align: center; background: transparent; color: inherit; }
.reg-day-btn { cursor: pointer; }
.reg-day-btn:hover { filter: brightness(.95); }
.reg-day .bi { font-size: .95rem; }
.reg-day.is-deliver .reg-day-btn, .reg-day.is-deliver .reg-day-state { background: color-mix(in srgb, var(--brand) 10%, transparent); color: var(--brand); }
.reg-day.is-booked .reg-day-state, .reg-day.is-delivered .reg-day-state { background: color-mix(in srgb, var(--bs-success) 14%, transparent); color: var(--bs-success-text-emphasis); }
.reg-day.is-skipped .reg-day-btn, .reg-day.is-skipped .reg-day-state { background: color-mix(in srgb, var(--bs-danger) 10%, transparent); color: var(--bs-danger-text-emphasis); }
.reg-day.is-paused .reg-day-state { background: color-mix(in srgb, var(--bs-warning) 18%, transparent); color: var(--bs-warning-text-emphasis); }
.reg-day.is-off .reg-day-state { color: var(--bs-tertiary-color); }
@media (max-width: 575.98px) { .reg-day-btn span, .reg-day-state span { display: none; } .reg-day { min-height: 4rem; } }
.reg-legend { list-style: none; padding: 0; margin: .75rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem 1rem; }
.reg-legend i { display: inline-block; width: .7rem; height: .7rem; border-radius: .2rem; vertical-align: -.05rem; }
.reg-legend .is-deliver { background: color-mix(in srgb, var(--brand) 35%, transparent); }
.reg-legend .is-booked { background: color-mix(in srgb, var(--bs-success) 45%, transparent); }
.reg-legend .is-skipped { background: color-mix(in srgb, var(--bs-danger) 35%, transparent); }
.reg-legend .is-paused { background: color-mix(in srgb, var(--bs-warning) 55%, transparent); }
.reg-edit summary { list-style: none; cursor: pointer; }
.reg-edit summary::-webkit-details-marker { display: none; }
.reg-edit[open] summary .bi-chevron-down { transform: rotate(180deg); }
.regular-strip { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.regular-tile { display: flex; gap: .75rem; align-items: center; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: .8rem; text-decoration: none; color: inherit; background: var(--bs-body-bg); }
.regular-tile:hover { border-color: var(--brand); }
.round-list .is-done { background: color-mix(in srgb, var(--bs-success) 6%, var(--bs-body-bg)); }
.round-list .is-done .fw-semibold { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--bs-success) 60%, transparent); }
/* Regular orders: change a day, dues */
.reg-day-btn { position: relative; }
.reg-day-btn.is-selected { outline: 2px solid var(--brand); outline-offset: -2px; }
.reg-day-dot { position: absolute; top: .25rem; right: .3rem; width: .45rem; height: .45rem; border-radius: 50%; background: var(--bs-warning); }
.reg-legend .reg-day-dot { position: static; display: inline-block; }
.day-editor { margin-top: 1rem; padding: .9rem 1rem; border: 1px solid var(--brand); border-radius: .75rem; background: color-mix(in srgb, var(--brand) 5%, var(--bs-body-bg)); }
.day-editor .qty { width: 9rem; }
.dues-card.has-dues { border-left: 4px solid var(--bs-warning); }
.dues-card.is-clear { border-left: 4px solid var(--bs-success); }
.dues-amount { font-size: 1.8rem; font-weight: 800; line-height: 1.1; }
.round-qty { width: 5.5rem; }
.collect-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem; }
.bill-total { border-top: 2px solid var(--line); border-bottom-style: solid !important; font-weight: 700; }
.bill-total dt { color: var(--bs-body-color) !important; font-weight: 700 !important; }
.statement td, .statement th { font-size: .88rem; }
.statement-payment { background: color-mix(in srgb, var(--bs-success) 6%, transparent); }
.qty-select { min-width: 9rem; }

/* Admin → Email */
.inbox-list .list-group-item { border-left: 3px solid transparent; }
.inbox-list .inbox-unread { border-left-color: var(--bs-primary); background: rgba(var(--bs-primary-rgb), .04); }
.inbox-list .inbox-unread .inbox-from, .inbox-list .inbox-unread .inbox-subject { font-weight: 700; }
.inbox-from { max-width: 22rem; }
.inbox-dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--bs-primary); flex: none; }
.mail-frame { height: 32rem; min-height: 12rem; resize: vertical; background: #fff; display: block; }
.mail-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .95rem; }
.mail-text p { margin-bottom: .6rem; }
.mail-quote { color: var(--bs-secondary-color); }
.admin-aside { min-height: 100vh; }
@media (max-width: 991.98px) { .admin-aside { min-height: 0; border: 0 !important; } }
.inbox-filters .list-group-item.active { background: var(--brand); border-color: var(--brand); }
