/* Web-only responsive layer. The Cordova mobile app is not changed. */

html,
body.web-home {
    height: auto;
    min-height: 100%;
    overflow: auto;
}

/* Bottom nav is a mobile-app concept — always hidden on the web version */
body.web-home #bottomNav {
    display: none !important;
}

body.web-home {
    background:
        radial-gradient(circle at top left, rgba(244,178,59,.16), transparent 32rem),
        linear-gradient(180deg, #f8fbf8 0%, var(--bg) 100%);
}

body.web-home #appShell {
    min-height: auto;
    height: auto;
    overflow: visible;
}

body.web-home #mainHeader {
    position: sticky;
    top: 0;
    background: var(--green);
    color: #fff;
    border-bottom: 1px solid rgba(16,32,24,.18);
    box-shadow: 0 8px 28px rgba(16,32,24,.12);
}

body.web-home #mainHeader a,
body.web-home #mainHeader button {
    color: #fff;
}

body.web-home .brand-word {
    font-size: 21px;
    font-weight: 900;
    letter-spacing: 0;
}

body.web-home .brand-icon {
    display: block;
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 8px;
    background: rgba(255,255,255,.16);
    padding: 3px;
}

body.web-home .brand-logo {
    display: none;
}

.top-nav {
    display: none;
}

/* ── Mobile hamburger button ──────────────────────────────────────── */
.mob-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    background: rgba(255,255,255,.14);
    border: none;
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
    transition: background .15s;
    margin-left: 4px;
}
.mob-menu-btn:active { background: rgba(255,255,255,.25); }

/* ── Mobile nav drawer (slides down under header) ─────────────────── */
.mob-nav {
    display: flex;
    flex-direction: column;
    background: #102018;
    overflow: hidden;
    max-height: 0;
    transition: max-height .28s cubic-bezier(0.4,0,0.2,1), padding .28s;
    z-index: 49;
    padding: 0 18px;
}

.mob-nav.open {
    max-height: 480px;
    padding: 10px 18px 20px;
}

.mob-nav a {
    display: flex;
    align-items: center;
    color: rgba(255,255,255,.88);
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
    transition: color .12s;
}
.mob-nav a:last-child { border-bottom: none; }
.mob-nav a:active { color: var(--amber); }

.mob-nav-login {
    margin-top: 8px;
    color: rgba(255,255,255,.65) !important;
    font-weight: 600 !important;
}

.mob-nav-register {
    background: var(--amber) !important;
    color: #102018 !important;
    padding: 13px 18px !important;
    border-radius: 14px !important;
    margin-top: 8px !important;
    justify-content: center !important;
    border: none !important;
}

body.web-home #mainHeader .header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

body.web-home #mainHeader .header-actions > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
    background: rgba(255,255,255,.14);
}

body.web-home #mainHeader .header-actions > .header-register {
    background: var(--amber);
    color: #102018;
}

/* ── Base: all content pages ──────────────────────────────────────── */
body.web-home #app {
    overflow: visible;
    padding: 40px max(20px, calc((100vw - 1120px) / 2)) 64px;
    max-width: none;
}

body.web-home #app > h1 {
    font-size: clamp(22px, 2.2vw, 32px);
    letter-spacing: -.03em;
    margin: 0 0 20px;
}

body.web-home #app > p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 14px;
}

/* ── Auth split-panel layout ──────────────────────────────────────── */
.auth-layout {
    display: grid;
    grid-template-columns: 1fr;
    min-height: calc(100vh - var(--header-h));
    margin: -40px -20px; /* cancel #app padding */
}

