/* ==========================================================================
   ACERO SHOP - ui-refresh.css
   Shared UI/UX + responsive layer. Loaded AFTER style.css on every page.
   Change the tokens below to re-theme the whole site in one place.
   Breakpoints: <576 phone | 576-767 large phone | 768-991 tablet |
                992-1199 laptop | 1200+ desktop
   ========================================================================== */

/* ---------- 1. DESIGN TOKENS ---------- */
:root {
    --ac-red: #e74c3c;
    --ac-red-dark: #c0392b;
    --ac-red-soft: #fdeeec;
    --ac-green: #00a37f;
    --ac-ink: #1f2430;
    --ac-muted: #6b7280;
    --ac-line: #e9ebef;
    --ac-bg: #f6f7f9;
    --ac-surface: #ffffff;

    --ac-radius-sm: 8px;
    --ac-radius: 14px;
    --ac-radius-lg: 20px;

    --ac-shadow-sm: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .06);
    --ac-shadow-md: 0 4px 12px rgba(16, 24, 40, .08), 0 2px 4px rgba(16, 24, 40, .04);
    --ac-shadow-lg: 0 12px 28px rgba(16, 24, 40, .14);

    --ac-gutter: 12px;          /* page side padding on phones */
    --ac-max: 1400px;           /* max content width on big screens */
    --ac-nav-h: 64px;           /* bottom nav height on phones/tablets */
    --ac-tap: 44px;             /* minimum touch target */

    /* Make Bootstrap's "primary" the brand red so buttons, links, focus rings
       and badges match the logo instead of default blue. */
    --bs-primary: #e74c3c;
    --bs-primary-rgb: 231, 76, 60;
    --bs-link-color: #c0392b;
    --bs-link-color-rgb: 192, 57, 43;
    --bs-link-hover-color: #a93226;
    --bs-link-hover-color-rgb: 169, 50, 38;
    --bottom-nav-height: var(--ac-nav-h);
}

/* ---------- 2. BASE ---------- */
html { -webkit-tap-highlight-color: transparent; scroll-padding-top: 80px; }

html body {
    background-color: var(--ac-bg);
    color: var(--ac-ink);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    line-height: 1.5;
}

html body :where(h1, h2, h3, h4, h5, h6) { line-height: 1.25; letter-spacing: -.01em; }

/* Keyboard focus that is actually visible (was missing / inconsistent) */
html body :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
    outline: 3px solid rgba(231, 76, 60, .45);
    outline-offset: 2px;
    border-radius: 8px;
}
html body :where(a, button, input, select, textarea):focus:not(:focus-visible) { outline: none; }

/* Long words / emails / URLs must never push the layout wider than the screen */
html body :where(p, li, td, th, h1, h2, h3, h4, h5, h6, .card-body, .alert) { overflow-wrap: anywhere; }

html body :where(img, svg, video, canvas) { max-width: 100%; }

/* ---------- 3. BUTTONS & FORMS ---------- */
html body .btn {
    min-height: 40px;
    border-radius: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease, transform .1s ease;
}
html body .btn:active { transform: scale(.98); }
html body .btn-sm { min-height: 36px; border-radius: 10px; }
html body .btn-lg { min-height: 52px; border-radius: 14px; }

