:root {
    /* Modern Design Tokens */
    --color-primary: #f7941d;          /* RentHub360 orange */
    --color-primary-dark: #e07d0f;
    --color-text-primary: #111827;     /* High-contrast charcoal text */
    --color-text-secondary: #4b5563;
    --color-text-muted: #6b7280;
    --color-surface: #ffffff;
    --color-bg: #f9fafb;
    --color-border: #e5e7eb;

    /* Legacy Token Aliases (Restored for 100% backward compatibility) */
    --brand: var(--color-primary);
    --brand-dark: #e07d0f;
    --ink: var(--color-text-primary);
    --text: #1f2937;
    --text-muted: var(--color-text-muted);
    --bg: var(--color-bg);
    --card-bg: var(--color-surface);
    --border: var(--color-border);

    /* Feedback & Utility Tokens */
    --success: #1f9d55;
    --error: #d64545;
    --radius-sm: 4px;
    --radius: 8px;
    --radius-lg: 12px;

    /* Fluid Responsive Spacing */
    --section-spacing: clamp(40px, 6vw, 72px);

    /* Typography Stack */
    --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--color-text-primary);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: inherit;
}

button,
input,
select,
textarea,
.btn {
    font-family: var(--font-sans);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 20px;
    flex-wrap: wrap;
}

.site-logo {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-decoration: none;
    line-height: 1.1;
    color: var(--color-text-primary);
}
.site-logo:hover { text-decoration: none; }

.site-logo__img { height: 42px; width: auto; display: block; }

.wordmark {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    white-space: nowrap;
}
.wordmark__a { color: var(--ink); }
.wordmark__b { color: var(--brand); }

.wordmark__tagline {
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--ink);
    white-space: nowrap;
}
.wordmark__tagline::before,
.wordmark__tagline::after {
    content: "—";
    color: var(--brand);
    margin: 0 4px;
}

.city-select {
    display: inline-flex;
    align-items: center;
}

.location-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 9999px;
    padding: 6px 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.location-pill:hover,
.location-pill:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(247, 148, 29, 0.2);
}

.location-pin {
    font-size: 1rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

.location-pill select,
.city-select select {
    padding: 2px 4px;
    border: none;
    border-radius: var(--radius);
    background: transparent;
    color: var(--color-text-primary);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
}

.search-form {
    flex: 1;
    display: flex;
    min-width: 200px;
    position: relative;
}

.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 12px 28px rgba(0,0,0,0.15);
    max-height: 360px;
    overflow-y: auto;
    z-index: 50;
}

.search-dropdown__row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    cursor: pointer;
    color: var(--text);
}
.search-dropdown__row img { width: 26px; height: 26px; object-fit: contain; flex-shrink: 0; }
.search-dropdown__row:hover,
.search-dropdown__row.active { background: var(--text); color: #fff; }
.search-dropdown__empty { padding: 14px 16px; color: var(--text-muted); }

.search-form input {
    flex: 1;
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius) 0 0 var(--radius);
}

.search-form button {
    padding: 9px 16px;
    border: none;
    background: var(--brand);
    color: var(--color-text-primary);
    border-radius: 0 var(--radius) var(--radius) 0;
    cursor: pointer;
    font-weight: 600;
    font-family: var(--font-sans);
    transition: background 0.15s ease, color 0.15s ease;
}
.search-form button:hover {
    background: var(--brand-dark);
    color: var(--color-text-primary);
}
.search-form button:focus-visible {
    outline: 2px solid var(--color-text-primary);
    outline-offset: 2px;
}

.site-nav {
    display: flex;
    gap: 18px;
    align-items: center;
    margin-left: auto;
    flex-shrink: 0;
    white-space: nowrap;
}

/* One tidy row on desktop: the header gets more width than page content,
   and the partner link reads as a small outlined button. */
.site-header__inner.container { max-width: 1440px; flex-wrap: nowrap; }

/* Full-width pages (home): sections run edge to edge, content centred up to the header's width. */
.main-full { width: 100%; max-width: none; margin: 0; padding: 0; }
.main-full .container { max-width: 1440px; }
@media (min-width: 1100px) {
    .main-full .hero__inner, .main-full .quick-cats .container, .main-full .page-section .container { padding-left: 40px; padding-right: 40px; }
    .main-full .services-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
}
.site-logo, .city-select { flex-shrink: 0; }
.nav-provider-link {
    border: 1px solid var(--brand);
    border-radius: 999px;
    padding: 6px 14px;
    font-weight: 600;
    font-size: 0.9rem;
}
.nav-provider-link:hover { background: var(--brand); color: var(--color-text-primary); text-decoration: none; }

/* Narrower screens: logo, city and menu on the first row, search full-width below. */
@media (max-width: 1100px) {
    .site-header__inner.container { flex-wrap: wrap; row-gap: 12px; }
    .search-form { order: 10; flex-basis: 100%; }
}
@media (max-width: 640px) {
    .site-nav { flex: 1 1 100%; flex-wrap: wrap; white-space: normal; gap: 10px 14px; margin-left: 0; }
}

.cart-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: var(--text);
    line-height: 0;
}
.cart-link:hover { color: var(--brand); }
.cart-icon { width: 24px; height: 24px; }
.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--brand);
    color: var(--color-text-primary);
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    margin: 16px 0 32px;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 14px;
    text-align: center;
    font-weight: 600;
    color: var(--text);
    transition: box-shadow 0.15s, transform 0.15s;
}

.service-card:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    transform: translateY(-2px);
    text-decoration: none;
}

/* Banner carousel */
.carousel {
    position: relative;
    margin: 20px 0 8px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--border);
}

.carousel__slide { display: none; }
.carousel__slide.active { display: block; }

/* Natural aspect ratio — banners carry their own artwork and text, so
   cropping to a fixed ratio cuts off the headline. */
.carousel__slide img {
    width: 100%;
    height: auto;
    display: block;
}

