@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=Noto+Sans+SC:wght@400;500;700&display=swap');

body.market-home-page {
    font-family: 'Roboto', 'Open Sans', sans-serif;
    --home-header-bg: #ff4d2d;
    --home-bg-main: #edf1f6;
    --home-bg-soft: #f7f9fc;
    --home-bg-accent: #e7edf5;
    --home-card-bg: #ffffff;
    background:
        radial-gradient(1200px 280px at 50% -80px, #ffffff 0%, #f6f8fb 48%, transparent 100%),
        linear-gradient(180deg, var(--home-bg-soft) 0%, var(--home-bg-main) 100%);
    color: #222;
}

/* Force-hide local Laravel Debugbar badge and keep mobile bottom nav visible. */
#phpdebugbar,
.phpdebugbar,
.phpdebugbar-openhandler,
[id="phpdebugbar-openhandler"],
div.phpdebugbar-openhandler,
div.phpdebugbar-openhandler-overlay,
a.phpdebugbar-open-btn,
[id*="phpdebugbar"],
[class*="phpdebugbar"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

@media (max-width: 1199.98px) {
    .aiz-mobile-bottom-nav {
        display: block !important;
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        z-index: 1040 !important;
    }

    .aiz-mobile-bottom-nav > .row {
        display: flex !important;
        flex-wrap: nowrap !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .aiz-mobile-bottom-nav > .row > .col,
    .aiz-mobile-bottom-nav > .row > .col-auto {
        flex: 1 1 20% !important;
        max-width: 20% !important;
        padding-left: 4px !important;
        padding-right: 4px !important;
    }
}

@media (max-width: 991.98px) {
    .spx-top10-showcase {
        display: none !important;
    }
}

@media (max-width: 767.98px) {
    .footer-widget {
        padding-top: 1.25rem !important;
        padding-bottom: calc(5.5rem + env(safe-area-inset-bottom)) !important;
    }

    .footer-widget .container {
        padding-left: 14px;
        padding-right: 14px;
    }

    /* Mobile footer layout:
       row 1 -> logo/subscription (full width)
       row 2 -> contact info (full width)
       row 3 -> quick links + account (two cards) */
    .footer-widget .container > .row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        margin: 0;
    }

    .footer-widget .container > .row > [class*="col-"] {
        width: auto;
        max-width: none;
        padding: 0;
        margin: 0 !important;
    }

    .footer-widget .container > .row > [class*="col-"]:first-child,
    .footer-widget .container > .row > [class*="col-"]:nth-child(2) {
        grid-column: 1 / -1;
    }

    .footer-widget .container > .row > [class*="col-"]:nth-child(3),
    .footer-widget .container > .row > [class*="col-"]:nth-child(4) {
        grid-column: span 1;
    }

    .footer-widget .container > .row > [class*="col-"]:first-child .mt-4 {
        margin-top: 0 !important;
    }

    .footer-widget .container > .row > [class*="col-"]:first-child .my-3 {
        margin-top: 10px !important;
        margin-bottom: 12px !important;
    }

    .footer-widget .container > .row > [class*="col-"]:first-child form.form-inline {
        display: flex;
        width: 100%;
        align-items: stretch;
    }

    .footer-widget .container > .row > [class*="col-"]:first-child form .form-group {
        flex: 1 1 auto;
        min-width: 0;
    }

    .footer-widget .container > .row > [class*="col-"]:first-child form .form-control {
        width: 100%;
        height: 42px;
        border-top-left-radius: 22px;
        border-bottom-left-radius: 22px;
    }

    .footer-widget .container > .row > [class*="col-"]:first-child form .btn {
        height: 42px;
        padding: 0 18px;
        border-top-right-radius: 22px !important;
        border-bottom-right-radius: 22px !important;
    }

    .footer-widget .container > .row > [class*="col-"]:nth-child(n+2) > div {
        margin-top: 0 !important;
        min-height: 100%;
        padding: 14px 14px 12px;
        border-radius: 14px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
        text-align: left !important;
    }

    .footer-widget .container > .row > [class*="col-"]:nth-child(n+2) h4 {
        margin: 0 0 10px !important;
        padding: 0 0 8px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
        font-size: 15px !important;
        letter-spacing: 0.2px;
    }

    .footer-widget .container > .row > [class*="col-"]:nth-child(n+2) .list-unstyled {
        margin-bottom: 0;
    }

    .footer-widget .container > .row > [class*="col-"]:nth-child(n+2) .list-unstyled li {
        margin-bottom: 10px !important;
        line-height: 1.45;
    }

    .footer-widget .container > .row > [class*="col-"]:nth-child(n+2) .list-unstyled li:last-child {
        margin-bottom: 0 !important;
    }

    .footer-widget .container > .row > [class*="col-"]:nth-child(n+2) .list-unstyled a,
    .footer-widget .container > .row > [class*="col-"]:nth-child(n+2) .list-unstyled span {
        font-size: 14px;
    }

    .footer-widget .container > .row > [class*="col-"]:nth-child(2) .list-unstyled li {
        display: grid;
        grid-template-columns: 56px 1fr;
        gap: 6px;
        align-items: start;
    }

    .footer-widget .container > .row > [class*="col-"]:nth-child(2) .opacity-30 {
        opacity: 0.62 !important;
    }

    .footer-widget .container > .row > [class*="col-"]:nth-child(2) .opacity-70 {
        opacity: 0.92 !important;
        word-break: break-word;
    }
}

@media (max-width: 389.98px) {
    .footer-widget .container > .row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .footer-widget .container > .row > [class*="col-"]:first-child,
    .footer-widget .container > .row > [class*="col-"]:nth-child(2) {
        grid-column: 1 / -1;
    }

    .footer-widget .container > .row > [class*="col-"]:nth-child(3),
    .footer-widget .container > .row > [class*="col-"]:nth-child(4) {
        grid-column: span 1;
    }

    .footer-widget .container > .row > [class*="col-"]:nth-child(n+2) > div {
        padding: 12px 10px;
    }

    .footer-widget .container > .row > [class*="col-"]:nth-child(n+2) .list-unstyled li {
        display: block;
    }
}

@media (min-width: 1200px) {
    body.market-home-page .top-navbar .container,
    body.market-home-page header .container,
    body.market-home-page .spx-home .container,
    body.market-home-page .spx-list-page .container {
        max-width: 1380px;
    }
}

@media (min-width: 1600px) {
    body.market-home-page .top-navbar .container,
    body.market-home-page header .container,
    body.market-home-page .spx-home .container,
    body.market-home-page .spx-list-page .container {
        max-width: 1540px;
    }
}

@media (min-width: 1920px) {
    body.market-home-page .top-navbar .container,
    body.market-home-page header .container,
    body.market-home-page .spx-home .container,
    body.market-home-page .spx-list-page .container {
        max-width: 1640px;
    }
}

body.market-home-page .top-navbar {
    background: var(--home-header-bg) !important;
    border-bottom: none !important;
    min-height: 38px;
    margin-bottom: 0 !important;
    position: relative;
    z-index: 1120 !important;
    overflow: visible;
}

body.market-home-page .top-navbar .py-2 {
    padding-top: 0.35rem !important;
    padding-bottom: 0.35rem !important;
}

body.market-home-page .top-navbar .text-reset,
body.market-home-page .top-navbar a {
    color: #fff !important;
    opacity: 1 !important;
}

body.market-home-page .top-navbar .btn.btn-icon.btn-light {
    background: rgba(255, 255, 255, 0.14) !important;
    border-color: transparent !important;
}

body.market-home-page .top-navbar .border-right {
    border-right: 0 !important;
}

body.market-home-page .top-navbar .border-left {
    border-left: 0 !important;
}

body.market-home-page .top-navbar .dropdown-menu .dropdown-item,
body.market-home-page .top-navbar .dropdown-menu a {
    color: #333 !important;
}

body.market-home-page .top-navbar .dropdown-menu {
    z-index: 1150 !important;
}

body.market-home-page > .aiz-main-wrapper > header {
    border-bottom: none !important;
    box-shadow: none !important;
    background: var(--home-header-bg) !important;
    position: relative;
    z-index: 1080 !important;
}

body.market-home-page .logo-bar-area {
    background: var(--home-header-bg) !important;
    padding: 6px 0 8px;
    position: relative;
    z-index: 1090;
    overflow: visible;
}

body.market-home-page .logo-bar-area .d-block.py-20px {
    padding-top: 4px !important;
    padding-bottom: 4px !important;
}

body.market-home-page .logo-bar-area .front-header-search .input-group {
    background: #fff;
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

body.market-home-page .logo-bar-area .front-header-search .form-control {
    border: 0 !important;
    height: 40px;
    font-size: 14px;
}

body.market-home-page .logo-bar-area .front-header-search .btn.btn-primary {
    min-width: 62px;
    border-radius: 0;
    border: 0;
    background: #fb5533 !important;
}

body.market-home-page header .bg-white.border-top {
    background: var(--home-header-bg) !important;
    border-top: none !important;
    padding: 0 0 6px !important;
}

body.market-home-page header .bg-white.border-top a {
    color: #fff !important;
    opacity: 1 !important;
    font-weight: 500 !important;
}

body.market-home-page header .nav-box-icon,
body.market-home-page header .las,
body.market-home-page header .la {
    color: #fff;
}

body.market-home-page .nav-cart-box .nav-box-text,
body.market-home-page .nav-cart-box .nav-box-number,
body.market-home-page #compare .nav-box-text,
body.market-home-page #wishlist .nav-box-text {
    color: #fff !important;
}

@media (min-width: 992px) {
    body.market-home-page .top-navbar {
        min-height: 50px;
        font-size: 15px;
    }

    body.market-home-page .logo-bar-area {
        padding: 12px 0 16px;
    }

    body.market-home-page .logo-bar-area .col-auto.col-xl-3 {
        position: relative;
        z-index: 1080;
    }

    body.market-home-page .logo-bar-area .d-block.py-20px {
        position: relative;
        z-index: 1090;
        transform: translateY(-18px);
    }

    body.market-home-page .top-navbar .py-2 {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }

    body.market-home-page .top-navbar .dropdown-toggle,
    body.market-home-page .top-navbar .dropdown-item,
    body.market-home-page .top-navbar .text-reset,
    body.market-home-page .top-navbar a {
        font-size: 15px !important;
        line-height: 1.35;
    }

    body.market-home-page header .bg-white.border-top {
        padding: 4px 0 12px !important;
    }

    body.market-home-page .logo-bar-area .front-header-search .form-control {
        height: 46px;
        font-size: 16px;
    }

    body.market-home-page .logo-bar-area .front-header-search .btn.btn-primary {
        min-width: 70px;
    }

    body.market-home-page .logo-bar-area .front-header-search .btn.btn-primary i {
        font-size: 21px !important;
    }

    body.market-home-page .nav-cart-box .nav-box-text,
    body.market-home-page .nav-cart-box .nav-box-number,
    body.market-home-page #compare .nav-box-text,
    body.market-home-page #wishlist .nav-box-text {
        font-size: 16px;
        font-weight: 600;
        line-height: 1.2;
    }

    body.market-home-page header .bg-white.border-top a {
        font-size: 17px !important;
        line-height: 1.35;
    }

    body.market-home-page .spx-home .aiz-category-menu .all-category a,
    body.market-home-page .spx-home .aiz-category-menu .all-category span {
        font-size: 17px !important;
        font-weight: 700;
    }

    body.market-home-page .spx-home .aiz-category-menu .cat-name {
        font-size: 16px;
    }

    body.market-home-page .spx-home .aiz-category-menu .category-nav-element > a {
        font-size: 16px;
        line-height: 1.35;
    }
}

.spx-home {
    padding: 10px 0 22px;
    background: transparent;
}

.spx-hero-zone {
    margin-bottom: 16px;
    background: linear-gradient(180deg, #f8fafd 0%, #f1f4f8 100%);
    padding: 10px 0 14px;
}

.spx-hero-shell {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

body.market-home-page .spx-home .aiz-category-menu {
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06) !important;
    border: 1px solid #efefef;
    height: 500px;
    overflow: hidden;
    background: #fff;
}

body.market-home-page .spx-home .aiz-category-menu .all-category {
    background: linear-gradient(135deg, #5f39ff 0%, #7d2dff 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 6px 6px 0 0;
    color: #fff;
}

body.market-home-page .spx-home .aiz-category-menu .all-category a,
body.market-home-page .spx-home .aiz-category-menu .all-category span {
    color: #fff !important;
}

body.market-home-page .spx-home .aiz-category-menu .cat-name {
    font-size: 13px;
}

body.market-home-page .spx-home .aiz-category-menu .categories {
    height: calc(500px - 58px);
    overflow-y: auto;
}

body.market-home-page .spx-home .aiz-category-menu .category-nav-element > a {
    margin: 0;
    border-radius: 0;
    min-height: 44px;
    display: flex !important;
    align-items: center;
}

body.market-home-page .spx-home .aiz-category-menu .category-nav-element > a:hover {
    background: #fff5f3;
}

.spx-hero-right {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.spx-main-slider {
    border-radius: 6px;
    overflow: hidden;
    height: 500px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.spx-main-slider .carousel-box img {
    border-radius: 6px;
    height: 500px !important;
}

.spx-hero-right.spx-hero-right--with-sub .spx-main-slider {
    height: 320px;
}

.spx-hero-right.spx-hero-right--with-sub .spx-main-slider .carousel-box img {
    height: 320px !important;
}

.spx-hero-sub-banners {
    margin: 0 -5px;
}

.spx-hero-sub-banners > [class*='col-'] {
    padding-left: 5px;
    padding-right: 5px;
}

.spx-hero-sub-banners__item {
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    background: var(--home-card-bg);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    height: 170px;
}

.spx-hero-sub-banners__item img {
    height: 170px;
    object-fit: cover;
}

.spx-shortcut-zone {
    margin-top: -4px;
}

.spx-shortcut-row {
    background: var(--home-card-bg);
    border: 1px solid #f0f0f0;
    border-radius: 3px;
    padding: 10px 8px 8px;
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 4px;
}

.spx-shortcut-item {
    min-height: 88px;
    border-radius: 2px;
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.spx-shortcut-item i {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    color: #ee4d2d;
    background: #fff1ed;
}

.spx-shortcut-item span {
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    line-height: 1.25;
}

.spx-shortcut-item:hover {
    background: #fff8f6;
    border-color: #ffe1d8;
    text-decoration: none;
    color: #333;
}

.spx-category-grid {
    margin-top: 10px;
    border: 1px solid #f2f2f2;
    border-radius: 2px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    background: #fff;
}

.spx-category-grid__item {
    min-height: 104px;
    padding: 8px 6px;
    text-align: center;
    border-right: 1px solid #f5f5f5;
    border-bottom: 1px solid #f5f5f5;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.spx-category-grid__item:nth-child(5n) {
    border-right: none;
}

.spx-category-grid__item:hover {
    background: #fff8f6;
}

.spx-category-grid__img {
    width: 54px;
    height: 54px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    background: #fafafa;
}

.spx-category-grid__item span {
    font-size: 12px;
    font-weight: 500;
    color: #333;
}

.spx-deals-panel {
    border: 1px solid #f0f0f0;
    border-radius: 2px;
    background: #fff;
    overflow: hidden;
    height: 100%;
}

.spx-deals-panel__head {
    min-height: 40px;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(120deg, #fb5533 0%, #ff6f47 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.spx-deals-panel__tag {
    background: rgba(0, 0, 0, 0.16);
    border-radius: 999px;
    font-size: 10px;
    min-height: 20px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    font-weight: 700;
}

.spx-deal-item {
    border: 1px solid #f2f2f2;
    border-radius: 2px;
    background: #fff;
    transition: border-color 0.2s ease;
}

.spx-deal-item:hover {
    border-color: #ffd8d0;
}

.spx-promo-strip__item {
    border-radius: 2px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    background: var(--home-card-bg);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.spx-section-card {
    background: var(--home-card-bg);
    border-radius: 2px;
    border: 1px solid #f0f0f0;
    padding: 14px;
}

.spx-section-card--flash {
    border-top: 3px solid #ee4d2d;
}

.spx-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.spx-section-head__title {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.spx-section-head__title h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #333;
    letter-spacing: 0;
    text-transform: none;
}

.spx-section-head__title span {
    min-height: 22px;
    padding: 0 8px;
    border-radius: 2px;
    display: inline-flex;
    align-items: center;
    background: #fff1ed;
    color: #ee4d2d;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.spx-section-card--flash .spx-section-head__title h3 {
    color: #ee4d2d;
    text-transform: uppercase;
    font-size: 20px;
    font-weight: 800;
}

.spx-section-head__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.spx-link-btn {
    min-height: 30px;
    border-radius: 2px;
    background: #ee4d2d;
    color: #fff !important;
    border: 1px solid #ee4d2d;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.spx-link-btn--light {
    background: #fff;
    color: #ee4d2d !important;
    border-color: #ffd0c4;
}

.spx-link-btn:hover {
    color: #fff !important;
    text-decoration: none;
}

.spx-link-btn--light:hover {
    color: #ee4d2d !important;
}

body.market-home-page .aiz-card-box {
    border-radius: 2px !important;
    border: 1px solid #f0f0f0 !important;
    box-shadow: none !important;
    transition: transform 0.18s ease, border-color 0.18s ease;
    margin-top: 0 !important;
    margin-bottom: 10px !important;
}

body.market-home-page .aiz-card-box:hover {
    transform: translateY(-1px);
    border-color: #ee4d2d !important;
}

body.market-home-page .aiz-card-box .badge-custom {
    background: #ee4d2d;
}

body.market-home-page .aiz-card-box .fw-700.text-primary {
    color: #ee4d2d !important;
}

body.market-home-page .spx-product-price-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

body.market-home-page .spx-product-price-row del {
    font-size: 12px;
}

body.market-home-page .spx-product-price-row .fw-700.text-primary {
    font-size: 17px;
}

body.market-home-page .spx-product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 11px;
    color: #777;
}

body.market-home-page .spx-product-meta__sold {
    color: #555;
    font-weight: 600;
}

body.market-home-page .aiz-card-box .aiz-p-hov-icon a {
    border-radius: 2px;
}

body.market-home-page .spx-home .half-outside-arrow .slick-prev,
body.market-home-page .spx-home .half-outside-arrow .slick-next {
    width: 28px;
    height: 44px;
    border-radius: 2px;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
}

body.market-home-page .spx-home .half-outside-arrow .slick-prev:before,
body.market-home-page .spx-home .half-outside-arrow .slick-next:before {
    color: #fff;
}

body.market-home-page .spx-home .aiz-carousel.spx-free-scroll {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    cursor: grab;
    padding-bottom: 6px;
}

body.market-home-page .spx-home .aiz-carousel.spx-free-scroll > * {
    display: block !important;
}

body.market-home-page .spx-home .aiz-carousel.spx-free-scroll .carousel-box {
    flex: 0 0 calc((100% - 50px) / 6);
    max-width: calc((100% - 50px) / 6);
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body.market-home-page .spx-home .aiz-carousel.spx-free-scroll.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

body.market-home-page .spx-home .aiz-carousel.spx-free-scroll a,
body.market-home-page .spx-home .aiz-carousel.spx-free-scroll img {
    user-select: none;
}

body.market-home-page .spx-home .aiz-carousel.spx-free-scroll img {
    -webkit-user-drag: none;
}

@media (max-width: 1499px) {
    body.market-home-page .spx-home .aiz-carousel.spx-free-scroll .carousel-box {
        flex: 0 0 calc((100% - 40px) / 5);
        max-width: calc((100% - 40px) / 5);
    }
}

@media (max-width: 1199px) {
    body.market-home-page .spx-home .aiz-carousel.spx-free-scroll .carousel-box {
        flex: 0 0 calc((100% - 30px) / 4);
        max-width: calc((100% - 30px) / 4);
    }
}

@media (max-width: 991px) {
    body.market-home-page .spx-home .aiz-carousel.spx-free-scroll .carousel-box {
        flex: 0 0 calc((100% - 20px) / 3);
        max-width: calc((100% - 20px) / 3);
    }
}

@media (max-width: 767px) {
    body.market-home-page .spx-home .aiz-carousel.spx-free-scroll .carousel-box {
        flex: 0 0 calc((100% - 10px) / 2);
        max-width: calc((100% - 10px) / 2);
    }
}

.spx-seller-card {
    border-radius: 2px;
    border: 1px solid #f0f0f0 !important;
    background: #fff;
}

.spx-seller-card__btn {
    border-radius: 2px;
    font-weight: 600;
}

.spx-tile-group {
    border: 1px solid #f0f0f0;
    border-radius: 2px;
    padding: 10px;
}

.spx-mini-tile {
    border: 1px solid #f2f2f2;
    border-radius: 2px;
    min-height: 74px;
    padding: 8px;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 14px;
    gap: 8px;
    align-items: center;
    color: #333;
    text-decoration: none;
}

.spx-mini-tile:hover {
    text-decoration: none;
    border-color: #ffd8d0;
    background: #fff8f6;
}

.spx-mini-tile__media {
    width: 52px;
    height: 52px;
    border-radius: 2px;
    overflow: hidden;
    background: #fafafa;
}

.spx-mini-tile__title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    color: #333;
}

.spx-mini-tile i {
    color: #ee4d2d;
    font-size: 16px;
}

body.market-home-page.market-list-page .spx-list-page {
    padding-bottom: 8px;
}

body.market-home-page.market-list-page .spx-catalog-sidebar .collapse-sidebar {
    overflow: visible;
}

body.market-home-page.market-list-page .spx-filter-card {
    border-radius: 2px !important;
    border: 1px solid #f0f0f0;
    box-shadow: none !important;
}

body.market-home-page.market-list-page .spx-filter-card .border-bottom {
    border-color: #f2f2f2 !important;
}

body.market-home-page.market-list-page .spx-filter-card .fs-15 {
    color: #222;
    font-size: 15px !important;
}

body.market-home-page.market-list-page .spx-filter-card .list-unstyled li a {
    color: #444 !important;
    transition: color 0.2s ease;
}

body.market-home-page.market-list-page .spx-filter-card .list-unstyled li a:hover {
    color: #ee4d2d !important;
    text-decoration: none;
}

body.market-home-page.market-list-page .spx-catalog-main {
    background: var(--home-card-bg);
    border: 1px solid #f0f0f0;
    border-radius: 2px;
    padding: 14px;
    min-height: 420px;
}

body.market-home-page.market-list-page .spx-catalog-breadcrumb {
    margin-bottom: 10px;
}

body.market-home-page.market-list-page .spx-catalog-toolbar {
    margin-bottom: 2px;
}

body.market-home-page.market-list-page .spx-catalog-toolbar h1 {
    font-size: 28px;
    font-weight: 700 !important;
    color: #202124;
    margin-bottom: 10px;
}

body.market-home-page.market-list-page .spx-toolbar-row label {
    font-size: 12px;
    font-weight: 600;
    color: #7a7f87;
    margin-bottom: 6px !important;
}

body.market-home-page.market-list-page .spx-toolbar-row .bootstrap-select .dropdown-toggle,
body.market-home-page.market-list-page .spx-toolbar-row .form-control {
    min-height: 38px;
    border-radius: 18px;
    border-color: #e9edf3;
    font-size: 14px;
}

body.market-home-page.market-list-page .spx-product-grid {
    margin-top: 8px;
}

body.market-home-page.market-list-page .spx-product-grid > .col {
    margin-bottom: 8px;
}

body.market-home-page.market-list-page .aiz-pagination {
    margin-top: 18px !important;
}

body.market-home-page.market-list-page .aiz-pagination .pagination .page-item .page-link {
    border-radius: 2px !important;
    border-color: #f0f0f0;
    color: #666;
}

body.market-home-page.market-list-page .aiz-pagination .pagination .page-item.active .page-link {
    background: #ee4d2d;
    border-color: #ee4d2d;
    color: #fff;
}

@media (min-width: 1200px) {
    body.market-home-page.market-list-page .spx-product-list-page .spx-catalog-layout {
        display: flex;
        flex-wrap: nowrap;
        align-items: flex-start;
    }

    body.market-home-page.market-list-page .spx-product-list-page .spx-catalog-sidebar-col {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 300px;
        flex: 0 0 300px;
        max-width: 300px;
        margin-bottom: 0;
        padding-right: 8px;
    }

    body.market-home-page.market-list-page .spx-product-list-page .spx-catalog-main {
        -webkit-box-flex: 1;
        -ms-flex: 1 1 auto;
        flex: 1 1 auto;
        max-width: calc(100% - 300px);
        padding-left: 8px;
    }

    body.market-home-page.market-list-page .spx-product-list-page .spx-catalog-sidebar .collapse-sidebar {
        display: block;
        background: transparent;
        border: 0;
        border-radius: 0;
        overflow: visible;
    }

    body.market-home-page.market-list-page .spx-product-list-page .spx-catalog-sidebar .collapse-sidebar > .spx-filter-card {
        margin-bottom: 10px !important;
        height: auto;
        border: 1px solid #f0f0f0 !important;
        border-radius: 2px !important;
        box-shadow: none !important;
        background: #fff;
    }

    body.market-home-page.market-list-page .spx-product-list-page .spx-catalog-sidebar .collapse-sidebar > .accordion {
        margin: 0 !important;
        padding: 0;
        list-style: none;
        border: 1px solid #f0f0f0;
        border-radius: 2px;
        background: #fff;
    }

    body.market-home-page.market-list-page .spx-product-list-page .spx-catalog-sidebar .collapse-sidebar > .accordion > li > a {
        text-decoration: none;
    }

    body.market-home-page.market-list-page .spx-product-list-page .spx-catalog-sidebar .collapse-sidebar > .accordion > li > a .link {
        min-height: 64px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 20px;
        border: 0;
        border-radius: 0;
        background: #fff;
    }
}

body.market-home-page.market-list-page .spx-category-card {
    border: 1px solid #f0f0f0;
    border-radius: 2px !important;
    box-shadow: none !important;
    overflow: hidden;
}

body.market-home-page.market-list-page .spx-category-card__title {
    background: #fff;
    color: #222;
    font-size: 15px !important;
}

body.market-home-page.market-list-page .spx-category-card__body a:hover {
    color: #ee4d2d !important;
    text-decoration: none;
}

body.market-home-page.market-list-page .spx-brand-shell {
    border: 1px solid #f0f0f0;
    border-radius: 2px !important;
    box-shadow: none !important;
}

body.market-home-page.market-list-page .spx-brand-card {
    border-radius: 2px !important;
    border: 1px solid #f0f0f0 !important;
    transition: border-color 0.18s ease, transform 0.18s ease;
}

body.market-home-page.market-list-page .spx-brand-card:hover {
    border-color: #ee4d2d !important;
    transform: translateY(-1px);
    box-shadow: none !important;
}

body.market-home-page.market-list-page .spx-shop-grid .spx-seller-card {
    border: 1px solid #f0f0f0 !important;
    border-radius: 2px !important;
    box-shadow: none !important;
}

body.market-home-page.market-list-page .spx-shop-grid .spx-seller-card:hover {
    border-color: #ee4d2d !important;
    box-shadow: none !important;
}

body.market-home-page.market-list-page .spx-simple-list-shell {
    background: var(--home-card-bg);
    border: 1px solid #f0f0f0;
    border-radius: 2px;
    padding: 16px 14px 10px;
}

body.market-home-page.market-list-page .spx-simple-list-title {
    margin-top: 4px !important;
    margin-bottom: 18px !important;
    font-size: 24px;
    color: #202124;
}

@media (max-width: 1199.98px) {
    body.market-home-page .spx-home .aiz-category-menu,
    .spx-main-slider {
        height: 430px;
    }

    body.market-home-page .spx-home .aiz-category-menu .categories {
        height: calc(430px - 58px);
    }

    .spx-main-slider .carousel-box img {
        height: 430px !important;
    }

    .spx-hero-right.spx-hero-right--with-sub .spx-main-slider,
    .spx-hero-right.spx-hero-right--with-sub .spx-main-slider .carousel-box img {
        height: 280px !important;
    }

    .spx-hero-right.spx-hero-right--with-sub .spx-hero-sub-banners__item,
    .spx-hero-right.spx-hero-right--with-sub .spx-hero-sub-banners__item img {
        height: 140px;
    }

    .spx-category-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .spx-shortcut-row {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    body.market-home-page .top-navbar {
        display: none;
    }

    body.market-home-page ._e9b.astro-sy6zno2k,
    body.market-home-page .stylusid-anniversary {
        display: none !important;
    }

    body.market-home-page .spx-hero-right.spx-hero-right--with-sub .spx-hero-sub-banners {
        display: none !important;
    }

    body.market-home-page .logo-bar-area .col-auto.col-xl-3 {
        padding-right: 8px !important;
    }

    body.market-home-page .logo-bar-area .d-block.py-20px {
        padding-top: 2px !important;
        padding-bottom: 2px !important;
        margin-right: 8px !important;
    }

    body.market-home-page .logo-bar-area .d-block.py-20px img {
        height: 34px !important;
        width: auto !important;
        max-width: 164px;
    }

    body.market-home-page .spx-mobile-lang-switch {
        position: relative;
    }

    body.market-home-page .spx-mobile-lang-switch__toggle {
        min-height: 34px;
        padding: 5px 8px;
        border: 1px solid rgba(255, 255, 255, 0.38);
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.12);
        display: inline-flex;
        align-items: center;
        gap: 4px;
        color: #fff !important;
        text-decoration: none;
    }

    body.market-home-page .spx-mobile-lang-switch__toggle img {
        width: 14px;
        height: 10px;
        border-radius: 2px;
        object-fit: cover;
    }

    body.market-home-page .spx-mobile-lang-switch__label {
        max-width: 52px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 12px;
        font-weight: 700;
        line-height: 1;
    }

    body.market-home-page .spx-mobile-lang-switch .las {
        font-size: 12px;
    }

    body.market-home-page .spx-mobile-lang-switch .dropdown-menu {
        min-width: 164px;
        border-radius: 10px;
        padding: 5px 0;
        margin-top: 8px;
    }

    body.market-home-page .spx-mobile-lang-switch .dropdown-item {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 13px;
        color: #333 !important;
    }

    body.market-home-page .spx-mobile-lang-switch .dropdown-item img {
        width: 16px;
        height: 12px;
        border-radius: 2px;
        object-fit: cover;
    }

    body.market-home-page > .aiz-main-wrapper > header {
        position: sticky;
        top: 0;
        z-index: 1030;
    }

    body.market-home-page header .bg-white.border-top {
        display: none;
    }

    .spx-main-slider,
    .spx-main-slider .carousel-box img {
        height: 300px !important;
    }

    .spx-hero-right.spx-hero-right--with-sub .spx-main-slider,
    .spx-hero-right.spx-hero-right--with-sub .spx-main-slider .carousel-box img {
        height: 210px !important;
    }

    .spx-hero-right.spx-hero-right--with-sub .spx-hero-sub-banners__item,
    .spx-hero-right.spx-hero-right--with-sub .spx-hero-sub-banners__item img {
        height: 90px;
    }

    .spx-section-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .spx-section-head__actions {
        width: 100%;
    }

    body.market-home-page.market-list-page .spx-catalog-main {
        padding: 12px;
    }

    body.market-home-page.market-list-page .spx-catalog-toolbar h1 {
        font-size: 22px;
    }
}

@media (max-width: 767.98px) {
    .spx-home {
        padding-top: 8px;
    }

    .spx-featured-sellers .spx-section-card {
        padding: 12px;
    }

    .spx-featured-sellers .spx-section-head {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        margin-bottom: 10px;
    }

    .spx-featured-sellers .spx-section-head__title {
        gap: 6px;
    }

    .spx-featured-sellers .spx-section-head__title h3 {
        font-size: 15px;
    }

    .spx-featured-sellers .spx-section-head__title span {
        min-height: 20px;
        padding: 0 7px;
        font-size: 10px;
        white-space: nowrap;
    }

    .spx-featured-sellers .spx-link-btn {
        min-height: 32px;
        padding: 0 12px;
        font-size: 12px;
        border-radius: 8px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .spx-seller-mobile-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .spx-seller-mobile-card {
        border: 1px solid #f0f0f0;
        border-radius: 12px;
        background: #fff;
        padding: 10px;
        min-height: 160px;
        display: flex;
        flex-direction: column;
        gap: 8px;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    }

    .spx-seller-mobile-card__top {
        display: flex;
        align-items: center;
        gap: 8px;
        text-decoration: none;
        min-height: 44px;
    }

    .spx-seller-mobile-card__logo {
        width: 44px;
        height: 44px;
        border-radius: 10px;
        overflow: hidden;
        border: 1px solid #f2f2f2;
        background: #fff;
        flex: 0 0 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .spx-seller-mobile-card__logo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .spx-seller-mobile-card__name {
        color: #222;
        font-size: 14px;
        font-weight: 700;
        line-height: 1.25;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        word-break: break-word;
    }

    .spx-seller-mobile-card__rating {
        min-height: 18px;
    }

    .spx-seller-mobile-card__rating i {
        font-size: 13px;
    }

    .spx-seller-mobile-card__btn {
        margin-top: auto;
        min-height: 34px;
        border-radius: 999px;
        border: 1px solid #d8c6ff;
        background: linear-gradient(135deg, #f5edff 0%, #ede3ff 100%);
        color: #6228ff !important;
        font-size: 13px;
        font-weight: 700;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
        text-decoration: none;
        white-space: nowrap;
        padding: 0 12px;
    }

    .spx-seller-mobile-card__btn:hover {
        color: #6228ff !important;
        text-decoration: none;
        background: linear-gradient(135deg, #efe2ff 0%, #e6d8ff 100%);
    }

    .spx-top10-showcase .spx-section-card {
        background: transparent;
        border: 0;
        padding: 0;
    }

    .spx-top10-showcase .row.gutters-20 {
        margin-left: 0;
        margin-right: 0;
        gap: 12px;
    }

    .spx-top10-showcase .row.gutters-20 > [class*='col-'] {
        padding-left: 0;
        padding-right: 0;
        margin-bottom: 0 !important;
    }

    .spx-top10-showcase .spx-top10-group {
        border: 1px solid #e9edf4;
        border-radius: 14px;
        padding: 12px;
        background: #fff;
        box-shadow: 0 1px 3px rgba(16, 24, 40, 0.05);
    }

    .spx-top10-showcase .spx-top10-group .spx-section-head {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        margin-bottom: 10px;
    }

    .spx-top10-showcase .spx-top10-group .spx-section-head__title h3 {
        font-size: 15px;
        font-weight: 700;
        margin-bottom: 0;
    }

    .spx-top10-showcase .spx-top10-group .spx-link-btn {
        min-height: 32px;
        padding: 0 12px;
        border-radius: 9px;
        font-size: 12px;
        font-weight: 700;
        white-space: nowrap;
    }

    .spx-top10-showcase .spx-top10-group .row.gutters-8 {
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .spx-top10-showcase .spx-top10-group .row.gutters-8 > [class*='col-'] {
        flex: 0 0 100%;
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    .spx-top10-showcase .spx-top10-group .spx-mini-tile {
        min-height: 66px;
        padding: 8px 10px;
        border-radius: 10px;
        border: 1px solid #eef1f5;
        background: #fff;
        grid-template-columns: 46px minmax(0, 1fr) 22px;
        gap: 10px;
    }

    .spx-top10-showcase .spx-top10-group .spx-mini-tile__media {
        width: 46px;
        height: 46px;
        border-radius: 10px;
        background: #f6f8fb;
    }

    .spx-top10-showcase .spx-top10-group .spx-mini-tile__title {
        font-size: 15px;
        font-weight: 700;
        line-height: 1.3;
    }

.spx-top10-showcase .spx-top10-group .spx-mini-tile i {
    width: 22px;
    height: 22px;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: #f1e8ff;
    color: #6f42ff;
    font-size: 14px;
}

.spx-top10-showcase--categories-only .spx-section-card {
    border: 1px solid #dbe6f6;
    border-radius: 16px;
    padding: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 10px 24px rgba(26, 45, 78, 0.08);
}

.spx-top10-showcase--categories-only .spx-top10-group {
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.spx-top10-showcase--categories-only .spx-top10-group .spx-section-head {
    margin-bottom: 12px;
}

.spx-top10-showcase--categories-only .spx-top10-group .spx-section-head__title h3 {
    font-size: 34px;
    line-height: 1.15;
    font-weight: 800;
}

.spx-top10-showcase--categories-only .spx-top10-group .spx-link-btn {
    min-height: 34px;
    padding: 0 14px;
    border-radius: 10px;
    font-size: 13px;
}

.spx-top10-showcase--categories-only .spx-top10-category-grid {
    margin-left: -5px;
    margin-right: -5px;
}

.spx-top10-showcase--categories-only .spx-top10-category-grid > [class*='col-'] {
    padding-left: 5px;
    padding-right: 5px;
    margin-bottom: 10px;
}

.spx-top10-showcase--categories-only .spx-mini-tile {
    min-height: 74px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #e0e9f7;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(24, 43, 77, 0.06);
    grid-template-columns: 54px minmax(0, 1fr) 24px;
    gap: 10px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.spx-top10-showcase--categories-only .spx-mini-tile:hover {
    transform: translateY(-2px);
    border-color: #cfdcf2;
    box-shadow: 0 8px 16px rgba(24, 43, 77, 0.1);
}

.spx-top10-showcase--categories-only .spx-mini-tile__media {
    width: 54px;
    height: 54px;
    border-radius: 11px;
    background: #f4f8ff;
}

.spx-top10-showcase--categories-only .spx-mini-tile__title {
    font-size: 20px;
    line-height: 1.28;
    font-weight: 700;
}

.spx-top10-showcase--categories-only .spx-mini-tile i {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: #edf3ff;
    color: #3f67d0;
    font-size: 15px;
}

@media (max-width: 1399.98px) {
    .spx-top10-showcase--categories-only .spx-top10-group .spx-section-head__title h3 {
        font-size: 28px;
    }

    .spx-top10-showcase--categories-only .spx-mini-tile__title {
        font-size: 17px;
    }
}

@media (max-width: 1199.98px) {
    .spx-top10-showcase--categories-only .spx-top10-group .spx-section-head__title h3 {
        font-size: 24px;
    }

    .spx-top10-showcase--categories-only .spx-mini-tile {
        min-height: 70px;
        grid-template-columns: 50px minmax(0, 1fr) 22px;
    }

    .spx-top10-showcase--categories-only .spx-mini-tile__media {
        width: 50px;
        height: 50px;
    }

    .spx-top10-showcase--categories-only .spx-mini-tile__title {
        font-size: 16px;
    }
}

.spx-hero-zone {
    background: linear-gradient(180deg, #f8fafd 0%, #f1f4f8 100%);
        padding-top: 8px;
    }

    .spx-main-slider,
    .spx-main-slider .carousel-box img {
        height: 210px !important;
    }

    .spx-hero-right.spx-hero-right--with-sub .spx-main-slider,
    .spx-hero-right.spx-hero-right--with-sub .spx-main-slider .carousel-box img {
        height: 210px !important;
    }

    .spx-hero-right.spx-hero-right--with-sub .spx-hero-sub-banners {
        margin: 0 -4px;
    }

    .spx-hero-right.spx-hero-right--with-sub .spx-hero-sub-banners > [class*='col-'] {
        padding-left: 4px;
        padding-right: 4px;
    }

    .spx-hero-right.spx-hero-right--with-sub .spx-hero-sub-banners__item,
    .spx-hero-right.spx-hero-right--with-sub .spx-hero-sub-banners__item img {
        height: 70px;
    }

    .spx-shortcut-row {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        padding: 8px 6px;
    }

    .spx-shortcut-item {
        min-height: 76px;
        gap: 6px;
    }

    .spx-shortcut-item i {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .spx-shortcut-item span {
        font-size: 11px;
    }

    .spx-category-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .spx-category-grid__item {
        min-height: 88px;
        padding: 6px 4px;
    }

    .spx-category-grid__img {
        width: 44px;
        height: 44px;
    }

    .spx-category-grid__item span {
        font-size: 11px;
    }

    .spx-section-card {
        padding: 10px;
    }

    .spx-section-head__title h3 {
        font-size: 16px;
    }

    .spx-mini-tile {
        grid-template-columns: 46px minmax(0, 1fr) 12px;
        min-height: 64px;
        padding: 6px;
    }

    .spx-mini-tile__media {
        width: 46px;
        height: 46px;
    }

    body.market-home-page.market-list-page .spx-list-page {
        padding-top: 6px !important;
    }

    body.market-home-page.market-list-page .spx-shop-list-page {
        padding-top: 10px !important;
        padding-bottom: 8px;
    }

    body.market-home-page.market-list-page .spx-shop-list-page > .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    body.market-home-page.market-list-page .spx-shop-list-page .spx-shop-list-grid {
        margin-left: -2px;
        margin-right: -2px;
    }

    body.market-home-page.market-list-page .spx-shop-list-page .spx-shop-list-grid > .col {
        padding-left: 4px;
        padding-right: 4px;
    }

    body.market-home-page.market-list-page .spx-shop-list-page .spx-shop-list-card {
        display: flex;
        align-items: center;
        border-radius: 14px !important;
        border: 1px solid #e8edf5 !important;
        background: #fff;
        box-shadow: 0 2px 8px rgba(16, 24, 40, 0.06) !important;
        margin-bottom: 10px !important;
        overflow: hidden;
    }

    body.market-home-page.market-list-page .spx-shop-list-page .spx-shop-list-card:hover {
        border-color: #ded6ff !important;
        box-shadow: 0 3px 10px rgba(16, 24, 40, 0.08) !important;
    }

    body.market-home-page.market-list-page .spx-shop-list-page .spx-shop-list-card__media-col {
        flex: 0 0 96px;
        max-width: 96px;
    }

    body.market-home-page.market-list-page .spx-shop-list-page .spx-shop-list-card__media {
        padding: 10px !important;
    }

    body.market-home-page.market-list-page .spx-shop-list-page .spx-shop-list-card__img {
        width: 76px !important;
        height: 76px;
        border-radius: 12px;
        border: 1px solid #edf1f6;
        background: #f6f8fb;
        object-fit: cover;
    }

    body.market-home-page.market-list-page .spx-shop-list-page .spx-shop-list-card__body-col {
        flex: 1 1 auto;
        max-width: calc(100% - 96px);
        border-left: 0 !important;
    }

    body.market-home-page.market-list-page .spx-shop-list-page .spx-shop-list-card__body {
        padding: 10px 12px 10px 4px !important;
    }

    body.market-home-page.market-list-page .spx-shop-list-page .spx-shop-list-card__title {
        margin-bottom: 4px !important;
        font-size: 17px;
        line-height: 1.3;
    }

    body.market-home-page.market-list-page .spx-shop-list-page .spx-shop-list-card__title a {
        display: block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    body.market-home-page.market-list-page .spx-shop-list-page .spx-shop-list-card__rating {
        margin-bottom: 8px !important;
        min-height: 18px;
    }

    body.market-home-page.market-list-page .spx-shop-list-page .spx-shop-list-card__rating i {
        font-size: 13px;
    }

    body.market-home-page.market-list-page .spx-shop-list-page .spx-shop-list-card__btn {
        min-height: 36px;
        padding: 0 14px;
        border-radius: 999px;
        border: 1px solid #d9c6ff;
        background: linear-gradient(135deg, #f5edff 0%, #ece1ff 100%);
        color: #6025ff !important;
        font-size: 13px;
        font-weight: 700;
        display: inline-flex;
        align-items: center;
        gap: 4px;
        text-decoration: none;
    }

    body.market-home-page.market-list-page .spx-shop-list-page .spx-shop-list-card__btn:hover {
        color: #6025ff !important;
        background: linear-gradient(135deg, #eee2ff 0%, #e4d5ff 100%);
        text-decoration: none;
    }

    body.market-home-page.market-list-page .spx-catalog-main {
        padding: 10px;
    }

    body.market-home-page.market-list-page .spx-catalog-toolbar h1 {
        font-size: 19px;
        margin-bottom: 8px;
    }

    body.market-home-page.market-list-page .spx-toolbar-row .bootstrap-select .dropdown-toggle,
    body.market-home-page.market-list-page .spx-toolbar-row .form-control {
        border-radius: 16px;
        min-height: 34px;
    }

    body.market-home-page.market-list-page .spx-simple-list-shell {
        padding: 12px 10px 8px;
    }

    body.market-home-page.market-list-page .spx-simple-list-title {
        font-size: 20px;
    }
}

@media (max-width: 359.98px) {
    .spx-seller-mobile-grid {
        grid-template-columns: 1fr;
    }

    body.market-home-page.market-list-page .spx-shop-list-page .spx-shop-list-card__media-col {
        flex: 0 0 84px;
        max-width: 84px;
    }

    body.market-home-page.market-list-page .spx-shop-list-page .spx-shop-list-card__body-col {
        max-width: calc(100% - 84px);
    }

    body.market-home-page.market-list-page .spx-shop-list-page .spx-shop-list-card__img {
        width: 64px !important;
        height: 64px;
    }

    body.market-home-page.market-list-page .spx-shop-list-page .spx-shop-list-card__title {
        font-size: 15px;
    }

    body.market-home-page.market-list-page .spx-shop-list-page .spx-shop-list-card__btn {
        min-height: 34px;
        font-size: 12px;
        padding: 0 12px;
    }
}

/* Product details page - Shopee inspired */
body.spx-product-page {
    --spx-red: #ee4d2d;
    --spx-red-dark: #d73211;
    --spx-bg: #f5f5f5;
    --spx-card: #ffffff;
    --spx-border: #f0f0f0;
    --spx-text: #222222;
    --spx-muted: #757575;
    font-family: 'Roboto', 'Open Sans', sans-serif;
    background: var(--spx-bg);
    color: var(--spx-text);
}

@media (min-width: 1200px) {
    body.spx-product-page .top-navbar .container,
    body.spx-product-page header .container,
    body.spx-product-page .container {
        max-width: 1220px;
    }
}

body.spx-product-page .top-navbar,
body.spx-product-page > .aiz-main-wrapper > header,
body.spx-product-page .logo-bar-area,
body.spx-product-page header .bg-white.border-top {
    background: var(--spx-red) !important;
    border: none !important;
    box-shadow: none !important;
}

body.spx-product-page .top-navbar .text-reset,
body.spx-product-page .top-navbar a,
body.spx-product-page header .bg-white.border-top a,
body.spx-product-page .nav-cart-box .nav-box-text,
body.spx-product-page .nav-cart-box .nav-box-number,
body.spx-product-page #compare .nav-box-text,
body.spx-product-page #wishlist .nav-box-text,
body.spx-product-page header .las,
body.spx-product-page header .la,
body.spx-product-page header .nav-box-icon {
    color: #fff !important;
    opacity: 1 !important;
}

body.spx-product-page .top-navbar .dropdown-menu .dropdown-item,
body.spx-product-page .top-navbar .dropdown-menu a {
    color: #333 !important;
}

body.spx-product-page .logo-bar-area {
    padding-top: 6px;
    padding-bottom: 8px;
}

body.spx-product-page .logo-bar-area .front-header-search .input-group {
    background: #fff;
    border-radius: 2px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

body.spx-product-page .logo-bar-area .front-header-search .form-control {
    border: 0 !important;
    height: 40px;
    font-size: 15px;
}

body.spx-product-page .logo-bar-area .front-header-search .btn.btn-primary {
    min-width: 68px;
    border-radius: 0;
    border: 0;
    background: #fb5533 !important;
}

body.spx-product-page .logo-bar-area .category-menu-icon-box {
    display: none !important;
}

body.spx-product-page .spx-pd-hero {
    padding-top: 12px !important;
    margin-bottom: 12px !important;
}

body.spx-product-page .spx-pd-hero-card,
body.spx-product-page .spx-pd-main-card,
body.spx-product-page .spx-pd-shop-card,
body.spx-product-page .spx-pd-top-card,
body.spx-product-page .spx-pd-related-card,
body.spx-product-page .spx-pd-query-card {
    background: var(--spx-card) !important;
    border: 1px solid var(--spx-border);
    border-radius: 2px !important;
    box-shadow: none !important;
}

body.spx-product-page .spx-pd-hero-card {
    padding: 20px !important;
}

body.spx-product-page .spx-pd-title {
    font-size: 21px !important;
    line-height: 1.35;
    font-weight: 500 !important;
    color: #222;
    margin-bottom: 10px !important;
}

body.spx-product-page .spx-pd-gallery-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

body.spx-product-page .spx-pd-main-gallery {
    width: 100%;
    aspect-ratio: 1 / 1;
}

body.spx-product-page .spx-pd-main-gallery .product-gallery,
body.spx-product-page .spx-pd-main-gallery .slick-list,
body.spx-product-page .spx-pd-main-gallery .slick-track,
body.spx-product-page .spx-pd-main-gallery .slick-slide,
body.spx-product-page .spx-pd-main-gallery .slick-slide > div {
    height: 100%;
}

body.spx-product-page .product-gallery .carousel-box {
    height: 100%;
    border: 1px solid var(--spx-border);
    border-radius: 2px;
    overflow: hidden;
    background: #fff;
}

body.spx-product-page .product-gallery .carousel-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

body.spx-product-page .spx-pd-thumb-strip .slick-list {
    margin: 0 -4px;
}

body.spx-product-page .product-gallery-thumb .slick-slide {
    padding: 0 4px;
}

body.spx-product-page .product-gallery-thumb .carousel-box {
    border-color: #e5e5e5 !important;
    border-radius: 2px !important;
    width: 64px;
    height: 64px;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fff;
}

body.spx-product-page .product-gallery-thumb .carousel-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.spx-product-page .product-gallery-thumb .slick-current .carousel-box {
    border-color: var(--spx-red) !important;
}

body.spx-product-page .product-gallery-thumb .slick-prev,
body.spx-product-page .product-gallery-thumb .slick-next {
    display: none !important;
}

body.spx-product-page .spx-pd-info-col hr {
    border-color: #f1f1f1;
    margin-top: 14px;
    margin-bottom: 14px;
}

body.spx-product-page .spx-pd-info-col .opacity-50 {
    color: var(--spx-muted) !important;
    opacity: 1 !important;
}

body.spx-product-page .spx-pd-info-col .text-primary {
    color: var(--spx-red) !important;
}

body.spx-product-page .spx-pd-info-col strong.h2 {
    font-size: 32px !important;
    font-weight: 500 !important;
    line-height: 1.1;
}

body.spx-product-page .spx-pd-info-col #chosen_price {
    color: var(--spx-red) !important;
    font-size: 30px !important;
    font-weight: 500 !important;
}

body.spx-product-page .spx-pd-info-col .aiz-megabox-elem {
    min-height: 38px;
    border-color: #e5e5e5 !important;
}

body.spx-product-page .spx-pd-info-col .aiz-megabox input:checked ~ .aiz-megabox-elem {
    border-color: var(--spx-red) !important;
    color: var(--spx-red) !important;
    background: #fff5f1;
}

body.spx-product-page .spx-pd-info-col .aiz-plus-minus {
    border: 1px solid #e5e5e5;
    border-radius: 2px;
    overflow: hidden;
    height: 40px;
}

body.spx-product-page .spx-pd-info-col .aiz-plus-minus .btn {
    border-radius: 0 !important;
    background: #fff !important;
    border-color: #ececec !important;
}

body.spx-product-page .spx-pd-info-col .aiz-plus-minus .input-number {
    border-left: 1px solid #ececec !important;
    border-right: 1px solid #ececec !important;
}

body.spx-product-page .spx-pd-info-col .add-to-cart {
    background: #fff5f1 !important;
    border: 1px solid var(--spx-red) !important;
    color: var(--spx-red) !important;
    min-height: 40px;
    border-radius: 2px !important;
}

body.spx-product-page .spx-pd-info-col .buy-now {
    background: var(--spx-red) !important;
    border: 1px solid var(--spx-red-dark) !important;
    color: #fff !important;
    min-height: 40px;
    border-radius: 2px !important;
}

body.spx-product-page .spx-pd-info-col .out-of-stock {
    min-height: 40px;
    border-radius: 2px !important;
}

body.spx-product-page .spx-pd-content-section {
    margin-bottom: 20px !important;
}

body.spx-product-page .spx-pd-main-col .aiz-nav-tabs {
    background: #fff;
    border-bottom: 1px solid var(--spx-border) !important;
}

body.spx-product-page .spx-pd-main-col .aiz-nav-tabs a {
    color: #666 !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    position: relative;
}

body.spx-product-page .spx-pd-main-col .aiz-nav-tabs a.active {
    color: var(--spx-red) !important;
}

body.spx-product-page .spx-pd-main-col .aiz-nav-tabs a.active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: var(--spx-red);
}

body.spx-product-page .spx-pd-main-col .tab-content {
    background: #fff;
}

body.spx-product-page .spx-pd-main-col .list-group-item {
    border-color: #f3f3f3;
    padding-left: 0;
    padding-right: 0;
}

body.spx-product-page .spx-pd-related-card .border-bottom,
body.spx-product-page .spx-pd-query-card .border-bottom,
body.spx-product-page .spx-pd-top-card .border-bottom {
    border-color: #f3f3f3 !important;
}

body.spx-product-page .spx-pd-related-card .aiz-card-box {
    border-radius: 2px !important;
    border-color: #f0f0f0 !important;
    box-shadow: none !important;
}

body.spx-product-page .spx-pd-related-card .aiz-card-box .text-primary,
body.spx-product-page .spx-pd-top-card .text-primary {
    color: var(--spx-red) !important;
}

body.spx-product-page .spx-pd-side-col .btn.btn-soft-primary {
    border-radius: 2px;
    border-color: #ffd3c9 !important;
    color: var(--spx-red) !important;
    background: #fff5f1 !important;
}

body.spx-product-page .spx-pd-query-card .btn.btn-primary {
    border-radius: 2px;
    background: var(--spx-red) !important;
    border-color: var(--spx-red-dark) !important;
}

@media (max-width: 991.98px) {
    body.spx-product-page .top-navbar {
        display: none;
    }

    body.spx-product-page .spx-pd-hero-card {
        padding: 12px !important;
    }

    body.spx-product-page .spx-pd-title {
        font-size: 18px !important;
    }

    body.spx-product-page .spx-pd-info-col strong.h2,
    body.spx-product-page .spx-pd-info-col #chosen_price {
        font-size: 26px !important;
    }
}

@media (max-width: 767.98px) {
    body.spx-product-page .product-gallery-thumb .carousel-box {
        width: 56px;
        height: 56px;
    }
}

/* ===== Shop Apply Page Redesign ===== */
body.spx-shop-apply-page {
    --spx-shop-primary: #ee4d2d;
    --spx-shop-primary-dark: #d83f20;
    --spx-shop-bg: #f5f5f5;
    --spx-shop-card: #ffffff;
    --spx-shop-border: #ececec;
    --spx-shop-text: #222222;
    --spx-shop-muted: #666666;
    font-family: 'Roboto', 'Open Sans', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background:
        linear-gradient(180deg, #ffe8df 0, #f9f9f9 150px, var(--spx-shop-bg) 340px, var(--spx-shop-bg) 100%);
    color: var(--spx-shop-text);
}

@media (min-width: 1200px) {
    body.spx-shop-apply-page .top-navbar .container,
    body.spx-shop-apply-page header .container,
    body.spx-shop-apply-page .spx-shop-apply-wrap .container {
        max-width: 1180px;
    }
}

body.spx-shop-apply-page .top-navbar,
body.spx-shop-apply-page .logo-bar-area,
body.spx-shop-apply-page > .aiz-main-wrapper > header {
    background: var(--spx-shop-primary) !important;
}

body.spx-shop-apply-page .top-navbar {
    border-bottom: none !important;
}

body.spx-shop-apply-page .top-navbar .text-reset,
body.spx-shop-apply-page .top-navbar a,
body.spx-shop-apply-page .nav-cart-box .nav-box-text,
body.spx-shop-apply-page .nav-cart-box .nav-box-number,
body.spx-shop-apply-page #compare .nav-box-text,
body.spx-shop-apply-page #wishlist .nav-box-text,
body.spx-shop-apply-page .logo-bar-area .nav-box-icon,
body.spx-shop-apply-page .logo-bar-area .las,
body.spx-shop-apply-page .logo-bar-area .la {
    color: #ffffff !important;
}

/* Keep dropdown labels readable (language/currency menus). */
body.spx-shop-apply-page .top-navbar .dropdown-menu,
body.spx-shop-apply-page .logo-bar-area .dropdown-menu {
    background: #ffffff !important;
}

body.spx-shop-apply-page .top-navbar .dropdown-menu a,
body.spx-shop-apply-page .top-navbar .dropdown-menu .dropdown-item,
body.spx-shop-apply-page .logo-bar-area .dropdown-menu a,
body.spx-shop-apply-page .logo-bar-area .dropdown-menu .dropdown-item {
    color: #333333 !important;
}

body.spx-shop-apply-page .top-navbar .dropdown-menu a:hover,
body.spx-shop-apply-page .top-navbar .dropdown-menu .dropdown-item:hover,
body.spx-shop-apply-page .logo-bar-area .dropdown-menu a:hover,
body.spx-shop-apply-page .logo-bar-area .dropdown-menu .dropdown-item:hover {
    color: var(--spx-shop-primary) !important;
    background: #fff3ee !important;
}

body.spx-shop-apply-page #lang-change .dropdown-menu .language,
body.spx-shop-apply-page #currency-change .dropdown-menu .dropdown-item,
body.spx-shop-apply-page #currency-change .dropdown-menu .dropdown-item * {
    color: #333333 !important;
    opacity: 1 !important;
}

body.spx-shop-apply-page .logo-bar-area .front-header-search .input-group {
    border-radius: 2px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

body.spx-shop-apply-page .logo-bar-area .front-header-search .btn.btn-primary {
    border-radius: 0;
    border: 0;
    min-width: 62px;
    background: #ffffff !important;
    color: var(--spx-shop-primary) !important;
}

/* Hide category toggle icon in shop-apply header (the boxed hamburger). */
body.spx-shop-apply-page .logo-bar-area .category-menu-icon-box,
body.spx-shop-apply-page .logo-bar-area #category-menu-icon {
    display: none !important;
}

body.spx-shop-apply-page header .bg-white.border-top {
    background: var(--spx-shop-primary) !important;
    border-top: none !important;
    padding-top: 0 !important;
}

body.spx-shop-apply-page header .bg-white.border-top a {
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 500 !important;
}

body.spx-shop-apply-page .spx-shop-apply-wrap {
    padding: 20px 0 40px;
}

body.spx-shop-apply-page .spx-shop-apply-layout {
    align-items: stretch !important;
}

body.spx-shop-apply-page .spx-shop-apply-aside {
    height: 100%;
    border-radius: 4px;
    background:
        linear-gradient(150deg, #ff6c49 0%, #f4512f 55%, #eb3f21 100%);
    color: #ffffff;
    padding: 28px 24px 24px;
    box-shadow: 0 10px 24px rgba(227, 72, 34, 0.2);
}

body.spx-shop-apply-page .spx-shop-apply-aside__title {
    margin: 0;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.2px;
}

body.spx-shop-apply-page .spx-shop-apply-aside__desc {
    margin: 14px 0 18px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 14px;
    line-height: 1.7;
}

body.spx-shop-apply-page .spx-shop-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.24);
}

body.spx-shop-apply-page .spx-shop-step:first-child {
    border-top: 0;
}

body.spx-shop-apply-page .spx-shop-step__num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 26px;
    font-size: 13px;
    font-weight: 700;
    color: var(--spx-shop-primary);
    background: #ffffff;
}

body.spx-shop-apply-page .spx-shop-step h4 {
    margin: 0 0 3px;
    font-size: 15px;
    line-height: 1.35;
    color: #ffffff;
    font-weight: 700;
}

body.spx-shop-apply-page .spx-shop-step p {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.92);
}

body.spx-shop-apply-page .spx-shop-apply-card {
    border-radius: 4px;
    border: 1px solid var(--spx-shop-border);
    background: var(--spx-shop-card);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

body.spx-shop-apply-page .spx-shop-apply-card__head {
    padding: 22px 28px 14px;
    border-bottom: 1px solid #f2f2f2;
}

body.spx-shop-apply-page .spx-shop-apply-card__head h2 {
    margin: 0;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 700;
    color: var(--spx-shop-text);
}

body.spx-shop-apply-page .spx-shop-apply-card__head p {
    margin: 8px 0 0;
    color: var(--spx-shop-muted);
    font-size: 13px;
    line-height: 1.6;
}

body.spx-shop-apply-page .spx-shop-apply-card form {
    padding: 16px 28px 24px;
}

body.spx-shop-apply-page .spx-shop-apply-card .bg-white.rounded.shadow-sm {
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    margin-bottom: 0 !important;
}

body.spx-shop-apply-page .spx-shop-apply-card .bg-white.rounded.shadow-sm + .bg-white.rounded.shadow-sm {
    margin-top: 12px !important;
}

body.spx-shop-apply-page .spx-shop-apply-card .bg-white.rounded.shadow-sm > .fs-15.fw-600.p-3.border-bottom {
    padding: 14px 0 10px !important;
    border-bottom: 1px solid #f3f3f3 !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #333333 !important;
}

body.spx-shop-apply-page .spx-shop-apply-card .bg-white.rounded.shadow-sm > .p-3 {
    padding: 14px 0 2px !important;
}

body.spx-shop-apply-page .spx-shop-apply-card .form-group {
    margin-bottom: 15px;
}

body.spx-shop-apply-page .spx-shop-apply-card label {
    margin-bottom: 6px;
    color: #333333;
    font-size: 13px;
    font-weight: 500;
}

body.spx-shop-apply-page .spx-shop-apply-card .text-primary {
    color: var(--spx-shop-primary) !important;
}

body.spx-shop-apply-page .spx-shop-apply-card .form-control,
body.spx-shop-apply-page .spx-shop-apply-card select.form-control {
    min-height: 44px;
    border: 1px solid #d9d9d9;
    border-radius: 2px;
    color: #222222;
    background: #ffffff;
    font-size: 14px;
}

body.spx-shop-apply-page .spx-shop-apply-card .form-control::placeholder {
    color: #a8a8a8;
}

body.spx-shop-apply-page .spx-shop-apply-card .form-control:focus,
body.spx-shop-apply-page .spx-shop-apply-card select.form-control:focus {
    border-color: var(--spx-shop-primary);
    box-shadow: 0 0 0 2px rgba(238, 77, 45, 0.12);
}

body.spx-shop-apply-page .spx-shop-apply-card select.form-control {
    appearance: none;
    -webkit-appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, #8a8a8a 50%),
        linear-gradient(135deg, #8a8a8a 50%, transparent 50%);
    background-position:
        calc(100% - 18px) calc(50% - 3px),
        calc(100% - 12px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 34px;
}

body.spx-shop-apply-page .spx-shop-apply-card .input-group[data-toggle='aizuploader'] .input-group-text {
    border: 1px solid #d9d9d9;
    border-right: 0;
    border-radius: 2px 0 0 2px;
    min-height: 44px;
    padding: 0 14px;
    background: #fafafa !important;
    color: #666666;
    font-weight: 500;
}

body.spx-shop-apply-page .spx-shop-apply-card .input-group[data-toggle='aizuploader'] .form-control.file-amount {
    border-left: 0;
    border-radius: 0 2px 2px 0;
    display: flex;
    align-items: center;
    color: #9a9a9a;
}

body.spx-shop-apply-page .spx-shop-apply-card .input-group.is-invalid .input-group-text,
body.spx-shop-apply-page .spx-shop-apply-card .input-group.is-invalid .form-control {
    border-color: #dc3545 !important;
}

body.spx-shop-apply-page .spx-shop-apply-card .file-preview {
    min-height: 72px;
    border: 1px dashed #e4e4e4;
    border-radius: 2px;
    background: #fafafa;
    padding: 8px 10px;
}

body.spx-shop-apply-page .spx-shop-apply-card .preview-item-name {
    color: #555555;
    font-size: 13px;
    word-break: break-all;
}

body.spx-shop-apply-page .spx-shop-apply-card .form-error-message {
    margin-top: 6px !important;
}

body.spx-shop-apply-page .spx-shop-apply-card #send_seller_email_code_btn {
    border-radius: 2px;
    border-color: #ffd5cb !important;
    background: #fff2ee !important;
    color: var(--spx-shop-primary) !important;
    font-weight: 600;
}

body.spx-shop-apply-page .spx-shop-submit-row {
    margin-top: 12px;
    text-align: right !important;
}

body.spx-shop-apply-page .spx-shop-submit-btn {
    min-height: 46px;
    min-width: 240px;
    border-radius: 2px !important;
    border-color: var(--spx-shop-primary) !important;
    background: var(--spx-shop-primary) !important;
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.2px;
    box-shadow: none !important;
}

body.spx-shop-apply-page .spx-shop-submit-btn:hover,
body.spx-shop-apply-page .spx-shop-submit-btn:focus {
    border-color: var(--spx-shop-primary-dark) !important;
    background: var(--spx-shop-primary-dark) !important;
    color: #ffffff !important;
}

@media (max-width: 1199.98px) {
    body.spx-shop-apply-page .spx-shop-apply-card__head {
        padding: 20px 22px 14px;
    }

    body.spx-shop-apply-page .spx-shop-apply-card form {
        padding: 16px 22px 20px;
    }
}

@media (max-width: 991.98px) {
    body.spx-shop-apply-page {
        background:
            radial-gradient(240px 140px at 102% -2%, rgba(111, 66, 249, 0.14) 0%, rgba(111, 66, 249, 0) 72%),
            radial-gradient(320px 180px at -10% 8%, rgba(238, 77, 45, 0.16) 0%, rgba(238, 77, 45, 0) 76%),
            #f7f9fc;
    }

    body.spx-shop-apply-page .spx-shop-apply-wrap {
        padding-top: 16px;
        padding-bottom: 28px;
    }

    body.spx-shop-apply-page .spx-shop-apply-card {
        border-radius: 18px;
        border-color: #e9edf4;
        box-shadow: 0 14px 34px rgba(19, 33, 68, 0.08);
    }

    body.spx-shop-apply-page .spx-shop-apply-card__head {
        padding: 20px 20px 14px;
    }

    body.spx-shop-apply-page .spx-shop-apply-card form {
        padding: 14px 16px 18px;
    }
}

@media (max-width: 767.98px) {
    body.spx-shop-apply-page {
        --spx-shop-mobile-accent: #6f42f9;
    }

    body.spx-shop-apply-page .spx-shop-apply-wrap .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    body.spx-shop-apply-page .spx-shop-apply-mobile-intro {
        position: relative;
        margin: 0 2px 14px;
        padding: 16px 14px 14px;
        border-radius: 18px;
        border: 1px solid #e9edf4;
        background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
        box-shadow: 0 14px 28px rgba(22, 32, 64, 0.08);
        overflow: hidden;
    }

    body.spx-shop-apply-page .spx-shop-apply-mobile-intro::before,
    body.spx-shop-apply-page .spx-shop-apply-mobile-intro::after {
        content: '';
        position: absolute;
        border-radius: 999px;
        pointer-events: none;
    }

    body.spx-shop-apply-page .spx-shop-apply-mobile-intro::before {
        width: 128px;
        height: 128px;
        right: -50px;
        top: -56px;
        background: radial-gradient(circle at center, rgba(238, 77, 45, 0.18) 0%, rgba(238, 77, 45, 0) 68%);
    }

    body.spx-shop-apply-page .spx-shop-apply-mobile-intro::after {
        width: 146px;
        height: 146px;
        left: -72px;
        bottom: -88px;
        background: radial-gradient(circle at center, rgba(111, 66, 249, 0.16) 0%, rgba(111, 66, 249, 0) 72%);
    }

    body.spx-shop-apply-page .spx-shop-apply-mobile-intro > * {
        position: relative;
        z-index: 1;
    }

    body.spx-shop-apply-page .spx-shop-apply-mobile-intro__badge {
        display: inline-flex;
        align-items: center;
        padding: 4px 10px;
        margin-bottom: 8px;
        border-radius: 999px;
        border: 1px solid rgba(238, 77, 45, 0.24);
        background: rgba(255, 243, 238, 0.9);
        color: var(--spx-shop-primary);
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.3px;
        text-transform: uppercase;
    }

    body.spx-shop-apply-page .spx-shop-apply-mobile-intro h2 {
        margin: 0;
        color: #1f2733;
        font-size: 21px;
        line-height: 1.28;
        font-weight: 800;
    }

    body.spx-shop-apply-page .spx-shop-apply-mobile-intro p {
        margin: 7px 0 0;
        color: #5f6d84;
        font-size: 13px;
        line-height: 1.58;
    }

    body.spx-shop-apply-page .spx-shop-apply-mobile-intro__grid {
        margin-top: 12px;
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    body.spx-shop-apply-page .spx-shop-apply-mobile-intro__item {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        padding: 10px;
        border-radius: 12px;
        border: 1px solid #ecf0f7;
        background: #ffffff;
    }

    body.spx-shop-apply-page .spx-shop-apply-mobile-intro__icon {
        width: 34px;
        height: 34px;
        border-radius: 10px;
        flex: 0 0 34px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: var(--spx-shop-primary);
        background: linear-gradient(145deg, rgba(255, 237, 231, 0.95) 0%, rgba(255, 248, 245, 0.95) 100%);
    }

    body.spx-shop-apply-page .spx-shop-apply-mobile-intro__icon svg {
        width: 18px;
        height: 18px;
    }

    body.spx-shop-apply-page .spx-shop-apply-mobile-intro__item h4 {
        margin: 0 0 1px;
        color: #2b3340;
        font-size: 13px;
        line-height: 1.45;
        font-weight: 700;
    }

    body.spx-shop-apply-page .spx-shop-apply-mobile-intro__item p {
        margin: 0;
        color: #667489;
        font-size: 12px;
        line-height: 1.45;
    }

    body.spx-shop-apply-page .spx-shop-apply-card {
        border: 1px solid #e8edf6;
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: 0 18px 38px rgba(22, 32, 64, 0.1);
        overflow: visible;
    }

    body.spx-shop-apply-page .spx-shop-apply-card__head {
        display: none;
    }

    body.spx-shop-apply-page .spx-shop-apply-card form {
        padding: 12px 12px 20px;
    }

    body.spx-shop-apply-page .spx-shop-apply-card .spx-shop-section {
        margin: 0 0 12px !important;
        border: 1px solid #e8edf6 !important;
        border-radius: 16px !important;
        background: #ffffff !important;
        box-shadow: 0 8px 20px rgba(20, 30, 64, 0.05) !important;
        overflow: hidden;
    }

    body.spx-shop-apply-page .spx-shop-apply-card .spx-shop-section > .fs-15.fw-600.p-3.border-bottom {
        display: flex;
        align-items: center;
        gap: 8px;
        margin: 0;
        padding: 13px 14px 11px !important;
        border-bottom: 1px solid #edf1f7 !important;
        background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
        color: #2a3242 !important;
        font-size: 15px !important;
        font-weight: 700 !important;
    }

    body.spx-shop-apply-page .spx-shop-apply-card .spx-shop-section > .fs-15.fw-600.p-3.border-bottom::before {
        content: '';
        width: 8px;
        height: 8px;
        border-radius: 50%;
        flex: 0 0 8px;
        background: var(--spx-shop-primary);
        box-shadow: 0 0 0 4px rgba(238, 77, 45, 0.16);
    }

    body.spx-shop-apply-page .spx-shop-apply-card .spx-shop-section--basic > .fs-15.fw-600.p-3.border-bottom::before {
        background: var(--spx-shop-mobile-accent);
        box-shadow: 0 0 0 4px rgba(111, 66, 249, 0.14);
    }

    body.spx-shop-apply-page .spx-shop-apply-card .spx-shop-section--verify > .fs-15.fw-600.p-3.border-bottom::before {
        background: #15a35b;
        box-shadow: 0 0 0 4px rgba(21, 163, 91, 0.14);
    }

    body.spx-shop-apply-page .spx-shop-apply-card .spx-shop-section > .p-3 {
        padding: 12px 14px 7px !important;
    }

    body.spx-shop-apply-page .spx-shop-apply-card .form-group {
        margin-bottom: 13px;
    }

    body.spx-shop-apply-page .spx-shop-apply-card label {
        margin-bottom: 7px;
        font-size: 12px;
        font-weight: 600;
        color: #364055;
    }

    body.spx-shop-apply-page .spx-shop-apply-card .iti {
        width: 100%;
    }

    body.spx-shop-apply-page .spx-shop-apply-card .form-control,
    body.spx-shop-apply-page .spx-shop-apply-card select.form-control {
        min-height: 46px;
        border: 1px solid #d8e1ed;
        border-radius: 12px;
        background: #fbfdff;
        color: #1f2733;
        font-size: 14px;
        padding-left: 12px;
        padding-right: 12px;
    }

    body.spx-shop-apply-page .spx-shop-apply-card .form-control::placeholder {
        color: #91a0b6;
    }

    body.spx-shop-apply-page .spx-shop-apply-card .form-control:focus,
    body.spx-shop-apply-page .spx-shop-apply-card select.form-control:focus {
        border-color: var(--spx-shop-primary);
        box-shadow: 0 0 0 3px rgba(238, 77, 45, 0.14);
        background: #ffffff;
    }

    body.spx-shop-apply-page .spx-shop-apply-card select.form-control {
        background-image:
            linear-gradient(45deg, transparent 50%, #8b9bb3 50%),
            linear-gradient(135deg, #8b9bb3 50%, transparent 50%);
        background-position:
            calc(100% - 17px) calc(50% - 3px),
            calc(100% - 11px) calc(50% - 3px);
        background-size: 6px 6px, 6px 6px;
        background-repeat: no-repeat;
        padding-right: 34px;
    }

    body.spx-shop-apply-page .spx-shop-apply-card .spx-upload-field .input-group[data-toggle='aizuploader'] {
        border: 1px solid #d8e1ed;
        border-radius: 12px;
        overflow: hidden;
        background: #ffffff;
    }

    body.spx-shop-apply-page .spx-shop-apply-card .spx-upload-field .input-group[data-toggle='aizuploader'] .input-group-text {
        min-height: 46px;
        border: 0;
        border-right: 1px solid #e4ebf5;
        border-radius: 0;
        padding: 0 13px;
        background: linear-gradient(180deg, #fff8f4 0%, #ffece5 100%) !important;
        color: #cd4c29;
        font-weight: 700;
    }

    body.spx-shop-apply-page .spx-shop-apply-card .spx-upload-field .input-group[data-toggle='aizuploader'] .form-control.file-amount {
        min-height: 46px;
        border: 0;
        border-radius: 0;
        color: #64748b;
        background: #ffffff;
    }

    body.spx-shop-apply-page .spx-shop-apply-card .file-preview {
        min-height: 70px;
        border: 1px dashed #d4deeb;
        border-radius: 12px;
        background: #f7faff;
        padding: 10px;
    }

    body.spx-shop-apply-page .spx-shop-apply-card .preview-item-thumb {
        border-radius: 10px;
        border-color: #d7e1f0;
        background: #ffffff;
    }

    body.spx-shop-apply-page .spx-shop-apply-card .preview-item-name {
        color: #506079;
        font-size: 12px;
    }

    body.spx-shop-apply-page .spx-shop-apply-card .form-error-message {
        font-size: 12px;
        margin-top: 7px !important;
    }

    body.spx-shop-apply-page .spx-shop-apply-card .input-group.is-invalid {
        border-color: #dc3545 !important;
        box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.14);
    }

    body.spx-shop-apply-page #seller_email_verification_code_group .input-group {
        border: 1px solid #d8e1ed;
        border-radius: 12px;
        overflow: hidden;
        background: #ffffff;
    }

    body.spx-shop-apply-page #seller_email_verification_code_group .input-group .form-control {
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    body.spx-shop-apply-page .spx-shop-apply-card #send_seller_email_code_btn {
        min-height: 46px;
        border: 0 !important;
        border-radius: 0 !important;
        padding: 0 14px;
        background: linear-gradient(135deg, #ff7a40 0%, #ee4d2d 100%) !important;
        color: #ffffff !important;
        font-size: 13px;
        font-weight: 700;
    }

    body.spx-shop-apply-page .spx-shop-submit-row {
        position: sticky;
        bottom: calc(env(safe-area-inset-bottom, 0px) + 8px);
        z-index: 8;
        margin-top: 8px;
        padding: 10px;
        border-radius: 16px;
        border: 1px solid rgba(255, 255, 255, 0.92);
        background: rgba(255, 255, 255, 0.72);
        -webkit-backdrop-filter: blur(14px);
        backdrop-filter: blur(14px);
        box-shadow: 0 12px 26px rgba(15, 23, 42, 0.14);
        text-align: center !important;
    }

    body.spx-shop-apply-page .spx-shop-submit-btn {
        width: 100%;
        min-width: 0;
        min-height: 50px;
        border-radius: 12px !important;
        border-color: transparent !important;
        background: linear-gradient(135deg, #f35c33 0%, #ea4a2c 56%, #7742f2 100%) !important;
        color: #ffffff !important;
        font-size: 15px;
        font-weight: 700;
        box-shadow: 0 12px 24px rgba(233, 76, 44, 0.26) !important;
    }

    body.spx-shop-apply-page .spx-shop-submit-btn:hover,
    body.spx-shop-apply-page .spx-shop-submit-btn:focus {
        border-color: transparent !important;
        background: linear-gradient(135deg, #e95a33 0%, #dc4528 56%, #6539e5 100%) !important;
        color: #ffffff !important;
    }

    body.spx-shop-apply-page .spx-shop-submit-btn:disabled {
        opacity: 0.82;
    }
}

/* Auth pages (login/register) */
body.spx-auth-page {
    --spx-auth-primary: #5a31f4;
    --spx-auth-primary-dark: #4325bf;
    --spx-auth-accent: #ff5a2c;
    --spx-auth-card-bg: #ffffff;
    --spx-auth-text: #1f2328;
    --spx-auth-muted: #6f7782;
    font-family: 'Roboto', 'Open Sans', sans-serif;
    min-height: 100vh;
    background:
        radial-gradient(820px 360px at -10% -15%, rgba(255, 126, 67, 0.22) 0%, transparent 60%),
        radial-gradient(720px 340px at 105% 5%, rgba(94, 57, 255, 0.2) 0%, transparent 62%),
        linear-gradient(180deg, #f8f9fd 0%, #eef2f8 100%);
}

body.spx-auth-page .top-navbar,
body.spx-auth-page > .aiz-main-wrapper > header {
    display: none !important;
}

body.spx-auth-page ._e9b.astro-sy6zno2k,
body.spx-auth-page .stylusid-anniversary,
body.spx-auth-page .top-banner {
    display: none !important;
}

body.spx-auth-page .aiz-main-wrapper {
    min-height: 100vh;
    background: transparent;
}

body.spx-auth-page .spx-auth-wrap {
    position: relative;
    overflow: hidden;
    padding: 34px 0 46px;
}

body.spx-auth-page .spx-auth-bg-orb {
    position: absolute;
    pointer-events: none;
    border-radius: 999px;
    filter: blur(2px);
    opacity: 0.55;
}

body.spx-auth-page .spx-auth-bg-orb--left {
    width: 320px;
    height: 320px;
    left: -120px;
    top: 38px;
    background: radial-gradient(circle at 35% 35%, rgba(255, 146, 102, 0.34), rgba(255, 146, 102, 0));
}

body.spx-auth-page .spx-auth-bg-orb--right {
    width: 360px;
    height: 360px;
    right: -130px;
    bottom: -80px;
    background: radial-gradient(circle at 40% 40%, rgba(112, 86, 255, 0.28), rgba(112, 86, 255, 0));
}

body.spx-auth-page .spx-auth-wrap .container {
    max-width: 1180px;
}

body.spx-auth-page .spx-auth-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 520px;
    background: #ffffff;
    border: 1px solid #eceff4;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 26px 60px rgba(31, 35, 40, 0.12);
}

body.spx-auth-page .spx-auth-visual {
    padding: 38px 42px 34px;
    color: #ffffff;
    position: relative;
    background: linear-gradient(145deg, #ff6133 0%, #ff4a2a 38%, #a63eff 100%);
}

body.spx-auth-register-page .spx-auth-visual {
    background: linear-gradient(145deg, #f5532d 0%, #e64025 35%, #7030f6 100%);
}

body.spx-auth-login-page .spx-auth-visual,
body.spx-auth-register-page .spx-auth-visual {
    isolation: isolate;
}

body.spx-auth-login-page .spx-auth-visual > :not(.spx-auth-visual__motion),
body.spx-auth-register-page .spx-auth-visual > :not(.spx-auth-visual__motion) {
    position: relative;
    z-index: 2;
}

body.spx-auth-login-page .spx-auth-visual__motion,
body.spx-auth-register-page .spx-auth-visual__motion {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

body.spx-auth-login-page .spx-auth-bubble,
body.spx-auth-register-page .spx-auth-bubble {
    position: absolute;
    border-radius: 999px;
    transform-origin: center;
    box-shadow: 0 14px 34px rgba(96, 24, 6, 0.25);
}

body.spx-auth-login-page .spx-auth-bubble--hero,
body.spx-auth-register-page .spx-auth-bubble--hero {
    width: 218px;
    height: 218px;
    left: 48px;
    bottom: -74px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 78% 28%, rgba(255, 244, 193, 0.72) 0%, rgba(255, 244, 193, 0.05) 30%, rgba(255, 244, 193, 0) 56%),
        linear-gradient(140deg, #ffaf22 0%, #ff5c2d 42%, #ff177d 100%);
    animation: spxAuthBlobHop 4.6s cubic-bezier(0.25, 0.8, 0.3, 1) infinite;
}

body.spx-auth-login-page .spx-auth-bubble--top,
body.spx-auth-register-page .spx-auth-bubble--top {
    width: 88px;
    height: 88px;
    right: -18px;
    top: 72px;
    background: radial-gradient(circle at 30% 28%, #ffe4af 0%, #ff9f2f 35%, #ff632d 68%, #e6482a 100%);
    animation: spxAuthBlobFloat 3.3s ease-in-out infinite;
}

body.spx-auth-login-page .spx-auth-bubble--mini,
body.spx-auth-register-page .spx-auth-bubble--mini {
    width: 24px;
    height: 24px;
    left: 188px;
    top: 46px;
    background: radial-gradient(circle at 30% 30%, #ffecc4 0%, #ff9053 50%, #ff4e7d 100%);
    animation: spxAuthBlobPulse 2.6s ease-in-out infinite 0.3s;
}

body.spx-auth-login-page .spx-auth-bubble--ring,
body.spx-auth-register-page .spx-auth-bubble--ring {
    width: 40px;
    height: 40px;
    left: 336px;
    bottom: 92px;
    border: 5px solid rgba(255, 245, 213, 0.82);
    box-shadow: none;
    background: transparent;
    animation: spxAuthRingHop 3.8s ease-in-out infinite 0.45s;
}

body.spx-auth-page .spx-auth-brand {
    display: inline-flex;
    align-items: center;
    margin-bottom: 30px;
}

body.spx-auth-page .spx-auth-brand img {
    height: 46px;
    width: auto;
    max-width: 210px;
    padding: 7px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95);
}

body.spx-auth-page .spx-auth-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border-radius: 999px;
    padding: 0 14px;
    margin-bottom: 14px;
    font-size: 12px;
    letter-spacing: 0.6px;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.18);
}

body.spx-auth-page .spx-auth-visual h2 {
    color: #ffffff;
    font-size: 34px;
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 10px;
}

body.spx-auth-page .spx-auth-visual p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 15px;
    line-height: 1.65;
    margin-bottom: 24px;
    max-width: 420px;
}

body.spx-auth-page .spx-auth-visual__points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

body.spx-auth-page .spx-auth-visual__points span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    border-radius: 999px;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

body.spx-auth-login-page .spx-auth-visual__points span,
body.spx-auth-register-page .spx-auth-visual__points span {
    animation: spxAuthTagBounce 3.8s ease-in-out infinite;
}

body.spx-auth-login-page .spx-auth-visual__points span:nth-child(2),
body.spx-auth-register-page .spx-auth-visual__points span:nth-child(2) {
    animation-delay: 0.25s;
}

body.spx-auth-login-page .spx-auth-visual__points span:nth-child(3),
body.spx-auth-register-page .spx-auth-visual__points span:nth-child(3) {
    animation-delay: 0.5s;
}

@keyframes spxAuthBlobHop {
    0%,
    100% {
        transform: translate3d(0, 0, 0) rotate(-10deg) scale(1);
    }
    20% {
        transform: translate3d(8px, -8px, 0) rotate(-7deg) scale(1.03);
    }
    45% {
        transform: translate3d(-2px, -22px, 0) rotate(-13deg) scale(1.05);
    }
    70% {
        transform: translate3d(6px, -10px, 0) rotate(-8deg) scale(1.01);
    }
}

@keyframes spxAuthBlobFloat {
    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(-8px, -14px, 0) scale(1.06);
    }
}

@keyframes spxAuthBlobPulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.95;
    }
    50% {
        transform: scale(1.28);
        opacity: 1;
    }
}

@keyframes spxAuthRingHop {
    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 0.86;
    }
    50% {
        transform: translate3d(4px, -10px, 0) scale(1.08);
        opacity: 1;
    }
}

@keyframes spxAuthTagBounce {
    0%,
    100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-3px);
    }
    60% {
        transform: translateY(1px);
    }
}

@media (prefers-reduced-motion: reduce) {
    body.spx-auth-login-page .spx-auth-bubble,
    body.spx-auth-register-page .spx-auth-bubble,
    body.spx-auth-login-page .spx-auth-visual__points span,
    body.spx-auth-register-page .spx-auth-visual__points span {
        animation: none !important;
    }
}

body.spx-auth-page .spx-auth-panel {
    background: #f9fbff;
    padding: 28px;
}

body.spx-auth-page .spx-auth-card {
    background: var(--spx-auth-card-bg);
    border: 1px solid #eceff4;
    border-radius: 14px;
    overflow: hidden;
    min-height: 100%;
}

body.spx-auth-page .spx-auth-card__head {
    padding: 30px 30px 10px;
}

body.spx-auth-page .spx-auth-card__head h1 {
    margin: 0 0 6px;
    font-size: 31px;
    line-height: 1.2;
    font-weight: 800;
    color: var(--spx-auth-text);
}

body.spx-auth-page .spx-auth-card__head p {
    margin: 0;
    font-size: 14px;
    color: var(--spx-auth-muted);
}

body.spx-auth-page .spx-auth-card__body {
    padding: 18px 30px 18px;
}

body.spx-auth-page .spx-auth-form .form-group {
    margin-bottom: 14px;
}

body.spx-auth-page .spx-auth-form .form-control {
    min-height: 46px;
    border-radius: 12px;
    border: 1px solid #e1e7f0;
    background: #ffffff;
    color: #222;
    font-size: 14px;
}

body.spx-auth-page .spx-auth-form .form-control::placeholder {
    color: #a0a8b3;
}

body.spx-auth-page .spx-auth-form .form-control:focus {
    border-color: #a998ff;
    box-shadow: 0 0 0 3px rgba(109, 80, 255, 0.13);
}

body.spx-auth-page .spx-auth-form .input-group .form-control {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

body.spx-auth-page .spx-auth-form .input-group .btn {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
    min-height: 46px;
}

body.spx-auth-page .spx-auth-form .iti {
    width: 100%;
}

body.spx-auth-page .spx-auth-form .iti .form-control {
    padding-left: 84px !important;
}

body.spx-auth-page .spx-auth-form .iti__country-container {
    border-radius: 12px 0 0 12px;
}

body.spx-auth-page .spx-auth-toggle-btn {
    font-size: 13px;
    text-decoration: none;
}

body.spx-auth-page .spx-auth-toggle-btn:hover {
    color: var(--spx-auth-primary) !important;
    text-decoration: none;
}

body.spx-auth-page .spx-auth-submit {
    min-height: 48px;
    border-radius: 999px !important;
    border-color: transparent !important;
    background: linear-gradient(90deg, var(--spx-auth-primary) 0%, #7b44ff 55%, #a651ff 100%) !important;
    font-size: 16px;
    letter-spacing: 0.2px;
    box-shadow: 0 10px 24px rgba(102, 62, 255, 0.28);
}

body.spx-auth-page .spx-auth-submit:hover,
body.spx-auth-page .spx-auth-submit:focus {
    background: linear-gradient(90deg, var(--spx-auth-primary-dark) 0%, #6335e8 52%, #9047f0 100%) !important;
}

body.spx-auth-page .spx-auth-form > .mb-5 {
    margin-bottom: 12px !important;
}

body.spx-auth-page .spx-auth-separator {
    margin-top: 2px;
    margin-bottom: 8px;
}

body.spx-auth-page .spx-auth-separator span {
    background: #ffffff;
    color: #8f97a3;
}

body.spx-auth-page .spx-auth-card .social.mb-5 {
    margin-bottom: 10px !important;
}

body.spx-auth-page .spx-auth-footer {
    border-top: 1px solid #eff2f7;
    margin-top: 2px;
    padding-top: 10px;
}

body.spx-auth-page .spx-auth-footer a {
    color: var(--spx-auth-primary);
    font-weight: 600;
}

body.spx-auth-page .spx-auth-footer a:hover {
    color: var(--spx-auth-primary-dark);
}

@media (max-width: 1199.98px) {
    body.spx-auth-page .spx-auth-layout {
        grid-template-columns: 1fr 500px;
    }

    body.spx-auth-page .spx-auth-visual {
        padding: 30px 30px 28px;
    }

    body.spx-auth-page .spx-auth-visual h2 {
        font-size: 30px;
    }
}

@media (max-width: 991.98px) {
    body.spx-auth-page {
        background: linear-gradient(180deg, #f5f7fc 0%, #eef2f8 100%);
    }

    body.spx-auth-page .spx-auth-bg-orb {
        display: none;
    }

    body.spx-auth-page .spx-auth-wrap {
        padding: 10px 0 calc(86px + env(safe-area-inset-bottom));
    }

    body.spx-auth-page section.bg-white.border-top.mt-auto {
        display: none !important;
    }

    body.spx-auth-page .footer-widget,
    body.spx-auth-page .aiz-mobile-side-nav {
        display: none !important;
    }

    body.spx-auth-page .aiz-mobile-bottom-nav {
        display: block !important;
    }

    body.spx-auth-page .spx-auth-wrap .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    body.spx-auth-page .spx-auth-layout {
        display: block;
        background: transparent;
        border: none;
        border-radius: 0;
        box-shadow: none;
        overflow: visible;
    }

    body.spx-auth-page .spx-auth-visual {
        display: none;
    }

    body.spx-auth-page .spx-auth-panel {
        padding: 0;
        background: transparent;
    }

    body.spx-auth-page .spx-auth-card {
        border: 1px solid #e7ecf4;
        border-radius: 22px;
        box-shadow: 0 12px 28px rgba(31, 45, 71, 0.08);
        overflow: hidden;
    }

    body.spx-auth-page .spx-auth-card__head {
        padding: 20px 18px 10px;
    }

    body.spx-auth-page .spx-auth-card__head h1 {
        font-size: 30px;
        line-height: 1.15;
        margin-bottom: 6px;
    }

    body.spx-auth-page .spx-auth-card__head p {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 0;
    }

    body.spx-auth-page .spx-auth-card__body {
        padding: 12px 18px 18px;
    }

    body.spx-auth-page .spx-auth-form .form-group {
        margin-bottom: 12px;
    }

    body.spx-auth-page .spx-auth-form .form-control {
        height: 52px;
        border-radius: 14px;
        padding-left: 14px;
        padding-right: 14px;
        border: 1px solid #d7e0ec;
        background: #f9fbff;
        font-size: 16px;
    }

    body.spx-auth-page .spx-auth-form .form-control:focus {
        border-color: #7a4cff !important;
        box-shadow: 0 0 0 3px rgba(122, 76, 255, 0.15) !important;
        background: #ffffff;
    }

    body.spx-auth-page .spx-auth-form .input-group .form-control {
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
    }

    body.spx-auth-page .spx-auth-form .input-group .btn {
        height: 52px;
        border-radius: 0 14px 14px 0;
        font-size: 14px;
        font-weight: 700;
        padding: 0 14px;
    }

    body.spx-auth-page .spx-auth-toggle-btn {
        font-size: 14px;
    }

    body.spx-auth-page .spx-auth-form > .row.mb-2 {
        margin-bottom: 14px !important;
        align-items: center;
    }

    body.spx-auth-page .spx-auth-form > .row.mb-2 .aiz-checkbox {
        margin-bottom: 0;
    }

    body.spx-auth-page .spx-auth-form > .row.mb-2 a {
        font-size: 14px !important;
    }

    body.spx-auth-page .spx-auth-submit {
        min-height: 52px;
        border-radius: 16px !important;
        font-size: 20px;
        letter-spacing: 0.5px;
        box-shadow: 0 12px 22px rgba(90, 49, 244, 0.25);
    }

    body.spx-auth-page .spx-auth-form > .mb-5 {
        margin-bottom: 12px !important;
    }

    body.spx-auth-page .spx-auth-separator {
        margin-bottom: 10px !important;
    }

    body.spx-auth-page .spx-auth-card .social.mb-5 {
        margin-bottom: 10px !important;
    }

    body.spx-auth-page .spx-auth-card .social li {
        margin: 0 7px;
    }

    body.spx-auth-page .spx-auth-card .social li a {
        width: 44px;
        height: 44px;
        line-height: 44px;
        font-size: 22px;
    }

    body.spx-auth-page .spx-auth-footer {
        margin-top: 2px;
        padding-top: 10px;
    }

    body.spx-auth-page .spx-auth-footer p {
        font-size: 14px;
    }

    body.spx-auth-page .iti {
        width: 100%;
    }

    body.spx-auth-page .iti .iti__selected-country-primary {
        min-height: 52px;
        border-top-left-radius: 14px;
        border-bottom-left-radius: 14px;
    }
}

@media (max-width: 767.98px) {
    body.spx-auth-page .spx-auth-wrap .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    body.spx-auth-page .spx-auth-wrap {
        padding-top: 8px;
    }

    body.spx-auth-page .spx-auth-card {
        border-radius: 18px;
    }

    body.spx-auth-page .spx-auth-card__head {
        padding: 16px 14px 8px;
    }

    body.spx-auth-page .spx-auth-card__head h1 {
        font-size: 25px;
    }

    body.spx-auth-page .spx-auth-card__head p {
        font-size: 13px;
    }

    body.spx-auth-page .spx-auth-card__body {
        padding: 10px 14px 14px;
    }

    body.spx-auth-page .spx-auth-form .form-control,
    body.spx-auth-page .spx-auth-form .input-group .btn {
        height: 48px;
    }

    body.spx-auth-page .spx-auth-submit {
        min-height: 50px;
        font-size: 19px;
    }

    body.spx-auth-page .spx-auth-card .social li a {
        width: 42px;
        height: 42px;
        line-height: 42px;
        font-size: 20px;
    }

    body.spx-auth-page .spx-auth-form > .mb-5 {
        margin-bottom: 10px !important;
    }
}

@media (max-width: 991.98px) {
    body.spx-auth-login-page .spx-auth-wrap {
        height: calc(100vh - 70px - env(safe-area-inset-bottom));
        min-height: calc(100vh - 70px - env(safe-area-inset-bottom));
        height: calc(100dvh - 70px - env(safe-area-inset-bottom));
        min-height: calc(100dvh - 70px - env(safe-area-inset-bottom));
        padding-top: 6px;
        padding-bottom: calc(70px + env(safe-area-inset-bottom));
        display: flex;
        flex-direction: column;
    }

    body.spx-auth-login-page .spx-auth-wrap .profile {
        width: 100%;
        flex: 1 1 auto;
        display: flex;
    }

    body.spx-auth-login-page .spx-auth-wrap .container {
        flex: 1 1 auto;
        display: flex;
    }

    body.spx-auth-login-page .spx-auth-layout {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
    }

    body.spx-auth-login-page .spx-auth-panel {
        flex: 1 1 auto;
        display: flex;
    }

    body.spx-auth-login-page .spx-auth-card {
        min-height: 0;
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
    }

    body.spx-auth-login-page .spx-auth-card__body {
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
    }

    body.spx-auth-login-page .spx-auth-card__body > div:first-child {
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        justify-content: center;
    }

    body.spx-auth-login-page .spx-auth-footer {
        margin-top: 10px;
    }
}

@media (max-width: 767.98px) {
    body.spx-auth-login-page .spx-auth-wrap {
        height: calc(100vh - 68px - env(safe-area-inset-bottom));
        min-height: calc(100vh - 68px - env(safe-area-inset-bottom));
        height: calc(100dvh - 68px - env(safe-area-inset-bottom));
        min-height: calc(100dvh - 68px - env(safe-area-inset-bottom));
        padding-top: 4px;
        padding-bottom: calc(68px + env(safe-area-inset-bottom));
    }
}

/* Shopee-style mobile auth redesign (login + register) */
@media (max-width: 991.98px) {
    body.spx-auth-page {
        background: #f5f5f5 !important;
    }

    body.spx-auth-page section.bg-white.border-top.mt-auto,
    body.spx-auth-page .footer-widget,
    body.spx-auth-page .spx-auth-bg-orb,
    body.spx-auth-page .spx-auth-visual {
        display: none !important;
    }

    body.spx-auth-page .aiz-mobile-bottom-nav {
        display: block !important;
        z-index: 1040 !important;
    }

    body.spx-auth-page .spx-auth-wrap {
        position: relative;
        height: auto !important;
        min-height: calc(100dvh - env(safe-area-inset-bottom));
        padding: 8px 0 calc(74px + env(safe-area-inset-bottom)) !important;
        background: linear-gradient(180deg, #ee4d2d 0, #ee4d2d 116px, #f5f5f5 116px, #f5f5f5 100%);
    }

    body.spx-auth-page .spx-auth-wrap .profile,
    body.spx-auth-page .spx-auth-wrap .container,
    body.spx-auth-page .spx-auth-layout,
    body.spx-auth-page .spx-auth-panel {
        display: block !important;
        width: 100%;
        height: auto !important;
        max-width: none;
    }

    body.spx-auth-page .spx-auth-wrap .container {
        max-width: 520px;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    body.spx-auth-page .spx-auth-card {
        border: 0 !important;
        border-radius: 14px !important;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08) !important;
        min-height: calc(100dvh - 190px - env(safe-area-inset-bottom));
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    body.spx-auth-page .spx-auth-card__head {
        padding: 16px 16px 8px !important;
    }

    body.spx-auth-page .spx-auth-card__head h1 {
        font-size: 26px !important;
        line-height: 1.2;
        margin-bottom: 2px;
        color: #222 !important;
    }

    body.spx-auth-page .spx-auth-card__head p {
        margin: 0;
        font-size: 13px !important;
        color: #888 !important;
    }

    body.spx-auth-page .spx-auth-card__body {
        padding: 10px 16px 14px !important;
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
    }

    body.spx-auth-page .spx-auth-card__body > div:first-child {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        justify-content: flex-start !important;
    }

    body.spx-auth-page .spx-auth-form .form-group {
        margin-bottom: 12px !important;
    }

    body.spx-auth-page .spx-auth-form .form-control {
        height: 46px !important;
        min-height: 46px !important;
        border-radius: 8px !important;
        border: 1px solid #d9d9d9 !important;
        background: #fff !important;
        color: #222 !important;
        font-size: 15px !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    body.spx-auth-page .spx-auth-form .form-control:focus {
        border-color: #ee4d2d !important;
        box-shadow: 0 0 0 2px rgba(238, 77, 45, 0.14) !important;
    }

    body.spx-auth-page .spx-auth-form .input-group .form-control {
        border-top-right-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
    }

    body.spx-auth-page .spx-auth-form .input-group .btn {
        height: 46px !important;
        min-height: 46px !important;
        border-radius: 0 8px 8px 0 !important;
        padding: 0 12px !important;
        font-size: 13px !important;
        font-weight: 700;
    }

    body.spx-auth-page .spx-auth-form > .row.mb-2 {
        margin-bottom: 12px !important;
    }

    body.spx-auth-page .spx-auth-form > .row.mb-2 a,
    body.spx-auth-page .spx-auth-toggle-btn {
        font-size: 13px !important;
    }

    body.spx-auth-page .spx-auth-submit {
        min-height: 46px !important;
        border-radius: 8px !important;
        border: 0 !important;
        background: #ee4d2d !important;
        box-shadow: none !important;
        font-size: 18px !important;
        font-weight: 700;
        letter-spacing: 0;
    }

    body.spx-auth-page .spx-auth-submit:hover,
    body.spx-auth-page .spx-auth-submit:focus {
        background: #d94225 !important;
    }

    body.spx-auth-page .spx-auth-form > .mb-5 {
        margin-bottom: 10px !important;
    }

    body.spx-auth-page .spx-auth-separator {
        margin-top: 4px;
        margin-bottom: 8px !important;
    }

    body.spx-auth-page .spx-auth-separator span {
        background: #fff;
        color: #9a9a9a;
        font-size: 13px;
    }

    body.spx-auth-page .spx-auth-card .social.mb-5 {
        margin-bottom: 10px !important;
    }

    body.spx-auth-page .spx-auth-card .social li {
        margin: 0 6px;
    }

    body.spx-auth-page .spx-auth-card .social li a {
        width: 40px !important;
        height: 40px !important;
        line-height: 40px !important;
        font-size: 18px !important;
    }

    body.spx-auth-page .spx-auth-footer {
        margin-top: auto;
        padding-top: 10px !important;
        border-top: 1px solid #f0f0f0 !important;
    }

    body.spx-auth-page .spx-auth-footer p {
        font-size: 14px;
        color: #777 !important;
    }

    body.spx-auth-page .spx-auth-footer a {
        color: #ee4d2d !important;
        font-weight: 700;
    }
}

@media (max-width: 767.98px) {
    body.spx-auth-page .spx-auth-wrap {
        padding: 6px 0 calc(68px + env(safe-area-inset-bottom)) !important;
        background: linear-gradient(180deg, #ee4d2d 0, #ee4d2d 104px, #f5f5f5 104px, #f5f5f5 100%);
    }

    body.spx-auth-page .spx-auth-card {
        border-radius: 12px !important;
        min-height: calc(100dvh - 176px - env(safe-area-inset-bottom));
    }

    body.spx-auth-page .spx-auth-card__head h1 {
        font-size: 23px !important;
    }

    body.spx-auth-page .spx-auth-submit {
        font-size: 17px !important;
    }
}

/* Final mobile homepage hard overrides (ensure last-wins behavior). */
@media (max-width: 991.98px) {
    body.market-home-page .spx-home .spx-main-slider,
    body.market-home-page .spx-home .spx-main-slider .aiz-carousel,
    body.market-home-page .spx-home .spx-main-slider .slick-list,
    body.market-home-page .spx-home .spx-main-slider .slick-track,
    body.market-home-page .spx-home .spx-main-slider .carousel-box,
    body.market-home-page .spx-home .spx-main-slider .carousel-box img,
    body.market-home-page .spx-home .spx-hero-right.spx-hero-right--with-sub .spx-main-slider,
    body.market-home-page .spx-home .spx-hero-right.spx-hero-right--with-sub .spx-main-slider .carousel-box img {
        height: 180px !important;
        min-height: 180px !important;
        max-height: 180px !important;
    }

    body.market-home-page .spx-home .spx-main-slider .slick-prev,
    body.market-home-page .spx-home .spx-main-slider .slick-next,
    body.market-home-page .spx-home .spx-main-slider .slick-arrow,
    body.market-home-page .spx-home .spx-main-slider .slick-prev:before,
    body.market-home-page .spx-home .spx-main-slider .slick-next:before,
    body.market-home-page .spx-home .spx-main-slider .slick-prev:after,
    body.market-home-page .spx-home .spx-main-slider .slick-next:after {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        content: '' !important;
    }

    body.market-home-page .spx-home .spx-hero-right.spx-hero-right--with-sub .spx-hero-sub-banners {
        display: none !important;
    }

    body.market-home-page #phpdebugbar,
    body.market-home-page #phpdebugbar-openhandler,
    body.market-home-page .phpdebugbar,
    body.market-home-page .phpdebugbar-openhandler,
    body.market-home-page .phpdebugbar-openhandler-overlay,
    body.market-home-page a.phpdebugbar-open-btn,
    body.market-home-page [id*="phpdebugbar"],
    body.market-home-page [class*="phpdebugbar"],
    body.market-home-page .fb-customerchat,
    body.market-home-page .fb_dialog,
    body.market-home-page .fb_dialog_mobile,
    body.market-home-page .cd-top,
    body.market-home-page iframe[src*="facebook.com/plugins/customerchat"],
    body.market-home-page iframe[src*="_debugbar"] {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
}

/* Auth card top aligned to red-bottom edge on mobile */
@media (max-width: 991.98px) {
    body.spx-auth-page .spx-auth-wrap {
        padding-top: 0 !important;
    }

    body.spx-auth-page .spx-auth-wrap .profile {
        margin-top: 116px !important;
    }

    body.spx-auth-page .spx-auth-card {
        min-height: auto !important;
    }

    body.spx-auth-page .spx-auth-footer {
        margin-top: 12px !important;
    }
}

@media (max-width: 767.98px) {
    body.spx-auth-page .spx-auth-wrap .profile {
        margin-top: 104px !important;
    }
}

/* Final auth mobile redesign (clean card + balanced spacing) */
@media (max-width: 991.98px) {
    body.spx-auth-page {
        background: #eef2f7 !important;
    }

    body.spx-auth-page section.bg-white.border-top.mt-auto,
    body.spx-auth-page .footer-widget,
    body.spx-auth-page .spx-auth-bg-orb,
    body.spx-auth-page .spx-auth-visual,
    body.spx-auth-page .aiz-mobile-side-nav {
        display: none !important;
    }

    body.spx-auth-page .aiz-mobile-bottom-nav {
        display: block !important;
        z-index: 1040 !important;
    }

    body.spx-auth-page .spx-auth-wrap {
        position: relative;
        display: block !important;
        height: auto !important;
        min-height: calc(100vh - 74px - env(safe-area-inset-bottom)) !important;
        min-height: calc(100dvh - 74px - env(safe-area-inset-bottom)) !important;
        padding: 0 0 calc(74px + env(safe-area-inset-bottom)) !important;
        background: #eef2f7 !important;
        overflow: visible !important;
    }

    body.spx-auth-page .spx-auth-wrap::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 132px;
        background: linear-gradient(155deg, #ff6a3d 0%, #ff4d2d 58%, #ff7c54 100%);
        border-bottom-left-radius: 26px;
        border-bottom-right-radius: 26px;
    }

    body.spx-auth-page .spx-auth-wrap .profile {
        position: relative;
        z-index: 1;
        margin-top: 64px !important;
    }

    body.spx-auth-page .spx-auth-wrap .container,
    body.spx-auth-page .spx-auth-layout,
    body.spx-auth-page .spx-auth-panel {
        display: block !important;
        width: 100%;
        height: auto !important;
        max-width: none;
    }

    body.spx-auth-page .spx-auth-wrap .container {
        max-width: 520px;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    body.spx-auth-page .spx-auth-card {
        min-height: auto !important;
        border: 0 !important;
        border-radius: 18px !important;
        background: #ffffff !important;
        box-shadow: 0 12px 28px rgba(21, 34, 50, 0.10) !important;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    body.spx-auth-page .spx-auth-card__head {
        padding: 20px 18px 10px !important;
    }

    body.spx-auth-page .spx-auth-card__head h1 {
        margin: 0 0 4px;
        font-size: 26px !important;
        line-height: 1.2;
        color: #162231 !important;
        letter-spacing: 0;
    }

    body.spx-auth-page .spx-auth-card__head p {
        margin: 0;
        font-size: 13px !important;
        color: #7a8798 !important;
    }

    body.spx-auth-page .spx-auth-card__body {
        padding: 10px 18px 16px !important;
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
    }

    body.spx-auth-page .spx-auth-card__body > div:first-child {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        justify-content: flex-start !important;
    }

    body.spx-auth-page .spx-auth-form .form-group {
        margin-bottom: 12px !important;
    }

    body.spx-auth-page .spx-auth-form .form-control {
        height: 48px !important;
        min-height: 48px !important;
        border-radius: 12px !important;
        border: 1px solid #dbe3ee !important;
        background: #f8fbff !important;
        color: #263446 !important;
        font-size: 15px !important;
        padding-left: 13px !important;
        padding-right: 13px !important;
    }

    body.spx-auth-page .spx-auth-form .form-control:focus {
        border-color: #ff6b45 !important;
        box-shadow: 0 0 0 3px rgba(255, 107, 69, 0.14) !important;
        background: #ffffff !important;
    }

    body.spx-auth-page .spx-auth-form .input-group .form-control {
        border-top-right-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
    }

    body.spx-auth-page .spx-auth-form .input-group .btn {
        height: 48px !important;
        min-height: 48px !important;
        border-radius: 0 12px 12px 0 !important;
        font-size: 13px !important;
        font-weight: 700;
        padding: 0 12px !important;
    }

    body.spx-auth-page .spx-auth-form > .row.mb-2 {
        margin-bottom: 12px !important;
    }

    body.spx-auth-page .spx-auth-form > .row.mb-2 a,
    body.spx-auth-page .spx-auth-toggle-btn {
        font-size: 13px !important;
        color: #6d7b8d !important;
    }

    body.spx-auth-page .spx-auth-submit {
        min-height: 48px !important;
        border-radius: 12px !important;
        border: 0 !important;
        background: linear-gradient(135deg, #ff6a3d 0%, #ff4d2d 100%) !important;
        box-shadow: 0 8px 18px rgba(255, 92, 56, 0.28) !important;
        color: #fff !important;
        font-size: 18px !important;
        font-weight: 700;
        letter-spacing: 0;
    }

    body.spx-auth-page .spx-auth-submit:hover,
    body.spx-auth-page .spx-auth-submit:focus {
        background: linear-gradient(135deg, #ff5f32 0%, #f04324 100%) !important;
    }

    body.spx-auth-page .spx-auth-form > .mb-5 {
        margin-bottom: 10px !important;
    }

    body.spx-auth-page .spx-auth-separator {
        margin-top: 4px;
        margin-bottom: 8px !important;
    }

    body.spx-auth-page .spx-auth-separator span {
        background: #fff;
        color: #98a4b3;
        font-size: 13px;
    }

    body.spx-auth-page .spx-auth-card .social.mb-5 {
        margin-bottom: 10px !important;
    }

    body.spx-auth-page .spx-auth-card .social li {
        margin: 0 6px;
    }

    body.spx-auth-page .spx-auth-card .social li a {
        width: 40px !important;
        height: 40px !important;
        line-height: 40px !important;
        font-size: 18px !important;
    }

    body.spx-auth-page .spx-auth-footer {
        margin-top: 12px !important;
        padding-top: 10px !important;
        border-top: 1px solid #edf1f6 !important;
    }

    body.spx-auth-page .spx-auth-footer p {
        font-size: 14px;
        color: #758295 !important;
    }

    body.spx-auth-page .spx-auth-footer a {
        color: #ff4d2d !important;
        font-weight: 700;
    }
}

@media (max-width: 767.98px) {
    body.spx-auth-page .spx-auth-wrap {
        min-height: calc(100vh - 68px - env(safe-area-inset-bottom)) !important;
        min-height: calc(100dvh - 68px - env(safe-area-inset-bottom)) !important;
        padding-bottom: calc(68px + env(safe-area-inset-bottom)) !important;
    }

    body.spx-auth-page .spx-auth-wrap::before {
        height: 116px;
        border-bottom-left-radius: 22px;
        border-bottom-right-radius: 22px;
    }

    body.spx-auth-page .spx-auth-wrap .profile {
        margin-top: 56px !important;
    }

    body.spx-auth-page .spx-auth-card {
        border-radius: 16px !important;
    }

    body.spx-auth-page .spx-auth-card__head {
        padding: 18px 15px 8px !important;
    }

    body.spx-auth-page .spx-auth-card__head h1 {
        font-size: 23px !important;
    }

    body.spx-auth-page .spx-auth-card__body {
        padding: 10px 15px 14px !important;
    }

    body.spx-auth-page .spx-auth-form .form-control,
    body.spx-auth-page .spx-auth-form .input-group .btn {
        height: 46px !important;
        min-height: 46px !important;
    }

    body.spx-auth-page .spx-auth-submit {
        min-height: 46px !important;
        font-size: 17px !important;
    }
}

/* Login page only: extend white card bottom downward (keep desktop unchanged) */
@media (max-width: 991.98px) {
    body.spx-auth-login-page .spx-auth-card {
        min-height: auto !important;
        margin-bottom: 8px !important;
    }

    body.spx-auth-login-page .spx-auth-card__body {
        padding-bottom: 10px !important;
    }

    body.spx-auth-login-page .spx-auth-card__body > div:first-child {
        flex: 0 0 auto !important;
    }
}

@media (max-width: 767.98px) {
    body.spx-auth-login-page .spx-auth-card {
        min-height: auto !important;
        margin-bottom: 6px !important;
    }

    body.spx-auth-login-page .spx-auth-card__body {
        padding-bottom: 8px !important;
    }
}

@media (max-width: 991.98px) {
    body.spx-auth-login-page .spx-auth-footer--login-cta {
        margin-top: 6px !important;
        margin-bottom: 10px !important;
    }

    body.spx-auth-login-page .spx-auth-footer--login-cta p {
        font-size: 18px !important;
        line-height: 1.25;
    }

    body.spx-auth-login-page .spx-auth-footer--login-cta a {
        font-size: 26px !important;
        line-height: 1.2;
        display: inline-block;
        margin-top: 2px;
    }
}

@media (max-width: 767.98px) {
    body.spx-auth-login-page .spx-auth-footer--login-cta p {
        font-size: 17px !important;
    }

    body.spx-auth-login-page .spx-auth-footer--login-cta a {
        font-size: 24px !important;
    }
}

@media (max-width: 991.98px) {
    body.spx-auth-register-page .spx-auth-footer--register-cta {
        margin-top: 6px !important;
        margin-bottom: 10px !important;
    }

    body.spx-auth-register-page .spx-auth-footer--register-cta p {
        font-size: 18px !important;
        line-height: 1.25;
    }

    body.spx-auth-register-page .spx-auth-footer--register-cta a {
        font-size: 26px !important;
        line-height: 1.2;
        display: inline-block;
        margin-top: 2px;
    }
}

@media (max-width: 767.98px) {
    body.spx-auth-register-page .spx-auth-footer--register-cta p {
        font-size: 17px !important;
    }

    body.spx-auth-register-page .spx-auth-footer--register-cta a {
        font-size: 24px !important;
    }
}

/* Desktop auth motion enhancements (login + register only) */
@media (min-width: 992px) {
    body.spx-auth-page .spx-auth-wrap {
        perspective: 1200px;
    }

    body.spx-auth-page .spx-auth-bg-orb--left {
        animation: spxAuthDesktopOrbLeft 14s ease-in-out infinite;
    }

    body.spx-auth-page .spx-auth-bg-orb--right {
        animation: spxAuthDesktopOrbRight 16s ease-in-out infinite;
    }

    body.spx-auth-page .spx-auth-layout {
        animation: spxAuthDesktopLayoutIn 700ms cubic-bezier(0.22, 0.78, 0.24, 1) both;
        will-change: transform, opacity;
    }

    body.spx-auth-page .spx-auth-visual {
        animation: spxAuthDesktopVisualIn 760ms cubic-bezier(0.22, 0.78, 0.24, 1) 90ms both;
        will-change: transform, opacity;
    }

    body.spx-auth-page .spx-auth-panel {
        animation: spxAuthDesktopPanelIn 760ms cubic-bezier(0.22, 0.78, 0.24, 1) 130ms both;
        will-change: transform, opacity;
    }

    body.spx-auth-page .spx-auth-card {
        transition: transform 320ms ease, box-shadow 320ms ease;
    }

    body.spx-auth-page .spx-auth-layout:hover .spx-auth-card {
        transform: translateY(-3px);
        box-shadow: 0 24px 44px rgba(31, 35, 40, 0.15);
    }

    body.spx-auth-page .spx-auth-form .form-group,
    body.spx-auth-page .spx-auth-form > .row.mb-2,
    body.spx-auth-page .spx-auth-form > .mb-3,
    body.spx-auth-page .spx-auth-form > .mb-5 {
        opacity: 0;
        transform: translateY(12px);
        animation: spxAuthDesktopFieldIn 520ms ease-out both;
    }

    body.spx-auth-page .spx-auth-form .form-group:nth-child(1) { animation-delay: 220ms; }
    body.spx-auth-page .spx-auth-form .form-group:nth-child(2) { animation-delay: 270ms; }
    body.spx-auth-page .spx-auth-form .form-group:nth-child(3) { animation-delay: 320ms; }
    body.spx-auth-page .spx-auth-form .form-group:nth-child(4) { animation-delay: 370ms; }
    body.spx-auth-page .spx-auth-form .form-group:nth-child(5) { animation-delay: 420ms; }
    body.spx-auth-page .spx-auth-form .form-group:nth-child(6) { animation-delay: 470ms; }
    body.spx-auth-page .spx-auth-form .form-group:nth-child(7) { animation-delay: 520ms; }

    body.spx-auth-page .spx-auth-form > .row.mb-2 { animation-delay: 450ms; }
    body.spx-auth-page .spx-auth-form > .mb-3 { animation-delay: 500ms; }
    body.spx-auth-page .spx-auth-form > .mb-5 { animation-delay: 540ms; }

    body.spx-auth-page .spx-auth-form .form-control {
        transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease, background-color 220ms ease;
    }

    body.spx-auth-page .spx-auth-form .form-control:hover {
        border-color: #c8d2e2;
    }

    body.spx-auth-page .spx-auth-form .form-control:focus {
        transform: translateY(-1px);
    }

    body.spx-auth-page .spx-auth-submit {
        position: relative;
        overflow: hidden;
        isolation: isolate;
        transition: transform 220ms ease, box-shadow 220ms ease;
    }

    body.spx-auth-page .spx-auth-submit::before {
        content: "";
        position: absolute;
        top: 0;
        left: -45%;
        width: 36%;
        height: 100%;
        background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.34) 52%, rgba(255, 255, 255, 0) 100%);
        transform: skewX(-18deg);
        pointer-events: none;
        animation: spxAuthDesktopButtonSweep 3.4s ease-in-out infinite;
    }

    body.spx-auth-page .spx-auth-submit:hover,
    body.spx-auth-page .spx-auth-submit:focus {
        transform: translateY(-2px);
    }

    body.spx-auth-page .spx-auth-visual__points span,
    body.spx-auth-page .spx-auth-card .social li a {
        transition: transform 260ms ease, box-shadow 260ms ease;
    }

    body.spx-auth-page .spx-auth-visual__points span:hover {
        transform: translateY(-2px);
    }

    body.spx-auth-page .spx-auth-card .social li a:hover {
        transform: translateY(-3px) scale(1.04);
    }
}

@keyframes spxAuthDesktopLayoutIn {
    0% {
        opacity: 0;
        transform: translateY(18px) scale(0.988);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes spxAuthDesktopVisualIn {
    0% {
        opacity: 0;
        transform: translateX(-14px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes spxAuthDesktopPanelIn {
    0% {
        opacity: 0;
        transform: translateX(14px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes spxAuthDesktopFieldIn {
    0% {
        opacity: 0;
        transform: translateY(12px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spxAuthDesktopButtonSweep {
    0% {
        left: -45%;
    }
    52% {
        left: 120%;
    }
    100% {
        left: 120%;
    }
}

@keyframes spxAuthDesktopOrbLeft {
    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(18px, -14px, 0) scale(1.06);
    }
}

@keyframes spxAuthDesktopOrbRight {
    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(-16px, 14px, 0) scale(1.05);
    }
}

@media (min-width: 992px) and (prefers-reduced-motion: reduce) {
    body.spx-auth-page .spx-auth-wrap *,
    body.spx-auth-page .spx-auth-wrap *::before,
    body.spx-auth-page .spx-auth-wrap *::after {
        animation: none !important;
        transition: none !important;
    }
}

body.spx-auth-page .spx-auth-mobile-hero {
    display: none;
}

/* Desktop-palette mobile auth redesign (login + register) */
@media (max-width: 991.98px) {
    body.spx-auth-page {
        background: #edf1f8 !important;
        font-family: "Poppins", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
    }

    body.spx-auth-page section.bg-white.border-top.mt-auto,
    body.spx-auth-page .footer-widget,
    body.spx-auth-page .spx-auth-bg-orb,
    body.spx-auth-page .spx-auth-visual,
    body.spx-auth-page .aiz-mobile-side-nav {
        display: none !important;
    }

    body.spx-auth-page .aiz-mobile-bottom-nav {
        display: block !important;
        z-index: 1040 !important;
    }

    body.spx-auth-page .spx-auth-wrap {
        position: relative;
        overflow: hidden;
        padding: 16px 0 calc(82px + env(safe-area-inset-bottom)) !important;
        min-height: calc(100dvh - env(safe-area-inset-bottom)) !important;
        background:
            radial-gradient(circle at 13% 8%, rgba(255, 106, 61, 0.14) 0%, rgba(255, 106, 61, 0) 40%),
            radial-gradient(circle at 90% 2%, rgba(166, 81, 255, 0.13) 0%, rgba(166, 81, 255, 0) 35%),
            linear-gradient(180deg, #f8f9fc 0%, #f2f5fb 56%, #edf1f8 100%) !important;
    }

    body.spx-auth-page .spx-auth-wrap::before {
        content: "";
        position: absolute;
        width: 260px;
        height: 260px;
        top: -116px;
        right: -92px;
        border-radius: 999px;
        pointer-events: none;
        background: radial-gradient(circle at 35% 35%, rgba(255, 106, 61, 0.3), rgba(255, 106, 61, 0));
        filter: blur(4px);
        animation: spxAuthMobileNeoFloatA 7.8s ease-in-out infinite;
    }

    body.spx-auth-page .spx-auth-wrap::after {
        content: "";
        position: absolute;
        width: 286px;
        height: 286px;
        left: -122px;
        bottom: -96px;
        border-radius: 999px;
        pointer-events: none;
        background: radial-gradient(circle at 50% 40%, rgba(166, 81, 255, 0.32), rgba(166, 81, 255, 0));
        filter: blur(4px);
        animation: spxAuthMobileNeoFloatB 9s ease-in-out infinite;
    }

    body.spx-auth-page .spx-auth-wrap .profile {
        position: relative;
        z-index: 2;
        margin-top: 0 !important;
    }

    body.spx-auth-login-page .spx-auth-wrap .profile {
        margin-top: 38px !important;
    }

    body.spx-auth-page .spx-auth-wrap .container {
        max-width: 560px !important;
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    body.spx-auth-page .spx-auth-layout {
        background: transparent !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        display: block !important;
        overflow: visible !important;
    }

    body.spx-auth-page .spx-auth-panel {
        background: transparent !important;
        padding: 0 !important;
        display: block !important;
    }

    body.spx-auth-page .spx-auth-card {
        position: relative;
        min-height: auto !important;
        border-radius: 24px !important;
        border: 1px solid #e5ebf4 !important;
        background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%) !important;
        box-shadow:
            0 16px 34px rgba(22, 30, 45, 0.12),
            0 1px 0 rgba(255, 255, 255, 0.95),
            0 0 18px rgba(166, 81, 255, 0.08);
        overflow: hidden;
    }

    body.spx-auth-page .spx-auth-card::before {
        content: "";
        position: absolute;
        inset: 0 auto auto 0;
        width: 100%;
        height: 3px;
        background: linear-gradient(90deg, #ff6a3d 0%, #ff4d2d 42%, #a651ff 100%);
    }

    body.spx-auth-page .spx-auth-mobile-hero {
        display: block;
        padding: 18px 18px 14px;
        border-bottom: 1px solid #edf1f6;
        background: linear-gradient(170deg, rgba(255, 106, 61, 0.06), rgba(166, 81, 255, 0.04) 54%, rgba(255, 255, 255, 0.96) 100%);
    }

    body.spx-auth-page .spx-auth-mobile-hero__brand {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin-bottom: 12px;
    }

    body.spx-auth-page .spx-auth-mobile-hero__logo {
        display: inline-flex;
        align-items: center;
    }

    body.spx-auth-page .spx-auth-mobile-hero__logo img {
        height: 34px;
        width: auto;
        max-width: 170px;
        padding: 4px 10px;
        border-radius: 9px;
        background: rgba(255, 255, 255, 0.95);
    }

    body.spx-auth-page .spx-auth-mobile-hero__chip {
        display: inline-flex;
        align-items: center;
        min-height: 28px;
        padding: 0 12px;
        border-radius: 999px;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.6px;
        text-transform: uppercase;
        color: #f7f9ff;
        background: linear-gradient(120deg, rgba(255, 106, 61, 0.4), rgba(166, 81, 255, 0.42));
        border: 1px solid rgba(255, 255, 255, 0.48);
    }

    body.spx-auth-page .spx-auth-mobile-hero h2 {
        margin: 0 0 4px;
        color: #1f2a3c;
        font-size: 28px;
        line-height: 1.15;
        font-weight: 800;
        letter-spacing: 0;
    }

    body.spx-auth-page .spx-auth-mobile-hero p {
        margin: 0;
        color: #6f7f93;
        font-size: 13px;
        line-height: 1.5;
    }

    body.spx-auth-page .spx-auth-card__head {
        display: none !important;
    }

    body.spx-auth-page .spx-auth-card__body {
        padding: 15px 18px 18px !important;
        display: block !important;
    }

    body.spx-auth-page .spx-auth-card__body > div:first-child {
        display: block !important;
    }

    body.spx-auth-page .spx-auth-form .form-group {
        margin-bottom: 12px !important;
    }

    body.spx-auth-page .spx-auth-form .form-control {
        height: 52px !important;
        min-height: 52px !important;
        border-radius: 14px !important;
        border: 1px solid #dce4ef !important;
        background: #f8fbff !important;
        color: #223044 !important;
        font-size: 15px !important;
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    body.spx-auth-page .spx-auth-form .form-control::placeholder {
        color: #9aa8b8 !important;
    }

    body.spx-auth-page .spx-auth-form .form-control:focus {
        border-color: #a998ff !important;
        box-shadow:
            0 0 0 3px rgba(109, 80, 255, 0.2) !important,
            0 0 16px rgba(166, 81, 255, 0.24) !important;
        background: #ffffff !important;
    }

    body.spx-auth-page .spx-auth-form .input-group .form-control {
        border-top-right-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
    }

    body.spx-auth-page .spx-auth-form .input-group .btn {
        height: 52px !important;
        min-height: 52px !important;
        border: 0 !important;
        border-radius: 0 14px 14px 0 !important;
        padding: 0 12px !important;
        font-size: 13px !important;
        font-weight: 700;
        color: #ffffff !important;
        background: linear-gradient(135deg, #ff6a3d 0%, #ff4d2d 40%, #a651ff 100%) !important;
    }

    body.spx-auth-page .spx-auth-form .iti {
        width: 100%;
    }

    body.spx-auth-page .spx-auth-form .iti .form-control {
        padding-left: 84px !important;
    }

    body.spx-auth-page .spx-auth-form .iti__country-container {
        border-right: 1px solid #dce4ef;
        border-radius: 14px 0 0 14px;
        background: #f2f7ff;
    }

    body.spx-auth-page .spx-auth-form > .row.mb-2 {
        margin-bottom: 12px !important;
    }

    body.spx-auth-page .spx-auth-form > .row.mb-2 a,
    body.spx-auth-page .spx-auth-toggle-btn {
        font-size: 13px !important;
        font-weight: 600;
        color: #6d7d92 !important;
        opacity: 1 !important;
    }

    body.spx-auth-page .spx-auth-submit {
        min-height: 52px !important;
        border-radius: 999px !important;
        border: 0 !important;
        color: #ffffff !important;
        font-size: 17px !important;
        font-weight: 800 !important;
        letter-spacing: 0.3px;
        background: linear-gradient(90deg, #5f3dff 0%, #7b44ff 55%, #a651ff 100%) !important;
        box-shadow:
            0 14px 24px rgba(102, 62, 255, 0.34) !important,
            0 0 22px rgba(166, 81, 255, 0.22) !important;
    }

    body.spx-auth-page .spx-auth-submit:hover,
    body.spx-auth-page .spx-auth-submit:focus {
        background: linear-gradient(90deg, #5534ef 0%, #6f3de9 54%, #9348f1 100%) !important;
    }

    body.spx-auth-page .spx-auth-form > .mb-5 {
        margin-bottom: 10px !important;
    }

    body.spx-auth-page .spx-auth-separator {
        margin-top: 10px !important;
        margin-bottom: 8px !important;
    }

    body.spx-auth-page .spx-auth-separator span {
        background: #ffffff !important;
        color: #9aa7b7 !important;
        font-size: 11px;
        letter-spacing: 0.8px;
        text-transform: uppercase;
    }

    body.spx-auth-page .spx-auth-card .social.mb-5 {
        margin-bottom: 8px !important;
    }

    body.spx-auth-page .spx-auth-card .social li {
        margin: 0 6px;
    }

    body.spx-auth-page .spx-auth-card .social li a {
        width: 42px !important;
        height: 42px !important;
        line-height: 42px !important;
        font-size: 18px !important;
        border: 1px solid #dce3ef !important;
        background: #ffffff !important;
        box-shadow: 0 8px 18px rgba(21, 33, 48, 0.11);
    }

    body.spx-auth-page .spx-auth-footer {
        margin-top: 12px !important;
        padding-top: 12px !important;
        border-top: 1px solid #edf1f6 !important;
    }

    body.spx-auth-page .spx-auth-footer p {
        color: #758398 !important;
        font-size: 14px !important;
        line-height: 1.4 !important;
    }

    body.spx-auth-page .spx-auth-footer a {
        color: #a998ff !important;
        font-weight: 700;
    }

    body.spx-auth-login-page .spx-auth-footer--login-cta p,
    body.spx-auth-register-page .spx-auth-footer--register-cta p {
        font-size: 14px !important;
        line-height: 1.4 !important;
    }

    body.spx-auth-login-page .spx-auth-footer--login-cta a,
    body.spx-auth-register-page .spx-auth-footer--register-cta a {
        font-size: 16px !important;
        line-height: 1.2 !important;
        margin-top: 4px;
        display: inline-block;
    }

    body.spx-auth-page .aiz-checkbox {
        color: #6f7f93;
    }
}

@media (max-width: 575.98px) {
    body.spx-auth-page .spx-auth-wrap {
        padding-top: 12px !important;
        padding-bottom: calc(76px + env(safe-area-inset-bottom)) !important;
    }

    body.spx-auth-page .spx-auth-wrap::after {
        left: -108px;
        bottom: -72px;
    }

    body.spx-auth-login-page .spx-auth-wrap .profile {
        margin-top: 30px !important;
    }

    body.spx-auth-page .spx-auth-wrap .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    body.spx-auth-page .spx-auth-card {
        border-radius: 20px !important;
    }

    body.spx-auth-page .spx-auth-mobile-hero {
        padding: 16px 15px 12px;
    }

    body.spx-auth-page .spx-auth-mobile-hero__logo img {
        height: 32px;
        max-width: 160px;
    }

    body.spx-auth-page .spx-auth-mobile-hero h2 {
        font-size: 25px;
    }

    body.spx-auth-page .spx-auth-mobile-hero p {
        font-size: 12px;
    }

    body.spx-auth-page .spx-auth-card__body {
        padding: 14px 15px 16px !important;
    }

    body.spx-auth-page .spx-auth-form .form-control,
    body.spx-auth-page .spx-auth-form .input-group .btn,
    body.spx-auth-page .spx-auth-submit {
        min-height: 50px !important;
        height: 50px !important;
    }
}

@keyframes spxAuthMobileNeoFloatA {
    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(-12px, 15px, 0) scale(1.06);
    }
}

@keyframes spxAuthMobileNeoFloatB {
    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(12px, -12px, 0) scale(1.04);
    }
}

@media (max-width: 991.98px) and (prefers-reduced-motion: reduce) {
    body.spx-auth-page .spx-auth-wrap::before,
    body.spx-auth-page .spx-auth-wrap::after {
        animation: none !important;
    }
}

/* Auth mobile top-brand alignment + remove in-card logo/chip block */
@media (max-width: 991.98px) {
    body.spx-auth-page .spx-auth-mobile-top-brand {
        position: relative;
        z-index: 3;
        display: flex;
        justify-content: center;
        margin: 2px 0 12px;
    }

    body.spx-auth-page .spx-auth-mobile-top-brand__logo {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
        padding: 6px 12px;
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 10px 20px rgba(29, 40, 57, 0.12);
        text-decoration: none;
    }

    body.spx-auth-page .spx-auth-mobile-top-brand__logo img {
        height: 34px;
        width: auto;
        max-width: 190px;
        display: block;
    }

    body.spx-auth-page .spx-auth-mobile-hero {
        display: none !important;
    }

    body.spx-auth-page .spx-auth-wrap .profile,
    body.spx-auth-login-page .spx-auth-wrap .profile {
        margin-top: 0 !important;
    }

    body.spx-auth-page .spx-auth-card__head {
        display: block !important;
        padding: 18px 18px 12px !important;
        border-bottom: 1px solid #edf1f6 !important;
    }

    body.spx-auth-page .spx-auth-card__head h1 {
        margin: 0 0 4px;
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }

    body.spx-auth-page .spx-auth-card__head p {
        margin: 0;
        color: #6f7f93 !important;
    }

    body.spx-auth-page .spx-auth-card__body {
        padding-top: 14px !important;
    }
}

@media (max-width: 575.98px) {
    body.spx-auth-page .spx-auth-mobile-top-brand {
        margin-bottom: 10px;
    }

    body.spx-auth-page .spx-auth-mobile-top-brand__logo img {
        height: 32px;
        max-width: 176px;
    }

    body.spx-auth-page .spx-auth-card__head {
        padding: 16px 15px 10px !important;
    }

    body.spx-auth-page .spx-auth-card__head h1 {
        font-size: 1.85rem !important;
    }
}

/* User panel desktop + dashboard redesign */
.spx-user-panel-section {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 8%, rgba(67, 120, 255, 0.12) 0%, rgba(67, 120, 255, 0) 33%),
        radial-gradient(circle at 92% 0%, rgba(255, 121, 58, 0.14) 0%, rgba(255, 121, 58, 0) 29%),
        linear-gradient(180deg, #f7f9fc 0%, #edf2fa 46%, #e8edf7 100%);
}

.spx-user-panel-section > .container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1380px;
}

.spx-user-shell {
    gap: 24px;
}

.spx-user-shell .aiz-user-sidenav-wrap {
    flex: 0 0 300px;
    max-width: 300px;
    border: 1px solid #d7e2f1;
    border-radius: 22px;
    box-shadow: 0 16px 32px rgba(27, 45, 78, 0.08);
    background: linear-gradient(180deg, #fbfdff 0%, #f4f8ff 100%);
}

.spx-user-shell .aiz-user-panel {
    flex-grow: 1;
    min-width: 0;
    padding-left: 0;
}

[dir="rtl"] .spx-user-shell .aiz-user-panel {
    padding-right: 0;
}

.spx-user-shell .aiz-user-sidenav {
    border-radius: 22px;
    background: transparent;
}

.spx-user-shell .spx-side-head {
    border-radius: 22px 22px 0 0;
    border-bottom: 0 !important;
    margin-bottom: 0 !important;
    padding: 26px 20px 18px !important;
    background: linear-gradient(145deg, #0d5cd6 0%, #3f82ff 46%, #ff7a44 100%) !important;
    overflow: hidden;
}

.spx-user-shell .spx-side-head::before,
.spx-user-shell .spx-side-head::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.spx-user-shell .spx-side-head::before {
    width: 148px;
    height: 148px;
    top: -72px;
    right: -44px;
    background: radial-gradient(circle at 35% 35%, rgba(255, 229, 176, 0.82), rgba(255, 229, 176, 0));
}

.spx-user-shell .spx-side-head::after {
    width: 120px;
    height: 120px;
    left: -46px;
    bottom: -58px;
    background: radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0));
}

.spx-user-shell .spx-side-head .avatar {
    width: 80px;
    height: 80px;
    border: 4px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.spx-user-shell .spx-side-head h4 {
    color: #ffffff !important;
    font-family: "Poppins", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 21px !important;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.spx-user-shell .spx-side-head .text-truncate {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 14px;
    opacity: 1 !important;
}

.spx-user-shell .spx-side-body {
    margin-bottom: 0 !important;
    padding-top: 12px;
    padding-bottom: 18px;
}

.spx-user-shell .spx-side-list .aiz-side-nav-item {
    margin-bottom: 5px;
}

.spx-user-shell .aiz-user-sidenav .aiz-side-nav-list .aiz-side-nav-link {
    display: flex;
    align-items: center;
    min-height: 46px;
    border-radius: 13px;
    border: 1px solid transparent;
    padding: 8px 12px !important;
    color: #2f4364;
    font-family: "Poppins", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.25s ease;
}

.spx-user-shell .aiz-user-sidenav .aiz-side-nav-list .level-2 .aiz-side-nav-link {
    min-height: 40px;
    padding: 7px 12px 7px 52px !important;
    font-size: 13px;
    font-weight: 500;
}

.spx-user-shell .aiz-user-sidenav .aiz-side-nav-list .aiz-side-nav-icon {
    width: 34px;
    min-width: 34px;
    height: 34px;
    margin-right: 10px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #5f728f;
    background: linear-gradient(180deg, #ffffff 0%, #edf4ff 100%);
    border: 1px solid #dce6f5;
    box-shadow: 0 5px 12px rgba(30, 48, 78, 0.08);
}

.spx-user-shell .aiz-user-sidenav .aiz-side-nav-list .aiz-side-nav-link:hover,
.spx-user-shell .aiz-user-sidenav .aiz-side-nav-list .aiz-side-nav-link.active,
.spx-user-shell .aiz-user-sidenav .aiz-side-nav-list .aiz-side-nav-link.level-2-active,
.spx-user-shell .aiz-user-sidenav .aiz-side-nav-list .aiz-side-nav-link.level-3-active {
    color: #1f3460;
    border-color: #dbe5f6;
    background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
    box-shadow: 0 8px 18px rgba(23, 39, 65, 0.08);
}

.spx-user-shell .aiz-user-sidenav .aiz-side-nav-list .aiz-side-nav-link:hover .aiz-side-nav-icon,
.spx-user-shell .aiz-user-sidenav .aiz-side-nav-list .aiz-side-nav-link.active .aiz-side-nav-icon,
.spx-user-shell .aiz-user-sidenav .aiz-side-nav-list .aiz-side-nav-link.level-2-active .aiz-side-nav-icon,
.spx-user-shell .aiz-user-sidenav .aiz-side-nav-list .aiz-side-nav-link.level-3-active .aiz-side-nav-icon {
    color: #ffffff;
    border-color: transparent;
    background: linear-gradient(145deg, #ff7648 0%, #ff5d2a 48%, #2268ff 100%);
    box-shadow: 0 9px 20px rgba(255, 104, 58, 0.33);
}

.spx-dashboard-redesign {
    font-family: "Poppins", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: #1c3457;
}

.spx-dashboard-redesign .spx-dash-hero {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 18px;
    padding: 24px;
    margin-bottom: 16px;
    border: 1px solid #d9e5f4;
    border-radius: 20px;
    background:
        linear-gradient(132deg, rgba(35, 101, 224, 0.94) 0%, rgba(63, 129, 255, 0.92) 44%, rgba(255, 124, 67, 0.92) 100%),
        #2e69de;
    box-shadow: 0 16px 30px rgba(40, 74, 140, 0.24);
    color: #ffffff;
    overflow: hidden;
    animation: spxPanelFadeUp 0.56s ease both;
}

.spx-dashboard-redesign .spx-dash-hero::after {
    content: "";
    position: absolute;
    width: 240px;
    height: 240px;
    right: -105px;
    top: -118px;
    border-radius: 999px;
    background: radial-gradient(circle at 40% 40%, rgba(255, 239, 192, 0.78), rgba(255, 239, 192, 0));
    pointer-events: none;
}

.spx-dashboard-redesign .spx-dash-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    margin-bottom: 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.38);
    background: rgba(255, 255, 255, 0.18);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.spx-dashboard-redesign .spx-dash-hero__title {
    margin: 0 0 6px;
    color: #ffffff;
    font-size: 34px;
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: 0;
}

.spx-dashboard-redesign .spx-dash-hero__desc {
    margin: 0;
    max-width: 620px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.65;
}

.spx-dashboard-redesign .spx-dash-quick {
    display: grid;
    gap: 9px;
    min-width: 210px;
}

.spx-dashboard-redesign .spx-dash-quick__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 8px 14px;
    border-radius: 12px;
    color: #173664 !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.44);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 20px rgba(30, 50, 94, 0.16);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.spx-dashboard-redesign .spx-dash-quick__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 24px rgba(30, 50, 94, 0.2);
}

.spx-dashboard-redesign .spx-dash-quick__icon {
    width: 28px;
    min-width: 28px;
    height: 28px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1f57c7;
    background: linear-gradient(180deg, #ffffff 0%, #edf3ff 100%);
    border: 1px solid #d8e4f8;
}

.spx-dashboard-redesign .spx-dash-quick__icon svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.spx-dashboard-redesign .spx-dash-metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}

.spx-dashboard-redesign .spx-dash-metric {
    position: relative;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 16px 15px;
    color: #ffffff;
    overflow: hidden;
    box-shadow: 0 12px 24px rgba(23, 45, 84, 0.2);
    opacity: 0;
    animation: spxPanelFadeUp 0.52s ease forwards;
}

.spx-dashboard-redesign .spx-dash-metric::after {
    content: "";
    position: absolute;
    right: -24px;
    bottom: -26px;
    width: 110px;
    height: 110px;
    border-radius: 999px;
    background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0));
}

.spx-dashboard-redesign .spx-dash-metric:nth-child(1) { animation-delay: 0.08s; }
.spx-dashboard-redesign .spx-dash-metric:nth-child(2) { animation-delay: 0.14s; }
.spx-dashboard-redesign .spx-dash-metric:nth-child(3) { animation-delay: 0.2s; }
.spx-dashboard-redesign .spx-dash-metric:nth-child(4) { animation-delay: 0.26s; }

.spx-dashboard-redesign .spx-dash-metric--cart {
    background: linear-gradient(140deg, #ff7e4d 0%, #ff6230 52%, #ff4f27 100%);
}

.spx-dashboard-redesign .spx-dash-metric--wishlist {
    background: linear-gradient(140deg, #8357f3 0%, #6a48e3 45%, #4f37c8 100%);
}

.spx-dashboard-redesign .spx-dash-metric--ordered {
    background: linear-gradient(140deg, #2f95da 0%, #2c7fd3 50%, #285fcb 100%);
}

.spx-dashboard-redesign .spx-dash-metric--orders {
    background: linear-gradient(140deg, #14a38b 0%, #138f89 52%, #0f737d 100%);
}

.spx-dashboard-redesign .spx-dash-metric__label {
    margin: 0 0 7px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.spx-dashboard-redesign .spx-dash-metric__value {
    margin: 0 0 4px;
    font-size: 36px;
    line-height: 1;
    font-weight: 800;
}

.spx-dashboard-redesign .spx-dash-metric__hint {
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 13px;
    line-height: 1.4;
}

.spx-dashboard-redesign .spx-dash-card {
    height: 100%;
    border-radius: 16px;
    border: 1px solid #d7e3f3;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 10px 22px rgba(28, 46, 78, 0.08);
    padding: 18px;
    opacity: 0;
    animation: spxPanelFadeUp 0.6s ease 0.32s forwards;
}

.spx-dashboard-redesign .spx-dash-card--package {
    animation-delay: 0.38s;
}

.spx-dashboard-redesign .spx-dash-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e3ebf8;
}

.spx-dashboard-redesign .spx-dash-card__head h3 {
    margin: 0 0 4px;
    color: #1f3560;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 700;
}

.spx-dashboard-redesign .spx-dash-card__head p {
    margin: 0;
    color: #677d9f;
    font-size: 13px;
    line-height: 1.45;
}

.spx-dashboard-redesign .spx-address-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.spx-dashboard-redesign .spx-address-item {
    min-height: 78px;
    border-radius: 12px;
    border: 1px solid #e3ebf8;
    background: #ffffff;
    padding: 11px 12px;
}

.spx-dashboard-redesign .spx-address-item--full {
    grid-column: 1 / -1;
}

.spx-dashboard-redesign .spx-address-item span {
    display: block;
    margin-bottom: 4px;
    color: #68809f;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.45px;
}

.spx-dashboard-redesign .spx-address-item strong {
    display: block;
    color: #1f365f;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 600;
    word-break: break-word;
}

.spx-dashboard-redesign .spx-dash-empty {
    border-radius: 14px;
    border: 1px dashed #d4e1f4;
    background: #ffffff;
    color: #60789c;
    text-align: center;
    padding: 24px 16px;
}

.spx-dashboard-redesign .spx-package-box {
    text-align: center;
    color: #567095;
    font-size: 13px;
    line-height: 1.5;
}

.spx-dashboard-redesign .spx-package-box h6 {
    color: #1f365f;
    font-size: 15px;
    font-weight: 700;
}

@keyframes spxPanelFadeUp {
    0% {
        opacity: 0;
        transform: translateY(16px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1399.98px) {
    .spx-user-shell .aiz-user-sidenav-wrap {
        flex-basis: 282px;
        max-width: 282px;
    }

    .spx-dashboard-redesign .spx-dash-hero__title {
        font-size: 30px;
    }
}

@media (min-width: 1200px) {
    body.spx-user-panel-page .top-navbar .container,
    body.spx-user-panel-page > .aiz-main-wrapper > header .container,
    body.spx-user-panel-page .spx-user-panel-section > .container {
        max-width: 1380px;
    }
}

@media (min-width: 1600px) {
    body.spx-user-panel-page .top-navbar .container,
    body.spx-user-panel-page > .aiz-main-wrapper > header .container,
    body.spx-user-panel-page .spx-user-panel-section > .container {
        max-width: 1540px;
    }
}

@media (min-width: 1920px) {
    body.spx-user-panel-page .top-navbar .container,
    body.spx-user-panel-page > .aiz-main-wrapper > header .container,
    body.spx-user-panel-page .spx-user-panel-section > .container {
        max-width: 1640px;
    }
}

@media (max-width: 1199.98px) {
    .spx-user-panel-section {
        padding-top: 1.7rem !important;
        padding-bottom: calc(4.4rem + env(safe-area-inset-bottom)) !important;
    }

    .spx-user-shell {
        gap: 0;
    }

    .spx-user-shell .aiz-user-panel {
        width: 100%;
    }

    .spx-dashboard-redesign .spx-dash-metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .spx-dashboard-redesign .spx-dash-hero {
        padding: 18px 16px;
        border-radius: 16px;
    }

    .spx-dashboard-redesign .spx-dash-hero__title {
        font-size: 27px;
    }

    .spx-dashboard-redesign .spx-dash-hero__desc {
        font-size: 13px;
    }

    .spx-dashboard-redesign .spx-dash-quick {
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .spx-dashboard-redesign .spx-dash-card {
        margin-bottom: 14px;
        padding: 15px;
    }

    .spx-dashboard-redesign .spx-dash-card__head {
        flex-direction: column;
        align-items: flex-start;
    }

    .spx-dashboard-redesign .spx-address-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .spx-user-panel-section {
        padding-top: 1.1rem !important;
    }

    .spx-dashboard-redesign {
        display: grid;
        gap: 10px;
    }

    .spx-dashboard-redesign .spx-dash-hero {
        margin-bottom: 0;
        padding: 14px 12px 12px;
        border-radius: 18px;
        gap: 12px;
        background:
            linear-gradient(132deg, rgba(35, 101, 224, 0.95) 0%, rgba(63, 129, 255, 0.92) 46%, rgba(255, 124, 67, 0.9) 100%),
            #2e69de;
        box-shadow: 0 12px 24px rgba(34, 63, 118, 0.24);
    }

    .spx-dashboard-redesign .spx-dash-hero::after {
        width: 190px;
        height: 190px;
        right: -88px;
        top: -98px;
    }

    .spx-dashboard-redesign .spx-dash-hero__eyebrow {
        min-height: 24px;
        padding: 0 10px;
        margin-bottom: 8px;
        font-size: 10px;
        letter-spacing: 0.5px;
    }

    .spx-dashboard-redesign .spx-dash-hero__title {
        font-size: clamp(30px, 8.8vw, 46px);
        line-height: 1;
        margin-bottom: 6px;
    }

    .spx-dashboard-redesign .spx-dash-hero__desc {
        max-width: 100%;
        font-size: 15px;
        line-height: 1.45;
    }

    .spx-dashboard-redesign .spx-dash-quick {
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .spx-dashboard-redesign .spx-dash-quick__btn {
        min-height: 60px;
        border-radius: 14px;
        padding: 9px 10px;
        gap: 8px;
        font-size: 15px;
    }

    .spx-dashboard-redesign .spx-dash-quick__btn:last-child {
        grid-column: 1 / -1;
    }

    .spx-dashboard-redesign .spx-dash-quick__icon {
        width: 34px;
        min-width: 34px;
        height: 34px;
        border-radius: 10px;
    }

    .spx-dashboard-redesign .spx-dash-quick__icon svg {
        width: 17px;
        height: 17px;
    }

    .spx-dashboard-redesign .spx-dash-metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-bottom: 0;
    }

    .spx-dashboard-redesign .spx-dash-metric {
        padding: 13px 12px;
        border-radius: 14px;
        min-height: 126px;
    }

    .spx-dashboard-redesign .spx-dash-metric__label {
        margin-bottom: 6px;
        font-size: 11px;
        letter-spacing: 0;
    }

    .spx-dashboard-redesign .spx-dash-metric__value {
        font-size: 34px;
        margin-bottom: 3px;
    }

    .spx-dashboard-redesign .spx-dash-metric__hint {
        font-size: 12px;
        line-height: 1.35;
    }

    .spx-dashboard-redesign .spx-dash-card {
        padding: 13px 12px;
        margin-bottom: 0;
        border-radius: 14px;
    }

    .spx-dashboard-redesign .spx-dash-card__head {
        margin-bottom: 10px;
        padding-bottom: 9px;
        gap: 8px;
    }

    .spx-dashboard-redesign .spx-dash-card__head h3 {
        font-size: 18px;
        margin: 0;
    }

    .spx-dashboard-redesign .spx-dash-card__head p {
        display: none;
    }

    .spx-dashboard-redesign .spx-address-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }

    .spx-dashboard-redesign .spx-address-item {
        min-height: 0;
        border-radius: 10px;
        padding: 10px;
    }

    .spx-dashboard-redesign .spx-address-item span {
        margin-bottom: 3px;
        font-size: 11px;
        letter-spacing: 0.32px;
    }

    .spx-dashboard-redesign .spx-address-item strong {
        font-size: 13px;
        line-height: 1.4;
    }
}

@media (prefers-reduced-motion: reduce) {
    .spx-dashboard-redesign *,
    .spx-dashboard-redesign *::before,
    .spx-dashboard-redesign *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* Wallet page redesign */
.spx-wallet-redesign {
    color: #1f365f;
}

.spx-wallet-redesign .spx-wallet-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
    padding: 18px 20px;
    border: 1px solid #dbe5f5;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(25, 43, 76, 0.06);
}

.spx-wallet-redesign .spx-wallet-hero__main h1 {
    margin: 0 0 5px;
    color: #1f365f;
    font-size: 30px;
    line-height: 1.12;
    font-weight: 800;
}

.spx-wallet-redesign .spx-wallet-hero__main p {
    margin: 0;
    color: #6a7e9d;
    font-size: 13px;
    line-height: 1.55;
}

.spx-wallet-redesign .spx-wallet-hero__pill {
    min-width: 240px;
    border: 1px solid #d9e5f6;
    border-radius: 12px;
    padding: 11px 14px;
    background: #ffffff;
    text-align: right;
}

.spx-wallet-redesign .spx-wallet-hero__pill span {
    display: block;
    color: #6a7e9d;
    font-size: 12px;
    margin-bottom: 3px;
}

.spx-wallet-redesign .spx-wallet-hero__pill strong {
    display: block;
    color: #1f365f;
    font-size: 24px;
    line-height: 1.15;
    font-weight: 800;
}

.spx-wallet-redesign .spx-wallet-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}

.spx-wallet-redesign .spx-wallet-balance-card {
    border-radius: 14px;
    border: 1px solid #2f6edc;
    padding: 18px 16px;
    color: #ffffff;
    background: linear-gradient(140deg, #3f83ff 0%, #2f6edc 54%, #255cc3 100%);
    box-shadow: 0 12px 24px rgba(38, 86, 171, 0.24);
}

.spx-wallet-redesign .spx-wallet-balance-card__icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.2);
    font-size: 24px;
}

.spx-wallet-redesign .spx-wallet-balance-card__label {
    margin: 0 0 5px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 13px;
}

.spx-wallet-redesign .spx-wallet-balance-card__amount {
    margin: 0;
    color: #ffffff;
    font-size: 32px;
    line-height: 1.08;
    font-weight: 800;
}

.spx-wallet-redesign .spx-wallet-action-card {
    border: 1px solid #d9e4f5;
    border-radius: 14px;
    padding: 16px;
    text-align: left;
    background: #ffffff;
    box-shadow: 0 10px 22px rgba(24, 43, 77, 0.08);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.spx-wallet-redesign .spx-wallet-action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 24px rgba(24, 43, 77, 0.12);
}

.spx-wallet-redesign .spx-wallet-action-card__icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    font-size: 24px;
}

.spx-wallet-redesign .spx-wallet-action-card__title {
    display: block;
    color: #1f365f;
    font-size: 19px;
    line-height: 1.25;
    font-weight: 700;
}

.spx-wallet-redesign .spx-wallet-action-card__hint {
    display: block;
    margin-top: 6px;
    color: #6a7e9d;
    font-size: 13px;
}

.spx-wallet-redesign .spx-wallet-action-card--recharge .spx-wallet-action-card__icon {
    color: #ffffff;
    background: linear-gradient(135deg, #20a97f 0%, #108f7f 100%);
}

.spx-wallet-redesign .spx-wallet-action-card--withdraw .spx-wallet-action-card__icon {
    color: #ffffff;
    background: linear-gradient(135deg, #3f83ff 0%, #2a66d4 100%);
}

.spx-wallet-redesign .spx-wallet-panel {
    border: 1px solid #d7e3f4;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 10px 22px rgba(23, 40, 72, 0.08);
    margin-bottom: 14px;
    overflow: hidden;
}

.spx-wallet-redesign .spx-wallet-panel__head {
    padding: 14px 16px 12px;
    border-bottom: 1px solid #e4ebf8;
    background: #ffffff;
}

.spx-wallet-redesign .spx-wallet-panel__head h5 {
    margin: 0;
    color: #1f365f;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 700;
}

.spx-wallet-redesign .spx-wallet-panel__head p {
    margin: 5px 0 0;
    color: #6a7e9d;
    font-size: 13px;
}

.spx-wallet-redesign .spx-wallet-panel__body {
    padding: 12px 14px 14px;
}

.spx-wallet-redesign .spx-wallet-table thead th {
    color: #33496f;
    font-weight: 700;
    border-top: 0;
    border-bottom: 1px solid #e4ebf8;
    background: #fbfdff;
}

.spx-wallet-redesign .spx-wallet-table tbody td {
    color: #33496f;
    border-top: 1px solid #edf2fa;
    vertical-align: middle;
}

.spx-wallet-redesign .spx-wallet-pagination {
    margin-top: 10px;
}

.spx-wallet-redesign .spx-wallet-mobile-list {
    display: none;
}

.spx-wallet-redesign .spx-wallet-mobile-item {
    margin-bottom: 10px;
    border: 1px solid #dee8f7;
    border-radius: 12px;
    background: #ffffff;
    padding: 11px 12px;
    box-shadow: 0 6px 14px rgba(26, 47, 81, 0.06);
}

.spx-wallet-redesign .spx-wallet-mobile-item:last-child {
    margin-bottom: 0;
}

.spx-wallet-redesign .spx-wallet-mobile-item__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.spx-wallet-redesign .spx-wallet-mobile-item__index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: #edf3ff;
    color: #2a58b8;
    font-size: 12px;
    font-weight: 700;
}

.spx-wallet-redesign .spx-wallet-mobile-item__date {
    color: #6a7e9d;
    font-size: 12px;
    font-weight: 600;
}

.spx-wallet-redesign .spx-wallet-mobile-item__row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 0;
    border-top: 1px dashed #e8effb;
}

.spx-wallet-redesign .spx-wallet-mobile-item__row > span {
    color: #637a9c;
    font-size: 12px;
    line-height: 1.45;
}

.spx-wallet-redesign .spx-wallet-mobile-item__row > strong {
    color: #1f365f;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 700;
    text-align: right;
    max-width: 68%;
    word-break: break-word;
}

.spx-wallet-redesign .spx-wallet-mobile-item__row--stack {
    display: block;
}

.spx-wallet-redesign .spx-wallet-mobile-item__row--stack > strong {
    display: block;
    margin-top: 4px;
    max-width: 100%;
    text-align: left;
    font-weight: 600;
}

.spx-wallet-redesign .spx-wallet-mobile-empty {
    border: 1px dashed #d7e4f7;
    border-radius: 12px;
    background: #fbfdff;
    color: #5d7395;
    text-align: center;
    padding: 22px 14px;
    font-size: 13px;
    line-height: 1.5;
}

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

@media (max-width: 991.98px) {
    .spx-wallet-redesign .spx-wallet-hero {
        flex-direction: column;
        align-items: stretch;
        padding: 15px 14px;
    }

    .spx-wallet-redesign .spx-wallet-hero__main h1 {
        font-size: 24px;
    }

    .spx-wallet-redesign .spx-wallet-hero__pill {
        min-width: 0;
        text-align: left;
    }

    .spx-wallet-redesign .spx-wallet-balance-card__amount {
        font-size: 28px;
    }

    .spx-wallet-redesign .spx-wallet-action-card__title {
        font-size: 17px;
    }

    .spx-wallet-redesign .spx-wallet-panel__head h5 {
        font-size: 20px;
    }
}

@media (max-width: 767.98px) {
    .spx-wallet-redesign .spx-wallet-hero {
        padding: 12px;
        gap: 10px;
    }

    .spx-wallet-redesign .spx-wallet-hero__main h1 {
        font-size: 22px;
    }

    .spx-wallet-redesign .spx-wallet-hero__pill {
        padding: 8px 10px;
        border-radius: 10px;
    }

    .spx-wallet-redesign .spx-wallet-hero__pill strong {
        font-size: 20px;
    }

    .spx-wallet-redesign .spx-wallet-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        margin-bottom: 12px;
    }

    .spx-wallet-redesign .spx-wallet-balance-card {
        padding: 14px 13px;
        border-radius: 13px;
    }

    .spx-wallet-redesign .spx-wallet-balance-card__icon {
        width: 38px;
        height: 38px;
        margin-bottom: 8px;
        font-size: 20px;
    }

    .spx-wallet-redesign .spx-wallet-balance-card__amount {
        font-size: 30px;
    }

    .spx-wallet-redesign .spx-wallet-action-card {
        padding: 12px;
        min-height: 0;
        display: flex;
        align-items: center;
        gap: 10px;
        box-shadow: 0 7px 16px rgba(24, 43, 77, 0.08);
    }

    .spx-wallet-redesign .spx-wallet-action-card__icon {
        margin: 0;
        width: 38px;
        height: 38px;
        border-radius: 11px;
        font-size: 21px;
        flex: 0 0 auto;
    }

    .spx-wallet-redesign .spx-wallet-action-card__title {
        font-size: 17px;
        line-height: 1.3;
    }

    .spx-wallet-redesign .spx-wallet-panel {
        margin-bottom: 12px;
    }

    .spx-wallet-redesign .spx-wallet-panel__head {
        padding: 11px 12px;
    }

    .spx-wallet-redesign .spx-wallet-panel__body {
        padding: 10px;
    }

    .spx-wallet-redesign .spx-wallet-panel__head h5 {
        font-size: 18px;
    }

    .spx-wallet-redesign .spx-wallet-mobile-list {
        display: block;
    }
}

/* Wallet withdraw request modal */
#request_modal.spx-withdraw-modal .modal-dialog {
    max-width: 560px;
}

#request_modal.spx-withdraw-modal .modal-content {
    border: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 46px rgba(14, 28, 52, 0.16);
}

#request_modal.spx-withdraw-modal .spx-withdraw-modal__header {
    border-bottom: 1px solid #e3eaf7;
    background: #ffffff;
    padding: 16px 18px 14px;
}

#request_modal.spx-withdraw-modal .modal-title {
    color: #1f365f;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 700;
}

#request_modal.spx-withdraw-modal .spx-withdraw-modal__body {
    background: #f5f8fd;
    padding: 16px 18px 18px !important;
}

#request_modal.spx-withdraw-modal .spx-withdraw-modal__balance {
    margin-bottom: 12px;
    border: 1px solid #d9e5f7;
    border-radius: 12px;
    padding: 11px 12px;
    background: #ffffff;
}

#request_modal.spx-withdraw-modal .spx-withdraw-modal__balance span {
    display: block;
    color: #6a7e9d;
    font-size: 12px;
    line-height: 1.4;
}

#request_modal.spx-withdraw-modal .spx-withdraw-modal__balance strong {
    display: block;
    margin-top: 2px;
    color: #1f365f;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 800;
}

#request_modal.spx-withdraw-modal .spx-withdraw-modal__field {
    margin-bottom: 12px;
}

#request_modal.spx-withdraw-modal .spx-withdraw-modal__field label {
    display: inline-block;
    margin-bottom: 6px;
    color: #2f4367;
    font-size: 13px;
    font-weight: 600;
}

#request_modal.spx-withdraw-modal .spx-withdraw-modal__field .form-control {
    min-height: 42px;
    border-color: #d5dfef;
    color: #2e4265;
    border-radius: 10px;
    background: #ffffff;
}

#request_modal.spx-withdraw-modal .spx-withdraw-modal__field textarea.form-control {
    min-height: 118px;
    resize: vertical;
    padding-top: 10px;
}

#request_modal.spx-withdraw-modal .spx-withdraw-modal__field .form-control:focus {
    border-color: #4c6fff;
    box-shadow: 0 0 0 2px rgba(76, 111, 255, 0.14);
}

#request_modal.spx-withdraw-modal .spx-withdraw-modal__actions {
    text-align: right;
    margin-top: 2px;
}

#request_modal.spx-withdraw-modal .spx-withdraw-modal__submit {
    min-width: 120px;
    min-height: 42px;
    border-radius: 10px;
    font-weight: 700;
}

#request_modal.spx-withdraw-modal .spx-withdraw-modal__warning {
    border: 1px solid #ffd8da;
    border-radius: 12px;
    padding: 14px;
    background: #fff4f4;
    color: #9f2f40;
    font-weight: 600;
    line-height: 1.5;
}

@media (max-width: 767.98px) {
    #request_modal.spx-withdraw-modal .modal-dialog {
        margin: 0.55rem;
    }

    #request_modal.spx-withdraw-modal .spx-withdraw-modal__header {
        padding: 14px;
    }

    #request_modal.spx-withdraw-modal .modal-title {
        font-size: 20px;
    }

    #request_modal.spx-withdraw-modal .spx-withdraw-modal__body {
        padding: 12px !important;
    }

    #request_modal.spx-withdraw-modal .spx-withdraw-modal__submit {
        width: 100%;
    }
}

/* Mobile auth full-screen layout (login + register) */
@media (max-width: 991.98px) {
    body.spx-auth-page {
        --spx-auth-mobile-bg-a: #f4f7ff;
        --spx-auth-mobile-bg-b: #edf3ff;
        --spx-auth-mobile-bg-c: #e8f0ff;
        --spx-auth-mobile-ink: #1e2b3f;
        --spx-auth-mobile-muted: #667892;
    }

    body.spx-auth-page .spx-auth-wrap {
        display: flex;
        flex-direction: column;
        min-height: 100dvh !important;
        padding: 0 0 calc(52px + env(safe-area-inset-bottom)) !important;
        background:
            radial-gradient(circle at 0% 0%, rgba(41, 120, 255, 0.16), rgba(41, 120, 255, 0) 38%),
            radial-gradient(circle at 100% 0%, rgba(255, 115, 61, 0.2), rgba(255, 115, 61, 0) 36%),
            linear-gradient(180deg, var(--spx-auth-mobile-bg-a) 0%, var(--spx-auth-mobile-bg-b) 52%, var(--spx-auth-mobile-bg-c) 100%) !important;
    }

    body.spx-auth-page .spx-auth-wrap::before,
    body.spx-auth-page .spx-auth-wrap::after {
        display: none !important;
    }

    body.spx-auth-page .spx-auth-mobile-top-brand {
        justify-content: center;
        margin: 0 !important;
        padding: calc(44px + env(safe-area-inset-top)) 20px 12px;
    }

    body.spx-auth-page .spx-auth-mobile-top-brand__logo {
        padding: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }

    body.spx-auth-page .spx-auth-mobile-top-brand__logo img {
        height: 38px;
        max-width: 220px;
    }

    body.spx-auth-page .spx-auth-wrap .profile,
    body.spx-auth-page .spx-auth-wrap .container,
    body.spx-auth-page .spx-auth-layout,
    body.spx-auth-page .spx-auth-panel,
    body.spx-auth-page .spx-auth-card {
        width: 100%;
    }

    body.spx-auth-page .spx-auth-wrap .profile,
    body.spx-auth-login-page .spx-auth-wrap .profile {
        margin-top: 34px !important;
    }

    body.spx-auth-page .spx-auth-wrap .container {
        flex: 1 1 auto;
        max-width: none !important;
        padding-top: 28px;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    body.spx-auth-page .spx-auth-layout {
        display: block !important;
    }

    body.spx-auth-page .spx-auth-card {
        min-height: auto !important;
        margin: 0 !important;
        padding-bottom: 10px;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
        overflow: visible !important;
    }

    body.spx-auth-page .spx-auth-card::before {
        display: none !important;
    }

    body.spx-auth-page .spx-auth-card__head {
        display: block !important;
        padding: 8px 0 14px !important;
        border: 0 !important;
    }

    body.spx-auth-page .spx-auth-card__head h1 {
        margin: 0 0 6px;
        color: var(--spx-auth-mobile-ink) !important;
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }

    body.spx-auth-page .spx-auth-card__head p {
        margin: 0;
        color: var(--spx-auth-mobile-muted) !important;
    }

    body.spx-auth-page .spx-auth-card__body {
        padding: 0 !important;
    }

    body.spx-auth-page .spx-auth-form .form-control {
        border-radius: 12px !important;
        border: 1px solid rgba(132, 152, 180, 0.3) !important;
        background: rgba(255, 255, 255, 0.9) !important;
        box-shadow: none !important;
    }

    body.spx-auth-page .spx-auth-form .form-control:focus {
        border-color: #2f72ff !important;
        box-shadow: 0 0 0 3px rgba(47, 114, 255, 0.15) !important;
        background: #ffffff !important;
    }

    body.spx-auth-page .spx-auth-form .input-group .btn,
    body.spx-auth-page .spx-auth-submit {
        border-radius: 12px !important;
    }

    body.spx-auth-page .spx-auth-form .input-group .btn {
        border-top-left-radius: 0 !important;
        border-bottom-left-radius: 0 !important;
    }

    body.spx-auth-page .spx-auth-submit {
        background: linear-gradient(90deg, #2568f2 0%, #2f72ff 60%, #ff6f3d 100%) !important;
        box-shadow: 0 12px 22px rgba(37, 104, 242, 0.25) !important;
    }

    body.spx-auth-page .spx-auth-separator,
    body.spx-auth-page .spx-auth-card .social {
        display: none !important;
    }

    body.spx-auth-page .spx-auth-footer {
        margin-top: 14px !important;
        padding-top: 14px !important;
        border-top: 1px solid rgba(117, 139, 166, 0.28) !important;
    }

    body.spx-auth-page .spx-auth-footer p {
        color: var(--spx-auth-mobile-muted) !important;
    }

    body.spx-auth-page .spx-auth-footer a {
        color: #1f5fe0 !important;
    }
}

@media (max-width: 575.98px) {
    body.spx-auth-page .spx-auth-wrap {
        padding-bottom: calc(48px + env(safe-area-inset-bottom)) !important;
    }

    body.spx-auth-page .spx-auth-mobile-top-brand {
        justify-content: center;
        padding-top: calc(40px + env(safe-area-inset-top));
        padding-bottom: 10px;
        padding-left: 16px;
        padding-right: 16px;
    }

    body.spx-auth-page .spx-auth-wrap .container {
        padding-top: 22px;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    body.spx-auth-page .spx-auth-card__head h1 {
        font-size: 1.8rem !important;
    }
}
