@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&family=Outfit:wght@400;600;700;800&family=Creepster&display=swap');

:root {
    --bg-dark: #0a0614;
    --bg-card: linear-gradient(180deg, #2b1f4c 0%, #1c1435 100%);
    --bg-card-hover: linear-gradient(180deg, #372861 0%, #241944 100%);
    --border-card: rgba(255, 140, 0, 0.45);
    --border-card-hover: rgba(255, 170, 0, 0.85);
    
    --hl-orange: #ff7700;
    --hl-orange-glow: #ff5100;
    --hl-amber: #ffaa00;
    --hl-purple: #9d4edd;
    --hl-violet: #6b21a8;
    --hl-magenta: #e040fb;
    --hl-green: #00e676;
    --hl-cyan: #00f2fe;
    --sky-gold: #ffbe0b;

    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
}

/* ===================================================
   GLOBAL BODY & BACKGROUND
   =================================================== */
html {
    scroll-behavior: smooth;
}

html, body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    background: 
        radial-gradient(circle at 15% 15%, rgba(157, 78, 221, 0.22) 0%, transparent 40%),
        radial-gradient(circle at 85% 20%, rgba(255, 119, 0, 0.18) 0%, transparent 45%),
        radial-gradient(circle at 50% 60%, rgba(107, 33, 168, 0.18) 0%, transparent 50%),
        radial-gradient(circle at 80% 90%, rgba(0, 242, 254, 0.12) 0%, transparent 40%),
        linear-gradient(180deg, #090513 0%, #110920 50%, #07030e 100%);
    background-attachment: fixed;
    position: relative;
    padding-bottom: 0;
}

@media (max-width: 991.98px) {
    body {
        padding-bottom: 70px;
    }
}

.main-content-wrapper {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

.tracking-page-wrapper {
    min-height: clamp(380px, 50vh, 600px);
    display: flex;
    flex-direction: column;
}

/* Starry particle overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    background-image: 
        radial-gradient(1.5px 1.5px at 10% 20%, #fff 100%, transparent),
        radial-gradient(1px 1px at 30% 65%, #ffd166 100%, transparent),
        radial-gradient(2px 2px at 55% 15%, #c77dff 100%, transparent),
        radial-gradient(1.5px 1.5px at 75% 45%, #ff9e00 100%, transparent),
        radial-gradient(1px 1px at 85% 85%, #00f2fe 100%, transparent),
        radial-gradient(1.5px 1.5px at 92% 18%, #ffffff 100%, transparent),
        radial-gradient(1px 1px at 45% 90%, #ffd166 100%, transparent);
    background-size: 400px 400px;
    opacity: 0.75;
    z-index: 0;
    animation: twinkle 8s ease-in-out infinite alternate;
}

@keyframes twinkle {
    0% { opacity: 0.5; }
    50% { opacity: 0.85; }
    100% { opacity: 0.6; }
}

/* ===================================================
   SPOOKY BATS BACKGROUND ANIMATION
   =================================================== */
.ambient-bats {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* ==========================================================================
   MODAL & POPUP Z-INDEX HIERARCHY SYSTEM (TWILIGHT LUXURY ARCHITECTURE)
   Strict order: Notifications (1150) > Bank & QR Zoom (1085) > Order/Checkout (1055)
   ========================================================================== */

/* Tier 1: Base / Order / Checkout Modals (Bảng Đặt Hàng & Giỏ Hàng) */
.modal,
#cartModal,
#checkoutModal,
#cartCheckoutModal,
#cloneCheckoutModal,
#accountDetailModal {
    z-index: 1055 !important;
}
.modal .modal-dialog {
    z-index: 1056 !important;
}
.modal-backdrop {
    z-index: 1050 !important;
}

/* Tier 1.5: Sub-picker Modal (Voucher Selection over Checkout) */
#voucherSelectModal {
    z-index: 1065 !important;
}
#voucherSelectModal .modal-dialog {
    z-index: 1066 !important;
}

/* Tier 2: Bank Popups & QR Zoom Lightbox (Nằm trên mọi bảng đặt hàng và Checkout Modal) */
#qrPreviewModal,
#qrLightboxOverlay,
.qr-lightbox-overlay,
#bankQrModal,
#bankModal,
.modal-bank {
    z-index: 1130 !important;
}
#qrPreviewModal .modal-dialog,
.modal-bank .modal-dialog {
    z-index: 1131 !important;
}

/* Tier 3: Notification Popups: Alerts, Confirms, Success, Error (Trên mọi thứ) */
#xiexieAlertModal,
#xiexieConfirmModal,
#orderSuccessTrackingModal,
#redeemSuccessModal,
.modal-notification,
.modal-alert,
.swal2-container {
    z-index: 1150 !important;
}
#xiexieAlertModal .modal-dialog,
#xiexieConfirmModal .modal-dialog,
#orderSuccessTrackingModal .modal-dialog,
#redeemSuccessModal .modal-dialog,
.modal-notification .modal-dialog,
.modal-alert .modal-dialog {
    z-index: 1151 !important;
}

/* Dynamic Multi-Layer Backdrops */
.modal-backdrop.backdrop-bank-qr {
    z-index: 1125 !important;
}
.modal-backdrop.xiexie-backdrop,
.modal-backdrop.backdrop-notification {
    z-index: 1145 !important;
}

/* Tier 4: Floating Toast Notifications */
.toast-container-top,
#xiexieToastContainer {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1200 !important;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
.toast-container-top .toast,
#xiexieToastContainer .toast {
    pointer-events: auto;
}

.bat {
    position: absolute;
    width: 28px;
    height: 18px;
    opacity: 0.55;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 32' fill='%23ff8800'%3E%3Cpath d='M32,10 C28,2 18,0 12,5 C6,10 2,7 0,16 C8,18 16,14 22,17 C26,19 28,26 32,24 C36,26 38,19 42,17 C48,14 56,18 64,16 C62,7 58,10 52,5 C46,0 36,2 32,10 Z'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
    filter: drop-shadow(0 0 5px rgba(255, 119, 0, 0.7));
    animation: flyBat 28s linear infinite;
    will-change: transform;
}

.bat:nth-child(1) { top: 16%; left: -60px; animation-duration: 26s; animation-delay: 0s; }
.bat:nth-child(2) { top: 48%; left: -60px; animation-duration: 34s; animation-delay: 8s; filter: drop-shadow(0 0 6px rgba(186, 85, 211, 0.8)); }
.bat:nth-child(3), .bat:nth-child(4) { display: none; }

@keyframes flyBat {
    0% {
        transform: translate3d(-50px, 0, 0) rotate(5deg);
    }
    50% {
        transform: translate3d(55vw, 25px, 0) rotate(-6deg);
    }
    100% {
        transform: translate3d(110vw, -10px, 0) rotate(5deg);
    }
}

/* ===================================================
   NAVBAR & HEADER
   =================================================== */
.navbar-mischief {
    background: rgba(14, 9, 28, 0.82) !important;
    backdrop-filter: blur(18px) saturate(180%);
    border-bottom: 1px solid rgba(255, 119, 0, 0.28) !important;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 119, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1030;
    transition: all 0.3s ease;
}

.navbar-brand-mischief {
    font-family: 'Outfit', sans-serif;
    color: #fff !important;
    letter-spacing: 0.5px;
    text-shadow: 0 0 12px rgba(255, 119, 0, 0.4);
}

.navbar-brand-mischief img {
    filter: drop-shadow(0 0 10px rgba(255, 140, 0, 0.6));
    animation: logoWobble 4s ease-in-out infinite;
}

@keyframes logoWobble {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-3px) rotate(4deg); }
}

.navbar-mischief .navbar-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link-mischief {
    color: var(--text-secondary) !important;
    font-weight: 600;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 11px !important;
    font-size: 0.85rem;
    line-height: 1.4;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    white-space: nowrap;
    flex-shrink: 0;
}

@media (min-width: 1400px) {
    .nav-link-mischief {
        padding: 7px 13px !important;
        font-size: 0.88rem;
        gap: 7px;
    }
}

@media (max-width: 991.98px) {
    .navbar-mischief #navbarMainCollapse {
        background: rgba(14, 9, 32, 0.98);
        border: 1px solid rgba(255, 170, 0, 0.25);
        border-radius: 18px;
        padding: 16px 20px;
        margin-top: 12px;
        box-shadow: 0 18px 36px rgba(0,0,0,.65);
    }
    .navbar-mischief #navbarMainCollapse .navbar-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }
    .navbar-mischief #navbarMainCollapse .nav-link-mischief {
        min-height: 42px;
        width: 100%;
        justify-content: flex-start;
    }
}