.carousel__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.85);
    color: var(--text);
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.carousel__nav:hover { background: #fff; color: var(--brand); }
.carousel__nav--prev { left: 12px; }
.carousel__nav--next { right: 12px; }

.carousel__dots {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.carousel__dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: rgba(255,255,255,0.6);
    cursor: pointer;
}
.carousel__dot.active { background: var(--brand); }

@media (max-width: 640px) {
    .carousel__nav { width: 30px; height: 30px; font-size: 1.2rem; }
}

.home-section { margin: var(--section-spacing) 0; }
.home-section > h2 { font-size: 1.6rem; margin-bottom: 18px; }
.center { text-align: center; margin-top: 20px; }

/* Home Dashboard (Urban-Company-style two-column hero) */
.uc-dashboard {
    background: var(--color-bg);
    padding: 40px 20px var(--section-spacing);
    border-bottom: 1px solid var(--color-border);
}
.uc-dashboard__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}
@media (min-width: 960px) {
    .uc-dashboard__inner {
        grid-template-columns: minmax(0, 560px) 1fr;
        align-items: start;
    }
}
.uc-dashboard__title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0 0 8px;
    line-height: 1.2;
}
.uc-dashboard__subtitle {
    font-size: 1.05rem;
    color: var(--color-text-secondary);
    margin: 0 0 24px;
}
.uc-category-panel {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}
.uc-category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px 12px;
}
@media (max-width: 420px) {
    .uc-category-grid { grid-template-columns: repeat(3, 1fr); }
}
.uc-category-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    font: inherit;
    cursor: pointer;
    color: var(--color-text-primary);
    padding: 0;
    text-align: center;
}
.uc-category-tile__icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.uc-category-tile:hover .uc-category-tile__icon {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: var(--color-primary);
}
.uc-category-tile__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.uc-category-tile__label {
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.25;
}
.uc-collage {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1.1fr 1fr;
    gap: 12px;
    height: 100%;
    min-height: 320px;
}
.uc-collage__item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    display: block;
}
.uc-collage__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.uc-collage__item:hover img {
    transform: scale(1.05);
}
.uc-collage__caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px 14px;
    background: linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0));
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
}
.uc-collage__item--a { grid-column: 1; grid-row: 1; }
.uc-collage__item--b { grid-column: 2; grid-row: 1; }
.uc-collage__item--c { grid-column: 1; grid-row: 2; }
.uc-collage__item--d { grid-column: 2; grid-row: 2; }
@media (max-width: 640px) {
    .uc-collage { min-height: 220px; }
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Icon tiles (most used services) */
.icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 20px;
}

.icon-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    color: var(--color-text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) backwards;
    background: var(--color-surface);
    padding: 16px 8px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
}

.icon-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.06);
    border-color: var(--color-primary);
}

.icon-tile img { 
    width: 48px; 
    height: 48px; 
    object-fit: contain; 
}
.icon-tile:hover { color: var(--brand); text-decoration: none; }

/* "Select a service" modal */
.modal { position: fixed; inset: 0; z-index: 1100; display: flex; align-items: center; justify-content: center; }
.modal[hidden] { display: none; }

.modal__backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.5); }

.modal__box {
    position: relative;
    background: var(--card-bg);
    border-radius: 10px;
    width: min(920px, 94vw);
    max-height: 88vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}

.modal__title { text-align: center; margin: 0; padding: 26px 20px 20px; font-size: 1.6rem; }

.modal__close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 1.9rem;
    line-height: 1;
    color: var(--text);
    cursor: pointer;
    padding: 4px 10px;
}
.modal__close:hover { background: none; color: var(--brand); }

.modal__body {
    display: grid;
    grid-template-columns: 260px 1fr;
    border-top: 1px solid var(--border);
    overflow: hidden;
    min-height: 320px;
}

.modal__categories {
    list-style: none;
    margin: 0;
    padding: 0;
    border-right: 1px solid var(--border);
    overflow-y: auto;
}

.modal__categories li {
    padding: 16px 20px;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}

.modal__categories li:hover { background: var(--bg); }

.modal__categories li.active {
    color: var(--brand);
    font-weight: 700;
    background: #eaf2ff;
    box-shadow: inset 3px 0 0 var(--brand);
}

.modal__services {
    padding: 22px;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 16px;
    align-content: start;
}

.modal-tile {
    background: #eaf2ff;
    border-radius: var(--radius);
    padding: 16px 10px;
    text-align: center;
    color: var(--text);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
}

.modal-tile img { width: 46px; height: 46px; object-fit: contain; }
.modal-tile:hover { background: #d9e8ff; text-decoration: none; }

@media (max-width: 640px) {
    .modal__body { grid-template-columns: 1fr; }
    .modal__categories { max-height: 160px; border-right: none; border-bottom: 1px solid var(--border); }
}

/* Item "i" details modal — a plain scrolling doc, not the two-pane category picker */
.modal__box--doc { width: min(640px, 92vw); }
.modal__body--doc { display: block; padding: 4px 26px 26px; overflow-y: auto; max-height: 60vh; }

/* Stats band */
.stats-band {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    background: var(--brand);
    color: var(--color-text-primary);
    border-radius: var(--radius);
    padding: 24px;
    margin: var(--section-spacing) 0;
}

.stats-band .stat {
    flex: 1;
    min-width: 120px;
    text-align: center;
}

.stats-band .stat strong { display: block; font-size: 1.5rem; }
.stats-band .stat span { font-size: 0.85rem; opacity: 0.9; }

/* Provider list */
.provider-list {
    display: grid;
    gap: 12px;
    margin: 16px 0;
}

.provider-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    display: flex;
    gap: 16px;
    align-items: center;
    color: var(--text);
}

.provider-card .rating { color: var(--text-muted); }
.provider-card .price { margin-left: auto; font-weight: 700; }
.badge {
    background: var(--success);
    color: #fff;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 999px;
}

/* Forms */
form label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
}

