:root { --primary:#2563eb; --light:#f6f7fb; }
body { background: var(--light); font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.fw-black { font-weight: 900; letter-spacing: -0.4px; }
.hero { background: linear-gradient(135deg, #2563eb, #14b8a6); }
.ad-img { height: 190px; object-fit: cover; }
.detail-img { max-height: 520px; object-fit: cover; }
.min-title { min-height: 48px; }
.seller-box { top: 90px; }
.form-control, .form-select { min-height: 46px; }
.navbar-brand { font-size: 1.45rem; }
.clickable-img { cursor: zoom-in; }
.carousel-control-prev-icon, .carousel-control-next-icon { filter: drop-shadow(0 2px 6px rgba(0,0,0,.6)); }

.dashboard-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 1.5rem;
    padding: 1.1rem;
    box-shadow: 0 .5rem 1.25rem rgba(15,23,42,.06);
    height: 100%;
}
.dashboard-number {
    font-size: 2rem;
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.5px;
}

@media (max-width: 767.98px) {
    .responsive-table thead {
        display: none;
    }
    .responsive-table,
    .responsive-table tbody,
    .responsive-table tr,
    .responsive-table td {
        display: block;
        width: 100%;
    }
    .responsive-table tr {
        border: 1px solid rgba(0,0,0,.08);
        border-radius: 1rem;
        padding: .75rem;
        margin-bottom: .75rem;
        background: #fff;
    }
    .responsive-table td {
        border: 0;
        padding: .35rem 0;
    }
    .responsive-table td::before {
        content: attr(data-label);
        display: block;
        font-size: .75rem;
        font-weight: 700;
        color: #6c757d;
        margin-bottom: .1rem;
    }
    .dashboard-number {
        font-size: 1.55rem;
    }
}

/* Update 13: seller plan quota pills */
.quota-pill {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 10px 14px;
    min-width: 115px;
    text-align: center;
}
.quota-pill strong {
    display: block;
    font-size: 1.25rem;
    line-height: 1.1;
}
.quota-pill span {
    display: block;
    color: #6b7280;
    font-size: .78rem;
}
@media (max-width: 576px) {
    .quota-pill { min-width: calc(50% - 0.5rem); }
}

/* Update 15: browse filters */
.mobile-filter-sheet {
    height: 86vh;
    border-top-left-radius: 1.5rem;
    border-top-right-radius: 1.5rem;
}
.mobile-filter-sheet .offcanvas-body {
    overflow-y: auto;
}
.ad-card .ad-img {
    height: 190px;
    object-fit: cover;
}
@media (max-width: 576px) {
    .ad-card .ad-img {
        height: 165px;
    }
    .pagination .page-link {
        border-radius: 999px;
        min-width: 40px;
        text-align: center;
    }
}

/* Update 16: legal/contact pages */
.legal-page h4 {
    margin-top: 1.5rem;
    font-weight: 800;
}
.legal-page li {
    margin-bottom: .45rem;
}
@media (max-width: 576px) {
    .legal-page {
        padding: 1.25rem !important;
    }
}

/* Update 23: customer-friendly membership usage cards */
.membership-usage-card {
    border: 1px solid #e9ecef;
    border-radius: 1rem;
    padding: 1rem;
    background: #fff;
    height: 100%;
}
.membership-usage-card .progress {
    height: .65rem;
    border-radius: 999px;
}

.brand-trademark {
    font-size: 0.48em;
    position: relative;
    top: -0.55em;
    margin-left: 1px;
    font-weight: 600;
}

/* Update 23 Hotfix 1: clickable ad cards and compact titles */
.ad-card {
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease;
}
.ad-card:hover,
.ad-card:focus-within {
    transform: translateY(-4px);
    box-shadow: 0 1rem 2rem rgba(15, 23, 42, .14) !important;
}
.ad-card:focus-within {
    outline: 3px solid rgba(37, 99, 235, .24);
    outline-offset: 2px;
}
.ad-card-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    line-height: 1.35;
    min-height: 2.7em;
    max-height: 2.7em;
    overflow-wrap: anywhere;
}
.ad-card .ad-card-seller-link {
    position: relative;
    z-index: 2;
}
.ad-card .ad-card-seller-link:hover {
    color: var(--primary) !important;
    text-decoration: underline !important;
}
.ad-card .ad-card-details-link:focus-visible {
    outline: none;
}

/* Update 24 Hotfix 2: consistent, accessible page polish */
html, body { min-height: 100%; }
body { display: flex; flex-direction: column; color: #172033; }
main { flex: 1 0 auto; }
footer { margin-top: auto; }

.btn:not(.btn-close),
.nav-link,
.dropdown-item {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus,
.btn:focus-visible,
a:focus-visible {
    box-shadow: 0 0 0 .25rem rgba(37, 99, 235, .18);
}

.validation-summary-errors {
    background: #fff3f3;
    border: 1px solid #f5c2c7;
    border-radius: 1rem;
    padding: .9rem 1rem;
    margin-bottom: 1rem;
}
.validation-summary-errors ul { margin-bottom: 0; }

.image-upload-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: .75rem;
}
.image-preview-item {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #dee2e6;
    border-radius: 1rem;
    background: #fff;
}
.image-preview-item img {
    width: 100%;
    height: 105px;
    object-fit: cover;
    background: #f8fafc;
}
.image-preview-unavailable::before {
    content: "Preview unavailable";
    display: grid;
    place-items: center;
    height: 105px;
    padding: .5rem;
    color: #6c757d;
    font-size: .78rem;
    text-align: center;
    background: #f8fafc;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: .5rem;
    z-index: 2000;
}
.skip-link:focus {
    left: .5rem;
}

@media (max-width: 991.98px) {
    .navbar-collapse .d-flex {
        align-items: stretch !important;
        flex-direction: column;
    }
    .navbar-collapse .btn,
    .navbar-collapse form,
    .navbar-collapse form .btn {
        width: 100%;
    }
    .navbar-nav .nav-link,
    .dropdown-item {
        justify-content: flex-start;
    }
}



/* Update 24 Hotfix 7: browse sidebar, mobile filters, notifications and registration recovery */
.min-w-0 { min-width: 0; }

.nearby-search-icon {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--primary, #2563eb);
    flex: 0 0 auto;
}
.nearby-search-card {
    border: 1px solid rgba(37, 99, 235, .14);
    background: linear-gradient(135deg, rgba(239, 246, 255, .9), #fff);
}
.nearby-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.nearby-toolbar-heading,
.nearby-toolbar-controls {
    display: flex;
    align-items: center;
    gap: .75rem;
}
.nearby-toolbar-controls { flex-wrap: wrap; justify-content: flex-end; }
.nearby-radius-select-wrap {
    display: flex;
    align-items: center;
    gap: .5rem;
}
.nearby-radius-select-wrap .form-select {
    min-height: 42px;
    width: 108px;
    padding-top: .35rem;
    padding-bottom: .35rem;
}
.nearby-status-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem;
    padding-top: .55rem;
    border-top: 1px solid rgba(15, 23, 42, .08);
    font-size: .83rem;
}

.browse-layout {
    display: grid;
    grid-template-columns: minmax(250px, 300px) minmax(0, 1fr);
    align-items: start;
    gap: 1.25rem;
}
.browse-filter-sidebar {
    position: sticky;
    top: 82px;
    max-height: calc(100vh - 100px);
    overflow: auto;
    scrollbar-width: thin;
}
.browse-filter-panel { overflow: hidden; }
.filter-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
}
.filter-panel-form { padding: 0 1rem 1rem; }
.filter-section { border-bottom: 1px solid #edf0f4; }
.filter-section summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .9rem 0;
    font-weight: 800;
    cursor: pointer;
    list-style: none;
    user-select: none;
}
.filter-section summary::-webkit-details-marker { display: none; }
.filter-section .filter-chevron { transition: transform .2s ease; }
.filter-section[open] .filter-chevron { transform: rotate(180deg); }
.filter-section-body { padding: 0 0 1rem; }
.filter-actions {
    position: sticky;
    bottom: 0;
    background: #fff;
    z-index: 2;
}
.results-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.active-filter-bar { min-height: 34px; }
.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    border: 1px solid #dce1e8;
    background: #fff;
    color: #334155;
    border-radius: 999px;
    padding: .35rem .7rem;
    font-size: .78rem;
    font-weight: 700;
}
.filter-chip-success { background: #ecfdf3; border-color: #bbf7d0; color: #166534; }
.filter-chip-primary { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }

.mobile-filter-sheet {
    width: min(92vw, 390px) !important;
    height: 100vh;
    border-radius: 0;
}
.mobile-filter-form { min-height: 100%; padding-bottom: 1.25rem; }
.mobile-filter-form .filter-actions {
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.notification-bell-button {
    width: 44px;
    height: 44px;
    min-height: 44px !important;
    padding: 0;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}
.notification-count-badge {
    position: absolute;
    top: -5px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: #dc3545;
    color: #fff;
    border: 2px solid #fff;
    font-size: .68rem;
    line-height: 16px;
    font-weight: 800;
}
.notification-menu { width: min(390px, calc(100vw - 1rem)); overflow: hidden; }
.notification-menu-list { max-height: 420px; overflow-y: auto; }
.notification-menu-item {
    display: grid !important;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: start !important;
    gap: .7rem;
    padding: .8rem 1rem;
    white-space: normal;
    border-bottom: 1px solid #f1f3f5;
}
.notification-menu-icon,
.notification-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}
.notification-card { border: 1px solid rgba(0, 0, 0, .06); }
.notification-empty-icon,
.registration-help-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eaf2ff;
    color: #2563eb;
    font-size: 1.8rem;
    flex: 0 0 auto;
}

@media (max-width: 991.98px) {
    .browse-layout { display: block; }
    .nearby-toolbar { align-items: stretch; flex-direction: column; }
    .nearby-toolbar-controls { justify-content: stretch; }
    .nearby-radius-select-wrap { flex: 1 1 120px; }
    .nearby-radius-select-wrap .form-select { width: 100%; }
    .nearby-toolbar-controls .btn { flex: 1 1 auto; }
    .notification-dropdown .btn { width: 44px !important; }
}

@media (max-width: 575.98px) {
    main.container { padding-left: .75rem; padding-right: .75rem; }
    .nearby-search-card { padding: .85rem !important; }
    .nearby-toolbar-heading { align-items: flex-start; }
    .nearby-toolbar-controls {
        display: grid;
        grid-template-columns: minmax(100px, .8fr) minmax(0, 1.4fr);
        gap: .5rem;
    }
    .nearby-radius-select-wrap { display: block; }
    .nearby-radius-select-wrap label { display: block; margin: 0 0 .2rem .25rem; }
    .nearby-toolbar-controls .btn { width: 100%; min-width: 0; padding-left: .65rem; padding-right: .65rem; }
    #clearNearbySearchButton { grid-column: 1 / -1; }
    .nearby-status-line { align-items: flex-start; }
    .results-toolbar { font-size: .9rem; }
    .notification-menu {
        position: fixed !important;
        inset: 64px .5rem auto .5rem !important;
        width: auto;
        transform: none !important;
    }
}
.login-user-email { max-width: 180px; display: inline-block; }
@media (max-width: 991.98px) { .login-user-email { max-width: 100%; } }

/* Update 25 Rev1: plans, packages and admin catalog */
.min-w-0 { min-width: 0 !important; }

.pricing-hero {
    position: relative;
    overflow: hidden;
    border-radius: 1.75rem;
    padding: clamp(1.5rem, 4vw, 3.25rem);
    color: #fff;
    background:
        radial-gradient(circle at 10% 0%, rgba(255,255,255,.22), transparent 34%),
        radial-gradient(circle at 95% 100%, rgba(20,184,166,.30), transparent 38%),
        linear-gradient(135deg, #0f3d91 0%, #2563eb 56%, #0f9f8f 100%);
    box-shadow: 0 1.25rem 3rem rgba(30,64,175,.20);
}
.pricing-hero::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    right: -90px;
    top: -110px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 50%;
}
.pricing-hero-content { position: relative; z-index: 1; max-width: 850px; }
.pricing-hero h1 {
    margin: .8rem 0 .7rem;
    font-size: clamp(2rem, 5vw, 3.65rem);
    line-height: 1.04;
    font-weight: 900;
    letter-spacing: -.045em;
}
.pricing-hero p { max-width: 760px; margin: 0; color: rgba(255,255,255,.86); font-size: 1.05rem; }
.pricing-eyebrow,
.pricing-hero-note {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    border-radius: 999px;
    font-weight: 800;
}
.pricing-eyebrow {
    padding: .45rem .75rem;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.24);
    font-size: .78rem;
    letter-spacing: .035em;
    text-transform: uppercase;
}
.pricing-hero-note {
    min-height: 44px;
    padding: .65rem .9rem;
    color: rgba(255,255,255,.92);
    background: rgba(9,30,66,.20);
    border: 1px solid rgba(255,255,255,.18);
    font-size: .84rem;
}

