        /* Custom scrollbar and skeleton shimmer effect */
        ::-webkit-scrollbar {
            width: 8px;
            height: 8px;
        }
        ::-webkit-scrollbar-track {
            background: #f1f5f9;
        }
        ::-webkit-scrollbar-thumb {
            background: #cbd5e1;
            border-radius: 4px;
        }
        ::-webkit-scrollbar-thumb:hover {
            background: #94a3b8;
        }
        @keyframes shimmer {
            0% { background-position: -200% 0; }
            100% { background-position: 200% 0; }
        }
        .skeleton {
            background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
            background-size: 200% 100%;
            animation: shimmer 1.5s infinite;
        }

        /* ===== FIX VIEW VISIBILITY: `hidden` phải thắng mọi utility responsive =====
           #view-user-order-detail mang cả `hidden` lẫn `md:block`
           (md:block cần thiết cho desktop layout của view này).
           Tailwind CDN sinh `.md\:block{display:block}` trong media query
           nằm SAU `.hidden{display:none}`, nên trên desktop >= md
           `md:block` override `hidden` => JS classList.add('hidden')
           (navigateTo) không giấu được view -> LEAK VIEW.
           Rule dưới đây ép `hidden` thắng ở MỌI breakpoint cho các view-section.
           Khi view được mở (gỡ `hidden`), các class layout vẫn hoạt động bình thường. */
        .view-section.hidden {
            display: none !important;
        }

        /* ===== CÚ CHE MẮT KHI NHẬP MẬT KHẨU ===== */

.owl-avatar {
    position: relative;
    width: 64px;
    height: 64px;
    margin: 0 auto 10px;
}

.owl-face {
    position: relative;
    width: 64px;
    height: 58px;
    background: #e0f2fe;
    border-radius: 50% 50% 45% 45%;
    border: 2px solid #bae6fd;
    overflow: hidden;
}

.owl-ear {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #bae6fd;
    top: 0;
    transform: rotate(45deg);
    z-index: -1;
}

.owl-ear-left {
    left: 5px;
}

.owl-ear-right {
    right: 5px;
}

.owl-eye {
    position: absolute;
    top: 17px;
    width: 19px;
    height: 19px;
    background: white;
    border-radius: 50%;
    border: 2px solid #0284c7;
    display: flex;
    align-items: center;
    justify-content: center;
}

.owl-eye-left {
    left: 11px;
}

.owl-eye-right {
    right: 11px;
}

.owl-pupil {
    width: 7px;
    height: 7px;
    background: #0f172a;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.owl-beak {
    position: absolute;
    left: 50%;
    top: 35px;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 9px solid #f59e0b;
}

.owl-wing {
    position: absolute;
    width: 25px;
    height: 32px;
    background: #38bdf8;
    border-radius: 50% 50% 45% 45%;
    top: 43px;
    z-index: 5;
    transition: top 0.35s ease, transform 0.35s ease;
}

.owl-wing-left {
    left: 3px;
    transform: rotate(20deg);
}

.owl-wing-right {
    right: 3px;
    transform: rotate(-20deg);
}

/* Khi người dùng nhập mật khẩu */
.owl-avatar.cover-eyes .owl-wing-left {
    top: 13px;
    transform: rotate(-25deg);
}

.owl-avatar.cover-eyes .owl-wing-right {
    top: 13px;
    transform: rotate(25deg);
}

/* =====================================================
   MODAL ĐĂNG NHẬP / ĐĂNG KÝ - MOBILE UX + IOS KEYBOARD
   ===================================================== */

/* 1. Ngăn iOS Safari auto-zoom khi focus input/select/textarea
      Bắt buộc font-size >= 16px trong modal auth.
      Chỉ áp dụng cho modal auth, không ảnh hưởng desktop khác. */
#auth-modal input,
#auth-modal select,
#auth-modal textarea {
    font-size: 16px;
}

/* 2. Không cho thao tác touch lọt xuống trang phía sau modal */
#auth-modal {
    overscroll-behavior: contain;
}

/* 3. Structure: header (owl/title/tabs) CỐ ĐỊNH, form cuộn BÊN TRONG.
   - auth-modal-box = flex column (không cuộn toàn modal).
   - auth-modal-header / auth-modal-tabs = shrink-0 (không bao giờ bị nén mất).
   - auth-form-scroll = chiếm phần còn lại, scroll nội bộ.
   - max-height dựa trên dynamic viewport (100dvh) + safe area.
   - Fallback 100vh cho trình duyệt cũ không hỗ trợ dvh. */
#auth-modal-box {
    display: flex;
    flex-direction: column;
    max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 2rem);
}

@supports not (height: 100dvh) {
    #auth-modal-box {
        max-height: calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 2rem);
    }
}

#auth-modal-header,
#auth-modal-tabs {
    flex-shrink: 0;
}

#auth-form-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding-bottom: 0.375rem;
}

/* 4. Khoảng cách an toàn hai cạnh khi màn hình rất hẹp + safe area notch/home */
#auth-modal {
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: max(env(safe-area-inset-top), 1rem);
    padding-bottom: max(env(safe-area-inset-bottom), 1rem);
}

