@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap");

:root {
    --app-bg: #f8fafc;
    --app-ink: #1e293b;
    --app-muted: #64748b;
    --app-primary: #2563eb;
    --app-primary-dark: #1d4ed8;
    --app-accent: #facc15;
    --app-blue: #2563eb;
    --app-soft-blue: #eaf2ff;
    --app-yellow: #facc15;
    --app-soft-yellow: #fff8d6;
    --app-green: #16a34a;
    --app-soft-green: #eafbf0;
    --app-red: #ef4444;
    --app-soft-red: #feecec;
    --app-border: #e2e8f0;
    --app-panel: #ffffff;
    --app-soft: #f8fafc;
}

/* Homepage refinement: admin banners, platform modules and B2B workflow cards. */
.home-page .portal-showcase-grid {
    margin-top: 1.25rem;
}

.home-page .portal-main-banner,
.home-page .portal-side-banner {
    border-radius: 20px;
}

.home-page .portal-main-banner.has-image img,
.home-page .portal-side-banner.has-image img {
    background: #ffffff;
}

.home-page .portal-value-grid a {
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.home-page .portal-value-grid a:hover {
    border-color: rgba(37, 99, 235, 0.28);
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.1);
    transform: translateY(-3px);
}

.home-page .how-marketplace-works {
    background:
        linear-gradient(180deg, #f8fafc 0%, #ffffff 100%),
        radial-gradient(circle at 10% 10%, rgba(37, 99, 235, 0.09), transparent 20rem);
}

.home-page .how-steps-grid article {
    border-radius: 18px;
    grid-template-columns: 76px minmax(0, 1fr);
    min-height: 170px;
    padding: 1.35rem;
    position: relative;
}

.home-page .how-steps-grid article::after {
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.9), rgba(22, 163, 74, 0.55));
    border-radius: 999px;
    bottom: 0;
    content: "";
    height: 4px;
    left: 1.35rem;
    position: absolute;
    right: 1.35rem;
}

.home-page .how-steps-grid article > span {
    border-radius: 18px;
    height: 64px;
    width: 64px;
}

.home-page .trade-highlight-section {
    background:
        radial-gradient(circle at 82% 0%, rgba(250, 204, 21, 0.18), transparent 22rem),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.home-page .trade-card {
    border-radius: 18px;
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.07);
    overflow: hidden;
    padding: 1.35rem;
    position: relative;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.home-page .trade-card::before {
    border-radius: 999px;
    content: "";
    height: 74px;
    opacity: 0.14;
    position: absolute;
    right: -22px;
    top: -22px;
    width: 74px;
}

.home-page .trade-card.tone-blue::before {
    background: #2563eb;
}

.home-page .trade-card.tone-green::before {
    background: #16a34a;
}

.home-page .trade-card.tone-yellow::before {
    background: #facc15;
}

.home-page .trade-card:hover {
    border-color: rgba(37, 99, 235, 0.24);
    box-shadow: 0 24px 54px rgba(15, 23, 42, 0.11);
    transform: translateY(-4px);
}

.home-page .trade-card h3 {
    font-size: 1.45rem;
}

.trade-card-points {
    display: grid;
    gap: 0.55rem;
    list-style: none;
    margin: 1.1rem 0 0;
    padding: 0;
}

.trade-card-points li {
    align-items: center;
    color: #334155;
    display: flex;
    font-size: 0.94rem;
    gap: 0.5rem;
}

.trade-card-points i {
    color: #16a34a;
}

.home-page #features .feature-card {
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.055);
    overflow: hidden;
    position: relative;
}

.home-page #features .feature-card::after {
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.08), transparent);
    content: "";
    height: 80px;
    left: 0;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: 0;
}

.home-page #features .feature-icon {
    border-radius: 16px;
    position: relative;
    z-index: 1;
}

.home-page #features .feature-card h3 {
    font-size: 1.12rem;
}

.home-page #features .feature-card p {
    font-size: 0.96rem;
}