.nav-link-mischief svg {
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
}

.nav-link-mischief:hover, .nav-link-mischief.active {
    color: #ffaa00 !important;
    background: rgba(255, 170, 0, 0.12) !important;
    border-color: rgba(255, 170, 0, 0.3) !important;
    box-shadow: 0 0 14px rgba(255, 170, 0, 0.22);
}

.nav-profile-alert-badge {
    height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px !important;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.16);
    border: 1px solid rgba(245, 158, 11, 0.45);
    color: #fbbf24 !important;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    animation: alertPulse 2.6s infinite ease-in-out;
    flex-shrink: 0;
}

.nav-profile-alert-badge:hover {
    background: rgba(245, 158, 11, 0.3);
    color: #ffd166 !important;
    border-color: #ffd166;
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.45);
    transform: translateY(-1px);
}

@keyframes alertPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
    }
    50% {
        box-shadow: 0 0 12px 2px rgba(245, 158, 11, 0.35);
    }
}

.btn-cart-mischief {
    height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 16px !important;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1;
    border-radius: 50px;
    background: linear-gradient(135deg, rgba(255, 119, 0, 0.2), rgba(157, 78, 221, 0.25));
    border: 1px solid rgba(255, 153, 0, 0.45);
    color: #fff;
    box-shadow: 0 0 14px rgba(255, 119, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-cart-mischief:hover {
    background: linear-gradient(135deg, #ff7700, #9d4edd);
    color: #fff;
    border-color: #ffaa00;
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 6px 20px rgba(255, 119, 0, 0.45);
}

/* ===================================================
   HERO BANNER (DAYS OF MISCHIEF)
   =================================================== */
.hero-halloween {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    background-size: cover !important;
    background-position: center right !important;
    border: 1px solid rgba(255, 153, 0, 0.35);
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.7), 0 0 35px rgba(255, 119, 0, 0.25);
    min-height: 440px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, 
        rgba(10, 6, 22, 0.92) 0%, 
        rgba(14, 9, 32, 0.78) 42%, 
        rgba(26, 14, 56, 0.38) 75%,
        rgba(10, 6, 22, 0.18) 100%);
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: 3.2rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    background: linear-gradient(120deg, #ffffff 10%, #ffd166 45%, #ff7700 85%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 25px rgba(255, 154, 0, 0.35);
}

.hero-tag {
    font-size: 0.85rem;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #ff7700, #e040fb);
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 119, 0, 0.5);
    animation: pulseBadge 3s infinite;
}

@keyframes pulseBadge {
    0%, 100% { box-shadow: 0 0 12px rgba(255, 119, 0, 0.5); }
    50% { box-shadow: 0 0 22px rgba(224, 64, 251, 0.75); }
}

.hero-stat-card {
    background: rgba(22, 14, 45, 0.65);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 170, 0, 0.3);
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(255, 119, 0, 0.08);
}

/* ===================================================
   GLASSMORPHIC CARDS & FEATURED PACKAGES
   =================================================== */
.card-mischief {
    background: var(--bg-card);
    border: 1.5px solid var(--border-card);
    border-radius: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55), 0 0 16px rgba(157, 78, 221, 0.2);
}

.card-mischief::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff7700, #9d4edd, #00f2fe);
    opacity: 0.85;
}

.card-mischief:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-card-hover);
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65), 0 0 26px rgba(255, 140, 0, 0.45);
}

.card-mischief:hover::before {
    opacity: 1;
    height: 5px;
    box-shadow: 0 0 12px #ff7700;
}

.clone-payment-panel {
    background: rgba(16, 38, 39, .78);
    border: 1px solid rgba(52, 211, 153, .38);
    box-shadow: inset 0 1px rgba(255, 255, 255, .06);
}
.clone-payment-panel .row { row-gap: 20px; }
.clone-payment-panel .small > div { line-height: 1.6; margin-bottom: 10px !important; }
.clone-payment-panel .text-muted { color: #b9c9d6 !important; }
.clone-payment-panel .text-danger { color: #fda4af !important; }
.clone-payment-panel .badge { padding: 8px 12px; }

/* Item Image Container with Floating Animation */
.product-img-box {
    background: radial-gradient(circle, rgba(157, 78, 221, 0.18) 0%, rgba(25, 17, 46, 0.4) 75%);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-img-box img {
    max-height: 155px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45));
    transition: transform 0.4s ease, filter 0.4s ease;
    animation: floatItem 4s ease-in-out infinite;
}

.card-mischief:hover .product-img-box img {
    transform: scale(1.12) rotate(2deg);
    filter: drop-shadow(0 12px 24px rgba(255, 119, 0, 0.55));
}

@keyframes floatItem {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}

/* Prices */
.price-neon {
    font-size: 1.85rem;
    font-weight: 800;
    color: #ffaa00;
    text-shadow: 0 0 14px rgba(255, 170, 0, 0.5);
    font-family: 'Outfit', sans-serif;
}

.price-strike {
    color: var(--text-muted);
    text-decoration: line-through;
    font-size: 0.95rem;
}

/* ===================================================
   BUTTONS (LUXURY GLASSMORHISM & TWILIGHT ACCENTS)
   =================================================== */
.btn-mischief-primary,
.btn-glass-purchase,
.btn-buy-glass {
    background: linear-gradient(135deg, rgba(255, 120, 0, 0.88) 0%, rgba(245, 90, 0, 0.92) 50%, rgba(168, 85, 247, 0.85) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    color: #ffffff !important;
    font-weight: 700;
    border-radius: 14px;
    padding: 0.75rem 1.6rem;
    letter-spacing: 0.3px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: inset 0 1px 1.5px rgba(255, 255, 255, 0.55), 0 8px 24px rgba(255, 119, 0, 0.4), 0 0 16px rgba(168, 85, 247, 0.25) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.btn-mischief-primary::before,
.btn-glass-purchase::before,
.btn-buy-glass::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-25deg);
    transition: left 0.7s ease;
    pointer-events: none;
}

.btn-mischief-primary:hover::before,
.btn-glass-purchase:hover::before,
.btn-buy-glass:hover::before {
    left: 150%;
}

.btn-mischief-primary:hover,
.btn-glass-purchase:hover,
.btn-buy-glass:hover {
    color: #ffffff !important;
    transform: translateY(-2px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.6) !important;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.75), 0 12px 32px rgba(255, 119, 0, 0.6), 0 0 24px rgba(168, 85, 247, 0.45) !important;
}

.btn-mischief-primary:active,
.btn-glass-purchase:active,
.btn-buy-glass:active {
    transform: translateY(0) scale(0.98);
}

.btn-mischief-outline {
    background: rgba(255, 119, 0, 0.08) !important;
    border: 1.5px solid rgba(255, 170, 0, 0.45) !important;
    color: #fbbf24 !important;
    font-weight: 600;
    border-radius: 50px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.25s ease;
}

.btn-mischief-outline:hover {
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.9), rgba(234, 88, 12, 0.95)) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 0 20px rgba(255, 119, 0, 0.5) !important;
    transform: translateY(-2px);
}

/* ===================================================
   TRICK OR TREAT BANNER / INTERACTIVE
   =================================================== */
.trick-banner {
    background: linear-gradient(135deg, rgba(107, 33, 168, 0.7) 0%, rgba(25, 17, 46, 0.85) 60%, rgba(255, 119, 0, 0.5) 100%);
    border: 1px solid rgba(255, 153, 0, 0.3);
    border-radius: 24px;
    backdrop-filter: blur(14px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
}

/* ===================================================
   INTERACTIVE MASCOT (MISCHIEF CAT COMPANION)
   =================================================== */
.mascot-container {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 76px;
    height: 76px;
    z-index: 1040;
    pointer-events: none !important;
}

.mascot-cat-circle-wrap {
    position: relative;
    width: 76px;
    height: 76px;
    pointer-events: auto !important;
}

.mascot-bubble {
    background: rgba(26, 17, 48, 0.94);
    border: 1.5px solid #ff7700;
    color: #fff;
    padding: 10px 16px;
    border-radius: 18px 18px 4px 18px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 119, 0, 0.3);
    width: max-content;
    max-width: 230px;
    cursor: pointer;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: absolute;
    user-select: none;
    pointer-events: auto !important;
    white-space: normal;
    z-index: 1045;
}