/* brand-colored Bootstrap buttons */
html body .btn-primary {
    --bs-btn-bg: var(--ac-red);
    --bs-btn-border-color: var(--ac-red);
    --bs-btn-hover-bg: var(--ac-red-dark);
    --bs-btn-hover-border-color: var(--ac-red-dark);
    --bs-btn-active-bg: #a93226;
    --bs-btn-active-border-color: #a93226;
    --bs-btn-disabled-bg: var(--ac-red);
    --bs-btn-disabled-border-color: var(--ac-red);
    --bs-btn-focus-shadow-rgb: 231, 76, 60;
    background-color: var(--ac-red);
    border-color: var(--ac-red);
    color: #fff;
}
html body .btn-primary:hover, html body .btn-primary:focus { background-color: var(--ac-red-dark); border-color: var(--ac-red-dark); color: #fff; }
html body .btn-outline-primary {
    --bs-btn-color: var(--ac-red);
    --bs-btn-border-color: var(--ac-red);
    --bs-btn-hover-bg: var(--ac-red);
    --bs-btn-hover-border-color: var(--ac-red);
    --bs-btn-active-bg: var(--ac-red-dark);
    --bs-btn-active-border-color: var(--ac-red-dark);
    --bs-btn-focus-shadow-rgb: 231, 76, 60;
    color: var(--ac-red);
    border-color: var(--ac-red);
}
html body .btn-outline-primary:hover { background-color: var(--ac-red); color: #fff; }
html body .text-primary { color: var(--ac-red) !important; }
html body .bg-primary { background-color: var(--ac-red) !important; }
html body .border-primary { border-color: var(--ac-red) !important; }

/* Inputs: 16px stops iOS from zooming the page on focus, which is why
   pinch-zoom had been blocked. Zoom is now allowed again (accessibility). */
html body .form-control,
html body .form-select,
html body textarea.form-control {
    min-height: var(--ac-tap);
    font-size: 16px;
    border-radius: 12px;
    border: 1.5px solid var(--ac-line);
    background-color: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}
html body textarea.form-control { min-height: 96px; }
html body .form-control:focus,
html body .form-select:focus {
    border-color: var(--ac-red);
    box-shadow: 0 0 0 4px rgba(231, 76, 60, .14);
}
/* Inside input groups / pill search bars the GROUP shows the focus ring, not the bare input */
html body .input-group > .form-control:focus { box-shadow: none; border-color: var(--ac-line); }
html body .input-group:focus-within { border-radius: 12px; box-shadow: 0 0 0 4px rgba(231, 76, 60, .14); }
html body .input-group:focus-within > .form-control,
html body .input-group:focus-within > .input-group-text,
html body .input-group:focus-within > .btn { border-color: var(--ac-red); }
html body .form-check-input { width: 1.25em; height: 1.25em; margin-top: .15em; }
html body .form-check-input:checked { background-color: var(--ac-red); border-color: var(--ac-red); }
html body .form-label { font-weight: 600; font-size: .9rem; margin-bottom: .35rem; }
html body .input-group > .form-control, html body .input-group > .btn { min-height: var(--ac-tap); }

/* ---------- 4. SURFACES ---------- */
html body .card {
    border: 1px solid var(--ac-line);
    border-radius: var(--ac-radius) !important;
    box-shadow: var(--ac-shadow-sm);
    background: var(--ac-surface);
}
html body .list-group-item { border-color: var(--ac-line); }
html body .badge { font-weight: 600; letter-spacing: .01em; }

html body .modal-content {
    border: 0;
    border-radius: var(--ac-radius-lg);
    box-shadow: var(--ac-shadow-lg);
}
html body .modal-dialog { margin: .75rem auto; }
html body .modal-dialog:not(.modal-fullscreen) { max-width: min(var(--bs-modal-width, 500px), calc(100vw - 1.5rem)); }
html body .modal-body { overflow-wrap: anywhere; }

/* SweetAlert2: never wider than the screen, comfortable buttons */
html body .swal2-popup { width: min(32em, calc(100vw - 24px)) !important; border-radius: var(--ac-radius-lg) !important; font-family: inherit; }
html body .swal2-actions .swal2-styled { min-height: 44px; border-radius: 12px !important; }
html body .swal2-confirm { background-color: var(--ac-red) !important; }

/* Tables must scroll inside their own box instead of widening the page.
   (js/ui-refresh.js wraps bare tables; this covers the wrapper.) */
.ac-table-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ac-table-scroll > table { margin-bottom: 0; min-width: 520px; }

/* ---------- 5. HEADER (top navbar) ---------- */
#mainNavbar#mainNavbar {
    background: rgba(255, 255, 255, .96);
    -webkit-backdrop-filter: saturate(160%) blur(8px);
    backdrop-filter: saturate(160%) blur(8px);
    box-shadow: 0 1px 0 var(--ac-line), 0 6px 16px rgba(16, 24, 40, .04);
    padding: 8px 0;
    padding-top: calc(8px + env(safe-area-inset-top, 0px));
}
#mainNavbar#mainNavbar > .container,
#mainNavbar#mainNavbar .container {
    max-width: var(--ac-max) !important;
    margin-inline: auto;
    padding-inline: var(--ac-gutter) !important;
}
#mainNavbar#mainNavbar .container > .d-flex {
    width: 100% !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
}