.auth-panel {
    display: none;
    background: linear-gradient(145deg, #102018 0%, #1F7A4D 100%);
    color: #fff;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.auth-panel::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 320px; height: 320px;
    border-radius: 50%;
    background: rgba(244,178,59,.12);
    pointer-events: none;
}

.auth-panel-inner {
    position: relative;
    z-index: 1;
    max-width: 420px;
}

.auth-panel-logo {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -.04em;
    margin-bottom: 40px;
    color: #fff;
}

.auth-panel-logo span { color: var(--amber); }

.auth-panel h2 {
    font-size: clamp(24px, 2.4vw, 36px);
    font-weight: 900;
    margin: 0 0 14px;
    letter-spacing: -.03em;
    color: #fff;
}

.auth-panel p {
    font-size: 15px;
    color: rgba(255,255,255,.78);
    line-height: 1.65;
    margin-bottom: 12px;
}

.auth-panel-list {
    list-style: none;
    padding: 0;
    margin: 24px 0 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-panel-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: rgba(255,255,255,.88);
    font-weight: 600;
}

.auth-panel-list li .icon { color: var(--amber); }

.auth-panel-cta {
    border-color: rgba(255,255,255,.35) !important;
    color: #fff !important;
    background: rgba(255,255,255,.1);
    padding: 0 22px;
    min-height: 46px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    transition: background .15s;
}

.auth-panel-cta:hover { background: rgba(255,255,255,.18); }

.auth-form-col {
    padding: 40px max(20px, calc((100% - 480px) / 2));
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ── Auth redesign elements ─────────────────────────────────────── */

/* Mobile brand header — shown on mobile, hidden inside the split panel col */
.auth-mobile-brand {
    text-align: center;
    margin-bottom: 20px;
    padding-top: 4px;
}
.auth-logo-dark {
    font-size: 28px !important;
    color: var(--green-dark) !important;
    margin-bottom: 2px !important;
}
.auth-logo-dark span { color: var(--green) !important; }
.auth-mobile-tagline {
    font-size: 13px;
    color: var(--muted);
    margin: 0;
}

.auth-form-title {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -.03em;
    margin: 0 0 4px;
    color: var(--text);
}
.auth-form-sub {
    font-size: 14px;
    color: var(--muted);
    margin: 0 0 18px;
}

/* Auth card — restores card look on web (overrides the flat mobile default) */
.auth-card {
    background: var(--card);
    border-radius: 20px;
    padding: 22px 20px 18px;
    box-shadow: 0 2px 18px rgba(16,32,24,.08), 0 0 0 1px var(--line);
    margin-bottom: 14px;
}
.auth-card .field input,
.auth-card .field select {
    background: var(--fill);
    border-color: transparent;
}
.auth-form-title { margin-top: 0; }
.auth-form-sub { margin-bottom: 18px; }

/* Label with icon prefix */
.auth-card .field label {
    display: flex;
    align-items: center;
    gap: 5px;
}
.auth-label-row {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
}
.auth-forgot-link {
    font-size: 12px;
    font-weight: 600;
    color: var(--green);
    text-decoration: none;
    margin-left: auto;
}
.auth-forgot-link:hover { text-decoration: underline; }

/* Password field with toggle button */
.pw-field-wrap {
    position: relative;
}
.pw-field-wrap input {
    padding-right: 44px !important;
}
.pw-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: var(--muted);
    display: flex;
    align-items: center;
    line-height: 1;
    opacity: 0.5;
    transition: opacity .15s;
}
.pw-toggle:hover { opacity: 1; }

/* Side-by-side field pair */
.auth-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* Section label inside auth-card */
.auth-section-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 16px 0 8px;
}
.auth-optional {
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    font-size: 11px;
}

/* Account type radio cards */
.acct-type-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 2px;
}
.acct-type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 12px 6px 10px;
    border-radius: 14px;
    border: 2px solid var(--line);
    cursor: pointer;
    background: var(--bg);
    text-align: center;
    transition: border-color .15s, background .15s, box-shadow .15s;
    user-select: none;
}
.acct-type-card input[type=radio] { display: none; }
.acct-type-card.selected,
.acct-type-card:has(input:checked) {
    border-color: var(--green);
    background: var(--green-tint);
    box-shadow: 0 0 0 1px var(--green);
}
.acct-type-icon { color: var(--green); line-height: 1; }
.acct-type-name { font-size: 13px; font-weight: 700; color: var(--text); }
.acct-type-desc { font-size: 11px; color: var(--muted); }

/* Auth submit button */
.auth-submit {
    width: 100%;
    margin-top: 10px;
    padding: 14px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    border-radius: 14px !important;
    letter-spacing: -.01em;
}

/* Terms line inside form */
.auth-terms {
    text-align: center;
    font-size: 12px;
    color: var(--muted);
    margin: 10px 0 0;
    line-height: 1.5;
}

/* Switch link below form */
.auth-switch-text {
    text-align: center;
    font-size: 14px;
    color: var(--muted);
    margin: 4px 0 0;
}

/* profile */
body.web-home #profileForm { max-width: 640px; margin: 0 auto; }

@media (min-width: 740px) {
    .auth-layout {
        grid-template-columns: 1fr 1fr;
        margin: -44px max(-32px, calc(-1 * max(32px, calc((100vw - 1120px) / 2))));
    }

    .auth-panel { display: block; }

    /* Hide mobile brand block when inside desktop split panel */
    .auth-form-col .auth-mobile-brand { display: none; }

    .auth-form-col {
        padding: 48px 48px;
    }

    /* Centered single-column auth (login / register — no marketing panel) */
    .auth-layout.auth-no-panel {
        grid-template-columns: 1fr;
        max-width: 560px;
        margin: 32px auto;
    }
    .auth-layout.auth-no-panel .auth-form-col { padding: 48px 40px; }
    .auth-layout.auth-no-panel .auth-form-col .auth-mobile-brand { display: block; }
}