form input[type="text"],
form input[type="email"],
form input[type="tel"],
form input[type="password"],
form input[type="number"],
form select,
form textarea {
    display: block;
    width: 100%;
    max-width: 420px;
    margin-top: 4px;
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font: inherit;
}

.inline-form { display: inline-block; margin: 0; }
.inline-form label { display: inline; margin: 0; }

button, .btn {
    background: var(--brand);
    color: var(--color-text-primary);
    border: none;
    padding: 10px 18px;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    font-family: var(--font-sans);
    display: inline-block;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.btn--primary,
button.btn {
    background: var(--brand);
    color: var(--color-text-primary);
}

button:hover,
.btn:hover,
.btn--primary:hover,
button.btn:hover {
    background: var(--brand-dark);
    color: var(--color-text-primary);
    text-decoration: none;
}

button:active,
.btn:active,
.btn--primary:active,
button.btn:active {
    background: var(--brand-dark);
    color: var(--color-text-primary);
}

button:focus-visible,
.btn:focus-visible,
.btn--primary:focus-visible,
button.btn:focus-visible {
    outline: 2px solid var(--color-text-primary);
    outline-offset: 2px;
}

.error { color: var(--error); font-weight: 600; }
.success { color: var(--success); font-weight: 600; }

/* Tables */
.cart-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg);
    margin: 16px 0;
}

.cart-table td, .cart-table th {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.cart-subtotal { font-size: 1.1rem; font-weight: 700; }

.cart-empty {
    text-align: center;
    padding: 60px 20px;
}
.cart-empty__icon { width: 90px; height: 90px; color: var(--brand); margin-bottom: 20px; }
.cart-empty__title { margin: 0 0 8px; font-size: 1.4rem; }
.cart-empty__subtitle { color: var(--text-muted); margin: 0 0 24px; }

.otp-status { color: var(--text-muted); margin: 8px 0; }

/* Checkout: confirm-and-continue fields with an inline "Change" toggle */
.checkout-field { margin: 18px 0; }
.checkout-field > label:first-child { display: block; font-weight: 600; margin-bottom: 6px; }
.checkout-location-row { display: flex; align-items: center; gap: 10px; margin: 8px 0 4px; font-size: 0.9rem; }
.confirm-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.confirm-row input[readonly] { background: var(--card-bg); color: var(--text-muted); }
.link-btn {
    background: none;
    color: var(--brand);
    border: none;
    padding: 0;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
    display: inline-block;
}
.link-btn:hover { background: none; color: var(--brand-dark); }
#phone-verify-btn { margin-left: 8px; }
[hidden] { display: none !important; }

/* Service detail page */
.text-muted { color: var(--text-muted); font-weight: 400; }

.service-hero-banner {
    margin: 20px 0;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--card-bg);
}
.service-hero-banner img { width: 100%; display: block; }

.service-head {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px 24px;
}

.service-head__icon {
    width: 56px;
    height: 56px;
    max-width: 56px;
    max-height: 56px;
    object-fit: contain;
    flex: 0 0 56px;
}

.service-head h1 { margin: 0 0 4px; font-size: 1.7rem; }
.service-head .rating { margin: 0; }

.panel {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
}

.panel > h2 { margin-top: 0; }

/* Long-form content pages (About, etc.): centered title/headings, readable
   line length, justified body copy — a plain marketing/info page rather
   than a data panel. */
.content-page { max-width: 820px; margin: 0 auto 24px; padding: 40px; }
.content-page__title { text-align: center; margin-bottom: 28px; }
.content-page h2 { text-align: center; margin: 32px 0 16px; }
.content-page p { text-align: justify; line-height: 1.7; margin: 0 0 16px; }

/* Legal documents (Privacy Policy, Terms): left-aligned, underlined section
   headings rather than the marketing-page centered style above. */
.legal-page h2 {
    text-align: left;
    text-decoration: underline;
    font-size: 1.15rem;
    margin: 28px 0 12px;
}
.legal-page ul { margin: 0 0 16px; padding-left: 24px; }
.legal-page li { margin-bottom: 8px; line-height: 1.6; }
.legal-page .legal-updated { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 24px; }

.item-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 16px;
}

/* Variant picker (e.g. Split AC / Tower AC / ...) shown above a service's
   item-grid when its line items are priced per-variant rather than directly. */
.variant-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 16px;
}
.variant-tab {
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 8px 18px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
}
.variant-tab:hover { background: var(--border); }
.variant-tab.active { background: var(--brand); color: var(--color-text-primary); border-color: var(--brand); }

.item-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.item-card__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

.item-card__head h3 { margin: 0; font-size: 1rem; line-height: 1.35; }