/* Logo + "Ask AI" pill stay together on the left */
#mainNavbar#mainNavbar .acero-brand-wrap {
    flex: 1 1 auto;
    min-width: 0;
    padding-bottom: 22px;
    margin-right: auto;
}
#mainNavbar#mainNavbar .navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    font-size: 1.3rem !important;
    letter-spacing: -.02em;
    min-width: 0;
}
#mainNavbar#mainNavbar .navbar-brand img {
    width: 30px !important;
    height: 30px !important;
    margin: 0 !important;
    border-radius: 8px;
    object-fit: contain;
    flex: 0 0 auto;
}
#mainNavbar#mainNavbar .acero-header-ai {
    left: 0;
    height: 22px;
    font-size: .68rem;
}

/* Seller Hub + Cart: right side, always visible, always tappable */
#mainNavbar#mainNavbar #sellerHubBtn {
    flex: 0 0 auto;
    margin: 0 !important;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: .82rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 163, 127, .08) !important;
    border: 1.5px solid rgba(0, 163, 127, .55) !important;
    color: var(--ac-green) !important;
}
#mainNavbar#mainNavbar #sellerHubBtn i { margin: 0 !important; }
#mainNavbar#mainNavbar .btn-light.position-relative {
    flex: 0 0 auto;
    margin: 0 !important;
    width: var(--ac-tap);
    height: var(--ac-tap);
    min-height: var(--ac-tap);
    padding: 0 !important;
    border-radius: 50%;
    background: #f3f4f6;
    border: 0;
    color: var(--ac-ink) !important;
}
#mainNavbar#mainNavbar .btn-light.position-relative i { color: var(--ac-ink); font-size: 1.1rem !important; }
#mainNavbar#mainNavbar #cartCountDesktop {
    top: -4px !important;
    left: auto !important;
    right: -3px;
    transform: none !important;
    background: var(--ac-red) !important;
    min-width: 18px !important;
    height: 18px !important;
    font-size: .65rem !important;
    border: 2px solid #fff;
    box-sizing: content-box;
}

/* Very small phones (iPhone SE / 320px): icon-only Seller Hub */
@media (max-width: 359px) {
    #mainNavbar#mainNavbar #sellerHubBtn { font-size: 0; padding: 0; width: 38px; justify-content: center; gap: 0; }
    #mainNavbar#mainNavbar #sellerHubBtn i { font-size: 1rem; }
    #mainNavbar#mainNavbar .navbar-brand { font-size: 1.1rem !important; }
    #mainNavbar#mainNavbar .acero-header-ai span { display: none; }
    #mainNavbar#mainNavbar .acero-header-ai { width: 28px; padding: 0; }
}

/* Tablet: roomier header */
@media (min-width: 768px) {
    :root { --ac-gutter: 20px; }
    #mainNavbar#mainNavbar .navbar-brand { font-size: 1.45rem !important; }
    #mainNavbar#mainNavbar .acero-header-ai { font-size: .72rem; }
}

/* Desktop: logo | links ........ | search | cart
   The brand/Seller Hub/cart live inside the first .d-flex wrapper while the JS
   adds the links + search as siblings. display:contents flattens them into
   ONE flex row so they can be ordered and can never overlap. */