/* ── Marketplace: handled by .mp-page container in components.css ── */

/* ── Categories ──────────────────────────────────────────────────── */
/* grid-2 → 3 cols handled in @media block below */

/* ── Seller forms (store / listing create+edit) ───────────────────── */
body.web-home #storeForm,
body.web-home #listingForm { max-width: 820px; margin: 0 auto; }

body.web-home #storeForm + .card,
body.web-home #storeForm ~ .card { max-width: 820px; margin: 12px auto 0; }

/* ── Info / static pages ──────────────────────────────────────────── */
body.web-home .page-content {
    max-width: 780px;
    margin: 0 auto;
}

body.web-home #app:has(.page-content) > h1 {
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}

body.web-home #app:has(.page-content) > a.btn {
    display: block;
    max-width: 200px;
    margin: 16px auto 0;
}

/* ── Listing detail ──────────────────────────────────────────────── */
body.web-home .ld-gallery,
body.web-home .ld-gallery-empty,
body.web-home .ld-badges,
body.web-home .ld-title,
body.web-home .ld-price,
body.web-home .ld-meta,
body.web-home .ld-location,
body.web-home .ld-divider,
body.web-home .ld-description,
body.web-home .ld-store-card {
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

/* ── Store public page ───────────────────────────────────────────── */
body.web-home .spub-cover {
    border-radius: 24px;
    height: 280px;
}

body.web-home .spub-store-name { font-size: 28px; }

body.web-home .spub-desc-row,
body.web-home .spub-section-header,
body.web-home #storeListings,
body.web-home #storeReviews { max-width: none; }

/* ── Chat / enquiry ──────────────────────────────────────────────── */
body.web-home #app > h1:has(+ .chat-meta),
body.web-home .chat-meta,
body.web-home .chat-thread,
body.web-home .chat-input-bar { max-width: 760px; margin-left: auto; margin-right: auto; }

/* ── Admin ───────────────────────────────────────────────────────── */
body.web-home .adm-stat-grid,
body.web-home .adm-nav-grid { max-width: none; }

/* ── Profile web layout ──────────────────────────────────────────── */
body.web-home .prof-web-layout {
    max-width: 980px;
    margin: 0 auto;
}

/* ── Listing detail web layout ───────────────────────────────────── */
body.web-home .ld-below-grid { max-width: 820px; margin: 0 auto; }

/* ── State / empty blocks ────────────────────────────────────────── */
body.web-home .state { max-width: 560px; margin: 0 auto; }

/* ── Shared btn-row on content pages ────────────────────────────── */
body.web-home #app > .btn-row { max-width: 820px; margin-left: auto; margin-right: auto; }

/* ── Small helper texts below forms ─────────────────────────────── */
body.web-home #app > p.center.small {
    text-align: center;
}

body.web-home #app .small.center {
    text-align: center;
    display: block;
    max-width: 460px;
    margin: 0 auto 10px;
}

.web-footer {
    display: block;
    background: #102018;
    color: rgba(255,255,255,.78);
    padding: 34px 18px 90px;
}

.web-footer-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 1180px;
    margin: 0 auto;
}

.web-footer-brand img {
    width: 210px;
    display: block;
    margin-bottom: 14px;
    background: rgba(255,255,255,.96);
    border-radius: 8px;
    padding: 8px 10px;
}

.web-footer-brand p {
    max-width: 460px;
    line-height: 1.65;
    color: rgba(255,255,255,.72);
}

.web-footer h2 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 14px;
    letter-spacing: 0;
}

.web-footer nav {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.web-footer a {
    color: rgba(255,255,255,.72);
    text-decoration: none;
    font-size: 14px;
}

.web-footer a:hover {
    color: var(--amber);
}

.web-footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 1180px;
    margin: 28px auto 0;
    border-top: 1px solid rgba(255,255,255,.12);
    padding-top: 18px;
    font-size: 13px;
    color: rgba(255,255,255,.56);
}

@media (max-width: 520px) {
    body.web-home #mainHeader {
        padding: 0 12px;
    }

    body.web-home .brand-word {
        font-size: 19px;
    }

    body.web-home .brand-icon {
        width: 30px;
        height: 30px;
    }

    body.web-home #mainHeader .header-actions > .header-register {
        display: none;
    }

    body.web-home #mainHeader .header-actions > a {
        min-height: 34px;
        padding: 0 11px;
        font-size: 13px;
    }
}