.pricing-step-card {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: 1rem 1.1rem;
    border: 1px solid #e5eaf2;
    border-radius: 1.15rem;
    background: #fff;
    box-shadow: 0 .55rem 1.35rem rgba(15,23,42,.055);
}
.pricing-step-card > span {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #eaf2ff;
    color: #1d4ed8;
    font-weight: 900;
}
.pricing-step-card strong,
.pricing-step-card small { display: block; }
.pricing-step-card small { margin-top: .15rem; color: #64748b; }

.current-plan-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem;
    border: 1px solid #bfe7d2;
    border-radius: 1.15rem;
    background: linear-gradient(135deg, #f0fdf4, #ecfeff);
}

.pricing-accordion .accordion-item {
    border: 1px solid #dfe6f0;
    border-radius: 1.35rem !important;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 .65rem 1.7rem rgba(15,23,42,.06);
}
.pricing-accordion .accordion-button {
    gap: .85rem;
    padding: 1.15rem 1.25rem;
    color: #13213c;
    background: #fff;
    box-shadow: none;
}
.pricing-accordion .accordion-button:not(.collapsed) {
    color: #123b82;
    background: linear-gradient(90deg, #f4f8ff, #f8fffd);
}
.pricing-accordion .accordion-button::after { margin-left: .25rem; }
.pricing-accordion .accordion-button small {
    display: block;
    margin-top: .12rem;
    color: #64748b;
    font-weight: 500;
}
.pricing-family-icon {
    width: 44px;
    height: 44px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: .9rem;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #14b8a6);
    box-shadow: 0 .45rem 1rem rgba(37,99,235,.18);
}
.pricing-family-count {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: .32rem .65rem;
    color: #475569;
    background: #f1f5f9;
    font-size: .75rem;
    font-weight: 800;
}

.plan-choice-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
    border: 1px solid #e1e7ef;
    border-radius: 1.25rem;
    background: #fff;
    box-shadow: 0 .5rem 1.35rem rgba(15,23,42,.055);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.plan-choice-card:hover {
    transform: translateY(-3px);
    border-color: #bfd0f7;
    box-shadow: 0 .9rem 2rem rgba(15,23,42,.10);
}
.plan-choice-featured {
    border: 2px solid #20a464;
    background: linear-gradient(180deg, #f2fff8 0%, #fff 35%);
}
.plan-type-badge {
    display: inline-flex;
    align-items: center;
    width: max-content;
    max-width: 100%;
    padding: .35rem .65rem;
    border-radius: 999px;
    color: #1d4ed8;
    background: #eaf2ff;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .025em;
    text-transform: uppercase;
}
.plan-choice-card h3 { margin: 0; font-size: 1.3rem; font-weight: 900; letter-spacing: -.025em; }
.plan-summary { min-height: 3.4rem; margin: .55rem 0 1rem; color: #64748b; }
.plan-price-row { display: flex; align-items: end; gap: .45rem; margin-bottom: 1rem; }
.plan-price-row strong { font-size: 2.15rem; line-height: 1; font-weight: 900; letter-spacing: -.045em; }
.plan-price-row span { color: #64748b; font-size: .84rem; font-weight: 700; }
.plan-metrics {
    display: grid;
    gap: 0;
    margin-bottom: 1rem;
    border-block: 1px solid #edf1f5;
}
.plan-metrics > div {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    padding: .66rem 0;
    border-bottom: 1px dashed #e4e9ef;
}
.plan-metrics > div:last-child { border-bottom: 0; }
.plan-metrics span { color: #64748b; font-size: .84rem; }
.plan-metrics strong { text-align: right; font-size: .88rem; }
.plan-benefits { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .48rem; }
.plan-benefits li { display: flex; align-items: flex-start; gap: .5rem; color: #334155; font-size: .88rem; }
.plan-benefits i { color: #16a05d; margin-top: .08rem; }

.purchase-progress-card,
.package-record-card,
.empty-state-card,
.pricing-footnote {
    border: 1px solid #e1e7ef;
    border-radius: 1.25rem;
    background: #fff;
    box-shadow: 0 .55rem 1.4rem rgba(15,23,42,.055);
}
.purchase-progress-card { padding: 1.2rem; }
.pricing-footnote { display: flex; align-items: flex-start; gap: .65rem; padding: 1rem 1.15rem; color: #475569; }
.pricing-footnote i { color: #2563eb; }
.empty-state-card { padding: 2.5rem 1.25rem; }
.empty-state-card > i { display: block; margin-bottom: .8rem; color: #2563eb; font-size: 2.25rem; }
.package-record-card { display: flex; flex-direction: column; padding: 1.2rem; }
.package-date-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: .6rem;
}
.package-date-strip > div,
.package-stat {
    min-width: 0;
    padding: .72rem;
    border: 1px solid #e8edf3;
    border-radius: .9rem;
    background: #f8fafc;
}
.package-date-strip span,
.package-date-strip strong,
.package-stat strong,
.package-stat span { display: block; }
.package-date-strip span,
.package-stat span { color: #64748b; font-size: .72rem; }
.package-date-strip strong { margin-top: .15rem; overflow-wrap: anywhere; font-size: .85rem; }
.package-stat { height: 100%; text-align: center; }
.package-stat strong { font-size: 1.2rem; font-weight: 900; }
.package-progress { height: .55rem; border-radius: 999px; }

.admin-plan-editor { max-width: 1040px; }
.admin-editor-card {
    margin-bottom: 1rem;
    padding: 1.25rem;
    border: 1px solid #e1e7ef;
    border-radius: 1.25rem;
    background: #fff;
    box-shadow: 0 .45rem 1.2rem rgba(15,23,42,.05);
}
.admin-editor-heading {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    margin-bottom: 1.1rem;
}
.admin-editor-heading > i {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: .8rem;
    color: #1d4ed8;
    background: #eaf2ff;
}
.admin-editor-heading h2 { margin: 0; font-size: 1.05rem; font-weight: 900; }
.admin-editor-heading p { margin: .15rem 0 0; color: #64748b; font-size: .84rem; }
.admin-catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 1rem;
}
.admin-catalog-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 1.2rem;
    border: 1px solid #e1e7ef;
    border-radius: 1.25rem;
    background: #fff;
    box-shadow: 0 .5rem 1.3rem rgba(15,23,42,.055);
}
.admin-catalog-muted { background: #f8fafc; opacity: .88; }
.admin-catalog-description { min-height: 3.6rem; overflow-wrap: anywhere; }

@media (max-width: 767.98px) {
    .pricing-hero { border-radius: 1.3rem; }
    .current-plan-strip { align-items: stretch; flex-direction: column; }
    .current-plan-strip .btn { width: 100%; }
    .pricing-family-count { display: none; }
    .pricing-accordion .accordion-button { padding: 1rem; }
    .pricing-accordion .accordion-body { padding: .9rem; }
    .plan-summary { min-height: 0; }
}

@media (max-width: 575.98px) {
    .pricing-hero { padding: 1.35rem; }
    .pricing-hero h1 { font-size: 2rem; }
    .pricing-hero-note { width: 100%; justify-content: flex-start; }
    .pricing-step-card { padding: .9rem; }
    .pricing-family-icon { width: 39px; height: 39px; }
    .package-date-strip { grid-template-columns: 1fr; }
    .plan-price-row strong { font-size: 1.9rem; }
    .admin-editor-card { padding: 1rem; }
    .admin-catalog-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .plan-choice-card { transition: none; }
}

.validation-summary-valid { display: none; }

.notification-menu-item.notification-item-read {
    background: var(--bs-tertiary-bg);
}

.notification-menu-item.notification-item-read .fw-semibold {
    font-weight: 500 !important;
}

.package-credit-summary .package-stat {
    min-height: 78px;
}

/* Update 26 clean baseline: responsive app shell and navigation layering */
.app-navbar {
    z-index: 1030;
    min-height: 70px;
    padding-block: .55rem;
    box-shadow: 0 .25rem 1rem rgba(15, 23, 42, .04);
}
.app-navbar-container { max-width: 1500px; padding-inline: clamp(.75rem, 2vw, 1.5rem); }
.app-navbar .dropdown-menu { z-index: 1100; min-width: 15rem; border-radius: 1rem; padding: .45rem; }
.app-navbar .dropdown-item { width: 100%; justify-content: flex-start; border-radius: .7rem; padding: .55rem .75rem; }
.app-navbar .dropdown-item:hover,
.app-navbar .dropdown-item:focus { background: #eff6ff; color: #1d4ed8; }
.primary-navigation { gap: .05rem; }
.primary-navigation > .nav-item > .nav-link { padding-inline: .62rem; white-space: nowrap; }
.app-navbar-actions { flex: 0 0 auto; }
.account-menu-button { max-width: 220px; padding: .32rem .7rem .32rem .35rem; gap: .45rem; }
.account-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1d4ed8;
    background: #eaf2ff;
    flex: 0 0 auto;
}
.account-menu { width: min(310px, calc(100vw - 1rem)); }
.account-button-copy { line-height: 1.05; }
.account-button-copy strong { font-size: .82rem; }
.account-button-copy small { max-width: 145px; color: #64748b; font-size: .7rem; }
.seller-box { z-index: 1; }

.mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1025;
    min-height: calc(66px + env(safe-area-inset-bottom, 0px));
    padding: .4rem .4rem calc(.35rem + env(safe-area-inset-bottom, 0px));
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: end;
    background: rgba(255,255,255,.97);
    border-top: 1px solid rgba(15,23,42,.1);
    box-shadow: 0 -.6rem 1.5rem rgba(15,23,42,.08);
    backdrop-filter: blur(12px);
}
.mobile-bottom-nav > a {
    position: relative;
    min-width: 0;
    min-height: 54px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .12rem;
    color: #64748b;
    font-size: .7rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: .9rem;
}
.mobile-bottom-nav > a i { font-size: 1.22rem; line-height: 1; }
.mobile-bottom-nav > a:hover,
.mobile-bottom-nav > a:focus-visible { color: #1d4ed8; background: #eff6ff; }
.mobile-bottom-nav .mobile-post-action {
    width: 58px;
    min-height: 58px;
    margin: -1.05rem auto 0;
    color: #fff;
    background: #2563eb;
    border: 5px solid #fff;
    border-radius: 50%;
    box-shadow: 0 .45rem 1rem rgba(37,99,235,.3);
}
.mobile-bottom-nav .mobile-post-action:hover,
.mobile-bottom-nav .mobile-post-action:focus-visible { color: #fff; background: #1d4ed8; }
.mobile-bottom-nav .mobile-post-action i { font-size: 1.35rem; }
.mobile-bottom-nav .mobile-post-action span { font-size: .62rem; }
.mobile-notification-count {
    position: absolute;
    top: .18rem;
    left: calc(50% + .25rem);
    min-width: 17px;
    height: 17px;
    padding-inline: .2rem;
    display: grid;
    place-items: center;
    color: #fff;
    background: #dc3545;
    border: 2px solid #fff;
    border-radius: 999px;
    font-size: .58rem;
    line-height: 1;
}

.role-home-panel {
    border: 1px solid rgba(37,99,235,.16);
    background: linear-gradient(135deg, #fff, #f0f7ff);
    box-shadow: 0 .75rem 2rem rgba(15,23,42,.07);
}
.role-quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
    gap: .7rem;
}
.role-quick-action {
    min-height: 104px;
    padding: .9rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    color: #172033;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    text-decoration: none;
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.role-quick-action i { color: #2563eb; font-size: 1.35rem; }
.role-quick-action:hover { color: #172033; transform: translateY(-2px); border-color: #93b4ff; box-shadow: 0 .55rem 1rem rgba(15,23,42,.07); }

@media (max-width: 1199.98px) {
    .app-footer { margin-bottom: 0; }
    .app-navbar .navbar-collapse {
        position: absolute;
        left: .65rem;
        right: .65rem;
        top: calc(100% + .35rem);
        max-height: calc(100vh - 150px);
        overflow-y: auto;
        padding: .9rem;
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 1.1rem;
        box-shadow: 0 1.25rem 3rem rgba(15,23,42,.18);
    }
    .app-navbar .navbar-collapse.collapsing { position: absolute; }
    .app-navbar .navbar-nav { width: 100%; }
    .app-navbar .nav-link { justify-content: flex-start; width: 100%; border-radius: .75rem; padding: .7rem .75rem; }
    .app-navbar .nav-link:hover { background: #f8fafc; }
    .app-navbar .dropdown-menu {
        position: static !important;
        width: 100%;
        max-height: none;
        margin: .15rem 0 .5rem;
        transform: none !important;
        box-shadow: none !important;
        background: #f8fafc;
        border: 1px solid #e9eef5 !important;
    }
    .app-navbar-actions {
        width: 100%;
        align-items: stretch !important;
        flex-direction: column;
        padding-top: .6rem;
        border-top: 1px solid #edf0f4;
    }
    .app-navbar-actions > *,
    .app-navbar-actions .post-ad-nav-button,
    .app-navbar-actions .account-dropdown,
    .app-navbar-actions .account-menu-button { width: 100%; max-width: none; }
    .app-navbar-actions .account-menu-button { justify-content: flex-start; }
    .account-menu { position: static !important; width: 100%; transform: none !important; box-shadow: none !important; }
    .seller-box { position: static !important; top: auto !important; }
}

@media (max-width: 767.98px) {
    body { padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px)); }
    .app-main { padding-top: 1rem !important; }
    .app-main > .row { --bs-gutter-x: .8rem; }
    .dashboard-card,
    .membership-usage-card,
    .seller-box,
    .role-home-panel { border-radius: 1.15rem !important; }
    .seller-box .btn { min-height: 48px; }
    .role-quick-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero { border-radius: 1.2rem !important; padding: 1.35rem !important; }
    .hero h1 { font-size: clamp(2rem, 10vw, 3rem); }
}

@media (max-width: 390px) {
    .mobile-bottom-nav > a { font-size: .64rem; }
    .mobile-bottom-nav > a i { font-size: 1.1rem; }
    .role-quick-actions { grid-template-columns: 1fr 1fr; gap: .5rem; }
    .role-quick-action { min-height: 96px; padding: .75rem; }
}

/* Update 26 Hotfix 3: compact marketplace ad grid, verification stamps and quick view */
.browse-ad-grid > [class*="col-"] { min-width: 0; }
.browse-ad-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 1.15rem;
    background: #fff;
    box-shadow: 0 .4rem 1.1rem rgba(15, 23, 42, .07);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.browse-ad-card:hover,
.browse-ad-card:focus-within {
    transform: translateY(-3px);
    border-color: rgba(37, 99, 235, .24);
    box-shadow: 0 .85rem 1.8rem rgba(15, 23, 42, .13);
}
.browse-ad-card-media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #eef2f7;
}
.browse-ad-card-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .25s ease, filter .25s ease;
}
.browse-ad-image-link {
    position: absolute;
    inset: 0;
    z-index: 2;
}
.browse-ad-image-link:focus-visible {
    outline: 3px solid rgba(255,255,255,.9);
    outline-offset: -5px;
}
.browse-ad-card-media::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(15,23,42,.02), rgba(15,23,42,.42));
    opacity: 0;
    transition: opacity .2s ease;
}
.browse-ad-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}
.browse-ad-card-link:hover { color: inherit; }
.browse-ad-card-link:focus-visible {
    outline: 3px solid rgba(37, 99, 235, .24);
    outline-offset: -3px;
}
.browse-ad-card-body { padding: .8rem .85rem .9rem; }
.browse-ad-card-meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .55rem;
    min-width: 0;
}
.browse-ad-price {
    min-width: 0;
    color: #172033;
    font-size: clamp(.95rem, 1.35vw, 1.15rem);
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: -.02em;
    overflow-wrap: anywhere;
}
.browse-ad-location {
    min-width: 0;
    max-width: 48%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    color: #64748b;
    text-align: right;
    font-size: .73rem;
    line-height: 1.2;
}
.browse-ad-location-main {
    display: block;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.browse-ad-location i { color: #2563eb; }
.browse-ad-location small {
    margin-top: .18rem;
    color: #2563eb;
    font-size: .66rem;
    font-weight: 800;
}
.browse-ad-title {
    display: -webkit-box;
    margin: .55rem 0 0;
    overflow: hidden;
    color: #172033;
    font-size: .92rem;
    line-height: 1.32;
    font-weight: 750;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    min-height: 2.64em;
    max-height: 2.64em;
}
.ad-verification-stamp {
    position: absolute;
    top: .65rem;
    left: .65rem;
    z-index: 3;
    max-width: calc(100% - 1.3rem);
    display: inline-flex;
    align-items: center;
    gap: .28rem;
    padding: .34rem .5rem;
    border: 2px solid currentColor;
    border-radius: .48rem;
    background: rgba(255, 255, 255, .91);
    box-shadow: inset 0 0 0 2px rgba(255,255,255,.8), 0 .22rem .65rem rgba(15,23,42,.18);
    backdrop-filter: blur(5px);
    font-size: .63rem;
    line-height: 1;
    font-weight: 950;
    letter-spacing: .035em;
    text-transform: uppercase;
    white-space: nowrap;
    transform: rotate(-5deg);
    pointer-events: none;
}
.ad-verification-stamp-vsmitra { color: #087f5b; }
.ad-verification-stamp-self { color: #1d4ed8; }
.ad-quick-view-trigger {
    position: absolute;
    left: 50%;
    bottom: .75rem;
    z-index: 4;
    min-height: 40px !important;
    padding: .48rem .85rem;
    display: inline-flex !important;
    align-items: center;
    gap: .4rem;
    border: 1px solid rgba(255,255,255,.62);
    border-radius: 999px;
    color: #fff;
    background: rgba(15, 23, 42, .82);
    box-shadow: 0 .4rem 1rem rgba(15,23,42,.25);
    backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, .45rem);
    transition: opacity .18s ease, transform .18s ease, background .18s ease;
}
.ad-quick-view-trigger:hover,
.ad-quick-view-trigger:focus-visible { color: #fff; background: #1d4ed8; }
.browse-ad-card-media:hover::after,
.browse-ad-card-media:focus-within::after { opacity: 1; }
.browse-ad-card-media:hover .browse-ad-card-image,
.browse-ad-card-media:focus-within .browse-ad-card-image { transform: scale(1.035); filter: saturate(1.04); }
.browse-ad-card-media:hover .ad-quick-view-trigger,
.browse-ad-card-media:focus-within .ad-quick-view-trigger {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.ad-quick-view-dialog { max-width: min(1040px, calc(100vw - 2rem)); }
.ad-quick-view-content {
    overflow: hidden;
    border: 0;
    border-radius: 1.55rem;
    box-shadow: 0 1.5rem 4rem rgba(15, 23, 42, .3);
}
.ad-quick-view-close {
    position: absolute;
    top: .85rem;
    right: .85rem;
    z-index: 8;
    width: 40px;
    height: 40px;
    padding: .65rem;
    border-radius: 50%;
    background-color: rgba(255,255,255,.92);
    box-shadow: 0 .25rem .8rem rgba(15,23,42,.2);
}
.ad-quick-view-media {
    position: relative;
    min-height: 430px;
    background: #edf1f6;
}
.ad-quick-view-media > img {
    width: 100%;
    height: 100%;
    min-height: 430px;
    display: block;
    object-fit: cover;
}
.quick-view-verification-stamp { top: 1rem; left: 1rem; }
.ad-quick-view-details {
    min-height: 430px;
    display: flex;
    flex-direction: column;
    padding: clamp(1.25rem, 3vw, 2rem);
}
.ad-quick-view-price {
    color: #172033;
    font-size: clamp(1.55rem, 3vw, 2.25rem);
    line-height: 1.05;
    font-weight: 950;
    letter-spacing: -.04em;
}
.ad-quick-view-title {
    margin: .65rem 0 .8rem;
    color: #172033;
    font-size: clamp(1.25rem, 2.2vw, 1.8rem);
    line-height: 1.2;
    font-weight: 900;
    overflow-wrap: anywhere;
}
.ad-quick-view-location,
.ad-quick-view-seller {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .38rem;
    color: #64748b;
    font-size: .9rem;
}
.ad-quick-view-location i,
.ad-quick-view-seller i { color: #2563eb; }
.ad-quick-view-location small { color: #2563eb; font-weight: 800; }
.ad-quick-view-seller { margin-top: .55rem; }
.ad-quick-view-seller a { color: #334155; font-weight: 750; text-decoration: none; }
.ad-quick-view-seller a:hover { color: #1d4ed8; text-decoration: underline; }
.ad-quick-view-description {
    max-height: 9.5rem;
    margin-bottom: 1rem;
    overflow: auto;
    color: #475569;
    white-space: pre-line;
    overflow-wrap: anywhere;
}
.ad-quick-view-actions {
    display: flex;
    justify-content: flex-end;
    gap: .65rem;
    padding-top: .5rem;
}

@media (hover: none), (pointer: coarse) {
    .ad-quick-view-trigger {
        left: auto;
        right: .5rem;
        bottom: .5rem;
        min-height: 36px !important;
        padding: .4rem .58rem;
        opacity: 1;
        pointer-events: auto;
        transform: none;
    }
    .browse-ad-card-media::after { opacity: .22; }
}

@media (max-width: 767.98px) {
    .browse-ad-card { border-radius: .95rem; }
    .browse-ad-card-body { padding: .65rem .65rem .75rem; }
    .browse-ad-price { font-size: .9rem; }
    .browse-ad-location { max-width: 50%; font-size: .64rem; }
    .browse-ad-location small { font-size: .6rem; }
    .browse-ad-title { margin-top: .42rem; font-size: .8rem; }
    .ad-verification-stamp {
        top: .45rem;
        left: .45rem;
        max-width: calc(100% - .9rem);
        padding: .27rem .38rem;
        font-size: .51rem;
        border-width: 1.5px;
    }
    .ad-quick-view-trigger span { display: none; }
    .ad-quick-view-trigger { width: 36px; justify-content: center; }

    .ad-quick-view-modal .modal-dialog {
        min-height: 100%;
        margin: 0;
        align-items: flex-end;
        max-width: 100%;
    }
    .ad-quick-view-content {
        max-height: 92vh;
        overflow-y: auto;
        border-radius: 1.4rem 1.4rem 0 0;
    }
    .ad-quick-view-media,
    .ad-quick-view-media > img { min-height: 225px; height: 225px; }
    .ad-quick-view-details { min-height: 0; padding: 1.05rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px)); }
    .ad-quick-view-price { font-size: 1.55rem; }
    .ad-quick-view-title { font-size: 1.18rem; }
    .ad-quick-view-description { max-height: 7rem; }
    .ad-quick-view-actions {
        position: sticky;
        bottom: 0;
        margin-inline: -1rem;
        margin-bottom: calc(-1rem - env(safe-area-inset-bottom, 0px));
        padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom, 0px));
        background: rgba(255,255,255,.96);
        border-top: 1px solid #e8edf3;
        backdrop-filter: blur(8px);
    }
    .ad-quick-view-actions .btn { flex: 1 1 0; }
}


@media (prefers-reduced-motion: reduce) {
    .browse-ad-card,
    .browse-ad-card-image,
    .browse-ad-card-media::after,
    .ad-quick-view-trigger { transition: none; }
}

/* =========================================================
   Update 26 Hotfix 4 — marketplace navigation, category flow
   and professional home/create experiences
   ========================================================= */
:root {
    --vsm-navy: #0d1b3d;
    --vsm-blue: #176bff;
    --vsm-blue-dark: #0c4fd4;
    --vsm-sky: #eaf2ff;
    --vsm-ink: #172033;
    --vsm-muted: #64748b;
    --vsm-line: #e2e8f0;
    --vsm-surface: #ffffff;
    --vsm-bg: #f4f7fb;
    --vsm-green: #0f8a5f;
    --vsm-amber: #a86100;
}
body { background: var(--vsm-bg); color: var(--vsm-ink); }
.app-main-full { min-height: 60vh; }
.market-header { z-index: 1060; background: #fff; box-shadow: 0 1px 0 rgba(15,23,42,.08); }
.market-header-main { background: #fff; }
.market-header-container { max-width: 1720px; margin: 0 auto; padding-inline: clamp(.8rem, 2vw, 2rem); }
.market-header-main .market-header-container { min-height: 68px; display: flex; align-items: center; gap: clamp(.8rem, 2vw, 2rem); }
.market-brand { display: inline-flex; align-items: baseline; flex: 0 0 auto; color: var(--vsm-blue); font-size: 1.45rem; line-height: 1; font-weight: 950; letter-spacing: -.065em; text-decoration: none; }
.market-brand span { color: var(--vsm-ink); }
.market-brand sup { margin-left: .13rem; color: var(--vsm-blue); font-size: .44em; letter-spacing: 0; }
.market-search { min-width: 220px; max-width: 760px; height: 44px; flex: 1 1 620px; overflow: hidden; border: 1px solid #b9c3d1; border-radius: .7rem; background: #fff; transition: box-shadow .18s, border-color .18s; }
.market-search:focus-within { border-color: var(--vsm-blue); box-shadow: 0 0 0 4px rgba(23,107,255,.12); }
.market-search input { min-width: 0; flex: 1; border: 0; outline: 0; padding: 0 1rem; color: var(--vsm-ink); }
.market-search button { width: 50px; border: 0; color: #fff; background: var(--vsm-blue); font-size: 1.05rem; }
.market-header-actions { display: flex; align-items: center; gap: .55rem; margin-left: auto; }
.market-post-button { min-height: 42px; display: inline-flex; align-items: center; gap: .42rem; padding: .5rem .85rem; border: 1px solid var(--vsm-blue); border-radius: 999px; color: var(--vsm-blue); font-weight: 800; text-decoration: none; white-space: nowrap; }
.market-post-button:hover { color: #fff; background: var(--vsm-blue); }
.market-menu-toggle { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--vsm-line); border-radius: 50%; background: #fff; color: var(--vsm-ink); font-size: 1.25rem; }
.market-navigation { border-top: 1px solid #f0f3f7; border-bottom: 1px solid #e8edf3; background: #fff; }
.market-nav-row { min-height: 44px; display: flex; align-items: stretch; gap: .25rem; }
.market-nav-link { min-height: 44px; display: inline-flex; align-items: center; gap: .4rem; padding: .55rem .8rem; border: 0; color: #334155; background: transparent; font-size: .88rem; font-weight: 650; text-decoration: none; white-space: nowrap; }
.market-nav-link:hover, .market-nav-link:focus { color: var(--vsm-blue); background: var(--vsm-sky); }
.market-all-categories { color: #fff; background: var(--vsm-navy); }
.market-all-categories:hover, .market-all-categories:focus { color: #fff; background: #17295a; }
.market-category-dropdown { position: static; }
.market-mega-menu { left: clamp(.8rem,2vw,2rem) !important; right: clamp(.8rem,2vw,2rem) !important; width: auto; max-height: min(72vh, 680px); padding: 0; overflow: auto; border-radius: 0 0 1.2rem 1.2rem; }
.market-mega-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1.4rem; padding: 1.5rem; }
.market-mega-group { min-width: 0; }
.market-mega-group > a { display: block; margin-top: .38rem; color: #526075; font-size: .82rem; text-decoration: none; }
.market-mega-group > a:hover { color: var(--vsm-blue); }
.market-mega-title { display: flex !important; align-items: flex-start; gap: .5rem; margin: 0 0 .45rem !important; color: var(--vsm-ink) !important; font-size: .9rem !important; font-weight: 900; }
.market-mega-title i { color: var(--vsm-blue); }
.market-mega-footer { position: sticky; bottom: 0; padding: .9rem 1.5rem; border-top: 1px solid var(--vsm-line); background: rgba(255,255,255,.96); backdrop-filter: blur(8px); }
.market-mega-footer a { color: var(--vsm-blue); font-weight: 850; text-decoration: none; }
.market-search-mobile { width: 100%; margin: .7rem 0; }
.account-menu, .admin-links-menu, .dropdown-menu { z-index: 1080; }
.market-footer { margin-top: 0; padding: 3rem 0 calc(2rem + env(safe-area-inset-bottom,0)); color: #e5e7eb; background: #0b1222; }
.market-brand-footer span { color: #fff; }
.market-footer strong { display: block; margin-bottom: .75rem; color: #fff; }
.market-footer a:not(.market-brand) { display: block; margin: .38rem 0; color: #9da8b9; text-decoration: none; }
.market-footer a:hover { color: #fff; }
.market-footer-bottom { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.12); color: #8491a5; font-size: .85rem; }

/* Home */
.home-marketplace { overflow: hidden; background: linear-gradient(180deg,#f6f9ff 0,#f4f7fb 38%,#fff 100%); }
.home-hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(3.5rem,7vw,7rem) 0; color: #fff; background: radial-gradient(circle at 83% 12%,rgba(77,152,255,.45),transparent 30%), linear-gradient(125deg,#071b44 0,#0f3d91 55%,#176bff 100%); }
.home-hero::before { content:""; position:absolute; inset:-35% 55% 20% -15%; z-index:-1; border-radius:50%; background:rgba(255,255,255,.06); transform:rotate(12deg); }
.home-hero-grid { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(340px,.8fr); gap:clamp(2rem,5vw,5rem); align-items:center; }
.home-kicker, .eyebrow { display:inline-flex; align-items:center; gap:.4rem; color:var(--vsm-blue); font-size:.76rem; font-weight:900; letter-spacing:.08em; text-transform:uppercase; }
.home-kicker { padding:.5rem .75rem; color:#fff; border:1px solid rgba(255,255,255,.25); border-radius:999px; background:rgba(255,255,255,.1); }
.home-hero h1 { max-width:900px; margin:1.1rem 0; font-size:clamp(2.45rem,5.5vw,5.15rem); line-height:.98; font-weight:950; letter-spacing:-.055em; }
.home-hero h1 span { color:#9ec5ff; }
.home-hero-copy > p { max-width:780px; color:#dce7f8; font-size:clamp(1rem,1.5vw,1.24rem); line-height:1.65; }
.home-search { display:flex; max-width:940px; min-height:58px; margin:1.75rem 0 1.25rem; padding:.35rem; border-radius:1rem; background:#fff; box-shadow:0 1.2rem 3rem rgba(0,0,0,.24); }
.home-search-category { min-width:215px; display:flex; align-items:center; gap:.45rem; padding:0 .75rem; border-right:1px solid var(--vsm-line); color:var(--vsm-blue); }
.home-search-category select { min-width:0; width:100%; border:0; outline:0; color:var(--vsm-ink); background:#fff; font-weight:700; }
.home-search > input { min-width:0; flex:1; border:0; outline:0; padding:0 1rem; }
.home-search > button { min-width:126px; border:0; border-radius:.75rem; color:#fff; background:var(--vsm-blue); font-weight:850; }
.home-hero-actions, .home-trust-row { display:flex; flex-wrap:wrap; gap:.7rem; }
.home-trust-row { margin-top:1.4rem; color:#dce7f8; font-size:.84rem; }
.home-trust-row span { display:inline-flex; align-items:center; gap:.35rem; }
.home-hero-showcase { position:relative; display:grid; gap:1rem; }
.hero-showcase-card { display:flex; align-items:center; gap:1rem; padding:1.25rem; border:1px solid rgba(255,255,255,.2); border-radius:1.25rem; background:rgba(255,255,255,.11); box-shadow:0 .8rem 2rem rgba(0,0,0,.12); backdrop-filter:blur(14px); transform:translateX(1rem); }
.hero-showcase-card:nth-child(2) { transform:translateX(-1rem); }
.hero-showcase-primary { background:rgba(255,255,255,.18); }
.showcase-icon { width:50px; height:50px; flex:0 0 50px; display:grid; place-items:center; border-radius:1rem; color:var(--vsm-blue); background:#fff; font-size:1.35rem; }
.hero-showcase-card strong, .hero-showcase-card small { display:block; }
.hero-showcase-card small { margin-top:.25rem; color:#dce7f8; line-height:1.4; }
.home-role-strip { position:relative; z-index:2; margin-top:-1.8rem; display:flex; justify-content:space-between; align-items:center; gap:1rem; padding:1.2rem 1.4rem; border:1px solid #dbe6f5; border-radius:1.2rem; background:#fff; box-shadow:0 .8rem 2rem rgba(15,23,42,.09); }
.home-role-strip h2 { margin:.15rem 0 0; font-size:1.25rem; font-weight:900; }
.home-role-actions { display:flex; flex-wrap:wrap; gap:.45rem; }
.home-role-actions a { display:inline-flex; align-items:center; gap:.35rem; padding:.55rem .7rem; border-radius:.65rem; color:#334155; background:#f1f5f9; font-size:.82rem; font-weight:800; text-decoration:none; }
.home-role-actions a:hover { color:var(--vsm-blue); background:var(--vsm-sky); }
.home-section { padding-top:clamp(3.2rem,6vw,6rem); padding-bottom:clamp(3.2rem,6vw,6rem); }
.home-section-head { display:flex; justify-content:space-between; align-items:end; gap:1rem; margin-bottom:1.6rem; }
.home-section-head.centered { justify-content:center; text-align:center; }
.home-section-head h2 { margin:.35rem 0 .25rem; font-size:clamp(1.75rem,3.2vw,2.8rem); font-weight:950; letter-spacing:-.035em; }
.home-section-head p { margin:0; color:var(--vsm-muted); }
.home-section-head > a { flex:0 0 auto; color:var(--vsm-blue); font-weight:850; text-decoration:none; }
.home-category-rail { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:.85rem; }
.home-category-tile { min-height:155px; display:flex; flex-direction:column; justify-content:space-between; padding:1.15rem; border:1px solid var(--vsm-line); border-radius:1.15rem; color:var(--vsm-ink); background:#fff; box-shadow:0 .35rem 1rem rgba(15,23,42,.05); text-decoration:none; transition:transform .18s,box-shadow .18s,border-color .18s; }
.home-category-tile:hover { color:var(--vsm-ink); border-color:#bcd2ff; transform:translateY(-4px); box-shadow:0 .9rem 2rem rgba(15,23,42,.11); }
.home-category-icon { width:48px; height:48px; display:grid; place-items:center; border-radius:.9rem; color:var(--vsm-blue); background:var(--vsm-sky); font-size:1.3rem; }
.home-category-tile strong { margin-top:1rem; font-size:.9rem; line-height:1.3; }
.home-category-tile small { color:var(--vsm-muted); }
.home-ads-section { background:#eef3fb; }
.home-ad-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:1rem; }
.home-ad-grid .browse-ad-card { min-width:0; }
.home-empty-state { grid-column:1/-1; padding:4rem; border-radius:1.5rem; text-align:center; background:#fff; }
.home-commerce-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1rem; }
.home-commerce-card { position:relative; display:flex; flex-direction:column; min-height:335px; padding:1.5rem; border:1px solid var(--vsm-line); border-radius:1.35rem; background:#fff; box-shadow:0 .45rem 1.2rem rgba(15,23,42,.06); }
.home-commerce-card.featured { color:#fff; border-color:transparent; background:linear-gradient(145deg,#0d1b3d,#176bff); transform:translateY(-.35rem); }
.home-commerce-card > i { margin:2rem 0 1rem; color:var(--vsm-blue); font-size:2rem; }
.home-commerce-card.featured > i, .home-commerce-card.featured p { color:#dbeafe; }
.home-commerce-card h3 { font-weight:900; }
.home-commerce-card p { color:var(--vsm-muted); line-height:1.55; }
.home-commerce-card strong { margin-top:auto; font-size:1.35rem; }
.home-commerce-card a { margin-top:1rem; color:inherit; font-weight:850; }
.commerce-badge { position:absolute; top:1rem; right:1rem; padding:.35rem .55rem; border-radius:999px; color:var(--vsm-blue); background:var(--vsm-sky); font-size:.67rem; font-weight:900; }
.home-commerce-card.featured .commerce-badge { color:#fff; background:rgba(255,255,255,.15); }
.home-process-section { background:#fff; }
.home-process-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:1rem; }
.home-process-grid article { position:relative; min-height:225px; padding:1.4rem; border:1px solid var(--vsm-line); border-radius:1.25rem; background:#f9fbff; }
.home-process-grid article > span { position:absolute; top:1rem; right:1rem; width:30px; height:30px; display:grid; place-items:center; border-radius:50%; color:#fff; background:var(--vsm-blue); font-size:.78rem; font-weight:900; }
.home-process-grid article > i { color:var(--vsm-blue); font-size:2rem; }
.home-process-grid h3 { margin:2.2rem 0 .5rem; font-size:1.05rem; font-weight:900; }
.home-process-grid p { margin:0; color:var(--vsm-muted); font-size:.9rem; line-height:1.55; }
.home-benefit-grid { display:grid; grid-template-columns:1fr 1fr; gap:1.25rem; }
.home-benefit-card { min-height:390px; display:flex; flex-direction:column; padding:clamp(1.5rem,3vw,2.4rem); border-radius:1.6rem; color:#fff; overflow:hidden; }
.home-benefit-card.buyer { background:linear-gradient(145deg,#0d1b3d,#16407f); }
.home-benefit-card.seller { background:linear-gradient(145deg,#075b45,#0f9a6b); }
.home-benefit-card .eyebrow { color:#bcd7ff; }
.home-benefit-card h2 { margin:.5rem 0; font-size:clamp(1.7rem,3vw,2.5rem); font-weight:950; }
.home-benefit-card p { color:rgba(255,255,255,.78); }
.home-benefit-card ul { display:grid; gap:.75rem; margin:2rem 0; padding:0; list-style:none; }
.home-benefit-card li { display:flex; gap:.5rem; }
.home-benefit-card a { margin-top:auto; color:#fff; font-weight:900; }
.home-faq { max-width:1050px; margin:auto; }
.home-faq .accordion-item { margin-bottom:.75rem; overflow:hidden; border:1px solid var(--vsm-line); border-radius:1rem !important; }
.home-faq .accordion-button { padding:1.2rem 1.3rem; font-weight:850; box-shadow:none; }
.home-faq .accordion-button:not(.collapsed) { color:var(--vsm-blue); background:var(--vsm-sky); }
.home-reveal { opacity:0; transform:translateY(26px); transition:opacity .55s ease,transform .55s ease; }
.home-reveal.is-visible { opacity:1; transform:none; }

/* Create/edit */
.compact-page-heading { display:flex; flex-direction:column; }
.ad-create-shell { display:grid; grid-template-columns:minmax(260px,340px) minmax(0,1fr); gap:1.4rem; align-items:start; }
.ad-create-assistant-sticky { position:sticky; top:132px; display:grid; gap:.85rem; }
.create-guide-card, .create-side-details, .form-section-card, .submission-review-card, .ad-edit-form { border:1px solid var(--vsm-line); background:#fff; box-shadow:0 .35rem 1.2rem rgba(15,23,42,.05); }
.create-guide-card { padding:1.35rem; border-radius:1.25rem; }
.create-guide-icon { width:48px; height:48px; display:grid; place-items:center; margin-bottom:1rem; border-radius:1rem; color:#fff; background:linear-gradient(145deg,var(--vsm-blue),#5b8fff); font-size:1.3rem; }
.create-guide-list { display:grid; gap:.75rem; margin:1rem 0 0; padding:0; list-style:none; color:#526075; font-size:.88rem; }
.create-guide-list li { display:flex; align-items:flex-start; gap:.6rem; }
.create-guide-list li span { width:24px; height:24px; flex:0 0 24px; display:grid; place-items:center; border-radius:50%; color:var(--vsm-blue); background:var(--vsm-sky); font-size:.7rem; font-weight:900; }
.create-side-details { overflow:hidden; border-radius:1rem; }
.create-side-details summary { display:flex; align-items:center; gap:.5rem; padding:1rem; cursor:pointer; font-weight:850; }
.create-side-details summary span { margin-left:auto; color:var(--vsm-green); font-size:.75rem; }
.create-side-details-body { padding:0 1rem 1rem; color:#526075; font-size:.84rem; line-height:1.55; }
.ad-create-form, .ad-edit-form { min-width:0; display:grid; gap:1rem; border:0; background:transparent; box-shadow:none; }
.form-section-card { padding:clamp(1.1rem,2.5vw,1.75rem); border-radius:1.25rem; }
.form-section-heading { display:flex; align-items:flex-start; gap:.8rem; margin-bottom:1.25rem; }
.form-section-heading > span { width:34px; height:34px; flex:0 0 34px; display:grid; place-items:center; border-radius:.75rem; color:#fff; background:var(--vsm-blue); font-weight:900; }
.form-section-heading h2 { margin:0; font-size:1.15rem; font-weight:900; }
.form-section-heading p { margin:.2rem 0 0; color:var(--vsm-muted); font-size:.85rem; }
.category-review-guidance { padding:1rem; border:1px solid #c5dcff; border-left:4px solid var(--vsm-blue); border-radius:.9rem; color:#3b4d66; background:#f3f7ff; font-size:.86rem; line-height:1.55; }
.category-review-guidance-title { display:flex; align-items:center; gap:.45rem; margin-bottom:.4rem; color:var(--vsm-blue-dark); }
.contact-choice-card { padding:1rem; border:1px solid var(--vsm-line); border-radius:1rem; background:#f8fafc; }
.submission-review-card { position:sticky; bottom:1rem; z-index:20; display:flex; justify-content:space-between; align-items:center; gap:1rem; padding:1rem 1.2rem; border-radius:1.15rem; box-shadow:0 .8rem 2rem rgba(15,23,42,.14); }
.submission-review-card > div:first-child { color:#526075; font-size:.86rem; }
.submission-review-card > div:first-child i { margin-right:.4rem; color:var(--vsm-blue); }
.existing-image-card { height:100%; padding:.55rem; border:1px solid var(--vsm-line); border-radius:1rem; background:#fff; }
.existing-image-card img { width:100%; height:130px; object-fit:cover; border-radius:.75rem; }
.admin-image-strip { display:flex; flex-wrap:wrap; gap:.65rem; }
.admin-image-strip img { width:120px; height:95px; object-fit:cover; border-radius:.8rem; border:1px solid var(--vsm-line); }

/* Admin review modal */
.admin-review-summary { display:grid; gap:.7rem; padding:1rem; border:1px solid var(--vsm-line); border-radius:1rem; background:#f8fafc; }
.admin-review-summary > div { display:grid; grid-template-columns:150px 1fr; gap:.7rem; }
.admin-review-summary strong { color:#334155; }
.admin-review-confirmation { padding:1rem; border:1px solid #b9d7c9; border-radius:1rem; background:#eefaf4; }

@media (max-width:1399.98px) {
    .home-category-rail { grid-template-columns:repeat(4,minmax(0,1fr)); }
    .home-ad-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
    .home-process-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width:1199.98px) {
    .market-navigation .market-header-container { padding-top:.4rem; padding-bottom:.6rem; }
    .market-nav-row { display:grid; grid-template-columns:1fr 1fr; gap:.25rem; }
    .market-category-dropdown, .market-nav-row > .dropdown { position:static; }
    .market-nav-link { width:100%; border-radius:.6rem; }
    .market-mega-menu { position:static !important; transform:none !important; max-height:55vh; margin:.35rem 0; }
    .market-mega-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .home-hero-grid { grid-template-columns:1fr; }
    .home-hero-showcase { grid-template-columns:repeat(3,1fr); }
    .hero-showcase-card, .hero-showcase-card:nth-child(2) { transform:none; }
    .home-commerce-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .home-ad-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width:991.98px) {
    .market-header-main .market-header-container { min-height:62px; }
    .market-post-button span { display:none; }
    .market-post-button { width:42px; height:42px; justify-content:center; padding:0; }
    .account-button-copy { display:none; }
    .account-menu-button { width:42px !important; min-width:42px; height:42px; padding:0 !important; justify-content:center !important; }
    .account-menu-button::after { display:none; }
    .home-category-rail { display:flex; overflow-x:auto; scroll-snap-type:x mandatory; padding-bottom:.5rem; }
    .home-category-tile { min-width:210px; scroll-snap-align:start; }
    .home-ad-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
    .home-process-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .ad-create-shell { grid-template-columns:1fr; }
    .ad-create-assistant-sticky { position:static; grid-template-columns:1fr 1fr; }
    .create-guide-card { grid-row:span 2; }
}
@media (max-width:767.98px) {
    .market-header-actions { gap:.35rem; }
    .market-brand { font-size:1.22rem; }
    .market-header-main .market-header-container { padding-inline:.7rem; }
    .market-mega-grid { grid-template-columns:1fr; }
    .home-hero { padding:2.7rem 0 3.5rem; }
    .home-hero-grid { padding-inline:1rem; }
    .home-hero h1 { font-size:clamp(2.25rem,12vw,3.45rem); }
    .home-search { display:grid; grid-template-columns:1fr auto; }
    .home-search-category { grid-column:1/-1; min-height:44px; border-right:0; border-bottom:1px solid var(--vsm-line); }
    .home-search > input { min-height:50px; }
    .home-search > button { min-width:54px; }
    .home-search > button span { display:none; }
    .home-hero-showcase { grid-template-columns:1fr; }
    .home-role-strip { margin:-1.2rem 1rem 0; flex-direction:column; align-items:stretch; }
    .home-role-actions { display:grid; grid-template-columns:1fr 1fr; }
    .home-section { padding:3.2rem 1rem; }
    .home-section-head { align-items:flex-start; }
    .home-ad-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:.65rem; }
    .home-commerce-grid, .home-benefit-grid, .home-process-grid { grid-template-columns:1fr; }
    .home-commerce-card.featured { transform:none; }
    .ad-create-assistant-sticky { grid-template-columns:1fr; }
    .create-guide-card { grid-row:auto; }
    .submission-review-card { bottom:calc(4.8rem + env(safe-area-inset-bottom,0)); flex-direction:column; align-items:stretch; }
    .submission-review-card .btn { width:100%; }
    .admin-review-summary > div { grid-template-columns:1fr; gap:.15rem; }
}
@media (prefers-reduced-motion:reduce) {
    .home-reveal { opacity:1; transform:none; transition:none; }
    .home-category-tile { transition:none; }
}

/* Update 26 Hotfix 4 refinement: compact three-level home search and final review summary. */
.home-search {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 980px;
    padding: 0;
    overflow: hidden;
}
.home-search-keyword {
    min-width: 0;
    display: grid;
    grid-template-columns: auto minmax(0,1fr) auto;
    align-items: center;
    min-height: 58px;
    padding: .35rem;
}
.home-search-keyword > i { margin-left: .8rem; color: var(--vsm-blue); font-size: 1.05rem; }
.home-search-keyword input { min-width: 0; width: 100%; height: 48px; padding: 0 .85rem; border: 0; outline: 0; color: var(--vsm-ink); background: transparent; }
.home-search-keyword button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: 0 1.2rem; border: 0; border-radius: .75rem; color: #fff; background: var(--vsm-blue); font-weight: 850; white-space: nowrap; }
.home-search-keyword button:hover { background: var(--vsm-blue-dark); }
.home-search-taxonomy {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    border-top: 1px solid var(--vsm-line);
    background: #f8fafc;
}
.home-search-taxonomy label { min-width: 0; display: grid; gap: .2rem; padding: .62rem .8rem; border-right: 1px solid var(--vsm-line); }
.home-search-taxonomy label:last-child { border-right: 0; }
.home-search-taxonomy span { color: #718096; font-size: .66rem; font-weight: 900; letter-spacing: .055em; text-transform: uppercase; }
.home-search-taxonomy select { min-width: 0; width: 100%; padding: 0 1.4rem 0 0; border: 0; outline: 0; color: var(--vsm-ink); background-color: transparent; font-size: .82rem; font-weight: 750; text-overflow: ellipsis; }
.home-search-taxonomy select:disabled { color: #94a3b8; opacity: 1; }
.submission-review-copy { min-width: 0; }
.submission-category-summary { display: flex; flex-wrap: wrap; gap: .35rem .8rem; padding: .55rem .7rem; border-radius: .75rem; color: #32445d; background: #eef5ff; font-size: .78rem; }
.submission-category-summary > strong { color: var(--vsm-blue-dark); }
.submission-category-summary span { min-width: 0; }

@media (max-width: 767.98px) {
    .home-search-keyword { grid-template-columns: auto minmax(0,1fr) 52px; min-height: 54px; }
    .home-search-keyword button { width: 48px; min-width: 48px; padding: 0; }
    .home-search-keyword button span { display: none; }
    .home-search-taxonomy { grid-template-columns: 1fr; }
    .home-search-taxonomy label { border-right: 0; border-bottom: 1px solid var(--vsm-line); }
    .home-search-taxonomy label:last-child { border-bottom: 0; }
    .submission-category-summary { display: grid; }
}
.home-commerce-card > small { display:block; margin-top:.35rem; color:var(--vsm-muted); line-height:1.45; }
.home-commerce-card.featured > small { color:#dbeafe; }

/* Update 26 Hotfix 4: three-pane Category List → Main Category → Subcategory navigation. */
.market-mega-menu { overflow: hidden; }
.market-mega-browser { grid-template-columns: minmax(230px,.78fr) minmax(250px,.85fr) minmax(0,1.7fr); min-height: 440px; max-height: min(72vh,680px); }
.market-mega-pane { min-width: 0; overflow-y: auto; overscroll-behavior: contain; }
.market-mega-pane + .market-mega-pane { border-left: 1px solid var(--vsm-line); }
.market-mega-groups { padding: .9rem .65rem; background: #f7f9fc; }
.market-mega-main-pane, .market-mega-sub-pane { position: relative; padding: .9rem; background: #fff; }
.market-mega-pane-title { padding: .35rem .6rem .65rem; color: #64748b; font-size: .7rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.market-mega-selector { width: 100%; min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: .65rem; padding: .55rem .65rem; border: 0; border-radius: .65rem; color: #334155; background: transparent; text-align: left; font-size: .82rem; font-weight: 750; }
.market-mega-selector > span { min-width: 0; display: flex; align-items: center; gap: .55rem; }
.market-mega-selector > span > i { flex: 0 0 auto; color: var(--vsm-blue); }
.market-mega-selector > i { flex: 0 0 auto; color: #94a3b8; font-size: .72rem; }
.market-mega-selector:hover, .market-mega-selector:focus-visible, .market-mega-selector.is-active { color: var(--vsm-blue-dark); background: #eaf2ff; outline: 0; }
.market-mega-selector.is-active > i { color: var(--vsm-blue); }
.market-mega-panel { display: none; }
.market-mega-panel.is-active { display: block; animation: marketMegaIn .14s ease-out; }
@keyframes marketMegaIn { from { opacity: 0; transform: translateX(5px); } to { opacity: 1; transform: none; } }
.market-mega-pane-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; margin-bottom: .65rem; padding: .35rem .35rem .75rem; border-bottom: 1px solid var(--vsm-line); }
.market-mega-pane-heading span, .market-mega-pane-heading strong { display: block; }
.market-mega-pane-heading span { color: #64748b; font-size: .68rem; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.market-mega-pane-heading strong { margin-top: .18rem; color: var(--vsm-ink); font-size: .98rem; }
.market-mega-pane-heading a { flex: 0 0 auto; color: var(--vsm-blue); font-size: .78rem; font-weight: 850; text-decoration: none; }
.market-mega-sub-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .15rem .65rem; }
.market-mega-sub-grid a { min-width: 0; padding: .48rem .55rem; border-radius: .55rem; color: #526075; font-size: .79rem; line-height: 1.3; text-decoration: none; }
.market-mega-sub-grid a:hover, .market-mega-sub-grid a:focus { color: var(--vsm-blue); background: var(--vsm-sky); }
.market-mega-mobile-tree { max-height: 55vh; padding: .7rem; overflow-y: auto; background: #fff; }
.market-mega-mobile-tree details { border-bottom: 1px solid var(--vsm-line); }
.market-mega-mobile-tree details:last-child { border-bottom: 0; }
.market-mega-mobile-tree summary { min-height: 46px; display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .6rem .55rem; cursor: pointer; color: #334155; font-size: .84rem; font-weight: 850; list-style: none; }
.market-mega-mobile-tree summary::-webkit-details-marker { display: none; }
.market-mega-mobile-tree summary span { display: flex; align-items: center; gap: .5rem; }
.market-mega-mobile-tree summary span i { color: var(--vsm-blue); }
.market-mega-mobile-tree details[open] > summary > i { transform: rotate(180deg); }
.market-mega-mobile-main { margin-left: .6rem; border-bottom: 0 !important; border-left: 2px solid #dbe8ff; }
.market-mega-mobile-main > summary { min-height: 42px; font-size: .8rem; }
.market-mega-mobile-all, .market-mega-mobile-subs a { display: block; margin: .1rem .45rem; padding: .5rem .65rem; border-radius: .55rem; color: #526075; font-size: .78rem; text-decoration: none; }
.market-mega-mobile-all { color: var(--vsm-blue); font-weight: 850; background: #f3f7ff; }
.market-mega-mobile-subs { padding: 0 .25rem .6rem .6rem; }
.market-mega-mobile-subs a:hover, .market-mega-mobile-all:hover { color: var(--vsm-blue-dark); background: var(--vsm-sky); }

@media (max-width:1199.98px) {
    .market-mega-menu { overflow: visible; }
    .market-mega-footer { position: static; }
}
@media (max-width:1399.98px) and (min-width:1200px) {
    .market-mega-browser { grid-template-columns: 220px 235px minmax(0,1fr); }
    .market-mega-sub-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion:reduce) {
    .market-mega-panel.is-active { animation: none; }
}
.market-mega-mobile-children { padding: 0 0 .45rem; }
.market-mega-mobile-loading { padding: .65rem .8rem; color: #64748b; font-size: .78rem; }

/* =========================================================
   Update 26 Hotfix 5 — polished brand, faster marketplace UI,
   complete category navigation and compact seller summaries
   ========================================================= */
.market-header-main .market-header-container { min-height: 74px; }
.market-brand {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    min-width: 155px;
    color: var(--vsm-ink);
    letter-spacing: normal;
}
.market-brand-wordmark {
    display: inline-flex;
    align-items: baseline;
    font-size: clamp(1.65rem,2.05vw,2rem);
    line-height: .9;
    font-weight: 950;
    letter-spacing: -.065em;
    white-space: nowrap;
}
.market-brand-wordmark b { color: var(--vsm-blue); }
.market-brand-wordmark > span { color: #101b34; }
.market-brand-wordmark sup { margin-left: .16rem; color: var(--vsm-blue); font-size: .34em; letter-spacing: 0; }
.market-brand > small {
    max-width: 82px;
    color: #64748b;
    font-size: .64rem;
    font-weight: 750;
    line-height: 1.12;
    letter-spacing: .015em;
}
.market-brand:hover .market-brand-wordmark > span { color: var(--vsm-blue-dark); }
.market-brand-footer { align-items: flex-start; min-width: 0; }
.market-brand-footer .market-brand-wordmark > span { color: #fff; }
.market-brand-footer > small { display: none; }

/* Keep all 20 root categories reachable while loading deeper levels only when needed. */
@media (min-width: 1200px) {
    .market-mega-menu.show {
        display: flex;
        flex-direction: column;
        height: min(68vh, 640px);
        max-height: calc(100vh - 132px);
        overflow: hidden;
    }
    .market-mega-browser {
        flex: 1 1 auto;
        height: auto;
        min-height: 0;
        max-height: none;
        overflow: hidden;
    }
    .market-mega-pane {
        min-height: 0;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }
    .market-mega-pane-title-row,
    .market-mega-pane-heading {
        position: sticky;
        top: 0;
        z-index: 2;
        flex: 0 0 auto;
        background: inherit;
    }
    .market-mega-pane-title-row {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: .75rem;
        padding: .35rem .55rem .75rem;
        border-bottom: 1px solid var(--vsm-line);
    }
    .market-mega-pane-title-row span,
    .market-mega-pane-title-row strong { display: block; }
    .market-mega-pane-title-row span { color: #64748b; font-size: .68rem; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
    .market-mega-pane-title-row strong { margin-top: .18rem; color: var(--vsm-ink); font-size: .92rem; }
    .market-mega-pane-title-row > i { color: #94a3b8; }
    .market-mega-root-list,
    .market-mega-dynamic-list,
    .market-mega-sub-grid {
        min-height: 0;
        flex: 1 1 auto;
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-gutter: stable;
        padding-right: .2rem;
    }
    .market-mega-root-list::-webkit-scrollbar,
    .market-mega-dynamic-list::-webkit-scrollbar,
    .market-mega-sub-grid::-webkit-scrollbar { width: 8px; }
    .market-mega-root-list::-webkit-scrollbar-thumb,
    .market-mega-dynamic-list::-webkit-scrollbar-thumb,
    .market-mega-sub-grid::-webkit-scrollbar-thumb { border-radius: 999px; background: #cbd5e1; }
    .market-mega-footer { position: static; flex: 0 0 auto; }
}
.market-mega-empty,
.market-mega-loading {
    min-height: 170px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: .6rem;
    padding: 1.2rem;
    color: #64748b;
    text-align: center;
    font-size: .84rem;
}
.market-mega-empty i { color: #94a3b8; font-size: 1.35rem; }

/* A calmer, denser landing page that keeps VSMitra unmistakably visible. */
.home-hero { padding: clamp(3.2rem,5vw,5rem) 0 clamp(3.6rem,5.5vw,5.4rem); }
.home-hero-grid { grid-template-columns: minmax(0,1.08fr) minmax(330px,.72fr); gap: clamp(2rem,4vw,4rem); }
.home-brand-chip {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .48rem .75rem;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 999px;
    color: #dbeafe;
    background: rgba(255,255,255,.1);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
    font-size: .78rem;
}
.home-brand-chip b { color: #fff; font-size: .92rem; letter-spacing: -.025em; }
.home-hero h1 { max-width: 760px; margin: 1rem 0 .9rem; font-size: clamp(2.5rem,4.7vw,4.55rem); line-height: .99; }
.home-hero-copy > p { max-width: 720px; font-size: clamp(.98rem,1.25vw,1.12rem); }
.home-search { margin: 1.35rem 0 1rem; box-shadow: 0 .9rem 2.2rem rgba(0,0,0,.2); }
.hero-showcase-card { padding: 1rem; border-radius: 1rem; }
.showcase-icon { width: 44px; height: 44px; flex-basis: 44px; border-radius: .8rem; }
.home-section { padding-top: clamp(2.8rem,4.4vw,4.6rem); padding-bottom: clamp(2.8rem,4.4vw,4.6rem); content-visibility: auto; contain-intrinsic-size: 1px 620px; }
.home-section-head { margin-bottom: 1.25rem; }
.home-section-head h2 { font-size: clamp(1.75rem,2.7vw,2.5rem); }
.home-category-rail { gap: .75rem; }
.home-category-tile { min-height: 132px; padding: 1rem; border-radius: 1rem; }
.home-category-icon { width: 42px; height: 42px; border-radius: .8rem; font-size: 1.12rem; }
.home-category-tile strong { margin-top: .75rem; }
.home-category-arrow { align-self: flex-end; color: #94a3b8; }
.home-category-tile:hover .home-category-arrow { color: var(--vsm-blue); transform: translateX(2px); }
.home-ad-grid { gap: .8rem; }
.home-commerce-card { min-height: 292px; padding: 1.25rem; border-radius: 1.15rem; }
.home-commerce-card > i { margin: 1.35rem 0 .75rem; }
.home-process-grid article { min-height: 188px; padding: 1.2rem; border-radius: 1rem; }
.home-process-grid h3 { margin: 1.6rem 0 .4rem; }
.home-benefit-card { min-height: 330px; border-radius: 1.35rem; }
.home-benefit-card ul { margin: 1.35rem 0; gap: .6rem; }
.home-faq { max-width: 980px; }

/* Seller dashboard disclosures keep important status visible without a wall of cards. */
.seller-entitlement-stack { display: grid; gap: 1rem; }
.seller-dashboard-disclosure {
    overflow: hidden;
    border: 1px solid var(--vsm-line);
    border-radius: 1.15rem;
    background: #fff;
    box-shadow: 0 .35rem 1.1rem rgba(15,23,42,.055);
}
.seller-dashboard-disclosure > summary {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem;
    cursor: pointer;
    list-style: none;
    transition: background .16s ease;
}
.seller-dashboard-disclosure > summary::-webkit-details-marker { display: none; }
.seller-dashboard-disclosure > summary:hover { background: #f8fbff; }
.seller-disclosure-heading { min-width: 0; display: flex; align-items: center; gap: .8rem; }
.seller-disclosure-heading > div { min-width: 0; }
.seller-disclosure-heading strong,
.seller-disclosure-heading small,
.seller-disclosure-eyebrow { display: block; }
.seller-disclosure-heading strong { color: var(--vsm-ink); font-size: 1.03rem; }
.seller-disclosure-heading small { margin-top: .18rem; color: var(--vsm-muted); }
.seller-disclosure-eyebrow { margin-bottom: .13rem; color: var(--vsm-blue); font-size: .67rem; font-weight: 900; letter-spacing: .065em; text-transform: uppercase; }
.seller-disclosure-icon { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; border-radius: .85rem; color: var(--vsm-blue); background: var(--vsm-sky); font-size: 1.1rem; }
.seller-disclosure-icon.is-success { color: #087651; background: #e8f7f0; }
.seller-disclosure-icon.is-warning { color: #946000; background: #fff5db; }
.seller-disclosure-summary-metrics { display: flex; align-items: center; justify-content: flex-end; gap: .45rem; flex-wrap: wrap; }
.seller-disclosure-summary-metrics span { display: inline-flex; align-items: baseline; gap: .28rem; padding: .4rem .62rem; border-radius: 999px; color: #475569; background: #f1f5f9; font-size: .76rem; white-space: nowrap; }
.seller-disclosure-summary-metrics span.is-primary { color: #0753cf; background: #eaf2ff; }
.seller-disclosure-summary-metrics b { color: inherit; font-size: .92rem; }
.seller-disclosure-chevron { margin-left: .3rem; color: #64748b; transition: transform .18s ease; }
.seller-dashboard-disclosure[open] .seller-disclosure-chevron { transform: rotate(180deg); }
.seller-disclosure-body { padding: 0 1.15rem 1.15rem; border-top: 1px solid #edf1f6; }
.seller-membership-detail-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(360px,.9fr); gap: 1rem; padding-top: 1rem; align-items: start; }
.seller-quota-pill-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .55rem; }
.seller-quota-pill-grid .quota-pill { min-width: 0; justify-content: center; text-align: center; }
.seller-category-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .65rem; padding-top: 1rem; }
.seller-category-capacity { min-width: 0; padding: .9rem 1rem; border: 1px solid var(--vsm-line); border-radius: .9rem; background: #f8fafc; }
.seller-category-capacity.has-capacity { border-left: 3px solid #17a673; }
.seller-category-capacity.is-full { border-left: 3px solid #e0a200; }

/* Browse filtering remains available even with category navigation. */
.browse-filter-panel { position: sticky; top: 132px; max-height: calc(100vh - 148px); overflow-y: auto; scrollbar-gutter: stable; }
.filter-section summary { padding-block: .85rem; }
.filter-section-body { padding-bottom: .85rem; }

/* The final create/edit action must never cover the map or other fields. */
.submission-review-card { position: static; bottom: auto; z-index: auto; }

@media (max-width: 1199.98px) {
    .market-brand > small { display: none; }
    .market-brand { min-width: auto; }
    .market-mega-menu.show { height: auto; max-height: 58vh; display: block; overflow-y: auto; }
    .browse-filter-panel { position: static; max-height: none; }
}
@media (max-width: 991.98px) {
    .market-brand-wordmark { font-size: 1.62rem; }
    .home-hero-grid { grid-template-columns: 1fr; }
    .home-hero-showcase { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
    .seller-membership-detail-grid { grid-template-columns: 1fr; }
    .seller-category-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 767.98px) {
    .market-header-main .market-header-container { min-height: 62px; }
    .market-brand-wordmark { font-size: 1.45rem; }
    .home-hero { padding: 2.65rem 0 3.2rem; }
    .home-hero h1 { font-size: clamp(2.25rem,11vw,3.3rem); }
    .home-hero-showcase { grid-template-columns: 1fr; }
    .home-section { padding-top: 2.6rem; padding-bottom: 2.6rem; }
    .seller-dashboard-disclosure > summary { align-items: flex-start; flex-direction: column; }
    .seller-disclosure-summary-metrics { width: 100%; justify-content: flex-start; }
    .seller-disclosure-chevron { margin-left: auto; }
    .seller-quota-pill-grid,
    .seller-category-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .submission-review-card { position: static; bottom: auto; }
}
@media (max-width: 479.98px) {
    .seller-quota-pill-grid,
    .seller-category-grid { grid-template-columns: 1fr; }
}


/* =========================================================
   Update 26 Hotfix 6 — modal viewport safety, home section
   navigation and clear subcategory lists
   ========================================================= */
/* Bootstrap's default modal layer sat below the sticky marketplace header. */
.modal { z-index: 1300; }
.modal-backdrop { z-index: 1290; }
body.modal-open .market-header { z-index: 1020; }

/* Quick View must remain fully inside the visual viewport at every desktop height. */
.ad-quick-view-modal { padding: 0 !important; }
.ad-quick-view-modal .modal-dialog {
    width: min(1080px, calc(100vw - 1.5rem));
    max-width: min(1080px, calc(100vw - 1.5rem));
    height: calc(100dvh - 1.5rem);
    min-height: 0;
    margin: .75rem auto;
    display: flex;
    align-items: center;
}
.ad-quick-view-content {
    width: 100%;
    height: min(680px, calc(100dvh - 1.5rem));
    max-height: calc(100dvh - 1.5rem);
    overflow: hidden;
}
.ad-quick-view-content > .row { height: 100%; min-height: 0; }
.ad-quick-view-media {
    height: 100%;
    min-height: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #111827;
}
.ad-quick-view-media > img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: contain;
    object-position: center;
    background: #111827;
}
.ad-quick-view-details {
    height: 100%;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}
.ad-quick-view-description { max-height: none; overflow: visible; }
.ad-quick-view-actions {
    position: sticky;
    bottom: 0;
    z-index: 2;
    margin-top: auto;
    padding: .8rem 0 .1rem;
    background: linear-gradient(180deg, rgba(255,255,255,0), #fff 24%);
}

/* Full image viewer: no header overlap, no clipped top, and no image cropping. */
.ad-image-viewer .modal-dialog {
    width: min(1440px, calc(100vw - 1rem));
    max-width: min(1440px, calc(100vw - 1rem));
    height: calc(100dvh - 1rem);
    min-height: 0;
    margin: .5rem auto;
}
.ad-image-viewer .modal-content { height: 100%; overflow: hidden; border: 0; border-radius: 1rem; }
.ad-image-viewer-header {
    position: absolute;
    top: .7rem;
    right: .7rem;
    z-index: 8;
    padding: 0;
}
.ad-image-viewer-header .btn-close {
    width: 42px;
    height: 42px;
    padding: .65rem;
    border-radius: 50%;
    background-color: rgba(15,23,42,.82);
    box-shadow: 0 .35rem 1.1rem rgba(0,0,0,.35);
    opacity: 1;
}
.ad-image-viewer-body,
.ad-image-viewer #modalImagesCarousel,
.ad-image-viewer .carousel-inner,
.ad-image-viewer .carousel-item { height: 100%; min-height: 0; }
.ad-image-viewer-body { padding: 0 !important; overflow: hidden; }
.ad-image-viewer-image {
    width: 100%;
    height: 100% !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center;
    border-radius: 0 !important;
    background: #111827;
}
.ad-image-viewer .carousel-control-prev,
.ad-image-viewer .carousel-control-next { width: 64px; }
.clickable-img { cursor: zoom-in; }

/* Home section shortcuts occupy the intentionally reserved navigation space. */
.home-section-nav { position: relative; }
.home-section-menu { width: min(340px, calc(100vw - 1.5rem)); padding: .55rem; border-radius: 1rem; }
.home-section-menu .dropdown-header { padding: .5rem .65rem .65rem; color: #64748b; font-size: .7rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.home-section-menu .dropdown-item {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: .7rem;
    padding: .62rem .7rem;
    border-radius: .72rem;
    color: #334155;
    text-align: left;
}
.home-section-menu .dropdown-item > i {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    border-radius: .65rem;
    color: var(--vsm-blue);
    background: var(--vsm-sky);
}
.home-section-menu .dropdown-item span,
.home-section-menu .dropdown-item b,
.home-section-menu .dropdown-item small { display: block; }
.home-section-menu .dropdown-item > span { min-width: 0; flex: 1 1 auto; }
.home-section-menu .dropdown-item b { font-size: .82rem; }
.home-section-menu .dropdown-item small { margin-top: .1rem; color: #64748b; font-size: .7rem; }
.home-section-menu .dropdown-item:hover,
.home-section-menu .dropdown-item:focus { color: var(--vsm-blue-dark); background: #f3f7ff; }
.home-brand-chip { color: #dbeafe; text-decoration: none; transition: transform .16s ease, background .16s ease, border-color .16s ease; }
.home-brand-chip:hover,
.home-brand-chip:focus-visible { color: #fff; border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.17); transform: translateY(-1px); outline: 0; }
.home-brand-chip > i { font-size: .75rem; }
#latest, #categories, #pricing, #how-it-works, #benefits, #faq { scroll-margin-top: 8.4rem; }

/* Subcategories are navigation rows, not product/ad cards. */
.market-mega-sub-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 0 1rem;
    align-content: start;
}
.market-mega-sub-grid a {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .55rem;
    padding: .58rem .2rem;
    border-bottom: 1px solid #edf1f6;
    border-radius: 0;
    color: #475569;
    background: transparent;
}
.market-mega-sub-grid a::after {
    content: "›";
    flex: 0 0 auto;
    color: #94a3b8;
    font-size: 1rem;
    line-height: 1;
}
.market-mega-sub-grid a:hover,
.market-mega-sub-grid a:focus-visible {
    color: var(--vsm-blue-dark);
    background: transparent;
    border-bottom-color: #bcd2ff;
    outline: 0;
}
.market-mega-sub-grid a:hover::after,
.market-mega-sub-grid a:focus-visible::after { color: var(--vsm-blue); transform: translateX(2px); }
.market-mega-mobile-subs { padding: 0 .45rem .55rem 1rem; }
.market-mega-mobile-subs a {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin: 0;
    padding: .58rem .15rem;
    border-bottom: 1px solid #edf1f6;
    border-radius: 0;
    background: transparent;
}
.market-mega-mobile-subs a::after { content: "›"; color: #94a3b8; font-size: 1rem; }
.market-mega-mobile-subs a:hover,
.market-mega-mobile-subs a:focus { background: transparent; border-bottom-color: #bcd2ff; }

@media (max-width: 1199.98px) {
    .home-section-nav .dropdown-menu { position: static !important; width: 100%; transform: none !important; margin: .25rem 0 .5rem; box-shadow: none !important; border: 1px solid var(--vsm-line) !important; }
}

@media (max-width: 767.98px) {
    .ad-quick-view-modal .modal-dialog {
        width: 100%;
        max-width: 100%;
        height: 100dvh;
        margin: 0;
        align-items: flex-end;
    }
    .ad-quick-view-content {
        width: 100%;
        height: min(92dvh, 760px);
        max-height: calc(100dvh - env(safe-area-inset-top, 0px));
        border-radius: 1.35rem 1.35rem 0 0;
    }
    .ad-quick-view-content > .row { height: 100%; display: flex; flex-direction: column; flex-wrap: nowrap; overflow: hidden; }
    .ad-quick-view-media {
        width: 100%;
        height: clamp(190px, 31dvh, 260px);
        min-height: 190px;
        flex: 0 0 auto;
    }
    .ad-quick-view-media > img { height: 100%; min-height: 0; }
    .ad-quick-view-details {
        width: 100%;
        height: auto;
        min-height: 0;
        flex: 1 1 auto;
        overflow-y: auto;
        padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    }
    .ad-quick-view-actions {
        margin-inline: -1rem;
        margin-bottom: calc(-1rem - env(safe-area-inset-bottom, 0px));
        padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom, 0px));
        background: rgba(255,255,255,.97);
        border-top: 1px solid #e8edf3;
        backdrop-filter: blur(8px);
    }
    .ad-image-viewer .modal-dialog { width: 100%; max-width: 100%; height: 100dvh; margin: 0; }
    .ad-image-viewer .modal-content { border-radius: 0; }
    .ad-image-viewer-header { top: max(.55rem, env(safe-area-inset-top, 0px)); right: .55rem; }
    .ad-image-viewer .carousel-control-prev,
    .ad-image-viewer .carousel-control-next { width: 48px; }
    #latest, #categories, #pricing, #how-it-works, #benefits, #faq { scroll-margin-top: 5.7rem; }
    .market-mega-sub-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .home-brand-chip,
    .market-mega-sub-grid a::after { transition: none; }
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Update 26 Hotfix 7: navigation-driven Discover and Categories experiences. */
.home-section-head h1 { margin: .35rem 0 .25rem; font-size: clamp(1.75rem, 3.2vw, 2.8rem); font-weight: 950; letter-spacing: -.035em; }
body.home-nav-panel-open { overflow: hidden; }
.home-role-strip-inline {
    margin-top: 0;
    margin-bottom: 1.5rem;
}
.home-nav-panel-backdrop {
    position: fixed;
    inset: var(--home-panel-top, 0) 0 0;
    z-index: 2040;
    opacity: 0;
    background: rgba(7, 18, 42, .58);
    backdrop-filter: blur(3px);
    transition: opacity .18s ease;
}
.home-nav-panel-backdrop.is-open { opacity: 1; }
.home-nav-panel {
    position: fixed;
    top: var(--home-panel-top, 0);
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2050;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}
.home-nav-panel.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: none;
    transform: none;
    transition-delay: 0s;
}
.home-nav-panel-shell {
    width: 100%;
    max-height: calc(100dvh - var(--home-panel-top, 0px));
    pointer-events: auto;
    overflow: hidden;
    border-top: 1px solid rgba(148, 163, 184, .35);
    background: #f7f9fd;
    box-shadow: 0 1.5rem 4rem rgba(15, 23, 42, .28);
}

.home-nav-panel-close {
    position: absolute;
    top: 0;
    right: .75rem;
    z-index: 30;
    width: 44px;
    height: 44px;
    margin: 0;
    display: grid;
    place-items: center;
    border: 1px solid rgba(148, 163, 184, .7);
    border-radius: 50%;
    color: #24344f;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 .55rem 1.5rem rgba(15, 23, 42, .16);
    backdrop-filter: blur(12px);
    cursor: pointer;
}
.home-nav-panel-close:hover,
.home-nav-panel-close:focus-visible {
    color: var(--vsm-blue-dark);
    border-color: #9bbcff;
    background: #f3f7ff;
    outline: 0;
}
.home-nav-panel-scroll {
    position: relative;
    max-height: min(82dvh, 780px);
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}
.home-nav-panel .home-hero-panel {
    min-height: 0;
    padding: clamp(.95rem, 1.8vw, 1.45rem) 0 clamp(1.6rem, 3vw, 2.5rem);
}
.home-nav-panel .home-hero-panel h1 {
    font-size: clamp(2.2rem, 4vw, 4rem);
}
.home-nav-panel .home-hero-panel .home-hero-grid {
    position: relative;
    gap: clamp(1.5rem, 3vw, 3.5rem);
}
.home-nav-panel .home-hero-panel .hero-showcase-card {
    padding: 1rem 1.1rem;
}
.home-nav-panel-categories .home-nav-panel-scroll {
    background: linear-gradient(180deg, #f5f8ff 0, #eef4fc 100%);
}
.home-nav-panel-content {
    position: relative;
    padding-top: clamp(.95rem, 1.8vw, 1.45rem);
    padding-bottom: calc(clamp(1.8rem, 3vw, 2.8rem) + env(safe-area-inset-bottom, 0px));
}
.home-category-panel-content {
    min-height: min-content;
}
.home-nav-panel-categories .home-category-rail {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    overflow: visible;
}
.home-section-menu .dropdown-item[data-home-panel-trigger][aria-expanded="true"] {
    color: var(--vsm-blue-dark);
    background: #eaf2ff;
}

@media (max-width: 1399.98px) {
    .home-nav-panel-categories .home-category-rail { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
    .home-nav-panel-categories .home-category-rail {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        overflow: visible;
    }
    .home-nav-panel-categories .home-category-tile { min-width: 0; }
}
@media (max-width: 767.98px) {
    .home-nav-panel-shell { height: 100%; max-height: 100%; }
    .home-nav-panel-scroll { height: 100%; max-height: none; }
    .home-nav-panel-close {
        top: 0;
        right: .65rem;
        width: 42px;
        height: 42px;
        margin: 0;
    }
    .home-nav-panel .home-hero-panel { padding: max(.75rem, env(safe-area-inset-top, 0px)) 0 2.15rem; }
    .home-nav-panel .home-hero-panel .home-hero-grid { padding-inline: .8rem; }
    .home-nav-panel .home-hero-panel h1 { font-size: clamp(2.05rem, 10vw, 3rem); }
    .home-nav-panel-categories .home-category-rail {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .65rem;
    }
    .home-nav-panel-categories .home-category-tile {
        min-height: 138px;
        padding: .85rem;
    }
    .home-nav-panel-content { padding: max(.85rem, env(safe-area-inset-top, 0px)) .85rem calc(4.75rem + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 420px) {
    .home-nav-panel-categories .home-category-rail { grid-template-columns: 1fr; }
    .home-nav-panel-categories .home-category-tile { min-height: 118px; }
}
@media (prefers-reduced-motion: reduce) {
    .home-nav-panel,
    .home-nav-panel-backdrop { transition: none; }
}

/* =========================================================
   Update 26 Hotfix 8 — global navigation panels for Discover,
   Categories, How It Works and FAQ
   ========================================================= */
.market-panel-nav-link[aria-expanded="true"] {
    color: var(--vsm-blue-dark);
    background: var(--vsm-sky);
    box-shadow: inset 0 -2px 0 var(--vsm-blue);
}
.home-nav-panel-how .home-nav-panel-scroll {
    background: linear-gradient(180deg, #ffffff 0, #f4f8ff 100%);
}
.home-nav-panel-faq .home-nav-panel-scroll {
    background: linear-gradient(180deg, #f8fbff 0, #ffffff 100%);
}
.home-panel-process-content .home-process-grid {
    margin-top: .5rem;
}
.home-panel-actions {
    display: flex;
    justify-content: center;
    gap: .75rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}
.home-nav-panel-faq .home-faq {
    max-width: 980px;
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
    .market-nav-row { gap: 0; }
    .market-nav-link { padding-inline: .52rem; font-size: .8rem; }
    .market-panel-nav-link { padding-inline: .46rem; }
}

@media (max-width: 1199.98px) {
    .market-panel-nav-link[aria-expanded="true"] {
        box-shadow: inset 3px 0 0 var(--vsm-blue);
    }
}

@media (max-width: 767.98px) {
    .home-panel-process-content,
    .home-panel-faq-content {
        padding-left: .85rem;
        padding-right: .85rem;
        padding-bottom: calc(5.25rem + env(safe-area-inset-bottom, 0px));
    }
    .home-panel-process-content .home-process-grid {
        grid-template-columns: 1fr;
    }
    .home-panel-process-content .home-process-grid article {
        min-height: 0;
    }
    .home-panel-actions {
        display: grid;
        grid-template-columns: 1fr;
        padding-inline: .85rem;
    }
    .home-panel-actions .btn { width: 100%; }
    .home-panel-faq-content .home-section-head,
    .home-panel-process-content .home-section-head {
        padding-inline: .75rem;
    }
}


/* =========================================================
   Update 26 Hotfix 9 — inset close control and direct panel content
   ========================================================= */
.home-nav-panel-scroll:focus { outline: none; }
.home-nav-panel-close i { pointer-events: none; }
.home-nav-panel-content .home-section-head {
    padding-right: 3.5rem;
}
.home-nav-panel-content .home-section-head.centered {
    padding-left: 3.5rem;
}
.home-nav-panel-discover .home-nav-panel-close {
    color: #0f2f68;
    border-color: rgba(255, 255, 255, .75);
}
.home-nav-panel-discover .home-hero-panel {
    padding-top: clamp(.95rem, 1.8vw, 1.45rem);
}
.home-nav-panel-categories .home-category-rail {
    padding-bottom: .25rem;
}
.home-panel-process-content,
.home-panel-faq-content {
    min-height: min-content;
}
.home-panel-process-content .home-section-head,
.home-panel-faq-content .home-section-head {
    margin-bottom: 1.35rem;
}
@media (max-width: 767.98px) {
    .home-nav-panel-content .home-section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: .65rem;
        padding-right: 3rem;
    }
    .home-nav-panel-content .home-section-head.centered {
        align-items: center;
        padding-left: 3rem;
    }
    .home-nav-panel-discover .home-hero-panel {
        padding-top: max(.75rem, env(safe-area-inset-top, 0px));
    }
}

/* =========================================================
   Update 26 Hotfix 10 — navigation alignment, compact home
   rhythm, trademark badge and lightweight motion
   ========================================================= */
.market-nav-row {
    align-items: stretch;
    column-gap: .15rem;
}
.home-section-nav {
    display: flex;
    align-self: stretch;
    align-items: stretch;
    margin: 0;
}
.home-section-nav > .market-nav-link {
    height: 100%;
    min-height: 44px;
    margin: 0;
    padding-block: .55rem;
    justify-content: center;
    border: 0 !important;
    border-radius: 0;
    line-height: 1.15;
    box-shadow: none !important;
    outline: 0;
}
.home-section-nav > .market-nav-link:focus-visible {
    color: var(--vsm-blue-dark);
    background: var(--vsm-sky);
    box-shadow: inset 0 -2px 0 var(--vsm-blue) !important;
}
.home-section-nav > .market-nav-link::after {
    margin-left: .2rem;
    vertical-align: .12em;
}
.home-section-menu {
    top: 100% !important;
    left: 0 !important;
    right: auto !important;
    margin-top: 0 !important;
}

/* Keep the close control inside the content container without reserving a toolbar row. */
@media (min-width: 1200px) {
    .home-nav-panel-discover .home-hero-showcase { padding-top: 3.15rem; }
}

@media (max-width: 1199.98px) {
    .home-nav-panel-discover .home-hero-copy { padding-right: 3.15rem; }
    .home-section-nav {
        grid-column: 1 / -1;
        width: 100%;
        display: block;
    }
    .home-section-nav > .market-nav-link {
        width: 100%;
        height: auto;
        justify-content: flex-start;
        border-radius: .6rem;
        padding-inline: .8rem;
    }
    .home-section-menu {
        position: static !important;
        inset: auto !important;
        transform: none !important;
        width: 100%;
        max-width: none;
        margin: .25rem 0 .35rem !important;
        border-radius: .85rem;
        box-shadow: none !important;
        background: #f8fbff;
    }
}

/* Keep the Home page dense enough to scan without large blank bands. */
.home-marketplace .home-section {
    padding-top: clamp(1.75rem, 3vw, 3rem);
    padding-bottom: clamp(1.75rem, 3vw, 3rem);
    contain-intrinsic-size: 1px 420px;
}
.home-marketplace .home-section + .home-section {
    border-top: 1px solid rgba(148, 163, 184, .12);
}
.home-marketplace .home-section-head {
    margin-bottom: 1rem;
}
.home-marketplace .home-ad-grid,
.home-marketplace .home-commerce-grid,
.home-marketplace .home-benefit-grid {
    align-items: stretch;
}
.market-footer {
    padding-top: 2.25rem;
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0));
}
.market-footer-bottom {
    margin-top: 1.35rem;
    padding-top: .9rem;
}

/* Preserve mixed-case brand styling while the official stamp text is exact. */
.ad-verification-stamp {
    text-transform: none;
    letter-spacing: .025em;
}
.ad-verification-stamp-vsmitra {
    font-weight: 950;
}

/* Home-only motion: short, composited and disabled for reduced motion. */
.home-motion-item,
.home-footer-motion {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .38s ease var(--home-motion-delay, 0ms),
                transform .38s ease var(--home-motion-delay, 0ms);
    will-change: opacity, transform;
}
.home-motion-item.is-visible,
.home-footer-motion.is-visible {
    opacity: 1;
    transform: none;
    will-change: auto;
}
.home-marketplace .browse-ad-card,
.home-marketplace .home-commerce-card,
.home-marketplace .home-benefit-card {
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.home-marketplace .browse-ad-card:hover,
.home-marketplace .home-commerce-card:hover,
.home-marketplace .home-benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 .85rem 2rem rgba(15, 23, 42, .11);
}
.home-footer-motion.is-visible .row > div {
    animation: vsmFooterRise .38s ease both;
}
.home-footer-motion.is-visible .row > div:nth-child(2) { animation-delay: 45ms; }
.home-footer-motion.is-visible .row > div:nth-child(3) { animation-delay: 90ms; }
.home-footer-motion.is-visible .row > div:nth-child(4) { animation-delay: 135ms; }
.home-footer-motion.is-visible .row > div:nth-child(5) { animation-delay: 180ms; }
@keyframes vsmFooterRise {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

@media (max-width: 1199.98px) {
    .home-section-nav {
        display: block;
        width: 100%;
    }
    .home-section-nav > .market-nav-link {
        width: 100%;
        justify-content: flex-start;
        border-radius: .6rem;
    }
}
@media (max-width: 767.98px) {
    .home-marketplace .home-section {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
    .market-footer { padding-top: 1.8rem; }
    .home-marketplace .browse-ad-card:hover,
    .home-marketplace .home-commerce-card:hover,
    .home-marketplace .home-benefit-card:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .home-motion-item,
    .home-footer-motion {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .home-footer-motion.is-visible .row > div { animation: none; }
}

/* =========================================================
   Update 26 Hotfix 12 — deterministic Explore placement,
   PIN-code location and professional location filters
   ========================================================= */
.home-section-nav {
    position: relative;
}
.home-section-menu {
    --bs-dropdown-spacer: 0;
    width: min(390px, calc(100vw - 2rem));
    padding: .75rem;
    overflow: hidden;
}
.home-section-menu .dropdown-header {
    padding: .15rem .45rem .65rem;
    color: #223a63;
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.home-section-menu .dropdown-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: .75rem;
    min-height: 64px;
    padding: .55rem .5rem;
    border-radius: .8rem;
    text-align: left;
    white-space: normal;
}
.home-section-menu .dropdown-item > i {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: var(--vsm-blue);
    border-radius: .75rem;
    background: rgba(37, 99, 235, .07);
    font-size: 1.18rem;
}
.home-section-menu .dropdown-item > span {
    display: grid;
    min-width: 0;
    line-height: 1.22;
}
.home-section-menu .dropdown-item b {
    color: #172033;
    font-weight: 850;
}
.home-section-menu .dropdown-item small {
    margin-top: .2rem;
    color: #687386;
    font-size: .84rem;
}
.home-section-menu .dropdown-item:hover,
.home-section-menu .dropdown-item:focus-visible {
    background: #f2f6ff;
}

@media (min-width: 1200px) {
    .home-section-nav > .home-section-menu,
    .home-section-nav > .home-section-menu[data-popper-placement] {
        position: absolute !important;
        inset: 100% auto auto 0 !important;
        top: 100% !important;
        left: 0 !important;
        right: auto !important;
        bottom: auto !important;
        margin: 0 !important;
        transform: none !important;
    }
}

@media (max-width: 1199.98px) {
    .home-section-nav > .home-section-menu,
    .home-section-nav > .home-section-menu[data-popper-placement] {
        position: static !important;
        inset: auto !important;
        width: 100%;
        max-width: none;
        margin: .2rem 0 .35rem !important;
        transform: none !important;
    }
    .home-section-menu .dropdown-item {
        grid-template-columns: 38px minmax(0, 1fr);
        min-height: 58px;
        padding-inline: .4rem;
    }
    .home-section-menu .dropdown-item > i {
        width: 38px;
        height: 38px;
    }
}

.postal-location-card {
    padding: clamp(1rem, 2vw, 1.35rem);
    border: 1px solid rgba(37, 99, 235, .14);
    border-radius: 1.15rem;
    background: linear-gradient(180deg, #fbfdff 0%, #f7faff 100%);
}
.postal-location-intro {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    margin-bottom: 1rem;
}
.postal-location-intro-icon {
    display: grid;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    place-items: center;
    color: var(--vsm-blue);
    border-radius: .8rem;
    background: rgba(37, 99, 235, .09);
    font-size: 1.2rem;
}
.postal-location-intro strong { color: #14213d; }
.postal-location-intro p {
    margin: .18rem 0 0;
    color: #667085;
    font-size: .9rem;
}
.postal-pincode-group .btn {
    min-width: 96px;
    font-weight: 750;
}
.postal-location-resolved {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
}
.postal-location-resolved .form-label {
    margin-bottom: .3rem;
    color: #536078;
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .035em;
}
.postal-location-resolved input[readonly] {
    color: #24324a;
    background: #eef3fb;
    border-color: #dbe4f2;
    font-weight: 700;
    cursor: default;
}
.postal-location-status {
    display: flex;
    align-items: center;
    gap: .5rem;
    min-height: 42px;
    padding: .65rem .8rem;
    color: #536078;
    border-radius: .8rem;
    background: #eef2f7;
    font-size: .88rem;
}
.postal-location-status.is-success { color: #146c43; background: #eaf8f0; }
.postal-location-status.is-error { color: #a1262f; background: #fff0f1; }
.postal-location-status.is-loading { color: #2456a6; background: #edf4ff; }
.postal-location-status.is-loading i { animation: vsmSpin .8s linear infinite; }
@keyframes vsmSpin { to { transform: rotate(360deg); } }

.filter-section [aria-busy="true"] {
    opacity: .7;
    cursor: progress;
}

@media (max-width: 767.98px) {
    .postal-location-card { padding: .9rem; }
    .postal-location-resolved { grid-template-columns: 1fr; gap: .6rem; }
    .postal-location-intro p { font-size: .84rem; }
    .postal-pincode-group .btn { min-width: 86px; }
}

@media (prefers-reduced-motion: reduce) {
    .postal-location-status.is-loading i { animation: none; }
}


/* Hotfix 12.1: anchor Explore to the trigger itself, not a stretched navigation row. */
@media (min-width: 1200px) {
    .market-nav-row > .home-section-nav {
        align-self: flex-start;
        height: 44px;
        min-height: 44px;
        isolation: isolate;
    }
    .home-section-nav > .market-nav-link {
        height: 44px;
        min-height: 44px;
    }
    .home-section-nav > .home-section-menu,
    .home-section-nav > .home-section-menu[data-popper-placement] {
        top: calc(100% - 1px) !important;
        z-index: 1120;
    }
}
@media (max-width: 1199.98px) {
    .market-nav-row > .home-section-nav {
        height: auto;
        min-height: 0;
    }
}

/* Update 26 Hotfix 13: stable PIN fields, VSMitra profile map and identity value layouts. */
.postal-location-resolved > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
}
.postal-location-resolved .text-danger:empty,
.postal-location-card .field-validation-valid:empty {
    display: none;
}
.postal-location-resolved .field-validation-error {
    min-height: 0;
    margin-top: .3rem;
    font-size: .82rem;
    line-height: 1.35;
}
.postal-location-resolved.is-resolved .field-validation-error:empty { display: none; }
.profile-details-form { overflow: hidden; }
.profile-form-section { scroll-margin-top: 9rem; }
.profile-map-card {
    padding: clamp(.9rem, 2vw, 1.25rem);
    border: 1px solid rgba(37, 99, 235, .14);
    border-radius: 1.15rem;
    background: #fbfdff;
}
.profile-map-canvas {
    width: 100%;
    height: 360px;
    min-height: 300px;
    overflow: hidden;
    border: 1px solid #dce4ef;
    border-radius: 1rem;
    background: #eef3f8;
}
.location-filter-status { min-height: 1.25rem; }
.filter-section.is-loading { cursor: progress; }
.filter-section.is-loading select,
.filter-section.is-loading input { opacity: .78; }

.identity-split-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
    gap: clamp(1rem, 3vw, 2rem);
    align-items: stretch;
    width: min(1120px, 100%);
    margin: 0 auto;
}
.identity-form-card,
.identity-value-panel {
    border-radius: 1.75rem;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
}
.identity-form-card {
    padding: clamp(1.35rem, 4vw, 3rem);
    border: 1px solid rgba(15, 23, 42, .07);
    background: #fff;
}
.identity-value-panel {
    position: relative;
    display: flex;
    min-height: 100%;
    flex-direction: column;
    padding: clamp(1.35rem, 4vw, 2.75rem);
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 85% 10%, rgba(255,255,255,.22), transparent 28%),
        linear-gradient(145deg, #1647d8 0%, #245fe8 48%, #163ba5 100%);
}
.identity-value-panel::after {
    position: absolute;
    right: -90px;
    bottom: -100px;
    width: 270px;
    height: 270px;
    content: "";
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 50%;
}
.identity-value-panel > * { position: relative; z-index: 1; }
.identity-value-brand {
    display: inline-flex;
    width: fit-content;
    flex-direction: column;
    margin-bottom: clamp(1.5rem, 4vw, 3rem);
    color: #fff;
    text-decoration: none;
}
.identity-value-brand span { font-size: 1.35rem; font-weight: 900; letter-spacing: -.03em; }
.identity-value-brand sup { font-size: .55em; }
.identity-value-brand small { color: rgba(255,255,255,.74); font-weight: 600; }
.identity-value-kicker {
    margin-bottom: .65rem;
    color: #dce7ff;
    font-size: .78rem;
    font-weight: 850;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.identity-value-panel h2 {
    max-width: 560px;
    margin-bottom: .85rem;
    font-size: clamp(1.55rem, 3vw, 2.35rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -.035em;
}
.identity-value-panel > p,
.identity-plan-slide > p { color: rgba(255,255,255,.82); }
.identity-benefit-list,
.identity-plan-slide ul {
    display: grid;
    gap: .78rem;
    margin: 1.1rem 0 1.4rem;
    padding: 0;
    list-style: none;
}
.identity-benefit-list li {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: .65rem;
    align-items: start;
}
.identity-benefit-list i { color: #cfe0ff; }
.identity-inline-link {
    width: fit-content;
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}
.identity-inline-link:hover { color: #fff; text-decoration: underline; }
.identity-value-note {
    display: flex;
    gap: .55rem;
    margin-top: auto !important;
    padding-top: 1.5rem;
    color: rgba(255,255,255,.68) !important;
    font-size: .79rem;
}
.identity-plan-rotator { min-height: 330px; }
.identity-plan-slide {
    min-height: 260px;
    padding: 1.15rem;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 1.25rem;
    background: rgba(255,255,255,.1);
    backdrop-filter: blur(8px);
}
.identity-plan-slide.is-active { animation: identitySlideIn .38s ease-out; }
.identity-plan-slide h3 { margin: .55rem 0; font-size: 1.45rem; font-weight: 900; }
.identity-plan-slide li::before { margin-right: .55rem; content: "✓"; color: #dce7ff; font-weight: 900; }
.identity-plan-badge {
    display: inline-flex;
    padding: .35rem .65rem;
    border-radius: 999px;
    color: #12358d;
    background: #fff;
    font-size: .74rem;
    font-weight: 850;
}
.identity-plan-dots { display: flex; gap: .5rem; justify-content: center; margin-top: 1rem; }
.identity-plan-dots button {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,.45);
}
.identity-plan-dots button.is-active { width: 28px; background: #fff; }
.identity-pricing-link { align-self: flex-start; margin-top: .9rem; color: #1647d8; font-weight: 850; }
.identity-otp-input { font-size: 1.4rem; font-weight: 800; letter-spacing: .24em; text-align: center; }
@keyframes identitySlideIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 991.98px) {
    .identity-split-shell { grid-template-columns: 1fr; }
    .identity-value-panel { min-height: auto; }
    .identity-plan-rotator { min-height: 0; }
    .identity-plan-slide { min-height: 0; }
}
@media (max-width: 575.98px) {
    .identity-form-card,
    .identity-value-panel { padding: 1.1rem; border-radius: 1.25rem; }
    .profile-map-canvas { height: 300px; }
}
@media (prefers-reduced-motion: reduce) {
    .identity-plan-slide.is-active { animation: none; }
}

/* Update 26 Hotfix 15: stable filters, profile disclosures, consent and ad wizard */
.profile-disclosure {
    border: 1px solid #e5e9f2;
    border-radius: 1.25rem;
    background: #fff;
    overflow: clip;
}
.profile-disclosure + .profile-disclosure { margin-top: 1rem; }
.profile-disclosure-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    cursor: pointer;
    list-style: none;
    background: #f8faff;
}
.profile-disclosure-summary::-webkit-details-marker { display: none; }
.profile-disclosure-summary > span { display: grid; grid-template-columns: auto 1fr; column-gap: .75rem; align-items: center; }
.profile-disclosure-summary > span > i { grid-row: 1 / span 2; font-size: 1.3rem; color: var(--bs-primary); }
.profile-disclosure-summary strong { font-size: 1.05rem; }
.profile-disclosure-summary small { display: block; color: #667085; font-weight: 400; }
.profile-disclosure-summary > i { transition: transform .2s ease; }
.profile-disclosure[open] .profile-disclosure-summary > i { transform: rotate(180deg); }
.profile-disclosure-body { padding: 1.1rem; }

.registration-consent-card { background: #f8faff; border: 1px solid #dce5ff; }
.first-visit-icon { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 1rem; background: #edf2ff; color: var(--bs-primary); font-size: 1.4rem; flex: 0 0 auto; }
.first-visit-guidance { background: #f8faff; border: 1px solid #e3e9f8; display: grid; gap: .65rem; }
.first-visit-guidance > div { display: flex; gap: .65rem; align-items: flex-start; }
.first-visit-guidance i { color: #198754; margin-top: .1rem; }

.ad-wizard-form { max-width: 1120px; margin-inline: auto; }
.ad-wizard-nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: .5rem;
    padding: .6rem;
    margin-bottom: 1rem;
    border: 1px solid #e4e8f0;
    border-radius: 1.2rem;
    background: #fff;
    box-shadow: 0 .4rem 1.4rem rgba(31, 42, 68, .06);
    position: sticky;
    top: calc(var(--market-header-height, 72px) + .5rem);
    z-index: 12;
}
.ad-wizard-step {
    border: 0;
    border-radius: .9rem;
    background: transparent;
    color: #667085;
    min-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font-size: .9rem;
    font-weight: 700;
}
.ad-wizard-step span { display: grid; place-items: center; width: 1.65rem; height: 1.65rem; border-radius: 50%; background: #edf0f5; font-size: .78rem; }
.ad-wizard-step.is-active { background: #edf2ff; color: #1546d8; }
.ad-wizard-step.is-active span { background: #1546d8; color: #fff; }
.ad-wizard-step.is-complete { color: #198754; }
.ad-wizard-step.is-complete span { background: #dff4e8; color: #146c43; }
.ad-wizard-panel[hidden] { display: none !important; }
.ad-wizard-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid #edf0f5; }
.ad-location-subnav { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1rem; }

@media (max-width: 767.98px) {
    .ad-wizard-nav { display: flex; overflow-x: auto; justify-content: flex-start; scrollbar-width: thin; top: .35rem; }
    .ad-wizard-step { flex: 0 0 auto; padding-inline: .8rem; }
    .ad-wizard-actions { align-items: stretch; }
    .ad-wizard-actions > .btn, .ad-wizard-actions > div { width: 100%; }
    .ad-wizard-actions > div { display: grid !important; }
    .ad-wizard-actions > div .btn { width: 100%; }
    .profile-disclosure-summary { padding: .9rem; }
    .profile-disclosure-body { padding: .9rem; }
}