@media (min-width: 992px) {
    :root { --ac-gutter: 28px; --ac-nav-h: 0px; }
    #mainNavbar#mainNavbar { padding-block: 10px; }
    #mainNavbar#mainNavbar > .container {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center;
        gap: 14px;
    }
    #mainNavbar#mainNavbar .container > .d-flex { display: contents !important; }

    #mainNavbar#mainNavbar .acero-brand-wrap {
        order: 0;
        display: flex;
        align-items: center;
        gap: 10px;
        padding-bottom: 0;
        flex: 0 0 auto;
        margin-right: 0;
    }
    #mainNavbar#mainNavbar .acero-header-ai { position: static; }
    /* "Seller Hub" already exists as a link inside the desktop nav */
    #mainNavbar#mainNavbar #sellerHubBtn { display: none !important; }

    #mainNavbar#mainNavbar .desktop-nav-links {
        order: 1;
        flex: 1 1 auto;
        min-width: 0;
        justify-content: center;
        gap: 2px;
        margin: 0;
    }
    #mainNavbar#mainNavbar .desktop-nav-link {
        padding: 8px 11px;
        border-radius: 10px;
        font-size: .86rem;
        color: #4b5563;
    }
    #mainNavbar#mainNavbar .desktop-nav-link i { display: none; }
    #mainNavbar#mainNavbar .desktop-nav-link:hover { background: #f3f4f6; color: var(--ac-ink); }
    #mainNavbar#mainNavbar .desktop-nav-link.active { background: var(--ac-red-soft); color: var(--ac-red-dark); }

    #mainNavbar#mainNavbar .desktop-search-wrap { order: 4; flex: 0 1 240px; min-width: 120px; }
    #mainNavbar#mainNavbar .desktop-search-wrap form { width: 100%; border-radius: 999px !important; }
    #mainNavbar#mainNavbar .desktop-search-wrap input { width: 100% !important; min-width: 0; font-size: .9rem !important; min-height: 0 !important; }
    #mainNavbar#mainNavbar .btn-light.position-relative { order: 5; margin-left: 6px !important; }

    /* compact AI pill (icon only) until there is room for the label */
    #mainNavbar#mainNavbar .acero-header-ai span { display: none; }
    #mainNavbar#mainNavbar .acero-header-ai { width: 30px; height: 30px; padding: 0; }
}
/* Laptops (992-1199): search = just the field, Enter submits */
@media (min-width: 992px) and (max-width: 1199px) {
    #mainNavbar#mainNavbar .desktop-nav-link { padding-inline: 8px; font-size: .82rem; }
    #mainNavbar#mainNavbar .desktop-search-wrap { flex-basis: 150px; }
    #mainNavbar#mainNavbar .desktop-search-wrap button { display: none; }
}
/* Desktops: bring icons back, then the full "Ask AI" label, as room grows */
@media (min-width: 1400px) {
    #mainNavbar#mainNavbar .desktop-nav-link i { display: inline-block; }
    #mainNavbar#mainNavbar .desktop-search-wrap { flex-basis: 280px; }
}
@media (min-width: 1500px) {
    #mainNavbar#mainNavbar .acero-header-ai span { display: inline; }
    #mainNavbar#mainNavbar .acero-header-ai { width: auto; height: 22px; padding: 0 10px; }
}