@media (min-width: 700px) {
    .web-footer-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .web-footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (min-width: 900px) {
    :root {
        --header-h: 78px;
        --nav-h: 0px;
    }

    body.web-home #mainHeader {
        height: var(--header-h);
        padding: 0 max(32px, calc((100vw - 1180px) / 2));
        gap: 28px;
    }

    body.web-home .brand-word {
        font-size: 24px;
    }

    body.web-home .brand-icon {
        width: 36px;
        height: 36px;
    }

    .top-nav {
        display: flex;
        align-items: center;
        gap: 4px;
        flex: 1;
        height: 100%;
    }

    .top-nav a {
        display: inline-flex;
        align-items: center;
        height: 42px;
        padding: 0 14px;
        border-radius: 999px;
        color: rgba(255,255,255,.88);
        text-decoration: none;
        font-size: 15px;
        font-weight: 800;
        white-space: nowrap;
    }

    .top-nav a:hover {
        background: rgba(255,255,255,.13);
        color: #fff;
    }

    body.web-home #mainHeader .header-actions {
        margin-left: auto;
    }

    body.web-home #mainHeader .header-actions > a {
        min-height: 42px;
        padding: 0 18px;
    }

    body.web-home #bottomNav {
        display: none;
    }

    .mob-menu-btn { display: none; }
    .mob-nav { display: none !important; }

    body.web-home #app {
        padding: 44px max(32px, calc((100vw - 1120px) / 2)) 68px;
        max-width: none;
    }

    body.web-home #app.wh-landing {
        padding: 0;
    }

    /* Category grid: 4 columns */
    body.web-home #app .grid.grid-2:not(.adm-stat-grid):not(.adm-nav-grid) {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    /* Popular section: 3 columns on desktop */
    body.web-home #popularSection .grid.grid-2 {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    /* ── Web home hero band: full-bleed gradient section ─── */
    body.web-home .web-hero-band {
        background:
            radial-gradient(ellipse 70% 90% at 100% 50%, rgba(244,178,59,.13), transparent),
            radial-gradient(ellipse 60% 80% at 0%   60%, rgba(31,122,77,.07),  transparent),
            var(--bg);
        margin: -44px calc(-1 * max(32px, calc((100vw - 1120px) / 2))) 36px;
        padding: 68px max(32px, calc((100vw - 1120px) / 2)) 52px;
        border-bottom: 1px solid rgba(16,32,24,.07);
    }

    body.web-home .home-hero {
        margin: 0 0 28px;
    }

    body.web-home .home-greeting {
        font-size: clamp(42px, 4.2vw, 62px);
        line-height: 1;
        letter-spacing: 0;
        max-width: 760px;
    }

    body.web-home .home-tagline {
        font-size: 20px;
        color: #526257;
    }

    body.web-home .home-search-form {
        max-width: 700px;
        margin-bottom: 18px;
    }

    body.web-home .home-search-row {
        margin-bottom: 0;
        min-height: 56px;
        background: var(--card);
    }

    body.web-home .home-actions {
        max-width: 450px;
    }

    /* ── EXPLORE section ─────────────────────────────────── */
    body.web-home .home-section-label {
        margin-top: 8px;
    }

    body.web-home .home-cat-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 14px;
    }

    body.web-home .home-cat-pill {
        min-height: 128px;
        border-radius: 18px;
        box-shadow: 0 12px 30px rgba(16,32,24,.08);
    }

    /* ── Section headers ─────────────────────────────────── */
    body.web-home .home-section-header {
        margin: 40px 0 16px;
    }

    body.web-home .home-section-header h2 {
        font-size: 22px;
    }

    /* ── Featured stores: bigger chips on desktop ─────────── */
    body.web-home .home-store-chip {
        width: 96px;
    }

    body.web-home .home-store-chip-logo {
        width: 68px;
        height: 68px;
        border-radius: 18px;
    }

    body.web-home .home-store-chip-name {
        font-size: 12px;
        max-width: 90px;
    }

    /* ── Listing feed grid ───────────────────────────────── */
    body.web-home .grid-2 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    body.web-home .listing-card,
    body.web-home .card {
        border-radius: 14px;
    }

    body.web-home .lc-img {
        height: 180px;
    }

    body.web-home .page-content,
    body.web-home form.card,
    body.web-home #app > .card {
        max-width: 900px;
    }

    body.web-home .home-cta-bar {
        display: none;
    }

    /* ── Homepage search bar (web overrides) ────────────────────── */
    body.web-home .home-search-bar {
        max-width: 700px;
        padding: 0 10px 0 18px;
        margin-bottom: 18px;
    }
    body.web-home .home-search-input { font-size: 17px; padding: 17px 0; }
    body.web-home .home-search-go { width: 42px; height: 42px; border-radius: 12px; }

    /* ── Homepage location pill (web overrides) ──────────────────── */
    body.web-home .home-loc-pill { max-width: 700px; padding: 10px 18px; }
    body.web-home .home-loc-expand { max-width: 700px; }
    body.web-home .home-loc-sel  { font-size: 15px; }
    body.web-home .home-loc-town-inp { font-size: 15px; }

    /* ── Category cards (web overrides) ─────────────────────────── */
    body.web-home .home-cats-3 { max-width: 420px; margin-bottom: 24px; }
    body.web-home .home-cat  { padding: 16px 8px; font-size: 12px; }

    /* ── Services scroll (web overrides) ─────────────────────────── */
    body.web-home .home-svc-scroll { margin: 0; padding-left: 0; overflow-x: visible; flex-wrap: wrap; }
    body.web-home .home-svc-cat:last-child { margin-right: 0; }
    body.web-home .home-svc-cat { width: 96px; min-width: 96px; max-width: 96px; }
    body.web-home .home-svc-head { max-width: 700px; }

    /* Provider and store cards wider on web */
    body.web-home .provider-card    { padding: 18px; gap: 16px; }
    body.web-home .store-home-card  { padding: 18px; gap: 16px; }
    body.web-home .pv-thumb  { width: 80px; height: 80px; border-radius: 14px; }
    body.web-home .sc-logo   { width: 80px; height: 80px; border-radius: 14px; }
    body.web-home .pv-name   { font-size: 16px; }
    body.web-home .sc-name   { font-size: 16px; }

    /* Listing card images taller on web home */
    body.web-home #homePanel .lc-img { height: 200px; }

    /* Collapse grid-home-4 on narrower desktop */
    @media (max-width: 1100px) {
        body.web-home .grid-home-4 { grid-template-columns: repeat(3, 1fr); }
    }

    .web-footer {
        padding: 46px max(32px, calc((100vw - 1180px) / 2)) 24px;
    }

    .web-footer-inner {
        grid-template-columns: minmax(280px, 1.4fr) repeat(4, minmax(140px, 1fr));
        gap: 30px;
    }
}