/* Default / Top-Left: Bubble sits above and aligns to the right of cat */
.mascot-bubble.pos-top-left {
    bottom: 84px;
    right: 0;
    left: auto;
    top: auto;
    border-radius: 18px 18px 4px 18px;
}
.mascot-bubble.pos-top-left::after {
    content: "";
    position: absolute;
    bottom: -8px;
    right: 25px;
    left: auto;
    top: auto;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #ff7700;
    border-bottom: none;
}

/* Top-Right: Bubble sits above and aligns to the left of cat (when near left edge) */
.mascot-bubble.pos-top-right {
    bottom: 84px;
    left: 0;
    right: auto;
    top: auto;
    border-radius: 18px 18px 18px 4px;
}
.mascot-bubble.pos-top-right::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 25px;
    right: auto;
    top: auto;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #ff7700;
    border-bottom: none;
}

/* Bottom-Left: Bubble sits below and aligns to the right of cat (when near top edge) */
.mascot-bubble.pos-bottom-left {
    top: 84px;
    bottom: auto;
    right: 0;
    left: auto;
    border-radius: 18px 4px 18px 18px;
}
.mascot-bubble.pos-bottom-left::after {
    content: "";
    position: absolute;
    top: -8px;
    right: 25px;
    bottom: auto;
    left: auto;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #ff7700;
    border-top: none;
}

/* Bottom-Right: Bubble sits below and aligns to the left of cat (when near top-left) */
.mascot-bubble.pos-bottom-right {
    top: 84px;
    bottom: auto;
    left: 0;
    right: auto;
    border-radius: 4px 18px 18px 18px;
}
.mascot-bubble.pos-bottom-right::after {
    content: "";
    position: absolute;
    top: -8px;
    left: 25px;
    bottom: auto;
    right: auto;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #ff7700;
    border-top: none;
}

.mascot-bubble-close {
    position: absolute;
    top: 4px;
    right: 8px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    line-height: 1;
    font-weight: bold;
    cursor: pointer;
    padding: 2px 4px;
    transition: all 0.2s ease;
    z-index: 5;
    pointer-events: auto !important;
}

.mascot-bubble-close:hover {
    color: #ef4444;
    transform: scale(1.2);
}

.mascot-close-btn {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #1f1137;
    border: 1.5px solid #ff7700;
    color: #ffffff;
    font-size: 14px;
    line-height: 1;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1050;
    pointer-events: auto !important;
}

.mascot-close-btn:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: #ffffff;
    transform: scale(1.2);
}

.mascot-btn {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: radial-gradient(circle, #3d1b64 0%, #15092a 80%);
    border: 2.5px solid #ff7700;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 119, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    padding: 0;
    overflow: hidden;
    pointer-events: auto !important;
}

.mascot-btn img {
    width: 82px;
    height: 82px;
    object-fit: contain;
    transition: transform 0.3s ease;
    pointer-events: none;
    -webkit-user-drag: none;
    user-select: none;
}

.mascot-btn:hover {
    transform: scale(1.15) rotate(-6deg);
    border-color: #ffd166;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 119, 0, 0.85);
}

.mascot-btn:active,
.mascot-btn.dragging {
    cursor: grabbing !important;
    transform: scale(0.95);
}

/* Hiệu ứng trail huyền ảo khi kéo mascot mèo Mischief & nút Liên hệ Xie Xie (Dấu chân mèo vàng & tím) */
.mascot-drag-trail {
    position: fixed;
    pointer-events: none;
    z-index: 1049;
    will-change: transform, opacity;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: mascotPawFade 0.72s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes mascotPawFade {
    0% {
        opacity: 0;
        transform: rotate(var(--paw-rot, 0deg)) scale(0.38);
    }
    18% {
        opacity: 1;
        transform: rotate(var(--paw-rot, 0deg)) scale(1.08);
    }
    38% {
        opacity: 0.95;
        transform: rotate(var(--paw-rot, 0deg)) scale(1);
    }
    100% {
        opacity: 0;
        transform: rotate(var(--paw-rot, 0deg)) scale(0.35) translateY(7px);
    }
}

/* Bụi sao ma thuật lấp lánh (Stardust) đồng hành theo từng bước chân */
.mascot-sparkle-trail {
    position: fixed;
    pointer-events: none;
    z-index: 1049;
    will-change: transform, opacity;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: mascotSparkleFloat 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes mascotSparkleFloat {
    0% {
        opacity: 0;
        transform: scale(0.2) rotate(0deg);
    }
    25% {
        opacity: 1;
        transform: scale(1.15) rotate(45deg);
    }
    100% {
        opacity: 0;
        transform: scale(0.2) rotate(90deg) translateY(-14px);
    }
}

/* Nút biểu tượng gọi bé mèo quay lại khi bị thu gọn (Luxury Twilight Talisman) */
.btn-restore-mascot {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #3d1b64 0%, #15092a 85%);
    border: 2px solid #ffaa00;
    color: #ffaa00;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65), 0 0 20px rgba(255, 170, 0, 0.5);
    z-index: 1040;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    outline: none;
    pointer-events: auto !important;
}

.btn-restore-mascot .restore-mascot-avatar {
    width: 36px;
    height: 36px;
    object-fit: contain;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

.btn-restore-mascot .restore-mascot-pulse {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 170, 0, 0.4);
    animation: restorePulseRing 2.4s infinite ease-out;
    pointer-events: none;
}

@keyframes restorePulseRing {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.15); opacity: 0.2; }
    100% { transform: scale(1.25); opacity: 0; }
}

.btn-restore-mascot .restore-mascot-tip {
    position: absolute;
    bottom: calc(100% + 8px);
    right: 50%;
    transform: translateX(50%) translateY(4px);
    background: rgba(22, 14, 40, 0.95);
    color: #ffd166;
    border: 1px solid rgba(255, 170, 0, 0.45);
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
}

.btn-restore-mascot:hover .restore-mascot-tip {
    opacity: 1;
    visibility: visible;
    transform: translateX(50%) translateY(0);
}

.btn-restore-mascot:hover {
    transform: scale(1.12) rotate(-6deg);
    border-color: #ffd166;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.75), 0 0 28px rgba(255, 170, 0, 0.8);
}

.btn-restore-mascot:hover .restore-mascot-avatar {
    transform: scale(1.12);
}

.btn-restore-mascot:active,
.btn-restore-mascot.dragging {
    cursor: grabbing !important;
    transform: scale(0.95);
}

/* Confetti particles */
.spooky-particle {
    position: fixed;
    pointer-events: none;
    z-index: 1050;
    font-size: 22px;
    animation: burstOut 1.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes burstOut {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(0.4) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translate(var(--tx), var(--ty)) scale(1.4) rotate(var(--rot));
    }
}

/* ===================================================
   MODAL & FOOTER
   =================================================== */
.modal-content-mischief {
    background: rgba(22, 14, 43, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 153, 0, 0.35) !important;
    color: #fff !important;
}

.footer-mischief {
    margin-top: auto !important;
    background: rgba(10, 6, 20, 0.85);
    border-top: 1px solid rgba(255, 119, 0, 0.2);
    color: var(--text-muted);
}

/* ===================================================
   PRODUCT CATALOG & DETAILS PAGE STYLING
   =================================================== */
.product-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.product-card .card-title {
    color: #ffffff !important;
    font-weight: 700 !important;
}

/* Bright Illuminated Pedestal so dark items (like Season Pass) shine bright! */
.product-card .card-body > div.bg-light,
.product-card .bg-light.bg-opacity-75,
.product-img-box {
    background: radial-gradient(circle, rgba(168, 85, 247, 0.45) 0%, rgba(55, 38, 92, 0.95) 100%);
    border: 1.5px solid rgba(255, 170, 0, 0.4);
    box-shadow: inset 0 0 24px rgba(168, 85, 247, 0.35), 0 4px 15px rgba(0, 0, 0, 0.35);
    border-radius: 18px;
}

.btn-view-inventory {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #f1f5f9 !important;
    padding: 8px 16px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    border-radius: 999px !important;
    transition: all 0.22s ease !important;
}
.btn-view-inventory:hover {
    background: rgba(255, 255, 255, 0.16) !important;
    border-color: rgba(255, 255, 255, 0.45) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.text-muted,
.product-card .text-muted,
.card-mischief .text-muted,
.trick-banner .text-muted,
.footer-mischief .text-muted {
    color: #cbd5e1 !important;
}

/* Inside checkoutModal (Twilight Dark Luxury theme), keep texts crisp and high contrast */
#checkoutModal {
    color: #f8fafc;
}
#checkoutModal .text-muted {
    color: #94a3b8 !important;
}
#checkoutModal small {
    color: #cbd5e1;
}
#checkoutModal p {
    color: #e2e8f0;
}