@media (min-width: 640px) {
    #auth-modal {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* 5. TRẠNG THÁI BÀN PHÍM MỞ (visualViewport)
   - JS set --auth-visual-height = window.visualViewport.height (Safari keyboard
     thu nhỏ VISUAL viewport, layout viewport/100dvh KHÔNG đổi).
   - Thêm class .auth-keyboard-open chỉ khi bàn phím chiếm chỗ đáng kể.
   - Modal căn LÊN TRÊN (không đè lên bàn phím), max-height theo visual viewport. */
#auth-modal.auth-keyboard-open {
    align-items: flex-start;
    padding-top: max(env(safe-area-inset-top), 0.75rem);
    padding-bottom: 0.75rem;
}

#auth-modal.auth-keyboard-open #auth-modal-box {
    max-height: calc(var(--auth-visual-height, 100dvh) - env(safe-area-inset-top) - 0.75rem);
    padding-top: 1rem;
    padding-bottom: 0.5rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

/* 6. COMPACT MODE khi keyboard mở — header thu gọn NHƯNG KHÔNG ẩn owl/title/tabs */
#auth-modal.auth-keyboard-open .auth-modal-header {
    margin-bottom: 0.5rem;
}

#auth-modal.auth-keyboard-open #auth-modal-subtitle {
    display: none;
}

#auth-modal.auth-keyboard-open #auth-modal-title {
    font-size: 1.125rem; /* 18px */
}

#auth-modal.auth-keyboard-open .auth-modal-tabs {
    margin-bottom: 0.5rem;
    padding: 0.25rem;
}

#auth-modal.auth-keyboard-open .auth-modal-tabs button {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/* Owl thu nhỏ nhẹ trong compact (vẫn hiển thị rõ) */
#auth-modal.auth-keyboard-open .owl-avatar {
    width: 48px;
    height: 48px;
    margin-bottom: 4px;
}

#auth-modal.auth-keyboard-open .owl-face {
    width: 48px;
    height: 44px;
    border-width: 1.5px;
}

#auth-modal.auth-keyboard-open .owl-ear {
    width: 15px;
    height: 15px;
}

#auth-modal.auth-keyboard-open .owl-ear-left {
    left: 4px;
}

#auth-modal.auth-keyboard-open .owl-ear-right {
    right: 4px;
}

#auth-modal.auth-keyboard-open .owl-eye {
    top: 13px;
    width: 14px;
    height: 14px;
    border-width: 1.5px;
}

#auth-modal.auth-keyboard-open .owl-eye-left {
    left: 8px;
}

#auth-modal.auth-keyboard-open .owl-eye-right {
    right: 8px;
}

#auth-modal.auth-keyboard-open .owl-pupil {
    width: 5px;
    height: 5px;
}

#auth-modal.auth-keyboard-open .owl-beak {
    top: 27px;
    border-left-width: 5px;
    border-right-width: 5px;
    border-top-width: 7px;
}

#auth-modal.auth-keyboard-open .owl-wing {
    top: 33px;
    width: 19px;
    height: 24px;
}

#auth-modal.auth-keyboard-open .owl-wing-left {
    left: 2px;
}

#auth-modal.auth-keyboard-open .owl-wing-right {
    right: 2px;
}

#auth-modal.auth-keyboard-open .owl-avatar.cover-eyes .owl-wing-left {
    top: 12px;
}

#auth-modal.auth-keyboard-open .owl-avatar.cover-eyes .owl-wing-right {
    top: 12px;
}

/* Form nén nhẹ khi keyboard mở (input vẫn >= 16px) */
#auth-modal.auth-keyboard-open .auth-form-scroll input,
#auth-modal.auth-keyboard-open .auth-form-scroll select {
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
}

/* =====================================================
   IOS SAFARI AUTO-ZOOM - TẤT CẢ FORM CONTROL TRÊN MOBILE
   iOS tự zoom field có font-size < 16px khi focus.
   Buộc input/select/textarea >= 16px trên mobile (< 768px)
   ở MỌI màn hình: profile, search, checkout, cart note, select, ...
   KHÔNG dùng user-scalable=no / maximum-scale — giữ nguyên pinch zoom.
   Desktop giữ nguyên visual sizing hiện tại.
   ===================================================== */
@media (max-width: 767px) {
    input:not([type="checkbox"]):not([type="radio"]),
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* =====================================================
   ADMIN SIDEBAR - MENU GROUP (XỔ / THU GỌN SUBMENU)
   .admin-submenu dùng grid-template-rows để animate chiều
   cao tự động theo nội dung (hỗ trợ menu lồng nhau).
   ===================================================== */
.admin-submenu {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease;
}

.admin-submenu.admin-open {
    grid-template-rows: 1fr;
}

.admin-submenu-inner {
    overflow: hidden;
    min-height: 0;
}

.admin-chevron {
    transition: transform 0.3s ease;
}

.admin-menu-group.admin-open > .admin-chevron {
    transform: rotate(180deg);
}

.admin-menu-item,
.admin-menu-group {
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

/* Hover chỉ khi CHƯA active (active = nền cam cta-500) */
.admin-menu-item:not(.bg-cta-500):hover,
.admin-menu-group:hover {
    background-color: #f1f5f9; /* slate-100 */
}

/* Icon item chuyển trắng khi item đang active */
.admin-menu-item.bg-cta-500 i {
    color: #ffffff;
}

/* =====================================================
   ORDER SUBMIT LOADING OVERLAY - 3 CYAN ARCS
   Loader giống mẫu: 3 cung tròn đồng tâm màu cyan.
   - ring-outer: cung dài nhất (~66% chu vi, dày 6px), 1.4s thuận
   - ring-middle: cung ngắn hơn (~49%, dày 5px), 1.0s ngược chiều
   - ring-inner: cung ngắn nhất (~27%, dày 4px), 0.7s thuận
   - Các cung đều HỞ (conic-gradient + mask), đầu cung mảnh dần
     (taper), KHÔNG node, KHÔNG core, KHÔNG vòng kín.
   - CSS thuần, không ảnh, không thư viện animation.
   ===================================================== */
.order-ai-loader {
    position: relative;
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

.order-ai-ring {
    position: absolute;
    border-radius: 50%;
}

/* Vòng ngoài: cung dài nhất, quay thuận 1.4s */
.order-ai-ring.ring-outer {
    inset: 0;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        rgba(34, 211, 238, 0.45) 10deg,
        #22d3ee 16deg,
        #22d3ee 244deg,
        rgba(34, 211, 238, 0.45) 250deg,
        transparent 262deg,
        transparent 360deg
    );
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px));
            mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px));
    filter: drop-shadow(0 0 4px rgba(34, 211, 238, 0.55));
    animation: order-arc-outer 1.4s linear infinite;
}