@media (min-width: 900px) and (max-width: 1100px) {
    body.web-home .brand-word {
        font-size: 21px;
    }

    .top-nav a {
        padding: 0 10px;
        font-size: 14px;
    }

    .web-footer-inner {
        grid-template-columns: repeat(3, minmax(180px, 1fr));
    }
}

/* ══════════════════════════════════════════════════════════════════
   Web landing page sections  (wh-* classes)
   ══════════════════════════════════════════════════════════════════ */

/* ── Landing page: remove #app padding so sections go edge-to-edge ── */
body.web-home #app.wh-landing {
    padding: 0;
}

.wh-section {
    padding: 52px max(18px, calc((100vw - 1180px) / 2));
}

.wh-section-dark {
    background: #102018;
    color: #fff;
}

.wh-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.wh-section-head h2 {
    margin: 0;
    font-size: clamp(20px, 2.2vw, 28px);
    color: inherit;
}

.wh-section-title-center {
    text-align: center;
    font-size: clamp(22px, 2.4vw, 34px);
    color: #fff;
    margin: 0 0 10px;
}

.wh-section-sub-center {
    text-align: center;
    color: rgba(255,255,255,.65);
    font-size: 16px;
    margin: 0 0 36px;
}

/* ── Hero ──────────────────────────────────────────────────────────── */
.wh-hero {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 56px max(18px, calc((100vw - 1180px) / 2)) 48px;
    background:
        radial-gradient(circle at 70% 40%, rgba(244,178,59,.14), transparent 50%),
        radial-gradient(circle at 10% 80%, rgba(31,122,77,.10), transparent 50%),
        var(--bg);
    overflow: hidden;
    position: relative;
}

.wh-hero-body {
    flex: 1;
    min-width: 0;
    max-width: 680px;
}