.item-info {
    background: var(--brand);
    color: var(--color-text-primary);
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    padding: 0;
    flex-shrink: 0;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.item-info:hover {
    background: var(--brand-dark);
    color: var(--color-text-primary);
}

.item-card__prices {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 12px;
    font-size: 0.9rem;
    margin-top: auto;
}

.price-row { display: flex; justify-content: space-between; margin-bottom: 4px; }
.price-offer { color: var(--success); font-weight: 700; }
.price-mrp { color: var(--error); text-decoration: line-through; }
.price-save { color: var(--text-muted); font-size: 0.85rem; }

.btn-block { width: 100%; }

.item-actions { display: flex; gap: 8px; }
.item-actions .btn { flex: 1; padding: 10px 8px; }

.btn-secondary { background: #4b5563; color: #ffffff; }
.btn-secondary:hover { background: #374151; color: #ffffff; }

/* Collapsible "About"/"Reviews" sections */
.collapsible-toggle,
.collapsible-toggle:hover {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    padding: 0;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    cursor: pointer;
}
.collapsible-toggle .chevron { transition: transform 0.15s; color: var(--text-muted); }
.collapsible-toggle[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.collapsible-body { margin-top: 16px; }

.service-description {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 24px;
    line-height: 1.6;
}

/* Migrated content carries inline legacy <font> tags — normalize them to the
   site's own typography rather than fighting inline styles per element. */
.service-description font,
.service-description * {
    font-family: inherit !important;
    font-size: inherit !important;
    color: inherit !important;
}
.service-description h2, .service-description h3 { margin-top: 1.2em; }

.review-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 10px;
    list-style: none;
}
.review-card__header {
    display: flex;
    justify-content: space-between;
}
.review-card__rating { color: var(--brand); font-weight: 700; }
.reviews { padding: 0; }

/* Footer */
.site-footer {
    background: #1d232b;
    color: #cbd5e1;
    margin-top: 40px;
    padding: 40px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
    padding-bottom: 24px;
}

@media (min-width: 820px) {
    .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

.footer-col h3 {
    color: #fff;
    margin: 0 0 12px;
}
.footer-col h4 {
    color: #fff;
    margin: 20px 0 12px;
}
.footer-col:not(.footer-about) h4:first-child { margin-top: 0; }

.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 6px; }
.footer-col a { color: #cbd5e1; }
.footer-col a:hover { color: #fff; }
.footer-col p { margin: 0 0 8px; font-size: 0.9rem; }

.footer-social { display: flex; gap: 10px; margin: 4px 0 20px; }
.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    color: #1d232b;
    display: flex;
    align-items: center;
    justify-content: center;
}
.footer-social a:hover { background: var(--brand); color: var(--color-text-primary); }
.footer-social svg { width: 18px; height: 18px; }

.footer-popular-services {
    display: flex;
    flex-wrap: wrap;
    column-gap: 28px;
    row-gap: 10px;
    font-size: 0.9rem;
}

.footer-col p.footer-cities-inline { font-size: 0.9rem; margin-top: 28px; padding-top: 14px; border-top: 1px solid #333a45; }
.footer-cities-inline strong { color: #fff; font-weight: 600; }

.footer-bottom {
    border-top: 1px solid #333a45;
    padding: 16px 20px;
    font-size: 0.85rem;
}

/* Wallet / profile */
.wallet-badge {
    display: inline-block;
    border: 1px solid var(--success);
    color: var(--success);
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: 700;
    margin-right: 8px;
}

.profile-tabs {
    display: flex;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    margin: 20px 0;
}

.profile-tabs a {
    padding: 10px 4px;
    color: var(--text-muted);
    font-weight: 600;
    border-bottom: 2px solid transparent;
}

.profile-tabs a.active {
    color: var(--brand);
    border-bottom-color: var(--brand);
}

/* WhatsApp Floating Widget */
.wa-widget-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    align-items: flex-end;
    flex-direction: row-reverse;
    gap: 15px;
}

.wa-widget-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #25D366;
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
    padding: 14px;
}

.wa-widget-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.5);
    background-color: #20BA56; /* Slightly darker on hover */
}

.wa-widget-menu {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px) translateY(10px);
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
    border: 1px solid var(--border);
}

.wa-widget-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) translateY(0);
}

.wa-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background-color 0.2s;
}

.wa-menu-item:not(:last-child) {
    border-bottom: 1px solid #f0f0f0;
}

.wa-menu-item:hover {
    background-color: #f8f9fa;
    text-decoration: none;
}

.wa-icon {
    width: 22px;
    height: 22px;
}

.wa-icon-phone {
    color: #25D366;
}

.wa-icon-whatsapp {
    color: #25D366;
}

@media (max-width: 640px) {
    .wa-widget-container {
        bottom: 20px;
        right: 20px;
    }
    
    .wa-widget-button {
        width: 50px;
        height: 50px;
        padding: 12px;
    }
    
    .wa-widget-menu {
        margin-bottom: 5px;
    }
}








/* ==========================================================================
   Book a Service — booking lifecycle, My Bookings, Service Partner Hub,
   Become a Service Partner, admin Reports (bs-* / bp-* components)
   ========================================================================== */
.profile-tabs { flex-wrap: wrap; gap: 4px 20px; }

.bs-page { padding-block: 24px 48px; }
.bs-page__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.bs-page__head h1 { margin: 0 0 4px; }
.bs-head-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.bs-page a.btn:not(.btn--primary),
.bs-page button.btn:not(.btn--primary) { background: var(--card-bg); color: var(--text); border: 1px solid var(--border); }
.bs-page a.btn:not(.btn--primary):hover,
.bs-page button.btn:not(.btn--primary):hover { background: var(--bg); }
.btn--lg { padding: 14px 24px; font-size: 1.05rem; }
.bs-empty { padding: 40px 16px; text-align: center; color: var(--text-muted); background: var(--card-bg); border: 1px dashed var(--border); border-radius: var(--radius-lg); }

.bs-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 16px; }
.bs-card h2 { font-size: 1.1rem; margin: 0 0 12px; }
.bs-card h3 { margin: 0 0 6px; }
.bs-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 6px 0; flex-wrap: wrap; }
.bs-card__head h2 { margin: 0 0 2px; }
.bs-meta { margin: 12px 0; color: var(--text); }

.bs-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.bs-grid--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 860px) { .bs-grid, .bs-grid--even { grid-template-columns: minmax(0, 1fr); } }