/* Vòng giữa: cung ngắn hơn, quay ngược chiều 1.0s */
.order-ai-ring.ring-middle {
    inset: 14%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        rgba(6, 182, 212, 0.45) 16deg,
        #06b6d4 22deg,
        #06b6d4 198deg,
        rgba(6, 182, 212, 0.45) 204deg,
        transparent 212deg,
        transparent 360deg
    );
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
            mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
    filter: drop-shadow(0 0 4px rgba(6, 182, 212, 0.50));
    animation: order-arc-middle 1.0s linear infinite;
}

/* Vòng trong: cung ngắn nhất, quay thuận 0.7s */
.order-ai-ring.ring-inner {
    inset: 30%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        rgba(103, 232, 249, 0.45) 26deg,
        #67e8f9 32deg,
        #67e8f9 128deg,
        rgba(103, 232, 249, 0.45) 134deg,
        transparent 140deg,
        transparent 360deg
    );
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
            mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
    filter: drop-shadow(0 0 3px rgba(103, 232, 249, 0.50));
    animation: order-arc-inner 0.7s linear infinite;
}

/* Keyframes: 3 cung quay độc lập (thuận / ngược / thuận) */
@keyframes order-arc-outer {
    to { transform: rotate(360deg); }
}

@keyframes order-arc-middle {
    to { transform: rotate(-360deg); }
}

@keyframes order-arc-inner {
    to { transform: rotate(360deg); }
}

/* Mobile: loader nhỏ hơn (70-85px), vẫn chính giữa, không overflow */
@media (max-width: 767px) {
    .order-ai-loader {
        width: 76px;
        height: 76px;
    }
}

/* Tôn trọng prefers-reduced-motion: tắt xoay, giữ glow + breathe nhẹ */
@media (prefers-reduced-motion: reduce) {
    .order-ai-ring {
        animation: none;
    }
    .order-ai-loader {
        animation: order-arc-breathe 3s ease-in-out infinite;
    }
}

@keyframes order-arc-breathe {
    0%, 100% { opacity: 0.8; }
    50%      { opacity: 1; }
}

/* =====================================================
   HEADER CHẾ ĐỘ NHÂN VIÊN / QUẢN TRỊ
   Sau khi đăng nhập với role nhân viên/quản trị:
   - MOBILE  (< 768px): ẩn logo, menu desktop, giỏ hàng, vùng đăng nhập
     (JS thêm class admin-staff-hide — KHÔNG đụng class "hidden"
      để giữ responsive "hidden md:flex" của menu desktop)
     thanh header rút gọn chỉ còn nút hamburger mở menu (drawer giữ nguyên).
   - DESKTOP (>= 768px): header hiện lại ĐẦY ĐỦ bình thường
     (logo, nav, giỏ hàng, vùng đăng nhập) — không còn khoảng trắng trống
     phía trên. Tất cả rule ẩn nằm trong media query mobile-only.
   ===================================================== */
@media (max-width: 767px) {
    body.admin-staff-header .admin-staff-hide {
        display: none !important;
    }
    body.admin-staff-header #main-header-row {
        min-height: 0 !important;
        padding-top: 0.375rem !important;
        padding-bottom: 0.375rem !important;
    }
}

/* =====================================================
   CHECKOUT - FIX IPHONE AUTO ZOOM
   iOS tự phóng to field có font-size < 16px trên mobile.
   Buộc input/select/textarea trong view-checkout >= 16px
   khi màn hình dưới 768px. Không dùng user-scalable=no.
   ===================================================== */
@media (max-width: 767px) {
    #view-checkout input,
    #view-checkout select,
    #view-checkout textarea {
        font-size: 16px;
    }
}