#modalOrderSuccessSection {
    color: #f8fafc;
}
#modalOrderSuccessSection .text-muted {
    color: #94a3b8 !important;
}

.qr-zoom-trigger {
    cursor: pointer;
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease;
}
.qr-zoom-trigger:hover {
    transform: scale(1.04);
    box-shadow: 0 0 20px rgba(52, 211, 153, 0.5) !important;
}

/* High Contrast Price Box */
.product-card .border-top .bg-light {
    background: rgba(36, 24, 62, 0.95) !important;
    border: 1px solid rgba(255, 153, 0, 0.25) !important;
    border-radius: 14px !important;
}

.product-card .card-text,
.product-card p.small {
    color: #ffffff !important;
    opacity: 0.95;
}

.product-card .border-top .bg-light span:not(.text-success):not(.text-primary) {
    color: #ffffff !important;
}

.product-card .text-success {
    color: #00ff87 !important;
    text-shadow: 0 0 10px rgba(0, 255, 135, 0.5);
}

.product-card .text-primary {
    color: #00f2fe !important;
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
}

.product-card .btn-primary {
    background: linear-gradient(135deg, #ff7700 0%, #ff5500 50%, #9d4edd 100%) !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(255, 119, 0, 0.4) !important;
    border-radius: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px !important;
}

.product-card .btn-primary:hover {
    box-shadow: 0 6px 22px rgba(255, 119, 0, 0.65) !important;
    transform: translateY(-2px) !important;
}

.sky-store-hero {
    background: linear-gradient(135deg, rgba(25, 14, 52, 0.9) 0%, rgba(13, 8, 28, 0.95) 50%, rgba(255, 119, 0, 0.25) 100%) !important;
    border: 1px solid rgba(255, 153, 0, 0.3) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 119, 0, 0.15) !important;
}

/* Category Filter Buttons */
.btn-outline-secondary {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 153, 0, 0.3) !important;
    color: #cbd5e1 !important;
}

.btn-outline-secondary:hover {
    background: rgba(255, 119, 0, 0.25) !important;
    color: #ffaa00 !important;
    border-color: #ffaa00 !important;
    box-shadow: 0 0 12px rgba(255, 119, 0, 0.35) !important;
}

.breadcrumb-item a {
    color: #ffaa00 !important;
}

.breadcrumb-item.active {
    color: #94a3b8 !important;
}

/* ===================================================
   FORM CONTROLS, SELECTS & TABLES (DARK LUXURY TWILIGHT)
   =================================================== */
.form-control,
.form-select,
select.form-select,
input.form-control,
textarea.form-control {
    background-color: rgba(18, 12, 38, 0.92) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.15) !important;
    color: #f8fafc !important;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.2s ease;
}

/* Fix dropdown option backgrounds across all browsers */
.form-select option,
select option {
    background-color: #140d2a !important;
    color: #f8fafc !important;
    padding: 8px 12px;
}

.form-control::placeholder,
textarea::placeholder {
    color: #94a3b8 !important;
    opacity: 0.75 !important;
}

.form-control:focus,
.form-select:focus,
select:focus,
input:focus {
    background-color: rgba(26, 16, 52, 0.98) !important;
    border-color: #ffaa00 !important;
    box-shadow: 0 0 0 0.25rem rgba(255, 170, 0, 0.22) !important;
    color: #ffffff !important;
    outline: none !important;
}

.input-group-text {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.15) !important;
    color: #cbd5e1 !important;
}