/* ---------- 6. BOTTOM NAV (phones + tablets) ---------- */
html body .bottom-nav {
    height: calc(var(--ac-nav-h) + env(safe-area-inset-bottom, 0px));
    padding: 6px 6px env(safe-area-inset-bottom, 0px);
    background: rgba(255, 255, 255, .97);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--ac-line);
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -6px 20px rgba(16, 24, 40, .08);
    gap: 2px;
}
html body .nav-item-bottom {
    flex: 1 1 0;
    min-width: 0;
    min-height: 48px;
    justify-content: center;
    border-radius: 12px;
    color: #6b7280;
}
html body .nav-item-bottom .nav-label,
html body .nav-item-bottom span:not(.badge):not(.notification-badge) {
    font-size: .68rem;
    line-height: 1.1;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
html body .nav-item-bottom.active { color: var(--ac-red); font-weight: 700; }

/* Count badges (Alerts, Profile, ...) sit on the icon's top-right corner.
   Bootstrap's start-100 + translate-middle put them on the corner of the whole
   column, which is the screen edge for the last item, so they got clipped. */
html body .bottom-nav .nav-item-bottom > .badge-notification,
html body .bottom-nav .nav-item-bottom > .notification-badge {
    position: absolute !important;
    top: 2px !important;
    left: calc(50% + 4px) !important;
    right: auto !important;
    transform: none !important;
    min-width: 18px !important;
    width: auto;
    height: 18px !important;
    padding: 0 5px !important;
    font-size: .65rem !important;
    font-weight: 700;
    line-height: 1 !important;
    border-radius: 999px !important;
    border: 2px solid #fff;
    box-sizing: content-box;
    background: var(--ac-red) !important;
    color: #fff !important;
    pointer-events: none;
}

/* Tablet: floating, centered bar instead of a full-width stretch */
@media (min-width: 768px) and (max-width: 991.98px) {
    html body .bottom-nav {
        left: 50% !important;
        right: auto !important;
        width: min(600px, calc(100% - 32px)) !important;
        transform: translateX(-50%) !important;
        bottom: 10px !important;
        border-radius: 20px;
        border: 1px solid var(--ac-line);
        height: var(--ac-nav-h);
        padding-bottom: 6px;
    }
    html body { padding-bottom: calc(var(--ac-nav-h) + 24px) !important; }
}
@media (min-width: 992px) {
    html body .bottom-nav { display: none !important; }
    html body { padding-bottom: 0 !important; }
}

/* ---------- 7. PAGE GUTTERS (titles & headers touching screen edge) ---------- */
@media (max-width: 767.98px) {
    /* style.css set container padding to 0 on phones so product grids could touch
       the screen edge - which also glued every page title, button and card to it.
       Restore a gutter, then let grids and banners bleed back out on purpose. */
    html body main .container {
        padding-left: var(--ac-gutter) !important;
        padding-right: var(--ac-gutter) !important;
    }
    html body main .container .row:has(> .product-card-col),
    html body main .container :is(#latestProductsContainer, #shopProductsContainer, #searchResultsContainer, #exploreInterestsContainer, #taggedSections .row).row,
    html body main .container :is(.hero-slider-wrapper, .hero-search-bar, #actionButtonsBar, #stickyFilterBar, .category-scroll-container) {
        margin-left: calc(var(--ac-gutter) * -1) !important;
        margin-right: calc(var(--ac-gutter) * -1) !important;
    }
    html body main .container .row:has(> .product-card-col),
    html body main .container :is(#latestProductsContainer, #shopProductsContainer, #searchResultsContainer, #exploreInterestsContainer).row {
        width: auto;
    }
    /* the coloured section bar next to "Trending Now" etc. */
    html body .border-start.border-4 { margin-left: 0; }
}

/* Centered, capped content on big screens (style.css let it stretch edge to edge) */
@media (min-width: 992px) {
    html body main .container,
    html body main.container {
        max-width: var(--ac-max) !important;
        margin-inline: auto;
        padding-inline: var(--ac-gutter) !important;
    }
}
@media (min-width: 768px) and (max-width: 991.98px) {
    html body main .container { padding-inline: var(--ac-gutter) !important; max-width: 100% !important; }
}

/* ---------- 8. PRODUCT GRID + CARDS ---------- */
/* Columns: 2 phone / 3 large phone / 4 tablet / 5 laptop / 6 desktop / 7 wide */
html body .product-card-col { padding-inline: 4px !important; margin-bottom: 8px !important; }
@media (min-width: 768px)  { html body .product-card-col { padding-inline: 6px !important; margin-bottom: 12px !important; } }
@media (min-width: 1200px) { html body .product-card-col { padding-inline: 7px !important; margin-bottom: 14px !important; } }
@media (min-width: 1600px) { html body .product-card-col { width: 14.2857% !important; } }

html body .product-card {
    border-radius: var(--ac-radius) !important;
    border: 1px solid var(--ac-line) !important;
    background: var(--ac-surface);
    box-shadow: none !important;
    overflow: hidden;
    transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
html body .product-card .product-img { border-radius: 0; aspect-ratio: 1 / 1; object-fit: cover; }
html body .product-card [style*="#ee4d2d"],
html body .product-card .fw-bold[style*="font-size: 1rem"] { color: var(--ac-red) !important; }

/* Product rows fill the container evenly (style.css capped them at 1320px, left-aligned) */
@media (min-width: 768px) {
    html body :is(#latestProductsContainer, #shopProductsContainer, #searchResultsContainer, #exploreInterestsContainer, #taggedSections .row).row {
        max-width: none !important;
        margin-left: -6px !important;
        margin-right: -6px !important;
    }
}
@media (min-width: 1200px) {
    html body :is(#latestProductsContainer, #shopProductsContainer, #searchResultsContainer, #exploreInterestsContainer, #taggedSections .row).row {
        margin-left: -7px !important;
        margin-right: -7px !important;
    }
}

/* Hover lift only where hover exists (stops "stuck" hover on touch screens) */
@media (hover: hover) and (pointer: fine) {
    html body .product-card:hover {
        transform: translateY(-3px);
        border-color: rgba(231, 76, 60, .35) !important;
        box-shadow: var(--ac-shadow-md) !important;
    }
    html body .product-card:hover .product-img { transform: scale(1.04); }
}
@media (hover: none) {
    html body .product-card:hover { transform: none; box-shadow: none !important; }
    html body .product-card:hover .product-img { transform: none; }
}

/* Calm the always-on pulsing/glowing decorations (distracting + battery) */
html body .badge-discount,
html body .view-details-btn,
html body .product-card .badge.bg-danger { animation: none !important; }

/* Text inside cards stays inside the card */
html body .product-card .product-clickable { min-width: 0; }
html body .product-card .product-clickable > div { min-width: 0; }

/* Category pills & horizontal strips: swipeable, no visible scrollbar, 44px tall */
html body .category-pill {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border-radius: 999px;
    font-weight: 600;
    font-size: .85rem;
    white-space: nowrap;
}
html body .category-scroll-container {
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
}
html body .category-scroll-container::-webkit-scrollbar { display: none; }
html body .category-pill { scroll-snap-align: start; }

/* ---------- 9. HERO / BANNERS ---------- */
@media (min-width: 992px) {
    html body .hero-slider-wrapper { max-width: var(--ac-max); margin: 16px auto; }
    html body .hero-slider-container { aspect-ratio: 21 / 8; }
}
@media (min-width: 1400px) {
    html body .hero-slider-container { aspect-ratio: 24 / 8; }
}
html body .hero-search-bar { padding-inline: var(--ac-gutter); }

/* Floating helpers must not hide the bottom nav or content on small screens */
@media (max-width: 991.98px) {
    html body .back-to-top-btn { bottom: calc(var(--ac-nav-h) + env(safe-area-inset-bottom, 0px) + 16px) !important; right: 14px !important; }
    html body .support-wrapper { bottom: calc(var(--ac-nav-h) + env(safe-area-inset-bottom, 0px) + 72px) !important; }
}
#installAppFloating { max-width: calc(100vw - 24px); }
@media (max-width: 767.98px) {
    #installAppFloating { bottom: calc(var(--ac-nav-h) + env(safe-area-inset-bottom, 0px) + 12px) !important; }
    #floatingPromo { max-width: calc(100vw - 32px); }
}

/* ---------- 10. DASHBOARDS & FORMS ON SMALL SCREENS ---------- */
@media (max-width: 575.98px) {
    html body .card-body { padding: 1rem; }
    html body .modal-dialog { margin: .5rem; }
    html body .btn-group { flex-wrap: wrap; }
    html body .table > :not(caption) > * > * { padding: .6rem .5rem; font-size: .85rem; }
    html body .nav-tabs, html body .nav-pills { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
    html body .nav-tabs::-webkit-scrollbar, html body .nav-pills::-webkit-scrollbar { display: none; }
    html body .nav-tabs .nav-link, html body .nav-pills .nav-link { white-space: nowrap; }
}

/* ---------- 11. MOTION & PRINT ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}
@media print {
    #mainNavbar, .bottom-nav, .back-to-top-btn, .support-wrapper, #installAppFloating, #floatingPromo { display: none !important; }
    html body { background: #fff; padding: 0 !important; }
}

/* header shadow once scrolled (toggled by js/ui-refresh.js) */
#mainNavbar#mainNavbar.is-scrolled { box-shadow: 0 1px 0 var(--ac-line), 0 8px 20px rgba(16, 24, 40, .08); }