/* ===== Sourcing product result UI helpers (premium customer product result) ===== */
.sc-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== HOMEPAGE SMART PASTE & PLATFORM BADGES ===== */
.platform-badge {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.platform-badge.active-taobao {
    background-color: #fff7ed !important;
    border-color: #f97316 !important;
    color: #c2410c !important;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15) !important;
    transform: translateY(-1px);
}
.platform-badge.active-tmall {
    background-color: #fef2f2 !important;
    border-color: #ef4444 !important;
    color: #b91c1c !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
    transform: translateY(-1px);
}
.platform-badge.active-1688 {
    background-color: #f0f9ff !important;
    border-color: #0284c7 !important;
    color: #0369a1 !important;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15) !important;
    transform: translateY(-1px);
}
.platform-badge.active-manual {
    background-color: #fefce8 !important;
    border-color: #eab308 !important;
    color: #a16207 !important;
    box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.15) !important;
    transform: translateY(-1px);
}

.faq-answer {
    transition: max-height 0.3s ease-out, opacity 0.2s ease-out;
}

/* ============================================================
   PREMIUM LOGISTICS LANDING — HOME PAGE
   Added on top of the existing design tokens (brand/cta/cashback).
   Lightweight: gradients, glow, grid lines, route line via CSS vars.
   prefers-reduced-motion honoured at the end of this block.
   ============================================================ */

/* ---------- Shared hero / eyebrow / chips ---------- */
.home-hero {
    background:
        radial-gradient(1100px 480px at 88% -10%, rgba(56, 189, 248, 0.14), transparent 60%),
        radial-gradient(900px 420px at -10% 8%, rgba(2, 132, 199, 0.12), transparent 55%),
        linear-gradient(180deg, #f0f9ff 0%, #f8fafc 55%, #ffffff 100%);
}
.home-hero-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(2, 132, 199, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(2, 132, 199, 0.05) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse 90% 85% at 50% 0%, #000 30%, transparent 75%);
            mask-image: radial-gradient(ellipse 90% 85% at 50% 0%, #000 30%, transparent 75%);
}
.home-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.9rem;
    border-radius: 9999px;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #0369a1;
}
.home-trust-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.85rem;
    border-radius: 9999px;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    font-size: 12px;
    font-weight: 600;
    color: #334155;
}