.wh-headline {
    font-size: clamp(34px, 4.8vw, 68px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -.03em;
    margin: 0 0 16px;
    color: var(--text);
}

.wh-hl-gold { color: var(--amber); }

.wh-subline {
    font-size: clamp(16px, 1.5vw, 20px);
    color: #526257;
    margin: 0 0 28px;
    max-width: 560px;
    line-height: 1.55;
}

.wh-search-form {
    display: grid;
    grid-template-columns: minmax(0,1fr) 150px;
    gap: 10px;
    max-width: 700px;
    margin-bottom: 20px;
}

.wh-search-form .home-search-row {
    background: var(--card);
    border: 1.5px solid transparent;
    box-shadow: 0 8px 28px rgba(16,32,24,.10);
    min-height: 58px;
    border-radius: 16px;
    margin: 0;
}

.wh-search-form .btn {
    min-height: 58px;
    border-radius: 16px;
    font-size: 16px;
}

.wh-hero-ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.wh-hero-btn {
    width: auto;
    min-height: 48px;
    padding: 0 22px;
    font-size: 15px;
}

.wh-hero-graphic {
    flex-shrink: 0;
    display: none;
}

.wh-hero-bag {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green) 0%, #2d9460 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.85);
    box-shadow: 0 24px 64px rgba(31,122,77,.3);
}

/* ── Trust bar ─────────────────────────────────────────────────────── */
.wh-trust-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    background: var(--green);
    color: #fff;
    padding: 20px max(18px, calc((100vw - 1180px) / 2));
}

.wh-trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    flex: 1;
    min-width: 110px;
    padding: 6px 12px;
    text-align: center;
}

.wh-trust-num {
    font-size: clamp(20px, 2.2vw, 28px);
    font-weight: 900;
    letter-spacing: -.02em;
    color: var(--amber);
}

.wh-trust-item > span:last-child {
    font-size: 12px;
    color: rgba(255,255,255,.75);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* ── Category grid on web ──────────────────────────────────────────── */
.wh-cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.wh-cat-pill {
    min-height: 110px;
    border-radius: 18px;
    padding: 18px 8px 12px;
}

/* ── How it works ──────────────────────────────────────────────────── */
.wh-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    max-width: 900px;
    margin: 0 auto;
}

.wh-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}

.wh-step-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    border: 1.5px solid rgba(255,255,255,.18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--amber);
    flex-shrink: 0;
}

.wh-step-num {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    color: rgba(255,255,255,.4);
    text-transform: uppercase;
}

.wh-step-title {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
}

.wh-step-desc {
    font-size: 14px;
    color: rgba(255,255,255,.65);
    line-height: 1.6;
    max-width: 280px;
}

/* ── For sellers ───────────────────────────────────────────────────── */
.wh-seller-inner {
    display: flex;
    flex-direction: column;
    gap: 36px;
    align-items: flex-start;
}

.wh-seller-text h2 {
    font-size: clamp(22px, 2.4vw, 36px);
    margin: 0 0 12px;
}

.wh-seller-text > p {
    font-size: 16px;
    color: #526257;
    max-width: 520px;
    margin-bottom: 24px;
    line-height: 1.65;
}

.wh-seller-feats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 28px;
}

.wh-seller-feat {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.wh-sfeat-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(31,122,77,.10);
    color: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wh-sfeat-desc {
    font-size: 13px;
    color: var(--muted);
    margin-top: 2px;
}

.wh-seller-cta {
    width: auto;
    padding: 0 28px;
    min-height: 52px;
    font-size: 16px;
}

.wh-seller-art {
    display: none;
}

.wh-art-circle {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(31,122,77,.08), rgba(244,178,59,.12));
    border: 2px solid rgba(31,122,77,.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green);
}

/* ── App download section ──────────────────────────────────────────── */
.wh-app-section {
    background: linear-gradient(135deg, #102018 0%, #1F7A4D 100%);
    color: #fff;
}

.wh-app-inner {
    display: flex;
    flex-direction: column;
    gap: 28px;
    align-items: flex-start;
}

.wh-app-inner h2 {
    color: #fff;
    font-size: clamp(22px, 2.4vw, 34px);
    margin: 0 0 10px;
}

.wh-app-inner p {
    color: rgba(255,255,255,.75);
    font-size: 16px;
    max-width: 480px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.wh-store-btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.wh-store-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.15);
    border: 1.5px solid rgba(255,255,255,.3);
    color: #fff;
    text-decoration: none;
    padding: 11px 20px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 700;
    transition: background .15s;
}

.wh-store-btn:hover {
    background: rgba(255,255,255,.25);
}

.wh-app-icon {
    display: none;
}

.wh-app-icon img {
    width: 130px;
    height: 130px;
    border-radius: 28px;
    box-shadow: 0 20px 50px rgba(0,0,0,.4);
    background: #fff;
    padding: 8px;
}

/* ── Featured listings ─────────────────────────────────────────────── */
.wh-listings .listing-card {
    border-radius: 16px;
}