.table {
    color: #f1f5f9 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.table th {
    color: #ffaa00 !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

/* ===================================================
   MODAL GLASSMORHISM (GLOBAL DARK TWILIGHT)
   =================================================== */
.modal-content {
    background: linear-gradient(135deg, rgba(24, 15, 48, 0.97) 0%, rgba(14, 9, 28, 0.98) 100%) !important;
    border: 1.5px solid rgba(255, 170, 0, 0.3) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(168, 85, 247, 0.2) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    color: #f8fafc !important;
    border-radius: 20px !important;
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.modal-body .bg-light,
.modal-body .bg-white {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #f8fafc !important;
}

.modal-body .text-dark {
    color: #f8fafc !important;
}

.modal-body .text-muted {
    color: #94a3b8 !important;
}

/* ===================================================
   BACK TO TOP FLOATING BUTTON
   =================================================== */
.btn-back-to-top {
    position: fixed;
    bottom: 35px;
    right: 115px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(61, 27, 100, 0.95) 0%, rgba(21, 9, 42, 0.98) 100%);
    border: 2px solid rgba(255, 170, 0, 0.65);
    color: #ffaa00;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1040 !important; /* Đặt dưới backdrop 1050 và modal 1055 để không bao giờ đè lên form đặt hàng/modal */
    pointer-events: auto !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), 0 0 16px rgba(255, 170, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(18px) scale(0.9);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
}

body.modal-open .btn-back-to-top {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.btn-back-to-top svg {
    pointer-events: none !important;
}

.btn-back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.btn-back-to-top:hover {
    background: linear-gradient(135deg, #ff7700 0%, #ffaa00 100%);
    border-color: #ffaa00;
    color: #1a0f2e;
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 10px 28px rgba(255, 119, 0, 0.65), 0 0 24px rgba(255, 170, 0, 0.5);
}

.btn-back-to-top:active {
    transform: translateY(0) scale(0.96);
}

/* ===================================================
   IDENTITY ACCOUNT MANAGE THEME
   =================================================== */
.list-group-mischief {
    border: 1px solid rgba(255, 153, 0, 0.3) !important;
    background: rgba(20, 12, 38, 0.9) !important;
}

.list-group-mischief .list-group-item {
    position: relative;
    background: rgba(28, 16, 52, 0.85) !important;
    color: #e2e8f0 !important;
    border: none !important;
    border-bottom: 1px solid rgba(255, 153, 0, 0.14) !important;
    padding: 0.95rem 1.25rem !important;
    font-weight: 600;
    transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1) !important;
    overflow: hidden;
}

.list-group-mischief .list-group-item:last-child {
    border-bottom: none !important;
}

.list-group-mischief .list-group-item:hover:not(.active) {
    background: linear-gradient(90deg, rgba(255, 120, 0, 0.24) 0%, rgba(255, 170, 0, 0.16) 45%, rgba(157, 78, 221, 0.18) 100%) !important;
    color: #ffaa00 !important;
    padding-left: 1.55rem !important;
    box-shadow: inset 0 1px 0 rgba(255, 170, 0, 0.6), inset 3.5px 0 0 #ffaa00, 0 2px 12px rgba(255, 119, 0, 0.2) !important;
}

.list-group-mischief .list-group-item.active {
    background: linear-gradient(135deg, #ff7700 0%, #ff8800 45%, #9d4edd 100%) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: 0 4px 18px rgba(255, 119, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.list-group-mischief .list-group-item-logout {
    color: #f87171 !important;
    background: rgba(28, 16, 52, 0.9) !important;
    border-top: 1px solid rgba(255, 153, 0, 0.25) !important;
}

.list-group-mischief .list-group-item-logout:hover {
    background: rgba(239, 68, 68, 0.25) !important;
    color: #fca5a5 !important;
    padding-left: 1.55rem !important;
    box-shadow: inset 0 1px 0 rgba(239, 68, 68, 0.5), inset 3.5px 0 0 #ef4444 !important;
}

/* ===================================================
   USER NAVBAR DROPDOWN THEME (Matches Image 1 & list-group-mischief)
   =================================================== */
.user-dropdown-menu {
    background: rgba(20, 12, 38, 0.98) !important;
    border: 1.5px solid rgba(255, 153, 0, 0.35) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    min-width: 300px;
    max-width: calc(100vw - 20px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65), 0 0 20px rgba(255, 153, 0, 0.15) !important;
    animation: userDropdownFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

/* User Wallet Balance Card in Dropdown */
.user-dropdown-wallet-card {
    background: linear-gradient(135deg, rgba(255, 170, 0, 0.08) 0%, rgba(157, 78, 221, 0.08) 50%, rgba(15, 10, 28, 0.96) 100%);
    border: 1px solid rgba(255, 170, 0, 0.3);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: all 0.2s ease;
}

.user-dropdown-wallet-card:hover {
    border-color: rgba(255, 170, 0, 0.45);
    box-shadow: 0 6px 18px rgba(255, 170, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.user-wallet-icon-box {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: rgba(255, 170, 0, 0.15);
    border: 1px solid rgba(255, 170, 0, 0.35);
    color: #ffd166;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.user-wallet-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #94a3b8;
    line-height: 1.1;
}

.user-wallet-amount {
    font-size: 1.15rem;
    font-weight: 800;
    color: #34d399;
    text-shadow: 0 0 10px rgba(52, 211, 153, 0.25);
    line-height: 1.2;
}

.user-wallet-curr {
    font-size: 0.78rem;
    color: #a7f3d0;
    font-weight: 700;
    margin-left: 2px;
}

.user-wallet-tag {
    font-size: 0.65rem;
    font-weight: 700;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 9999px;
    padding: 2.5px 8px;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.user-wallet-hint {
    font-size: 0.68rem;
    line-height: 1.35;
    color: #94a3b8 !important;
    padding-top: 6px;
    margin-top: 4px;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

.user-nav-wallet-badge {
    background: rgba(16, 185, 129, 0.18) !important;
    color: #34d399 !important;
    border: 1px solid rgba(16, 185, 129, 0.45) !important;
    font-size: 0.72rem !important;
    text-shadow: 0 0 6px rgba(16, 185, 129, 0.3);
}

@keyframes userDropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-dropdown-header-item {
    background: linear-gradient(135deg, #ff7700, #9d4edd) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    padding: 0.95rem 1.25rem !important;
    box-shadow: 0 4px 16px rgba(255, 119, 0, 0.35);
    border-bottom: 1px solid rgba(255, 153, 0, 0.25) !important;
    transition: all 0.2s ease;
}

.user-dropdown-header-item:hover {
    background: linear-gradient(135deg, #ff8800, #ab5eed) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(255, 119, 0, 0.5);
    padding-left: 1.4rem !important;
}

.user-dropdown-item {
    background: rgba(28, 16, 52, 0.85) !important;
    color: #e2e8f0 !important;
    padding: 0.85rem 1.25rem !important;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 153, 0, 0.12) !important;
    transition: all 0.2s ease !important;
}

.user-dropdown-item:hover {
    background: linear-gradient(90deg, rgba(255, 120, 0, 0.24) 0%, rgba(255, 170, 0, 0.16) 45%, rgba(157, 78, 221, 0.18) 100%) !important;
    color: #ffaa00 !important;
    padding-left: 1.55rem !important;
    box-shadow: inset 0 1px 0 rgba(255, 170, 0, 0.5), inset 3.5px 0 0 #ffaa00 !important;
}

.user-dropdown-item-logout {
    color: #f87171 !important;
    background: rgba(28, 16, 52, 0.95) !important;
    padding: 0.85rem 1.25rem !important;
    font-weight: 600;
    border: none !important;
    border-top: 1px solid rgba(255, 153, 0, 0.2) !important;
    transition: all 0.2s ease !important;
}

.user-dropdown-item-logout:hover {
    background: rgba(239, 68, 68, 0.25) !important;
    color: #fca5a5 !important;
    padding-left: 1.45rem !important;
}


.manage-input-mischief {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1.5px solid rgba(255, 170, 0, 0.35) !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    padding: 0.75rem 1rem !important;
    transition: all 0.25s ease !important;
}

.manage-input-mischief:focus {
    background: rgba(255, 255, 255, 0.14) !important;
    border-color: #ffaa00 !important;
    box-shadow: 0 0 14px rgba(255, 170, 0, 0.45) !important;
    color: #ffffff !important;
}

.manage-input-mischief:disabled,
.manage-input-mischief[readonly] {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: #cbd5e1 !important;
    cursor: not-allowed;
}

.manage-input-mischief::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* ===================================================
   GLOBAL HIGH CONTRAST READABILITY POLISH
   =================================================== */
/* Ngăn chữ bị chìm trên các thẻ nền sáng */
.card:not(.card-mischief) .text-muted,
.bg-light .text-muted,
.bg-white .text-muted {
    color: #475569 !important;
}

/* Đảm bảo nhãn và tiêu đề trên card-mischief luôn sáng rõ */
.card-mischief .form-label,
.card-mischief h1,
.card-mischief h2,
.card-mischief h3,
.card-mischief h4 {
    color: #ffffff;
}

/* Breadcrumb trên nền tối */
.breadcrumb-item a {
    color: #e2e8f0 !important;
}
.breadcrumb-item.active {
    color: #ffd166 !important;
    font-weight: 700;
}
.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.45) !important;
}

/* ===================================================
   GLOBAL TABLE HIGH CONTRAST & READABILITY
   =================================================== */
/* Đảm bảo toàn bộ bảng nền sáng không bao giờ bị chữ trắng chìm */
.table:not(.table-dark):not(.admin-order-table):not(.admin-data-table) {
    --bs-table-color: #0f172a;
    --bs-table-bg: #ffffff;
    color: #0f172a;
}
.table:not(.table-dark):not(.admin-order-table):not(.admin-data-table) th {
    color: #0f172a !important;
    font-weight: 800 !important;
}
.table:not(.table-dark):not(.admin-order-table):not(.admin-data-table) td {
    color: #0f172a !important;
}
.table:not(.table-dark):not(.admin-order-table):not(.admin-data-table) tr:hover td {
    background-color: #f8fafc !important;
}

/* ===================================================
   FEATURE HIGHLIGHT BOXES (TASTEFUL ANTI-SLOP)
   =================================================== */
.feature-highlight-box {
    background: rgba(38, 22, 65, 0.75);
    border: 1px solid rgba(255, 170, 0, 0.28);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-highlight-box:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 170, 0, 0.55);
}

.feature-icon-badge {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 170, 0, 0.16);
    color: #ffaa00;
    border: 1px solid rgba(255, 170, 0, 0.32);
}

/* ===================================================
   MOBILE UI: BOTTOM NAVIGATION & TOUCH OPTIMIZATION
   =================================================== */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(12, 7, 24, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid rgba(255, 170, 0, 0.25);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.65);
    z-index: 1045;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 6px;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.mobile-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 6px 8px;
    border-radius: 12px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    min-width: 56px;
    background: transparent;
    border: none;
    outline: none;
}

.mobile-nav-svg {
    width: 20px;
    height: 20px;
    transition: transform 0.2s ease, color 0.2s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: #ffaa00;
}

.mobile-nav-link.active .mobile-nav-svg {
    transform: translateY(-2px);
    filter: drop-shadow(0 0 8px rgba(255, 170, 0, 0.6));
}

/* ===================================================
   COMPREHENSIVE MOBILE RESPONSIVE QUERIES
   =================================================== */
@media (max-width: 991.98px) {
    #navbarMainCollapse {
        background: rgba(16, 10, 32, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 170, 0, 0.25);
        border-radius: 20px;
        padding: 1rem 1.25rem;
        margin-top: 0.75rem;
        box-shadow: 0 14px 35px rgba(0, 0, 0, 0.65);
    }
}

@media (max-width: 767.98px) {
    body {
        padding-bottom: calc(85px + env(safe-area-inset-bottom, 0)) !important;
    }

    .hero-halloween {
        min-height: auto;
        padding: 1.5rem 1.15rem !important;
        border-radius: 20px;
        margin-bottom: 2rem !important;
    }

    .hero-title {
        font-size: clamp(1.85rem, 6.5vw, 2.5rem);
        line-height: 1.18;
    }

    .hero-halloween .btn-mischief-primary,
    .hero-halloween .btn-mischief-outline {
        width: 100%;
        justify-content: center;
        font-size: 0.95rem;
        padding: 0.75rem 1.25rem !important;
    }

    .hero-stat-card {
        padding: 1.25rem !important;
        border-radius: 16px;
        margin-top: 1rem !important;
    }

    /* Nút cuộn lên đầu trang trên điện thoại */
    .btn-back-to-top {
        bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
        right: 14px !important;
        width: 42px !important;
        height: 42px !important;
        z-index: 1048 !important;
    }

    /* Bé mèo mascot trên điện thoại: thu nhỏ và xếp ngay phía trên nút cuộn lên, không bị chồng nút */
    .mascot-container {
        width: 44px !important;
        height: 44px !important;
        bottom: calc(128px + env(safe-area-inset-bottom, 0px));
        right: 14px;
        left: auto;
        z-index: 1048 !important;
    }

    .mascot-cat-circle-wrap {
        width: 44px !important;
        height: 44px !important;
    }

    .mascot-bubble {
        display: none !important; /* Ẩn bong bóng thoại trên điện thoại để không che chắn giao diện */
    }

    .mascot-btn {
        width: 44px !important;
        height: 44px !important;
        border-width: 2px !important;
    }

    .mascot-btn img {
        width: 46px !important;
        height: 46px !important;
        max-width: 46px !important;
        object-fit: contain !important;
    }

    .mascot-close-btn {
        width: 18px !important;
        height: 18px !important;
        font-size: 11px !important;
        top: -4px !important;
        right: -4px !important;
    }

    /* Nút gọi lại bé mèo nếu bị tắt trên điện thoại: cùng vị trí trên nút cuộn */
    .btn-restore-mascot {
        bottom: calc(128px + env(safe-area-inset-bottom, 0px));
        right: 14px;
        left: auto;
        width: 44px !important;
        height: 44px !important;
        font-size: 1.1rem !important;
        z-index: 1048 !important;
    }

    .trick-banner {
        padding: 1.5rem 1.15rem !important;
        border-radius: 20px;
    }

    .trick-banner img {
        max-height: 180px !important;
        margin-top: 1rem;
    }

    .product-img-box {
        min-height: 150px;
    }

    .product-img-box img {
        max-height: 135px;
    }

    /* Category pills horizontal smooth swipe on mobile */
    .category-pills {
        overflow-x: auto;
        flex-wrap: nowrap !important;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .category-pills::-webkit-scrollbar {
        display: none;
    }
    .category-pills .btn {
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* Modal adjustments on mobile */
    .modal-dialog {
        margin: 0.75rem;
        max-width: calc(100% - 1.5rem);
    }
    .modal-content {
        border-radius: 20px !important;
    }
    .modal-header, .modal-body, .modal-footer {
        padding: 1rem !important;
    }
}

/* Clean anti-slop card refinement */
.card-clean-dark {
    background: #141c2e;
    border: 1px solid #1e293b;
    border-radius: 16px;
}


/* ===================================================
   QR CODE CLICK-TO-ZOOM LIGHTBOX (DISCORD / MESSENGER STYLE)
   =================================================== */
.qr-zoomable {
    cursor: zoom-in !important;
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease !important;
}

.qr-zoomable:hover {
    transform: scale(1.04) translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 170, 0, 0.35) !important;
}

.qr-lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 3, 10, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 1085 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
}

.qr-lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.qr-lightbox-dialog {
    position: relative;
    transform: scale(0.72) translateY(20px);
    opacity: 0;
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
    max-width: 92vw;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qr-lightbox-overlay.active .qr-lightbox-dialog {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.qr-lightbox-close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(22, 14, 43, 0.95);
    border: 1.5px solid rgba(255, 170, 0, 0.5);
    color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10;
}

.qr-lightbox-close:hover {
    background: #ff5100;
    color: #ffffff;
    border-color: #ffaa00;
    transform: scale(1.1) rotate(90deg);
}

.qr-lightbox-card {
    background: linear-gradient(135deg, rgba(28, 17, 52, 0.96), rgba(12, 7, 24, 0.98));
    border: 1.5px solid rgba(255, 170, 0, 0.45);
    box-shadow: 0 25px 65px rgba(0, 0, 0, 0.9), 0 0 35px rgba(255, 119, 0, 0.25);
    border-radius: 24px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.qr-lightbox-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 14px;
    border-radius: 999px;
    background: rgba(255, 170, 0, 0.15);
    border: 1px solid rgba(255, 170, 0, 0.4);
    color: #ffaa00;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.qr-lightbox-img-wrap {
    background: #ffffff;
    padding: 14px;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
    cursor: zoom-out;
    margin-top: 12px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-lightbox-img-wrap img {
    max-width: min(80vw, 420px);
    max-height: min(65vh, 420px);
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 8px;
}

.qr-lightbox-hint {
    color: #94a3b8;
    font-size: 0.78rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ===================================================
   TWILIGHT NOTIFICATION POPUP MODAL (REPLACING NATIVE ALERTS)
   =================================================== */
.modal-alert-twilight {
    background: linear-gradient(135deg, rgba(26, 16, 48, 0.98), rgba(12, 7, 26, 0.98)) !important;
    border: 1.5px solid rgba(255, 170, 0, 0.45) !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(255, 119, 0, 0.25) !important;
    border-radius: 22px !important;
    backdrop-filter: blur(20px) !important;
}

.modal-alert-twilight .modal-header {
    background: rgba(35, 20, 65, 0.6);
    border-bottom: 1px solid rgba(255, 170, 0, 0.2) !important;
}

.modal-alert-twilight .modal-footer {
    background: rgba(35, 20, 65, 0.35);
    border-top: 1px solid rgba(255, 170, 0, 0.2) !important;
}

/* ===================================================
   UI-01: PAYMENT METHODS MINIMALIST SELECTOR (TASTE REDESIGN)
   =================================================== */
.payment-methods-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.payment-method-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(22, 14, 38, 0.75);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
    margin-bottom: 0;
}

.payment-method-card:hover {
    background: rgba(30, 20, 52, 0.9);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.payment-method-card .radio-indicator {
    width: 18px;
    height: 18px;
    min-width: 18px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.payment-method-card .radio-indicator::after {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: transparent;
    transition: all 0.2s ease;
}

.payment-method-card.active .radio-indicator {
    border-color: currentColor;
}

.payment-method-card.active .radio-indicator::after {
    background: currentColor;
}

.payment-method-card .method-icon-wrap {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.payment-method-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: #f1f5f9;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.payment-method-price {
    font-size: 0.95rem;
    font-weight: 700;
    font-family: var(--bs-font-monospace, monospace);
    letter-spacing: -0.01em;
    white-space: nowrap;
}

/* Active state for Bank (Emerald-500) */
.payment-method-card.bank-channel.active {
    background: linear-gradient(135deg, rgba(6, 78, 59, 0.4), rgba(16, 185, 129, 0.12));
    border-color: #10b981 !important;
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.22);
    color: #4ade80;
}

.payment-method-card.bank-channel .method-icon-wrap {
    background: rgba(16, 185, 129, 0.15);
    color: #4ade80;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Active state for Card (Amber-500) */
.payment-method-card.card-channel.active {
    background: linear-gradient(135deg, rgba(120, 53, 15, 0.4), rgba(245, 158, 11, 0.12));
    border-color: #f59e0b !important;
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.22);
    color: #fbbf24;
}

.payment-method-card.card-channel .method-icon-wrap {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

@media (max-width: 576px) {
    .payment-method-card {
        padding: 9px 12px !important;
        gap: 8px;
    }
    .payment-method-title {
        font-size: 0.8rem !important;
        white-space: normal !important;
        line-height: 1.25;
    }
    .payment-method-price {
        font-size: 0.84rem !important;
        margin-left: auto;
        padding-left: 6px;
        flex-shrink: 0;
    }
    .card-auto-calc-header {
        flex-wrap: wrap !important;
        gap: 6px !important;
        align-items: flex-start !important;
    }
}


/* ===================================================
   UI-02: TRACKING SEARCH CLUSTER (TASTE REDESIGN)
   =================================================== */
.tracking-search-cluster {
    position: relative;
    width: 100%;
}

.tracking-input-wrapper {
    position: relative;
    width: 100%;
}

.tracking-input-wrapper .input-leading-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f59e0b;
    z-index: 2;
}

.tracking-input-field {
    height: 48px !important;
    padding-left: 44px !important;
    padding-right: 16px !important;
    border-radius: 9999px !important;
    background: #0b1120 !important;
    color: #ffffff !important;
    border: 1.5px solid rgba(255, 255, 255, 0.16) !important;
    font-size: 0.92rem !important;
    transition: all 0.2s ease;
}

.tracking-input-field:focus {
    background: #0f172a !important;
    border-color: #f59e0b !important;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25) !important;
    outline: none !important;
}

.tracking-input-field::placeholder {
    color: #94a3b8 !important;
    font-size: 0.88rem;
}

.btn-tracking-action {
    height: 48px !important;
    border-radius: 9999px !important;
    padding: 0 24px !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    background: linear-gradient(135deg, #f59e0b, #fbbf24) !important;
    border: none !important;
    color: #0b0716 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35) !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-tracking-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.45) !important;
    background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
}

.btn-tracking-action:active {
    transform: translateY(0);
}

.tracking-pin-hint-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: #cbd5e1;
    font-size: 0.8rem;
    margin-top: 10px;
}

/* ===================================================
   UI-04: ORDER CREDENTIAL CARD & MOBILE DEVICE CARDS
   =================================================== */
.order-credential-card {
    background: linear-gradient(135deg, rgba(22, 14, 43, 0.95), rgba(12, 7, 26, 0.95));
    border: 1.5px solid rgba(245, 158, 11, 0.35);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.credential-item-box {
    background: rgba(11, 7, 22, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.tracking-url-preview-box {
    word-break: break-all;
    overflow-wrap: break-word;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.78rem;
    color: #94a3b8;
    background: rgba(11, 7, 22, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 8px 12px;
}

.device-order-card {
    background: rgba(19, 25, 43, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.device-order-card:hover {
    border-color: rgba(245, 158, 11, 0.35);
    background: rgba(25, 33, 56, 0.9);
}

@media (max-width: 576px) {
    .device-order-card {
        padding: 12px 14px;
        margin-bottom: 10px;
    }
    .tracking-page-wrapper {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
}

/* ===================================================
   UI-03: ADMIN VOUCHER HEADER
   =================================================== */
.admin-badge-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(217, 119, 6, 0.1));
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #f59e0b;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.15);
}

.admin-nav-pill-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #cbd5e1;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.admin-nav-pill-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.28);
    color: #ffffff;
    transform: translateY(-1px);
}

.admin-primary-cta-btn {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    border: none;
    color: #0b0716;
    font-weight: 700;
    font-size: 0.84rem;
    padding: 7px 18px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
    transition: all 0.2s ease;
}

.admin-primary-cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.48);
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

/* ===================================================
   UI-05: SHOPEE VOUCHER SELECTOR & TICKET CARDS (TASTE REDESIGN)
   =================================================== */
.voucher-selector-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 16px;
    border-radius: 12px;
    background: rgba(22, 14, 38, 0.75);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
    width: 100%;
    min-height: 48px;
}

.voucher-bar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1 1 auto;
}

.voucher-bar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.voucher-selector-bar:hover {
    background: rgba(30, 20, 52, 0.9);
    border-color: rgba(245, 158, 11, 0.45);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.12);
}

.voucher-bar-icon-box {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 8px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fbbf24;
    display: flex;
    align-items: center;
    justify-content: center;
}

.voucher-bar-placeholder {
    font-size: 0.78rem;
    font-weight: 600;
    color: #fbbf24;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease;
}

.voucher-selector-bar:hover .voucher-bar-placeholder {
    color: #fde047;
}

.voucher-bar-badge {
    font-size: 0.72rem;
    padding: 3px 8px;
    background: rgba(16, 185, 129, 0.18);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.45);
    letter-spacing: -0.01em;
}

.btn-clear-voucher {
    position: static !important;
    width: 20px;
    height: 20px;
    min-width: 20px;
    border-radius: 50%;
    border: none;
    background: rgba(239, 68, 68, 0.18);
    color: #f87171;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.btn-clear-voucher:hover {
    background: rgba(239, 68, 68, 0.4);
    color: #ffffff;
    transform: scale(1.08);
}

/* Modal Ticket Card Design */
.shopee-ticket-card {
    position: relative;
    display: flex;
    align-items: stretch;
    border-radius: 12px;
    background: rgba(22, 14, 38, 0.85);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    overflow: hidden;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
}

.shopee-ticket-card:hover:not(.ineligible) {
    background: rgba(30, 20, 52, 0.95);
    border-color: rgba(245, 158, 11, 0.45);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.shopee-ticket-card.selected {
    background: linear-gradient(135deg, rgba(30, 20, 52, 0.95), rgba(40, 22, 60, 0.95));
    border-color: #f59e0b !important;
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.25);
}

.ticket-stub {
    width: 92px;
    min-width: 92px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.1));
    border-right: 1.5px dashed rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 6px;
    text-align: center;
    position: relative;
}

.shopee-ticket-card.selected .ticket-stub {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.35), rgba(217, 119, 6, 0.2));
    border-right-color: rgba(245, 158, 11, 0.4);
}

.ticket-stub-discount {
    font-size: 0.86rem;
    font-weight: 800;
    color: #fbbf24;
    line-height: 1.2;
}

.ticket-stub-sub {
    font-size: 0.65rem;
    color: #cbd5e1;
    margin-top: 2px;
}

.ticket-body {
    flex: 1;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.ticket-title {
    font-size: 0.84rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ticket-code-pill {
    font-size: 0.68rem;
    font-family: var(--bs-font-monospace, monospace);
    font-weight: 700;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.25);
    padding: 1px 6px;
    border-radius: 4px;
    display: inline-block;
    max-width: fit-content;
    margin-bottom: 3px;
}

.ticket-min-spend {
    font-size: 0.72rem;
    color: #94a3b8;
}

.ticket-action {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-right: 14px;
    padding-left: 6px;
}

.ticket-radio {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.shopee-ticket-card.selected .ticket-radio {
    border-color: #f59e0b;
    background: #f59e0b;
    color: #0b0716;
}

.shopee-ticket-card.ineligible {
    opacity: 0.48;
    cursor: not-allowed;
    filter: grayscale(25%);
}

.shopee-ticket-card.ineligible .ticket-stub {
    background: rgba(255, 255, 255, 0.05);
}

.shopee-ticket-card.ineligible .ticket-radio {
    opacity: 0.3;
}

.voucher-list-scroll-container::-webkit-scrollbar {
    width: 5px;
}
.voucher-list-scroll-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
}
.voucher-list-scroll-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 10px;
}
.voucher-list-scroll-container::-webkit-scrollbar-thumb:hover {
    background: rgba(245, 158, 11, 0.4);
}

/* ===================================================
   TAILWIND UTILITY SHIMS FOR CHECKOUT MODAL (TASTE V2)
   =================================================== */
.flex { display: flex !important; }
.flex-col { flex-direction: column !important; }
.items-center { align-items: center !important; }
.justify-between { justify-content: space-between !important; }
.w-full { width: 100% !important; box-sizing: border-box !important; }
.shrink-0 { flex-shrink: 0 !important; }
.min-w-0 { min-width: 0 !important; }
.text-right { text-align: right !important; }
.line-through { text-decoration: line-through !important; }
.whitespace-nowrap { white-space: nowrap !important; }
.rounded-xl { border-radius: 0.75rem !important; }
.p-3 { padding: 0.75rem !important; }
.p-3\.5 { padding: 0.875rem !important; }
.py-1 { padding-top: 0.25rem !important; padding-bottom: 0.25rem !important; }
.px-2 { padding-left: 0.5rem !important; padding-right: 0.5rem !important; }
.gap-1 { gap: 0.25rem !important; }
.gap-1\.5 { gap: 0.375rem !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-2\.5 { gap: 0.625rem !important; }
.text-xs { font-size: 0.75rem !important; line-height: 1rem !important; }
.text-sm { font-size: 0.875rem !important; line-height: 1.25rem !important; }
.text-base { font-size: 1rem !important; line-height: 1.5rem !important; }
.font-bold { font-weight: 700 !important; }
.font-medium { font-weight: 500 !important; }
.font-semibold { font-weight: 600 !important; }
.font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !important; }
.text-slate-400 { color: #94a3b8 !important; }
.text-slate-500 { color: #64748b !important; }
.text-emerald-400 { color: #34d399 !important; }
.text-emerald-300 { color: #6ee7b7 !important; }
.text-amber-400 { color: #fbbf24 !important; }
.bg-emerald-500\/15 { background-color: rgba(16, 185, 129, 0.15) !important; }
.uppercase { text-transform: uppercase !important; }

/* ===================================================
   FRACTIONAL SPACING & GAP UTILITIES (BOOTSTRAP 5 EXTENSION)
   Ensures classes like .p-2.5, .py-2.5, .gap-2.5 always have generous padding
   =================================================== */
.p-0\.5 { padding: 0.25rem !important; }
.p-1\.5 { padding: 0.45rem !important; }
.p-2\.5 { padding: 0.85rem !important; }

.py-0\.5 { padding-top: 0.25rem !important; padding-bottom: 0.25rem !important; }
.py-1\.5 { padding-top: 0.45rem !important; padding-bottom: 0.45rem !important; }
.py-2\.5 { padding-top: 0.75rem !important; padding-bottom: 0.75rem !important; }
.py-3\.5 { padding-top: 1.25rem !important; padding-bottom: 1.25rem !important; }

.px-0\.5 { padding-left: 0.25rem !important; padding-right: 0.25rem !important; }
.px-1\.5 { padding-left: 0.45rem !important; padding-right: 0.45rem !important; }
.px-2\.5 { padding-left: 0.85rem !important; padding-right: 0.85rem !important; }
.px-3\.5 { padding-left: 1.25rem !important; padding-right: 1.25rem !important; }

.pt-0\.5 { padding-top: 0.25rem !important; }
.pt-1\.5 { padding-top: 0.45rem !important; }
.pt-2\.5 { padding-top: 0.75rem !important; }
.pt-3\.5 { padding-top: 1.25rem !important; }

.pb-0\.5 { padding-bottom: 0.25rem !important; }
.pb-1\.5 { padding-bottom: 0.45rem !important; }
.pb-2\.5 { padding-bottom: 0.75rem !important; }
.pb-3\.5 { padding-bottom: 1.25rem !important; }

.m-0\.5 { margin: 0.25rem !important; }
.m-1\.5 { margin: 0.45rem !important; }
.m-2\.5 { margin: 0.75rem !important; }
.m-3\.5 { margin: 1.25rem !important; }

.my-0\.5 { margin-top: 0.25rem !important; margin-bottom: 0.25rem !important; }
.my-1\.5 { margin-top: 0.45rem !important; margin-bottom: 0.45rem !important; }
.my-2\.5 { margin-top: 0.75rem !important; margin-bottom: 0.75rem !important; }
.my-3\.5 { margin-top: 1.25rem !important; margin-bottom: 1.25rem !important; }

.mx-0\.5 { margin-left: 0.25rem !important; margin-right: 0.25rem !important; }
.mx-1\.5 { margin-left: 0.45rem !important; margin-right: 0.45rem !important; }
.mx-2\.5 { margin-left: 0.75rem !important; margin-right: 0.75rem !important; }
.mx-3\.5 { margin-left: 1.25rem !important; margin-right: 1.25rem !important; }

.mt-0\.5 { margin-top: 0.25rem !important; }
.mt-1\.5 { margin-top: 0.45rem !important; }
.mt-2\.5 { margin-top: 0.75rem !important; }
.mt-3\.5 { margin-top: 1.25rem !important; }

.mb-0\.5 { margin-bottom: 0.25rem !important; }
.mb-1\.5 { margin-bottom: 0.45rem !important; }
.mb-2\.5 { margin-bottom: 0.75rem !important; }
.mb-3\.5 { margin-bottom: 1.25rem !important; }

.gap-0\.5 { gap: 0.25rem !important; }
.gap-3\.5 { gap: 1.25rem !important; }

/* Dedicated card auto calculation box styling */
.card-auto-calc-box {
    padding: 14px 16px !important;
    background: rgba(18, 11, 36, 0.95);
    border: 1px solid rgba(245, 158, 11, 0.35) !important;
    border-radius: 12px;
}
.card-auto-calc-header {
    margin-bottom: 10px !important;
    padding-bottom: 8px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}
.card-input-item {
    padding: 12px 14px !important;
    background: rgba(22, 14, 38, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 10px;
}
.submitted-card-item {
    padding: 12px 14px !important;
    background: rgba(22, 14, 38, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 10px;
}

/* Global Cart Square Button (Consistent across Products, Clone Accounts & Modals) */
.btn-cart-square {
    width: 44px;
    height: 40px;
    min-width: 44px;
    border-radius: 12px;
    border: 1.5px solid rgba(255, 170, 0, 0.45);
    background: rgba(255, 170, 0, 0.12);
    color: #fbbf24;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    text-decoration: none;
}
.btn-cart-square:hover {
    background: rgba(255, 170, 0, 0.25);
    border-color: #ffaa00;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(255, 170, 0, 0.35);
}
.btn-cart-square:active {
    transform: translateY(0);
}
.btn-cart-sm {
    width: 38px;
    height: 36px;
    min-width: 38px;
    border-radius: 10px;
}

/* Cart Checkout Voucher Card & Totals */
.cart-checkout-voucher-box {
    background: rgba(26, 16, 45, 0.85);
    border: 1.5px solid rgba(56, 189, 248, 0.3) !important;
    border-radius: 12px;
    padding: 14px 16px;
}
.cart-checkout-totals-box {
    background: rgba(18, 11, 36, 0.9);
    border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 12px;
    padding: 14px 16px;
}

/* ===================================================
   CHECKOUT MULTI-STEP WIZARD (STEPPER & STEPS)
   =================================================== */
.checkout-stepper-header {
    background: rgba(18, 11, 34, 0.85);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.checkout-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.checkout-stepper .step-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0.55;
}

.checkout-stepper .step-item.active {
    opacity: 1;
}

.checkout-stepper .step-item.completed {
    opacity: 0.9;
}

.checkout-stepper .step-item.disabled {
    cursor: not-allowed;
    opacity: 0.35;
}

.checkout-stepper .step-circle {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 700;
    font-family: monospace;
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px solid rgba(255, 255, 255, 0.18);
    color: #94a3b8;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.checkout-stepper .step-item.active .step-circle {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-color: #fbbf24;
    color: #0f0a1c;
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.45);
    transform: scale(1.05);
}

.checkout-stepper .step-item.completed .step-circle {
    background: rgba(16, 185, 129, 0.2);
    border-color: #10b981;
    color: #34d399;
}

.checkout-stepper .step-label-group {
    display: flex;
    flex-direction: column;
}

.checkout-stepper .step-tag {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #94a3b8;
    line-height: 1.1;
}

.checkout-stepper .step-item.active .step-tag {
    color: #fbbf24;
}

.checkout-stepper .step-item.completed .step-tag {
    color: #34d399;
}

.checkout-stepper .step-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    line-height: 1.2;
}

.checkout-stepper .step-connector {
    flex: 1;
    height: 2px;
    margin: 0 12px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 2px;
    transition: background 0.3s ease;
}

.checkout-stepper .step-connector.completed {
    background: linear-gradient(90deg, #10b981, #f59e0b);
}

@media (max-width: 640px) {
    .checkout-stepper .step-title {
        display: none;
    }
    .checkout-stepper .step-circle {
        width: 30px;
        height: 30px;
        min-width: 30px;
        font-size: 0.78rem;
    }
    .checkout-stepper .step-connector {
        margin: 0 6px;
    }
}

/* Modal Delivery Method Tab Pill Selector */
.modal-method-toggle {
    display: flex;
    gap: 8px;
    background: rgba(12, 7, 24, 0.6);
    padding: 4px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-method-pill {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 9px;
    font-size: 0.84rem;
    font-weight: 600;
    color: #cbd5e1;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-method-pill:hover:not(.active) {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

.modal-method-pill.active {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(59, 130, 246, 0.15));
    border: 1px solid rgba(56, 189, 248, 0.45);
    color: #38bdf8;
    box-shadow: 0 2px 10px rgba(56, 189, 248, 0.2);
}

/* Wizard step container transitions */
.wizard-step-pane {
    animation: fadeInStep 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInStep {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Step 3 Order Confirmation Card */
.checkout-review-card {
    background: rgba(18, 11, 36, 0.88);
    border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 14px;
    padding: 16px;
}

.review-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 0.84rem;
}

.review-item-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.review-item-label {
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 6px;
}

.review-item-value {
    color: #ffffff;
    font-weight: 600;
    text-align: right;
}

/* ==========================================================================
   EXTERNAL LOGINS TABLE (TWILIGHT LUXURY THEME)
   ========================================================================== */
.table-external-logins {
    --bs-table-bg: transparent;
    --bs-table-color: #ffffff;
    --bs-table-border-color: rgba(255, 170, 0, 0.12);
    margin-bottom: 0;
}

.table-external-logins tbody tr {
    transition: background 0.22s ease;
    border-bottom: 1px solid rgba(255, 170, 0, 0.12);
}

.table-external-logins tbody tr:last-child {
    border-bottom: none !important;
}

.table-external-logins tbody tr:hover {
    background: rgba(255, 170, 0, 0.05) !important;
}

.external-login-avatar-box {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 170, 0, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.table-external-logins tr:hover .external-login-avatar-box {
    transform: scale(1.05);
    border-color: rgba(255, 170, 0, 0.6);
}