/* ---------- CTA buttons ---------- */
.home-cta-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.95rem 1.9rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
    font-weight: 800;
    font-size: 15px;
    box-shadow: 0 12px 26px -8px rgba(234, 88, 12, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.home-cta-primary:hover { transform: translateY(-2px); filter: brightness(1.04); box-shadow: 0 16px 32px -8px rgba(234, 88, 12, 0.6); }
.home-cta-primary:active { transform: translateY(0) scale(0.99); }
.home-cta-primary:focus-visible { outline: 3px solid rgba(249, 115, 22, 0.35); outline-offset: 2px; }
.home-cta-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.95rem 1.9rem;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #0f172a;
    font-weight: 700;
    font-size: 15px;
    box-shadow: 0 6px 16px -8px rgba(15, 23, 42, 0.18);
    transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.home-cta-secondary:hover { transform: translateY(-2px); border-color: #bae6fd; box-shadow: 0 10px 22px -10px rgba(2, 132, 199, 0.35); }
.home-cta-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.95rem 1.9rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    transition: background 0.2s ease, transform 0.15s ease;
}
.home-cta-ghost:hover { background: rgba(255, 255, 255, 0.16); transform: translateY(-2px); }

/* ---------- Hero visual card ---------- */
.home-visual-card {
    background:
        radial-gradient(480px 260px at 90% -10%, rgba(56, 189, 248, 0.12), transparent 60%),
        rgba(255, 255, 255, 0.92);
}
.home-visual-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: #fff;
    font-size: 18px;
    box-shadow: 0 8px 18px -8px rgba(2, 132, 199, 0.6);
}
.home-visual-flag-vn { background: linear-gradient(135deg, #f97316, #ea580c); box-shadow: 0 8px 18px -8px rgba(234, 88, 12, 0.6); }
.home-route-anim { animation: homeDashFlow 1.1s linear infinite; }
@keyframes homeDashFlow { to { stroke-dashoffset: -44; } }
.home-visual-truck { animation: homeTruckFloat 3.2s ease-in-out infinite; }
@keyframes homeTruckFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.home-visual-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 0.8rem 0.5rem;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    text-align: center;
}
.home-visual-node i { font-size: 17px; color: #0284c7; }


/* ---------- Cards (why / how / platforms / faq) ---------- */
.home-why-card {
    padding: 1.5rem;
    border-radius: 20px;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.home-why-card:hover { transform: translateY(-4px); box-shadow: 0 18px 34px -18px rgba(2, 132, 199, 0.35); border-color: #bae6fd; }
.home-why-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 15px;
    font-size: 19px;
}
.home-how-card {
    position: relative;
    padding: 1.4rem 1.25rem;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.home-how-card:hover { transform: translateY(-4px); box-shadow: 0 18px 34px -18px rgba(2, 132, 199, 0.3); border-color: #bae6fd; }
.home-how-num {
    position: absolute;
    top: 0.35rem;
    right: 0.85rem;
    font-size: 44px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: rgba(2, 132, 199, 0.1);
}
.home-how-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #f0f9ff;
    color: #0284c7;
    font-size: 18px;
}
.home-platform-card {
    padding: 1.5rem 1.35rem;
    border-radius: 20px;
    background: #fff;
    border: 1px solid #e2e8f0;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.home-platform-card:hover { transform: translateY(-4px); box-shadow: 0 18px 34px -18px rgba(2, 132, 199, 0.3); border-color: #bae6fd; }
.home-platform-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    font-size: 24px;
    color: #fff;
    box-shadow: 0 10px 20px -10px rgba(15, 23, 42, 0.4);
}
.home-platform-taobao { background: linear-gradient(135deg, #f97316, #ea580c); }
.home-platform-tmall { background: linear-gradient(135deg, #ef4444, #dc2626); }
.home-platform-1688 { background: linear-gradient(135deg, #0284c7, #0ea5e9); }
.home-platform-manual { background: linear-gradient(135deg, #d97706, #f59e0b); }
.home-faq-item { transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.home-faq-item:hover { border-color: #bae6fd; }

/* ---------- Sourcing (auth-gated) band ---------- */
.home-source-wrap {
    background:
        radial-gradient(900px 380px at 50% -10%, rgba(2, 132, 199, 0.12), transparent 60%),
        linear-gradient(180deg, #f8fafc 0%, #eff8ff 100%);
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}
.home-source-glow {
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 720px;
    height: 260px;
    background: radial-gradient(closest-side, rgba(56, 189, 248, 0.16), transparent);
    pointer-events: none;
}
.home-source-card {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 24px;
    padding: 1.4rem 1.5rem;
    box-shadow: 0 24px 60px -30px rgba(2, 132, 199, 0.35), 0 1px 2px rgba(15, 23, 42, 0.05);
    backdrop-filter: blur(6px);
}
@media (max-width: 639px) {
    .home-source-card { padding: 1.1rem 1rem; }
}

/* ---------- View TẠO ĐƠN (create-order): band sourcing MOVE từ Home ----------
   .home-source-wrap nguyên bản chỉ có border-top/bottom (dành cho band full-bleed
   trên Home). Trong màn Tạo đơn band nằm gọn trong container bo góc nên vẽ
   border đủ 4 cạnh để khung kín, không phải "redesign" sourcing. */
#view-create-order .home-source-wrap {
    border: 1px solid rgba(226, 232, 240, 0.9);
}

/* ---------- Final CTA ---------- */
.home-final-cta {
    background:
        radial-gradient(900px 420px at 50% -20%, rgba(56, 189, 248, 0.25), transparent 60%),
        linear-gradient(135deg, #075985 0%, #0c4a6e 45%, #1e3a5f 100%);
}
.home-final-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(ellipse 80% 90% at 50% 50%, #000 30%, transparent 78%);
            mask-image: radial-gradient(ellipse 80% 90% at 50% 50%, #000 30%, transparent 78%);
}


/* ---------- Logistics journey (scroll-driven) ---------- */
.journey-track { --jp: 0; }
.journey-steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.75rem;
}
.journey-node { position: relative; text-align: center; padding: 0 0.25rem; }
.journey-node h4 {
    margin-top: 0.9rem;
    font-size: 14px;
    font-weight: 800;
    color: #475569;
    transition: color 0.3s ease;
}
.journey-node p {
    margin-top: 0.4rem;
    font-size: 12px;
    line-height: 1.55;
    color: #64748b;
}
.journey-node-dot {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 9999px;
    background: #fff;
    border: 2px solid #e2e8f0;
    color: #94a3b8;
    font-size: 19px;
    transition: all 0.35s ease, box-shadow 0.35s ease;
}
.journey-node.is-active .journey-node-dot {
    color: #fff;
    border-color: #0284c7;
    background: linear-gradient(135deg, #0284c7, #0ea5e9);
    box-shadow: 0 0 0 6px rgba(2, 132, 199, 0.12), 0 12px 22px -10px rgba(2, 132, 199, 0.7);
}
.journey-node.is-active:nth-child(6) .journey-node-dot {
    border-color: #ea580c;
    background: linear-gradient(135deg, #f97316, #ea580c);
    box-shadow: 0 0 0 6px rgba(249, 115, 22, 0.14), 0 12px 22px -10px rgba(234, 88, 12, 0.7);
}
.journey-node.is-active h4 { color: #0c4a6e; }
.journey-node.is-active:nth-child(6) h4 { color: #9a3412; }

/* Final node 'Giao khách' (nth-child 6): dấu ✓ trắng, chỉ hiện khi node active */
.journey-node:nth-child(6) .journey-node-dot i {
    font-size: 23px;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.35s ease-out, transform 0.35s ease-out;
}
.journey-node.is-active:nth-child(6) .journey-node-dot i {
    opacity: 1;
    transform: scale(1);
}

/* route line behind the dots */
.journey-route {
    position: absolute;
    top: 26px;
    left: 8.33%;
    right: 8.33%;
    height: 4px;
    z-index: 0;
    pointer-events: none;
}
.journey-route-track {
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    background-color: #e2e8f0;
    background-image: repeating-linear-gradient(90deg, #e2e8f0 0 8px, #f1f5f9 8px 14px);
}
.journey-route-fill {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 100%;
    width: var(--jpf, 0%);
    border-radius: 9999px;
    background: linear-gradient(90deg, #0284c7, #0ea5e9, #38bdf8, #fb923c, #f97316);
    box-shadow: 0 0 14px rgba(2, 132, 199, 0.5);
    transition: width 90ms linear;
}
.journey-mover {
    position: absolute;
    top: 50%;
    left: var(--jpf, 0%);
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 9999px;
    background: #fff;
    border: 2px solid #0284c7;
    color: #0284c7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    box-shadow: 0 10px 20px -8px rgba(2, 132, 199, 0.55);
    z-index: 3;
    pointer-events: none;
    transition: left 90ms linear;
}

/* vertical journey (mobile / tablet) */
.journey-v { --jp: 0; padding-top: 0.5rem; padding-bottom: 0.5rem; }
.journey-v-rail {
    position: absolute;
    left: 23px;
    top: 26px;
    bottom: 26px;
    width: 4px;
    border-radius: 9999px;
    background-color: #e2e8f0;
    overflow: hidden;
    pointer-events: none;
}
.journey-v-fill {
    display: block;
    width: 100%;
    height: var(--jpf, 0%);
    border-radius: 9999px;
    background: linear-gradient(180deg, #0284c7, #38bdf8, #fb923c, #f97316);
    box-shadow: 0 0 12px rgba(2, 132, 199, 0.5);
    transition: height 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.journey-v-step { position: relative; display: flex; align-items: flex-start; gap: 1rem; }
.journey-v-dot {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    margin-top: 0.15rem;
    border-radius: 9999px;
    background: #fff;
    border: 2px solid #e2e8f0;
    color: #94a3b8;
    font-size: 17px;
    transition: border-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;
}
/* Gradient active nằm trong ::before để crossfade mượt (background-image
   gradient không transition được trực tiếp); icon luôn nằm trên lớp này. */
.journey-v-dot::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, #0284c7, #0ea5e9);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.journey-v-step:last-child .journey-v-dot::before {
    background: linear-gradient(135deg, #f97316, #ea580c);
}
.journey-v-dot i {
    position: relative;
    z-index: 1;
}
.journey-v-body h4 { font-size: 15px; font-weight: 800; color: #334155; transition: color 0.4s ease; }
.journey-v-body p { margin-top: 0.3rem; font-size: 13px; line-height: 1.55; color: #64748b; }
.journey-v-step.is-active .journey-v-dot {
    color: #fff;
    border-color: #0284c7;
    box-shadow: 0 0 0 5px rgba(2, 132, 199, 0.12), 0 10px 18px -10px rgba(2, 132, 199, 0.6);
}
.journey-v-step.is-active .journey-v-dot::before { opacity: 1; }
.journey-v-step.is-active h4 { color: #0c4a6e; }
.journey-v-step.is-active:last-child .journey-v-dot {
    border-color: #ea580c;
    box-shadow: 0 0 0 5px rgba(249, 115, 22, 0.14), 0 10px 18px -10px rgba(234, 88, 12, 0.6);
}
.journey-v-step.is-active:last-child h4 { color: #9a3412; }

/* Final step mobile/tablet 'Giao khách': dấu ✓ trắng, chỉ hiện khi step active */
.journey-v-step:last-child .journey-v-dot i {
    font-size: 21px;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.35s ease-out, transform 0.35s ease-out;
}
.journey-v-step.is-active:last-child .journey-v-dot i {
    opacity: 1;
    transform: scale(1);
}

.home-journey-glow {
    position: absolute;
    top: -90px;
    right: -160px;
    width: 520px;
    height: 520px;
    background: radial-gradient(closest-side, rgba(56, 189, 248, 0.13), transparent);
    pointer-events: none;
}

/* ---------- Reveal on scroll (lightweight, IO-driven) ---------- */
.home-reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.home-reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .home-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
    .home-route-anim, .home-visual-truck { animation: none !important; }
    .journey-route-fill, .journey-v-fill, .journey-mover, .journey-v-dot, .journey-v-dot::before, .journey-v-body h4, .journey-node-dot i, .journey-v-dot i { transition: none !important; }
    .home-cta-primary, .home-cta-secondary, .home-cta-ghost { transition: none !important; }
    .home-cta-primary:hover, .home-cta-secondary:hover, .home-cta-ghost:hover { transform: none; }
    html { scroll-behavior: auto; }
}

/* =====================================================
   HEADER BRAND LOGO (ShopTQ)
   Logo header dung asset /logo/logo.png. Chi scale bang
   max-height + width auto (height auto, object-fit: contain)
   de giu nguyen aspect ratio - khong crop / khong keo meo.
   Logo lon hon cu mot chut nhung van nam gon trong thanh
   header (desktop h-16 = 64px, logo wrapper py-1) nen khong
   lam header cao them / khong day navigation.
   ===================================================== */
#main-header-logo .brand-logo-img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 48px;
    object-fit: contain;
    min-width: 0;
    user-select: none;
    -webkit-user-select: none;
}

/* Desktop >= 1024px (navbar h-16 = 64px, du cho max-height ~56px) */
@media (min-width: 1024px) {
    #main-header-logo .brand-logo-img {
        max-height: 56px;
    }
}

/* Mobile < 640px (375 / 390 / 430px): logo lon hon ~20% so truoc (40px) de
   nhin ro hon. Bo vertical padding cua logo wrapper de khong lam header cao
   them (content area mobile = 64px - py-2 = 48px => logo 48px + 0 padding). */
@media (max-width: 639px) {
    #main-header-logo {
        padding-top: 0;
        padding-bottom: 0;
    }
    #main-header-logo .brand-logo-img {
        max-height: 48px;
    }
}

/* =====================================================
   MOBILE CUSTOMER BOTTOM NAVIGATION (WEB MOBILE)
   - Bottom tab bar cố định dưới màn hình cho CUSTOMER/USER trên mobile
     (cảm giác native app). Không thay đổi navigation handler hiện có —
     các nút vẫn gọi navigateTo() / switchDashTab() / requireLogin().
   - CHỈ hiển thị < 768px (khớp breakpoint md / @media (max-width:767px)
     đang dùng toàn app). >= 768px (desktop/tablet lớn) luôn ẩn.
   - Ẩn khi đang ở chế độ nhân viên/quản trị (body.admin-staff-header)
     để KHÔNG ảnh hưởng Admin UI / navigation admin.
   - z-index 45: trên mọi content, nhưng DƯỚI mọi modal/overlay
     (modal dùng z-50 -> z-[100]) và toast (z-[9999]).
   ===================================================== */
:root {
    --mobile-bnav-h: 60px;
}

#mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 45;
    background: rgba(255, 255, 255, 0.97);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -2px 12px rgba(15, 23, 42, 0.08);
    display: none;
}
#mobile-bottom-nav .mobile-bnav-inner {
    box-sizing: border-box;
    display: flex;
    align-items: stretch;
    justify-content: center;
    height: calc(var(--mobile-bnav-h) + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    max-width: 640px;
    margin: 0 auto;
}
#mobile-bottom-nav .mobile-bnav-item {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 44px;
    padding: 3px 2px;
    background: transparent;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    color: #64748b;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
#mobile-bottom-nav .mobile-bnav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 26px;
    border-radius: 999px;
    font-size: 19px;
    line-height: 1;
    color: inherit;
    transition: background-color 0.15s ease, color 0.15s ease;
}
#mobile-bottom-nav .mobile-bnav-label {
    max-width: 100%;
    padding: 0 2px;
    font-size: 10.5px;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #64748b;
    transition: color 0.15s ease;
}
#mobile-bottom-nav .mobile-bnav-item.is-active {
    color: #0369a1;
}
#mobile-bottom-nav .mobile-bnav-item.is-active .mobile-bnav-icon {
    color: #0369a1;
    background: rgba(2, 132, 199, 0.12);
}
#mobile-bottom-nav .mobile-bnav-item.is-active .mobile-bnav-label {
    color: #075985;
    font-weight: 700;
}

/* Desktop / tablet lớn: KHÔNG BAO GIỜ hiện bottom navigation */
@media (min-width: 768px) {
    #mobile-bottom-nav {
        display: none !important;
    }
}
/* Chế độ nhân viên/quản trị: ẩn bottom nav customer (mọi breakpoint) */
body.admin-staff-header #mobile-bottom-nav {
    display: none !important;
}

@media (max-width: 767px) {
    /* Chỉ hiển thị cho customer/guest (KHÔNG phải staff/admin) */
    body:not(.admin-staff-header) #mobile-bottom-nav {
        display: block;
    }
    /* 5 mục chính đã chuyển xuống bottom nav -> ẩn khỏi drawer mobile để
       không trùng lặp. Drawer vẫn giữ các mục còn lại (Đăng nhập/Đăng ký,
       Cá nhân, Quản trị, Đăng xuất). Desktop giữ nguyên drawer cũ. */
    body:not(.admin-staff-header) #mobile-menu-primary-nav {
        display: none;
    }
    body.admin-staff-header #mobile-menu-primary-nav {
        display: block;
    }

    /* Nội dung Customer không bị bottom nav che (view dài / nút cuối /
       pagination / submit): đệm dưới main đủ cao + safe-area. */
    body:not(.admin-staff-header) main {
        padding-bottom: calc(var(--mobile-bnav-h) + env(safe-area-inset-bottom, 0px) + 14px);
    }

    /* Các thanh cố định đáy màn hình của màn hình customer được dịch lên
       TRÊN bottom nav để không đè lên nhau / vẫn dùng được đầy đủ. */
    body:not(.admin-staff-header) #cart-mobile-bottom-bar {
        bottom: calc(0.5rem + var(--mobile-bnav-h) + env(safe-area-inset-bottom, 0px)) !important;
    }
    body:not(.admin-staff-header) #cart-mobile-summary-panel {
        bottom: calc(76px + var(--mobile-bnav-h) + env(safe-area-inset-bottom, 0px)) !important;
    }
    body:not(.admin-staff-header) #user-chat {
        bottom: calc(0.75rem + var(--mobile-bnav-h) + env(safe-area-inset-bottom, 0px)) !important;
    }
    body:not(.admin-staff-header) #checkout-sticky-submit {
        bottom: calc(var(--mobile-bnav-h) + env(safe-area-inset-bottom, 0px)) !important;
    }
    body:not(.admin-staff-header) #manual-order-sticky-bar {
        bottom: calc(var(--mobile-bnav-h) + env(safe-area-inset-bottom, 0px)) !important;
    }
}

/* =====================================================
   MOBILE BOTTOM NAV — GIỎ HÀNG BADGE + TAB "VÍ & CÁ NHÂN"
   (Task: Tạo đơn | Đơn hàng | Giỏ hàng | Giao hàng | Ví & Cá nhân)
   ===================================================== */
/* Icon wrapper trở thành anchor cho badge số lượng giỏ hàng. */
#mobile-bottom-nav .mobile-bnav-icon {
    position: relative;
}

/* Badge "Giỏ hàng": phản chiếu ĐÚNG con số #cart-badge (cartState.length =
   số dòng cart rows) qua updateCartBadge(). Ẩn khi giỏ trống. */
#mobile-bottom-nav .mobile-bnav-badge {
    display: none;
    position: absolute;
    top: -4px;
    right: -6px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #f97316;
    color: #ffffff;
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.95);
}
#mobile-bottom-nav .mobile-bnav-badge.has-items {
    display: inline-flex;
}

/* Label "Ví & Cá nhân" dài hơn -> giảm nhẹ cỡ chữ (vẫn đọc rõ, 1 dòng). */
#mobile-bottom-nav .mobile-bnav-item[data-bnav-tab="account"] .mobile-bnav-label {
    font-size: 10px;
}

/* Trạng thái đang MỞ popup "Ví & Cá nhân" (nhẹ, không đổi active mapping). */
#mobile-bottom-nav .mobile-bnav-item.is-menu-open {
    color: #0369a1;
}
#mobile-bottom-nav .mobile-bnav-item.is-menu-open .mobile-bnav-icon {
    color: #0369a1;
    background: rgba(2, 132, 199, 0.18);
}
#mobile-bottom-nav .mobile-bnav-item.is-menu-open .mobile-bnav-label {
    color: #075985;
    font-weight: 700;
}