/* ════════════════════ TABLET (600px+) ═════════════════════════════ */
@media (min-width: 600px) {
    .wh-cat-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 14px;
    }

    .wh-steps {
        grid-template-columns: repeat(3, 1fr);
    }

    .wh-seller-feats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ════════════════════ DESKTOP (900px+) ════════════════════════════ */
@media (min-width: 900px) {
    /* Landing page only: sections handle their own padding via .wh-section */
    body.web-home #app.wh-landing {
        padding: 0;
    }

    .wh-hero-graphic {
        display: flex;
    }

    .wh-seller-inner {
        flex-direction: row;
        align-items: center;
    }

    .wh-seller-text {
        flex: 1;
    }

    .wh-seller-art {
        display: flex;
        flex-shrink: 0;
    }

    .wh-app-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .wh-app-icon {
        display: flex;
    }

    .wh-trust-item {
        border-right: 1px solid rgba(255,255,255,.18);
    }

    .wh-trust-item:last-child {
        border-right: none;
    }
}

/* ══════════════════════════════════════════════════════════════════
   Admin sidebar layout  (900px+)
   ══════════════════════════════════════════════════════════════════ */
@media (min-width: 900px) {
    body.web-home .adm-layout {
        /* Fixed app-shell: header stays via sticky, admin layout takes the rest */
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        bottom: 0;
        display: flex;
        background: #f4f5f4;
        margin: 0;
        z-index: 2;   /* above page bg, below header (z-index:10) and modals */
    }

    body.web-home .adm-sidebar {
        display: block;
        width: 234px;
        flex-shrink: 0;
        background: #fff;
        border-right: 1px solid var(--line);
        /* fixed parent handles containment — no sticky needed */
        position: static;
        height: 100%;
        overflow-y: auto;
        padding-bottom: 48px;
        scrollbar-width: thin;
    }

    body.web-home .adm-sb-brand {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 20px 18px 18px;
        font-size: 13px;
        font-weight: 800;
        letter-spacing: .02em;
        color: var(--green);
        border-bottom: 1px solid var(--line);
    }

    body.web-home .adm-sb-section {
        padding: 18px 18px 5px;
        font-size: 10px;
        font-weight: 700;
        letter-spacing: .1em;
        text-transform: uppercase;
        color: var(--muted);
    }

    body.web-home .adm-sb-item {
        display: flex;
        align-items: center;
        gap: 9px;
        padding: 9px 18px;
        text-decoration: none;
        color: #3a4040;
        font-size: 13.5px;
        font-weight: 600;
        transition: background .12s, color .12s;
        border-left: 2px solid transparent;
    }
    body.web-home .adm-sb-item:hover {
        background: var(--fill);
        color: var(--green-dark);
    }
    body.web-home .adm-sb-item.active {
        background: var(--green-tint);
        color: var(--green);
        border-left-color: var(--green);
    }
    body.web-home .adm-sb-badge {
        margin-left: auto;
        background: #ef4444;
        color: #fff;
        font-size: 10px;
        font-weight: 700;
        padding: 1px 6px;
        border-radius: 99px;
        min-width: 18px;
        text-align: center;
        line-height: 18px;
    }

    body.web-home .adm-main {
        flex: 1;
        min-width: 0;
        height: 100%;
        overflow-y: auto;
        padding: 36px 44px 72px;
    }

    body.web-home .adm-main h1 {
        font-size: 22px;
        font-weight: 800;
        letter-spacing: -.025em;
        margin: 0 0 22px;
        color: var(--text);
    }

    body.web-home .adm-main > h2 {
        font-size: 10.5px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .09em;
        color: var(--muted);
        margin: 30px 0 12px;
    }
    body.web-home .adm-main > h2:first-child { margin-top: 0; }

    /* Stat tiles: 4-column grid with accent border */
    body.web-home .adm-stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

    body.web-home .adm-stat {
        border: 1px solid var(--line);
        border-left: 3px solid var(--green);
        border-radius: 12px;
        padding: 16px 18px;
        box-shadow: 0 1px 4px rgba(16,32,24,.04);
    }
    body.web-home .adm-stat-alert {
        border-left-color: #f59e0b;
        background: #fffbf0;
    }
    body.web-home .adm-stat-value {
        font-size: 24px;
        letter-spacing: -.02em;
    }
    body.web-home .adm-stat-label { font-size: 11.5px; }

    /* Nav tiles are redundant — sidebar handles navigation */
    body.web-home .adm-nav-grid { display: none !important; }

    /* Admin table rows */
    body.web-home .adm-row {
        padding: 14px 0;
        border-bottom: 1px solid var(--line);
    }
    body.web-home .adm-row:last-child { border-bottom: none; }

    /* Reports bar chart label wider on desktop */
    body.web-home .adm-bar-label { width: 160px; font-size: 13px; }
    body.web-home .adm-bar-list { margin-bottom: 24px; }
}