@media (max-width: 767.98px) {
    .home-page .how-steps-grid article {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .home-page .how-steps-grid article > span {
        margin: 0;
    }
}

/* Final mobile override: account drawer and compact banner feed. */
.mobile-account-chip {
    display: none;
}

@media (max-width: 767.98px) {
    .app-navbar .container {
        align-items: center;
        display: flex;
        gap: 0.45rem;
        padding-left: 0.65rem;
        padding-right: 0.65rem;
    }

    .app-navbar .navbar-brand {
        margin-right: auto;
        min-width: 0;
    }

    .app-navbar .navbar-brand span:last-child {
        font-size: 1rem;
        max-width: 88px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-account-chip {
        align-items: center;
        background: #eef4ff;
        border: 1px solid #d7e3f5;
        border-radius: 999px;
        color: #64748b;
        display: inline-flex !important;
        flex: 0 0 auto;
        font-size: 1rem;
        font-weight: 700;
        height: 36px;
        justify-content: center;
        order: 2;
        padding: 0;
        width: 36px;
    }

    .mobile-account-chip span {
        align-items: center;
        background: var(--app-primary);
        border-radius: inherit;
        color: #ffffff;
        display: inline-flex;
        height: 100%;
        justify-content: center;
        width: 100%;
    }

    .app-navbar .navbar-toggler {
        border: 2px solid #64748b;
        border-radius: 8px;
        box-shadow: none;
        height: 36px;
        margin-left: 0;
        min-height: 36px;
        order: 3;
        padding: 0.18rem 0.48rem;
        width: 44px;
    }

    .mobile-account-drawer {
        border-radius: 22px 22px 0 0;
        height: auto !important;
        max-height: 86vh;
    }

    .mobile-account-handle {
        background: #cbd5e1;
        border-radius: 999px;
        height: 4px;
        margin: 0.8rem auto 0;
        width: 44px;
    }

    .mobile-account-drawer .offcanvas-header {
        align-items: flex-start;
        padding: 0.85rem 1.15rem 0.55rem;
    }

    .mobile-account-drawer .offcanvas-header small {
        color: #64748b;
        font-weight: 600;
    }

    .mobile-account-drawer .offcanvas-header h2 {
        color: #0f172a;
        font-size: 1.02rem;
        font-weight: 700;
        margin: 0.15rem 0 0;
    }

    .mobile-account-drawer .btn-close {
        background-color: #f1f5f9;
        border-radius: 999px;
        opacity: 1;
        padding: 0.65rem;
    }

    .mobile-account-drawer .offcanvas-body {
        padding: 0.35rem 1.15rem 1.15rem;
    }

    .mobile-account-summary {
        align-items: center;
        display: flex;
        gap: 0.8rem;
        margin-bottom: 0.85rem;
    }

    .mobile-account-avatar {
        align-items: center;
        background: #eef4ff;
        border-radius: 999px;
        color: var(--app-primary);
        display: inline-flex;
        flex: 0 0 42px;
        font-weight: 800;
        height: 42px;
        justify-content: center;
        width: 42px;
    }

    .mobile-account-summary strong {
        color: #0f172a;
        display: block;
        font-size: 0.92rem;
    }

    .mobile-account-summary span {
        color: #64748b;
        display: block;
        font-size: 0.8rem;
    }

    .mobile-account-links {
        border-bottom: 1px solid #e2e8f0;
        border-top: 1px solid #e2e8f0;
        display: grid;
        padding: 0.45rem 0;
    }

    .mobile-account-links a {
        align-items: center;
        color: #0f172a;
        display: flex;
        font-size: 0.9rem;
        gap: 0.75rem;
        min-height: 39px;
        text-decoration: none;
    }

    .mobile-account-links i {
        color: #64748b;
        font-size: 1.05rem;
        width: 20px;
    }

    .mobile-account-location {
        align-items: center;
        border-bottom: 1px solid #e2e8f0;
        color: #64748b;
        display: flex;
        gap: 0.55rem;
        min-height: 44px;
    }

    .mobile-account-actions {
        display: grid;
        gap: 0.55rem;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 0.9rem;
    }

    .mobile-account-actions .btn {
        align-items: center;
        border-radius: 9px;
        display: inline-flex;
        font-size: 0.86rem;
        font-weight: 700;
        gap: 0.4rem;
        justify-content: center;
        min-height: 42px;
    }

    .mobile-account-status {
        align-items: center;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        margin-top: 0.75rem;
        overflow: hidden;
        text-align: center;
    }

    .mobile-account-status span,
    .mobile-account-status strong {
        font-size: 0.75rem;
        padding: 0.45rem 0.35rem;
    }

    .mobile-account-status span {
        background: #f8fafc;
        color: #475569;
        font-weight: 600;
    }

    .mobile-account-status strong {
        color: #15803d;
    }

    .home-page .portal-showcase-grid {
        gap: 0.8rem;
    }

    .home-page .portal-main-banner.has-image {
        aspect-ratio: 16 / 9;
        border-radius: 14px;
        min-height: 0 !important;
    }

    .home-page .portal-side-banners {
        display: grid !important;
        gap: 0.7rem;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .home-page .portal-side-banner.has-image {
        aspect-ratio: 1.35 / 1;
        border-radius: 12px;
        min-height: 0 !important;
    }

    .home-page .portal-main-banner.has-image img,
    .home-page .portal-side-banner.has-image img {
        object-fit: cover;
    }

    .home-page .portal-side-banner.no-image {
        border-radius: 12px;
        min-height: 126px;
        padding: 0.85rem;
    }

    .home-page .portal-side-banner.no-image h2 {
        font-size: 1rem;
    }

    .home-page .portal-side-banner.no-image p,
    .home-page .portal-side-banner.no-image span {
        font-size: 0.78rem;
    }

    .mobile-bottom-nav button {
        align-items: center;
        background: transparent;
        border: 0;
        color: #475569;
        display: flex;
        flex-direction: column;
        font-size: 0.66rem;
        font-weight: 600;
        gap: 0.18rem;
        justify-content: center;
        min-height: 46px;
        padding: 0;
        text-decoration: none;
    }

    .mobile-bottom-nav button i {
        font-size: 1rem;
        line-height: 1;
    }
}

/* Final dashboard mobile polish: shared by dealer, distributor, service center and advertiser panels. */
.dashboard-page {
    --dashboard-mobile-surface: #f6f8fb;
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.dashboard-page .dashboard-stat-card span,
.dashboard-page .dashboard-stat-card small,
.dashboard-page .dashboard-table,
.dashboard-page .product-card,
.dashboard-page .panel-heading p {
    font-weight: 400;
}

.panel-actions,
.product-explore-toolbar {
    align-items: center;
    display: flex;
    gap: 0.6rem;
}

.product-explore-toolbar {
    background: #ffffff;
    border: 1px solid var(--app-border);
    border-radius: 14px;
    justify-content: space-between;
    padding: 0.85rem 1rem;
}

.product-explore-toolbar span,
.product-explore-toolbar strong {
    display: block;
}

.product-explore-toolbar span {
    color: var(--app-muted);
    font-size: 0.78rem;
}

.product-explore-toolbar strong {
    color: var(--app-ink);
    font-size: 1rem;
    font-weight: 650;
}

.product-explore-panel .panel-heading {
    align-items: center;
}

@media (max-width: 991.98px) {
    .dashboard-shell {
        display: block;
    }

    .dashboard-sidebar {
        max-width: 320px;
        width: 84vw;
    }

    .dashboard-main {
        background: var(--dashboard-mobile-surface);
        gap: 0.85rem;
        padding: 0.85rem 0.65rem 5.5rem;
    }

    .dashboard-topbar {
        align-items: center;
        display: grid;
        gap: 0.65rem;
        grid-template-columns: auto minmax(0, 1fr) auto;
        padding: 0.75rem;
        position: sticky;
        top: 0;
        z-index: 100;
    }

    .dashboard-topbar h1 {
        font-size: 1.05rem;
        font-weight: 650;
        line-height: 1.2;
    }

    .dashboard-topbar p {
        font-size: 0.78rem;
        line-height: 1.25;
        margin-top: 0.18rem;
    }

    .dashboard-top-actions {
        gap: 0.4rem;
    }

    .dashboard-language {
        display: none;
    }

    .user-chip {
        border-radius: 999px;
        min-height: 42px;
        padding: 0.25rem;
    }

    .user-chip > div:not(.user-avatar) {
        display: none;
    }

    .notification-btn {
        height: 42px;
        width: 42px;
    }

    .dashboard-card-grid {
        gap: 0.65rem;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-stat-card {
        border-radius: 14px;
        gap: 0.65rem;
        min-height: 118px;
        padding: 0.78rem;
    }

    .dashboard-stat-card .stat-icon {
        flex-basis: 38px;
        font-size: 1.05rem;
        height: 38px;
        width: 38px;
    }

    .dashboard-stat-card span {
        font-size: 0.72rem;
        line-height: 1.2;
    }

    .dashboard-stat-card strong {
        font-size: 1.22rem;
        font-weight: 650;
        line-height: 1.1;
        margin-top: 0.15rem;
    }

    .dashboard-stat-card small {
        font-size: 0.68rem;
        line-height: 1.25;
        margin-top: 0.2rem;
    }

    .dashboard-panel {
        border-radius: 14px;
        overflow: hidden;
    }

    .panel-heading {
        align-items: center;
        gap: 0.7rem;
        padding: 0.85rem;
    }

    .panel-heading h2 {
        font-size: 1rem;
        font-weight: 650;
    }

    .panel-heading p {
        font-size: 0.76rem;
        line-height: 1.25;
    }

    .panel-actions .btn {
        min-height: 36px;
        white-space: nowrap;
    }

    .dashboard-table {
        font-size: 0.78rem;
        min-width: 620px;
    }

    .dashboard-table th {
        font-size: 0.68rem;
        font-weight: 650;
    }

    .status-pill {
        font-size: 0.68rem;
        padding: 0.28rem 0.5rem;
    }

    .product-filter-form {
        border-top: 1px solid var(--app-border);
        padding: 0.85rem !important;
    }

    .product-filter-form .row {
        --bs-gutter-x: 0.55rem;
        --bs-gutter-y: 0.65rem;
    }

    .product-filter-form .form-label {
        font-size: 0.68rem;
        font-weight: 650;
        margin-bottom: 0.25rem;
    }

    .product-filter-form .form-control,
    .product-filter-form .form-select {
        border-radius: 10px;
        font-size: 0.82rem;
        min-height: 40px;
    }

    .featured-ad-grid {
        display: flex;
        gap: 0.65rem;
        margin: 0 -0.65rem;
        overflow-x: auto;
        padding: 0 0.65rem 0.2rem;
        scroll-snap-type: x mandatory;
    }

    .featured-ad-card {
        flex: 0 0 82%;
        min-height: 96px;
        scroll-snap-align: start;
    }

    .product-card-grid {
        gap: 0.65rem;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .product-card {
        border-radius: 14px;
        box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
    }

    .product-card > img {
        aspect-ratio: 1 / 1;
        object-fit: cover;
    }

    .product-card-body {
        padding: 0.62rem;
    }

    .product-meta {
        gap: 0.25rem;
    }

    .product-meta span {
        font-size: 0.58rem;
        font-weight: 650;
        padding: 0.18rem 0.38rem;
    }

    .product-card h3 {
        display: -webkit-box;
        font-size: 0.82rem;
        font-weight: 650;
        line-height: 1.25;
        margin: 0.5rem 0 0.28rem;
        min-height: 2.05rem;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .product-card p {
        font-size: 0.68rem;
        line-height: 1.25;
        margin-bottom: 0.45rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .product-price-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.12rem;
        margin-bottom: 0.55rem;
    }

    .product-price-row strong {
        font-size: 0.82rem;
        font-weight: 650;
    }

    .product-price-row small {
        font-size: 0.66rem;
        font-weight: 500;
    }

    .product-actions .btn {
        border-radius: 9px;
        font-size: 0.68rem;
        min-height: 32px;
        padding: 0.32rem 0.35rem;
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .dashboard-main {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .dashboard-topbar p {
        display: none;
    }

    .dashboard-menu-toggle {
        height: 40px;
        width: 40px;
    }

    .panel-heading {
        padding: 0.78rem;
    }

    .panel-heading p {
        display: none;
    }

    .panel-actions {
        gap: 0.4rem;
    }

    .panel-actions .btn {
        font-size: 0.72rem;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .product-explore-toolbar {
        border-radius: 13px;
        padding: 0.72rem 0.78rem;
    }

    .product-explore-toolbar strong {
        font-size: 0.9rem;
    }

    .product-card-grid {
        gap: 0.52rem;
    }

    .product-card-body {
        padding: 0.55rem;
    }
}

/* Mobile app header, account drawer and compact marketplace banners. */
.mobile-account-chip {
    display: none;
}

@media (max-width: 767.98px) {
    .app-navbar {
        border-bottom: 1px solid #e5edf7;
    }

    .app-navbar .container {
        align-items: center;
        display: flex;
        gap: 0.45rem;
    }

    .app-navbar .navbar-brand {
        margin-right: auto;
        min-width: 0;
    }

    .app-navbar .navbar-brand span:last-child {
        font-size: 1rem;
        max-width: 88px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-account-chip {
        align-items: center;
        background: #eef4ff;
        border: 1px solid #d7e3f5;
        border-radius: 999px;
        color: #64748b;
        display: inline-flex;
        flex: 0 0 auto;
        font-size: 1rem;
        font-weight: 700;
        height: 36px;
        justify-content: center;
        order: 2;
        padding: 0;
        width: 36px;
    }

    .mobile-account-chip span {
        align-items: center;
        background: var(--app-primary);
        border-radius: inherit;
        color: #ffffff;
        display: inline-flex;
        height: 100%;
        justify-content: center;
        width: 100%;
    }

    .app-navbar .navbar-toggler {
        border: 2px solid #64748b;
        border-radius: 8px;
        box-shadow: none;
        height: 36px;
        margin-left: 0;
        min-height: 36px;
        order: 3;
        padding: 0.18rem 0.48rem;
        width: 44px;
    }

    .app-navbar .navbar-collapse {
        border-radius: 0 0 14px 14px;
        box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
    }

    .mobile-account-drawer {
        border-radius: 22px 22px 0 0;
        height: auto !important;
        max-height: 86vh;
    }

    .mobile-account-handle {
        background: #cbd5e1;
        border-radius: 999px;
        height: 4px;
        margin: 0.8rem auto 0;
        width: 44px;
    }

    .mobile-account-drawer .offcanvas-header {
        align-items: flex-start;
        padding: 0.85rem 1.15rem 0.55rem;
    }

    .mobile-account-drawer .offcanvas-header small {
        color: #64748b;
        font-weight: 600;
    }

    .mobile-account-drawer .offcanvas-header h2 {
        color: #0f172a;
        font-size: 1.02rem;
        font-weight: 700;
        margin: 0.15rem 0 0;
    }

    .mobile-account-drawer .btn-close {
        background-color: #f1f5f9;
        border-radius: 999px;
        opacity: 1;
        padding: 0.65rem;
    }

    .mobile-account-drawer .offcanvas-body {
        padding: 0.35rem 1.15rem 1.15rem;
    }

    .mobile-account-summary {
        align-items: center;
        display: flex;
        gap: 0.8rem;
        margin-bottom: 0.85rem;
    }

    .mobile-account-avatar {
        align-items: center;
        background: #eef4ff;
        border-radius: 999px;
        color: var(--app-primary);
        display: inline-flex;
        flex: 0 0 42px;
        font-weight: 800;
        height: 42px;
        justify-content: center;
        width: 42px;
    }

    .mobile-account-summary strong {
        color: #0f172a;
        display: block;
        font-size: 0.92rem;
    }

    .mobile-account-summary span {
        color: #64748b;
        display: block;
        font-size: 0.8rem;
    }

    .mobile-account-links {
        border-bottom: 1px solid #e2e8f0;
        border-top: 1px solid #e2e8f0;
        display: grid;
        gap: 0;
        padding: 0.45rem 0;
    }

    .mobile-account-links a {
        align-items: center;
        color: #0f172a;
        display: flex;
        font-size: 0.9rem;
        gap: 0.75rem;
        min-height: 39px;
        text-decoration: none;
    }

    .mobile-account-links i {
        color: #64748b;
        font-size: 1.05rem;
        width: 20px;
    }

    .mobile-account-location {
        align-items: center;
        border-bottom: 1px solid #e2e8f0;
        color: #64748b;
        display: flex;
        gap: 0.55rem;
        min-height: 44px;
    }

    .mobile-account-actions {
        display: grid;
        gap: 0.55rem;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 0.9rem;
    }

    .mobile-account-actions .btn {
        align-items: center;
        border-radius: 9px;
        display: inline-flex;
        font-size: 0.86rem;
        font-weight: 700;
        gap: 0.4rem;
        justify-content: center;
        min-height: 42px;
    }

    .mobile-account-status {
        align-items: center;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        margin-top: 0.75rem;
        overflow: hidden;
        text-align: center;
    }

    .mobile-account-status span,
    .mobile-account-status strong {
        font-size: 0.75rem;
        padding: 0.45rem 0.35rem;
    }

    .mobile-account-status span {
        background: #f8fafc;
        color: #475569;
        font-weight: 600;
    }

    .mobile-account-status strong {
        color: #15803d;
    }

    .home-page .portal-showcase-grid {
        gap: 0.8rem;
    }

    .home-page .portal-main-banner.has-image {
        aspect-ratio: 16 / 9;
        border-radius: 14px;
        min-height: 0 !important;
    }

    .home-page .portal-side-banners {
        display: grid !important;
        gap: 0.7rem;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .home-page .portal-side-banner.has-image {
        aspect-ratio: 1.35 / 1;
        border-radius: 12px;
        min-height: 0 !important;
    }

    .home-page .portal-main-banner.has-image img,
    .home-page .portal-side-banner.has-image img {
        object-fit: cover;
    }

    .home-page .portal-side-banner.no-image {
        border-radius: 12px;
        min-height: 126px;
        padding: 0.85rem;
    }

    .home-page .portal-side-banner.no-image h2 {
        font-size: 1rem;
    }

    .home-page .portal-side-banner.no-image p,
    .home-page .portal-side-banner.no-image span {
        font-size: 0.78rem;
    }

    .mobile-bottom-nav {
        grid-template-columns: repeat(5, 1fr);
    }

    .mobile-bottom-nav button {
        align-items: center;
        background: transparent;
        border: 0;
        color: #475569;
        display: flex;
        flex-direction: column;
        font-size: 0.66rem;
        font-weight: 600;
        gap: 0.18rem;
        justify-content: center;
        min-height: 46px;
        padding: 0;
        text-decoration: none;
    }

    .mobile-bottom-nav button i {
        font-size: 1rem;
        line-height: 1;
    }
}

html {
    scroll-behavior: smooth;
}

html,
body {
    min-height: 100%;
}

body {
    background: var(--app-bg);
    color: var(--app-ink);
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 400;
}

a {
    color: inherit;
}

.app-navbar {
    background: rgba(10, 36, 47, 0.96);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(14px);
}

.navbar-brand,
.footer-brand {
    align-items: center;
    display: inline-flex;
    gap: 0.65rem;
}

.brand-mark {
    align-items: center;
    background: linear-gradient(135deg, var(--app-accent), #ffe6a6);
    border-radius: 8px;
    color: #162033;
    display: inline-flex;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.app-navbar .nav-link {
    color: rgba(255, 255, 255, 0.78);
    font-weight: 600;
}

.app-navbar .nav-link:hover,
.app-navbar .nav-link:focus,
.app-navbar .nav-link.active {
    color: #ffffff;
}

.language-switcher {
    align-items: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    display: inline-flex;
    gap: 0.2rem;
    padding: 0.2rem;
}

.language-option {
    background: transparent;
    border: 0;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.82rem;
    font-weight: 700;
    min-height: 32px;
    min-width: 44px;
    padding: 0 0.65rem;
}

.language-option.active {
    background: #ffffff;
    color: var(--app-primary-dark);
}

.home-main {
    background: #ffffff;
}

.home-hero {
    min-height: calc(100vh - 66px);
    overflow: hidden;
    position: relative;
}

.hero-bg {
    height: 100%;
    inset: 0;
    object-fit: cover;
    object-position: center;
    position: absolute;
    width: 100%;
}

.hero-overlay {
    background: linear-gradient(90deg, rgba(6, 31, 45, 0.9) 0%, rgba(11, 79, 74, 0.72) 42%, rgba(6, 31, 45, 0.12) 100%);
    inset: 0;
    position: absolute;
}

.hero-content {
    color: #ffffff;
    position: relative;
    z-index: 1;
}

.min-vh-hero {
    min-height: calc(100vh - 66px);
    padding-bottom: 4rem;
    padding-top: 4rem;
}

.section-badge {
    background: rgba(15, 118, 110, 0.12);
    border: 1px solid rgba(15, 118, 110, 0.18);
    border-radius: 999px;
    color: var(--app-primary-dark);
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 800;
    margin-bottom: 1rem;
    padding: 0.45rem 0.8rem;
    text-transform: uppercase;
}

.section-badge.light {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.26);
    color: #ffffff;
}

.home-hero .section-badge {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.home-hero h1 {
    font-size: clamp(2.35rem, 5vw, 5.2rem);
    font-weight: 800;
    line-height: 1.02;
    margin-bottom: 1.25rem;
    max-width: 820px;
}

.hero-lead {
    color: rgba(255, 255, 255, 0.83);
    font-size: clamp(1.05rem, 2vw, 1.28rem);
    line-height: 1.7;
    margin-bottom: 1.8rem;
    max-width: 700px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.btn {
    align-items: center;
    border-radius: 8px;
    display: inline-flex;
    font-weight: 700;
    gap: 0.55rem;
    justify-content: center;
}

.hero-stats {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(3, minmax(0, 150px));
}

.hero-stats div {
    border-left: 3px solid var(--app-accent);
    padding-left: 0.85rem;
}

.hero-stats strong,
.hero-stats span {
    display: block;
}

.hero-stats strong {
    font-size: 1.45rem;
}

.hero-stats span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.88rem;
}

.section-block {
    padding: 5rem 0;
}

.section-muted {
    background: #f4f8fb;
}

.section-heading {
    margin: 0 auto 2.5rem;
    max-width: 760px;
    text-align: center;
}

.section-heading h2,
.section-title,
.plan-band h2 {
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 800;
    line-height: 1.12;
    margin-bottom: 1rem;
}

.section-heading p,
.section-copy,
.plan-band p {
    color: var(--app-muted);
    font-size: 1.05rem;
    line-height: 1.75;
}

.feature-card,
.process-item,
.news-card,
.pricing-card,
.auction-board,
.mini-metric {
    background: var(--app-panel);
    border: 1px solid var(--app-border);
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.feature-card {
    height: 100%;
    padding: 1.5rem;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.feature-card:hover {
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.13);
    transform: translateY(-4px);
}

.feature-icon {
    align-items: center;
    background: linear-gradient(135deg, #dffcf4, #eaf2ff);
    border-radius: 8px;
    color: var(--app-primary-dark);
    display: inline-flex;
    font-size: 1.65rem;
    height: 52px;
    justify-content: center;
    margin-bottom: 1.2rem;
    width: 52px;
}

.feature-card h3,
.process-item h3,
.news-card h3 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 0.7rem;
}

.feature-card p,
.process-item p {
    color: var(--app-muted);
    line-height: 1.7;
    margin-bottom: 0;
}

.workflow-list {
    display: grid;
    gap: 0.8rem;
    margin-top: 1.4rem;
}

.workflow-list div {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    display: flex;
    gap: 0.85rem;
    padding: 0.95rem 1rem;
}

.workflow-list i {
    color: var(--app-primary);
    font-size: 1.25rem;
}

.process-grid {
    display: grid;
    gap: 1rem;
}

.process-item {
    padding: 1.3rem;
}

.process-item span {
    color: var(--app-blue);
    display: inline-block;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.location-panel {
    aspect-ratio: 1;
    background:
        radial-gradient(circle at center, rgba(15, 118, 110, 0.24), rgba(15, 118, 110, 0.06) 34%, transparent 35%),
        linear-gradient(135deg, #eefbf6, #eef5ff);
    border: 1px solid var(--app-border);
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.1);
    min-height: 320px;
    overflow: hidden;
    position: relative;
}

.map-pulse {
    border: 2px solid rgba(15, 118, 110, 0.36);
    border-radius: 50%;
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
}

.pulse-a {
    height: 52%;
    width: 52%;
}

.pulse-b {
    height: 78%;
    width: 78%;
}

.map-center {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14);
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    left: 50%;
    padding: 1rem;
    position: absolute;
    text-align: center;
    top: 50%;
    transform: translate(-50%, -50%);
}

.map-center i {
    color: #e11d48;
    font-size: 1.8rem;
}

.map-center span {
    color: var(--app-muted);
    font-size: 0.85rem;
}

.service-chip {
    background: #ffffff;
    border: 1px solid var(--app-border);
    border-radius: 999px;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
    color: var(--app-ink);
    font-weight: 800;
    padding: 0.65rem 0.85rem;
    position: absolute;
}

.chip-one {
    right: 12%;
    top: 22%;
}

.chip-two {
    bottom: 18%;
    left: 10%;
}

.mini-metric {
    padding: 1rem;
}

.mini-metric strong,
.mini-metric span {
    display: block;
}

.mini-metric strong {
    font-size: 1.15rem;
}

.mini-metric span {
    color: var(--app-muted);
}

.plan-band {
    background: linear-gradient(135deg, #0b4f4a, #173b57 60%, #20314f);
    color: #ffffff;
}

.plan-band p {
    color: rgba(255, 255, 255, 0.76);
    max-width: 720px;
}

.pricing-card {
    color: var(--app-ink);
    padding: 1.5rem;
}

.pricing-label {
    color: var(--app-primary-dark);
    font-weight: 800;
}

.pricing-amount {
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 900;
    margin: 0.65rem 0;
}

.pricing-amount span {
    color: var(--app-muted);
    font-size: 1rem;
    font-weight: 700;
}

.pricing-card ul {
    display: grid;
    gap: 0.65rem;
    list-style: none;
    margin: 1.3rem 0;
    padding: 0;
}

.pricing-card i {
    color: var(--app-primary);
}

.auction-board {
    display: grid;
    gap: 0.8rem;
    padding: 1rem;
}

.auction-row {
    align-items: center;
    background: #f7fafc;
    border-radius: 8px;
    display: grid;
    gap: 0.75rem;
    grid-template-columns: 1fr auto auto;
    padding: 1rem;
}

.auction-row.active {
    background: #ecfdf7;
    border: 1px solid rgba(15, 118, 110, 0.18);
}

.auction-row span {
    color: var(--app-muted);
}

.auction-row strong {
    font-size: 1.2rem;
}

.auction-row i {
    color: var(--app-primary);
    font-size: 1.25rem;
}

.news-card {
    height: 100%;
    padding: 1.25rem;
}

.news-card > span {
    color: var(--app-blue);
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
}

.news-card p {
    color: var(--app-muted);
    margin-bottom: 0;
}

.home-news-card img {
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    display: block;
    margin-bottom: 1rem;
    object-fit: cover;
    width: 100%;
}

.home-news-card a {
    color: var(--app-primary-dark);
    display: inline-flex;
    font-weight: 850;
    margin-top: 0.85rem;
    text-decoration: none;
}

.public-news-main {
    display: grid;
    gap: 1.25rem;
    margin: 0 auto;
    max-width: 1180px;
}

.news-list-hero {
    align-items: center;
    display: flex;
    gap: 1.5rem;
    justify-content: space-between;
    padding: 2rem;
}

.news-list-hero h1 {
    color: var(--app-ink);
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.05;
    margin: 0.9rem 0;
    max-width: 780px;
}

.news-list-hero p {
    color: var(--app-muted);
    margin: 0;
    max-width: 720px;
}

.news-card-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.news-list-card {
    background: #ffffff;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.news-list-card img {
    aspect-ratio: 16 / 9;
    background: #eef3f8;
    display: block;
    object-fit: cover;
    width: 100%;
}

.news-list-card > div {
    padding: 1.1rem;
}

.news-list-card span,
.news-detail-meta span {
    color: var(--app-primary-dark);
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 850;
    text-transform: uppercase;
}

.news-list-card h2 {
    color: var(--app-ink);
    font-size: 1.25rem;
    font-weight: 900;
    margin: 0.45rem 0;
}

.news-list-card p {
    color: var(--app-muted);
}

.news-card-footer {
    align-items: center;
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
}

.news-card-footer small {
    color: var(--app-muted);
    font-weight: 750;
}

.news-detail-article {
    overflow: hidden;
}

.news-detail-image {
    aspect-ratio: 21 / 9;
    background: #eef3f8;
    display: block;
    object-fit: cover;
    width: 100%;
}

.news-detail-body {
    padding: clamp(1.25rem, 4vw, 3rem);
}

.news-detail-meta {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.news-detail-meta small {
    color: var(--app-muted);
    font-weight: 750;
}

.news-detail-article h1 {
    color: var(--app-ink);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 950;
    letter-spacing: 0;
    line-height: 1.05;
    max-width: 900px;
}

.news-detail-content {
    color: var(--app-ink);
    font-size: 1.05rem;
    line-height: 1.85;
    max-width: 880px;
}

.news-table-title {
    align-items: center;
    display: flex;
    gap: 0.75rem;
    min-width: 300px;
}

.news-table-title img,
.news-form-preview {
    background: #eef3f8;
    border-radius: 8px;
    object-fit: cover;
}

.news-table-title img {
    height: 64px;
    width: 96px;
}

.news-table-title strong,
.news-table-title small {
    display: block;
}

.news-table-title strong {
    color: var(--app-ink);
    font-weight: 900;
}

.news-table-title small {
    color: var(--app-muted);
}

.news-form-preview {
    border: 1px solid var(--app-border);
    height: 120px;
    width: 190px;
}

.benefit-grid {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.benefit-item {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    display: flex;
    gap: 0.8rem;
    padding: 1rem;
}

.benefit-item i {
    color: var(--app-primary);
    font-size: 1.3rem;
}

.benefit-item span {
    font-weight: 800;
}

.app-footer {
    background: #101828;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.95rem;
}

.footer-brand {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 800;
    text-decoration: none;
}

.footer-copy {
    max-width: 420px;
}

.footer-title {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.footer-list {
    display: grid;
    gap: 0.65rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-list a {
    color: rgba(255, 255, 255, 0.76);
    text-decoration: none;
}

.footer-list a:hover {
    color: #ffffff;
}

.footer-list i {
    color: var(--app-accent);
    margin-right: 0.35rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 1.25rem;
}

.app-shell {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    min-height: calc(100vh - 66px);
}

.app-sidebar {
    background: var(--app-panel);
    border-right: 1px solid var(--app-border);
    padding: 1.25rem;
}

.sidebar-title {
    color: var(--app-muted);
    font-size: 0.76rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.app-sidebar .nav-link {
    align-items: center;
    border-radius: 8px;
    color: var(--app-ink);
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
    padding: 0.75rem 0.85rem;
}

.app-sidebar .nav-link:hover,
.app-sidebar .nav-link:focus {
    background: #e6fffb;
    color: var(--app-primary-dark);
}

.app-main {
    min-width: 0;
    padding: 1.5rem;
}

.content-panel,
.auth-panel {
    background: var(--app-panel);
    border: 1px solid var(--app-border);
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.auth-wrap {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: calc(100vh - 186px);
    padding: 1.5rem;
}

.auth-panel {
    max-width: 520px;
    padding: 1.5rem;
    width: 100%;
}

@media (max-width: 991.98px) {
    .app-navbar .navbar-nav {
        align-items: stretch !important;
        padding-top: 1rem;
    }

    .language-switcher {
        width: max-content;
    }

    .hero-overlay {
        background: linear-gradient(90deg, rgba(6, 31, 45, 0.92) 0%, rgba(11, 79, 74, 0.78) 58%, rgba(6, 31, 45, 0.3) 100%);
    }

    .section-block {
        padding: 4rem 0;
    }

    .news-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .app-shell {
        display: block;
    }

    .app-sidebar {
        border-bottom: 1px solid var(--app-border);
        border-right: 0;
    }

    .app-sidebar .nav {
        display: grid;
        gap: 0.25rem;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .home-hero h1 {
        font-size: 2.35rem;
    }

    .hero-actions .btn,
    .hero-actions {
        width: 100%;
    }

    .hero-stats,
    .benefit-grid,
    .news-card-grid {
        grid-template-columns: 1fr;
    }

    .news-list-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .news-detail-image {
        aspect-ratio: 16 / 9;
    }

    .auction-row {
        grid-template-columns: 1fr;
    }

    .app-main {
        padding: 1rem;
    }

    .app-sidebar .nav {
        grid-template-columns: 1fr;
    }
}

/* Homepage refresh: light, mobile-first B2B marketplace styling. */
.app-navbar {
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--app-border);
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.07);
}

.app-navbar .navbar-brand,
.app-navbar .nav-link {
    color: var(--app-ink);
}

.app-navbar.navbar-dark .navbar-brand,
.app-navbar.navbar-dark .navbar-nav .nav-link {
    color: var(--app-ink);
}

.app-navbar .nav-link {
    font-weight: 500;
}

.app-navbar .nav-link:hover,
.app-navbar .nav-link:focus,
.app-navbar .nav-link.active,
.app-navbar.navbar-dark .navbar-nav .nav-link:hover,
.app-navbar.navbar-dark .navbar-nav .nav-link:focus,
.app-navbar.navbar-dark .navbar-nav .nav-link.active {
    color: var(--app-primary);
}

.app-navbar .text-white-50 {
    color: var(--app-muted) !important;
}

.app-navbar .btn-primary {
    background: var(--app-primary);
    border-color: var(--app-primary);
}

.app-navbar .btn-outline-primary {
    border-color: rgba(37, 99, 235, 0.3);
    color: var(--app-primary);
}

.app-navbar .navbar-toggler {
    border-color: var(--app-border);
}

.navbar-dark .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2830, 41, 59, 0.78%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.brand-mark {
    background: linear-gradient(135deg, var(--app-soft-blue), var(--app-soft-yellow));
    color: var(--app-primary);
}

.language-switcher {
    background: var(--app-soft-blue);
    border-color: rgba(37, 99, 235, 0.14);
}

.language-option {
    color: var(--app-muted);
    font-weight: 500;
}

.language-option.active {
    background: var(--app-primary);
    color: #ffffff;
}

.home-main {
    background: var(--app-bg);
}

.home-page .btn {
    border-radius: 8px;
    font-weight: 500;
    min-height: 44px;
}

.home-page .btn-primary {
    background: var(--app-primary);
    border-color: var(--app-primary);
}

.home-page .btn-outline-primary {
    background: #ffffff;
    border-color: rgba(37, 99, 235, 0.28);
    color: var(--app-primary);
}

.home-hero {
    background:
        linear-gradient(135deg, rgba(234, 242, 255, 0.86), rgba(255, 248, 214, 0.44) 46%, rgba(234, 251, 240, 0.72)),
        #ffffff;
    min-height: auto;
}

.hero-content {
    color: var(--app-ink);
}

.min-vh-hero {
    min-height: auto;
    padding-bottom: clamp(2rem, 5vw, 4rem);
    padding-top: clamp(2rem, 6vw, 4.5rem);
}

.home-hero .section-badge,
.section-badge {
    background: var(--app-soft-blue);
    border-color: rgba(37, 99, 235, 0.14);
    color: var(--app-primary);
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}

.home-hero h1 {
    color: var(--app-ink);
    font-size: clamp(2rem, 4.6vw, 4.1rem);
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.08;
    max-width: 680px;
}

.hero-lead {
    color: var(--app-muted);
    font-size: clamp(0.98rem, 1.6vw, 1.16rem);
    line-height: 1.7;
    max-width: 650px;
}

.hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 520px;
}

.hero-stats div {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--app-border);
    border-left: 3px solid var(--app-yellow);
    border-radius: 8px;
    padding: 0.8rem;
}

.hero-stats strong {
    color: var(--app-ink);
    font-size: 1.08rem;
    font-weight: 600;
}

.hero-stats span {
    color: var(--app-muted);
}

.hero-mobile-visual {
    display: flex;
    justify-content: center;
}

.mobile-shell {
    background: #ffffff;
    border: 1px solid var(--app-border);
    border-radius: 26px;
    box-shadow: 0 22px 54px rgba(37, 99, 235, 0.14);
    max-width: 350px;
    padding: 1rem;
    position: relative;
    width: 100%;
}

.mobile-shell::before {
    background: #cbd5e1;
    border-radius: 999px;
    content: "";
    height: 4px;
    left: 50%;
    position: absolute;
    top: 0.55rem;
    transform: translateX(-50%);
    width: 56px;
}

.mobile-status,
.mobile-search,
.mobile-listing,
.mobile-live-strip {
    align-items: center;
    display: flex;
}

.mobile-status {
    color: var(--app-ink);
    font-weight: 600;
    justify-content: space-between;
    margin-top: 0.8rem;
}

.mobile-search {
    background: var(--app-bg);
    border: 1px solid var(--app-border);
    border-radius: 999px;
    color: var(--app-muted);
    gap: 0.55rem;
    margin: 1rem 0;
    padding: 0.75rem 0.9rem;
}

.mobile-trade-grid {
    display: grid;
    gap: 0.65rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mobile-trade-card {
    border: 1px solid var(--app-border);
    border-radius: 8px;
    color: var(--app-ink);
    display: grid;
    gap: 0.35rem;
    min-height: 86px;
    padding: 0.75rem 0.55rem;
    place-items: center;
    text-align: center;
}

.mobile-trade-card i,
.trade-icon,
.classified-card i,
.feature-icon {
    color: var(--app-primary);
}

.mobile-trade-card strong,
.trade-card h3,
.classified-card h3,
.feature-card h3,
.process-item h3,
.news-card h3 {
    font-weight: 600;
}

.tone-blue {
    background: var(--app-soft-blue);
}

.tone-green {
    background: var(--app-soft-green);
}

.tone-yellow {
    background: var(--app-soft-yellow);
}

.mobile-live-strip {
    background: var(--app-soft-red);
    border: 1px solid rgba(239, 68, 68, 0.16);
    border-radius: 8px;
    color: var(--app-red);
    justify-content: space-between;
    margin: 0.8rem 0;
    padding: 0.75rem 0.85rem;
}

.mobile-live-strip strong {
    font-weight: 600;
}

.mobile-listing {
    background: #ffffff;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    gap: 0.7rem;
    margin-top: 0.65rem;
    padding: 0.75rem;
}

.mobile-listing strong,
.mobile-listing small {
    display: block;
}

.mobile-listing strong {
    font-weight: 600;
}

.mobile-listing small {
    color: var(--app-muted);
}

.listing-dot {
    background: var(--app-primary);
    border-radius: 999px;
    flex: 0 0 10px;
    height: 10px;
    width: 10px;
}

.listing-dot.green {
    background: var(--app-green);
}

.section-block {
    padding: clamp(3rem, 6vw, 4.75rem) 0;
}

.section-muted {
    background: #ffffff;
}

.section-heading h2,
.section-title,
.plan-band h2 {
    font-size: clamp(1.55rem, 3vw, 2.45rem);
    font-weight: 600;
    letter-spacing: 0;
}

.section-heading p,
.section-copy,
.plan-band p {
    color: var(--app-muted);
    font-size: 1rem;
    font-weight: 400;
}

.feature-card,
.process-item,
.news-card,
.pricing-card,
.auction-board,
.mini-metric,
.trade-card,
.classified-card {
    background: var(--app-panel);
    border: 1px solid var(--app-border);
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.045);
}

.feature-card:hover {
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.075);
}

.feature-icon {
    background: var(--app-soft-blue);
}

.trade-card,
.classified-card {
    height: 100%;
    padding: 1.25rem;
}

.trade-icon {
    align-items: center;
    border-radius: 8px;
    display: inline-flex;
    font-size: 1.45rem;
    height: 48px;
    justify-content: center;
    margin-bottom: 1rem;
    width: 48px;
}

.trade-card p,
.classified-card p,
.news-card p {
    color: var(--app-muted);
    margin-bottom: 0;
}

.trade-card.tone-blue .trade-icon {
    background: var(--app-soft-blue);
    color: var(--app-primary);
}

.trade-card.tone-green .trade-icon {
    background: var(--app-soft-green);
    color: var(--app-green);
}

.trade-card.tone-yellow .trade-icon {
    background: var(--app-soft-yellow);
    color: #a16207;
}

.live-note {
    align-items: center;
    background: var(--app-soft-red);
    border: 1px solid rgba(239, 68, 68, 0.14);
    border-radius: 8px;
    color: #991b1b;
    display: flex;
    gap: 0.6rem;
    margin-top: 1rem;
    padding: 0.9rem 1rem;
}

.plan-band {
    background: linear-gradient(135deg, var(--app-soft-yellow), #ffffff 58%, var(--app-soft-blue));
    color: var(--app-ink);
}

.plan-band p {
    color: var(--app-muted);
}

.pricing-card {
    border-color: rgba(250, 204, 21, 0.48);
}

.pricing-label {
    background: var(--app-soft-yellow);
    border-radius: 999px;
    color: #854d0e;
    display: inline-flex;
    font-weight: 500;
    padding: 0.4rem 0.7rem;
}

.pricing-amount {
    font-size: clamp(2.1rem, 4vw, 3.25rem);
    font-weight: 600;
}

.pricing-amount span {
    font-weight: 400;
}

.pricing-card i,
.auction-row i,
.benefit-item i {
    color: var(--app-green);
}

.auction-row.active {
    background: var(--app-soft-red);
    border-color: rgba(239, 68, 68, 0.18);
}

.auction-row.active i {
    color: var(--app-red);
}

.classified-section {
    background: #ffffff;
}

.classified-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.classified-card i {
    background: var(--app-soft-blue);
    border-radius: 8px;
    display: inline-flex;
    font-size: 1.35rem;
    height: 46px;
    justify-content: center;
    margin-bottom: 1rem;
    width: 46px;
}

.home-news-card a {
    color: var(--app-primary);
    font-weight: 500;
}

.benefit-item span,
.footer-brand,
.footer-title {
    font-weight: 600;
}

.app-footer {
    background: #0f172a;
}

@media (max-width: 991.98px) {
    .home-page .app-navbar .navbar-collapse {
        background: #ffffff;
        border-top: 1px solid var(--app-border);
        margin-top: 0.75rem;
        padding-bottom: 0.75rem;
    }

    .hero-mobile-visual {
        justify-content: flex-start;
    }

    .classified-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .home-hero h1 {
        font-size: 2rem;
    }

    .hero-actions,
    .hero-actions .btn {
        width: 100%;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .mobile-shell {
        border-radius: 20px;
        max-width: 100%;
    }

    .mobile-trade-grid {
        grid-template-columns: 1fr;
    }

    .section-heading {
        margin-bottom: 1.5rem;
        text-align: left;
    }

    .live-note {
        align-items: flex-start;
    }
}

/* SISO auth screens */
.auth-page {
    background:
        radial-gradient(circle at top left, rgba(234, 242, 255, 0.9), transparent 34rem),
        linear-gradient(135deg, #ffffff, var(--app-bg));
}

.auth-wrap-modern {
    min-height: calc(100vh - 150px);
    padding: clamp(1rem, 4vw, 3rem);
}

.auth-shell {
    background: #ffffff;
    border: 1px solid var(--app-border);
    border-radius: 16px;
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.08);
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1fr);
    max-width: 980px;
    overflow: hidden;
    width: 100%;
}

.auth-shell-wide {
    max-width: 1100px;
}

.auth-brand-panel {
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.94), rgba(22, 163, 74, 0.86)),
        var(--app-primary);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(1.5rem, 4vw, 2.5rem);
}

.auth-kicker {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 500;
    margin-bottom: 1rem;
    padding: 0.45rem 0.75rem;
}

.auth-brand-panel h1 {
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    font-weight: 600;
    line-height: 1.15;
}

.auth-brand-panel p {
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.75;
    margin: 1rem 0 1.5rem;
}

.auth-benefit-list {
    display: grid;
    gap: 0.75rem;
}

.auth-benefit-list span {
    align-items: center;
    display: flex;
    gap: 0.65rem;
    font-weight: 500;
}

.auth-benefit-list i {
    background: rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    display: inline-flex;
    height: 34px;
    justify-content: center;
    padding-top: 0.45rem;
    width: 34px;
}

.auth-shell .auth-panel {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    max-width: none;
    padding: clamp(1.5rem, 4vw, 2.4rem);
}

.auth-form-heading {
    margin-bottom: 1.4rem;
}

.auth-form-heading h1 {
    color: var(--app-ink);
    font-size: clamp(1.7rem, 3vw, 2.15rem);
    font-weight: 600;
    margin: 0.25rem 0 0.45rem;
}

.auth-form-heading p {
    color: var(--app-muted);
    line-height: 1.65;
    margin: 0;
}

.auth-panel .form-label {
    color: var(--app-ink);
    font-weight: 500;
}

.auth-panel .form-control,
.auth-panel .form-select {
    border-color: var(--app-border);
    border-radius: 8px;
    min-height: 48px;
}

.input-icon-field {
    position: relative;
}

.input-icon-field i {
    color: var(--app-muted);
    left: 0.9rem;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.input-icon-field .form-control {
    padding-left: 2.45rem;
}

.auth-panel a {
    color: var(--app-primary);
    font-weight: 500;
}

@media (max-width: 767.98px) {
    .auth-shell,
    .auth-shell-wide {
        grid-template-columns: 1fr;
    }

    .auth-brand-panel {
        padding: 1.4rem;
    }
}

.dashboard-page {
    background: #eef3f8;
}

.dashboard-shell {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    min-height: 100vh;
}

.dashboard-sidebar {
    background: #0f172a;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    grid-column: 1;
    grid-row: 1 / span 2;
    min-height: 100vh;
    padding: 1.1rem;
    position: sticky;
    top: 0;
}

.dashboard-brand {
    align-items: center;
    color: #ffffff;
    display: inline-flex;
    font-size: 1.1rem;
    font-weight: 800;
    gap: 0.65rem;
    margin-bottom: 1.5rem;
    text-decoration: none;
}

.dashboard-close {
    display: none;
    position: absolute;
    right: 1rem;
    top: 1rem;
}

.sidebar-section-label {
    color: rgba(255, 255, 255, 0.52);
    font-size: 0.76rem;
    font-weight: 800;
    margin: 0.4rem 0 0.8rem;
    text-transform: uppercase;
}

.dashboard-nav {
    display: grid;
    gap: 0.35rem;
}

.dashboard-nav a {
    align-items: center;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.74);
    display: flex;
    font-weight: 700;
    gap: 0.75rem;
    padding: 0.78rem 0.85rem;
    text-decoration: none;
}

.dashboard-nav a:hover,
.dashboard-nav a.active {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.dashboard-nav i {
    color: var(--app-accent);
    font-size: 1.08rem;
}

.dashboard-sidebar-footer {
    margin-top: auto;
}

.dashboard-topbar {
    align-items: center;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--app-border);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 1rem 1.35rem;
    position: sticky;
    top: 0;
    z-index: 5;
    backdrop-filter: blur(12px);
    grid-column: 2;
}

.dashboard-topbar h1 {
    font-size: 1.35rem;
    font-weight: 850;
    margin: 0;
}

.dashboard-topbar p {
    color: var(--app-muted);
    margin: 0.2rem 0 0;
}

.dashboard-top-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
}

.dashboard-language {
    background: #edf4f2;
    border-color: var(--app-border);
}

.dashboard-language .language-option {
    color: var(--app-muted);
}

.dashboard-language .language-option.active {
    background: var(--app-primary);
    color: #ffffff;
}

.icon-btn,
.notification-btn {
    align-items: center;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    display: inline-flex;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.icon-btn {
    background: #ffffff;
    color: var(--app-ink);
}

.dashboard-menu-toggle {
    display: none;
}

.notification-btn {
    background: #ffffff;
    color: var(--app-ink);
    position: relative;
}

.notification-btn span {
    align-items: center;
    background: #dc2626;
    border: 2px solid #ffffff;
    border-radius: 999px;
    color: #ffffff;
    display: flex;
    font-size: 0.65rem;
    font-weight: 800;
    height: 20px;
    justify-content: center;
    min-width: 20px;
    position: absolute;
    right: -5px;
    top: -7px;
}

.user-chip {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    display: flex;
    gap: 0.65rem;
    padding: 0.45rem 0.65rem;
}

.user-avatar {
    align-items: center;
    background: linear-gradient(135deg, var(--app-primary), var(--app-blue));
    border-radius: 8px;
    color: #ffffff;
    display: flex;
    font-weight: 900;
    height: 36px;
    justify-content: center;
    width: 36px;
}

.user-chip strong,
.user-chip span {
    display: block;
}

.user-chip strong {
    font-size: 0.9rem;
}

.user-chip span {
    color: var(--app-muted);
    font-size: 0.78rem;
}

.dashboard-main {
    display: grid;
    gap: 1.25rem;
    grid-column: 2;
    padding: 1.35rem;
}

.dashboard-card-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-stat-card {
    background: #ffffff;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
    display: flex;
    gap: 0.9rem;
    min-height: 138px;
    padding: 1.1rem;
}

.dashboard-stat-card .stat-icon {
    align-items: center;
    border-radius: 8px;
    display: flex;
    flex: 0 0 48px;
    font-size: 1.35rem;
    height: 48px;
    justify-content: center;
}

.dashboard-stat-card span,
.dashboard-stat-card strong,
.dashboard-stat-card small {
    display: block;
}

.dashboard-stat-card span {
    color: var(--app-muted);
    font-weight: 700;
}

.dashboard-stat-card strong {
    color: var(--app-ink);
    font-size: 1.75rem;
    font-weight: 900;
    line-height: 1.2;
    margin: 0.2rem 0;
}

.dashboard-stat-card small {
    color: var(--app-muted);
    font-weight: 650;
}

.tone-teal .stat-icon {
    background: #dffcf4;
    color: #0f766e;
}

.tone-blue .stat-icon {
    background: #dbeafe;
    color: #1d4ed8;
}

.tone-green .stat-icon,
.tone-success .stat-icon {
    background: #dcfce7;
    color: #15803d;
}

.tone-amber .stat-icon {
    background: #fef3c7;
    color: #b45309;
}

.tone-purple .stat-icon {
    background: #ede9fe;
    color: #6d28d9;
}

.tone-red .stat-icon {
    background: #fee2e2;
    color: #dc2626;
}

.dashboard-panel {
    background: #ffffff;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
    overflow: hidden;
}

.panel-heading {
    align-items: center;
    border-bottom: 1px solid var(--app-border);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 1rem 1.15rem;
}

.panel-heading h2 {
    font-size: 1.1rem;
    font-weight: 850;
    margin: 0;
}

.panel-heading p {
    color: var(--app-muted);
    margin: 0.2rem 0 0;
}

.dashboard-table {
    margin-bottom: 0;
}

.dashboard-table th {
    color: var(--app-muted);
    font-size: 0.78rem;
    text-transform: uppercase;
}

.dashboard-table th,
.dashboard-table td {
    padding: 0.95rem 1.15rem;
}

.status-pill {
    background: #ecfdf7;
    border: 1px solid rgba(15, 118, 110, 0.2);
    border-radius: 999px;
    color: var(--app-primary-dark);
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 0.3rem 0.65rem;
}

.status-accepted {
    background: #dbeafe;
    border-color: rgba(29, 78, 216, 0.22);
    color: #1d4ed8;
}

.status-rejected,
.status-cancelled {
    background: #fee2e2;
    border-color: rgba(220, 38, 38, 0.22);
    color: #b91c1c;
}

.status-completed {
    background: #dcfce7;
    border-color: rgba(21, 128, 61, 0.24);
    color: #166534;
}

.status-pending {
    background: #fef3c7;
    border-color: rgba(180, 83, 9, 0.22);
    color: #92400e;
}

.request-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.request-table a {
    color: var(--app-primary-dark);
    font-weight: 800;
    text-decoration: none;
}

.request-table a:hover {
    text-decoration: underline;
}

.notification-btn {
    text-decoration: none;
}

.notification-list {
    display: grid;
    gap: 0.8rem;
    padding: 1rem;
}

.notification-item {
    align-items: flex-start;
    background: #ffffff;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    display: flex;
    gap: 0.9rem;
    padding: 1rem;
}

.notification-item.unread {
    background: #f0fdfa;
    border-color: rgba(15, 118, 110, 0.22);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.notification-icon {
    align-items: center;
    background: #ecfdf7;
    border-radius: 8px;
    color: var(--app-primary-dark);
    display: flex;
    flex: 0 0 44px;
    height: 44px;
    justify-content: center;
}

.notification-content {
    min-width: 0;
    width: 100%;
}

.notification-content span {
    color: var(--app-primary-dark);
    display: inline-block;
    font-size: 0.76rem;
    font-weight: 850;
    text-transform: uppercase;
}

.notification-content h3 {
    color: var(--app-ink);
    font-size: 1.05rem;
    font-weight: 900;
    margin: 0.15rem 0 0;
}

.notification-content p {
    color: var(--app-muted);
    margin: 0.55rem 0 0.75rem;
}

.notification-content small {
    color: var(--app-muted);
    font-weight: 750;
}

.notification-admin-panel {
    margin-bottom: 1rem;
}

.service-request-list {
    display: grid;
    gap: 1rem;
}

.service-request-card {
    background: #ffffff;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    padding: 1.1rem;
}

.service-request-card h3 {
    color: var(--app-ink);
    font-size: 1.2rem;
    font-weight: 850;
    margin-bottom: 0.45rem;
}

.service-request-card p {
    color: var(--app-muted);
    margin-bottom: 0.45rem;
}

.service-assignment-box {
    background: #f8fafc;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    min-width: 240px;
    padding: 0.9rem;
}

.service-assignment-box span,
.service-assignment-box strong,
.service-assignment-box small,
.service-assignment-box a {
    display: block;
}

.service-assignment-box span {
    color: var(--app-muted);
    font-size: 0.76rem;
    font-weight: 850;
    text-transform: uppercase;
}

.service-assignment-box strong {
    color: var(--app-ink);
    font-weight: 900;
    margin-top: 0.25rem;
}

.service-assignment-box small {
    color: var(--app-muted);
    margin-top: 0.2rem;
}

.service-assignment-box a {
    color: var(--app-primary-dark);
    font-weight: 800;
    margin-top: 0.45rem;
    text-decoration: none;
}

.service-timeline {
    display: grid;
    gap: 0.6rem;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-top: 1.15rem;
}

.service-timeline div {
    color: var(--app-muted);
    font-size: 0.78rem;
    font-weight: 800;
    position: relative;
    text-align: center;
}

.service-timeline div::before {
    background: #e2e8f0;
    content: "";
    height: 3px;
    left: -50%;
    position: absolute;
    right: 50%;
    top: 10px;
    z-index: 0;
}

.service-timeline div:first-child::before {
    display: none;
}

.service-timeline div.done::before {
    background: var(--app-primary);
}

.service-timeline span {
    background: #e2e8f0;
    border: 3px solid #ffffff;
    border-radius: 999px;
    box-shadow: 0 0 0 1px #cbd5e1;
    display: block;
    height: 22px;
    margin: 0 auto 0.45rem;
    position: relative;
    width: 22px;
    z-index: 1;
}

.service-timeline .done span {
    background: var(--app-primary);
    box-shadow: 0 0 0 1px rgba(15, 118, 110, 0.32);
}

.service-timeline small {
    display: block;
}

.service-timeline-compact {
    gap: 0.35rem;
    margin-top: 0.8rem;
    max-width: 440px;
}

.service-timeline-compact div {
    font-size: 0.68rem;
}

.service-timeline-compact span {
    height: 16px;
    margin-bottom: 0.25rem;
    width: 16px;
}

.service-timeline-compact div::before {
    top: 7px;
}

.subscription-plan-layout {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
}

.subscription-plan-card,
.subscription-status-panel,
.payment-placeholder {
    background: #ffffff;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
    padding: 1.35rem;
}

.subscription-plan-card {
    border-top: 4px solid var(--app-primary);
}

.plan-badge {
    background: #ecfdf7;
    border: 1px solid rgba(15, 118, 110, 0.2);
    border-radius: 999px;
    color: var(--app-primary-dark);
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 850;
    margin-bottom: 1rem;
    padding: 0.35rem 0.75rem;
}

.subscription-plan-card h2,
.subscription-status-panel h3,
.payment-placeholder h3 {
    color: var(--app-ink);
    font-size: 1.35rem;
    font-weight: 900;
}

.plan-price {
    color: var(--app-ink);
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 950;
    letter-spacing: 0;
    line-height: 1;
    margin: 0.8rem 0;
}

.plan-price span {
    color: var(--app-muted);
    font-size: 1rem;
    font-weight: 800;
}

.subscription-plan-card p,
.subscription-status-panel p,
.payment-placeholder p {
    color: var(--app-muted);
}

.plan-feature-list {
    display: grid;
    gap: 0.65rem;
    list-style: none;
    margin: 1.25rem 0;
    padding: 0;
}

.plan-feature-list li {
    align-items: center;
    color: var(--app-ink);
    display: flex;
    font-weight: 750;
    gap: 0.55rem;
}

.plan-feature-list i {
    color: var(--app-primary);
}

.checkout-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.46fr);
}

.placeholder-gateway-box {
    align-items: center;
    background: #f8fafc;
    border: 1px dashed #94a3b8;
    border-radius: 8px;
    color: var(--app-muted);
    display: flex;
    font-weight: 850;
    gap: 0.75rem;
    justify-content: center;
    min-height: 140px;
    padding: 1rem;
    text-align: center;
}

.placeholder-gateway-box i {
    color: var(--app-primary);
    font-size: 1.8rem;
}

.admin-subscription-table strong {
    color: var(--app-ink);
}

.homepage-ad-strip {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 3rem;
}

.homepage-banner-ad,
.featured-ad-card {
    background: #ffffff;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
    color: var(--app-ink);
    overflow: hidden;
    text-decoration: none;
}

.homepage-banner-ad {
    align-items: center;
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    min-height: 130px;
}

.homepage-banner-ad img,
.featured-ad-card img,
.ad-table-title img,
.ad-preview-panel img,
.ad-form-preview {
    background: #eef3f8;
    object-fit: cover;
}

.homepage-banner-ad img {
    height: 100%;
    width: 100%;
}

.homepage-banner-ad span,
.featured-ad-card span {
    display: block;
    padding: 1rem;
}

.homepage-banner-ad strong,
.homepage-banner-ad small,
.featured-ad-card strong,
.featured-ad-card small,
.featured-ad-card em {
    display: block;
}

.homepage-banner-ad strong,
.featured-ad-card strong {
    color: var(--app-ink);
    font-size: 1.05rem;
    font-weight: 900;
}

.homepage-banner-ad small,
.featured-ad-card small,
.featured-ad-card em {
    color: var(--app-muted);
    font-style: normal;
    margin-top: 0.25rem;
}

.featured-ad-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 1rem 0;
}

.featured-ad-card img {
    aspect-ratio: 16 / 9;
    width: 100%;
}

.ad-popup-modal .modal-content {
    border: 0;
    border-radius: 8px;
    overflow: hidden;
}

.ad-popup-modal img {
    aspect-ratio: 16 / 9;
    background: #eef3f8;
    object-fit: cover;
    width: 100%;
}

.ad-popup-close {
    background-color: #ffffff;
    border-radius: 999px;
    opacity: 1;
    padding: 0.65rem;
    position: absolute;
    right: 0.75rem;
    top: 0.75rem;
    z-index: 2;
}

.ad-popup-modal h2 {
    color: var(--app-ink);
    font-size: 1.45rem;
    font-weight: 900;
}

.ad-popup-modal p {
    color: var(--app-muted);
}

.ad-table-title {
    align-items: center;
    display: flex;
    gap: 0.75rem;
    min-width: 260px;
}

.ad-table-title img {
    border-radius: 8px;
    height: 64px;
    width: 86px;
}

.ad-table-title strong,
.ad-table-title small {
    display: block;
}

.ad-table-title strong {
    color: var(--app-ink);
    font-weight: 900;
}

.ad-table-title small {
    color: var(--app-muted);
}

.ad-form-preview {
    border: 1px solid var(--app-border);
    border-radius: 8px;
    height: 120px;
    width: 180px;
}

.ad-detail-layout {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.44fr);
}

.ad-preview-panel img {
    aspect-ratio: 16 / 9;
    border-radius: 8px 8px 0 0;
    width: 100%;
}

.ad-preview-panel h2 {
    color: var(--app-ink);
    font-size: 1.6rem;
    font-weight: 900;
    margin-top: 0.9rem;
}

.ad-preview-panel p,
.ad-metrics-panel h3 {
    color: var(--app-muted);
}

.ad-metrics-panel {
    padding: 1rem;
}

.ad-metrics-panel h3 {
    color: var(--app-ink);
    font-size: 1.15rem;
    font-weight: 900;
}

.ad-metric-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 1rem;
}

.ad-metric-grid div {
    background: #f8fafc;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    padding: 0.8rem;
}

.ad-metric-grid span,
.ad-metric-grid strong {
    display: block;
}

.ad-metric-grid span {
    color: var(--app-muted);
    font-size: 0.75rem;
    font-weight: 850;
    text-transform: uppercase;
}

.ad-metric-grid strong {
    color: var(--app-ink);
    margin-top: 0.2rem;
}

.dashboard-mobile-backdrop {
    background: rgba(15, 23, 42, 0.54);
    display: none;
    inset: 0;
    position: fixed;
    z-index: 20;
}

@media (max-width: 1199.98px) {
    .dashboard-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .dashboard-shell {
        display: block;
    }

    .dashboard-sidebar {
        bottom: 0;
        left: 0;
        max-width: 310px;
        position: fixed;
        top: 0;
        transform: translateX(-105%);
        transition: transform 180ms ease;
        width: 86vw;
        z-index: 30;
    }

    .dashboard-sidebar-open .dashboard-sidebar {
        transform: translateX(0);
    }

    .dashboard-sidebar-open .dashboard-mobile-backdrop {
        display: block;
    }

    .dashboard-close,
    .dashboard-menu-toggle {
        display: inline-flex;
    }

    .dashboard-topbar {
        align-items: flex-start;
    }

    .dashboard-top-actions {
        flex: 1 1 100%;
        justify-content: flex-start;
        margin-left: 56px;
    }

    .subscription-plan-layout,
    .checkout-grid,
    .ad-detail-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .dashboard-card-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-topbar {
        flex-wrap: wrap;
    }

    .panel-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-table {
        min-width: 720px;
    }

    .homepage-ad-strip,
    .featured-ad-grid {
        grid-template-columns: 1fr;
    }

    .homepage-banner-ad {
        grid-template-columns: 1fr;
    }

    .homepage-banner-ad img {
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 575.98px) {
    .dashboard-main,
    .dashboard-topbar {
        padding: 1rem;
    }

    .user-chip {
        width: 100%;
    }
}

.product-form-panel .form-label,
.product-filter-form .form-label {
    color: var(--app-ink);
    font-weight: 750;
}

.image-preview-grid,
.existing-images,
.product-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.image-preview-grid img,
.existing-images img,
.product-thumbs img {
    aspect-ratio: 1;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    object-fit: cover;
}

.image-preview-grid img,
.existing-images img {
    height: 86px;
    width: 86px;
}

.product-card-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-card {
    background: #ffffff;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
    overflow: hidden;
}

.product-card > img {
    aspect-ratio: 16 / 10;
    background: #eef3f8;
    display: block;
    object-fit: cover;
    width: 100%;
}

.product-card-body {
    padding: 1rem;
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.product-meta span {
    background: #ecfdf7;
    border: 1px solid rgba(15, 118, 110, 0.18);
    border-radius: 999px;
    color: var(--app-primary-dark);
    font-size: 0.76rem;
    font-weight: 850;
    padding: 0.28rem 0.6rem;
}

.product-card h3 {
    font-size: 1.1rem;
    font-weight: 850;
    margin: 0.8rem 0 0.35rem;
}

.product-card p {
    color: var(--app-muted);
    margin-bottom: 0.85rem;
}

.product-price-row {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.product-price-row strong {
    color: var(--app-ink);
    font-size: 1.12rem;
}

.product-price-row small {
    color: var(--app-muted);
    font-weight: 750;
}

.product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.empty-state {
    align-items: center;
    color: var(--app-muted);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 280px;
    padding: 2rem;
    text-align: center;
}

.empty-state i {
    color: var(--app-primary);
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
}

.empty-state h3 {
    color: var(--app-ink);
    font-size: 1.25rem;
    font-weight: 850;
}

.product-detail-layout {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.product-gallery,
.product-detail-panel {
    padding: 1rem;
}

.product-hero-image {
    aspect-ratio: 4 / 3;
    background: #eef3f8;
    border-radius: 8px;
    display: block;
    object-fit: cover;
    width: 100%;
}

.product-thumbs {
    margin-top: 0.85rem;
}

.product-thumbs img {
    cursor: pointer;
    height: 72px;
    opacity: 0.78;
    width: 72px;
}

.product-thumbs img.active,
.product-thumbs img:hover {
    border-color: var(--app-primary);
    opacity: 1;
}

.product-detail-panel h2 {
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    font-weight: 900;
}

.product-detail-description {
    color: var(--app-muted);
    line-height: 1.75;
}

.product-detail-grid {
    display: grid;
    gap: 0.8rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 1.25rem 0;
}

.product-detail-grid div,
.contact-box {
    background: #f8fafc;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    padding: 0.9rem;
}

.product-detail-grid span,
.product-detail-grid strong {
    display: block;
}

.product-detail-grid span {
    color: var(--app-muted);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.product-detail-grid strong {
    color: var(--app-ink);
    margin-top: 0.25rem;
}

.contact-box h3 {
    font-size: 1.1rem;
    font-weight: 850;
}

.contact-box p {
    color: var(--app-muted);
}

@media (max-width: 1199.98px) {
    .product-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .product-detail-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .product-card-grid,
    .product-detail-grid {
        grid-template-columns: 1fr;
    }

    .service-assignment-box {
        min-width: 100%;
    }

    .service-timeline {
        grid-template-columns: 1fr;
    }

    .service-timeline div {
        align-items: center;
        display: flex;
        gap: 0.6rem;
        text-align: left;
    }

    .service-timeline div::before {
        bottom: 50%;
        height: auto;
        left: 10px;
        right: auto;
        top: -50%;
        width: 3px;
    }

    .service-timeline span {
        margin: 0;
    }
}

.auction-card-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.auction-card .product-meta span:first-child {
    background: #dcfce7;
    border-color: rgba(21, 128, 61, 0.24);
    color: #166534;
}

.auction-price-line {
    background: #f8fafc;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    margin-top: 0.9rem;
    padding: 0.85rem;
}

.auction-price-line small,
.auction-price-line strong {
    display: block;
}

.auction-price-line small {
    color: var(--app-muted);
    font-weight: 800;
    text-transform: uppercase;
}

.auction-price-line strong {
    font-size: 1.35rem;
    font-weight: 900;
}

.auction-countdown {
    background: #fff7ed;
    border: 1px solid rgba(245, 158, 11, 0.26);
    border-radius: 8px;
    color: #9a3412;
    display: block;
    font-weight: 900;
    margin-top: 0.75rem;
    padding: 0.75rem;
    text-align: center;
}

.auction-countdown.ended {
    background: #fee2e2;
    border-color: rgba(220, 38, 38, 0.24);
    color: #b91c1c;
}

.auction-detail-layout {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.85fr);
}

.auction-detail-panel {
    padding: 1.25rem;
}

.auction-detail-panel h2 {
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    font-weight: 900;
}

.auction-detail-grid {
    display: grid;
    gap: 0.8rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 1.2rem;
}

.auction-detail-grid div {
    background: #f8fafc;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    padding: 0.9rem;
}

.auction-detail-grid span,
.auction-detail-grid strong {
    display: block;
}

.auction-detail-grid span {
    color: var(--app-muted);
    font-size: 0.78rem;
    font-weight: 850;
    text-transform: uppercase;
}

.auction-detail-grid strong {
    color: var(--app-ink);
    margin-top: 0.25rem;
}

.bid-form {
    background: #f8fafc;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    padding: 1rem;
}

@media (max-width: 1199.98px) {
    .auction-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .auction-detail-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .auction-card-grid,
    .auction-detail-grid {
        grid-template-columns: 1fr;
    }
}

/* Hardening pass: keep dense dashboard controls readable on small screens. */
.dashboard-panel,
.content-panel,
.product-card,
.auction-card {
    min-width: 0;
}

.request-actions form,
.product-actions form {
    display: inline-flex;
}

@media (max-width: 767.98px) {
    .dashboard-topbar {
        gap: 0.75rem;
    }

    .dashboard-topbar h1 {
        font-size: 1.12rem;
        line-height: 1.25;
    }

    .dashboard-topbar p {
        font-size: 0.88rem;
    }

    .dashboard-top-actions {
        margin-left: 0;
        width: 100%;
    }

    .request-actions,
    .product-actions,
    .hero-actions,
    .filter-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .request-actions .btn,
    .product-actions .btn,
    .hero-actions .btn,
    .filter-actions .btn {
        width: 100%;
    }
}

/* Dashboard UI refresh: SISO light system with blue, green, yellow and red accents. */
.dashboard-page {
    --dashboard-accent: var(--app-primary);
    --dashboard-accent-soft: var(--app-soft-blue);
    background: #f8fafc;
    color: var(--app-ink);
}

.dashboard-role-dealer {
    --dashboard-accent: var(--app-primary);
    --dashboard-accent-soft: var(--app-soft-blue);
}

.dashboard-role-distributor {
    --dashboard-accent: var(--app-green);
    --dashboard-accent-soft: var(--app-soft-green);
}

.dashboard-role-service-center {
    --dashboard-accent: #ca8a04;
    --dashboard-accent-soft: var(--app-soft-yellow);
}

.dashboard-role-advertiser {
    --dashboard-accent: var(--app-red);
    --dashboard-accent-soft: var(--app-soft-red);
}

.dashboard-role-admin {
    --dashboard-accent: var(--app-primary);
    --dashboard-accent-soft: var(--app-soft-blue);
}

.dashboard-shell {
    grid-template-columns: 300px minmax(0, 1fr);
}

.dashboard-sidebar {
    background: #ffffff;
    border-right: 1px solid var(--app-border);
    color: var(--app-ink);
    box-shadow: 8px 0 30px rgba(15, 23, 42, 0.04);
}

.dashboard-brand {
    color: var(--app-ink);
    font-weight: 600;
}

.dashboard-sidebar .brand-mark {
    background: linear-gradient(135deg, var(--app-soft-blue), var(--app-soft-yellow));
    color: var(--dashboard-accent);
}

.sidebar-section-label {
    color: var(--app-muted);
    font-weight: 500;
    letter-spacing: 0;
}

.dashboard-nav a {
    color: var(--app-muted);
    font-weight: 500;
}

.dashboard-nav a:hover,
.dashboard-nav a.active {
    background: var(--dashboard-accent-soft);
    color: var(--app-ink);
}

.dashboard-nav a.active {
    box-shadow: inset 3px 0 0 var(--dashboard-accent);
}

.dashboard-nav i {
    color: var(--dashboard-accent);
}

.dashboard-sidebar-footer .btn {
    border-color: rgba(37, 99, 235, 0.28);
    color: var(--dashboard-accent);
    font-weight: 500;
}

.dashboard-sidebar-footer .btn:hover {
    background: var(--dashboard-accent);
    color: #ffffff;
}

.dashboard-topbar {
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.04);
}

.dashboard-topbar h1 {
    font-weight: 600;
}

.dashboard-topbar p,
.dashboard-stat-card span,
.dashboard-stat-card small,
.panel-heading p,
.dashboard-table th,
.user-chip span {
    font-weight: 400;
}

.dashboard-language {
    background: var(--dashboard-accent-soft);
}

.dashboard-language .language-option.active,
.user-avatar {
    background: var(--dashboard-accent);
}

.notification-btn span {
    background: var(--app-red);
    font-weight: 500;
}

.user-chip strong {
    font-weight: 600;
}

.dashboard-main {
    gap: 1rem;
    padding: 1.5rem;
}

.dashboard-card-grid {
    gap: 1rem;
}

.dashboard-stat-card {
    align-items: flex-start;
    border: 1px solid var(--app-border);
    border-top: 4px solid var(--dashboard-accent);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.045);
    min-height: 124px;
    padding: 1.15rem;
}

.dashboard-stat-card:hover {
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.075);
    transform: translateY(-1px);
}

.dashboard-stat-card .stat-icon {
    flex-basis: 46px;
    height: 46px;
}

.dashboard-stat-card strong {
    font-size: 1.55rem;
    font-weight: 600;
}

.dashboard-stat-card span {
    color: #475569;
}

.dashboard-stat-card small {
    color: var(--app-muted);
}

.tone-teal,
.tone-blue {
    border-top-color: var(--app-primary);
}

.tone-green,
.tone-success {
    border-top-color: var(--app-green);
}

.tone-amber {
    border-top-color: var(--app-yellow);
}

.tone-purple,
.tone-red {
    border-top-color: var(--app-red);
}

.tone-teal .stat-icon,
.tone-blue .stat-icon {
    background: var(--app-soft-blue);
    color: var(--app-primary);
}

.tone-green .stat-icon,
.tone-success .stat-icon {
    background: var(--app-soft-green);
    color: var(--app-green);
}

.tone-amber .stat-icon {
    background: var(--app-soft-yellow);
    color: #a16207;
}

.tone-purple .stat-icon,
.tone-red .stat-icon {
    background: var(--app-soft-red);
    color: var(--app-red);
}

.dashboard-panel {
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.045);
}

.panel-heading h2 {
    font-weight: 600;
}

.dashboard-table th {
    color: #64748b;
    letter-spacing: 0;
}

.dashboard-table td {
    color: var(--app-ink);
}

.status-pill {
    background: var(--app-soft-blue);
    border-color: rgba(37, 99, 235, 0.16);
    color: var(--app-primary);
    font-weight: 500;
}

.status-pending {
    background: var(--app-soft-yellow);
    border-color: rgba(250, 204, 21, 0.34);
    color: #854d0e;
}

.status-completed,
.status-accepted {
    background: var(--app-soft-green);
    border-color: rgba(22, 163, 74, 0.2);
    color: var(--app-green);
}

.status-rejected,
.status-cancelled {
    background: var(--app-soft-red);
    border-color: rgba(239, 68, 68, 0.2);
    color: var(--app-red);
}

.dashboard-page h1,
.dashboard-page h2,
.dashboard-page h3,
.dashboard-page h4,
.dashboard-page strong,
.dashboard-page .fw-bold,
.dashboard-page .fw-semibold,
.dashboard-page .dashboard-brand,
.dashboard-page .dashboard-nav a,
.dashboard-page .panel-heading h2,
.dashboard-page .dashboard-stat-card strong,
.dashboard-page .dashboard-stat-card span,
.dashboard-page .status-pill,
.dashboard-page .btn {
    font-weight: 600 !important;
}

.dashboard-page p,
.dashboard-page small,
.dashboard-page td,
.dashboard-page th,
.dashboard-page span {
    letter-spacing: 0;
}

/* SISO public marketplace refresh */
.app-navbar {
    background: rgba(255, 255, 255, 0.96) !important;
    border-bottom: 1px solid var(--app-border);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.app-navbar .container {
    gap: 1rem;
}

.app-navbar .navbar-brand,
.app-navbar.navbar-dark .navbar-brand,
.app-navbar .nav-link,
.app-navbar.navbar-dark .navbar-nav .nav-link {
    color: var(--app-ink);
}

.app-navbar .nav-link:hover,
.app-navbar .nav-link:focus,
.app-navbar .nav-link.active,
.app-navbar.navbar-dark .navbar-nav .nav-link:hover,
.app-navbar.navbar-dark .navbar-nav .nav-link:focus,
.app-navbar.navbar-dark .navbar-nav .nav-link.active {
    color: var(--app-primary);
}

.app-navbar .text-white-50 {
    color: var(--app-muted) !important;
}

.app-navbar .brand-mark {
    background: linear-gradient(135deg, var(--app-soft-blue), #fff7c2);
    color: var(--app-primary);
}

.app-navbar .btn-warning,
.btn-warning {
    background: var(--app-yellow);
    border-color: var(--app-yellow);
    color: #1f2937;
    font-weight: 600;
}

.app-navbar .btn-warning:hover,
.btn-warning:hover {
    background: #eab308;
    border-color: #eab308;
    color: #111827;
}

.navbar-market-search,
.mobile-navbar-search {
    align-items: center;
    background: #f1f5f9;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    color: var(--app-muted);
    display: flex;
    gap: 0.65rem;
    min-height: 44px;
    padding: 0 0.9rem;
}

.navbar-market-search {
    flex: 1 1 360px;
    max-width: 460px;
}

.navbar-market-search input,
.mobile-navbar-search input {
    background: transparent;
    border: 0;
    color: var(--app-ink);
    outline: 0;
    width: 100%;
}

.mobile-navbar-search {
    margin: 0.5rem 0;
    width: 100%;
}

.marketplace-hero {
    background:
        radial-gradient(circle at 72% 18%, rgba(250, 204, 21, 0.25), transparent 26rem),
        linear-gradient(135deg, #f8fbff 0%, #eef6ff 46%, #fffdf0 100%);
    min-height: auto;
    overflow: hidden;
    padding: 5.25rem 0 3.75rem;
}

.marketplace-hero .min-vh-hero {
    min-height: 620px;
}

.marketplace-hero h1 {
    color: #172033;
    font-size: clamp(2.8rem, 6vw, 5.6rem);
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.05;
    margin: 1.35rem 0 1.25rem;
    max-width: 880px;
}

.hero-trust-pill {
    align-items: center;
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: 999px;
    color: var(--app-primary);
    display: inline-flex;
    font-size: 0.95rem;
    font-weight: 600;
    gap: 0.45rem;
    padding: 0.55rem 0.95rem;
}

.marketplace-hero .hero-lead {
    color: #53637a;
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    line-height: 1.7;
    max-width: 760px;
}

.hero-market-search {
    align-items: center;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(37, 99, 235, 0.12);
    display: grid;
    gap: 0.75rem;
    grid-template-columns: minmax(140px, 0.55fr) minmax(220px, 1.45fr) auto;
    margin: 2rem 0 1rem;
    max-width: 860px;
    padding: 0.7rem;
}

.hero-search-location,
.hero-search-input {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--app-border);
    border-radius: 14px;
    color: var(--app-muted);
    display: flex;
    gap: 0.7rem;
    min-height: 58px;
    padding: 0 1rem;
}

.hero-search-location input,
.hero-search-input input {
    background: transparent;
    border: 0;
    color: var(--app-ink);
    font-size: 1rem;
    outline: 0;
    width: 100%;
}

.hero-market-search .btn {
    min-height: 58px;
    min-width: 124px;
}

.popular-searches {
    align-items: center;
    color: #64748b;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.popular-searches a {
    background: #ffffff;
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: 999px;
    color: var(--app-primary);
    font-weight: 500;
    padding: 0.45rem 0.8rem;
    text-decoration: none;
}

.marketplace-hero-actions {
    margin-top: 1.6rem;
}

.hero-market-card {
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.32);
    border-radius: 28px;
    box-shadow: 0 30px 90px rgba(15, 23, 42, 0.12);
    margin-inline: auto;
    max-width: 440px;
    padding: 1.35rem;
}

.hero-card-top,
.hero-hot-row {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.hero-card-top {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero-card-search {
    align-items: center;
    background: #f8fafc;
    border: 1px solid var(--app-border);
    border-radius: 20px;
    color: #64748b;
    display: flex;
    gap: 0.7rem;
    margin-bottom: 1rem;
    padding: 1rem;
}

.hero-card-actions {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-card-action {
    border: 1px solid var(--app-border);
    border-radius: 12px;
    padding: 1rem 0.7rem;
    text-align: center;
}

.hero-card-action i,
.hero-card-action strong {
    display: block;
}

.hero-card-action i {
    color: var(--app-primary);
    font-size: 1.45rem;
    margin-bottom: 0.4rem;
}

.hero-card-action.tone-green {
    background: var(--app-soft-green);
}

.hero-card-action.tone-yellow {
    background: var(--app-soft-yellow);
}

.hero-hot-row {
    background: var(--app-soft-red);
    border: 1px solid rgba(239, 68, 68, 0.18);
    border-radius: 12px;
    color: var(--app-red);
    margin: 1rem 0;
    padding: 0.8rem 1rem;
}

.hero-mini-list {
    display: grid;
    gap: 0.7rem;
}

.hero-mini-list div {
    align-items: center;
    border: 1px solid var(--app-border);
    border-radius: 12px;
    display: grid;
    gap: 0 0.65rem;
    grid-template-columns: auto 1fr;
    padding: 0.85rem;
}

.hero-mini-list strong,
.hero-mini-list small {
    display: block;
}

.hero-mini-list small {
    color: var(--app-muted);
}

.category-shortcuts-section {
    background: linear-gradient(180deg, #ffffff 0%, #f7f8ff 100%);
    padding: 0 0 3.25rem;
}

.category-shortcuts {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin-top: -2.4rem;
    position: relative;
    z-index: 2;
}

.category-shortcut-card {
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 142px;
    justify-content: center;
    padding: 1rem;
    text-align: center;
    text-decoration: none;
}

.category-shortcut-card span {
    align-items: center;
    background: var(--app-primary);
    border-radius: 14px;
    color: #ffffff;
    display: inline-flex;
    font-size: 1.45rem;
    height: 56px;
    justify-content: center;
    width: 56px;
}

.category-shortcut-card:nth-child(2n) span {
    background: var(--app-yellow);
    color: #1f2937;
}

.category-shortcut-card:nth-child(3n) span {
    background: var(--app-green);
    color: #ffffff;
}

.category-shortcut-card:nth-child(4n) span,
.category-shortcut-card.accent-card span {
    background: var(--app-red);
    color: #ffffff;
}

.category-shortcut-card strong {
    font-size: 0.96rem;
    font-weight: 600;
}

.how-marketplace-works {
    background: #f7f8ff;
}

.how-steps-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 2.5rem 0;
}

.how-steps-grid article {
    align-items: flex-start;
    display: grid;
    gap: 0.85rem;
    grid-template-columns: auto 1fr;
}

.how-steps-grid article > span {
    align-items: center;
    background: var(--app-primary);
    border-radius: 16px;
    color: #ffffff;
    display: inline-flex;
    font-size: 1.45rem;
    height: 64px;
    justify-content: center;
    width: 64px;
}

.how-steps-grid article:nth-child(2) > span {
    background: var(--app-green);
}

.how-steps-grid article:nth-child(3) > span {
    background: var(--app-yellow);
    color: #1f2937;
}

.how-steps-grid h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.how-steps-grid p {
    color: var(--app-muted);
    line-height: 1.65;
    margin: 0;
}

.listing-section-heading,
.marketplace-results-heading {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1.75rem;
}

.listing-section-heading h2,
.marketplace-results-heading h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    margin: 0;
}

.listing-section-heading p,
.marketplace-results-heading p {
    color: var(--app-muted);
    font-size: 1.05rem;
    margin: 0.35rem 0 0;
}

.listing-section-heading a {
    color: var(--app-primary);
    font-weight: 600;
    text-decoration: none;
}

.public-listing-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.public-listing-card {
    background: #ffffff;
    border: 1px solid var(--app-border);
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.public-listing-card img {
    aspect-ratio: 4 / 3;
    background: #eef3f8;
    display: block;
    object-fit: cover;
    width: 100%;
}

.public-listing-body {
    padding: 1rem 1.1rem 1.15rem;
}

.listing-type-pill {
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.76rem;
    font-weight: 600;
    margin-bottom: 0.65rem;
    padding: 0.28rem 0.65rem;
}

.type-buy {
    background: var(--app-soft-blue);
    color: var(--app-primary);
}

.type-sell {
    background: var(--app-soft-green);
    color: var(--app-green);
}

.type-swap {
    background: var(--app-soft-yellow);
    color: #854d0e;
}

.public-listing-body h2 {
    font-size: 1.02rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 0.45rem;
}

.public-listing-body h2 a {
    text-decoration: none;
}

.public-listing-body > strong {
    color: var(--app-primary);
    display: block;
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.listing-card-meta,
.listing-card-footer {
    align-items: center;
    color: var(--app-muted);
    display: flex;
    gap: 0.65rem;
    justify-content: space-between;
}

.listing-card-meta {
    border-bottom: 1px solid var(--app-border);
    font-size: 0.88rem;
    padding-bottom: 0.75rem;
}

.listing-card-meta span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.listing-card-footer {
    padding-top: 0.75rem;
}

.listing-card-footer span {
    background: #f1f5f9;
    border-radius: 999px;
    color: #475569;
    font-size: 0.82rem;
    padding: 0.32rem 0.65rem;
}

.marketplace-main {
    background: #f8fafc;
}

.marketplace-toolbar {
    background: #ffffff;
    border-bottom: 1px solid var(--app-border);
    padding: 1.25rem 0;
}

.marketplace-filter {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: minmax(220px, 2fr) minmax(130px, 0.9fr) minmax(150px, 1fr) minmax(120px, 0.85fr) minmax(140px, 0.85fr) auto;
}

.marketplace-filter-search {
    align-items: center;
    background: #f8fafc;
    border: 1px solid var(--app-border);
    border-radius: 14px;
    color: var(--app-muted);
    display: flex;
    gap: 0.65rem;
    padding: 0 0.95rem;
}

.marketplace-filter-search input {
    background: transparent;
    border: 0;
    min-height: 46px;
    outline: 0;
    width: 100%;
}

.marketplace-filter .form-control,
.marketplace-filter .form-select,
.marketplace-filter .btn {
    border-radius: 14px;
    min-height: 48px;
}

.public-detail-section {
    padding-top: 2rem;
}

.public-breadcrumb {
    align-items: center;
    color: var(--app-muted);
    display: flex;
    flex-wrap: wrap;
    font-size: 0.9rem;
    gap: 0.45rem;
    margin-bottom: 1.25rem;
}

.public-breadcrumb a {
    color: var(--app-primary);
    text-decoration: none;
}

.public-detail-layout {
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(0, 1fr) 360px;
}

.public-gallery-panel,
.public-description-card,
.public-price-card,
.public-action-card,
.seller-card,
.safety-card {
    background: #ffffff;
    border: 1px solid var(--app-border);
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.055);
}

.public-gallery-panel {
    padding: 0.75rem;
}

.public-gallery-panel .product-hero-image {
    border-radius: 14px;
}

.public-thumbs {
    margin: 1rem 0 1.5rem;
}

.public-product-summary {
    margin: 1rem 0 1.5rem;
}

.public-product-summary h1 {
    font-size: clamp(1.85rem, 4vw, 3rem);
    font-weight: 600;
    margin: 0.5rem 0;
}

.public-detail-meta {
    color: var(--app-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.public-description-card {
    padding: 1.35rem;
}

.public-description-card h2,
.seller-card h2 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.public-description-card p {
    color: #475569;
    line-height: 1.75;
    margin: 0;
}

.public-contact-column {
    display: grid;
    gap: 1rem;
    align-content: start;
    position: sticky;
    top: 96px;
}

.public-price-card,
.public-action-card,
.seller-card,
.safety-card {
    padding: 1.35rem;
}

.public-price-card span,
.public-price-card small {
    color: var(--app-muted);
    display: block;
}

.public-price-card strong {
    color: var(--app-primary);
    display: block;
    font-size: 2rem;
    font-weight: 600;
    margin: 0.35rem 0;
}

.public-action-card {
    display: grid;
    gap: 0.75rem;
}

.seller-row {
    align-items: center;
    display: flex;
    gap: 0.9rem;
}

.seller-row > span {
    align-items: center;
    background: var(--app-soft-green);
    border-radius: 999px;
    color: var(--app-green);
    display: inline-flex;
    font-weight: 600;
    height: 50px;
    justify-content: center;
    width: 50px;
}

.seller-row strong,
.seller-row small {
    display: block;
}

.seller-row small {
    color: var(--app-muted);
}

.safety-card {
    align-items: flex-start;
    background: #fffdf2;
    border-color: rgba(250, 204, 21, 0.36);
    color: #854d0e;
    display: flex;
    gap: 0.8rem;
}

.safety-card p {
    margin: 0.25rem 0 0;
}

@media (max-width: 1399.98px) {
    .category-shortcuts {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .public-listing-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1199.98px) {
    .marketplace-hero .min-vh-hero {
        min-height: auto;
    }

    .marketplace-filter {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .marketplace-hero {
        padding-top: 3.5rem;
    }

    .hero-market-search,
    .marketplace-filter {
        grid-template-columns: 1fr;
    }

    .hero-market-search .btn {
        width: 100%;
    }

    .category-shortcuts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        margin-top: 0;
    }

    .how-steps-grid,
    .public-detail-layout {
        grid-template-columns: 1fr;
    }

    .public-contact-column {
        position: static;
    }

    .app-navbar .navbar-nav {
        align-items: stretch !important;
    }
}

@media (max-width: 767.98px) {
    .marketplace-hero h1 {
        font-size: clamp(2.4rem, 13vw, 3.5rem);
    }

    .category-shortcuts,
    .public-listing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .how-steps-grid article {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .how-steps-grid article > span {
        margin-inline: auto;
    }

    .listing-section-heading,
    .marketplace-results-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 575.98px) {
    .marketplace-hero {
        padding-top: 2.6rem;
    }

    .hero-card-actions,
    .category-shortcuts,
    .public-listing-grid {
        grid-template-columns: 1fr;
    }

    .category-shortcut-card {
        min-height: 104px;
    }
}

/* Keep marketplace content visible immediately after the hero. */
.home-page .marketplace-hero {
    min-height: 0;
    padding: 3.25rem 0 4rem;
}

.home-page .marketplace-hero .min-vh-hero {
    min-height: 0;
}

.home-page .category-shortcuts-section {
    padding-top: 0;
}

.home-page .how-marketplace-works,
.home-page .recent-listings-section {
    display: block;
}

.home-page .home-listing-grid {
    min-height: 1px;
}

@media (max-width: 991.98px) {
    .home-page .marketplace-hero {
        padding: 2.5rem 0 2.75rem;
    }
}

/* Public typography tuning for SISO B2B marketplace. */
.home-page,
.marketplace-page {
    font-weight: 400;
}

.home-page .marketplace-hero h1 {
    font-size: clamp(2.25rem, 4.4vw, 4.25rem);
    font-weight: 500;
    line-height: 1.12;
    max-width: 780px;
}

.home-page .hero-lead {
    font-size: clamp(1rem, 1.45vw, 1.18rem);
    max-width: 720px;
}

.home-page h1,
.home-page h2,
.home-page h3,
.home-page strong,
.home-page .btn,
.marketplace-page h1,
.marketplace-page h2,
.marketplace-page h3,
.marketplace-page strong,
.marketplace-page .btn {
    font-weight: 600 !important;
}

.home-page .marketplace-hero h1 {
    font-weight: 500 !important;
}

.home-page p,
.home-page span,
.home-page small,
.marketplace-page p,
.marketplace-page span,
.marketplace-page small {
    letter-spacing: 0;
}

.home-page .category-shortcuts {
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.home-page .category-shortcut-card {
    min-height: 128px;
}

.home-page .category-shortcut-card strong {
    font-size: 0.9rem;
    line-height: 1.25;
}

@media (max-width: 1399.98px) {
    .home-page .category-shortcuts {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .home-page .marketplace-hero h1 {
        font-size: clamp(2rem, 9vw, 3.25rem);
    }

    .home-page .category-shortcuts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .home-page .category-shortcuts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Balanced 16-category landing grid and fixed How It Works alignment. */
.home-page .category-shortcuts {
    gap: 1rem;
    grid-template-columns: repeat(8, minmax(0, 1fr));
}

.home-page .category-shortcut-card {
    min-height: 132px;
    padding: 0.95rem 0.65rem;
}

.home-page .category-shortcut-card span {
    height: 54px;
    width: 54px;
}

.home-page .category-shortcut-card strong {
    font-size: 0.84rem;
    line-height: 1.25;
}

.home-page .how-marketplace-works {
    padding: 4rem 0;
}

.home-page .how-marketplace-works .section-heading {
    margin-bottom: 2rem;
}

.home-page .how-marketplace-works .section-heading h2 {
    font-size: clamp(1.9rem, 3.2vw, 3rem);
    line-height: 1.18;
}

.home-page .how-steps-grid {
    align-items: stretch;
    gap: 1.25rem;
    margin: 0 0 2rem;
}

.home-page .how-steps-grid article {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--app-border);
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.055);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    justify-content: flex-start;
    min-height: 230px;
    padding: 1.5rem;
    text-align: center;
}

.home-page .how-steps-grid article > span {
    flex: 0 0 auto;
    margin: 0 auto;
}

.home-page .how-steps-grid h3 {
    font-size: 1.18rem;
    line-height: 1.25;
    margin: 0;
    max-width: 220px;
}

.home-page .how-steps-grid p {
    font-size: 0.98rem;
    line-height: 1.65;
    margin: 0;
    max-width: 340px;
}

@media (max-width: 1399.98px) {
    .home-page .category-shortcuts {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .home-page .category-shortcuts,
    .home-page .how-steps-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .home-page .category-shortcuts,
    .home-page .how-steps-grid {
        grid-template-columns: 1fr;
    }

    .home-page .how-steps-grid article {
        min-height: 0;
    }
}

/* Finished public header language switcher. */
.app-navbar .language-switcher {
    align-items: center;
    background: #eaf2ff;
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: 999px;
    display: inline-grid;
    gap: 0;
    grid-template-columns: 58px 72px;
    height: 44px;
    padding: 4px;
    width: 138px;
}

.app-navbar .language-option,
.app-navbar .language-option:hover,
.app-navbar .language-option:focus,
.app-navbar .language-option:visited {
    align-items: center;
    border-radius: 999px;
    color: #64748b;
    display: inline-flex;
    font-size: 0.82rem;
    font-weight: 600;
    height: 36px;
    justify-content: center;
    line-height: 1;
    min-height: 36px;
    min-width: 0;
    padding: 0;
    text-decoration: none;
    white-space: nowrap;
}

.app-navbar .language-option.active,
.app-navbar .language-option.active:hover,
.app-navbar .language-option.active:focus {
    background: var(--app-primary);
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.22);
    color: #ffffff;
    text-decoration: none;
}

@media (max-width: 991.98px) {
    .app-navbar .language-switcher {
        margin: 0.35rem 0;
    }
}

/* Reference-inspired SISO marketplace hero and auth polish. */
.home-page .marketplace-hero {
    background:
        radial-gradient(circle at 74% 18%, rgba(37, 99, 235, 0.22), transparent 28rem),
        linear-gradient(135deg, #18205d 0%, #4338ca 48%, #5b5ff0 100%);
    color: #ffffff;
    padding: 4.2rem 0 7rem;
}

.home-page .marketplace-hero .hero-trust-pill {
    background: rgba(255, 255, 255, 0.13);
    border-color: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.home-page .marketplace-hero .hero-trust-pill i {
    color: var(--app-yellow);
}

.home-page .marketplace-hero h1.hero-split-title {
    color: #ffffff;
    font-size: clamp(2.45rem, 5.4vw, 5.2rem);
    font-weight: 500 !important;
    line-height: 1.08;
    margin: 1.35rem auto 1.1rem;
    max-width: 980px;
}

.hero-split-title span {
    display: inline;
}

.hero-split-title .hero-title-highlight {
    color: #ffb000;
}

.home-page .marketplace-hero .hero-lead {
    color: rgba(255, 255, 255, 0.78);
    margin-inline: auto;
    max-width: 820px;
}

.home-page .hero-market-search {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.22);
    grid-template-columns: minmax(170px, 0.55fr) minmax(280px, 1.45fr) auto;
    margin-inline: auto;
}

.hero-search-location select,
.hero-search-input input {
    background: transparent;
    border: 0;
    color: var(--app-ink);
    outline: 0;
    width: 100%;
}

.hero-search-location select {
    appearance: none;
    cursor: pointer;
}

.home-page .hero-market-search .btn-warning {
    background: #ff7a00;
    border-color: #ff7a00;
    color: #ffffff;
    font-weight: 600;
}

.home-page .popular-searches {
    justify-content: center;
}

.home-page .popular-searches span {
    color: rgba(255, 255, 255, 0.78);
}

.home-page .popular-searches a {
    background: rgba(255, 255, 255, 0.13);
    border-color: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
}

.home-page .marketplace-hero-actions {
    justify-content: center;
}

.home-page .category-shortcuts-section {
    background: linear-gradient(180deg, #eef0ff 0%, #ffffff 82%);
}

.home-page .category-shortcuts {
    margin-top: -4rem;
}

.auth-page {
    background:
        radial-gradient(circle at 16% 10%, rgba(37, 99, 235, 0.16), transparent 28rem),
        radial-gradient(circle at 90% 30%, rgba(250, 204, 21, 0.18), transparent 22rem),
        #f8fafc;
}

.auth-wrap-modern {
    align-items: center;
    display: flex;
    justify-content: center;
}

.auth-shell,
.auth-shell-wide {
    border: 0;
    border-radius: 24px;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.12);
}

.auth-brand-panel {
    background:
        radial-gradient(circle at 20% 20%, rgba(250, 204, 21, 0.22), transparent 18rem),
        linear-gradient(145deg, #17205f 0%, #2563eb 58%, #16a34a 100%);
}

.auth-shell .auth-panel {
    padding: clamp(1.6rem, 4vw, 3rem);
}

.auth-form-heading .section-badge {
    background: #eaf2ff;
    border-color: rgba(37, 99, 235, 0.14);
    color: var(--app-primary);
}

.auth-panel .form-control,
.auth-panel .form-select {
    border-radius: 14px;
    min-height: 52px;
}

.auth-submit-btn {
    align-items: center;
    border-radius: 14px;
    display: inline-flex;
    gap: 0.55rem;
    justify-content: center;
    min-height: 52px;
}

.auth-panel > p a {
    text-decoration: none;
}

.auth-panel > p a:hover {
    text-decoration: underline;
}

@media (max-width: 991.98px) {
    .home-page .hero-market-search {
        grid-template-columns: 1fr;
    }

    .home-page .marketplace-hero {
        padding: 3rem 0 4.8rem;
    }
}

/* SISO-owned hero direction: B2B command-center feel, not classifieds copy. */
.home-page .marketplace-hero {
    background:
        linear-gradient(90deg, rgba(246, 251, 255, 0.9) 0%, rgba(239, 247, 255, 0.82) 34%, rgba(248, 252, 255, 0.84) 63%, rgba(248, 255, 244, 0.9) 100%),
        radial-gradient(circle at 12% 18%, rgba(22, 163, 74, 0.18), transparent 24rem),
        radial-gradient(circle at 88% 10%, rgba(250, 204, 21, 0.28), transparent 22rem),
        url('../images/siso-home-appliances-hero.png') center / cover no-repeat;
    color: var(--app-ink);
    isolation: isolate;
    padding: 4rem 0 6rem;
    position: relative;
}

.home-page .marketplace-hero::after {
    background:
        radial-gradient(circle at 50% 46%, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.22) 38%, transparent 64%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(238, 246, 255, 0.26));
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
    z-index: -1;
}

.home-page .marketplace-hero .container {
    position: relative;
    z-index: 1;
}

.home-page .marketplace-hero .hero-trust-pill {
    background: #ffffff;
    border: 1px solid rgba(37, 99, 235, 0.14);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.055);
    color: var(--app-primary);
}

.home-page .marketplace-hero .hero-trust-pill i {
    color: var(--app-green);
}

.home-page .marketplace-hero h1.hero-split-title {
    color: #172033;
    font-size: clamp(2.05rem, 3.8vw, 3.8rem);
    font-weight: 500 !important;
    line-height: 1.14;
    max-width: 860px;
}

.hero-split-title .hero-title-highlight {
    background: linear-gradient(90deg, var(--app-primary), var(--app-green));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.home-page .marketplace-hero .hero-lead {
    color: #53637a;
    font-size: clamp(1rem, 1.45vw, 1.16rem);
    max-width: 760px;
}

.home-page .hero-market-search {
    background: #ffffff;
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: 22px;
    box-shadow: 0 24px 70px rgba(37, 99, 235, 0.13);
    max-width: 900px;
}

.home-page .hero-search-location,
.home-page .hero-search-input {
    background: #f8fafc;
    border-color: #e2e8f0;
}

.home-page .hero-market-search .btn-warning {
    background: var(--app-green);
    border-color: var(--app-green);
    border-radius: 16px;
    color: #ffffff;
}

.home-page .hero-market-search .btn-warning:hover {
    background: #15803d;
    border-color: #15803d;
}

.home-page .popular-searches span {
    color: #64748b;
}

.home-page .popular-searches a {
    background: #ffffff;
    border-color: rgba(37, 99, 235, 0.13);
    color: #475569;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.home-page .marketplace-hero-actions .btn-primary {
    background: var(--app-primary);
    border-color: var(--app-primary);
}

.home-page .marketplace-hero-actions .btn-outline-primary {
    background: #ffffff;
}

.home-page .category-shortcuts-section {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.home-page .category-shortcuts {
    margin-top: 0;
}

@media (max-width: 991.98px) {
    .home-page .marketplace-hero {
        padding: 2.8rem 0 4.2rem;
    }
}

.brand-strip-section {
    background: #ffffff;
    border-bottom: 1px solid #e8edf5;
    padding: 1.15rem 0 1.35rem;
}

.brand-strip-heading {
    align-items: center;
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    margin-bottom: 0.95rem;
    text-align: center;
}

.brand-strip-heading span {
    color: #172033;
    font-size: 1rem;
    font-weight: 700;
}

.brand-strip-heading small {
    color: #64748b;
}

.brand-marquee {
    overflow: hidden;
    position: relative;
}

.brand-marquee::before,
.brand-marquee::after {
    content: "";
    height: 100%;
    pointer-events: none;
    position: absolute;
    top: 0;
    width: 4rem;
    z-index: 2;
}

.brand-marquee::before {
    background: linear-gradient(90deg, #ffffff, transparent);
    left: 0;
}

/* SISO portal homepage: category panel + three admin-managed banners. */
.portal-showcase-section {
    background:
        linear-gradient(180deg, #f8fbff 0%, #ffffff 62%),
        radial-gradient(circle at 80% 10%, rgba(250, 204, 21, 0.18), transparent 24rem);
    border-bottom: 1px solid #e8edf5;
    padding: 1.35rem 0 2rem;
}

.portal-showcase-container {
    max-width: 100%;
    padding-left: clamp(0.75rem, 1.8vw, 2rem);
    padding-right: clamp(0.75rem, 1.8vw, 2rem);
}

.portal-searchbar {
    align-items: center;
    display: grid;
    gap: 0.75rem;
    grid-template-columns: minmax(160px, 0.36fr) minmax(240px, 1fr) minmax(170px, 0.4fr) auto;
    margin: 0 auto 1.15rem;
    max-width: 1180px;
}

.portal-location-select,
.portal-search-input,
.portal-category-select {
    align-items: center;
    background: #ffffff;
    border: 1px solid #dbe4ef;
    border-radius: 999px;
    color: #64748b;
    display: flex;
    gap: 0.7rem;
    min-height: 50px;
    padding: 0 1rem;
}

.portal-location-select select,
.portal-category-select select,
.portal-search-input input {
    background: transparent;
    border: 0;
    color: var(--app-ink);
    outline: 0;
    width: 100%;
}

.portal-location-select select {
    appearance: none;
    cursor: pointer;
}

.portal-category-select select {
    appearance: none;
    cursor: pointer;
}

.portal-searchbar .btn {
    border-radius: 999px;
    min-height: 50px;
    min-width: 122px;
}

.portal-showcase-grid {
    align-items: stretch;
    display: grid;
    gap: 1.25rem;
    grid-template-columns: minmax(240px, 0.22fr) minmax(520px, 1fr) minmax(300px, 0.26fr);
    min-height: 430px;
}

.portal-category-panel,
.portal-main-banner,
.portal-side-banner,
.portal-value-grid a {
    border: 1px solid #e2e8f0;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.portal-category-panel {
    background: #ffffff;
    border-radius: 18px;
    padding: 1.05rem;
}

.portal-panel-title {
    color: #0f172a;
    font-size: 1.06rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.portal-category-panel nav {
    display: grid;
    gap: 0.1rem;
}

.portal-category-panel nav a {
    align-items: center;
    border-radius: 10px;
    color: #334155;
    display: flex;
    gap: 0.75rem;
    min-height: 38px;
    padding: 0.45rem 0.35rem;
    text-decoration: none;
}

.portal-category-panel nav a:hover {
    background: #f1f5f9;
    color: var(--app-primary);
}

.portal-category-panel nav i {
    color: #64748b;
    font-size: 1.05rem;
    width: 22px;
}

.portal-category-panel nav span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portal-view-all {
    color: var(--app-primary);
    display: inline-flex;
    font-weight: 600;
    margin-top: 0.85rem;
    text-decoration: none;
}

.portal-main-banner {
    background:
        radial-gradient(circle at 86% 22%, rgba(250, 204, 21, 0.22), transparent 18rem),
        linear-gradient(135deg, #09203f 0%, #2563eb 58%, #16a34a 120%);
    background-position: center;
    background-size: cover;
    border-radius: 18px;
    color: #ffffff;
    min-height: 430px;
    overflow: hidden;
    position: relative;
}

.portal-main-banner.has-image,
.portal-side-banner.has-image {
    background-color: #f8fafc;
    display: block;
    padding: 0;
    position: relative;
    text-decoration: none;
}

.portal-main-banner.has-image img,
.portal-side-banner.has-image img {
    display: block;
    inset: 0;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    width: 100%;
}

.portal-main-banner.has-image:hover,
.portal-side-banner.has-image:hover {
    border-color: rgba(37, 99, 235, 0.28);
    box-shadow: 0 22px 56px rgba(15, 23, 42, 0.12);
}

.portal-main-banner.no-image::after {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.12), transparent 44%),
        radial-gradient(circle at 82% 50%, rgba(255, 255, 255, 0.16), transparent 12rem);
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.portal-banner-content {
    max-width: 620px;
    padding: clamp(1.5rem, 4vw, 3.2rem);
    position: relative;
    z-index: 1;
}

.portal-banner-badge {
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.88rem;
    font-weight: 600;
    gap: 0.45rem;
    margin-bottom: 1.15rem;
    padding: 0.45rem 0.75rem;
}

.portal-main-banner h1 {
    font-size: clamp(2rem, 4vw, 3.75rem);
    font-weight: 600;
    line-height: 1.08;
    margin: 0 0 1rem;
}

.portal-main-banner p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.05rem;
    line-height: 1.65;
    margin-bottom: 1.35rem;
}

.portal-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.portal-banner-actions .btn,
.portal-side-banner a {
    border-radius: 10px;
}

.portal-side-banners {
    display: grid;
    gap: 1.25rem;
}

.portal-side-banner {
    background-position: center;
    background-size: cover;
    border-radius: 18px;
    min-height: 202px;
    overflow: hidden;
    padding: 1.35rem;
    position: relative;
}

.portal-side-banner.has-image {
    min-height: 202px;
}

.portal-side-banner.no-image.tone-buy,
.portal-side-banner.no-image.tone-yellow {
    background: linear-gradient(135deg, #fff7d6 0%, #ffd166 100%);
}

.portal-side-banner.no-image.tone-seller,
.portal-side-banner.no-image.tone-red {
    background: linear-gradient(135deg, #fee2e2 0%, #ef4444 115%);
}

.portal-side-banner.no-image.tone-service,
.portal-side-banner.no-image.tone-green {
    background: linear-gradient(135deg, #dcfce7 0%, #16a34a 115%);
}

.portal-side-banner.no-image.tone-primary,
.portal-side-banner.no-image.tone-blue {
    background: linear-gradient(135deg, #dbeafe 0%, #2563eb 115%);
}

.portal-side-banner span {
    align-items: center;
    color: #0f172a;
    display: inline-flex;
    font-size: 0.82rem;
    font-weight: 700;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.portal-side-banner h2 {
    color: #0f172a;
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.22;
    margin-bottom: 0.65rem;
}

.portal-side-banner p {
    color: #475569;
    line-height: 1.55;
    margin-bottom: 1rem;
}

.portal-side-banner a {
    align-items: center;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(15, 23, 42, 0.14);
    color: #0f172a;
    display: inline-flex;
    font-weight: 600;
    gap: 0.4rem;
    padding: 0.58rem 0.8rem;
    text-decoration: none;
}

.portal-value-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 1.25rem;
}

.portal-value-grid a {
    background: #ffffff;
    border-radius: 14px;
    min-height: 100px;
    padding: 1rem;
    position: relative;
    text-decoration: none;
}

.portal-value-grid span,
.portal-value-grid strong {
    display: block;
}

.portal-value-grid span {
    color: #64748b;
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
}

.portal-value-grid strong {
    color: #0f172a;
    font-size: 1rem;
    font-weight: 600;
    max-width: 170px;
}

.portal-value-grid i {
    bottom: 1rem;
    color: #f97316;
    position: absolute;
    right: 1rem;
}

.admin-banner-thumb {
    border-radius: 10px;
    height: 58px;
    object-fit: cover;
    width: 104px;
}

/* Updated product listing cards for a cleaner B2B marketplace feel. */
.recent-listings-section {
    background:
        linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.recent-listings-section .container {
    max-width: 100%;
    padding-left: clamp(1rem, 2vw, 2.25rem);
    padding-right: clamp(1rem, 2vw, 2.25rem);
}

.recent-listings-section .listing-section-heading {
    align-items: end;
    margin-bottom: 1.35rem;
}

.recent-listings-section .listing-section-heading h2 {
    font-size: clamp(2rem, 3.1vw, 3.25rem);
    font-weight: 600;
    letter-spacing: 0;
}

.recent-listings-section .listing-section-heading p {
    font-size: 1rem;
}

.public-listing-card {
    border-color: #dbe4ef;
    border-radius: 14px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.055);
    display: flex;
    flex-direction: column;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.public-listing-card:hover {
    border-color: rgba(37, 99, 235, 0.28);
    box-shadow: 0 20px 46px rgba(15, 23, 42, 0.1);
    transform: translateY(-3px);
}

.public-listing-image {
    align-items: center;
    background:
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    display: flex;
    justify-content: center;
    min-height: 246px;
    padding: 1.25rem 1.35rem 0.75rem;
    text-decoration: none;
}

.public-listing-card .public-listing-image img {
    aspect-ratio: 4 / 3;
    background: transparent;
    border-radius: 10px;
    max-height: 230px;
    object-fit: contain;
    width: 100%;
}

.public-listing-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 0.95rem 1.25rem 1.15rem;
}

.public-listing-body h2 {
    color: #0f172a;
    font-size: 1.03rem;
    font-weight: 600;
    line-height: 1.38;
    min-height: 2.85em;
}

.listing-enquiry-label,
.public-listing-body > strong.listing-enquiry-label {
    align-items: center;
    align-self: flex-start;
    background: #eef5ff;
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: 999px;
    color: var(--app-primary);
    display: inline-flex;
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.15;
    margin: 0 0 0.8rem;
    padding: 0.34rem 0.7rem;
}

.listing-type-pill {
    font-size: 0.72rem;
    margin-bottom: 0.65rem;
    padding: 0.24rem 0.62rem;
}

.listing-card-meta {
    font-size: 0.84rem;
    margin-top: auto;
}

.listing-card-footer {
    gap: 0.75rem;
}

.listing-card-footer span {
    border-radius: 10px;
    max-width: 60%;
}

.listing-card-footer small {
    color: #64748b;
    min-width: 0;
    overflow: hidden;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 1199.98px) {
    .portal-showcase-grid {
        grid-template-columns: 240px minmax(0, 1fr);
    }

    .portal-side-banners {
        grid-column: 1 / -1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .portal-searchbar,
    .portal-showcase-grid,
    .portal-side-banners,
    .portal-value-grid {
        grid-template-columns: 1fr;
    }

    .portal-category-panel nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .portal-main-banner {
        min-height: 360px;
    }

    .portal-showcase-grid {
        min-height: 0;
    }
}

@media (max-width: 575.98px) {
    .portal-showcase-section {
        padding-top: 1rem;
    }

    .portal-category-panel nav {
        grid-template-columns: 1fr;
    }

    .portal-main-banner h1 {
        font-size: 2rem;
    }
}

.brand-marquee::after {
    background: linear-gradient(270deg, #ffffff, transparent);
    right: 0;
}

.brand-marquee-track {
    animation: brand-scroll 34s linear infinite;
    display: flex;
    gap: 1rem;
    width: max-content;
}

.brand-marquee:hover .brand-marquee-track {
    animation-play-state: paused;
}

.brand-logo-pill {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    color: #172033;
    display: inline-flex;
    gap: 0.7rem;
    min-width: 150px;
    padding: 0.75rem 1rem;
    text-decoration: none;
}

.brand-logo-pill img,
.brand-logo-pill span,
.admin-brand-logo img,
.admin-brand-logo span {
    align-items: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    display: inline-flex;
    height: 42px;
    justify-content: center;
    object-fit: contain;
    width: 42px;
}

.brand-logo-pill span,
.admin-brand-logo span {
    color: var(--app-primary);
    font-weight: 800;
}

.brand-logo-pill strong {
    font-size: 0.96rem;
    font-weight: 650;
}

.listing-enquiry-label {
    align-items: center;
    align-self: flex-start;
    background: #eef5ff;
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: 999px;
    color: var(--app-primary);
    display: inline-flex;
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.15;
    margin: 0 0 0.8rem;
    padding: 0.34rem 0.7rem;
}

.admin-brand-logo {
    align-items: center;
    display: flex;
}

@keyframes brand-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (max-width: 767.98px) {
    .brand-strip-heading {
        align-items: flex-start;
        flex-direction: column;
        justify-content: flex-start;
        text-align: left;
    }

    .brand-logo-pill {
        min-width: 132px;
    }
}

/* Mobile homepage cleanup. */
.home-page .category-shortcuts-section {
    display: none;
}

.mobile-profile-chip,
.mobile-bottom-nav {
    display: none;
}

@media (max-width: 767.98px) {
    body {
        padding-bottom: 78px;
    }

    .app-navbar {
        min-height: 48px;
        padding: 0.25rem 0;
    }

    .app-navbar .container {
        padding-left: 0.65rem;
        padding-right: 0.65rem;
    }

    .app-navbar .navbar-brand {
        gap: 0.45rem;
    }

    .app-navbar .brand-mark {
        height: 28px;
        width: 28px;
    }

    .app-navbar .navbar-toggler {
        border-radius: 8px;
        margin-left: auto;
        min-height: 36px;
        order: 2;
        padding: 0.25rem 0.55rem;
    }

    .mobile-profile-chip {
        align-items: center;
        background: var(--app-primary);
        border-radius: 999px;
        color: #ffffff;
        display: inline-flex;
        font-size: 0.86rem;
        font-weight: 700;
        height: 34px;
        justify-content: center;
        margin-left: 0.45rem;
        order: 3;
        text-decoration: none;
        width: 34px;
    }

    .app-navbar .navbar-collapse {
        background: #ffffff;
        border-top: 1px solid #e2e8f0;
        margin-top: 0.45rem;
        order: 4;
        padding: 0.65rem 0;
        width: 100%;
    }

    .app-navbar .navbar-nav {
        align-items: stretch !important;
        gap: 0.3rem !important;
    }

    .app-navbar .nav-link,
    .app-navbar .navbar-nav .btn {
        border-radius: 10px;
        justify-content: flex-start;
        min-height: 38px;
        width: 100%;
    }

    .app-navbar .language-switcher {
        width: 100%;
    }

    .portal-showcase-section {
        padding-top: 0.75rem;
    }

    .portal-showcase-container {
        padding-left: 0.6rem;
        padding-right: 0.6rem;
    }

    .portal-searchbar {
        gap: 0.55rem;
        margin-bottom: 1rem;
    }

    .portal-location-select,
    .portal-search-input,
    .portal-category-select,
    .portal-searchbar .btn {
        min-height: 42px;
    }

    .portal-search-input input {
        font-size: 0.86rem;
        text-overflow: ellipsis;
    }

    .portal-category-select {
        display: flex;
    }

    .portal-category-panel {
        display: none;
    }

    .portal-main-banner,
    .portal-main-banner.has-image {
        min-height: 295px;
    }

    .portal-side-banner,
    .portal-side-banner.has-image {
        min-height: 166px;
    }

    .portal-value-grid a {
        min-height: 80px;
        padding: 0.85rem 0.95rem;
    }

    .brand-strip-section {
        padding: 1rem 0;
    }

    .brand-strip-section .container {
        max-width: 100%;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .brand-marquee {
        margin-left: -0.75rem;
        margin-right: -0.75rem;
        overflow-x: auto;
        padding: 0 0.75rem 0.25rem;
        scrollbar-width: none;
    }

    .brand-marquee::-webkit-scrollbar {
        display: none;
    }

    .brand-marquee::before,
    .brand-marquee::after {
        display: none;
    }

    .brand-marquee-track {
        animation: none;
        gap: 0.65rem;
        transform: none;
    }

    .brand-marquee-track > *:nth-child(n + 9) {
        display: none;
    }

    .brand-logo-pill {
        border-radius: 12px;
        flex: 0 0 auto;
        min-width: 126px;
        padding: 0.55rem 0.7rem;
    }

    .brand-logo-pill img,
    .brand-logo-pill span {
        height: 34px;
        width: 44px;
    }

    .brand-logo-pill strong {
        font-size: 0.82rem;
    }

    .mobile-bottom-nav {
        align-items: center;
        background: rgba(255, 255, 255, 0.96);
        border: 1px solid #e2e8f0;
        border-radius: 22px 22px 0 0;
        bottom: 0;
        box-shadow: 0 -12px 34px rgba(15, 23, 42, 0.12);
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        left: 0;
        padding: 0.42rem 0.55rem calc(0.42rem + env(safe-area-inset-bottom));
        position: fixed;
        right: 0;
        z-index: 1050;
    }

    .mobile-bottom-nav a {
        align-items: center;
        color: #475569;
        display: flex;
        flex-direction: column;
        font-size: 0.66rem;
        font-weight: 600;
        gap: 0.18rem;
        justify-content: center;
        min-height: 46px;
        text-decoration: none;
    }

    .mobile-bottom-nav a i {
        font-size: 1rem;
        line-height: 1;
    }

    .mobile-bottom-nav a.active {
        color: #f97316;
    }

    .mobile-bottom-nav a span {
        max-width: 64px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-bottom-nav .mobile-bottom-action {
        background: #f97316;
        border-radius: 999px;
        box-shadow: 0 10px 22px rgba(249, 115, 22, 0.34);
        color: #ffffff;
        height: 50px;
        justify-self: center;
        margin-top: -1.5rem;
        min-height: 50px;
        width: 50px;
    }

    .mobile-bottom-nav .mobile-bottom-action i {
        font-size: 1.45rem;
    }

    .mobile-bottom-nav .mobile-bottom-action span {
        display: none;
    }
}

/* Homepage polish: admin banners, B2B workflow cards and platform modules. */
.home-page .portal-showcase-grid {
    margin-top: 1.25rem;
}

.home-page .portal-main-banner,
.home-page .portal-side-banner {
    border-radius: 20px;
}

.home-page .portal-main-banner.has-image,
.home-page .portal-side-banner.has-image {
    background: #ffffff;
    overflow: hidden;
}

.home-page .portal-main-banner.has-image img,
.home-page .portal-side-banner.has-image img {
    background: #ffffff;
}

.home-page .portal-value-grid a {
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.home-page .portal-value-grid a:hover {
    border-color: rgba(37, 99, 235, 0.28);
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.1);
    transform: translateY(-3px);
}

.home-page .how-marketplace-works {
    background:
        radial-gradient(circle at 10% 12%, rgba(37, 99, 235, 0.08), transparent 18rem),
        linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.home-page .how-steps-grid article {
    border-radius: 18px;
    grid-template-columns: 76px minmax(0, 1fr);
    min-height: 170px;
    padding: 1.35rem;
    position: relative;
}

.home-page .how-steps-grid article::after {
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.9), rgba(22, 163, 74, 0.55));
    border-radius: 999px;
    bottom: 0;
    content: "";
    height: 4px;
    left: 1.35rem;
    position: absolute;
    right: 1.35rem;
}

.home-page .how-steps-grid article > span {
    border-radius: 18px;
    height: 64px;
    width: 64px;
}

.home-page .trade-highlight-section {
    background:
        radial-gradient(circle at 82% 0%, rgba(250, 204, 21, 0.18), transparent 22rem),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.home-page .trade-card {
    border-radius: 18px;
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.07);
    overflow: hidden;
    padding: 1.35rem;
    position: relative;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.home-page .trade-card::before {
    border-radius: 999px;
    content: "";
    height: 74px;
    opacity: 0.14;
    position: absolute;
    right: -22px;
    top: -22px;
    width: 74px;
}

.home-page .trade-card.tone-blue::before {
    background: #2563eb;
}

.home-page .trade-card.tone-green::before {
    background: #16a34a;
}

.home-page .trade-card.tone-yellow::before {
    background: #facc15;
}

.home-page .trade-card:hover {
    border-color: rgba(37, 99, 235, 0.24);
    box-shadow: 0 24px 54px rgba(15, 23, 42, 0.11);
    transform: translateY(-4px);
}

.home-page .trade-card h3 {
    font-size: 1.45rem;
}

.trade-card-points {
    display: grid;
    gap: 0.55rem;
    list-style: none;
    margin: 1.1rem 0 0;
    padding: 0;
}

.trade-card-points li {
    align-items: center;
    color: #334155;
    display: flex;
    font-size: 0.94rem;
    gap: 0.5rem;
}

.trade-card-points i {
    color: #16a34a;
}

.home-page #features .feature-card {
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.055);
    overflow: hidden;
    position: relative;
}

.home-page #features .feature-card::after {
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.08), transparent);
    content: "";
    height: 80px;
    left: 0;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: 0;
}

.home-page #features .feature-icon {
    border-radius: 16px;
    position: relative;
    z-index: 1;
}

.home-page #features .feature-card h3 {
    font-size: 1.12rem;
}

.home-page #features .feature-card p {
    font-size: 0.96rem;
}

@media (max-width: 767.98px) {
    .home-page .how-steps-grid article {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .home-page .how-steps-grid article > span {
        margin: 0;
    }
}

/* Final live mobile override: account drawer and compact banner feed. */
.mobile-account-chip {
    display: none;
}

@media (max-width: 767.98px) {
    .app-navbar .container {
        align-items: center;
        display: flex;
        gap: 0.45rem;
        padding-left: 0.65rem;
        padding-right: 0.65rem;
    }

    .app-navbar .navbar-brand {
        margin-right: auto;
        min-width: 0;
    }

    .app-navbar .navbar-brand span:last-child {
        font-size: 1rem;
        max-width: 88px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-account-chip {
        align-items: center;
        background: #eef4ff;
        border: 1px solid #d7e3f5;
        border-radius: 999px;
        color: #64748b;
        display: inline-flex !important;
        flex: 0 0 auto;
        font-size: 1rem;
        font-weight: 700;
        height: 36px;
        justify-content: center;
        order: 2;
        padding: 0;
        width: 36px;
    }

    .mobile-account-chip span {
        align-items: center;
        background: var(--app-primary);
        border-radius: inherit;
        color: #ffffff;
        display: inline-flex;
        height: 100%;
        justify-content: center;
        width: 100%;
    }

    .app-navbar .navbar-toggler {
        border: 2px solid #64748b;
        border-radius: 8px;
        box-shadow: none;
        height: 36px;
        margin-left: 0;
        min-height: 36px;
        order: 3;
        padding: 0.18rem 0.48rem;
        width: 44px;
    }

    .mobile-account-drawer {
        border-radius: 22px 22px 0 0;
        height: auto !important;
        max-height: 86vh;
    }

    .mobile-account-handle {
        background: #cbd5e1;
        border-radius: 999px;
        height: 4px;
        margin: 0.8rem auto 0;
        width: 44px;
    }

    .mobile-account-drawer .offcanvas-header {
        align-items: flex-start;
        padding: 0.85rem 1.15rem 0.55rem;
    }

    .mobile-account-drawer .offcanvas-header small {
        color: #64748b;
        font-weight: 600;
    }

    .mobile-account-drawer .offcanvas-header h2 {
        color: #0f172a;
        font-size: 1.02rem;
        font-weight: 700;
        margin: 0.15rem 0 0;
    }

    .mobile-account-drawer .btn-close {
        background-color: #f1f5f9;
        border-radius: 999px;
        opacity: 1;
        padding: 0.65rem;
    }

    .mobile-account-drawer .offcanvas-body {
        padding: 0.35rem 1.15rem 1.15rem;
    }

    .mobile-account-summary {
        align-items: center;
        display: flex;
        gap: 0.8rem;
        margin-bottom: 0.85rem;
    }

    .mobile-account-avatar {
        align-items: center;
        background: #eef4ff;
        border-radius: 999px;
        color: var(--app-primary);
        display: inline-flex;
        flex: 0 0 42px;
        font-weight: 800;
        height: 42px;
        justify-content: center;
        width: 42px;
    }

    .mobile-account-summary strong {
        color: #0f172a;
        display: block;
        font-size: 0.92rem;
    }

    .mobile-account-summary span {
        color: #64748b;
        display: block;
        font-size: 0.8rem;
    }

    .mobile-account-links {
        border-bottom: 1px solid #e2e8f0;
        border-top: 1px solid #e2e8f0;
        display: grid;
        padding: 0.45rem 0;
    }

    .mobile-account-links a {
        align-items: center;
        color: #0f172a;
        display: flex;
        font-size: 0.9rem;
        gap: 0.75rem;
        min-height: 39px;
        text-decoration: none;
    }

    .mobile-account-links i {
        color: #64748b;
        font-size: 1.05rem;
        width: 20px;
    }

    .mobile-account-location {
        align-items: center;
        border-bottom: 1px solid #e2e8f0;
        color: #64748b;
        display: flex;
        gap: 0.55rem;
        min-height: 44px;
    }

    .mobile-account-actions {
        display: grid;
        gap: 0.55rem;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 0.9rem;
    }

    .mobile-account-actions .btn {
        align-items: center;
        border-radius: 9px;
        display: inline-flex;
        font-size: 0.86rem;
        font-weight: 700;
        gap: 0.4rem;
        justify-content: center;
        min-height: 42px;
    }

    .mobile-account-status {
        align-items: center;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        margin-top: 0.75rem;
        overflow: hidden;
        text-align: center;
    }

    .mobile-account-status span,
    .mobile-account-status strong {
        font-size: 0.75rem;
        padding: 0.45rem 0.35rem;
    }

    .mobile-account-status span {
        background: #f8fafc;
        color: #475569;
        font-weight: 600;
    }

    .mobile-account-status strong {
        color: #15803d;
    }

    .home-page .portal-showcase-grid {
        gap: 0.8rem;
    }

    .home-page .portal-main-banner.has-image {
        aspect-ratio: 16 / 9;
        border-radius: 14px;
        min-height: 0 !important;
    }

    .home-page .portal-side-banners {
        display: grid !important;
        gap: 0.7rem;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .home-page .portal-side-banner.has-image {
        aspect-ratio: 1.35 / 1;
        border-radius: 12px;
        min-height: 0 !important;
    }

    .home-page .portal-main-banner.has-image img,
    .home-page .portal-side-banner.has-image img {
        object-fit: cover;
    }

    .home-page .portal-side-banner.no-image {
        border-radius: 12px;
        min-height: 126px;
        padding: 0.85rem;
    }

    .home-page .portal-side-banner.no-image h2 {
        font-size: 1rem;
    }

    .home-page .portal-side-banner.no-image p,
    .home-page .portal-side-banner.no-image span {
        font-size: 0.78rem;
    }

    .mobile-bottom-nav button {
        align-items: center;
        background: transparent;
        border: 0;
        color: #475569;
        display: flex;
        flex-direction: column;
        font-size: 0.66rem;
        font-weight: 600;
        gap: 0.18rem;
        justify-content: center;
        min-height: 46px;
        padding: 0;
        text-decoration: none;
    }

    .mobile-bottom-nav button i {
        font-size: 1rem;
        line-height: 1;
    }
}

/* Absolute final mobile dashboard override - keep at end. */
@media (max-width: 991.98px) {
    .dashboard-page .dashboard-topbar {
        align-items: center;
        display: grid !important;
        gap: 0.65rem;
        grid-template-columns: auto minmax(0, 1fr) auto;
        padding: 0.75rem;
        position: sticky;
        top: 0;
        z-index: 100;
    }

    .dashboard-page .dashboard-topbar h1 {
        font-size: 1.05rem;
        font-weight: 650;
        line-height: 1.2;
    }

    .dashboard-page .dashboard-topbar p {
        font-size: 0.78rem;
        line-height: 1.25;
    }

    .dashboard-page .dashboard-language {
        display: none;
    }

    .dashboard-page .user-chip > div:not(.user-avatar) {
        display: none;
    }

    .dashboard-page .dashboard-main {
        background: #f6f8fb;
        gap: 0.85rem;
        padding: 0.85rem 0.65rem 5.5rem;
    }

    .dashboard-page .dashboard-card-grid {
        gap: 0.65rem;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .dashboard-page .dashboard-stat-card {
        border-radius: 14px;
        gap: 0.65rem;
        min-height: 118px;
        padding: 0.78rem;
    }

    .dashboard-page .dashboard-stat-card .stat-icon {
        flex-basis: 38px;
        font-size: 1.05rem;
        height: 38px;
        width: 38px;
    }

    .dashboard-page .dashboard-stat-card span,
    .dashboard-page .dashboard-stat-card small,
    .dashboard-page .panel-heading p,
    .dashboard-page .dashboard-table th {
        font-weight: 400;
    }

    .dashboard-page .dashboard-stat-card strong {
        font-size: 1.22rem;
        font-weight: 650;
    }

    .dashboard-page .panel-heading {
        align-items: center;
        gap: 0.7rem;
        padding: 0.85rem;
    }

    .dashboard-page .panel-heading h2 {
        font-size: 1rem;
        font-weight: 650;
    }

    .dashboard-page .dashboard-table {
        font-size: 0.78rem;
        min-width: 620px;
    }

    .dashboard-page .product-filter-form {
        border-top: 1px solid var(--app-border);
        padding: 0.85rem !important;
    }

    .dashboard-page .featured-ad-grid {
        display: flex;
        gap: 0.65rem;
        margin: 0 -0.65rem;
        overflow-x: auto;
        padding: 0 0.65rem 0.2rem;
    }

    .dashboard-page .featured-ad-card {
        flex: 0 0 82%;
        min-height: 96px;
    }

    .dashboard-page .product-card-grid {
        gap: 0.65rem;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .dashboard-page .product-card {
        border-radius: 14px;
        box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
    }

    .dashboard-page .product-card > img {
        aspect-ratio: 1 / 1;
        object-fit: cover;
    }

    .dashboard-page .product-card-body {
        padding: 0.62rem;
    }

    .dashboard-page .product-meta span {
        font-size: 0.58rem;
        font-weight: 650;
        padding: 0.18rem 0.38rem;
    }

    .dashboard-page .product-card h3 {
        display: -webkit-box;
        font-size: 0.82rem;
        font-weight: 650;
        line-height: 1.25;
        margin: 0.5rem 0 0.28rem;
        min-height: 2.05rem;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .dashboard-page .product-card p {
        font-size: 0.68rem;
        line-height: 1.25;
        margin-bottom: 0.45rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .dashboard-page .product-price-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.12rem;
        margin-bottom: 0.55rem;
    }

    .dashboard-page .product-price-row strong {
        font-size: 0.82rem;
        font-weight: 650;
    }

    .dashboard-page .product-price-row small {
        font-size: 0.66rem;
        font-weight: 500;
    }

    .dashboard-page .product-actions .btn {
        border-radius: 9px;
        font-size: 0.68rem;
        min-height: 32px;
        padding: 0.32rem 0.35rem;
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .dashboard-page .dashboard-topbar p,
    .dashboard-page .panel-heading p {
        display: none;
    }

    .dashboard-page .product-card-grid {
        gap: 0.52rem;
    }
}

/* Dashboard mobile header and bottom navigation refinements. */
.dashboard-bottom-nav {
    display: none;
}

.profile-panel {
    padding: 1.1rem;
}

.profile-hero {
    align-items: center;
    display: flex;
    gap: 1rem;
}

.profile-avatar-lg {
    align-items: center;
    background: linear-gradient(135deg, var(--dashboard-accent, #2563eb), #16a34a);
    border-radius: 18px;
    color: #ffffff;
    display: flex;
    flex: 0 0 64px;
    font-size: 1.5rem;
    font-weight: 700;
    height: 64px;
    justify-content: center;
    width: 64px;
}

.profile-hero h2 {
    color: var(--app-ink);
    font-size: 1.35rem;
    font-weight: 650;
    margin: 0.45rem 0 0.15rem;
}

.profile-hero p {
    color: var(--app-muted);
    margin: 0;
}

.profile-detail-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 1.1rem;
}

.profile-detail-grid div {
    background: #f8fafc;
    border: 1px solid var(--app-border);
    border-radius: 12px;
    padding: 0.85rem;
}

.profile-detail-grid span,
.profile-detail-grid strong {
    display: block;
}

.profile-detail-grid span {
    color: var(--app-muted);
    font-size: 0.75rem;
}

.profile-detail-grid strong {
    color: var(--app-ink);
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 0.2rem;
    overflow-wrap: anywhere;
}

.profile-shortcuts a {
    color: inherit;
    text-decoration: none;
}

@media (max-width: 991.98px) {
    .dashboard-page .dashboard-top-actions {
        align-items: center;
        display: flex;
        flex-wrap: nowrap !important;
        gap: 0.4rem;
        justify-content: flex-end;
        min-width: 88px;
    }

    .dashboard-page .notification-btn,
    .dashboard-page .icon-btn {
        border-radius: 10px;
        height: 36px;
        width: 36px;
    }

    .dashboard-page .user-chip {
        background: transparent;
        border: 0;
        border-radius: 999px;
        flex: 0 0 auto;
        gap: 0;
        min-height: 36px;
        padding: 0;
    }

    .dashboard-page .user-avatar {
        border-radius: 10px;
        font-size: 0.86rem;
        font-weight: 700;
        height: 36px;
        width: 36px;
    }

    .dashboard-page .dashboard-topbar > div:nth-child(2) {
        min-width: 0;
    }

    .dashboard-page .dashboard-topbar h1 {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .dashboard-page .dashboard-main {
        padding-bottom: 6.25rem;
    }

    .dashboard-bottom-nav {
        align-items: center;
        background: rgba(255, 255, 255, 0.96);
        border: 1px solid rgba(203, 213, 225, 0.78);
        border-radius: 20px 20px 0 0;
        bottom: 0;
        box-shadow: 0 -12px 32px rgba(15, 23, 42, 0.12);
        display: grid;
        gap: 0.1rem;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        left: 0.35rem;
        padding: 0.45rem 0.45rem calc(0.55rem + env(safe-area-inset-bottom));
        position: fixed;
        right: 0.35rem;
        z-index: 1060;
    }

    .dashboard-bottom-nav a,
    .dashboard-bottom-nav button {
        align-items: center;
        background: transparent;
        border: 0;
        border-radius: 14px;
        color: #64748b;
        display: flex;
        flex-direction: column;
        font-size: 0.64rem;
        font-weight: 600;
        gap: 0.16rem;
        justify-content: center;
        min-height: 46px;
        padding: 0.25rem 0.1rem;
        text-decoration: none;
    }

    .dashboard-bottom-nav i {
        font-size: 1rem;
        line-height: 1;
    }

    .dashboard-bottom-nav a.active,
    .dashboard-bottom-nav button:active {
        color: var(--dashboard-accent, #2563eb);
    }

    .dashboard-bottom-nav .dashboard-bottom-home {
        background: var(--dashboard-accent, #2563eb);
        box-shadow: 0 10px 24px rgba(37, 99, 235, 0.24);
        color: #ffffff;
        margin-top: -1.15rem;
        min-height: 54px;
    }

    .dashboard-bottom-nav .dashboard-bottom-home.active {
        color: #ffffff;
    }
}

@media (max-width: 575.98px) {
    .dashboard-page .dashboard-topbar {
        gap: 0.45rem;
        grid-template-columns: 34px minmax(0, 1fr) auto;
        padding: 0.62rem 0.55rem;
    }

    .dashboard-page .dashboard-topbar h1 {
        font-size: 0.88rem;
    }

    .dashboard-page .dashboard-top-actions {
        gap: 0.32rem;
        min-width: 76px;
    }

    .dashboard-page .notification-btn,
    .dashboard-page .icon-btn,
    .dashboard-page .user-avatar {
        height: 32px;
        width: 32px;
    }

    .dashboard-bottom-nav {
        left: 0;
        right: 0;
    }

    .profile-panel {
        padding: 0.9rem;
    }

    .profile-avatar-lg {
        border-radius: 14px;
        flex-basis: 52px;
        height: 52px;
        width: 52px;
    }

    .profile-hero h2 {
        font-size: 1.05rem;
    }

    .profile-detail-grid {
        grid-template-columns: 1fr;
    }
}

/* SISO commerce header and mobile portrait banners. */
.desktop-market-strip,
.mobile-commerce-header,
.mobile-portrait-banner-strip {
    display: none;
}

@media (min-width: 992px) {
    .app-navbar {
        background: #101827 !important;
        border-bottom: 0;
        box-shadow: none;
        min-height: 64px;
        padding: 0.45rem 0;
    }

    .app-navbar .container {
        align-items: center;
        display: flex;
        gap: 0.9rem;
        max-width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .app-navbar .navbar-brand {
        color: #ffffff !important;
        flex: 0 0 auto;
        font-weight: 700;
        min-width: 132px;
    }

    .app-navbar .navbar-brand span:last-child {
        color: #ffffff;
        font-size: 1.15rem;
    }

    .app-navbar .brand-mark {
        background: #ffcf33;
        color: #2563eb;
    }

    .desktop-delivery-pill {
        align-items: center;
        color: #ffffff;
        flex: 0 0 auto;
        gap: 0.35rem;
        line-height: 1.05;
        padding: 0.25rem 0.35rem;
        text-decoration: none;
    }

    .desktop-delivery-pill:hover {
        color: #ffcf33;
    }

    .desktop-delivery-pill i {
        font-size: 1.25rem;
    }

    .desktop-delivery-pill span {
        color: #dbeafe;
        font-size: 0.72rem;
    }

    .desktop-delivery-pill strong {
        color: #ffffff;
        font-size: 0.9rem;
        font-weight: 700;
    }

    .navbar-market-search {
        align-items: stretch;
        background: #ffffff;
        border: 2px solid transparent;
        border-radius: 7px;
        display: flex !important;
        flex: 1 1 auto;
        height: 44px;
        max-width: none;
        min-width: 320px;
        overflow: hidden;
    }

    .navbar-market-search:focus-within {
        border-color: #ffcf33;
    }

    .navbar-market-search select {
        background: #f3f4f6;
        border: 0;
        border-right: 1px solid #d1d5db;
        color: #111827;
        flex: 0 0 76px;
        font-size: 0.86rem;
        padding: 0 0.55rem;
    }

    .navbar-market-search > i {
        display: none;
    }

    .navbar-market-search input {
        border: 0;
        flex: 1 1 auto;
        font-size: 0.96rem;
        outline: 0;
        padding: 0 0.8rem;
    }

    .navbar-market-search button {
        align-items: center;
        background: #ffbd38;
        border: 0;
        color: #111827;
        display: inline-flex;
        flex: 0 0 58px;
        font-size: 1.35rem;
        justify-content: center;
    }

    .app-navbar .navbar-collapse {
        flex: 0 0 auto;
    }

    .app-navbar .navbar-nav {
        gap: 0.4rem !important;
    }

    .app-navbar .nav-link {
        color: #ffffff !important;
        font-size: 0.88rem;
        font-weight: 600;
        line-height: 1.05;
        padding: 0.25rem 0.35rem;
        white-space: nowrap;
    }

    .app-navbar .nav-link:hover,
    .app-navbar .nav-link.active {
        color: #ffcf33 !important;
    }

    .app-navbar .text-white-50 {
        color: #ffffff !important;
        max-width: 132px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .app-navbar .btn-warning {
        background: #ffcf33;
        border-color: #ffcf33;
        color: #111827;
        font-weight: 700;
    }

    .app-navbar .btn-primary {
        background: #2563eb;
        border-color: #2563eb;
        font-weight: 700;
    }

    .app-navbar .btn-outline-primary {
        border-color: rgba(255, 255, 255, 0.5);
        color: #ffffff;
        font-weight: 700;
    }

    .app-navbar .language-switcher {
        background: rgba(255, 255, 255, 0.12);
        border-color: rgba(255, 255, 255, 0.16);
    }

    .app-navbar .language-option {
        color: #dbeafe;
    }

    .app-navbar .language-option.active {
        background: #ffffff;
        color: #111827;
    }

    .desktop-market-strip {
        background: #1e293b;
        display: block;
    }

    .desktop-market-strip .container {
        align-items: center;
        display: flex;
        gap: 1.15rem;
        max-width: 100%;
        min-height: 40px;
        overflow-x: auto;
        padding-left: 1rem;
        padding-right: 1rem;
        scrollbar-width: none;
    }

    .desktop-market-strip .container::-webkit-scrollbar {
        display: none;
    }

    .desktop-market-strip a {
        align-items: center;
        color: #ffffff;
        display: inline-flex;
        flex: 0 0 auto;
        font-size: 0.88rem;
        font-weight: 600;
        gap: 0.35rem;
        text-decoration: none;
        white-space: nowrap;
    }

    .desktop-market-strip a:hover {
        color: #ffcf33;
    }

    .home-page .portal-searchbar {
        display: none !important;
    }
}

@media (max-width: 767.98px) {
    .desktop-market-strip {
        display: none !important;
    }

    .home-page .app-navbar {
        background: #ffffff !important;
        border-bottom: 1px solid #e5e7eb;
        min-height: 48px;
    }

    .home-page .mobile-commerce-header {
        background: #eef1f5;
        display: block;
        padding: 0.7rem 0.75rem 0.8rem;
    }

    .home-page .mobile-commerce-icons {
        display: flex;
        gap: 0.65rem;
        margin-bottom: 0.7rem;
        overflow-x: auto;
        padding-bottom: 0.1rem;
        scrollbar-width: none;
    }

    .home-page .mobile-commerce-icons::-webkit-scrollbar {
        display: none;
    }

    .home-page .mobile-commerce-icons a {
        align-items: center;
        background: #ffffff;
        border: 1px solid rgba(148, 163, 184, 0.16);
        border-radius: 14px;
        box-shadow: 0 8px 18px rgba(15, 23, 42, 0.1);
        color: #111827;
        display: inline-flex;
        flex: 0 0 72px;
        flex-direction: column;
        font-size: 0.72rem;
        font-weight: 700;
        gap: 0.25rem;
        min-height: 68px;
        justify-content: center;
        text-decoration: none;
    }

    .home-page .mobile-commerce-icons i {
        align-items: center;
        background: #eaf1ff;
        border-radius: 12px;
        color: #2563eb;
        display: inline-flex;
        font-size: 1.1rem;
        height: 34px;
        justify-content: center;
        width: 34px;
    }

    .home-page .mobile-commerce-icons .quick-buy {
        background: linear-gradient(145deg, #eff6ff 0%, #ffffff 72%);
    }

    .home-page .mobile-commerce-icons .quick-buy i {
        background: #dbeafe;
        color: #2563eb;
    }

    .home-page .mobile-commerce-icons .quick-sell {
        background: linear-gradient(145deg, #ecfdf5 0%, #ffffff 72%);
    }

    .home-page .mobile-commerce-icons .quick-sell i {
        background: #dcfce7;
        color: #16a34a;
    }

    .home-page .mobile-commerce-icons .quick-swap {
        background: linear-gradient(145deg, #fff7ed 0%, #ffffff 72%);
    }

    .home-page .mobile-commerce-icons .quick-swap i {
        background: #fef3c7;
        color: #d97706;
    }

    .home-page .mobile-commerce-icons .quick-service {
        background: linear-gradient(145deg, #fff1f2 0%, #ffffff 72%);
    }

    .home-page .mobile-commerce-icons .quick-service i {
        background: #fee2e2;
        color: #ef4444;
    }

    .home-page .mobile-commerce-icons .quick-ads {
        background: linear-gradient(145deg, #f5f3ff 0%, #ffffff 72%);
    }

    .home-page .mobile-commerce-icons .quick-ads i {
        background: #ede9fe;
        color: #7c3aed;
    }

    .home-page .mobile-commerce-search {
        align-items: center;
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 999px;
        box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
        display: flex;
        gap: 0.55rem;
        min-height: 54px;
        padding: 0 0.9rem;
    }

    .home-page .mobile-commerce-search > i {
        color: #111827;
        font-size: 1.25rem;
    }

    .home-page .mobile-commerce-search input {
        border: 0;
        flex: 1 1 auto;
        font-size: 0.96rem;
        min-width: 0;
        outline: 0;
    }

    .home-page .mobile-commerce-search button,
    .home-page .mobile-commerce-search span {
        align-items: center;
        background: transparent;
        border: 0;
        color: #111827;
        display: inline-flex;
        font-size: 1.15rem;
        justify-content: center;
        padding: 0;
    }

    .home-page .mobile-commerce-location {
        align-items: center;
        background: #ffffff;
        border-radius: 999px;
        color: #111827;
        display: flex;
        font-size: 0.9rem;
        font-weight: 600;
        gap: 0.55rem;
        margin-top: 0.65rem;
        min-height: 44px;
        padding: 0 0.9rem;
        text-decoration: none;
    }

    .home-page .portal-searchbar {
        display: none !important;
    }

    .home-page .portal-showcase-grid {
        display: none !important;
    }

    .home-page .mobile-portrait-banner-strip {
        display: flex;
        gap: 0.75rem;
        margin: 0.35rem -0.6rem 1rem;
        overflow-x: auto;
        padding: 0 0.6rem 0.35rem;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .home-page .mobile-portrait-banner-strip::-webkit-scrollbar {
        display: none;
    }

    .home-page .mobile-portrait-banner {
        border-radius: 16px;
        color: #ffffff;
        flex: 0 0 78%;
        min-height: 380px;
        overflow: hidden;
        position: relative;
        scroll-snap-align: start;
        text-decoration: none;
    }

    .home-page .mobile-portrait-banner.has-image {
        background: #e2e8f0;
    }

    .home-page .mobile-portrait-banner.has-image img {
        display: block;
        height: 100%;
        min-height: 380px;
        object-fit: cover;
        width: 100%;
    }

    .home-page .mobile-portrait-banner.no-image {
        background: linear-gradient(145deg, #172554, #2563eb 55%, #16a34a);
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        padding: 1.2rem;
    }

    .home-page .mobile-portrait-banner.no-image::before {
        background: radial-gradient(circle at 20% 16%, rgba(255, 255, 255, 0.32), transparent 12rem);
        content: "";
        inset: 0;
        position: absolute;
    }

    .home-page .mobile-portrait-banner.no-image span,
    .home-page .mobile-portrait-banner.no-image strong,
    .home-page .mobile-portrait-banner.no-image em {
        position: relative;
        z-index: 1;
    }

    .home-page .mobile-portrait-banner.no-image span {
        font-size: 0.78rem;
        font-weight: 700;
        margin-bottom: 0.5rem;
    }

    .home-page .mobile-portrait-banner.no-image strong {
        font-size: 1.65rem;
        font-weight: 800;
        line-height: 1.05;
    }

    .home-page .mobile-portrait-banner.no-image em {
        color: rgba(255, 255, 255, 0.86);
        font-size: 0.92rem;
        font-style: normal;
        margin-top: 0.55rem;
    }
}

/* SISO uploaded logo placement. */
.brand-logo-img,
.footer-logo-img,
.dashboard-brand-logo {
    display: block;
    height: auto;
    max-width: 100%;
    object-fit: contain;
}

.app-navbar .navbar-brand {
    align-items: center;
    display: inline-flex;
}

.app-navbar .brand-logo-img {
    max-height: 42px;
    width: 128px;
}

.footer-brand {
    align-items: center;
    display: inline-flex;
}

.footer-logo-img {
    max-height: 54px;
    width: 164px;
}

.dashboard-brand {
    align-items: center;
    min-height: 54px;
}

.dashboard-brand-logo {
    max-height: 48px;
    width: 142px;
}

.admin-brand-label {
    background: rgba(37, 99, 235, 0.1);
    border-radius: 999px;
    color: var(--dashboard-accent, #2563eb);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.22rem 0.5rem;
}

@media (min-width: 992px) {
    .app-navbar .navbar-brand {
        min-width: 146px;
    }

    .app-navbar .brand-logo-img {
        max-height: 46px;
        width: 138px;
    }
}

@media (max-width: 767.98px) {
    .app-navbar .navbar-brand {
        min-width: 0;
    }

    .app-navbar .brand-logo-img {
        max-height: 30px;
        width: 88px;
    }

    .footer-logo-img {
        max-height: 44px;
        width: 132px;
    }

    .dashboard-brand-logo {
        max-height: 42px;
        width: 124px;
    }
}

/* Final header alignment polish for the SISO commerce navbar. */
@media (min-width: 992px) {
    .app-navbar {
        min-height: 72px;
        padding: 0.45rem 0;
    }

    .app-navbar .container {
        align-items: center;
        display: flex;
        flex-wrap: nowrap;
        gap: 0.8rem;
        max-width: 100%;
        padding-left: 2rem;
        padding-right: 1.25rem;
    }

    .app-navbar .navbar-brand {
        flex: 0 0 168px;
        margin-right: 0;
        min-width: 168px;
    }

    .app-navbar .brand-logo-img {
        max-height: 50px;
        width: 156px;
    }

    .desktop-delivery-pill {
        flex: 0 0 138px;
        min-width: 138px;
        padding: 0.2rem 0.35rem;
    }

    .navbar-market-search {
        align-items: stretch;
        border-radius: 14px;
        flex: 1 1 500px;
        gap: 0 !important;
        height: 54px;
        margin: 0;
        min-width: 360px;
        overflow: hidden;
        padding: 0 !important;
    }

    .navbar-market-search select,
    .navbar-market-search input,
    .navbar-market-search button {
        align-self: stretch;
        height: 100%;
        line-height: 1;
    }

    .navbar-market-search select {
        appearance: none;
        -webkit-appearance: none;
        background-color: #f3f4f6;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23111827' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m4 6 4 4 4-4'/%3e%3c/svg%3e");
        background-position: right 0.8rem center;
        background-repeat: no-repeat;
        background-size: 12px 12px;
        flex: 0 0 96px;
        font-size: 0.95rem;
        margin: 0;
        padding: 0 2rem 0 1rem;
    }

    .navbar-market-search input {
        font-size: 1rem;
        margin: 0;
        min-width: 0;
        padding: 0 1rem;
    }

    .navbar-market-search button {
        background: #ffbd38;
        border-radius: 0;
        flex: 0 0 74px;
        font-size: 1.45rem;
        margin: 0;
        padding: 0;
    }

    .app-navbar .navbar-collapse {
        flex: 0 0 auto;
        min-width: 0;
    }

    .app-navbar .navbar-nav {
        align-items: center;
        flex-wrap: nowrap;
        gap: 0.55rem !important;
    }

    .app-navbar .nav-link {
        font-size: 0.92rem;
        padding-left: 0.32rem;
        padding-right: 0.32rem;
    }

    .app-navbar .text-white-50 {
        max-width: 145px;
    }

    .app-navbar .btn {
        align-items: center;
        border-radius: 8px;
        display: inline-flex;
        font-size: 0.9rem;
        justify-content: center;
        min-height: 46px;
        padding: 0.48rem 0.78rem;
        white-space: nowrap;
    }

    .app-navbar .btn-warning {
        min-width: 132px;
    }

    .app-navbar .btn-outline-primary {
        background: transparent !important;
        border-color: rgba(255, 255, 255, 0.58) !important;
        color: #ffffff !important;
        min-width: 82px;
    }

    .app-navbar .btn-outline-primary:hover,
    .app-navbar .btn-outline-primary:focus,
    .app-navbar .btn-outline-primary.active {
        background: #ffffff !important;
        border-color: #ffffff !important;
        color: #111827 !important;
    }
}

@media (min-width: 992px) and (max-width: 1360px) {
    .app-navbar .container {
        gap: 0.6rem;
        padding-left: 1rem;
        padding-right: 0.75rem;
    }

    .app-navbar .navbar-brand {
        flex-basis: 140px;
        min-width: 140px;
    }

    .app-navbar .brand-logo-img {
        max-height: 44px;
        width: 132px;
    }

    .desktop-delivery-pill {
        flex-basis: 118px;
        min-width: 118px;
    }

    .navbar-market-search {
        flex-basis: 410px;
        height: 50px;
        min-width: 300px;
    }

    .navbar-market-search select {
        flex-basis: 82px;
    }

    .navbar-market-search button {
        flex-basis: 64px;
    }

    .app-navbar .btn {
        min-height: 44px;
        padding-left: 0.65rem;
        padding-right: 0.65rem;
    }

    .app-navbar .btn-warning {
        min-width: 118px;
    }
}

@media (max-width: 767.98px) {
    .app-navbar {
        min-height: 50px;
        padding: 0.4rem 0;
    }

    .app-navbar .container {
        align-items: center;
        gap: 0.45rem;
        padding-left: 0.75rem;
        padding-right: 0.45rem;
    }

    .app-navbar .navbar-brand {
        margin-right: auto;
        min-width: 0;
    }

    .app-navbar .brand-logo-img {
        max-height: 34px;
        width: 104px;
    }

    .mobile-account-chip {
        border-radius: 999px;
        flex: 0 0 38px;
        height: 38px;
        margin-left: auto;
        min-height: 38px;
        width: 38px;
    }

    .mobile-account-chip i {
        font-size: 1rem;
    }

    .mobile-account-chip span {
        height: 30px;
        width: 30px;
    }

    .app-navbar .navbar-toggler {
        align-items: center;
        border-radius: 8px;
        border-width: 2px;
        display: inline-flex;
        flex: 0 0 42px;
        height: 40px;
        justify-content: center;
        margin-left: 0;
        min-height: 40px;
        padding: 0.25rem;
        width: 42px;
    }

    .app-navbar .navbar-toggler-icon {
        height: 1.25rem;
        width: 1.25rem;
    }
}

/* Mobile-first homepage experience polish. */
.home-page .trade-highlight-section {
    background:
        radial-gradient(circle at 12% 0%, rgba(37, 99, 235, 0.12), transparent 20rem),
        radial-gradient(circle at 88% 16%, rgba(250, 204, 21, 0.18), transparent 18rem),
        linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
}

.home-page #features .feature-card {
    border: 0;
    color: #ffffff;
}

.home-page #features .feature-card .feature-icon {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.home-page #features .feature-card h3,
.home-page #features .feature-card p {
    color: #ffffff;
    position: relative;
    z-index: 1;
}

.home-page #features .row > div:nth-child(1) .feature-card {
    background: linear-gradient(135deg, #2563eb, #0f766e);
}

.home-page #features .row > div:nth-child(2) .feature-card {
    background: linear-gradient(135deg, #16a34a, #0ea5e9);
}

.home-page #features .row > div:nth-child(3) .feature-card {
    background: linear-gradient(135deg, #ef4444, #f97316);
}

.home-page #features .row > div:nth-child(4) .feature-card {
    background: linear-gradient(135deg, #7c3aed, #2563eb);
}

.home-page #features .row > div:nth-child(5) .feature-card {
    background: linear-gradient(135deg, #f59e0b, #dc2626);
}

.home-page #features .row > div:nth-child(6) .feature-card {
    background: linear-gradient(135deg, #0f766e, #16a34a);
}

.home-page #features .feature-card::after {
    background:
        radial-gradient(circle at 86% 10%, rgba(255, 255, 255, 0.22), transparent 6rem),
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent);
}

.home-page .how-marketplace-works {
    background:
        linear-gradient(180deg, rgba(248, 251, 255, 0.94), rgba(255, 255, 255, 0.96)),
        url("../images/siso-home-appliances-hero.png") center / cover no-repeat;
    position: relative;
}

.home-page #news {
    background:
        radial-gradient(circle at 12% 0%, rgba(37, 99, 235, 0.1), transparent 18rem),
        linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.home-page .benefits-section {
    background:
        radial-gradient(circle at 86% 8%, rgba(22, 163, 74, 0.14), transparent 17rem),
        linear-gradient(135deg, #ffffff 0%, #eef6ff 100%);
}

@media (max-width: 767.98px) {
    .home-page .section-block {
        padding: 2.2rem 0;
    }

    .home-page .portal-showcase-section {
        padding-bottom: 0.6rem;
    }

    .home-page .portal-showcase-container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .home-page .mobile-portrait-banner-strip {
        display: flex !important;
        gap: 0.72rem;
        margin: 0.3rem -0.5rem 0.8rem;
        overflow-x: auto;
        padding: 0 0.5rem 0.35rem;
        scroll-snap-type: x mandatory;
    }

    .home-page .mobile-portrait-banner {
        border-radius: 12px;
        flex: 0 0 74%;
        min-height: 315px;
        scroll-snap-align: start;
    }

    .home-page .mobile-portrait-banner.has-image img {
        height: 100%;
        min-height: 315px;
        object-fit: cover;
        width: 100%;
    }

    .home-page .portal-value-grid {
        display: grid !important;
        gap: 0.75rem;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin: 0.6rem 0 0;
    }

    .home-page .portal-value-grid a {
        border: 0;
        border-radius: 15px;
        box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
        min-height: 104px;
        overflow: hidden;
        padding: 0.85rem;
    }

    .home-page .portal-value-grid a:nth-child(1) {
        background: linear-gradient(135deg, #eff6ff, #dbeafe);
    }

    .home-page .portal-value-grid a:nth-child(2) {
        background: linear-gradient(135deg, #ecfdf5, #dcfce7);
    }

    .home-page .portal-value-grid a:nth-child(3) {
        background: linear-gradient(135deg, #fff7ed, #ffedd5);
    }

    .home-page .portal-value-grid a:nth-child(4) {
        background: linear-gradient(135deg, #f5f3ff, #ede9fe);
    }

    .home-page .portal-value-grid span {
        font-size: 0.72rem;
        margin-bottom: 0.3rem;
    }

    .home-page .portal-value-grid strong {
        font-size: 0.88rem;
        line-height: 1.28;
        padding-right: 1.1rem;
    }

    .home-page .portal-value-grid i {
        bottom: 0.8rem;
        right: 0.8rem;
    }

    .home-page .trade-highlight-section {
        margin-top: 0;
        padding-top: 2rem;
    }

    .home-page .trade-highlight-section .section-heading,
    .home-page .how-marketplace-works .section-heading,
    .home-page #features .section-heading,
    .home-page #news .section-heading,
    .home-page .benefits-section .section-heading {
        text-align: center;
    }

    .home-page .trade-card {
        border-radius: 18px;
        box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
        padding: 1.05rem;
        text-align: center;
    }

    .home-page .trade-icon {
        margin-left: auto;
        margin-right: auto;
    }

    .trade-card-points {
        text-align: left;
    }

    .home-page .brand-strip-section {
        padding: 1.35rem 0;
    }

    .home-page .brand-strip-heading {
        padding: 0 0.75rem;
        text-align: center;
    }

    .home-page .brand-marquee {
        margin-left: -0.75rem;
        margin-right: -0.75rem;
        overflow: hidden;
    }

    .home-page .brand-marquee::before,
    .home-page .brand-marquee::after {
        display: block;
        width: 2rem;
    }

    .home-page .brand-marquee-track {
        animation: brand-scroll 22s linear infinite !important;
        display: flex;
        gap: 0.65rem;
        transform: none;
        width: max-content;
    }

    .home-page .brand-marquee-track > * {
        display: inline-flex !important;
    }

    .home-page .brand-logo-pill {
        flex: 0 0 auto;
        min-width: 112px;
    }

    .home-page .how-marketplace-works {
        background:
            linear-gradient(180deg, rgba(246, 250, 255, 0.92), rgba(255, 255, 255, 0.95)),
            url("../images/siso-home-appliances-hero.png") center / cover no-repeat;
    }

    .home-page .how-steps-grid {
        gap: 0.85rem;
        grid-template-columns: 1fr !important;
    }

    .home-page .how-steps-grid article {
        align-items: center;
        border: 0;
        border-radius: 18px;
        box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
        min-height: 0;
        padding: 1rem;
        text-align: center;
    }

    .home-page .how-steps-grid article > span {
        margin: 0 auto;
    }

    .home-page .how-steps-grid p {
        text-align: center;
    }

    .home-page .recent-listings-section {
        background: linear-gradient(180deg, #f5f8fc 0%, #ffffff 100%);
    }

    .home-page .recent-listings-section .container {
        padding-left: 0.65rem;
        padding-right: 0.65rem;
    }

    .home-page .listing-section-heading {
        align-items: flex-end;
        gap: 0.75rem;
        margin-bottom: 0.9rem;
    }

    .home-page .listing-section-heading h2,
    .home-page .recent-listings-section .listing-section-heading h2 {
        font-size: 1.45rem;
        line-height: 1.1;
    }

    .home-page .listing-section-heading p {
        font-size: 0.84rem;
        line-height: 1.35;
    }

    .home-page .home-listing-grid,
    .home-page .public-listing-grid {
        gap: 0.7rem;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .home-page .public-listing-card {
        border-radius: 14px;
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
        min-height: 0;
        overflow: hidden;
    }

    .home-page .public-listing-image {
        align-items: center;
        aspect-ratio: 1 / 0.86;
        background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
        display: flex;
        justify-content: center;
        padding: 0.45rem;
    }

    .home-page .public-listing-card .public-listing-image img {
        aspect-ratio: auto;
        border-radius: 10px;
        height: 100%;
        max-height: none;
        object-fit: contain;
        padding: 0;
        width: 100%;
    }

    .home-page .public-listing-body {
        gap: 0.38rem;
        padding: 0.55rem 0.55rem 0.65rem;
    }

    .home-page .public-listing-body h2 {
        font-size: 0.78rem;
        line-height: 1.25;
        min-height: 2rem;
    }

    .home-page .listing-enquiry-label {
        font-size: 0.78rem;
        line-height: 1.15;
        padding: 0.32rem 0.48rem;
    }

    .home-page .listing-card-meta {
        border-bottom: 0;
        flex-direction: column;
        font-size: 0.68rem;
        gap: 0.18rem;
        padding-bottom: 0;
    }

    .home-page .listing-card-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.28rem;
        padding-top: 0.25rem;
    }

    .home-page .listing-card-footer span,
    .home-page .listing-card-footer small {
        font-size: 0.66rem;
        max-width: 100%;
    }

    .home-page #features {
        background: #f6f9ff;
    }

    .home-page #auction {
        background:
            radial-gradient(circle at 12% 0%, rgba(37, 99, 235, 0.12), transparent 14rem),
            linear-gradient(180deg, #ffffff 0%, #f5f8fc 100%);
    }

    .home-page #auction .row {
        --bs-gutter-y: 1rem;
    }

    .home-page #auction .section-title,
    .home-page #auction .section-copy {
        text-align: center;
    }

    .home-page .auction-board {
        border: 0;
        border-radius: 18px;
        box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
        gap: 0.7rem;
        padding: 0.75rem;
    }

    .home-page .auction-row {
        border-radius: 14px;
        grid-template-columns: minmax(0, 1fr) auto;
        min-height: 82px;
        padding: 0.8rem 0.9rem;
    }

    .home-page .auction-row span,
    .home-page .auction-row strong {
        grid-column: 1;
    }

    .home-page .auction-row i {
        align-items: center;
        display: inline-flex;
        grid-column: 2;
        grid-row: 1 / span 2;
        justify-content: center;
    }

    .home-page .auction-row strong {
        font-size: 1rem;
    }

    .home-page #features .row {
        --bs-gutter-y: 0.85rem;
    }

    .home-page #features .feature-card {
        border-radius: 18px;
        min-height: 166px;
        padding: 1rem;
    }

    .home-page #features .feature-card h3 {
        font-size: 1rem;
        line-height: 1.25;
    }

    .home-page #features .feature-card p {
        font-size: 0.82rem;
        line-height: 1.45;
    }

    .home-page #service .row {
        --bs-gutter-y: 1.1rem;
    }

    .home-page #service .section-title,
    .home-page #service .section-copy {
        text-align: center;
    }

    .home-page .location-panel {
        aspect-ratio: 1.25 / 1;
        margin: 0 auto;
        max-width: 320px;
    }

    .home-page #service .row.g-3 {
        display: grid;
        gap: 0.65rem;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        margin-left: 0;
        margin-right: 0;
    }

    .home-page #service .row.g-3 > * {
        padding-left: 0;
        padding-right: 0;
        width: auto;
    }

    .home-page .mini-metric {
        border-radius: 14px;
        padding: 0.75rem 0.35rem;
        text-align: center;
    }

    .home-page .mini-metric strong {
        font-size: 0.86rem;
    }

    .home-page .mini-metric span {
        font-size: 0.66rem;
    }

    .home-page #news .row {
        --bs-gutter-y: 0.85rem;
    }

    .home-page .classified-section {
        background:
            radial-gradient(circle at 90% 0%, rgba(249, 115, 22, 0.12), transparent 13rem),
            linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    }

    .home-page .classified-section .row {
        --bs-gutter-y: 1rem;
        text-align: center;
    }

    .home-page .classified-grid {
        gap: 0.65rem;
        grid-template-columns: 1fr;
    }

    .home-page .classified-card {
        align-items: center;
        border: 0;
        border-radius: 16px;
        box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
        display: grid;
        gap: 0.35rem;
        grid-template-columns: 42px minmax(0, 1fr);
        padding: 0.85rem;
        text-align: left;
    }

    .home-page .classified-card i {
        grid-row: 1 / span 2;
        height: 42px;
        width: 42px;
    }

    .home-page .classified-card h3 {
        font-size: 0.95rem;
        margin: 0;
    }

    .home-page .classified-card p {
        font-size: 0.78rem;
        line-height: 1.35;
    }

    .home-page .home-news-card {
        border: 0;
        border-radius: 18px;
        box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
        overflow: hidden;
        padding: 0;
    }

    .home-page .home-news-card img {
        border-radius: 0;
        margin-bottom: 0;
    }

    .home-page .home-news-card > span,
    .home-page .home-news-card h3,
    .home-page .home-news-card p,
    .home-page .home-news-card a {
        margin-left: 0.9rem;
        margin-right: 0.9rem;
    }

    .home-page .home-news-card > span {
        margin-top: 0.8rem;
    }

    .home-page .home-news-card a {
        margin-bottom: 0.9rem;
    }

    .home-page .benefits-section .row {
        --bs-gutter-y: 1rem;
        text-align: center;
    }

    .home-page .benefit-grid {
        gap: 0.65rem;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .home-page .benefit-item {
        align-items: center;
        border: 0;
        border-radius: 16px;
        box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
        flex-direction: column;
        gap: 0.45rem;
        justify-content: center;
        min-height: 112px;
        padding: 0.9rem 0.55rem;
        text-align: center;
    }

    .home-page .benefit-item:nth-child(odd) {
        background: linear-gradient(135deg, #eff6ff, #ffffff);
    }

    .home-page .benefit-item:nth-child(even) {
        background: linear-gradient(135deg, #ecfdf5, #ffffff);
    }

    .home-page .benefit-item span {
        font-size: 0.78rem;
        line-height: 1.25;
    }
}

/* Final mobile alignment pass for marketplace cards. */
@media (max-width: 767.98px) {
    .home-page .trade-highlight-section .row {
        --bs-gutter-y: 0.75rem;
    }

    .home-page .trade-card {
        align-items: center;
        display: grid;
        gap: 0.55rem 0.75rem;
        grid-template-columns: 44px minmax(0, 1fr);
        min-height: 0;
        padding: 0.85rem;
        text-align: left;
    }

    .home-page .trade-card::before {
        height: 62px;
        right: -20px;
        top: -20px;
        width: 62px;
    }

    .home-page .trade-icon {
        grid-row: 1 / span 2;
        height: 44px;
        margin: 0;
        width: 44px;
    }

    .home-page .trade-card h3 {
        font-size: 1rem;
        line-height: 1.15;
        margin: 0;
    }

    .home-page .trade-card p {
        font-size: 0.78rem;
        line-height: 1.35;
        margin: 0;
    }

    .home-page .trade-card-points {
        gap: 0.28rem;
        grid-column: 1 / -1;
        margin-top: 0.15rem;
    }

    .home-page .trade-card-points li {
        font-size: 0.76rem;
        gap: 0.35rem;
        line-height: 1.25;
    }

    .home-page .recent-listings-section .listing-section-heading {
        align-items: flex-start;
    }

    .home-page .recent-listings-section .listing-section-heading a {
        flex: 0 0 auto;
        font-size: 0.88rem;
        margin-top: 0.15rem;
    }

    .home-page .home-listing-grid,
    .home-page .public-listing-grid {
        align-items: stretch;
        gap: 0.62rem;
    }

    .home-page .public-listing-card {
        display: grid;
        grid-template-rows: 132px minmax(0, 1fr);
        height: 100%;
    }

    .home-page .public-listing-image {
        aspect-ratio: auto;
        background: #ffffff;
        border-bottom: 1px solid #eef2f7;
        height: 132px;
        padding: 0;
    }

    .home-page .public-listing-card .public-listing-image img {
        border-radius: 0;
        height: 132px;
        object-fit: cover;
        object-position: center;
        width: 100%;
    }

    .home-page .public-listing-body {
        display: grid;
        gap: 0.34rem;
        grid-template-rows: auto minmax(2.15rem, auto) auto auto auto;
        padding: 0.52rem;
    }

    .home-page .listing-type-pill {
        border-radius: 999px;
        font-size: 0.62rem;
        justify-self: stretch;
        line-height: 1;
        padding: 0.28rem 0.45rem;
        text-align: left;
    }

    .home-page .public-listing-body h2 {
        display: -webkit-box;
        font-size: 0.74rem;
        line-height: 1.22;
        margin: 0;
        min-height: 2.15rem;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .home-page .listing-enquiry-label {
        align-self: start;
        border-radius: 999px;
        font-size: 0.7rem;
        justify-self: stretch;
        line-height: 1.1;
        padding: 0.34rem 0.42rem;
        text-align: center;
    }

    .home-page .listing-card-meta {
        align-items: center;
        display: grid;
        font-size: 0.62rem;
        gap: 0.08rem;
        justify-items: center;
        line-height: 1.15;
        margin-top: 0.05rem;
    }

    .home-page .listing-card-meta span {
        max-width: 100%;
    }

    .home-page .listing-card-footer {
        align-self: end;
        display: grid;
        gap: 0.18rem;
        padding-top: 0.12rem;
    }

    .home-page .listing-card-footer span {
        border-radius: 999px;
        display: block;
        font-size: 0.6rem;
        max-width: 100%;
        overflow: hidden;
        padding: 0.28rem 0.42rem;
        text-align: center;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .home-page .listing-card-footer small {
        display: block;
        font-size: 0.58rem;
        overflow: hidden;
        text-align: left;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* Strong live mobile correction: compact trade cards and clean product cards. */
@media (max-width: 767.98px) {
    .home-page .trade-highlight-section {
        padding-bottom: 1.4rem !important;
    }

    .home-page .trade-highlight-section .section-heading {
        margin-bottom: 0.85rem !important;
    }

    .home-page .trade-highlight-section .section-heading p {
        display: none !important;
    }

    .home-page .trade-card {
        align-items: center !important;
        border-radius: 16px !important;
        display: grid !important;
        gap: 0.55rem !important;
        grid-template-columns: 42px minmax(0, 1fr) !important;
        min-height: 92px !important;
        padding: 0.78rem 0.82rem !important;
        text-align: left !important;
    }

    .home-page .trade-icon {
        grid-row: 1 / span 2 !important;
        height: 42px !important;
        margin: 0 !important;
        width: 42px !important;
    }

    .home-page .trade-card h3 {
        font-size: 1rem !important;
        line-height: 1.1 !important;
        margin: 0 !important;
    }

    .home-page .trade-card p {
        color: #64748b !important;
        font-size: 0.78rem !important;
        line-height: 1.32 !important;
        margin: 0 !important;
    }

    .home-page .trade-card-points {
        display: none !important;
    }

    .home-page .live-note {
        border-radius: 14px !important;
        font-size: 0.78rem !important;
        line-height: 1.35 !important;
        margin-top: 0.8rem !important;
        padding: 0.7rem 0.85rem !important;
    }

    .home-page .home-listing-grid,
    .home-page .public-listing-grid {
        gap: 0.55rem !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .home-page .public-listing-card {
        border-radius: 13px !important;
        display: grid !important;
        grid-template-rows: 116px minmax(0, 1fr) !important;
        min-height: 0 !important;
        overflow: hidden !important;
    }

    .home-page .public-listing-image {
        align-items: center !important;
        aspect-ratio: auto !important;
        background: #ffffff !important;
        display: flex !important;
        height: 116px !important;
        justify-content: center !important;
        overflow: hidden !important;
        padding: 0.35rem !important;
    }

    .home-page .public-listing-card .public-listing-image img {
        aspect-ratio: auto !important;
        border-radius: 8px !important;
        height: 100% !important;
        max-height: 104px !important;
        object-fit: contain !important;
        object-position: center !important;
        padding: 0 !important;
        width: 100% !important;
    }

    .home-page .public-listing-body {
        display: grid !important;
        gap: 0.28rem !important;
        grid-template-rows: auto minmax(2rem, auto) auto auto auto !important;
        padding: 0.48rem !important;
    }

    .home-page .listing-type-pill,
    .home-page .public-listing-body .listing-type-pill {
        align-self: start !important;
        border-radius: 999px !important;
        display: block !important;
        font-size: 0.58rem !important;
        font-weight: 600 !important;
        line-height: 1 !important;
        margin: 0 !important;
        max-width: 100% !important;
        padding: 0.26rem 0.42rem !important;
        position: static !important;
        text-align: left !important;
        transform: none !important;
        width: 100% !important;
    }

    .home-page .public-listing-body h2 {
        display: -webkit-box !important;
        font-size: 0.7rem !important;
        font-weight: 650 !important;
        line-height: 1.2 !important;
        margin: 0 !important;
        min-height: 1.7rem !important;
        overflow: hidden !important;
        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 2 !important;
    }

    .home-page .public-listing-body > strong.listing-enquiry-label,
    .home-page .listing-enquiry-label {
        align-items: center !important;
        align-self: start !important;
        border-radius: 999px !important;
        display: flex !important;
        font-size: 0.62rem !important;
        font-weight: 650 !important;
        justify-content: center !important;
        line-height: 1.05 !important;
        margin: 0 !important;
        min-height: 26px !important;
        padding: 0.28rem 0.38rem !important;
        text-align: center !important;
        width: 100% !important;
    }

    .home-page .listing-card-meta {
        font-size: 0.58rem !important;
        gap: 0.05rem !important;
        line-height: 1.1 !important;
        margin: 0 !important;
    }

    .home-page .listing-card-footer {
        gap: 0.14rem !important;
        padding-top: 0 !important;
    }

    .home-page .listing-card-footer span {
        font-size: 0.56rem !important;
        padding: 0.24rem 0.34rem !important;
    }

    .home-page .listing-card-footer small {
        font-size: 0.54rem !important;
    }
}

/* Final live fix: prevent mobile listing image/title/badge crowding. */
@media (max-width: 767.98px) {
    .home-page .public-listing-card {
        grid-template-rows: 98px minmax(0, 1fr) !important;
    }

    .home-page .public-listing-image {
        height: 98px !important;
        padding: 0.4rem 0.45rem 0.25rem !important;
    }

    .home-page .public-listing-card .public-listing-image img {
        height: 88px !important;
        max-height: 88px !important;
        object-fit: contain !important;
    }

    .home-page .public-listing-body {
        gap: 0.36rem !important;
        grid-template-rows: auto minmax(2.05rem, auto) auto auto auto !important;
        padding: 0.5rem 0.52rem 0.6rem !important;
    }

    .home-page .listing-type-pill,
    .home-page .public-listing-body .listing-type-pill {
        justify-self: start !important;
        max-width: max-content !important;
        min-width: 42px !important;
        padding: 0.26rem 0.55rem !important;
        text-align: center !important;
        width: auto !important;
    }

    .home-page .public-listing-body h2 {
        font-size: 0.72rem !important;
        line-height: 1.22 !important;
        min-height: 2.05rem !important;
    }

    .home-page .public-listing-body > strong.listing-enquiry-label,
    .home-page .listing-enquiry-label {
        font-size: 0.58rem !important;
        min-height: 24px !important;
        padding: 0.28rem 0.3rem !important;
    }

    .home-page .listing-card-meta {
        justify-items: start !important;
        padding-left: 0.05rem !important;
    }
}

/* Isolated homepage product cards: avoids inherited browse-card overlap on mobile. */
@media (max-width: 767.98px) {
    .home-page .home-listing-grid {
        display: grid !important;
        gap: 0.72rem !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .home-page .home-product-card {
        background: #ffffff !important;
        border: 1px solid #dbe4ef !important;
        border-radius: 13px !important;
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07) !important;
        display: grid !important;
        grid-template-rows: 128px auto !important;
        min-height: 0 !important;
        overflow: hidden !important;
    }

    .home-page .home-product-image {
        align-items: center !important;
        background: #ffffff !important;
        border-bottom: 1px solid #eef2f7 !important;
        display: flex !important;
        height: 128px !important;
        justify-content: center !important;
        overflow: hidden !important;
        padding: 0.6rem 0.55rem !important;
        position: static !important;
        width: 100% !important;
    }

    .home-page .home-product-image img {
        aspect-ratio: auto !important;
        background: transparent !important;
        border-radius: 7px !important;
        display: block !important;
        height: 108px !important;
        max-height: 108px !important;
        object-fit: contain !important;
        object-position: center !important;
        position: static !important;
        transform: none !important;
        width: 100% !important;
    }

    .home-page .home-product-body {
        display: grid !important;
        gap: 0.34rem !important;
        grid-template-rows: auto auto auto auto auto !important;
        padding: 0.58rem 0.5rem 0.62rem !important;
        position: static !important;
    }

    .home-page .home-product-type {
        align-self: start !important;
        display: inline-flex !important;
        font-size: 0.57rem !important;
        justify-self: start !important;
        line-height: 1 !important;
        margin: 0 !important;
        max-width: 70px !important;
        min-width: 0 !important;
        padding: 0.25rem 0.48rem !important;
        position: static !important;
        width: auto !important;
        z-index: 1 !important;
    }

    .home-page .home-product-title {
        display: block !important;
        font-size: 0.68rem !important;
        font-weight: 650 !important;
        line-height: 1.22 !important;
        margin: 0 !important;
        min-height: 1.72rem !important;
        overflow: hidden !important;
        position: static !important;
    }

    .home-page .home-product-title a {
        color: #0f172a !important;
        display: -webkit-box !important;
        overflow: hidden !important;
        text-decoration: none !important;
        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 2 !important;
    }

    .home-page .home-product-enquiry {
        align-items: center !important;
        align-self: start !important;
        background: #eef5ff !important;
        border: 1px solid rgba(37, 99, 235, 0.12) !important;
        border-radius: 999px !important;
        color: #2563eb !important;
        display: inline-flex !important;
        font-size: 0.56rem !important;
        font-weight: 650 !important;
        justify-content: center !important;
        line-height: 1.05 !important;
        margin: 0 !important;
        min-height: 23px !important;
        padding: 0.25rem 0.28rem !important;
        width: 100% !important;
    }

    .home-page .home-product-meta {
        align-items: start !important;
        border: 0 !important;
        color: #64748b !important;
        display: grid !important;
        font-size: 0.57rem !important;
        gap: 0.05rem !important;
        line-height: 1.1 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .home-page .home-product-footer {
        align-self: end !important;
        border-top: 1px solid #eef2f7 !important;
        display: grid !important;
        gap: 0.12rem !important;
        padding-top: 0.28rem !important;
    }

    .home-page .home-product-footer span {
        background: #f1f5f9 !important;
        border-radius: 999px !important;
        color: #475569 !important;
        display: inline-block !important;
        font-size: 0.55rem !important;
        max-width: 100% !important;
        overflow: hidden !important;
        padding: 0.22rem 0.36rem !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        width: max-content !important;
    }

    .home-page .home-product-footer small {
        color: #64748b !important;
        display: block !important;
        font-size: 0.52rem !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }
}

/* Final homepage product polish: larger image, less empty card space. */
@media (max-width: 767.98px) {
    .home-page .home-product-card {
        grid-template-rows: 122px auto !important;
    }

    .home-page .home-product-image {
        background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%) !important;
        border-bottom: 1px solid #eef2f7 !important;
        box-sizing: border-box !important;
        contain: paint !important;
        height: 122px !important;
        max-height: 122px !important;
        min-height: 122px !important;
        padding: 0.42rem 0.42rem 0.5rem !important;
    }

    .home-page .home-product-image img {
        border-radius: 8px !important;
        display: block !important;
        height: 96px !important;
        max-height: 96px !important;
        max-width: 96% !important;
        object-fit: contain !important;
        object-position: center !important;
        width: auto !important;
    }

    .home-page .home-product-body {
        gap: 0.3rem !important;
        padding: 0.54rem 0.5rem 0.6rem !important;
    }

    .home-page .home-product-title {
        font-size: 0.68rem !important;
        min-height: 1.68rem !important;
    }

    .home-page .home-product-enquiry {
        min-height: 22px !important;
    }
}

/* Mobile hero-linked header color and full pastel quick actions. */
@media (max-width: 767.98px) {
    body.home-page {
        --mobile-hero-bg: linear-gradient(180deg, rgba(239, 246, 255, 0.98) 0%, rgba(219, 234, 254, 0.9) 48%, rgba(241, 245, 249, 0.96) 100%);
        --mobile-hero-border: rgba(148, 163, 184, 0.24);
    }

    body.home-page[data-mobile-hero-tone="orange"] {
        --mobile-hero-bg: linear-gradient(180deg, rgba(255, 114, 48, 0.92) 0%, rgba(255, 188, 121, 0.84) 48%, rgba(255, 245, 235, 0.96) 100%);
        --mobile-hero-border: rgba(249, 115, 22, 0.24);
    }

    body.home-page[data-mobile-hero-tone="green"] {
        --mobile-hero-bg: linear-gradient(180deg, rgba(22, 163, 74, 0.9) 0%, rgba(134, 239, 172, 0.8) 48%, rgba(240, 253, 244, 0.96) 100%);
        --mobile-hero-border: rgba(22, 163, 74, 0.24);
    }

    body.home-page[data-mobile-hero-tone="red"] {
        --mobile-hero-bg: linear-gradient(180deg, rgba(239, 68, 68, 0.86) 0%, rgba(252, 165, 165, 0.78) 48%, rgba(255, 241, 242, 0.96) 100%);
        --mobile-hero-border: rgba(239, 68, 68, 0.24);
    }

    body.home-page[data-mobile-hero-tone="violet"] {
        --mobile-hero-bg: linear-gradient(180deg, rgba(124, 58, 237, 0.86) 0%, rgba(196, 181, 253, 0.78) 48%, rgba(245, 243, 255, 0.96) 100%);
        --mobile-hero-border: rgba(124, 58, 237, 0.24);
    }

    body.home-page[data-mobile-hero-tone="grey"] {
        --mobile-hero-bg: linear-gradient(180deg, rgba(100, 116, 139, 0.78) 0%, rgba(203, 213, 225, 0.86) 50%, rgba(248, 250, 252, 0.96) 100%);
        --mobile-hero-border: rgba(100, 116, 139, 0.22);
    }

    body.home-page[data-mobile-hero-tone="dark"] {
        --mobile-hero-bg: linear-gradient(180deg, rgba(15, 23, 42, 0.94) 0%, rgba(71, 85, 105, 0.78) 48%, rgba(241, 245, 249, 0.96) 100%);
        --mobile-hero-border: rgba(15, 23, 42, 0.26);
    }

    body.home-page[data-mobile-hero-tone="blue"] {
        --mobile-hero-bg: linear-gradient(180deg, rgba(37, 99, 235, 0.88) 0%, rgba(147, 197, 253, 0.78) 48%, rgba(239, 246, 255, 0.96) 100%);
        --mobile-hero-border: rgba(37, 99, 235, 0.24);
    }

    .home-page .app-navbar,
    .home-page .mobile-commerce-header {
        background: var(--mobile-hero-bg) !important;
        border-color: transparent !important;
        transition: background 0.38s ease, border-color 0.38s ease, box-shadow 0.38s ease;
    }

    .home-page .app-navbar {
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        border-bottom: 0 !important;
        box-shadow: none !important;
        margin-bottom: -1px;
    }

    .home-page .mobile-commerce-header {
        border-top: 0 !important;
        box-shadow: none !important;
        margin-top: 0;
        padding-top: 0.2rem;
        position: relative;
    }

    .home-page .mobile-commerce-header::before {
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
        content: "";
        height: 34px;
        left: 0;
        pointer-events: none;
        position: absolute;
        right: 0;
        top: 0;
    }

    .home-page .mobile-commerce-search,
    .home-page .mobile-commerce-location {
        background: rgba(255, 255, 255, 0.88) !important;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid rgba(255, 255, 255, 0.6);
    }

    .home-page .mobile-commerce-icons a {
        border: 1px solid rgba(255, 255, 255, 0.7) !important;
        box-shadow: 0 10px 18px rgba(15, 23, 42, 0.1);
        color: #0f172a;
    }

    .home-page .mobile-commerce-icons .quick-buy {
        background: linear-gradient(145deg, #dbeafe 0%, #bfdbfe 100%) !important;
    }

    .home-page .mobile-commerce-icons .quick-buy i {
        background: rgba(255, 255, 255, 0.62) !important;
        color: #1d4ed8 !important;
    }

    .home-page .mobile-commerce-icons .quick-sell {
        background: linear-gradient(145deg, #dcfce7 0%, #bbf7d0 100%) !important;
    }

    .home-page .mobile-commerce-icons .quick-sell i {
        background: rgba(255, 255, 255, 0.62) !important;
        color: #15803d !important;
    }

    .home-page .mobile-commerce-icons .quick-swap {
        background: linear-gradient(145deg, #fef3c7 0%, #fde68a 100%) !important;
    }

    .home-page .mobile-commerce-icons .quick-swap i {
        background: rgba(255, 255, 255, 0.62) !important;
        color: #b45309 !important;
    }

    .home-page .mobile-commerce-icons .quick-service {
        background: linear-gradient(145deg, #fee2e2 0%, #fecaca 100%) !important;
    }

    .home-page .mobile-commerce-icons .quick-service i {
        background: rgba(255, 255, 255, 0.62) !important;
        color: #dc2626 !important;
    }

    .home-page .mobile-commerce-icons .quick-ads {
        background: linear-gradient(145deg, #ede9fe 0%, #ddd6fe 100%) !important;
    }

    .home-page .mobile-commerce-icons .quick-ads i {
        background: rgba(255, 255, 255, 0.62) !important;
        color: #6d28d9 !important;
    }
}

/* Keep mobile hero color as one continuous canvas from logo row to search row. */
@media (max-width: 767.98px) {
    .home-page .app-navbar,
    .home-page .mobile-commerce-header {
        background-image: var(--mobile-hero-bg) !important;
        background-repeat: no-repeat !important;
        background-size: 100% 228px !important;
    }

    .home-page .app-navbar {
        background-position: center top !important;
    }

    .home-page .mobile-commerce-header {
        background-position: center -50px !important;
        margin-top: -1px !important;
        padding-top: 0.35rem !important;
    }

    .home-page .mobile-commerce-header::before {
        display: none !important;
    }
}