/* =====================================================
   POPUP "VÍ & CÁ NHÂN" — menu xổ LÊN phía trên bottom nav
   - Nằm TRONG #mobile-bottom-nav (position: fixed, z-index 45) nên:
     * chỉ xuất hiện khi bottom nav hiển thị (mobile customer),
     * luôn DƯỚI mọi modal (z-50/z-[60]/z-[100]) & toast (z-[9999]),
     * trên mọi content / sticky bar phía dưới (z-30/z-40).
   - Nền trắng + border nhẹ + shadow nhẹ + bo góc, không che toàn màn hình.
   - Đáy popup cách mép trên nav 10px -> không bị Home Indicator che.
   ===================================================== */
#mobile-account-popup {
    position: absolute;
    bottom: calc(100% + 10px);
    right: 8px;
    width: min(292px, calc(100vw - 24px));
    max-width: 292px;
    z-index: 30;
    padding: 6px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16), 0 2px 10px rgba(15, 23, 42, 0.08);
    max-height: calc(100dvh - var(--mobile-bnav-h) - env(safe-area-inset-bottom, 0px) - 24px);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}
@supports not (height: 100dvh) {
    #mobile-account-popup {
        max-height: calc(100vh - var(--mobile-bnav-h) - env(safe-area-inset-bottom, 0px) - 24px);
    }
}
#mobile-account-popup.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