/* ══════════════════════════════════════════════════════════════════
   Profile: two-column layout  (800px+)
   ══════════════════════════════════════════════════════════════════ */
@media (min-width: 800px) {
    body.web-home .prof-web-layout {
        display: grid;
        grid-template-columns: 264px 1fr;
        gap: 28px;
        align-items: start;
    }

    body.web-home .prof-aside-card {
        position: sticky;
        top: calc(var(--header-h) + 20px);
        margin-bottom: 0;
    }

    /* Profile form fills its column */
    body.web-home #profileForm { max-width: none; margin: 0 0 12px; }

    body.web-home .prof-content-col h2.prof-section-head {
        font-size: 13px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .07em;
        color: var(--muted);
        margin: 0 0 12px;
    }

    /* Aside nav links: clean list, no chevron */
    body.web-home .prof-aside-nav {
        display: flex;
        flex-direction: column;
        margin: 0 -16px;
    }
    body.web-home .prof-aside-nav .prof-link {
        border-radius: 0;
        padding: 10px 16px;
        font-size: 13.5px;
        border-bottom: 1px solid var(--line);
    }
    body.web-home .prof-aside-nav .prof-link:last-child { border-bottom: none; }
    body.web-home .prof-aside-nav .prof-link .icon:last-child { display: none; }

    /* Bigger avatar in aside */
    body.web-home .prof-aside-avatar {
        width: 68px;
        height: 68px;
        font-size: 24px;
        border-radius: 22px;
        margin-bottom: 12px;
    }

    body.web-home .prof-aside-name {
        font-size: 17px;
        font-weight: 800;
        letter-spacing: -.01em;
    }
}

/* ══════════════════════════════════════════════════════════════════
   Listing detail: two-column layout  (900px+)
   ══════════════════════════════════════════════════════════════════ */
@media (min-width: 900px) {
    body.web-home .ld-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
        gap: 48px;
        max-width: 1100px;
        margin: 0 auto;
        align-items: start;
    }

    body.web-home .ld-col-left { min-width: 0; }
    body.web-home .ld-col-right { min-width: 0; }

    body.web-home .ld-grid .ld-gallery,
    body.web-home .ld-grid .ld-gallery-empty {
        max-width: none;
        margin: 0;
        border-radius: 20px;
        overflow: hidden;
        position: sticky;
        top: calc(var(--header-h) + 20px);
    }

    body.web-home .ld-grid .ld-badges,
    body.web-home .ld-grid .ld-title,
    body.web-home .ld-grid .ld-price,
    body.web-home .ld-grid .ld-meta,
    body.web-home .ld-grid .ld-location,
    body.web-home .ld-grid .ld-divider,
    body.web-home .ld-grid .ld-description,
    body.web-home .ld-grid .ld-store-card {
        max-width: none;
        margin-left: 0;
        margin-right: 0;
    }

    body.web-home .ld-grid .ld-title {
        font-size: clamp(22px, 2vw, 30px);
        margin-top: 4px;
    }

    body.web-home .ld-grid .ld-price {
        font-size: clamp(22px, 2.2vw, 32px);
    }

    body.web-home .ld-below-grid {
        max-width: 1100px;
        margin: 0 auto;
    }
}

/* ══════════════════════════════════════════════════════════════════
   Provider profile: hero band hidden globally; web gets larger avatar
   ══════════════════════════════════════════════════════════════════ */
body.web-home .pp-hero-band  { display: none; }
body.web-home .pp-avatar-wrap { margin-top: 36px; }
body.web-home .pp-avatar     { width: 104px; height: 104px; }
body.web-home .pp-avatar-empty { width: 104px; height: 104px; }

/* ══════════════════════════════════════════════════════════════════
   Home tile sections: proper grid on desktop (no horizontal scroll)
   ══════════════════════════════════════════════════════════════════ */
@media (min-width: 900px) {
    body.web-home .home-tile-scroll {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        grid-template-rows: none;
        grid-auto-flow: row;
        overflow-x: visible;
        scroll-snap-type: none;
        margin: 0 0 8px;
        gap: 12px;
    }
    body.web-home .home-tile {
        width: 100% !important;
        scroll-snap-align: none;
    }
    body.web-home .ht-photo,
    body.web-home .ht-photo-bg,
    body.web-home .ht-photo-empty { height: 130px; }
}