.bs-alert { padding: 12px 16px; border-radius: var(--radius); margin: 12px 0; border: 1px solid; }
.bs-alert--ok { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.bs-alert--err { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.bs-alert--warn { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.bs-alert--info { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }

/* Status pills — one colour per lifecycle stage */
.bs-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; background: #f3f4f6; color: #374151; white-space: nowrap; }
.bs-pill--lg { font-size: 0.9rem; padding: 6px 14px; }
.bs-pill--pending, .bs-pill--open, .bs-pill--unpaid { background: #fef3c7; color: #92400e; }
.bs-pill--assigned, .bs-pill--investigating, .bs-pill--received { background: #e0f2fe; color: #075985; }
.bs-pill--accepted, .bs-pill--confirmed { background: #ede9fe; color: #5b21b6; }
.bs-pill--on_the_way, .bs-pill--in_progress { background: #ffedd5; color: #9a3412; }
.bs-pill--completed, .bs-pill--paid, .bs-pill--resolved { background: #d1fae5; color: #065f46; }
.bs-pill--cancelled, .bs-pill--refunded, .bs-pill--rejected { background: #fee2e2; color: #991b1b; }

/* Checkout date / slot chips */
.slot-picker { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 10px; }
.slot-picker--wrap { flex-wrap: wrap; overflow: visible; }
.slot-chip { position: relative; flex: 0 0 auto; }
.slot-chip input { position: absolute; opacity: 0; inset: 0; }
.slot-chip span { display: block; padding: 8px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card-bg); cursor: pointer; font-size: 0.9rem; white-space: nowrap; }
.slot-chip--date span { display: flex; flex-direction: column; align-items: center; min-width: 72px; }
.slot-chip--date small { color: var(--text-muted); }
.slot-chip input:checked + span { border-color: var(--brand); background: #fff7ed; box-shadow: 0 0 0 1px var(--brand); }
.slot-chip input:focus-visible + span { outline: 2px solid var(--color-text-primary); outline-offset: 2px; }
.slot-chip.is-disabled span { opacity: 0.4; cursor: not-allowed; text-decoration: line-through; }

/* My Bookings list */
.bs-booking-list { display: grid; gap: 10px; }
.bs-booking-card { display: flex; justify-content: space-between; gap: 12px; padding: 16px 18px; background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-lg); color: var(--text); flex-wrap: wrap; }
.bs-booking-card:hover { text-decoration: none; border-color: var(--brand); }
.bs-booking-card__main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bs-booking-card__side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }

/* Lifecycle timeline */
.bs-timeline { list-style: none; margin: 16px 0; padding: 0; }
.bs-timeline li { position: relative; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 0 0 14px 26px; color: var(--text-muted); }
.bs-timeline li::before { content: ""; position: absolute; left: 7px; top: 14px; bottom: -2px; width: 2px; background: var(--border); }
.bs-timeline li:last-child::before { display: none; }
.bs-timeline__dot { position: absolute; left: 0; top: 3px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--border); background: var(--card-bg); }
.bs-timeline li.is-done { color: var(--text); }
.bs-timeline li.is-done .bs-timeline__dot { background: var(--success); border-color: var(--success); }
.bs-timeline li.is-done::before { background: var(--success); }
.bs-timeline__label { font-weight: 600; }
.bs-timeline__at { font-size: 0.82rem; color: var(--text-muted); }

.bs-partner { display: flex; gap: 12px; align-items: center; padding: 12px; background: var(--bg); border-radius: var(--radius); margin: 12px 0; }
.bs-partner__photo { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.bs-partner__photo--blank { display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 700; font-size: 1.3rem; }
.bs-verified { color: var(--success); font-size: 0.82rem; font-weight: 600; }
.bs-otp { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border: 2px dashed var(--brand); border-radius: var(--radius); background: #fff7ed; margin: 12px 0; flex-wrap: wrap; }
.bs-otp strong { font-size: 1.6rem; letter-spacing: 0.3em; }

.bs-inline-action { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px; background: #ecfdf5; border-radius: var(--radius); margin: 12px 0; flex-wrap: wrap; }
.bs-review-form { display: grid; gap: 8px; margin: 12px 0; }
.bs-review-form textarea, .bs-complaint textarea, .bs-complaint select, .bs-cancel-form select { width: 100%; }
.bs-stars { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.bs-stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bs-stars label { font-size: 2rem; line-height: 1; color: #d1d5db; cursor: pointer; margin: 0; }
.bs-stars input:checked ~ label, .bs-stars label:hover, .bs-stars label:hover ~ label { color: #f59e0b; }
.bs-stars input:focus-visible + label { outline: 2px solid var(--color-text-primary); }
.bs-star-display { color: #f59e0b; letter-spacing: 1px; }
.bs-complaint { margin-top: 12px; }
.bs-complaint summary, .bs-danger-link { cursor: pointer; color: var(--text-muted); font-size: 0.9rem; }
.bs-danger-link { color: var(--error); font-weight: 600; }
.bs-complaint form, .bs-cancel-form { display: grid; gap: 10px; margin-top: 10px; }
.bs-btn-danger { background: var(--error) !important; color: #fff !important; }
.bs-complaint-row { border-top: 1px solid var(--border); padding: 10px 0; }
.bs-complaint-row p { margin: 6px 0 0; }

.bs-summary { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 8px 0; }
.bs-summary dt { color: var(--text-muted); }
.bs-summary dd { margin: 0; text-align: right; }
.bs-summary__total { font-weight: 700; color: var(--text) !important; border-top: 1px solid var(--border); padding-top: 6px; }

/* Service Partner Hub */
.bs-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 16px 0; }
.bs-metric { display: flex; flex-direction: column; gap: 4px; padding: 16px; background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.bs-metric span { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); font-weight: 600; }
.bs-metric strong { font-size: 1.5rem; }
.bs-metric small { color: var(--text-muted); }
.bs-job-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 12px; margin-bottom: 20px; }
.bs-job { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; }
.bs-job p { margin: 6px 0; }
.bs-job--offer { border: 2px solid var(--brand); background: #fffaf3; }
.bs-job__actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.bs-job__actions form { margin: 0; }
.bs-otp-form { display: grid; gap: 8px; width: 100%; }
.bs-otp-form input[type="text"] { font-size: 1.2rem; letter-spacing: 0.3em; max-width: 140px; }
.bs-switch { display: inline-flex; align-items: center; gap: 8px; background: #e5e7eb !important; color: var(--text) !important; border-radius: 999px; padding: 6px 14px 6px 6px; }
.bs-switch__knob { width: 22px; height: 22px; border-radius: 50%; background: #9ca3af; transition: background 0.15s; }
.bs-switch.is-on { background: #d1fae5 !important; color: #065f46 !important; }
.bs-switch.is-on .bs-switch__knob { background: var(--success); }
.bs-review { border-top: 1px solid var(--border); padding: 10px 0; }
.bs-review p { margin: 4px 0 0; }

/* Admin extras */
.bs-commission { border-collapse: collapse; font-size: 0.9rem; min-width: 220px; }
.bs-commission td { padding: 3px 8px; border-bottom: 1px solid var(--border); }
.bs-commission td:last-child { text-align: right; }
.bs-history { margin: 8px 0; padding-left: 18px; font-size: 0.9rem; }
.bs-history li { margin-bottom: 4px; }

/* Booking confirmation */
.bs-confirm { max-width: 640px; margin: 0 auto; text-align: center; }
.bs-confirm .bs-card { text-align: left; }
.bs-confirm__icon { width: 64px; height: 64px; margin: 0 auto 8px; border-radius: 50%; display: grid; place-items: center; background: var(--success); color: #fff; font-size: 2rem; }

/* Become a Service Partner */
.bp section { margin: 32px 0; }
.bp-hero { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 24px; align-items: center; padding: 28px; background: linear-gradient(135deg, #fff7ed, #fff); border: 1px solid #fed7aa; border-radius: var(--radius-lg); }
.bp-hero h1 { margin-top: 0; font-size: clamp(1.6rem, 4vw, 2.3rem); }
.bp-hero__points { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-weight: 600; }
.bp-hero__points li { background: var(--card-bg); padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--border); }
.bp-steps { list-style: none; counter-reset: step; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.bp-steps li { counter-increment: step; display: flex; flex-direction: column; gap: 4px; padding: 16px; background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.bp-steps li::before { content: counter(step); width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; margin-bottom: 6px; }
.bp-steps span { color: var(--text-muted); font-size: 0.92rem; }
.bp-needs { columns: 2; column-gap: 32px; }
@media (max-width: 720px) { .bp-hero { grid-template-columns: minmax(0, 1fr); padding: 20px; } .bp-needs { columns: 1; } }

.uc-dashboard__eyebrow { margin: 0 0 6px; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand); }



/* ---------------------------------------------------------------
   HERO SECTION — Modern gradient, pill search
   --------------------------------------------------------------- */
.hero {
    background: linear-gradient(160deg, #fffbf5 0%, #fff3e0 55%, #ffffff 100%);
    padding: clamp(56px, 12vw, 110px) 0 clamp(48px, 8vw, 80px);
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #f0e8db;
}
.hero::before {
    content: '';
    position: absolute; top: -100px; right: -80px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(247,148,29,0.14) 0%, transparent 65%);
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute; bottom: -100px; left: -60px;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(247,148,29,0.07) 0%, transparent 65%);
    pointer-events: none;
}
.hero__inner {
    position: relative; z-index: 1;
    text-align: center;
}
.hero__title {
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #0f172a;
    margin: 0 0 18px;
}
.hero__title-accent { color: var(--color-primary); }
.hero__sub {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: #64748b;
    margin: 0 auto 40px;
    max-width: 480px;
    line-height: 1.6;
}
.hero__search-wrap { max-width: 640px; margin: 0 auto 28px; }
.hero__search {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 100px;
    padding: 8px 8px 8px 22px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.09);
    transition: border-color 0.2s, box-shadow 0.2s;
    position: relative;
}
.hero__search:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 8px 32px rgba(247,148,29,0.18), 0 0 0 3px rgba(247,148,29,0.12);
}
.hero__search-icon {
    flex-shrink: 0;
    color: #94a3b8;
    margin-right: 10px;
}
.hero__search input {
    flex: 1; border: none; background: transparent;
    font-size: 1rem; font-family: var(--font-sans);
    padding: 10px 8px; outline: none;
    color: #0f172a; min-width: 0;
}
.hero__search input::placeholder { color: #94a3b8; }
.hero__search-btn {
    flex-shrink: 0;
    background: var(--color-primary);
    color: #111827;
    font-weight: 700;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    border: none;
    border-radius: 100px;
    padding: 12px 28px;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    white-space: nowrap;
}
.hero__search-btn:hover { background: var(--color-primary-dark); transform: translateY(-1px); }

/* Search dropdown */
.hero__search .search-dropdown,
.search-form .search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0; right: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
    overflow: hidden;
    z-index: 9999;
    max-height: 340px;
    overflow-y: auto;
}

.hero__trust {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.trust-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.85);
    border: 1px solid #e8ddd0;
    border-radius: 100px;
    padding: 6px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #475569;
    backdrop-filter: blur(4px);
}

/* ---------------------------------------------------------------
   QUICK CATEGORIES — Urban Company circular style
   --------------------------------------------------------------- */
.quick-cats {
    background: #fff;
    padding: 44px 0 40px;
    border-bottom: 1px solid #f1f5f9;
}
.quick-cats__title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin: 0 0 4px;
}
.quick-cats__sub { color: #64748b; margin: 0 0 26px; font-size: 1rem; }
.quick-cats__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
@media (min-width: 560px) { .quick-cats__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 900px) { .quick-cats__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1200px) { .quick-cats__grid { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 22px; } }

.quick-cat {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 26px 14px 20px;
    background: #fff;
    border: 1.5px solid #eef2f7;
    border-radius: 22px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
    cursor: pointer;
    font-family: var(--font-sans);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.quick-cat:hover, .quick-cat:focus-visible {
    transform: translateY(-6px);
    border-color: var(--color-primary);
    box-shadow: 0 14px 30px rgba(247, 148, 29, 0.22);
    outline: none;
}
.quick-cat__circle {
    width: clamp(96px, 11vw, 140px);
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #fff3e0;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.22s, transform 0.22s;
    flex-shrink: 0;
}
.quick-cat:hover .quick-cat__circle { border-color: var(--color-primary); transform: scale(1.05); }
.quick-cat__circle img { width: 100%; height: 100%; object-fit: cover; display: block; }
.quick-cat__circle--empty { color: #94a3b8; }
.quick-cat__name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    text-align: center;
    line-height: 1.3;
}
.quick-cat__count {
    font-size: 0.8rem;
    font-weight: 600;
    color: #b45309;
    background: #fff3e0;
    border-radius: 999px;
    padding: 4px 12px;
}
.quick-cat__go {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-primary);
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.2s, transform 0.2s;
}
.quick-cat:hover .quick-cat__go, .quick-cat:focus-visible .quick-cat__go { opacity: 1; transform: none; }
@media (hover: none) { .quick-cat__go { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------
   POPULAR SERVICES GRID — horizontal scroll tiles
   --------------------------------------------------------------- */
.page-section {
    padding: var(--section-spacing) 0;
    background: #f8fafc;
}
.section-hd { margin-bottom: 28px; }
.section-hd__title {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 4px;
    letter-spacing: -0.02em;
}
.section-hd__sub {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}
@media (min-width: 640px) {
    .services-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
.svc-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid #e9eef5;
    border-radius: 16px;
    padding: 20px 12px 16px;
    text-decoration: none;
    color: #1e293b;
    font-weight: 600;
    font-size: 0.82rem;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    cursor: pointer;
}
.svc-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.08);
    border-color: var(--color-primary);
    text-decoration: none;
    color: #0f172a;
}
.svc-tile__img {
    width: 60px; height: 60px;
    border-radius: 12px;
    overflow: hidden;
    background: #f1f5f9;
    flex-shrink: 0;
}
.svc-tile__img img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
}
.svc-tile__name { line-height: 1.35; }

.text-center { text-align: center; margin-top: 8px; }
.btn-ghost {
    display: inline-block;
    padding: 12px 32px;
    border: 2px solid var(--color-primary);
    border-radius: 100px;
    color: var(--color-primary);
    font-weight: 700;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    background: transparent;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    text-decoration: none;
}
.btn-ghost:hover {
    background: var(--color-primary);
    color: #111827;
    text-decoration: none;
}

/* ---------------------------------------------------------------
   STATS SECTION
   --------------------------------------------------------------- */
.stats-section {
    background: #0f172a;
    padding: clamp(32px, 6vw, 56px) 0;
}
.stats-section__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: space-between;
}
.stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
    min-width: 100px;
}
.stat-box strong {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
}
.stat-box span {
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 500;
    text-align: center;
}


/* Admin: booking payment status editor */
.bs-payment-form { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.bs-payment-form label { display: block; font-weight: 600; margin-bottom: 6px; }
.bs-payment-form__row { display: flex; gap: 8px; flex-wrap: wrap; }
.bs-payment-form__row select { flex: 1 1 160px; min-width: 0; }

/* ==========================================================================
   Service Partner Hub (public/provider/dashboard.php) — built for phones and
   for partners who read little: one card per job, big buttons, icons.
   ========================================================================== */
.ph { max-width: 720px; margin: 0 auto; }
.ph-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.ph-top h1 { margin: 0; font-size: 1.6rem; }
.ph-top p { margin: 2px 0 0; }
.ph-online { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px; font-weight: 800; font-size: 0.95rem; background: #e5e7eb !important; color: #374151 !important; border: 2px solid #d1d5db; }
.ph-online__dot { width: 16px; height: 16px; border-radius: 50%; background: #9ca3af; flex: 0 0 auto; }
.ph-online.is-on { background: #dcfce7 !important; color: #166534 !important; border-color: #22c55e; }
.ph-online.is-on .ph-online__dot { background: #16a34a; box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.25); }

.ph-section { margin: 22px 0; }
.ph-h2 { font-size: 1.25rem; margin: 0 0 8px; display: flex; align-items: center; gap: 8px; }
.ph-count { background: var(--brand); color: #fff; border-radius: 999px; padding: 0 10px; font-size: 0.9rem; line-height: 1.6; }
.ph-count:empty { display: none; }
.ph-hint { margin: -2px 0 10px; color: var(--text-muted); font-size: 0.92rem; }
.ph-list { display: grid; gap: 14px; }
.ph-empty { padding: 22px 16px; text-align: center; color: var(--text-muted); background: var(--card-bg); border: 2px dashed var(--border); border-radius: 16px; font-size: 1rem; }

.ph-card { background: var(--card-bg); border: 2px solid var(--border); border-radius: 18px; padding: 16px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); transition: opacity 0.4s, transform 0.4s; }
.ph-card__row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ph-card--offer { border-color: var(--brand); background: #fffaf2; }
/* New offers slide in and glow — never fade from invisible, so a card can't
   get stuck hidden if the phone pauses animations (battery saver etc.). */
.ph-card--offer.is-new { animation: ph-arrive 0.6s ease-out; }
@media (prefers-reduced-motion: reduce) { .ph-card--offer.is-new { animation: none; } }
.ph-card--offer.is-gone { opacity: 0.45; transform: scale(0.98); border-color: var(--border); background: var(--card-bg); }
@keyframes ph-arrive { from { transform: translateY(-10px); box-shadow: 0 0 0 6px rgba(247, 148, 29, 0.45); } to { transform: none; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); } }
.ph-card--job.is-on_the_way { border-color: #3b82f6; }
.ph-card--job.is-in_progress { border-color: #f59e0b; }
.ph-card--job.is-completed { border-color: #22c55e; background: #f6fef9; }

.ph-chip { display: inline-block; padding: 4px 12px; border-radius: 999px; background: #eef2ff; color: #3730a3; font-weight: 700; font-size: 0.9rem; }
.ph-timer { font-weight: 800; font-size: 0.95rem; color: #92400e; background: #fef3c7; padding: 4px 10px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.ph-timer.is-low { color: #fff; background: #dc2626; }
.ph-earn { margin: 10px 0 2px; font-size: 2rem; font-weight: 900; color: #15803d; line-height: 1.1; }
.ph-earn small { display: block; font-size: 0.8rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.ph-earn--small { margin: 0; font-size: 1.3rem; }
.ph-work { font-size: 1.15rem; font-weight: 700; margin: 6px 0; }
.ph-facts { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; font-size: 1rem; }
.ph-hurry { color: #b45309; font-weight: 700; }
.ph-gone { margin-top: 12px; padding: 10px; border-radius: 12px; background: #f3f4f6; color: #4b5563; font-weight: 700; text-align: center; }

.ph-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 52px; padding: 12px 18px; border-radius: 14px; font-size: 1.05rem; font-weight: 800; border: none; cursor: pointer; text-decoration: none !important; }
.ph-actions { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; margin-top: 14px; }
.ph-btn--accept { background: #16a34a !important; color: #fff !important; font-size: 1.2rem; }
.ph-btn--accept:hover { background: #15803d !important; }
.ph-btn--skip { background: #f3f4f6 !important; color: #374151 !important; border: 2px solid #d1d5db; }
.ph-btn--big { width: 100%; margin-top: 14px; min-height: 60px; font-size: 1.25rem; color: #fff !important; }
.ph-btn--go { background: #2563eb !important; }
.ph-btn--work { background: #d97706 !important; }
.ph-btn--done { background: #16a34a !important; }
.ph-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.ph-btn--call { background: #ecfdf5 !important; color: #065f46 !important; border: 2px solid #6ee7b7; }
.ph-btn--map { background: #eff6ff !important; color: #1e40af !important; border: 2px solid #93c5fd; }
.ph-done { margin-top: 14px; padding: 12px; border-radius: 12px; background: #dcfce7; color: #166534; font-weight: 800; text-align: center; }
body.ph-busy .ph-btn { opacity: 0.6; pointer-events: none; }

.ph-steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 14px 0 6px; padding: 0; counter-reset: none; }
.ph-steps li { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 0.78rem; font-weight: 700; color: #9ca3af; text-align: center; position: relative; }
.ph-steps li::after { content: ""; position: absolute; top: 19px; left: calc(50% + 22px); right: calc(-50% + 22px); height: 4px; border-radius: 2px; background: #e5e7eb; }
.ph-steps li:last-child::after { display: none; }
.ph-steps__icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 1.2rem; background: #f3f4f6; border: 3px solid #e5e7eb; filter: grayscale(1); opacity: 0.6; }
.ph-steps li.is-done { color: #16a34a; }
.ph-steps li.is-done::after { background: #22c55e; }
.ph-steps li.is-done .ph-steps__icon { background: #dcfce7; border-color: #22c55e; filter: none; opacity: 1; }
.ph-steps li.is-now { color: #111827; }
.ph-steps li.is-now .ph-steps__icon { background: #fff7ed; border-color: var(--brand); filter: none; opacity: 1; transform: scale(1.12); box-shadow: 0 0 0 4px rgba(247, 148, 29, 0.2); }

.ph-money { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.ph-money > div { background: var(--card-bg); border: 2px solid var(--border); border-radius: 14px; padding: 12px; font-size: 1.3rem; font-weight: 800; }
.ph-money small { display: block; font-size: 0.78rem; color: var(--text-muted); font-weight: 700; }
.ph-money__main { color: #15803d; }

.ph-history > summary { cursor: pointer; list-style: none; }
.ph-history > summary::-webkit-details-marker { display: none; }
.ph-history > summary::before { content: "▸"; margin-right: 4px; transition: transform 0.2s; }
.ph-history[open] > summary::before { transform: rotate(90deg); }
.ph-list--compact { gap: 8px; margin-top: 8px; }
.ph-past { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; }
.ph-past__icon { font-size: 1.3rem; }
.ph-past__amt { font-weight: 800; color: #15803d; }

.ph-toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 2000; max-width: min(92vw, 520px); padding: 14px 20px; border-radius: 14px; font-weight: 800; font-size: 1rem; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); text-align: center; }
.ph-toast--ok { background: #166534; color: #fff; }
.ph-toast--info { background: #1f2937; color: #fff; }
.ph-toast--warn { background: #b45309; color: #fff; }
.ph-links { text-align: center; margin: 20px 0; }
@media (max-width: 420px) { .ph-steps li { font-size: 0.7rem; } .ph-earn { font-size: 1.8rem; } }

/* On phones the header wraps to ~4 rows; pinned, it would eat a third of the
   screen (bad for partners working one-handed). Let it scroll away there. */
@media (max-width: 640px) {
    .site-header { position: static; }
}

/* Email + password sign-in (customer and service-partner login pages) */
.auth-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 24px 0 48px; align-items: start; }
.auth-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; scroll-margin-top: 90px; }
.auth-card h2 { margin: 0 0 4px; font-size: 1.25rem; }
.auth-card > .text-muted { margin: 0 0 16px; font-size: 0.92rem; }
.auth-card form { display: grid; gap: 14px; }
.auth-card label { display: grid; gap: 6px; font-weight: 600; font-size: 0.9rem; }
.auth-card input, .auth-card select { width: 100%; padding: 11px 12px; border: 1px solid #d1d5db; border-radius: 10px; font-size: 1rem; font-weight: 400; background: #fff; }
.auth-card input:focus, .auth-card select:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.auth-card small { font-weight: 400; }
.auth-card button[type="submit"] { padding: 12px 18px; font-size: 1rem; }
.auth-card .error { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: #fef2f2; font-size: 0.9rem; }
.auth-card:target { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(247, 148, 29, 0.18); }
@media (max-width: 760px) { .auth-grid { grid-template-columns: minmax(0, 1fr); } }

/* Show / hide password (eye) button */
.pw-field { position: relative; display: block; }
.pw-field > input { padding-right: 46px !important; }
.pw-field > .pw-toggle,
.pw-field > .pw-toggle:hover,
.pw-field > .pw-toggle:active {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    width: 36px; height: 36px; padding: 0; display: grid; place-items: center;
    background: transparent; border: 0; border-radius: 8px; color: #6b7280; cursor: pointer; box-shadow: none;
}
.pw-field > .pw-toggle:hover { color: #111827; background: #f3f4f6; }
.pw-field > .pw-toggle[aria-pressed="true"] { color: var(--brand-dark); }
.pw-field > .pw-toggle:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