#mobile-account-popup .ma-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 44px;
    padding: 8px 12px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    text-align: left;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
#mobile-account-popup .ma-row:hover {
    background: #f8fafc;
}
#mobile-account-popup .ma-row:active {
    background: #e2e8f0;
}
#mobile-account-popup .ma-row .ma-ic {
    flex: 0 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    font-size: 15px;
}
#mobile-account-popup .ma-row .ma-lb {
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.3;
}
#mobile-account-popup .ma-ic-wallet { color: #059669; }
#mobile-account-popup .ma-ic-profile { color: #0369a1; }
#mobile-account-popup .ma-ic-guide { color: #64748b; }
#mobile-account-popup .ma-ic-login { color: #0369a1; }
#mobile-account-popup .ma-ic-register { color: #f97316; }
#mobile-account-popup .ma-ic-logout { color: #dc2626; }
#mobile-account-popup .ma-row[data-acc-action="logout"] .ma-lb {
    color: #dc2626;
}
#mobile-account-popup .ma-divider {
    height: 1px;
    margin: 6px 10px;
    background: #f1f5f9;
}

/* =====================================================
   MOBILE CUSTOMER (<768px) — DỌN NAV DUPLICATE TRÊN HEADER
   - "Giỏ hàng" đã có trên bottom nav -> ẩn icon giỏ hàng header (tránh
     duplicate) CHỈ trên customer mobile. Desktop/Staff/Admin giữ nguyên.
   - Hamburger + drawer mobile của customer giờ chỉ còn các entry đã có
     trong popup "Ví & Cá nhân" (Login/Register/Cá nhân/Logout/...) -> ẩn
     để không duplicate. Staff/Admin mobile & DESKTOP giữ nguyên (rule chỉ áp
     khi body KHÔNG có admin-staff-header).
   ===================================================== */
@media (max-width: 767px) {
    body:not(.admin-staff-header) #main-header-cart,
    body:not(.admin-staff-header) #mobile-menu-toggle-btn {
        display: none !important;
    }
    body:not(.admin-staff-header) #mobile-menu {
        display: none !important;
    }
}

/* =====================================================
   OPTIONAL WEB PUSH NOTIFICATIONS — UI CARD
   Owned by public/js/modules/notifications/* (Phase 1 OneSignal).
   Xoá block này khi gỡ module (không ảnh hưởng giao diện khác).
   ===================================================== */
.notif-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.notif-card-ic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 12px;
    background-color: #eff6ff;
    color: #0369a1;
}

.notif-card-ic.is-good {
    background-color: #ecfdf5;
    color: #059669;
}

.notif-card-ic.is-bad {
    background-color: #fef2f2;
    color: #dc2626;
}

.notif-card-ic.is-warn {
    background-color: #fffbeb;
    color: #d97706;
}


