/* develop HAILX:0787086710 */
/* ===== V12 PREMIUM DARK STOREFRONT STYLE (ZERMANGO THEME SYSTEM) ===== */
:root {
    --bg: #08090c;
    --bg2: #0b0d10;
    --surface: #101217;
    --surface2: #141720;
    --surface: #14171c;
    --surface2: #1b1f26;
    --border: rgba(255, 255, 255, 0.08);
    --text: #f2f4f7;
    --muted: #8a919c;
    --accent: #7c6cf2;
    --accent2: #6366f1;
    --accent3: #4f46e5;
    --gold: #f59e0b;
    --green: #10b981;
    --red: #ef4444;
    --glow: 0 0 24px rgba(124, 108, 242, 0.35);
    --shadow: 0 12px 32px rgba(0, 0, 0, 0.75);
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 16px;
    --r-xl: 20px;
    --theme-primary: #7c6cf2;
    --theme-primary-hover: #897bf5;
    --theme-gradient: linear-gradient(135deg, #7c6cf2, #6366f1);
    --theme-glow: 0 4px 18px rgba(124, 108, 242, 0.45);
    --theme-bg-glow: rgba(124, 108, 242, 0.16);
    --theme-border: rgba(124, 108, 242, 0.4);
    --theme-rgb: 124, 108, 242;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    position: relative;
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 15.5px;
    line-height: 1.55;
    min-height: 100vh;
}

/* Optimized hardware-accelerated background (60 FPS smooth scrolling) */
body {
    background-color: var(--bg);
}

/* Nền đen sâu tuyệt đối Zermango (Đen tuyền trơn, BỎ HOÀN TOÀN CÁC Ô LƯỚI CA-RÔ) */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: #08090c;
    background-image: 
        radial-gradient(ellipse at 15% 0%, rgba(124, 108, 242, 0.08), transparent 50%),
        radial-gradient(ellipse at 85% 100%, rgba(14, 165, 233, 0.05), transparent 50%);
    transform: translateZ(0);
    will-change: transform;
}

.app {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

/* ===== SIDEBAR STYLING (ALWAYS VISIBLE FULL-SIZE ON DESKTOP, MANUAL TOGGLE) ===== */
:root {
    --sidebar-w: 240px;
}

.side {
    width: var(--sidebar-w);
    min-width: var(--sidebar-w);
    max-width: var(--sidebar-w);
    background: #0e1013;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    position: fixed;
    inset: 0 auto 0 0;
    padding: 16px 10px;
    z-index: 40;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.side::-webkit-scrollbar {
    width: 4px;
}
.side::-webkit-scrollbar-track {
    background: transparent;
}
.side::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}
.side::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Admin App Layout (Keeps full sidebar for admin panel on desktop) */
@media (min-width: 993px) {
    .admin-app .side {
        width: 275px !important;
        min-width: 275px !important;
        max-width: 275px !important;
        padding: 16px 10px !important;
    }
    .admin-app .main {
        margin-left: 275px !important;
        width: calc(100% - 275px) !important;
        max-width: calc(100% - 275px) !important;
    }
    .admin-app .brand-info,
    .admin-app .nav-title,
    .admin-app .nav a span {
        opacity: 1 !important;
        width: auto !important;
        display: inline !important;
    }
    .admin-app .balance-card {
        display: block !important;
    }
}

.sidebar-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    margin-bottom: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-sizing: border-box;
}

.sidebar-close-btn {
    display: none;
}

.brand {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 0 !important;
    border-bottom: none !important;
    margin-bottom: 0 !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

.brand-logo, #sidebar-avatar-img {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 10px !important;
    background: transparent;
    display: grid !important;
    place-items: center !important;
    font-weight: 900;
    color: #ffffff;
    font-size: 16px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    flex-shrink: 0 !important;
    overflow: hidden !important;
}

.brand-logo img, #sidebar-avatar-img img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    border-radius: 10px !important;
    display: block !important;
    aspect-ratio: 1 / 1 !important;
}

.brand-info {
    opacity: 1 !important;
    flex: 1 !important;
    min-width: 0 !important;
    overflow: hidden !important;
    pointer-events: auto !important;
}

.brand-name {
    font-weight: 900;
    font-size: 16.5px;
    letter-spacing: 0.5px;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-tag {
    font-size: 11px;
    color: var(--muted);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.balance-card {
    display: block;
    background: #12151b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--r-md);
    padding: 10px 12px;
    margin-bottom: 12px;
}

.balance-card .lbl {
    font-size: 10px;
    color: var(--muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.balance-card .val {
    font-size: 18px;
    font-weight: 800;
    color: var(--gold);
    margin-top: 2px;
}

/* Sidebar Navigation links */
.nav-group {
    margin-top: 6px;
    flex: 1;
}

.nav-title {
    font-size: 11px;
    color: var(--muted);
    font-weight: 800;
    letter-spacing: 1px;
    padding: 6px 12px;
    text-transform: uppercase;
    opacity: 1;
    margin-bottom: 4px;
}

.nav a, .nav button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    color: #8b949e;
    background: transparent;
    border: 0;
    width: 100%;
    font-weight: 600;
    font-size: 13.5px;
    cursor: pointer;
    transition: all .2s ease;
    font-family: inherit;
    text-align: left;
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    box-sizing: border-box;
    overflow: hidden;
}

.nav a:hover, .nav button:hover {
    background: var(--theme-bg-glow, rgba(124, 108, 242, 0.14));
    color: #ffffff;
    transform: none;
}

.nav .active {
    background: linear-gradient(135deg, rgba(var(--theme-rgb, 124, 108, 242), 0.28), rgba(var(--theme-rgb, 124, 108, 242), 0.18)) !important;
    border: 1px solid var(--theme-primary, #7c6cf2) !important;
    color: #ffffff !important;
    box-shadow: var(--theme-glow, 0 4px 14px rgba(124, 108, 242, 0.4)) !important;
}

.nav svg {
    width: 20px;
    height: 20px;
    min-width: 20px;
    flex-shrink: 0;
    opacity: .9;
}

.nav a .nav-text {
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav a .nav-badge,
.nav a [id$="-badge"] {
    flex-shrink: 0 !important;
    margin-left: auto !important;
}

.nav a span, .nav button span {
    opacity: 1;
    width: auto;
    overflow: visible;
    display: inline-block;
}

/* Tooltips when collapsed */
.side:not(:hover):not(.expanded) .nav a[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 14px;
    padding: 6px 12px;
    background: #1e293b;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    pointer-events: none;
}

/* Main content wrapper - Full Size Fluid */
.main {
    margin-left: var(--sidebar-w);
    width: calc(100% - var(--sidebar-w));
    max-width: calc(100% - var(--sidebar-w));
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: margin-left 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), width 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), max-width 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Topbar Header (Shinmod Style) */
.topbar {
    height: 62px;
    background: #0e1013;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 30;
    width: 100%;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
    max-width: 480px;
}

.topbar-logo {
    display: flex;
    align-items: center;
    cursor: pointer;
    flex-shrink: 0;
}

.topbar-badge-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    color: #ffffff;
    font-weight: 900;
    font-size: 15px;
    display: grid;
    place-items: center;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.topbar-search {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #12151b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 0 14px;
    height: 40px;
    min-width: 120px;
    max-width: 360px;
    width: 100%;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.topbar-search:focus-within {
    border-color: var(--theme-primary, #7c6cf2);
    box-shadow: 0 0 12px var(--theme-bg-glow, rgba(124, 108, 242, 0.25));
}

.topbar-search .search-icon {
    position: static !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    width: 16px;
    height: 16px;
    color: #64748b;
    flex-shrink: 0;
    pointer-events: none;
    display: block !important;
}

.topbar-search input {
    background: transparent;
    border: none;
    outline: none;
    color: #f1f5f9;
    font-size: 13.5px;
    font-weight: 500;
    width: 100%;
    font-family: inherit;
}

.topbar-search input::placeholder {
    color: #64748b;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: auto;
}

.header-user-area {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* ============================================================
   TOPBAR LANGUAGE DROPDOWN (Shinmod & Modern Gaming Store Style)
   ============================================================ */
.topbar-lang-dropdown {
    position: relative;
    display: inline-block;
}

.lang-select-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #161922;
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 8px;
    padding: 6px 12px;
    height: 38px;
    font-size: 13px;
    font-weight: 600;
    color: #f1f5f9;
    cursor: pointer;
    user-select: none;
    outline: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

.lang-select-btn:hover {
    background: #1c202c;
    border-color: rgba(139, 92, 246, 0.7);
    color: #ffffff;
    box-shadow: 0 0 14px rgba(139, 92, 246, 0.25);
}

.lang-select-btn.active {
    background: #1e2230;
    border-color: #8b5cf6;
    box-shadow: 0 0 16px rgba(139, 92, 246, 0.35);
}

.lang-globe-icon {
    width: 17px;
    height: 17px;
    color: #818cf8;
    flex-shrink: 0;
}

.lang-btn-label {
    font-size: 13.5px;
    font-weight: 600;
    color: #f1f5f9;
    letter-spacing: -0.1px;
}

.lang-badge {
    background: #28254c;
    color: #a78bfa;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.lang-chevron-icon {
    width: 13px;
    height: 13px;
    color: #818cf8;
    flex-shrink: 0;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.lang-select-btn.active .lang-chevron-icon {
    transform: rotate(180deg);
}

/* Dropdown Menu Popover */
.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 230px;
    width: 240px;
    background: #101322;
    border: 1px solid rgba(139, 92, 246, 0.28);
    border-radius: 12px;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.05);
    padding: 8px 0;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.97);
    transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.lang-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.lang-dropdown-header {
    font-size: 11px;
    font-weight: 700;
    color: #71788e;
    padding: 8px 18px 8px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    user-select: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 4px;
}

.lang-list {
    max-height: 380px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.lang-list::-webkit-scrollbar {
    width: 4px;
}

.lang-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.lang-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    user-select: none;
    position: relative;
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 500;
}

.lang-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

.lang-item.active {
    color: #818cf8;
    font-weight: 600;
    background: rgba(99, 102, 241, 0.09);
}

.lang-flag-img {
    width: 22px;
    height: 16px;
    border-radius: 3px;
    object-fit: cover;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
}

.lang-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lang-active-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #6366f1;
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.9);
    flex-shrink: 0;
    margin-left: auto;
}

/* Fallback legacy pill */
.topbar-lang-pill {
    display: none;
}

/* Clean Google Translate Background Integration */
.goog-te-banner-frame.skiptranslate,
.goog-te-banner-frame,
iframe.goog-te-banner-frame {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    opacity: 0 !important;
}
body {
    top: 0px !important;
    position: static !important;
}
#goog-gt-tt, .goog-te-balloon-frame {
    display: none !important;
}
.goog-text-highlight {
    background: none !important;
    box-shadow: none !important;
}
font {
    background-color: transparent !important;
    box-shadow: none !important;
}
.skiptranslate iframe {
    display: none !important;
}

@media (max-width: 640px) {
    .lang-select-btn {
        padding: 5px 8px;
        gap: 5px;
        height: 34px;
    }
    .lang-btn-label {
        display: none;
    }
    .lang-dropdown-menu {
        right: -10px;
        width: 220px;
    }
}

.topbar-balance-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--theme-bg-glow, rgba(124, 108, 242, 0.12));
    border: 1px solid var(--theme-border, rgba(124, 108, 242, 0.35));
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--theme-primary-hover, #a5b4fc);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.topbar-balance-pill svg {
    width: 16px;
    height: 16px;
    color: var(--theme-primary, #7c6cf2);
}

.topbar-balance-pill:hover {
    background: rgba(var(--theme-rgb, 124, 108, 242), 0.24);
    border-color: var(--theme-primary, #7c6cf2);
    box-shadow: var(--theme-glow, 0 0 12px rgba(124, 108, 242, 0.25));
    transform: translateY(-1px);
}

/* ============================================================
   ZERMANGO STYLE: USER TOPBAR PILL & DROPDOWN MENU (Image 2)
   ============================================================ */
.topbar-user-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.topbar-user-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #14171f;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9px;
    padding: 4px 11px 4px 4px;
    cursor: pointer;
    user-select: none;
    transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.topbar-user-pill:hover,
.topbar-user-pill.active {
    background: #1a1e28;
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.topbar-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: var(--theme-gradient, linear-gradient(135deg, #7c6cf2, #6366f1));
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 800;
    font-size: 13px;
    overflow: hidden;
    flex-shrink: 0;
}

.topbar-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 7px;
}

.topbar-username {
    font-size: 13.5px;
    font-weight: 700;
    color: #ffffff;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: -0.2px;
}

/* User Dropdown Menu Card (Image 2) */
.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 215px;
    background: #14171f;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 14px 8px 10px 8px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.05);
    z-index: 1000;
    display: none;
    flex-direction: column;
    animation: userDdFadeIn 0.16s cubic-bezier(0.16, 1, 0.3, 1);
}

.user-dropdown-menu.open {
    display: flex;
}

@keyframes userDdFadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.user-dd-header {
    padding: 2px 10px 12px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    margin-bottom: 6px;
}

.user-dd-name {
    font-size: 15px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-dd-email {
    font-size: 12px;
    color: #8896ab;
    line-height: 1.35;
    margin-top: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    word-break: break-all;
}

.user-dd-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-dd-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8.5px 12px;
    border-radius: 8px;
    color: #cbd5e1;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.user-dd-item:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
}

.user-dd-item svg {
    width: 17px;
    height: 17px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.2;
    flex-shrink: 0;
}

/* Specific colors matching Reference Image 2 */
.user-dd-item.item-hwid {
    color: #818cf8;
}
.user-dd-item.item-deposit {
    color: #818cf8;
}
.user-dd-item.item-admin {
    color: #eab308;
}
.user-dd-item.item-logout {
    color: #818cf8;
}
.user-dd-item.item-logout:hover {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
}

.user-dd-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.07);
    margin: 6px 4px;
}

.hamb {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #12151b;
    border-radius: 10px;
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.hamb:hover {
    background: #1c202a;
    border-color: rgba(255, 255, 255, 0.25);
    color: var(--theme-primary, #7c6cf2);
}

.hamb:before {
    content: "☰";
    font-size: 20px;
    color: var(--text);
    font-weight: 900;
}

.app.menu-open .hamb:before {
    content: "×";
    font-size: 24px;
}

@media (min-width: 993px) {
    .topbar-logo {
        display: none !important;
    }

    /* Desktop manual sidebar collapse */
    .app.sidebar-collapsed .side {
        transform: translateX(-105%) !important;
    }

    .app.sidebar-collapsed .main {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .app.sidebar-collapsed .topbar-logo {
        display: flex !important;
    }
}

/* Content Container - FULL SIZE (No 1440px constraint) */
.content {
    padding: 16px 20px 48px;
    max-width: 100% !important;
    width: 100%;
    margin: 0;
}

/* Dashboard Marquee Bar (Shinmod Style - Image 1) */
.dashboard-marquee-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #12151b;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    padding: 8px 14px;
    margin-bottom: 14px;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #7c3aed, #6366f1);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.35);
}

.marquee-scroll-container {
    overflow: hidden;
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.marquee-scroll-text {
    display: inline-block;
    white-space: nowrap;
    animation: marqueeScroll 28s linear infinite;
    font-size: 13.5px;
    color: #facc15;
    font-weight: 600;
    text-shadow: 0 1px 6px rgba(250, 204, 21, 0.25);
}

.marquee-scroll-container:hover .marquee-scroll-text {
    animation-play-state: paused;
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* System Welcome / Notice Card (Shinmod Style - Image 1) */
.dashboard-welcome-card {
    background: #12151b;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.welcome-avatar-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    background: #161922;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
}

.welcome-avatar-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.welcome-content {
    flex: 1;
}

.welcome-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.welcome-store-title {
    font-size: 14.5px;
    font-weight: 800;
    color: #ffffff;
}

.welcome-verified-badge {
    color: #38bdf8;
    font-size: 13px;
    font-weight: 900;
}

.welcome-date {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
}

.welcome-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0;
    margin: 0;
}

.welcome-bullets li {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.5;
}

/* 3 Stat Cards Row (Shinmod Style - Image 1) */
.dashboard-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 16px;
}

@media (max-width: 768px) {
    .dashboard-stats-row {
        grid-template-columns: 1fr;
    }
}

.d-stat-card {
    background: #12151b;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.d-stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.d-stat-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #818cf8;
    margin-bottom: 4px;
}

.d-stat-icon svg {
    display: block;
}

.d-stat-value {
    font-size: 22px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.d-stat-label {
    font-size: 12.5px;
    color: #64748b;
    font-weight: 600;
}

/* Category Pills Bar (Shinmod Style) */
.category-pills-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 6px 0 16px;
    width: 100%;
}

.filter-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 2px 8px;
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
    -webkit-overflow-scrolling: touch;
}

.filter-buttons::-webkit-scrollbar {
    height: 4px;
}
.filter-buttons::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.filter-btn {
    background: #14171f;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    padding: 9px 18px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: inherit;
}

.filter-btn:hover {
    color: #ffffff;
    background: #1c202a;
    border-color: rgba(255, 255, 255, 0.25);
}

.filter-btn.active {
    background: #252e46 !important;
    border-color: rgba(99, 102, 241, 0.7) !important;
    color: #ffffff !important;
    box-shadow: 0 0 14px rgba(99, 102, 241, 0.25) !important;
}

.sort-combo {
    background: #14171f;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    outline: none;
    flex-shrink: 0;
}

/* Notice & Alert */
.notice {
    background: linear-gradient(135deg, var(--theme-bg-glow), rgba(var(--theme-rgb), 0.03));
    border: 1px solid var(--theme-border);
    border-radius: var(--r-lg);
    padding: 14px 18px;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 14px;
    color: #e2e8f0;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    box-shadow: 0 4px 24px var(--theme-bg-glow), 0 20px 70px rgba(0,0,0,.2);
}

.notice svg {
    flex-shrink: 0;
    color: var(--theme-primary, #7c6cf2);
    margin-top: 2px;
}

.notice strong {
    color: #4d8aff;
}

.section-title {
    font-size: 22px;
    font-weight: 900;
    margin: 8px 0 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -.3px;
}

.section-title:before {
    content: "";
    width: 4px;
    height: 22px;
    background: linear-gradient(180deg, var(--accent), var(--accent3));
    border-radius: 2px;
}

/* Card basic */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: 0 20px 70px rgba(0,0,0,.25);
}

.pad {
    padding: 22px;
}

/* Grid layout - 4 products per row on desktop */
.grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

@media (max-width: 1080px) {
    .grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }
}

@media (max-width: 768px) {
    .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* Product Cards style */
.product-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .25s cubic-bezier(.2,.8,.2,1), border-color .25s ease, box-shadow .25s ease;
    position: relative;
    cursor: pointer;
    contain: content;
}

.product-card:hover {
    border-color: var(--theme-border);
    transform: none !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), var(--theme-glow);
}

.product-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    background: radial-gradient(circle at 50% 35%, var(--theme-bg-glow), transparent 50%), var(--bg2);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.product-info {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-cat {
    font-size: 10px;
    color: var(--muted);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.product-name {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -.2px;
    line-height: 1.4;
    min-height: 44px;
}

.product-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: auto;
    margin-bottom: 10px;
}

.product-price {
    font-size: 20px;
    font-weight: 900;
    color: var(--gold);
}

.sale-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, var(--red), #dc2626);
    color: #ffffff;
    font-size: 11px;
    font-weight: 900;
    padding: 4px 10px;
    border-radius: 99px;
    letter-spacing: .5px;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    z-index: 5;
}

/* Custom design buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: var(--r-md) !important;
    padding: 11px 18px;
    font-weight: 800;
    font-size: 14.5px;
    cursor: pointer;
    transition: all .2s;
    font-family: inherit;
    min-height: 52px;
    position: relative;
    overflow: hidden;
}

.btn:active {
    transform: scale(.97) !important;
}

.btn:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.16), transparent);
    transform: translateX(-120%);
    transition: .45s;
}

.btn:hover:after {
    transform: translateX(120%);
}

.btn.primary {
    background: var(--theme-gradient);
    color: #ffffff;
    box-shadow: var(--theme-glow);
}

.btn.primary:hover {
    box-shadow: 0 12px 28px var(--theme-bg-glow), var(--theme-glow);
    filter: brightness(1.08);
}

.btn.ghost {
    background: var(--surface2);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn.ghost:hover {
    background: var(--surface);
    color: #ffffff;
}

/* Custom form fields */
.form label {
    display: block;
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 6px;
    color: var(--text);
}

.form input, .form select, .form textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    color: var(--text);
    font-size: 14.5px;
    font-family: inherit;
    outline: none;
    transition: .15s;
}

.form input:focus, .form select:focus, .form textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(180, 180, 180, 0.15);
}

/* Custom dropdown style */
select.nice-combo {
    display: block;
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    background: linear-gradient(135deg, rgba(15,15,15,.98), rgba(27,27,27,.94));
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23afafaf' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 20px;
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    color: #f7f7f7;
    font-size: 15px;
    font-weight: 800;
    font-family: inherit;
    padding: 14px 44px 14px 14px;
    height: 54px;
    cursor: pointer;
    outline: none;
    box-shadow: 0 14px 40px rgba(0,0,0,.28);
    transition: border-color .18s, box-shadow .18s;
}

select.nice-combo:focus {
    border-color: rgba(200,200,200,.85);
    box-shadow: 0 0 0 3px rgba(200,200,200,.15);
}

select.nice-combo option {
    background: #191919;
    color: #e6e6e6;
    font-weight: 700;
    padding: 10px;
}

/* Hero Contact Redesign Layout */
.hero-contact {
    display: grid;
    grid-template-columns: 1.45fr .75fr;
    gap: 22px;
    margin-bottom: 32px;
    align-items: stretch;
}

.hero-contact-text, .hero-contact-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(200,200,200,.18);
    background: linear-gradient(145deg, rgba(24,24,24,.86), rgba(14,14,14,.88));
    border-radius: var(--r-xl);
    padding: 28px;
    box-shadow: 0 25px 80px rgba(0,0,0,.28);
}

.hero-contact-text:before {
    content: "";
    position: absolute;
    inset: -80px -20px auto auto;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(200,200,200,.16), transparent 70%);
    pointer-events: none;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #cecece;
    font-weight: 900;
    font-size: 12px;
    letter-spacing: .14em;
    margin-bottom: 10px;
}

.hero-contact h1 {
    font-size: 40px;
    line-height: 1.1;
    margin: 0 0 12px;
    font-weight: 950;
    background: linear-gradient(135deg, #ffffff, #e3e3e3, #bdbdbd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-contact p {
    color: #c1c1c1;
    font-size: 15px;
    line-height: 1.6;
}

.support-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.support-badges span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(23, 23, 23, 0.62);
    border: 1px solid rgba(168, 168, 168, 0.14);
    font-weight: 900;
    color: #e0e0e0;
    font-size: 13px;
}

.hero-contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-contact-card .orb {
    width: 100px;
    height: 100px;
    border-radius: 32px;
    background: linear-gradient(135deg, #b4b4b4, #c8c8c8, #555555);
    box-shadow: 0 0 40px rgba(180,180,180,.25);
    margin-bottom: 14px;
    animation: floatOrb 3.2s ease-in-out infinite;
}

@keyframes floatOrb {
    0%, 100% { transform: translateY(0) rotate(0) }
    50% { transform: translateY(-8px) rotate(4deg) }
}

.hero-contact-card b {
    font-size: 20px;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 4px;
}

.hero-contact-card span {
    color: var(--muted);
    font-size: 13.5px;
    font-weight: 600;
}

/* Free Fire Config Builder Styling */
.config-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 22px;
}

.terminal-output {
    flex-grow: 1;
    background: #040404;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 18px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 13.5px;
    color: #cecece;
    overflow-y: auto;
    max-height: 390px;
    min-height: 280px;
    white-space: pre-wrap;
    word-break: break-all;
    line-height: 1.6;
    box-shadow: inset 0 8px 30px rgba(0,0,0,0.8);
}

.terminal-output span.keyword {
    color: #eab308;
    font-weight: bold;
}

.terminal-output span.value {
    color: #22c55e;
}

.terminal-output span.comment {
    color: var(--muted);
}

.badge-vip {
    background: linear-gradient(135deg, #eab308, #ca8a04);
    color: #000000;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 900;
    text-transform: uppercase;
    box-shadow: 0 0 10px rgba(234, 179, 8, 0.25);
}

.badge-free {
    background: var(--surface2);
    color: var(--text);
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 900;
    text-transform: uppercase;
    border: 1px solid var(--border);
}

/* =========================================================
   NEW ADMIN PANEL STYLING (Inspired by subsieunhanh.online)
   ========================================================= */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

/* =========================================================
   DRAG & DROP PRODUCT SORTING (SortableJS)
   ========================================================= */
#adm-products-list {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    max-height: 650px !important;
    gap: 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.adm-prod-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 8px;
    width: 100% !important;
    box-sizing: border-box !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    touch-action: pan-y;
    cursor: grab;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.adm-prod-item:hover {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.04);
}

.adm-prod-item.is-inactive {
    background: rgba(255, 80, 80, 0.05);
    border-color: rgba(255, 80, 80, 0.25);
    opacity: 0.9;
}

.adm-prod-item:active {
    cursor: grabbing;
}

.adm-drag-handle {
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    padding: 4px;
    flex-shrink: 0;
    transition: color 0.15s ease, transform 0.15s ease;
}

.adm-drag-handle:hover {
    color: var(--gold) !important;
    transform: scale(1.15);
}

.adm-drag-handle:active {
    cursor: grabbing;
}

.adm-prod-thumb {
    position: relative;
    flex-shrink: 0;
    pointer-events: none;
    width: 44px;
    height: 44px;
}

.adm-prod-thumb img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--border);
    pointer-events: none;
    display: block;
}

.adm-prod-item.is-inactive .adm-prod-thumb img {
    filter: grayscale(60%);
}

.adm-badge-hidden {
    position: absolute;
    top: -4px;
    left: -4px;
    background: #e74c3c;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    padding: 1px 4px;
    border-radius: 3px;
    line-height: 1.2;
}

.adm-prod-info {
    flex: 1;
    min-width: 0;
    pointer-events: none;
}

.adm-prod-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.adm-prod-name {
    font-weight: 700;
    color: #fff;
    font-size: 13.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.badge-status-active {
    background: rgba(40, 167, 69, 0.2);
    color: #2ecc71;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
    border: 1px solid rgba(40, 167, 69, 0.3);
    flex-shrink: 0;
}

.badge-status-inactive {
    background: rgba(231, 76, 60, 0.2);
    color: #ff6b6b;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
    border: 1px solid rgba(231, 76, 60, 0.3);
    flex-shrink: 0;
}

.adm-prod-meta {
    font-size: 11.5px;
    color: var(--muted);
    margin-top: 3px;
}

.adm-prod-actions {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-shrink: 0;
}

.adm-btn-top {
    padding: 4px 8px;
    font-size: 11px;
    min-height: 28px;
    background: rgba(255, 215, 0, 0.12);
    color: var(--gold);
    border: 1px solid rgba(255, 215, 0, 0.35);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
}

.adm-btn-toggle {
    padding: 4px 10px;
    font-size: 11px;
    min-height: 28px;
    background: rgba(40, 167, 69, 0.18);
    color: #2ecc71;
    border: 1px solid rgba(40, 167, 69, 0.4);
    border-radius: 6px;
    cursor: pointer;
}

.adm-prod-item.is-inactive .adm-btn-toggle {
    background: rgba(231, 76, 60, 0.18);
    color: #ff6b6b;
    border-color: rgba(231, 76, 60, 0.4);
}

.adm-btn-edit {
    padding: 4px 10px;
    font-size: 11px;
    min-height: 28px;
}

.adm-btn-del {
    padding: 4px 10px;
    font-size: 11px;
    min-height: 28px;
    color: var(--red) !important;
    border-color: rgba(255, 75, 75, 0.25) !important;
}

@media (max-width: 768px) {
    .adm-prod-item {
        flex-wrap: wrap !important;
        padding: 12px 10px !important;
        gap: 8px 10px !important;
    }

    .adm-prod-item .adm-prod-info {
        flex: 1 1 calc(100% - 92px) !important;
        min-width: 0 !important;
    }

    .adm-prod-item .adm-prod-actions {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 6px !important;
        margin-top: 4px !important;
        padding-top: 8px !important;
        border-top: 1px dashed rgba(255, 255, 255, 0.08) !important;
    }

    .adm-prod-item .adm-prod-actions .btn {
        padding: 6px 2px !important;
        font-size: 11px !important;
        min-height: 32px !important;
        text-align: center !important;
        justify-content: center !important;
        white-space: nowrap !important;
        display: inline-flex !important;
        align-items: center !important;
        width: 100% !important;
    }
}

@media (max-width: 440px) {
    .adm-prod-item .adm-prod-actions {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
    }
}

/* SortableJS Visual States */
.adm-sortable-ghost {
    opacity: 0.15 !important;
    background: rgba(255, 215, 0, 0.04) !important;
    border: 2px dashed var(--gold) !important;
    border-radius: 8px !important;
}

.adm-sortable-chosen {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: var(--gold) !important;
    cursor: grabbing !important;
}

.adm-sortable-drag {
    opacity: 0 !important;
}

.adm-sortable-fallback {
    opacity: 0.98 !important;
    background: #181b24 !important;
    border: 1.5px solid var(--gold) !important;
    border-radius: 8px !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.9), 0 0 24px rgba(255, 215, 0, 0.3) !important;
    cursor: grabbing !important;
    pointer-events: none !important;
    z-index: 999999 !important;
}

/* =========================================================
   DRAG & DROP DOWNLOADS SORTING (SortableJS)
   ========================================================= */
.adm-dl-card-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    overflow: hidden;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.adm-dl-card-item:hover {
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.5);
    background: rgba(255, 255, 255, 0.045);
}

.adm-dl-card-item:active {
    cursor: grabbing;
}

.adm-dl-drag-pill {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    padding: 2px 7px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    color: var(--gold);
    z-index: 3;
    cursor: grab;
    transition: all 0.15s ease;
}

.adm-dl-card-item:hover .adm-dl-drag-pill {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    border-color: #a5b4fc;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

.adm-btn-top-dl {
    padding: 4px 9px;
    font-size: 11.5px;
    background: rgba(99, 102, 241, 0.18) !important;
    color: #a5b4fc !important;
    border: 1px solid rgba(99, 102, 241, 0.4) !important;
    font-weight: 700 !important;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.adm-btn-top-dl:hover {
    background: rgba(99, 102, 241, 0.35) !important;
    color: #fff !important;
    border-color: #818cf8 !important;
    transform: translateY(-1px);
}

/* =========================================================
   TOGGLE SWITCH COMPONENT
   ========================================================= */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #2b303c;
    transition: 0.3s;
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: #e2e8f0;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

.toggle-switch input:checked + .toggle-slider {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    border-color: #f39c12;
    box-shadow: 0 0 14px rgba(243, 156, 18, 0.45);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(22px);
    background-color: #fff;
}

.stat-card {
    background: linear-gradient(145deg, rgba(20,20,20,.95), rgba(10,10,10,.98));
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform .2s, border-color .2s;
}

.stat-card:hover {
    border-color: rgba(180, 180, 180, 0.22);
    transform: translateY(-2px);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 20px;
    flex-shrink: 0;
}

/* Dynamic Admin Icons colors matching dashboard screenshot style */
.stat-icon.u { background: rgba(34, 197, 94, 0.12); color: #22c55e; }
.stat-icon.u-new { background: var(--theme-bg-glow); color: var(--theme-primary); }
.stat-icon.bal { background: rgba(234, 179, 8, 0.12); color: #eab308; }
.stat-icon.dep { background: rgba(139, 92, 246, 0.12); color: #8b5cf6; }
.stat-icon.rev { background: rgba(239, 68, 68, 0.12); color: #ef4444; }
.stat-icon.ord { background: rgba(249, 115, 22, 0.12); color: #f97316; }
.stat-icon.tick { background: rgba(16, 185, 129, 0.12); color: #10b981; }
.stat-icon.dep-today { background: rgba(6, 182, 212, 0.12); color: #06b6d4; }
.stat-icon.ord-today { background: rgba(236, 72, 153, 0.12); color: #ec4899; }
.stat-icon.pending { background: rgba(245, 158, 11, 0.12); color: #f59e0b; }
.stat-icon.file-vip { background: rgba(168, 85, 247, 0.12); color: #a855f7; }
.stat-icon.active-con { background: rgba(100, 116, 139, 0.12); color: #64748b; }

.stat-val {
    font-size: 22px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.2;
}

.stat-lbl {
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
    margin-top: 2px;
}

/* Admin Data Table */
.table-responsive {
    overflow-x: auto;
    width: 100%;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
    text-align: left;
}

.admin-table th, .admin-table td {
    padding: 7px 8px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.admin-table td {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-table td:last-child {
    max-width: none;
    overflow: visible;
    text-overflow: clip;
}

.admin-table th {
    background: var(--surface2);
    color: var(--text);
    font-weight: 800;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.admin-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.admin-table .badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}

.admin-table .badge.admin {
    background: rgba(239, 68, 68, 0.14);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #ef4444;
}

.admin-table .badge.member {
    background: rgba(180, 180, 180, 0.1);
    border: 1px solid var(--border);
    color: var(--text);
}

/* Chat Shell Layout */
.chat-shell {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 18px;
}

.chat-users, .chat-box {
    background: linear-gradient(145deg, rgba(21,21,21,.92), rgba(11,11,11,.94)) !important;
}

.chat-log {
    height: 380px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px !important;
    background: radial-gradient(circle at 50% 0, rgba(200,200,200,.09), transparent 35%), rgba(6,6,6,.42) !important;
    border-radius: var(--r-md);
    border: 1px solid rgba(168, 168, 168, 0.12);
}

.msg {
    max-width: 80%;
    padding: 11px 13px;
    border-radius: var(--r-md);
    background: rgba(40, 40, 40, 0.8);
    border: 1px solid rgba(168, 168, 168, 0.12);
    align-self: flex-start;
    box-shadow: 0 12px 34px rgba(0,0,0,.18);
    font-size: 14px;
}

.msg.me {
    align-self: flex-end;
    background: linear-gradient(135deg, rgba(180,180,180,.25), rgba(113,113,113,.15));
    border-color: rgba(200, 200, 200, 0.24) !important;
}

.msg small {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 10px;
    text-align: right;
}

.activity-list {
    display: grid;
    gap: 10px;
}

.activity-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border-radius: var(--r-md);
    background: rgba(23,23,23,.55);
    border: 1px solid rgba(168, 168, 168,.13);
}

.activity-main {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.tick-anim {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    background: rgba(34,197,94,.16);
    border: 2px solid rgba(34,197,94,.95);
    color: #22c55e;
    flex: 0 0 auto;
    box-shadow: 0 0 18px rgba(34,197,94,.28);
}

.tick-anim:before {
    content: "✓";
    font-weight: 1000;
    font-size: 14px;
}

.activity-title {
    font-weight: 800;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-sub {
    font-size: 11px;
    color: var(--muted);
}

.status-pill {
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 99px;
    background: rgba(200,200,200,.10);
    border: 1px solid rgba(200,200,200,.18);
    font-weight: 900;
}

/* Avatar upload area styling */
.avatar-upload-zone {
    width: 100%;
    height: 120px;
    border: 2px dashed rgba(200, 200, 200, 0.3);
    border-radius: var(--r-md);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: relative;
    background: var(--bg2);
    overflow: hidden;
    transition: all 0.25s ease;
}

.avatar-upload-zone:hover {
    border-color: var(--accent);
    box-shadow: 0 0 12px rgba(180, 180, 180, 0.15);
}

.avatar-upload-zone input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}

.upload-placeholder {
    text-align: center;
    color: var(--muted);
    font-size: 13.5px;
    pointer-events: none;
}

.upload-placeholder span {
    font-size: 28px;
    display: block;
    margin-bottom: 4px;
}

#avatar-preview-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    z-index: 2;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

/* Modern Modals */
.modal-bg {
    position: fixed;
    inset: 0;
    background: rgba(4, 4, 4, 0.82);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    display: flex;
    transition: opacity 0.25s ease, visibility 0.25s;
}

.modal-bg.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modal {
    background: linear-gradient(145deg, #0d0d0d, #060606);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--r-xl) !important;
    width: min(520px, calc(100vw - 32px));
    max-width: 520px;
    max-height: calc(100vh - 48px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.8), 0 0 40px rgba(255, 215, 0, 0.03);
    transform: scale(0.92) translateY(10px);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.modal-bg.open .modal {
    transform: scale(1) translateY(0);
}

.modal-head {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(27,27,27,.98);
}

.modal-head h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 900;
}

.modal-close {
    background: none;
    border: 0;
    color: var(--muted);
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
}

.modal-body {
    padding: 22px;
    overflow-y: auto;
    flex: 1;
}

.bank-note {
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--muted);
    margin-bottom: 14px;
}

.qr-box {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 18px;
    align-items: center;
}

.qr-box img {
    width: 100%;
    border-radius: var(--r-md);
    background: #ffffff;
    padding: 8px;
    object-fit: contain;
}

.kv {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--r-sm);
    margin-bottom: 8px;
    font-size: 13px;
    align-items: center;
}

.kv b {
    color: var(--muted);
    font-weight: 700;
}

.kv span {
    font-weight: 800;
    word-break: break-all;
}

.copy-btn {
    background: var(--accent);
    color: #ffffff;
    border: 0;
    padding: 4px 10px;
    border-radius: var(--r-sm);
    font-weight: 700;
    cursor: pointer;
    font-size: 11px;
}

.copy-btn:hover {
    filter: brightness(1.15);
}

.bank-action-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 14px;
}

.bank-action-row button {
    height: 56px;
    min-height: 56px;
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 25;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .side {
        transform: translateX(-105%);
        width: min(290px, 86vw) !important;
        max-width: 86vw !important;
        min-width: 0 !important;
        height: 100% !important;
        height: 100vh !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior-y: contain !important;
        padding: 14px 12px 75px 12px !important;
        box-sizing: border-box !important;
    }
    
    .side .sidebar-header {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-bottom: 12px !important;
        margin-bottom: 8px !important;
    }
    
    .side .brand {
        flex: 1 !important;
        min-width: 0 !important;
        padding: 0 !important;
        border-bottom: none !important;
        margin-bottom: 0 !important;
    }
    
    .side .brand-info {
        flex: 1 !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }
    
    .side .brand-name {
        max-width: 100% !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    .side .brand-tag,
    .side #sidebar-user-tag {
        max-width: 100% !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    .side .nav-title {
        opacity: 1 !important;
    }

    .side .nav a span,
    .side .nav button span {
        opacity: 1 !important;
        width: auto !important;
    }

    .side .balance-card {
        display: block !important;
        padding: 10px 14px !important;
        margin-bottom: 12px !important;
    }

    .side .nav a,
    .side .nav button {
        padding: 9px 12px !important;
        font-size: 13.5px !important;
    }
    
    .app.menu-open .side {
        transform: translateX(0);
        box-shadow: 20px 0 60px rgba(0,0,0,.65);
        z-index: 1000 !important;
    }
    
    .app.menu-open .sidebar-overlay {
        opacity: 1;
        pointer-events: auto;
        z-index: 999 !important;
    }
    
    .sidebar-close-btn {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: static !important;
        flex-shrink: 0 !important;
        width: 32px !important;
        height: 32px !important;
        border-radius: 8px !important;
        background: rgba(255, 255, 255, 0.08) !important;
        border: 1px solid rgba(255, 255, 255, 0.16) !important;
        color: #ffffff !important;
        cursor: pointer !important;
        transition: all 0.2s ease !important;
    }
    
    .sidebar-close-btn:hover {
        background: rgba(255, 255, 255, 0.18) !important;
        color: #ffffff !important;
        transform: scale(1.05);
    }

    .sidebar-close-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .main {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100vw !important;
        min-width: 0 !important;
        overflow-x: hidden !important;
    }
    
    /* Explicit Admin App mobile layout */
    .admin-app .side {
        position: fixed !important;
        top: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        width: min(290px, 86vw) !important;
        max-width: 86vw !important;
        min-width: 0 !important;
        height: 100% !important;
        height: 100vh !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        transform: translateX(-105%) !important;
        z-index: 1001 !important;
        padding: 14px 12px 75px 12px !important;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        box-shadow: none !important;
        background: var(--bg2) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior-y: contain !important;
        box-sizing: border-box !important;
    }

    .admin-app.menu-open .side {
        transform: translateX(0) !important;
        box-shadow: 20px 0 60px rgba(0, 0, 0, 0.7) !important;
    }

    .admin-app .sidebar-close-btn {
        display: flex !important;
        position: static !important;
        flex-shrink: 0 !important;
    }

    .admin-app.menu-open .sidebar-overlay {
        opacity: 1 !important;
        pointer-events: auto !important;
        display: block !important;
    }

    .admin-app .main {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100vw !important;
        min-width: 0 !important;
        overflow-x: hidden !important;
    }

    .admin-app .content {
        margin-top: 64px !important;
        padding: 12px 10px 60px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    
    .hamb {
        display: flex;
    }

    .topbar {
        position: fixed !important;
        top: 0;
        left: 0;
        right: 0;
        width: 100% !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
        padding: 0 10px !important;
        gap: 6px !important;
        z-index: 30;
        overflow: visible !important;
    }

    .topbar-logo {
        display: none !important;
    }

    .topbar-left {
        max-width: none;
        flex: 1;
        min-width: 0;
        gap: 6px;
        display: flex;
        align-items: center;
    }

    .topbar-search {
        flex: 1;
        min-width: 50px;
        max-width: 125px;
        height: 36px;
        padding: 0 8px;
        border-radius: 8px;
    }

    .topbar-search input {
        font-size: 11.5px;
    }

    .topbar-right {
        gap: 6px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
    }

    /* Nút Hướng Dẫn dạng tròn nhỏ gọn trên Mobile (Khớp chuẩn 100% Ảnh 4) */
    .topbar-guide-btn {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        padding: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 8px !important;
        flex-shrink: 0 !important;
        background: rgba(255, 255, 255, 0.05) !important;
        border: 1px solid rgba(255, 255, 255, 0.12) !important;
    }

    .topbar-guide-btn span {
        display: none !important;
    }

    .topbar-guide-btn svg {
        width: 18px !important;
        height: 18px !important;
        margin: 0 !important;
    }

    .topbar-lang-pill {
        display: none !important;
    }

    .topbar-lang-dropdown .lang-select-btn {
        padding: 6px 8px !important;
        gap: 4px !important;
        font-size: 11.5px !important;
    }

    /* Ẩn nút số dư dài ngoằng trên Topbar mobile để không bị đè nút khác (Khớp Ảnh 4) */
    .topbar-balance-pill {
        display: none !important;
    }

    .header-user-area .user-chip {
        max-width: 115px;
        padding: 3px 6px;
        font-size: 12px;
    }

    .header-user-area .user-chip span {
        max-width: 55px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .topbar-user-pill {
        padding: 3px 6px 3px 4px !important;
        gap: 5px !important;
        max-width: 120px !important;
        flex-shrink: 0 !important;
    }

    .topbar-username {
        max-width: 55px !important;
        font-size: 11.5px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    .content {
        margin-top: 64px !important;
        padding: 12px 12px 60px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    .hero-contact {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .config-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .admin-modules-grid {
        grid-template-columns: 1fr !important;
        gap: 18px;
    }

    .chat-shell {
        grid-template-columns: 1fr;
    }

    /* Responsive grids in Admin Panel */
    .admin-grid-layout {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    .admin-tab-content div[style*="display: flex"][style*="gap:"],
    .admin-tab-content div[style*="display:flex"][style*="gap:"] {
        flex-wrap: wrap !important;
    }
    #adm-products-list {
        flex-wrap: nowrap !important;
        flex-direction: column !important;
    }
    .topbar h1 {
        font-size: 14px !important;
        white-space: nowrap !important;
    }
}

@media (max-width: 640px) {
    body { font-size: 14.5px; }
    .content { padding: 12px 10px 88px !important; }
    .grid { grid-template-columns: 1fr; gap: 14px; width: 100%; box-sizing: border-box; }
    .prod-img { height: 150px; }
    .qr-box { grid-template-columns: 1fr; justify-items: center; }
    .qr-box img { max-width: 200px; }
    .bank-action-row { grid-template-columns: 1fr; }
    .search-filter-bar { flex-direction: column; align-items: stretch; }
    .flash-sale-inner { flex-wrap: wrap; gap: 8px; justify-content: center; }
}

@media (max-width: 480px) {
    .topbar {
        padding: 0 8px !important;
        gap: 6px !important;
    }
    .topbar h1, .topbar-admin-title {
        font-size: 13.5px !important;
        font-weight: 800 !important;
        max-width: 135px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }
    .topbar-search {
        display: none !important;
    }
    .topbar-lang-pill {
        display: none !important;
    }
    .topbar-username {
        display: none !important;
    }
    .topbar-user-pill {
        max-width: none !important;
        padding: 3px 6px !important;
        gap: 6px !important;
        flex-shrink: 0 !important;
    }
    .topbar-user-avatar {
        width: 26px !important;
        height: 26px !important;
        font-size: 11px !important;
    }
    .topbar-logout-btn {
        width: 24px !important;
        height: 24px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .topbar-balance-pill {
        max-width: 88px !important;
        font-size: 11.5px !important;
        padding: 3px 6px !important;
    }
}

@media (max-width: 576px) {
    .pad {
        padding: 12px !important;
    }
    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
}

@media (max-width: 385px) {
    .topbar {
        padding: 0 6px !important;
        gap: 4px !important;
    }
    .topbar h1, .topbar-admin-title {
        font-size: 12px !important;
        max-width: 105px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }
    .topbar-user-pill {
        max-width: 68px !important;
        padding: 2px 5px !important;
        gap: 4px !important;
    }
    .topbar-username {
        display: none !important;
    }
    .topbar-balance-pill {
        max-width: 78px !important;
        font-size: 10.5px !important;
        padding: 2px 5px !important;
    }
    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
    .admin-stats-grid .card.pad {
        padding: 10px 6px !important;
    }
    .admin-stats-grid .card.pad div:first-child {
        font-size: 15px !important;
    }
    .admin-stats-grid .card.pad div:nth-child(2) {
        font-size: 10px !important;
    }
}

/* Device Detection Integration (responsive-detector.js) */
html.screen-xs .topbar h1,
html.screen-xs .topbar-admin-title {
    font-size: 12px !important;
    max-width: 105px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

html.screen-xs .topbar-username {
    display: none !important;
}

html.screen-xs .topbar-user-pill {
    max-width: 68px !important;
    padding: 2px 5px !important;
    gap: 4px !important;
}

html.screen-xs .topbar-balance-pill {
    max-width: 78px !important;
    font-size: 10.5px !important;
    padding: 2px 5px !important;
}

html.screen-xs .admin-stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
}

html.screen-xs .admin-stats-grid .card.pad {
    padding: 10px 6px !important;
}

@media (max-width: 340px) {
    .admin-stats-grid {
        grid-template-columns: 1fr !important;
    }
}

/* =========================================================
   TOAST NOTIFICATION SYSTEM
   ========================================================= */
#toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    max-width: 360px;
    width: calc(100vw - 48px);
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--r-md);
    background: rgba(20, 20, 24, 0.98);
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.04);
    pointer-events: all;
    animation: toastIn .35s cubic-bezier(.2,.8,.2,1) forwards;
    position: relative;
    overflow: hidden;
}

.toast.removing {
    animation: toastOut .3s ease forwards;
}

@keyframes toastIn {
    from { transform: translateX(120%); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
}

@keyframes toastOut {
    from { transform: translateX(0); opacity: 1; max-height: 100px; }
    to   { transform: translateX(120%); opacity: 0; max-height: 0; padding: 0; margin: 0; }
}

.toast::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    border-radius: 3px 0 0 3px;
}

.toast.success::before { background: var(--green); }
.toast.error::before   { background: var(--red); }
.toast.warning::before { background: var(--gold); }
.toast.info::before    { background: var(--accent); }

.toast-icon {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 1px;
}

.toast-body { flex: 1; min-width: 0; }

.toast-msg {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: 0;
    color: var(--muted);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 0;
    flex-shrink: 0;
    transition: color .15s;
}

.toast-close:hover { color: var(--text); }

.toast-progress {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: rgba(255,255,255,.08);
}

.toast-progress-bar {
    height: 100%;
    width: 100%;
    border-radius: 2px;
    transition: width linear;
}

.toast.success .toast-progress-bar { background: var(--green); }
.toast.error   .toast-progress-bar { background: var(--red); }
.toast.warning .toast-progress-bar { background: var(--gold); }
.toast.info    .toast-progress-bar { background: var(--accent); }

/* =========================================================
   SOCIAL PROOF POPUP
   ========================================================= */
.social-proof-popup {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 99998;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(18, 19, 26, 0.98);
    border: 1px solid rgba(200,200,200,.18);
    border-radius: var(--r-lg);
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
    max-width: 320px;
    animation: spSlideUp .4s cubic-bezier(.2,.8,.2,1);
}

.social-proof-popup.hiding {
    animation: spSlideDown .3s ease forwards;
}

@keyframes spSlideUp {
    from { transform: translateY(80px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

@keyframes spSlideDown {
    from { transform: translateY(0); opacity: 1; }
    to   { transform: translateY(80px); opacity: 0; }
}

.sp-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent3));
    display: grid;
    place-items: center;
    font-size: 18px;
    flex-shrink: 0;
    border: 2px solid rgba(255,255,255,.12);
}

.sp-content { flex: 1; min-width: 0; }

.sp-name {
    font-weight: 800;
    font-size: 13px;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sp-action {
    font-size: 12px;
    color: var(--muted);
    margin: 2px 0;
}

.sp-action strong { color: var(--gold); }

.sp-time {
    font-size: 11px;
    color: var(--accent3);
    font-weight: 600;
}

.sp-close {
    background: none;
    border: 0;
    color: var(--muted);
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
    flex-shrink: 0;
}

/* =========================================================
   FLASH SALE BANNER
   ========================================================= */
.flash-sale-banner {
    background: linear-gradient(135deg, #1a0a00, #2d1500, #1a0a00);
    border: 1px solid rgba(255, 165, 0, 0.35);
    border-radius: var(--r-lg);
    padding: 16px 22px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.flash-sale-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,165,0,.06) 50%, transparent 100%);
    animation: flashSweep 2.5s ease-in-out infinite;
}

@keyframes flashSweep {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.flash-sale-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.flash-icon {
    font-size: 22px;
    animation: flashPulse 1s ease-in-out infinite;
}

@keyframes flashPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.7; transform: scale(1.15); }
}

.flash-label {
    font-size: 17px;
    font-weight: 900;
    color: var(--gold);
    letter-spacing: 1px;
}

.flash-sub {
    font-size: 13px;
    color: rgba(255,255,255,.65);
    font-weight: 600;
}

.countdown-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.countdown-unit {
    background: rgba(0,0,0,.5);
    border: 1px solid rgba(255,165,0,.3);
    border-radius: var(--r-sm);
    padding: 6px 10px;
    text-align: center;
    min-width: 50px;
}

.countdown-unit span {
    display: block;
    font-size: 22px;
    font-weight: 900;
    color: var(--gold);
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.countdown-unit small {
    display: block;
    font-size: 9px;
    color: rgba(255,255,255,.5);
    font-weight: 700;
    letter-spacing: .5px;
    margin-top: 2px;
}

.cd-sep {
    font-size: 22px;
    font-weight: 900;
    color: var(--gold);
    animation: flashPulse 1s ease-in-out infinite;
}

.flash-badge {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    padding: 6px 12px;
    border-radius: 99px;
    letter-spacing: .5px;
    box-shadow: 0 0 16px rgba(239,68,68,.35);
    animation: flashPulse 1.5s ease-in-out infinite;
    margin-left: auto;
}

/* Sản phẩm đang sale */
.product-card.on-sale .product-img::after {
    content: "SALE -30%";
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    padding: 4px 8px;
    border-radius: 4px;
    letter-spacing: .5px;
    box-shadow: 0 4px 12px rgba(239,68,68,.4);
}

.price-original {
    font-size: 14px;
    color: var(--muted);
    text-decoration: line-through;
    margin-bottom: 2px;
    font-weight: 600;
}

/* =========================================================
   SEARCH & FILTER BAR
   ========================================================= */
.search-filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.search-input-wrap {
    position: relative;
    flex: 1;
    min-width: 220px;
}

.search-input-wrap .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    pointer-events: none;
    z-index: 2;
}

.search-input-wrap input {
    width: 100%;
    padding: 11px 14px 11px 42px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

.search-input-wrap input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(160,160,160,.15);
}

.filter-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 9px 18px;
    background: #14171f;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s;
    font-family: inherit;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.filter-btn:hover {
    background: #1c202a;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.25);
}

.filter-btn.active {
    background: #252e46 !important;
    border-color: rgba(99, 102, 241, 0.7) !important;
    color: #ffffff !important;
    box-shadow: 0 0 14px rgba(99, 102, 241, 0.25) !important;
}

.sort-combo {
    appearance: none;
    -webkit-appearance: none;
    background: var(--surface);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23afafaf' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 18px;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    padding: 10px 36px 10px 14px;
    cursor: pointer;
    outline: none;
    transition: border-color .2s;
    white-space: nowrap;
}

.sort-combo:focus {
    border-color: var(--accent);
}

.sort-combo option {
    background: #191919;
    color: var(--text);
}

/* Countdown urgency pulse khi < 1 giờ */
.countdown-unit.urgent span {
    color: var(--red) !important;
    animation: flashPulse .6s ease-in-out infinite;
}


/* =========================================================
   ADDITIONAL ADMIN PANEL STYLING (Multi-tab, forms, chat)
   ========================================================= */
.admin-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 22px;
    padding-bottom: 8px;
    flex-wrap: wrap;
}

.admin-tab-btn {
    background: transparent;
    border: 0;
    color: var(--muted);
    padding: 10px 16px;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    border-radius: var(--r-md);
    transition: all .2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.admin-tab-btn:hover {
    background: var(--surface);
    color: #ffffff;
}

.admin-tab-btn.active {
    background: linear-gradient(135deg, rgba(160,160,160,.22), rgba(100,100,100,.15));
    color: #ffffff;
    box-shadow: inset 0 -2px 0 var(--accent), inset 0 0 0 1px rgba(180,180,180,.15);
}

.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
}

/* Upload zone */
.upload-zone-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.upload-zone {
    border: 2px dashed var(--border);
    border-radius: var(--r-md);
    padding: 18px;
    text-align: center;
    background: var(--bg2);
    cursor: pointer;
    transition: border-color .2s;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}

.upload-zone:hover {
    border-color: var(--accent);
}

.upload-zone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.upload-zone .icon {
    font-size: 24px;
    margin-bottom: 6px;
}

.upload-zone .desc {
    font-size: 12px;
    color: var(--muted);
}

.upload-preview-img {
    max-height: 80px;
    max-width: 100%;
    border-radius: 4px;
    object-fit: cover;
    margin-top: 6px;
    display: none;
}

/* Admin Chat support UI */
.admin-chat-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 20px;
    height: 550px;
}

.admin-chat-inbox {
    border-right: 1px solid var(--border);
    padding-right: 16px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    gap: 10px;
}

.admin-chat-user-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--r-md);
    background: var(--surface);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all .2s;
}

.admin-chat-user-row:hover, .admin-chat-user-row.active {
    background: var(--surface2);
    border-color: var(--accent);
}

.admin-chat-user-row .avatar {
    width: 40px;
    height: 40px;
    font-size: 16px;
}

.admin-chat-user-info {
    flex-grow: 1;
    min-width: 0;
}

.admin-chat-username {
    font-weight: 800;
    font-size: 14.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-chat-lastmsg {
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-chat-unread {
    background: var(--red);
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 99px;
    font-weight: 900;
}

.admin-chat-area {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.admin-chat-header {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    font-weight: 800;
    font-size: 16px;
}

.admin-chat-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(0,0,0,0.1);
}

.admin-chat-input-row {
    padding: 14px 0 0;
    display: flex;
    gap: 10px;
}

/* Horizontal scrollable admin tab navigation (Đã ẩn theo yêu cầu, chỉ dùng sidebar) */
.admin-tabs, .admin-tab-nav {
    display: none !important;
}
.admin-tabs::-webkit-scrollbar, .admin-tab-nav::-webkit-scrollbar {
    height: 4px;
}
.admin-tabs::-webkit-scrollbar-thumb, .admin-tab-nav::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.18);
    border-radius: 4px;
}
.admin-tab-btn {
    flex-shrink: 0;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    color: var(--text);
    cursor: pointer;
    transition: all .2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.admin-tab-btn:hover, .admin-tab-btn.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.adm-msg-item {
    transition: all 0.15s ease;
}
.adm-msg-item.msg-admin {
    align-self: flex-end;
}
.adm-msg-item.msg-client {
    align-self: flex-start;
}

/* =========================================================
   DEPOSIT SYSTEM STYLING
   ========================================================= */
.deposit-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 22px;
    margin-bottom: 30px;
}

@media (max-width: 992px) {
    .deposit-grid {
        grid-template-columns: 1fr;
    }
}

.deposit-info-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.deposit-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
}

.deposit-info-label {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.deposit-info-value {
    color: #ffffff;
    font-weight: 800;
    font-size: 14.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.copy-badge-btn {
    background: var(--accent);
    color: #ffffff;
    border: 0;
    border-radius: 4px;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    transition: all .2s;
    box-shadow: var(--theme-glow);
}

.copy-badge-btn:hover {
    box-shadow: 0 4px 12px var(--theme-bg-glow);
    filter: brightness(1.1);
}

.payment-methods-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.payment-method-card {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 14px 16px;
    cursor: pointer;
    transition: all .2s ease;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.payment-method-card:hover {
    border-color: var(--theme-border);
}

.payment-method-card.active {
    border-color: var(--theme-primary);
    background: var(--theme-bg-glow);
    box-shadow: var(--theme-glow);
}

.payment-method-title {
    font-weight: 800;
    font-size: 13.5px;
    color: #ffffff;
}

.payment-method-desc {
    font-size: 11px;
    color: var(--muted);
}

.deposit-bill-preview {
    padding: 14px 16px;
    background: rgba(255, 215, 0, 0.02);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: var(--r-md);
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
}

.deposit-bill-preview span {
    color: var(--gold);
    font-weight: 900;
    font-size: 15px;
}

.deposit-custom-input-wrap {
    display: flex;
    align-items: center;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    overflow: hidden;
    padding: 0 16px;
    transition: border-color .2s;
}

.deposit-custom-input-wrap:focus-within {
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 2px var(--theme-bg-glow);
}

.deposit-custom-input-wrap input {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
    padding: 14px 0 !important;
    flex: 1;
    font-weight: 800;
    color: #ffffff;
    -webkit-appearance: none !important;
    -moz-appearance: textfield !important;
    appearance: none !important;
}

/* Ẩn hoàn toàn mũi tên spinner và spin buttons của input number */
.deposit-custom-input-wrap input::-webkit-outer-spin-button,
.deposit-custom-input-wrap input::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    appearance: none !important;
    margin: 0 !important;
    display: none !important;
}

.deposit-custom-input-wrap .suffix {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.deposit-note-box {
    padding: 14px 16px;
    background: var(--theme-bg-glow);
    border: 1px dashed var(--theme-border);
    border-radius: var(--r-md);
    color: var(--text);
    font-size: 12.5px;
    line-height: 1.5;
}

.qr-result-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.qr-result-image-wrapper {
    background: #ffffff;
    padding: 12px;
    border-radius: var(--r-md);
    display: inline-flex;
}

.qr-result-image-wrapper img {
    max-width: 220px;
    display: block;
}

/* ===== ANNOUNCEMENT BAR ===== */
.announcement-bar {
    width: 100%;
    background: transparent;
    border-bottom: none;
    padding: 6px 0;
    overflow: hidden;
    position: relative;
    z-index: 200;
}
.announcement-track {
    display: flex;
    animation: announcementScroll 25s linear infinite;
    white-space: nowrap;
}
.announcement-text {
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    padding-right: 60px;
}
@keyframes announcementScroll {
    0% { transform: translateX(100vw); }
    100% { transform: translateX(-100%); }
}

/* ===== BANNER CAROUSEL ===== */
.banner-carousel {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
}
.banner-track {
    display: flex;
    transition: transform 0.5s ease;
}
.banner-slide {
    min-width: 100%;
    position: relative;
    cursor: pointer;
}
.banner-slide img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}
.banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    padding: 20px 16px 12px;
}
.banner-overlay h3 {
    color: #fff;
    font-size: 16px;
    margin: 0 0 4px;
}
.banner-overlay p {
    color: rgba(255,255,255,0.8);
    font-size: 12px;
    margin: 0;
}
.banner-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 8px 0;
    background: var(--surface);
}
.banner-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
.banner-dot.active {
    background: var(--gold);
    transform: scale(1.3);
}

/* ===== NOTIFICATION BELL ===== */
.notif-bell-container {
    position: relative;
}
.notif-bell-btn {
    background: none;
    border: none;
    color: var(--muted);
    font-size: 20px;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
}
.notif-bell-btn:hover {
    background: rgba(255,255,255,0.08);
    color: var(--gold);
}
.notif-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #e53935;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: none;
    align-items: center;
    justify-content: center;
    border: 2px solid #181818;
}
.notif-badge.visible {
    display: flex;
}
.notif-dropdown {
    position: absolute;
    right: 0;
    top: 44px;
    width: 320px;
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.55);
    z-index: 500;
    overflow: hidden;
    display: none;
}
.notif-dropdown.open {
    display: block;
}
.notif-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid #333;
    font-size: 13px;
    font-weight: 700;
}
.notif-dropdown-list {
    max-height: 300px;
    overflow-y: auto;
}
.notif-item {
    display: flex;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    cursor: pointer;
    transition: background 0.15s;
}
.notif-item:hover {
    background: rgba(255,255,255,0.05);
}
.notif-item.unread {
    background: rgba(255,215,0,0.04);
    border-left: 3px solid var(--gold);
}
.notif-item-icon {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}
.notif-item-body {
    flex: 1;
    overflow: hidden;
}
.notif-item-title {
    font-size: 13px;
    font-weight: 700;
    color: #eee;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.notif-item-text {
    font-size: 11.5px;
    color: #999;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.notif-item-time {
    font-size: 10.5px;
    color: #666;
    margin-top: 3px;
}

/* ===== POPUP NOTIFICATION MODAL (ADMIN ENTRANCE ANNOUNCEMENT) ===== */
.popup-notification-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    inset: 0;
    background: rgba(4, 7, 18, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999999 !important;
    padding: 16px 12px;
    box-sizing: border-box;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.popup-notification-modal.open {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}
@keyframes borderBeamRotate {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}
.popup-notification-modal .admin-notice-card {
    background: transparent;
    border: none;
    border-radius: 26px;
    width: 100%;
    max-width: 480px;
    margin: auto;
    padding: 26px 20px 20px 20px;
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.95), 0 0 50px rgba(110, 86, 207, 0.35);
    position: relative;
    text-align: center;
    transform: scale(0.94) translateY(12px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-sizing: border-box;
    overflow: hidden;
    max-height: 94vh;
    display: flex;
    flex-direction: column;
}
.popup-notification-modal.open .admin-notice-card {
    transform: scale(1) translateY(0);
}

/* Animated rotating glowing neon border beam */
.popup-notification-modal .admin-notice-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 250%;
    height: 250%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        transparent 40deg,
        rgba(110, 130, 255, 0.15) 60deg,
        #6366f1 90deg,
        #a855f7 125deg,
        #ec4899 145deg,
        #38bdf8 175deg,
        rgba(56, 189, 248, 0.2) 200deg,
        transparent 230deg,
        transparent 360deg
    );
    transform: translate(-50%, -50%) rotate(0deg);
    animation: borderBeamRotate 4s linear infinite;
    z-index: 1;
    pointer-events: none;
}

/* Dark inner mask creating 2.5px glowing rim */
.popup-notification-modal .admin-notice-card::after {
    content: '';
    position: absolute;
    inset: 2.5px;
    background: radial-gradient(135% 135% at 50% 0%, #151a2e 0%, #0d101b 100%);
    border-radius: 23.5px;
    z-index: 2;
    pointer-events: none;
}

/* Ensure all interactive modal elements stay above the border layers */
.popup-notification-modal .admin-notice-card > * {
    position: relative;
    z-index: 3;
}

/* Close Button Top Right */
.popup-notification-modal .admin-notice-card .admin-notice-close,
.admin-notice-close {
    position: absolute !important;
    top: 16px !important;
    right: 16px !important;
    left: auto !important;
    bottom: auto !important;
    width: 34px !important;
    height: 34px !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #cbd5e1 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 20px !important;
    line-height: 1 !important;
    transition: all 0.2s ease !important;
    z-index: 9999 !important;
}
.popup-notification-modal .admin-notice-card .admin-notice-close:hover,
.admin-notice-close:hover {
    background: rgba(239, 68, 68, 0.85) !important;
    color: #ffffff !important;
    border-color: #ef4444 !important;
    transform: scale(1.08) !important;
}

/* Bell Squircle Icon */
.admin-notice-badge {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    background: linear-gradient(135deg, #6c82ff 0%, #8768ff 100%);
    margin: 4px auto 14px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(110, 130, 255, 0.42);
    position: relative;
}
.admin-notice-badge svg {
    width: 30px;
    height: 30px;
    color: #ffffff;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.admin-notice-badge-dot {
    position: absolute;
    top: 14px;
    right: 15px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
}

/* Title & Subtitle */
.admin-notice-title {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 4px 0;
    letter-spacing: -0.3px;
    line-height: 1.25;
}
.admin-notice-subtitle {
    font-size: 12px;
    font-weight: 700;
    color: #72809e;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    margin: 0 0 16px 0;
}

/* Inner List Container */
.admin-notice-body {
    background: rgba(14, 18, 30, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    padding: 6px 12px;
    text-align: left;
    margin-bottom: 18px;
    box-sizing: border-box;
    max-height: 48vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Row Item */
.admin-notice-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 13.5px;
    color: #cbd5e1;
    line-height: 1.4;
    transition: background 0.15s ease;
}
.admin-notice-row:last-child {
    border-bottom: none;
}
.admin-notice-row:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Row Icon Box */
.admin-notice-row-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8da2cb;
    box-sizing: border-box;
}
.admin-notice-row-icon svg {
    width: 16px;
    height: 16px;
    stroke-width: 2.2;
}

/* Row Text & Links */
.admin-notice-row-content {
    flex: 1;
    min-width: 0;
    word-break: break-word;
}
.admin-notice-row-content strong {
    color: #e2e8f0;
    font-weight: 700;
}
.admin-notice-link {
    color: #6e88ff;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 500;
    transition: color 0.15s ease;
}
.admin-notice-link:hover {
    color: #9ab0ff;
}
.admin-notice-highlight {
    color: #6e88ff;
    font-weight: 700;
}

/* Warning / Policy Banner in Popup */
.admin-notice-warning-banner {
    margin-top: 14px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.28);
    border-radius: 12px;
    padding: 10px 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    text-align: left;
    box-shadow: inset 0 0 14px rgba(239, 68, 68, 0.06);
}
.admin-notice-warning-icon {
    font-size: 18px;
    line-height: 1.2;
    flex-shrink: 0;
}
.admin-notice-warning-body {
    flex: 1;
    min-width: 0;
}
.admin-notice-warning-title {
    font-size: 11px;
    font-weight: 800;
    color: #f87171;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 3px;
}
.admin-notice-warning-desc {
    font-size: 11.5px;
    line-height: 1.45;
    color: #e2e8f0;
    word-break: break-word;
}

/* Card highlight animation when jumped to from sidebar */
@keyframes adminConfigHighlight {
    0% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.6); }
    50% { box-shadow: 0 0 35px 6px rgba(168, 85, 247, 0.6); }
    100% { box-shadow: none; }
}
.highlight-pulse {
    animation: adminConfigHighlight 2s ease-out;
}

/* Footer Action Buttons */
.admin-notice-footer {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 12px;
}
.admin-notice-btn-snooze {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.11);
    color: #c4cfdf;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 600;
    padding: 12px 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    font-family: inherit;
}
.admin-notice-btn-snooze:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}
.admin-notice-btn-snooze svg {
    width: 16px;
    height: 16px;
    color: #8fa3cc;
}
.admin-notice-btn-understand {
    background: linear-gradient(135deg, #6c80ff 0%, #7d65ff 100%);
    border: none;
    color: #ffffff;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 12px 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 18px rgba(112, 130, 255, 0.42);
    transition: all 0.2s ease;
    font-family: inherit;
    text-transform: uppercase;
}
.admin-notice-btn-understand:hover {
    box-shadow: 0 6px 24px rgba(112, 130, 255, 0.58);
    transform: translateY(-1px);
}
.admin-notice-btn-understand svg {
    width: 17px;
    height: 17px;
    stroke-width: 2.6;
}

@media (max-width: 480px) {
    .popup-notification-modal {
        padding: 12px 10px;
    }
    .popup-notification-modal .admin-notice-card {
        padding: 20px 14px 16px 14px;
        border-radius: 20px;
        max-width: 100%;
        max-height: 96vh;
    }
    .admin-notice-badge {
        width: 50px;
        height: 50px;
        border-radius: 16px;
        margin-bottom: 10px;
    }
    .admin-notice-badge svg {
        width: 24px;
        height: 24px;
    }
    .admin-notice-title {
        font-size: 19px;
        margin-bottom: 2px;
    }
    .admin-notice-subtitle {
        font-size: 11px;
        margin-bottom: 10px;
    }
    .admin-notice-body {
        padding: 4px 8px;
        margin-bottom: 12px;
        max-height: 46vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .admin-notice-row {
        font-size: 12px;
        padding: 8px 2px;
        gap: 8px;
    }
    .admin-notice-row-icon {
        width: 26px;
        height: 26px;
        min-width: 26px;
    }
    .admin-notice-row-icon svg {
        width: 13px;
        height: 13px;
    }
    .admin-notice-warning-banner {
        padding: 8px 10px;
        margin: 6px 0;
        gap: 8px;
    }
    .admin-notice-warning-desc {
        font-size: 11px;
        line-height: 1.4;
    }
    .admin-notice-footer {
        grid-template-columns: 1fr 1.2fr;
        gap: 8px;
    }
    .admin-notice-btn-snooze, .admin-notice-btn-understand {
        padding: 10px 10px;
        font-size: 12px;
        min-height: 38px;
    }
}

/* ===== MAINTENANCE OVERLAY ===== */
.maintenance-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 50% 30%, rgba(245, 158, 11, 0.12) 0%, rgba(15, 23, 42, 0.96) 65%, rgba(5, 8, 16, 0.99) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.maintenance-box {
    text-align: center;
    max-width: 500px;
    width: 100%;
    padding: 38px 28px;
    border-radius: 20px;
    background: rgba(18, 24, 38, 0.88);
    border: 1px solid rgba(245, 158, 11, 0.35);
    box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.85), 0 0 35px rgba(245, 158, 11, 0.2);
    box-sizing: border-box;
    animation: maintFadeIn 0.35s ease-out;
}

@keyframes maintFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.maintenance-icon-wrap {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 16px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.maintenance-icon {
    font-size: 52px;
    line-height: 1;
    display: inline-block;
    animation: spinGear 6s linear infinite;
    filter: drop-shadow(0 0 14px rgba(245, 158, 11, 0.6));
}

@keyframes spinGear {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.maintenance-glow-ring {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px dashed rgba(245, 158, 11, 0.45);
    animation: spinReverse 12s linear infinite;
}

@keyframes spinReverse {
    0% { transform: rotate(360deg); }
    100% { transform: rotate(0deg); }
}

.maintenance-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.35);
    padding: 4px 14px;
    border-radius: 999px;
    margin-bottom: 12px;
}

.maintenance-box h2 {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 14px 0;
    letter-spacing: 0.3px;
}

.maintenance-message {
    font-size: 14.5px;
    color: #e2e8f0;
    line-height: 1.65;
    background: rgba(10, 14, 23, 0.65);
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 240px;
    overflow-y: auto;
    margin-bottom: 22px;
}

.maintenance-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.btn-maint-reload {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    font-weight: 700;
    font-size: 13.5px;
    padding: 10px 26px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
    transition: all 0.2s ease;
}

.btn-maint-reload:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

.maintenance-footer-hint {
    margin-top: 16px;
    font-size: 12px;
    color: #94a3b8;
}

.maint-admin-link {
    color: #f59e0b;
    text-decoration: underline;
    margin-left: 4px;
    cursor: pointer;
}

/* =========================================================
   EVENT / HOLIDAY SALE BANNER (BANNER DỊP LỄ & SIÊU SALE TRANG CHỦ)
   ========================================================= */
.home-event-sale-banner {
    margin-bottom: 16px;
    border-radius: 16px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

.event-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    gap: 20px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 16px;
    z-index: 1;
    box-sizing: border-box;
}

.event-banner-glow-orb {
    position: absolute;
    width: 260px;
    height: 260px;
    top: -100px;
    right: -40px;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.28;
    pointer-events: none;
    z-index: 0;
    animation: floatGlow 8s ease-in-out infinite alternate;
}

.event-banner-glow-orb-2 {
    position: absolute;
    width: 220px;
    height: 220px;
    bottom: -80px;
    left: -40px;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.22;
    pointer-events: none;
    z-index: 0;
    animation: floatGlow 6s ease-in-out infinite alternate-reverse;
}

@keyframes floatGlow {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(22px) scale(1.18); }
}

.event-banner-body {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.event-banner-top-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.event-banner-tag {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 3px 10px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.event-banner-discount-badge {
    font-size: 11px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.event-banner-title {
    font-size: 17.5px;
    font-weight: 800;
    margin: 0 0 6px 0;
    line-height: 1.35;
    color: #fff;
    letter-spacing: 0.3px;
    word-break: break-word;
}

.event-banner-desc {
    font-size: 13.5px;
    color: #cbd5e1;
    margin: 0;
    line-height: 1.5;
    word-break: break-word;
}

/* Countdown Timer */
.event-banner-countdown {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: 10px;
    flex-wrap: wrap;
}

.countdown-label {
    font-size: 11px;
    font-weight: 800;
    color: #facc15;
    letter-spacing: 0.6px;
}

.countdown-digits {
    display: flex;
    align-items: center;
    gap: 5px;
}

.cd-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 32px;
    padding: 2px 4px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.08);
    font-weight: 800;
    font-size: 13.5px;
    color: #fff;
    line-height: 1.1;
}

.cd-item small {
    font-size: 8px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    margin-top: 1px;
}

.cd-sep {
    font-weight: 800;
    font-size: 13px;
    color: #facc15;
    line-height: 1;
}

/* Side Action */
.event-banner-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.event-banner-icon-badge {
    font-size: 38px;
    line-height: 1;
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.35));
    animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px) scale(1.05); }
}

.event-banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 13px;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    white-space: nowrap;
}

.event-banner-btn svg {
    width: 15px;
    height: 15px;
    transition: transform 0.2s ease;
}

.event-banner-btn:hover {
    transform: translateY(-2px);
}

.event-banner-btn:hover svg {
    transform: translateX(3px);
}

/* ===== THEME PRESETS ===== */
/* 1. Đỏ & Vàng Kim (Tết, Đại Lễ) */
.home-event-sale-banner.theme-holiday_red_gold {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.16) 0%, rgba(180, 83, 9, 0.18) 45%, rgba(15, 23, 42, 0.96) 100%);
    border: 1px solid rgba(239, 68, 68, 0.45);
    box-shadow: 0 12px 36px -8px rgba(220, 38, 38, 0.28), 0 0 24px rgba(245, 158, 11, 0.15);
}
.home-event-sale-banner.theme-holiday_red_gold .event-banner-glow-orb { background: #ef4444; }
.home-event-sale-banner.theme-holiday_red_gold .event-banner-glow-orb-2 { background: #f59e0b; }
.home-event-sale-banner.theme-holiday_red_gold .event-banner-tag { background: rgba(239, 68, 68, 0.2); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.4); }
.home-event-sale-banner.theme-holiday_red_gold .event-banner-discount-badge { background: linear-gradient(135deg, #ef4444, #f59e0b); color: #fff; }
.home-event-sale-banner.theme-holiday_red_gold .event-banner-btn { background: linear-gradient(135deg, #ef4444, #ea580c); box-shadow: 0 4px 18px rgba(239, 68, 68, 0.45); }

/* 2. Tím & Xanh Cyan (Cyber Neon / Công Nghệ) */
.home-event-sale-banner.theme-cyber_purple_blue {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.18) 0%, rgba(59, 130, 246, 0.16) 50%, rgba(15, 23, 42, 0.96) 100%);
    border: 1px solid rgba(168, 85, 247, 0.45);
    box-shadow: 0 12px 36px -8px rgba(168, 85, 247, 0.28), 0 0 24px rgba(59, 130, 246, 0.18);
}
.home-event-sale-banner.theme-cyber_purple_blue .event-banner-glow-orb { background: #a855f7; }
.home-event-sale-banner.theme-cyber_purple_blue .event-banner-glow-orb-2 { background: #06b6d4; }
.home-event-sale-banner.theme-cyber_purple_blue .event-banner-tag { background: rgba(168, 85, 247, 0.2); color: #d8b4fe; border: 1px solid rgba(168, 85, 247, 0.4); }
.home-event-sale-banner.theme-cyber_purple_blue .event-banner-discount-badge { background: linear-gradient(135deg, #a855f7, #3b82f6); color: #fff; }
.home-event-sale-banner.theme-cyber_purple_blue .event-banner-btn { background: linear-gradient(135deg, #8b5cf6, #06b6d4); box-shadow: 0 4px 18px rgba(139, 92, 246, 0.45); }

/* 3. Vàng Gold Hoàng Gia (Luxury VIP) */
.home-event-sale-banner.theme-golden_luxury {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(202, 138, 4, 0.16) 50%, rgba(15, 23, 42, 0.96) 100%);
    border: 1px solid rgba(245, 158, 11, 0.45);
    box-shadow: 0 12px 36px -8px rgba(245, 158, 11, 0.3);
}
.home-event-sale-banner.theme-golden_luxury .event-banner-glow-orb { background: #f59e0b; }
.home-event-sale-banner.theme-golden_luxury .event-banner-glow-orb-2 { background: #eab308; }
.home-event-sale-banner.theme-golden_luxury .event-banner-tag { background: rgba(245, 158, 11, 0.2); color: #fde047; border: 1px solid rgba(245, 158, 11, 0.4); }
.home-event-sale-banner.theme-golden_luxury .event-banner-discount-badge { background: linear-gradient(135deg, #f59e0b, #eab308); color: #111; font-weight: 900; }
.home-event-sale-banner.theme-golden_luxury .event-banner-btn { background: linear-gradient(135deg, #f59e0b, #d97706); color: #111; font-weight: 800; box-shadow: 0 4px 18px rgba(245, 158, 11, 0.45); }

/* 4. Cam Lửa & Đỏ (Flash Sale Bùng Cháy / Black Friday) */
.home-event-sale-banner.theme-fire_orange {
    background: linear-gradient(135deg, rgba(234, 88, 12, 0.22) 0%, rgba(220, 38, 38, 0.18) 50%, rgba(15, 23, 42, 0.96) 100%);
    border: 1px solid rgba(249, 115, 22, 0.45);
    box-shadow: 0 12px 36px -8px rgba(249, 115, 22, 0.3);
}
.home-event-sale-banner.theme-fire_orange .event-banner-glow-orb { background: #f97316; }
.home-event-sale-banner.theme-fire_orange .event-banner-glow-orb-2 { background: #ef4444; }
.home-event-sale-banner.theme-fire_orange .event-banner-tag { background: rgba(249, 115, 22, 0.2); color: #fdba74; border: 1px solid rgba(249, 115, 22, 0.4); }
.home-event-sale-banner.theme-fire_orange .event-banner-discount-badge { background: linear-gradient(135deg, #f97316, #ef4444); color: #fff; }
.home-event-sale-banner.theme-fire_orange .event-banner-btn { background: linear-gradient(135deg, #f97316, #dc2626); box-shadow: 0 4px 18px rgba(249, 115, 22, 0.45); }

/* 5. Xanh Ngọc Lục Bảo (Mùa Xuân / Giáng Sinh) */
.home-event-sale-banner.theme-emerald_spring {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.18) 0%, rgba(5, 150, 105, 0.16) 50%, rgba(15, 23, 42, 0.96) 100%);
    border: 1px solid rgba(16, 185, 129, 0.45);
    box-shadow: 0 12px 36px -8px rgba(16, 185, 129, 0.3);
}
.home-event-sale-banner.theme-emerald_spring .event-banner-glow-orb { background: #10b981; }
.home-event-sale-banner.theme-emerald_spring .event-banner-glow-orb-2 { background: #059669; }
.home-event-sale-banner.theme-emerald_spring .event-banner-tag { background: rgba(16, 185, 129, 0.2); color: #6ee7b7; border: 1px solid rgba(16, 185, 129, 0.4); }
.home-event-sale-banner.theme-emerald_spring .event-banner-discount-badge { background: linear-gradient(135deg, #10b981, #059669); color: #fff; }
.home-event-sale-banner.theme-emerald_spring .event-banner-btn { background: linear-gradient(135deg, #10b981, #047857); box-shadow: 0 4px 18px rgba(16, 185, 129, 0.45); }

/* Responsive Mobile */
@media (max-width: 768px) {
    .event-banner-inner {
        flex-direction: column;
        align-items: stretch;
        padding: 16px 16px;
        gap: 14px;
    }
    .event-banner-title {
        font-size: 15.5px;
    }
    .event-banner-desc {
        font-size: 12.5px;
    }
    .event-banner-side {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        margin-top: 4px;
    }
    .event-banner-icon-badge {
        font-size: 32px;
    }
    .event-banner-btn {
        flex: 1;
        justify-content: center;
        min-height: 40px;
    }
}

/* =========================================================
   COMBINED DETAIL & PURCHASE MODAL STYLING
   ========================================================= */
.combined-modal-grid {
    display: grid;
    grid-template-columns: 1.1fr 1.3fr;
    gap: 24px;
}

@media (max-width: 768px) {
    .combined-modal-grid {
        grid-template-columns: 1fr;
    }
    .modal-purchase-col {
        border-left: none !important;
        padding-left: 0 !important;
        margin-top: 20px;
        border-top: 1px solid var(--border);
        padding-top: 20px;
    }
}

.stock-badge {
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 800;
    border-radius: 4px;
    text-transform: uppercase;
}
.stock-badge.instock {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}
.stock-badge.outofstock {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
}
.package-item {
    background: var(--bg2);
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
}
.package-item:hover {
    border-color: var(--theme-border);
    background: var(--surface);
}
.package-item.active {
    border-color: var(--theme-primary);
    background: var(--theme-bg-glow);
    box-shadow: var(--theme-glow);
}
.package-item .pkg-name {
    font-size: 12px;
    font-weight: 800;
    color: var(--text);
}
.package-item .pkg-price {
    font-size: 13px;
    font-weight: 900;
    color: var(--gold);
}
.package-item .pkg-stock {
    font-size: 10px;
    color: var(--muted);
}

.quantity-input-group {
    display: flex;
    align-items: center;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    max-width: 120px;
}
.qty-btn {
    width: 32px;
    height: 38px;
    background: transparent;
    border: 0;
    color: var(--text);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
}
.qty-btn:hover {
    background: rgba(255,255,255,0.05);
}

.fee-breakdown-card {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.fee-breakdown-card .row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12.5px;
}
.fee-breakdown-card .row .lbl {
    color: var(--muted);
    font-weight: 600;
}
.fee-breakdown-card .row .val {
    color: var(--text);
    font-weight: 700;
}
.fee-breakdown-card .row .val.gold {
    color: var(--gold);
    font-weight: 900;
    font-size: 15px;
}
.fee-breakdown-card .row.separator {
    height: 1px;
    background: var(--border);
    margin: 4px 0;
}

.policy-warning-box {
    background: rgba(255, 215, 0, 0.02);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 8px;
    padding: 12px;
}

/* Copy button success styling */
.btn-copy-success {
    background: var(--green) !important;
    border-color: var(--green) !important;
}

/* ======================================== */
/* COMBINED MODAL GRID LAYOUT              */
/* ======================================== */
.combined-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
@media (max-width: 768px) {
    .combined-modal-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .modal-purchase-col {
        border-left: none !important;
        padding-left: 0 !important;
        border-top: 1px solid var(--border);
        padding-top: 16px;
    }
}

/* ======================================== */
/* PACKAGES GRID — Service Package Cards    */
/* ======================================== */
.packages-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.package-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1.5px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}
.package-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.06), rgba(139, 92, 246, 0.06));
    opacity: 0;
    transition: opacity 0.25s ease;
}
.package-item:hover {
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}
.package-item:hover::before {
    opacity: 1;
}
.package-item.active {
    border-color: var(--gold);
    background: rgba(255, 215, 0, 0.06);
    box-shadow: 0 0 0 1px rgba(255, 215, 0, 0.2), 0 4px 16px rgba(255, 215, 0, 0.08);
}
.package-item.active::before {
    opacity: 0;
}
.package-item .pkg-name {
    font-size: 14px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: 0.3px;
    position: relative;
    z-index: 1;
}
.package-item .pkg-stock {
    font-size: 11px;
    color: var(--muted);
    position: relative;
    z-index: 1;
}
.package-item .pkg-price {
    font-size: 16px;
    font-weight: 900;
    color: var(--gold);
    position: relative;
    z-index: 1;
    white-space: nowrap;
}
.package-item.active .pkg-name {
    color: var(--gold);
}

/* ======================================== */
/* QUANTITY INPUT GROUP                      */
/* ======================================== */
.quantity-input-group {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg2);
    height: 38px;
}
.quantity-input-group .qty-btn {
    width: 38px;
    height: 100%;
    border: none;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.quantity-input-group .qty-btn:hover {
    background: rgba(255, 215, 0, 0.12);
    color: var(--gold);
}
.quantity-input-group .qty-btn:active {
    background: rgba(255, 215, 0, 0.2);
}
.quantity-input-group input[type="number"] {
    -moz-appearance: textfield;
}
.quantity-input-group input[type="number"]::-webkit-outer-spin-button,
.quantity-input-group input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ======================================== */
/* STOCK BADGE                              */
/* ======================================== */
.stock-badge {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 5px 12px;
    border-radius: 20px;
    white-space: nowrap;
}
.stock-badge.instock {
    background: rgba(34, 197, 94, 0.12);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.25);
}
.stock-badge.outofstock {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

/* ======================================== */
/* RESPONSIVE TABLE STYLES (MOBILE CARDS)   */
/* ======================================== */
@media (max-width: 768px) {
    /* Targets both Lịch sử nạp tiền (#section-deposit) and Lịch sử đơn hàng (#section-orders) */
    #section-deposit .table-responsive table,
    #section-orders .table-responsive table {
        border: 0;
        display: block;
    }
    
    #section-deposit .table-responsive thead,
    #section-orders .table-responsive thead {
        display: none; /* Hide desktop headers */
    }
    
    #section-deposit .table-responsive tbody,
    #section-orders .table-responsive tbody {
        display: block;
        width: 100%;
    }
    
    #section-deposit .table-responsive tr,
    #section-orders .table-responsive tr {
        display: block;
        margin-bottom: 16px;
        background: var(--surface2, #18181b);
        border: 1.5px solid var(--border);
        border-radius: var(--r-md, 12px);
        padding: 14px 18px;
        box-shadow: var(--shadow);
    }
    
    #section-deposit .table-responsive td,
    #section-orders .table-responsive td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        font-size: 13px;
        text-align: right;
        white-space: normal !important;
        max-width: none !important;
        overflow: visible !important;
    }
    
    #section-deposit .table-responsive td:last-child,
    #section-orders .table-responsive td:last-child {
        border-bottom: 0;
        padding-bottom: 0;
    }
    
    #section-deposit .table-responsive td:first-child,
    #section-orders .table-responsive td:first-child {
        padding-top: 0;
    }
    
    #section-deposit .table-responsive td::before,
    #section-orders .table-responsive td::before {
        content: attr(data-label);
        font-weight: 800;
        color: var(--muted);
        text-transform: uppercase;
        font-size: 10.5px;
        letter-spacing: 0.8px;
        float: left;
        text-align: left;
        padding-right: 12px;
    }

    /* Ensure button and inline elements don't get squished and wrap nicely */
    #section-deposit .table-responsive td > *,
    #section-orders .table-responsive td > * {
        max-width: 65%;
        text-align: right;
        justify-content: flex-end;
    }
}

@media (max-width: 576px) {
    .modal-bg {
        padding: 10px;
    }
    .modal-body {
        padding: 12px 14px !important;
    }
    .modal-head {
        padding: 12px 16px !important;
    }
    .combined-modal-grid {
        gap: 12px;
    }
    .modal-purchase-col {
        margin-top: 12px;
        padding-top: 12px;
    }
}

/* ======================================== */
/* ADMIN TABLE: Fix card overflow-hidden    */
/* ======================================== */
.admin-tab-content .card {
    overflow: visible;
}
.admin-tab-content .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--r-md);
}

/* Copy-to-clipboard cursor */
[data-copy] {
    cursor: copy;
    transition: opacity 0.15s;
}
[data-copy]:hover { opacity: 0.75; }
[data-copy]:active { opacity: 0.5; }

/* ======================================== */
/* ADMIN TABLES MOBILE — card-row layout   */
/* ======================================== */
@media (max-width: 768px) {
    .admin-tab-content .table-responsive table {
        border: 0;
        display: block;
    }
    .admin-tab-content .table-responsive thead {
        display: none;
    }
    .admin-tab-content .table-responsive tbody {
        display: block;
        width: 100%;
    }
    .admin-tab-content .table-responsive tr {
        display: block;
        margin-bottom: 14px;
        background: var(--surface2, #18181b);
        border: 1.5px solid var(--border);
        border-radius: var(--r-md, 12px);
        padding: 12px 16px;
        box-shadow: var(--shadow);
    }
    .admin-tab-content .table-responsive td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
        padding: 9px 0;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        font-size: 12.5px;
        text-align: right;
        white-space: normal !important;
        max-width: none !important;
        overflow: visible !important;
        text-overflow: unset !important;
    }
    .admin-tab-content .table-responsive td:last-child {
        border-bottom: 0;
        padding-bottom: 0;
    }
    .admin-tab-content .table-responsive td:first-child {
        padding-top: 0;
    }
    .admin-tab-content .table-responsive td::before {
        content: attr(data-label);
        font-weight: 800;
        color: var(--muted);
        text-transform: uppercase;
        font-size: 10px;
        letter-spacing: 0.7px;
        flex-shrink: 0;
        text-align: left;
        white-space: nowrap;
        padding-right: 8px;
    }
    .admin-tab-content .table-responsive td > * {
        text-align: right;
        justify-content: flex-end;
    }
}

/* =========================================================
   HOME USER STATS WIDGET (Exact match to requested UI)
   ========================================================= */
.home-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    width: 100%;
    box-sizing: border-box;
}

.home-stat-box {
    background: #171923;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    user-select: none;
    box-sizing: border-box;
}

.home-stat-box:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.home-stat-icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    flex-shrink: 0;
}

.home-stat-icon-wrap.icon-balance {
    background: var(--theme-bg-glow);
    color: var(--theme-primary);
    border: 1px solid var(--theme-border);
}

.home-stat-icon-wrap.icon-orders,
.home-stat-icon-wrap.icon-products {
    background: rgba(99, 102, 241, 0.16);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.25);
}

.home-stat-icon-wrap.icon-member {
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.home-stat-value {
    font-size: 21px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 4px;
    letter-spacing: -0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-stat-label {
    font-size: 12.5px;
    color: #88909d;
    font-weight: 500;
    line-height: 1.3;
}

@media (max-width: 768px) {
    .home-stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    .home-stat-box {
        padding: 12px 10px;
        border-radius: 12px;
    }
    .home-stat-icon-wrap {
        width: 30px;
        height: 30px;
        border-radius: 8px;
        margin-bottom: 8px;
    }
    .home-stat-icon-wrap svg {
        width: 15px !important;
        height: 15px !important;
    }
    .home-stat-value {
        font-size: 15px;
        margin-bottom: 2px;
    }
    .home-stat-label {
        font-size: 11px;
    }
}

@media (max-width: 360px) {
    .home-stats-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .home-stat-box {
        flex-direction: row;
        align-items: center;
        gap: 12px;
        padding: 12px 14px;
    }
    .home-stat-icon-wrap {
        margin-bottom: 0;
    }
}

/* ============================================================
   TRUST / SERVICE BADGES (BẢO MẬT, HỖ TRỢ 24/7, CHẤT LƯỢNG, ĐÁNH GIÁ)
   ============================================================ */
.home-trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 16px;
}

.trust-badge-item {
    background: #171923;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 13px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    user-select: none;
    box-sizing: border-box;
}

.trust-badge-item:hover {
    transform: translateY(-2px);
    border-color: var(--theme-border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.38), var(--theme-glow);
}

.trust-badge-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.trust-badge-icon svg {
    width: 19px;
    height: 19px;
    stroke: #ffffff;
}

/* Icon Gradient Colors exactly matching reference image */
.trust-badge-icon.icon-security {
    background: var(--theme-gradient);
    box-shadow: var(--theme-glow);
}

.trust-badge-icon.icon-support {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
}

.trust-badge-icon.icon-quality {
    background: linear-gradient(135deg, #059669, #047857);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.35);
}

.trust-badge-icon.icon-reviews {
    background: linear-gradient(135deg, #eab308, #ca8a04);
    box-shadow: 0 4px 12px rgba(234, 179, 8, 0.35);
}

.trust-badge-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.trust-badge-title {
    font-size: 13.5px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.25;
    margin-bottom: 3px;
    letter-spacing: -0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.trust-badge-sub {
    font-size: 11.5px;
    color: #94a3b8;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 992px) {
    .home-trust-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .home-trust-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

@media (max-width: 640px) {
    .home-trust-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .trust-badge-item {
        padding: 12px 14px;
        gap: 12px;
        border-radius: 12px;
    }
    .trust-badge-icon {
        width: 36px;
        height: 36px;
        border-radius: 9px;
    }
    .trust-badge-icon svg {
        width: 18px;
        height: 18px;
    }
    .trust-badge-title {
        font-size: 13px;
        margin-bottom: 2px;
    }
    .trust-badge-sub {
        font-size: 11px;
    }
}

/* ============================================================
   MODERN PRODUCT CARD DESIGN (MATCHING REFERENCE IMAGE)
   ============================================================ */
/* 3D Perspective container */
.products-grid,
#featured-products-grid,
#featured-product-list,
#product-list,
#products-grid {
    perspective: none;
}

.product-card {
    background: #12151b;
    border: 1.5px solid var(--theme-border);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
    contain: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    transform: none !important;
    will-change: auto;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    border-color: rgba(96, 165, 250, 0.85);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45), var(--theme-glow);
    transform: none !important;
}

/* Tắt hoàn toàn hiệu ứng nổi / nảy nhảy khi ấn trên điện thoại */
.product-card-glare {
    display: none !important;
}

.product-card.pressing,
.product-card:active {
    transform: none !important;
    border-color: #60a5fa !important;
}

.product-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    background: radial-gradient(circle at 50% 40%, var(--theme-bg-glow), transparent 60%), #0c0e17;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.product-img img,
.product-card:hover .product-img img {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transform: none !important;
    transition: none !important;
}

.product-card .badge-stock-tag,
.product-card .badge-top-left-group {
    transform: none !important;
}

.product-card .product-info {
    transform: none !important;
}

.product-card .btn-card-buy {
    transform: translateZ(30px);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.product-card .btn-card-buy:hover {
    transform: translateZ(38px) scale(1.06);
    box-shadow: 0 4px 16px var(--theme-glow);
}

/* Stock Badges on Image */
.badge-stock-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.3px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 4px;
    backdrop-filter: blur(6px);
}

.badge-stock-tag.instock {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.45);
}

.badge-stock-tag.outofstock {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.45);
}

.badge-top-left-group {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 3;
}

.badge-sale-tag {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 900;
    padding: 3px 9px;
    border-radius: 20px;
    box-shadow: 0 3px 10px rgba(239, 68, 68, 0.4);
}

.badge-pin-tag {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 20px;
}

/* Card Body & Elements */
.product-info {
    padding: 12px 14px 14px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    color: #38bdf8;
    background: rgba(14, 165, 233, 0.12);
    border: 1px solid rgba(14, 165, 233, 0.28);
    border-radius: 4px;
    padding: 2px 8px;
    margin-bottom: 8px;
    align-self: flex-start;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.product-name {
    margin: 0 0 8px;
    font-size: 14.5px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.4;
    min-height: 40px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Description Snippet List */
.card-desc-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
    min-height: 64px;
}

.card-desc-item {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    font-size: 10.5px;
    line-height: 1.38;
    color: #94a3b8;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-desc-item .check-icon {
    color: #22c55e;
    font-size: 10px;
    flex-shrink: 0;
    font-weight: 800;
    margin-top: 0.5px;
}

.card-desc-item .desc-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

/* Meta Stats Row (Kho | Gói | Đã bán) - Compact without box border */
.card-meta-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 6px 0;
    background: transparent;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 0;
    margin-bottom: 8px;
    font-size: 11.5px;
    color: #88909d;
    letter-spacing: -0.1px;
    line-height: 1.4;
}

.card-meta-row .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
    color: #88909d;
}

.card-meta-row .meta-item strong {
    color: #f1f5f9;
    font-weight: 700;
    font-size: 11.5px;
}

.card-meta-row .meta-item strong.instock {
    color: #22c55e;
}

.card-meta-row .meta-item strong.outstock {
    color: #ef4444;
}

.card-meta-row .meta-sep {
    color: rgba(255, 255, 255, 0.2);
    font-size: 10px;
    margin: 0 1px;
}

/* Bottom Price & Action */
.card-bottom-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    gap: 8px;
}

.card-price-wrap {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.card-price-label {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-price-val {
    font-size: 18px;
    font-weight: 800;
    color: #38bdf8;
    letter-spacing: -0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-tier-badge {
    font-size: 10px;
    font-weight: 700;
    color: #facc15;
    background: rgba(234, 179, 8, 0.15);
    border: 1px solid rgba(234, 179, 8, 0.3);
    padding: 1px 5px;
    border-radius: 4px;
    display: inline-block;
    margin-left: 2px;
}

.btn-card-buy {
    height: 34px;
    padding: 0 16px;
    border-radius: 8px;
    background: var(--theme-gradient, linear-gradient(135deg, #7c6cf2, #6366f1));
    border: none;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--theme-glow);
    flex-shrink: 0;
    font-family: inherit;
}

.btn-card-buy:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px var(--theme-glow);
}

/* Image Lightbox Viewer Modal */
.image-lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.image-lightbox-modal.open {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    position: relative;
    max-width: 94vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: lightboxZoomIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes lightboxZoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-content img {
    max-width: 94vw;
    max-height: 84vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.15);
    background: #0b0d14;
    user-select: none;
}

.lightbox-caption {
    margin-top: 12px;
    font-size: 14px;
    color: #f1f5f9;
    font-weight: 700;
    text-align: center;
    max-width: 90vw;
    text-shadow: 0 2px 6px rgba(0,0,0,0.9);
}

.lightbox-close-btn {
    position: absolute;
    top: -44px;
    right: 0;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lightbox-close-btn:hover {
    background: rgba(239, 68, 68, 0.9);
    transform: rotate(90deg);
}

/* Modal Description Gallery Thumbnails */
.desc-img-item {
    width: 120px;
    height: 90px;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    cursor: zoom-in;
    transition: transform 0.2s ease, border-color 0.2s ease;
    background: #0f111a;
}

.desc-img-item:hover {
    transform: scale(1.05);
    border-color: var(--accent);
}

.desc-img-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.desc-img-zoom-hint {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.75);
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 700;
    text-align: center;
    padding: 3px 0;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.desc-img-item:hover .desc-img-zoom-hint {
    opacity: 1;
}

/* =========================================================
   ORDER HISTORY CARDS (MATCHING REFERENCE DESIGN)
   ========================================================= */
/* =========================================================
   ORDER HISTORY CARDS (FULL WIDTH & EXPANDED IMAGES)
   ========================================================= */
.orders-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    padding: 0 2px;
}

.orders-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.orders-header-icon-box {
    width: 36px;
    height: 36px;
    background: var(--theme-bg-glow);
    border: 1px solid var(--theme-border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.orders-main-title {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.2px;
}

.orders-balance-badge {
    font-size: 14px;
    color: #8fa0b5;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.09);
    padding: 7px 16px;
    border-radius: 9px;
}

.orders-balance-lbl {
    color: #8fa0b5;
    font-weight: 500;
}

.orders-balance-val {
    color: #38bdf8;
    font-weight: 800;
    font-size: 15px;
}

/* Order cards list */
.orders-cards-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

/* Single Order Card: Spans full width */
.order-card {
    background: #141923;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    padding: 22px 26px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
    position: relative;
    width: 100%;
}

.order-card:hover {
    border-color: rgba(26, 92, 255, 0.35);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.5);
}

.order-card-top {
    display: flex;
    align-items: stretch;
    gap: 24px;
    width: 100%;
}

/* Thumbnail Box: NO WHITE BACKGROUND, FULL COVER, ZOOM ON CLICK */
.order-card-img-box {
    width: 200px;
    min-width: 200px;
    height: 115px;
    background: #090c13;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.order-card-img-box:hover {
    border-color: var(--accent, #3b82f6);
    transform: translateY(-2px);
}

.order-card-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.order-card-img-box:hover img {
    transform: scale(1.08);
}

/* Hover overlay zoom hint */
.order-img-zoom-hint {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    opacity: 0;
    transition: opacity 0.2s ease;
    backdrop-filter: blur(2px);
    pointer-events: none;
}

.order-card-img-box:hover .order-img-zoom-hint {
    opacity: 1;
}

.order-img-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #64748b;
    gap: 4px;
}

.order-card-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
}

/* Header row inside Info: Title on left, Status on right */
.order-card-header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
}

.order-card-titles {
    flex: 1;
    min-width: 0;
}

.order-card-title {
    font-size: 17.5px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 4px 0;
    line-height: 1.35;
    word-break: break-word;
}

.order-card-sub {
    font-size: 12px;
    font-weight: 700;
    color: #7e8c9f;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.order-pkg-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.22), rgba(37, 99, 235, 0.12));
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.4);
    font-size: 12px;
    font-weight: 800;
    padding: 2px 10px;
    border-radius: 6px;
    margin-left: 8px;
    vertical-align: middle;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
}

/* Metadata grid: Spans full width evenly */
.order-card-meta-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    width: 100%;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 12px 16px;
}

.order-meta-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.order-meta-lbl {
    font-size: 11.5px;
    color: #7e8c9f;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.order-meta-val {
    font-size: 13.5px;
    color: #e2e8f0;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.order-meta-val.code {
    font-family: 'Consolas', 'Courier New', monospace;
    color: var(--gold, #ffd700);
    font-weight: 700;
    font-size: 14px;
    word-break: break-all;
    white-space: normal;
}

.order-meta-val.amount {
    color: #10b981;
    font-size: 16px;
    font-weight: 800;
}

.order-meta-val.time {
    color: #cbd5e1;
    font-size: 13px;
}

.order-status-pill {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.45);
    color: #10b981;
    padding: 6px 16px;
    border-radius: 7px;
    font-size: 12.5px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.order-status-pill.pending {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.45);
    color: #f59e0b;
}

.order-status-pill.failed {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.45);
    color: #ef4444;
}

/* Key section box */
.order-card-key-sec {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 16px;
    padding-top: 14px;
    width: 100%;
}

.order-card-key-lbl {
    font-size: 11px;
    font-weight: 800;
    color: #7b8b9f;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 8px;
}

.order-card-key-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 12px 18px;
    flex-wrap: wrap;
    width: 100%;
}

.order-key-val-box {
    flex: 1;
    min-width: 240px;
}

.order-key-code {
    font-size: 13.5px;
    color: #f1f5f9;
    font-family: 'Consolas', 'Courier New', monospace;
    font-weight: 700;
    word-break: break-all;
    line-height: 1.45;
}

.order-key-note {
    font-size: 13px;
    color: #94a3b8;
    font-weight: 600;
}

.order-key-note.text-gold {
    color: var(--gold, #ffd700);
    font-weight: 800;
    font-size: 13.5px;
    letter-spacing: 0.4px;
}

.order-card-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.btn-order-copy {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 8px 18px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all 0.2s ease;
    user-select: none;
}

.btn-order-copy:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.35);
}

.btn-order-copy.copied {
    border-color: #10b981 !important;
    color: #10b981 !important;
    background: rgba(16, 185, 129, 0.14) !important;
}

.btn-order-download {
    background: var(--theme-gradient, linear-gradient(135deg, #7c6cf2, #6366f1));
    border: 1px solid var(--theme-border);
    color: #ffffff;
    padding: 8px 18px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    box-shadow: var(--theme-glow);
    transition: all 0.2s ease;
}

.btn-order-download:hover {
    filter: brightness(1.1);
}

/* Empty / Loading States */
.orders-empty-state {
    background: #141923;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 44px 20px;
    text-align: center;
    width: 100%;
}

.orders-empty-icon {
    color: #64748b;
    margin-bottom: 14px;
}

.orders-empty-state h3 {
    font-size: 17px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 6px;
}

.orders-empty-state p {
    font-size: 13.5px;
    color: #94a3b8;
    max-width: 440px;
    margin: 0 auto;
}

.orders-loading-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 48px 20px;
    color: #94a3b8;
    font-size: 14px;
    width: 100%;
}

.orders-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--theme-border);
    border-top-color: var(--theme-primary);
    border-radius: 50%;
    animation: ordersSpin 0.8s linear infinite;
}

@keyframes ordersSpin {
    to { transform: rotate(360deg); }
}

/* Mobile Responsiveness */
@media (max-width: 860px) {
    .order-card-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .order-card-img-box {
        width: 100%;
        max-width: 260px;
        height: 130px;
    }
    .order-card-meta-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 10px 14px;
    }
    .order-card-key-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .order-card-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* ============================================================
   CINEMATIC 3D MODAL ENTRANCE EFFECT ("KHI ẤN VÔ MỤC")
   ============================================================ */
#product-detail-modal {
    perspective: 1400px;
    perspective-origin: center center;
}

#product-detail-modal .modal {
    background: linear-gradient(145deg, #11141c, #0a0c12) !important;
    border: 1px solid var(--theme-border) !important;
    border-radius: 18px !important;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.85), var(--theme-glow) !important;
    transform-style: preserve-3d;
    transform: perspective(1200px) rotateX(15deg) scale(0.86) translateY(45px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, box-shadow 0.4s ease !important;
    will-change: transform, opacity;
}

#product-detail-modal.open .modal {
    transform: perspective(1200px) rotateX(0deg) scale(1) translateY(0) !important;
    opacity: 1 !important;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.9), var(--theme-glow) !important;
}

/* 3D Packages selection in modal */
#prod-detail-packages-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)) !important;
    gap: 10px !important;
    margin-bottom: 12px !important;
}

#prod-detail-packages-grid .package-item {
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.22s ease, box-shadow 0.22s ease;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 10px 10px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    user-select: none;
}

#prod-detail-packages-grid .package-item:hover {
    transform: translateY(-2px) scale(1.02);
    border-color: var(--theme-border);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), var(--theme-glow);
}

#prod-detail-packages-grid .package-item.active {
    transform: scale(1.02);
    border-color: var(--theme-primary) !important;
    background: var(--theme-bg-glow) !important;
    box-shadow: var(--theme-glow), inset 0 0 8px var(--theme-bg-glow) !important;
}

#prod-detail-packages-grid .package-item.package-item-out {
    opacity: 0.78;
    border-color: rgba(239, 68, 68, 0.3);
}

#prod-detail-packages-grid .package-item.active::after {
    content: "✓";
    position: absolute;
    top: 4px;
    right: 6px;
    font-size: 11px;
    font-weight: 900;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.2);
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

#prod-detail-packages-grid .pkg-name {
    font-size: 12px;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 2px;
}

#prod-detail-packages-grid .pkg-price {
    font-size: 14px;
    font-weight: 800;
    color: var(--gold);
}

#prod-detail-packages-grid .pkg-stock {
    font-size: 11px;
    color: var(--muted);
}

/* 3D Action button */
#prod-detail-buy-btn {
    position: relative;
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease !important;
}

#prod-detail-buy-btn:hover {
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 10px 28px rgba(16, 185, 129, 0.5), 0 0 20px rgba(16, 185, 129, 0.4) !important;
    filter: brightness(1.1);
}

/* ===================================================
   CUSTOMER FEEDBACK CAROUSEL SECTION
   =================================================== */
.home-feedback-section {
    background: linear-gradient(180deg, rgba(20, 25, 38, 0.75) 0%, rgba(13, 16, 24, 0.85) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px 18px 18px;
    margin-bottom: 20px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.feedback-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.feedback-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.feedback-star {
    color: #eab308;
    font-size: 17px;
    line-height: 1;
    filter: drop-shadow(0 0 6px rgba(234, 179, 8, 0.4));
}

.feedback-title {
    font-size: 15px;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.2px;
}

.feedback-verified-badge {
    font-size: 10px;
    font-weight: 800;
    color: #10b981;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    padding: 2px 7px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    text-transform: uppercase;
}

.feedback-nav-arrows {
    display: flex;
    align-items: center;
    gap: 6px;
}

.feedback-nav-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.feedback-nav-btn:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.5);
    color: #ffffff;
    transform: scale(1.05);
}

.feedback-carousel-wrapper {
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
    padding-bottom: 6px;
}

.feedback-carousel-wrapper::-webkit-scrollbar {
    height: 4px;
}

.feedback-carousel-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.feedback-track {
    display: flex;
    gap: 14px;
    width: max-content;
}

.feedback-card {
    flex: 0 0 auto;
    height: 165px;
    max-width: 320px;
    min-width: 140px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #090c14;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feedback-card:hover {
    transform: translateY(-3px) scale(1.02);
    border-color: rgba(234, 179, 8, 0.8);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7), 0 0 16px rgba(234, 179, 8, 0.25);
}

.feedback-card img {
    height: 100%;
    width: auto;
    max-width: 320px;
    object-fit: contain; /* Tự động cân chỉnh tỉ lệ ảnh, không bị cắt xén */
    display: block;
    background: #000000;
    transition: transform 0.3s ease;
}

.feedback-card:hover img {
    transform: scale(1.03);
}

.feedback-card-hover-hint {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.feedback-card:hover .feedback-card-hover-hint {
    opacity: 1;
}

.feedback-card-hover-badge {
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(234, 179, 8, 0.7);
    color: #fef08a;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Category header */
.category-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.category-section-title {
    font-size: 15px;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.2px;
}

/* Feedback Detail Article Modal */
.fb-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.fb-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.fb-modal-container {
    background: #111522;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 16px;
    width: 100%;
    max-width: 860px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(234, 179, 8, 0.15);
    display: flex;
    flex-direction: column;
    transform: scale(0.95);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.fb-modal-overlay.active .fb-modal-container {
    transform: scale(1);
}

.fb-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.fb-modal-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.fb-modal-star-icon {
    font-size: 18px;
    color: #eab308;
}

.fb-modal-header-title {
    font-size: 14px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.fb-modal-close-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    line-height: 1;
}

.fb-modal-close-btn:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: #fff;
    transform: rotate(90deg);
}

.fb-modal-body {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 24px;
    padding: 24px;
}

@media (max-width: 768px) {
    .fb-modal-body {
        grid-template-columns: 1fr;
        padding: 16px;
        gap: 18px;
    }
}

.fb-modal-media-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fb-modal-img-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #090c14;
    border: 1px solid rgba(255, 255, 255, 0.12);
    cursor: zoom-in;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 240px;
    max-height: 380px;
}

.fb-modal-img-wrapper img {
    max-width: 100%;
    max-height: 380px;
    object-fit: contain;
    display: block;
    transition: transform 0.3s;
}

.fb-modal-img-wrapper:hover img {
    transform: scale(1.02);
}

.fb-modal-zoom-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    backdrop-filter: blur(4px);
    pointer-events: none;
}

.fb-modal-img-caption {
    font-size: 12px;
    color: #94a3b8;
    text-align: center;
    font-style: italic;
}

.fb-modal-info-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.fb-modal-badge-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fb-modal-badge-pkg {
    font-size: 11px;
    font-weight: 800;
    background: rgba(234, 179, 8, 0.15);
    border: 1px solid rgba(234, 179, 8, 0.4);
    color: #fde047;
    padding: 3px 9px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.fb-modal-stars {
    color: #eab308;
    font-size: 15px;
    letter-spacing: 2px;
}

.fb-modal-prod-title {
    font-size: 19px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.3;
    margin: 0;
}

.fb-modal-author-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}

.fb-modal-author-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #eab308, #ca8a04);
    color: #000;
    font-weight: 800;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 12px rgba(234, 179, 8, 0.3);
}

.fb-modal-author-name {
    font-size: 14.5px;
    font-weight: 700;
    color: #38bdf8;
    line-height: 1.2;
}

.fb-modal-author-sub {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 2px;
}

.fb-modal-article-box {
    position: relative;
    background: #141926;
    border-left: 3px solid #eab308;
    border-radius: 4px 8px 8px 4px;
    padding: 14px 16px 14px 20px;
    margin: 4px 0;
}

.fb-modal-quote-mark {
    position: absolute;
    top: -6px;
    left: 8px;
    font-size: 32px;
    color: rgba(234, 179, 8, 0.25);
    font-family: Georgia, serif;
    line-height: 1;
    pointer-events: none;
}

.fb-modal-article-text {
    font-size: 14px;
    line-height: 1.6;
    color: #e2e8f0;
    white-space: pre-wrap;
    word-break: break-word;
}

.fb-modal-trust-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(34, 197, 94, 0.06);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 8px;
    font-size: 12px;
    color: #86efac;
    line-height: 1.4;
}

.fb-trust-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.fb-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 6px;
}

@media (max-width: 640px) {
    .feedback-card {
        height: 135px;
        max-width: 250px;
    }
}

/* ================================================================ */
/* DOWNLOAD CENTER STYLING (PHOTO 2 DESIGN) */
/* ================================================================ */
.download-center-section {
    margin-top: 24px;
    margin-bottom: 40px;
}

.download-center-header {
    background: linear-gradient(135deg, rgba(20, 26, 40, 0.95), rgba(11, 15, 25, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 22px 26px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.download-header-title-group {
    display: flex;
    align-items: center;
    gap: 14px;
}

.download-header-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(168, 85, 247, 0.2));
    border: 1px solid rgba(99, 102, 241, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #818cf8;
    box-shadow: 0 0 16px rgba(99, 102, 241, 0.3);
}

.download-header-text h2 {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.download-header-text p {
    font-size: 13px;
    color: #94a3b8;
    margin: 4px 0 0 0;
}

.download-filter-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.download-filter-btn {
    background: #14171f;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.download-filter-btn:hover {
    color: #ffffff;
    background: #1c202a;
    border-color: rgba(255, 255, 255, 0.25);
}

.download-filter-btn.active {
    background: #252e46 !important;
    border-color: rgba(99, 102, 241, 0.7) !important;
    color: #ffffff !important;
    box-shadow: 0 0 14px rgba(99, 102, 241, 0.25) !important;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 340px));
    gap: 20px;
    width: 100%;
}

@media (max-width: 640px) {
    .download-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.download-card {
    background: #12151b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    width: 100%;
}

.download-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5), 0 0 18px rgba(99, 102, 241, 0.2);
}

.download-card-thumb,
.download-card-banner {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.12), transparent 75%), #080b12;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    cursor: zoom-in;
}

.download-card-thumb img,
.download-card-banner img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Vertical / Portrait posters support */
.download-card-thumb.is-portrait img,
.download-card-banner.is-portrait img {
    object-fit: contain !important;
    background: #080b12 !important;
}

.download-card:hover .download-card-thumb img,
.download-card:hover .download-card-banner img {
    transform: scale(1.04);
}

/* Badge Top-Left on Banner (Like Image 2: MENU IOS MIGUL) */
.download-banner-badge-left {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--theme-primary);
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: var(--theme-glow);
    z-index: 2;
    pointer-events: none;
}

/* Badge Top-Right on Banner (Like Image 2: V4) */
.download-banner-badge-right {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(6px);
    color: #cbd5e1;
    font-size: 10.5px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 2;
    pointer-events: none;
}

.download-card-thumb .download-thumb-zoom-hint {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    color: #cbd5e1;
    font-size: 10.5px;
    padding: 2px 7px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
}

.download-card:hover .download-card-thumb .download-thumb-zoom-hint {
    opacity: 1;
}

.download-card-body {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.download-card-title {
    font-size: 14.5px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.35;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.download-card-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11.5px;
    color: #94a3b8;
    margin-top: 1px;
}

.download-meta-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.download-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #94a3b8;
    font-weight: 600;
    font-size: 11.5px;
}

.download-meta-item svg {
    width: 13px !important;
    height: 13px !important;
    min-width: 13px !important;
    min-height: 13px !important;
    max-width: 13px !important;
    max-height: 13px !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
    color: #38bdf8;
}

.download-external-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #94a3b8;
    font-size: 11.5px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s ease;
}

.download-external-link:hover {
    color: #60a5fa;
    text-decoration: underline;
}

.download-external-link svg {
    width: 12px !important;
    height: 12px !important;
    min-width: 12px !important;
    min-height: 12px !important;
    max-width: 12px !important;
    max-height: 12px !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
}

.btn-download-primary {
    width: 100%;
    height: 38px;
    min-height: 38px;
    background: var(--theme-gradient, linear-gradient(135deg, #7c6cf2, #6366f1));
    color: #ffffff;
    border: none;
    border-radius: 7px;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: all 0.2s ease;
    box-shadow: var(--theme-glow);
    text-decoration: none;
    letter-spacing: normal;
    box-sizing: border-box;
    margin-top: 4px;
}

.btn-download-primary:hover {
    filter: brightness(1.1);
    box-shadow: 0 6px 18px var(--theme-glow);
    transform: translateY(-1px);
}

.btn-download-primary svg {
    width: 15px !important;
    height: 15px !important;
    min-width: 15px !important;
    min-height: 15px !important;
    max-width: 15px !important;
    max-height: 15px !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
}

/* ================================================================
   CATEGORY SHOWCASE CARDS (Giao diện thẻ danh mục trang chủ - Ảnh 2)
   ================================================================ */
.category-showcase-section {
    margin-top: 24px;
    margin-bottom: 32px;
    width: 100%;
}

.category-showcase-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 12px;
}

.category-showcase-header .category-section-title {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.3px;
    margin: 0;
    font-family: inherit;
}

.category-showcase-sub {
    font-size: 13px;
    color: #94a3b8;
    margin: 4px 0 0 0;
}

.btn-view-all-products {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(30, 58, 138, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.35);
    border-radius: 8px;
    color: #60a5fa;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-view-all-products:hover {
    background: var(--theme-bg-glow);
    border-color: var(--theme-primary);
    color: #ffffff;
    box-shadow: var(--theme-glow);
    transform: translateY(-1px);
}

/* ================================================================
   DTNSHOP / IMAGE 3 STYLE FEATURED CARDS (Giao diện sản phẩm nổi bật trang chủ - Ảnh 3)
   ================================================================ */
#featured-product-list {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 18px !important;
    width: 100% !important;
}

@media (max-width: 1100px) {
    #featured-product-list {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 16px !important;
    }
}

@media (max-width: 640px) {
    #featured-product-list {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }
}

.dtn-card {
    background: #10131a !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 14px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5) !important;
    box-sizing: border-box;
}

.dtn-card:hover,
.dtn-card:active {
    transform: none !important;
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45), 0 0 16px rgba(37, 99, 235, 0.18);
}

.dtn-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    background: #060911;
}

.dtn-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: none !important;
}

.dtn-card:hover .dtn-thumb-img {
    transform: none !important;
}

.dtn-badge-cat {
    position: absolute;
    top: 9px;
    left: 9px;
    z-index: 2;
    background: rgba(10, 20, 42, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(59, 130, 246, 0.45);
    color: #93c5fd;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 3px 8px;
    border-radius: 6px;
    pointer-events: none;
    line-height: 1.3;
    max-width: 68%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dtn-badge-region {
    position: absolute;
    top: 9px;
    right: 9px;
    z-index: 2;
    background: rgba(10, 20, 42, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #f8fafc;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    pointer-events: none;
}

.dtn-badge-stock {
    position: absolute;
    bottom: 9px;
    left: 9px;
    z-index: 2;
    background: rgba(8, 14, 26, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    pointer-events: none;
}

.dtn-badge-stock.instock {
    border: 1px solid rgba(16, 185, 129, 0.45);
    color: #34d399;
}

.dtn-badge-stock.outstock {
    border: 1px solid rgba(239, 68, 68, 0.45);
    color: #f87171;
}

.dtn-stock-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.dtn-badge-stock.instock .dtn-stock-dot {
    background: #10b981;
    box-shadow: 0 0 6px #10b981;
}

.dtn-badge-stock.outstock .dtn-stock-dot {
    background: #ef4444;
    box-shadow: 0 0 6px #ef4444;
}

.dtn-card-body {
    padding: 12px 2px 2px 2px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.dtn-card-title {
    font-size: 15px;
    font-weight: 800;
    color: #f1f5f9;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin: 0 0 8px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.3;
    transition: color 0.2s ease;
}

.dtn-card:hover .dtn-card-title {
    color: #38bdf8;
}

.dtn-pkg-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(30, 58, 102, 0.35);
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: #38bdf8;
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    width: fit-content;
    margin-bottom: 14px;
}

.dtn-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto;
    padding-top: 4px;
    gap: 10px;
}

.dtn-price-col {
    display: flex;
    flex-direction: column;
}

.dtn-price-label {
    display: block;
    font-size: 11px;
    color: #94a3b8;
    font-weight: 600;
    margin-bottom: 2px;
}

.dtn-price-val {
    font-size: 19px;
    font-weight: 900;
    color: #10b981;
    line-height: 1.1;
    letter-spacing: -0.3px;
}

.dtn-price-curr {
    font-size: 15px;
    font-weight: 700;
    color: #10b981;
    margin-left: 1px;
    text-decoration: underline;
}

.dtn-btn-detail {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--theme-gradient, linear-gradient(135deg, #7c6cf2, #6366f1));
    border: 1px solid var(--theme-border);
    border-radius: 8px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.4px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--theme-glow);
    white-space: nowrap;
}

.dtn-btn-detail:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px var(--theme-glow);
}

/* ================================================================
   CATEGORY PRODUCTS DETAILED VIEW (Ảnh 3 & Ảnh 1)
   ================================================================ */
.category-products-view {
    margin-top: 20px;
    width: 100%;
    animation: fadeInView 0.3s ease;
}

@keyframes fadeInView {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.category-view-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: wrap;
}

.btn-back-to-categories {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text, #e2e8f0);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-back-to-categories:hover {
    background: var(--theme-bg-glow);
    border-color: var(--theme-border);
    color: var(--theme-primary-hover);
    transform: translateX(-2px);
}

.btn-back-to-categories svg {
    transition: transform 0.2s ease;
}

.btn-back-to-categories:hover svg {
    transform: translateX(-3px);
}

.category-view-header-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-view-tag {
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    background: var(--theme-bg-glow);
    color: var(--theme-primary);
    border: 1px solid var(--theme-border);
    letter-spacing: 0.5px;
}

.category-view-title {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
}

.category-view-count {
    font-size: 14px;
    color: #94a3b8;
    font-weight: 600;
}

/* ===== NÚT QUAY LẠI TRANG CHỦ NỔI BẬT & MÀU SẮC DỄ NHÌN ===== */
.btn-back-to-home-prominent {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 22px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border: 1px solid rgba(251, 191, 36, 0.7);
    color: #ffffff !important;
    font-size: 13.5px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(245, 158, 11, 0.45);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    letter-spacing: 0.2px;
}

.btn-back-to-home-prominent:hover {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 24px rgba(245, 158, 11, 0.65);
    border-color: #fde68a;
}

.btn-back-to-home-prominent svg {
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
    transition: transform 0.25s ease;
}

.btn-back-to-home-prominent:hover svg {
    transform: translateX(-3px);
}

/* ===== HIỆU ỨNG LOAD CÔNG NGHỆ CAO (CYBER TECH LOADER) ===== */
.cyber-tech-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: all;
    animation: cyberFadeIn 0.2s ease forwards;
}

.cyber-tech-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 7, 12, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.cyber-tech-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 36px 40px;
    background: rgba(13, 17, 26, 0.94);
    border: 1px solid var(--theme-border, rgba(59, 130, 246, 0.4));
    border-radius: 18px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.85), 0 0 32px var(--theme-bg-glow, rgba(37, 99, 235, 0.25));
    max-width: 90vw;
    width: 420px;
}

.cyber-scanner-ring {
    position: relative;
    width: 90px;
    height: 90px;
    display: grid;
    place-items: center;
    margin-bottom: 22px;
}

.cyber-spinner-outer {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--theme-primary, #7c6cf2);
    border-right-color: var(--theme-primary, #7c6cf2);
    animation: cyberSpin 1s cubic-bezier(0.55, 0.15, 0.45, 0.85) infinite;
    filter: drop-shadow(0 0 8px var(--theme-primary, #7c6cf2));
}

.cyber-spinner-inner {
    position: absolute;
    inset: 12px;
    border-radius: 50%;
    border: 2px dashed rgba(255, 255, 255, 0.25);
    border-bottom-color: var(--theme-primary-hover, #60a5fa);
    animation: cyberSpinRev 1.4s linear infinite;
}

.cyber-spinner-core {
    color: var(--theme-primary, #7c6cf2);
    animation: cyberPulse 1.2s ease-in-out infinite;
    display: grid;
    place-items: center;
}

.cyber-tech-text {
    margin-bottom: 20px;
}

.cyber-tech-glitch {
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 1.5px;
    color: #ffffff;
    text-transform: uppercase;
    margin-bottom: 6px;
    text-shadow: 0 0 12px var(--theme-primary, rgba(59, 130, 246, 0.7));
}

.cyber-tech-sub {
    font-size: 12.5px;
    color: var(--muted, #94a3b8);
    font-weight: 500;
}

.cyber-tech-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.cyber-tech-progress-fill {
    width: 0%;
    height: 100%;
    background: var(--theme-gradient);
    box-shadow: 0 0 12px var(--theme-primary, #7c6cf2);
    border-radius: 10px;
    transition: width 0.38s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.cyber-tech-status-code {
    margin-top: 14px;
    font-size: 10.5px;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.4);
    font-family: monospace;
    font-weight: 700;
}

@keyframes cyberSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes cyberSpinRev {
    0% { transform: rotate(360deg); }
    100% { transform: rotate(0deg); }
}

@keyframes cyberPulse {
    0%, 100% { transform: scale(0.9); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; filter: drop-shadow(0 0 12px var(--theme-primary, #7c6cf2)); }
}

@keyframes cyberFadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.category-products-view.cyber-reveal {
    animation: cyberReveal 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cyberReveal {
    0% { opacity: 0; transform: translateY(16px) scale(0.98); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* ===== CHIPS GỢI Ý DANH MỤC CHO ADMIN (Style Ảnh 3: nền xanh đậm, viền xanh, chữ đỏ) ===== */
.adm-cat-quick-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    font-size: 11.5px;
    font-weight: 700;
    color: #f87171 !important;
    background: #0c1527 !important;
    border: 1px solid #1e3a8a !important;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.adm-cat-quick-chip:hover {
    background: #172554 !important;
    border-color: #3b82f6 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

/* ===== ADMIN CATEGORY CHIP BADGE (THEO PHONG CÁCH ẢNH 5) ===== */
.adm-cat-chip-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #12151b;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.adm-cat-chip-badge:hover {
    background: #181d2c;
    border-color: rgba(255, 255, 255, 0.25);
}
.adm-cat-chip-badge.selected {
    background: rgba(239, 68, 68, 0.2) !important;
    border-color: rgba(239, 68, 68, 0.6) !important;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.25) !important;
}
.adm-cat-chip-badge .adm-cat-del-btn {
    background: transparent;
    border: none;
    color: #8b949e;
    cursor: pointer;
    font-size: 13px;
    padding: 0 2px;
    margin-left: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease;
}
.adm-cat-chip-badge .adm-cat-del-btn:hover {
    color: #ef4444;
}

/* ===== HỆ THỐNG MÀU SẮC TOÀN DIỆN (ZERMANGO THEME SYSTEM) ===== */
:root {
    --theme-primary: #7c6cf2;
    --theme-primary-hover: #897bf5;
    --theme-gradient: linear-gradient(135deg, #7c6cf2, #6366f1);
    --theme-glow: 0 4px 18px rgba(124, 108, 242, 0.45);
    --theme-bg-glow: rgba(124, 108, 242, 0.16);
    --theme-border: rgba(124, 108, 242, 0.4);
    --theme-rgb: 124, 108, 242;
}

/* Theme 1: Neon Purple (Tím Zermango Chuẩn Dashboard - Mặc định) */
[data-theme="purple"], body.theme-purple {
    --theme-primary: #7c6cf2;
    --theme-primary-hover: #897bf5;
    --theme-gradient: linear-gradient(135deg, #7c6cf2, #6366f1);
    --theme-glow: 0 4px 18px rgba(124, 108, 242, 0.5);
    --theme-bg-glow: rgba(124, 108, 242, 0.18);
    --theme-border: rgba(124, 108, 242, 0.45);
    --accent: #7c6cf2;
    --accent2: #6366f1;
    --accent3: #4f46e5;
    --glow: 0 0 24px rgba(124, 108, 242, 0.35);
    --theme-rgb: 124, 108, 242;
}

/* Theme 2: Cyber Blue (Xanh Neon Công Nghệ) */
[data-theme="blue"], body.theme-blue {
    --theme-primary: #2563eb;
    --theme-primary-hover: #1d4ed8;
    --theme-gradient: linear-gradient(135deg, #3b82f6, #1d4ed8);
    --theme-glow: 0 4px 18px rgba(37, 99, 235, 0.45);
    --theme-bg-glow: rgba(37, 99, 235, 0.16);
    --theme-border: rgba(59, 130, 246, 0.4);
    --accent: #2563eb;
    --accent2: #1d4ed8;
    --accent3: #1e40af;
    --glow: 0 0 24px rgba(37, 99, 235, 0.35);
    --theme-rgb: 37, 99, 235;
}

/* Theme 3: Matrix Emerald Green (Xanh Lục Bảo Matrix) */
[data-theme="green"], body.theme-green {
    --theme-primary: #10b981;
    --theme-primary-hover: #059669;
    --theme-gradient: linear-gradient(135deg, #34d399, #059669);
    --theme-glow: 0 4px 18px rgba(16, 185, 129, 0.5);
    --theme-bg-glow: rgba(16, 185, 129, 0.18);
    --theme-border: rgba(16, 185, 129, 0.45);
    --accent: #10b981;
    --accent2: #059669;
    --accent3: #047857;
    --glow: 0 0 24px rgba(16, 185, 129, 0.35);
    --theme-rgb: 16, 185, 129;
}

/* Theme 4: Crimson Fire Red (Đỏ Rực Chiến Binh) */
[data-theme="red"], body.theme-red {
    --theme-primary: #ef4444;
    --theme-primary-hover: #dc2626;
    --theme-gradient: linear-gradient(135deg, #f87171, #dc2626);
    --theme-glow: 0 4px 18px rgba(239, 68, 68, 0.5);
    --theme-bg-glow: rgba(239, 68, 68, 0.18);
    --theme-border: rgba(239, 68, 68, 0.45);
    --accent: #ef4444;
    --accent2: #dc2626;
    --accent3: #b91c1c;
    --glow: 0 0 24px rgba(239, 68, 68, 0.35);
    --theme-rgb: 239, 68, 68;
}

/* Theme Fallback (Chuyển đổi an toàn nếu còn lưu mã cũ 'gold') */
[data-theme="gold"], body.theme-gold {
    --theme-primary: #7c6cf2;
    --theme-primary-hover: #897bf5;
    --theme-gradient: linear-gradient(135deg, #7c6cf2, #6366f1);
    --theme-glow: 0 4px 18px rgba(124, 108, 242, 0.5);
    --theme-bg-glow: rgba(124, 108, 242, 0.18);
    --theme-border: rgba(124, 108, 242, 0.45);
    --accent: #7c6cf2;
    --accent2: #6366f1;
    --accent3: #4f46e5;
    --glow: 0 0 24px rgba(124, 108, 242, 0.35);
    --theme-rgb: 124, 108, 242;
}

/* ========================================================
   QUY TẮC ĐỒNG BỘ TOÀN DIỆN 100% GIAO DIỆN KHI ĐỔI MÀU (CASCADE RULES)
   Bất cứ khi nào đổi màu bên Admin, TOÀN BỘ WEBSITE lập tức đồng bộ theo màu đã chọn
   ======================================================== */

/* 1. Thanh điều hướng Sidebar */
.nav .active,
.nav a.active,
.nav button.active,
[data-theme] .nav .active,
[data-theme] .nav a.active,
[data-theme] .nav button.active {
    background: linear-gradient(135deg, rgba(var(--theme-rgb), 0.28), rgba(var(--theme-rgb), 0.18)) !important;
    border: 1px solid var(--theme-primary) !important;
    color: #ffffff !important;
    box-shadow: var(--theme-glow) !important;
}

.nav .active svg,
.nav a.active svg,
[data-theme] .nav .active svg,
[data-theme] .nav a.active svg {
    color: var(--theme-primary) !important;
    filter: drop-shadow(0 0 6px var(--theme-primary)) !important;
}

.nav a:hover,
.nav button:hover,
[data-theme] .nav a:hover,
[data-theme] .nav button:hover {
    background: var(--theme-bg-glow) !important;
    color: #ffffff !important;
}

/* 2. Nút Quản Trị Sidebar (Đã gỡ bỏ viền vàng, đồng bộ màu theme hoàn toàn) */
.nav-admin-link,
#nav-admin-link {
    color: var(--text, #e2e8f0) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border-radius: 8px !important;
    margin-top: 6px !important;
    transition: all 0.2s ease !important;
}
.nav-admin-link:hover,
#nav-admin-link:hover {
    background: var(--theme-bg-glow) !important;
    border-color: var(--theme-border) !important;
    color: #ffffff !important;
    box-shadow: var(--theme-glow) !important;
}
.nav-admin-link svg,
#nav-admin-link svg {
    color: var(--theme-primary) !important;
}

/* 3. Topbar Header */
.topbar-balance-pill,
[data-theme] .topbar-balance-pill {
    background: var(--theme-bg-glow) !important;
    border: 1px solid var(--theme-border) !important;
    color: var(--theme-primary-hover) !important;
}
.topbar-balance-pill svg,
[data-theme] .topbar-balance-pill svg {
    color: var(--theme-primary) !important;
}
.topbar-balance-pill:hover,
[data-theme] .topbar-balance-pill:hover {
    background: rgba(var(--theme-rgb), 0.24) !important;
    border-color: var(--theme-primary) !important;
    box-shadow: var(--theme-glow) !important;
}

.topbar-user-avatar,
[data-theme] .topbar-user-avatar {
    background: var(--theme-gradient) !important;
    box-shadow: 0 2px 8px var(--theme-bg-glow) !important;
}

.topbar-search:focus-within,
[data-theme] .topbar-search:focus-within,
[data-theme] .topbar-search input:focus {
    border-color: var(--theme-primary) !important;
    box-shadow: 0 0 14px var(--theme-bg-glow) !important;
}

.topbar-guide-btn:hover,
[data-theme] .topbar-guide-btn:hover {
    border-color: var(--theme-border) !important;
    color: var(--theme-primary) !important;
}

/* 4. Toàn bộ nút bấm chính trên website (All Buttons) */
.btn.primary,
.btn-primary,
.btn-card-buy,
.btn-download-primary,
.dtn-btn-detail,
.btn-guide-start,
.event-banner-btn,
.checkout-btn,
.modal-submit-btn,
.profile-btn-action,
.btn-order-download,
[data-theme] .btn.primary,
[data-theme] .btn-primary,
[data-theme] .filter-btn.active,
[data-theme] .category-card-btn:hover {
    background: var(--theme-gradient) !important;
    color: #ffffff !important;
    box-shadow: var(--theme-glow) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.btn.primary:hover,
.btn-primary:hover,
.btn-card-buy:hover,
.btn-download-primary:hover,
.dtn-btn-detail:hover,
.btn-guide-start:hover,
.event-banner-btn:hover,
.profile-btn-action:hover,
.btn-order-download:hover {
    filter: brightness(1.1) !important;
    box-shadow: 0 6px 20px var(--theme-bg-glow), var(--theme-glow) !important;
    transform: translateY(-1px) !important;
}

/* 5. Bộ lọc & Tabs (Filter Buttons & Tabs) */
.filter-btn.active,
.sub-filter-btn.active,
.cat-filter-btn.active,
[data-theme] .filter-btn.active {
    background: var(--theme-gradient) !important;
    border-color: transparent !important;
    color: #ffffff !important;
    box-shadow: var(--theme-glow) !important;
}

/* 6. Thẻ Sản Phẩm & Cards & Khung viện (Product Cards, Categories, Trust Badges) */
.product-card:hover,
.card:hover,
.category-card:hover,
.dtn-cat-card:hover,
.trust-badge-item:hover,
.order-card:hover,
[data-theme] .card:hover,
[data-theme] .category-card:hover {
    border-color: var(--theme-border) !important;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.5), 0 0 16px var(--theme-bg-glow) !important;
}

.product-price,
.card-price,
.product-card-price {
    color: var(--theme-primary) !important;
}

/* 7. Gói Nạp & Phương Thức Thanh Toán (Packages, Payment Methods) */
.package-item.active,
#prod-detail-packages-grid .package-item.active,
.payment-method-card.active {
    border-color: var(--theme-primary) !important;
    background: var(--theme-bg-glow) !important;
    box-shadow: 0 0 16px var(--theme-bg-glow), inset 0 0 8px var(--theme-bg-glow) !important;
}

.package-item:hover,
.payment-method-card:hover {
    border-color: var(--theme-border) !important;
}

/* 8. Icon Badges & Tags (Biểu tượng & Huy hiệu) */
/* Phối màu 3 thẻ Trust Badges nét đẹp: Xanh Cyber (Bảo mật) - Tím Zermango (Hỗ trợ) - Xanh Lục (Chất lượng) */
.trust-badge-icon.icon-security {
    background: linear-gradient(135deg, #0ea5e9, #0284c7) !important;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.4) !important;
}
.trust-badge-icon.icon-support {
    background: linear-gradient(135deg, #7c6cf2, #6366f1) !important;
    box-shadow: 0 4px 14px rgba(124, 108, 242, 0.4) !important;
}
.trust-badge-icon.icon-quality {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35) !important;
}
.home-stat-icon-wrap.icon-balance,
.orders-header-icon-box,
.stat-icon-blue,
.stat-icon.u-new {
    background: var(--theme-bg-glow) !important;
    border: 1px solid var(--theme-border) !important;
    color: var(--theme-primary) !important;
}
.category-view-tag,
.dtn-badge-cat,
.order-pkg-badge {
    background: var(--theme-bg-glow) !important;
    border-color: var(--theme-border) !important;
    color: var(--theme-primary-hover) !important;
}

/* 9. Hộp Thoại & Popup Modals */
#product-detail-modal .modal,
#adm-edit-cat-modal .modal {
    border-color: var(--theme-border) !important;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.85), 0 0 40px var(--theme-bg-glow) !important;
}

/* 10. Bảng Quản Trị Admin Panel (Admin Tabs & Active Navigation) */
.admin-tab-btn.active,
[data-theme] .admin-tab-btn.active {
    background: var(--theme-gradient) !important;
    color: #ffffff !important;
    box-shadow: var(--theme-glow) !important;
}
.admin-tab-btn:hover {
    color: #ffffff !important;
}
#admsidenav-overview.active,
#admsidenav-products.active,
#admsidenav-orders.active,
#admsidenav-members.active,
#admsidenav-cards.active,
#admsidenav-settings.active,
#admsidenav-notifications.active,
#admsidenav-feedbacks.active,
#admsidenav-downloads.active,
#admsidenav-popup.active,
#admsidenav-bank.active,
#admsidenav-keys.active {
    background: linear-gradient(135deg, rgba(var(--theme-rgb), 0.28), rgba(var(--theme-rgb), 0.18)) !important;
    border: 1px solid var(--theme-primary) !important;
    color: #ffffff !important;
    box-shadow: var(--theme-glow) !important;
}

/* 11. Floating Chat Support Widget */
.support-corner-fab {
    background: var(--theme-gradient) !important;
    box-shadow: var(--theme-glow), 0 2px 8px rgba(0, 0, 0, 0.4) !important;
}
.support-corner-fab-pulse {
    background: var(--theme-bg-glow) !important;
}

/* 12. Form Focus Inputs */
input:focus,
select:focus,
textarea:focus,
.deposit-custom-input-wrap:focus-within {
    border-color: var(--theme-primary) !important;
    box-shadow: 0 0 0 3px var(--theme-bg-glow) !important;
}

/* 13. Admin Theme Picker Cards in Settings */
.adm-theme-card {
    cursor: pointer;
    padding: 12px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.22s ease;
    user-select: none;
    position: relative;
    box-sizing: border-box;
}
.adm-theme-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
}
.adm-theme-card.active {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}
.adm-theme-card[data-theme="purple"].active {
    border-color: #7c6cf2 !important;
    background: rgba(124, 108, 242, 0.16) !important;
    box-shadow: 0 0 16px rgba(124, 108, 242, 0.4) !important;
}
.adm-theme-card[data-theme="blue"].active {
    border-color: #3b82f6 !important;
    background: rgba(59, 130, 246, 0.12) !important;
    box-shadow: 0 0 16px rgba(59, 130, 246, 0.35) !important;
}
.adm-theme-card[data-theme="green"].active {
    border-color: #10b981 !important;
    background: rgba(16, 185, 129, 0.12) !important;
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.35) !important;
}
.adm-theme-card[data-theme="red"].active {
    border-color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.12) !important;
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.35) !important;
}
/* ========================================================
   THEME RUNNING & AMBIENT VISUAL EFFECTS (Hiệu ứng chạy các kiểu)
   ======================================================== */

/* 1. Tia quét Laser Flash Sale (Laser Shimmer) */
@keyframes flashLaserShimmer {
    0% { transform: translateX(-150%) skewX(-20deg); }
    35%, 100% { transform: translateX(280%) skewX(-20deg); }
}
.effect-flash-shimmer .home-event-sale-banner,
.effect-flash-shimmer .flash-deal-badge,
.effect-flash-shimmer .card-sale-badge,
.effect-flash-shimmer .badge-flash-sale {
    position: relative;
    overflow: hidden !important;
}
.effect-flash-shimmer .home-event-sale-banner::after,
.effect-flash-shimmer .badge-flash-sale::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 35%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    animation: flashLaserShimmer 3.2s infinite ease-in-out;
    pointer-events: none;
    z-index: 2;
}

/* 2. Hào quang Cyber nhấp nháy (Glow Pulse) */
@keyframes cyberNeonPulse {
    0%, 100% {
        box-shadow: 0 0 10px var(--theme-bg-glow, rgba(59, 130, 246, 0.35));
    }
    50% {
        box-shadow: 0 0 24px var(--theme-border, rgba(59, 130, 246, 0.75)), 0 0 8px rgba(255, 255, 255, 0.35);
    }
}
.effect-glow-pulse [data-theme] .btn.primary,
.effect-glow-pulse [data-theme] .btn-primary,
.effect-glow-pulse .home-event-sale-banner,
.effect-glow-pulse .adm-theme-card.active {
    animation: cyberNeonPulse 3s infinite ease-in-out;
}

/* 3. Dải màu Gradient chuyển động trượt sóng (Gradient Flow) */
@keyframes gradientStreamFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.effect-animated-gradient [data-theme] .btn.primary,
.effect-animated-gradient [data-theme] .btn-primary,
.effect-animated-gradient .home-event-sale-banner,
.effect-animated-gradient .topbar-admin-title {
    background-size: 200% 200% !important;
    animation: gradientStreamFlow 6s ease infinite !important;
}

/* 4. Viền LED chạy quét (Border Stream) */
/* 4. Viền LED chạy quét đa sắc RGB (Border Stream - Giữ dải LED chạy Xanh - Đỏ - Tím không đổi) */
@keyframes borderStreamRotate {
    0% {
        filter: drop-shadow(0 0 4px #7c6cf2) drop-shadow(0 0 10px rgba(124, 108, 242, 0.6));
    }
    33% {
        filter: drop-shadow(0 0 5px #38bdf8) drop-shadow(0 0 12px rgba(56, 189, 248, 0.6));
    }
    66% {
        filter: drop-shadow(0 0 5px #f43f5e) drop-shadow(0 0 12px rgba(244, 63, 94, 0.6));
    }
    100% {
        filter: drop-shadow(0 0 4px #7c6cf2) drop-shadow(0 0 10px rgba(124, 108, 242, 0.6));
    }
}
.effect-running-border .home-event-sale-banner,
.effect-running-border .product-card:hover,
.effect-running-border .card.pad:hover {
    animation: borderStreamRotate 4s infinite linear;
}

/* Disable floating theme pill */
.floating-theme-pill {
    display: none !important;
}

/* ================================================================
   DTNSHOP GAME CATEGORY CARDS (Giao diện Thể Loại Game Chuẩn Ảnh 4)
   ================================================================ */
.category-showcase-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 20px !important;
    width: 100% !important;
}

@media (max-width: 1100px) {
    .category-showcase-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 16px !important;
    }
}

@media (max-width: 640px) {
    .category-showcase-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
}

.dtn-cat-card {
    background: #10131a !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.6) !important;
    box-sizing: border-box;
}

.dtn-cat-card:hover {
    transform: translateY(-5px);
    border-color: var(--theme-border);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), var(--theme-glow);
}

.dtn-cat-banner-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    background: #060911;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.dtn-cat-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.dtn-cat-card:hover .dtn-cat-banner-img {
    transform: scale(1.05);
}

.dtn-cat-card-body {
    padding: 14px 4px 4px 4px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.dtn-cat-title {
    font-size: 16px;
    font-weight: 800;
    color: #ffffff !important;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin: 0 0 6px 0;
    line-height: 1.35;
    transition: color 0.2s ease;
}

.dtn-cat-card:hover .dtn-cat-title {
    color: #93c5fd;
    text-shadow: 0 0 12px rgba(96, 165, 250, 0.5);
}

.dtn-cat-desc {
    font-size: 12.5px;
    color: #94a3b8;
    margin: 0 0 14px 0;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dtn-cat-badges-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.dtn-cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(30, 58, 102, 0.3);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #7dd3fc;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 5px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.dtn-cat-pill.count-pill {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.35);
    color: #34d399;
}

.dtn-cat-action-btn {
    width: 100%;
    margin-top: auto;
    padding: 10px 0;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
    font-size: 13.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.dtn-cat-card:hover .dtn-cat-action-btn,
.dtn-cat-action-btn:hover {
    background: var(--theme-gradient, linear-gradient(135deg, #7c6cf2, #6366f1));
    border-color: var(--theme-primary);
    color: #ffffff;
    box-shadow: var(--theme-glow);
    transform: translateY(-1px);
}

/* ======================================================== */
/* EDIT CATEGORY MODAL & ADMIN CATEGORY SAVE CONTROLS       */
/* ======================================================== */
#adm-edit-cat-modal .modal {
    width: min(680px, calc(100vw - 28px)) !important;
    max-width: 680px !important;
    max-height: min(92vh, 880px) !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    border-radius: 18px !important;
    background: linear-gradient(165deg, #131722 0%, #0c0f16 100%) !important;
    border: 1px solid var(--theme-border) !important;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.9), var(--theme-glow) !important;
}

#adm-edit-cat-modal .modal-head {
    flex-shrink: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    background: #111520 !important;
}

#adm-edit-cat-modal #adm-edit-cat-form {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
}

#adm-edit-cat-modal .modal-body {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    padding: 18px 22px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    scrollbar-width: thin !important;
    scrollbar-color: rgba(59, 130, 246, 0.4) rgba(255, 255, 255, 0.03) !important;
}

#adm-edit-cat-modal .modal-body::-webkit-scrollbar {
    width: 6px;
}
#adm-edit-cat-modal .modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
}
#adm-edit-cat-modal .modal-body::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.4);
    border-radius: 4px;
}

#adm-edit-cat-footer {
    flex-shrink: 0 !important;
    background: linear-gradient(180deg, rgba(18, 23, 36, 0.98) 0%, #090c13 100%) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
    padding: 14px 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px !important;
    box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.7) !important;
    z-index: 10 !important;
    border-bottom-left-radius: 18px !important;
    border-bottom-right-radius: 18px !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
}

.adm-cat-save-btn {
    height: 44px;
    padding: 0 24px;
    font-size: 13.5px;
    font-weight: 800;
    border-radius: 10px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    border: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.45);
    letter-spacing: 0.3px;
    transition: all 0.22s ease;
}

.adm-cat-save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 26px rgba(16, 185, 129, 0.65);
    background: linear-gradient(135deg, #34d399 0%, #059669 100%);
}

.adm-cat-save-btn:active {
    transform: translateY(0);
}

.adm-cat-cancel-btn {
    height: 44px;
    padding: 0 18px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.04);
    color: #cbd5e1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.adm-cat-cancel-btn:hover {
    border-color: rgba(239, 68, 68, 0.5);
    color: #f87171;
    background: rgba(239, 68, 68, 0.08);
}

.adm-cat-control-bar {
    background: linear-gradient(135deg, rgba(18, 24, 38, 0.95), rgba(10, 13, 20, 0.95));
    border: 1px solid var(--theme-border);
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    margin-top: 4px;
}

.adm-cat-mode-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 9px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #34d399;
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: 0.2px;
    transition: all 0.2s ease;
}

.adm-cat-mode-badge.editing {
    background: var(--theme-bg-glow);
    border-color: var(--theme-border);
    color: var(--theme-primary-hover);
}

@media (max-width: 600px) {
    #adm-edit-cat-footer {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
        padding: 12px 14px !important;
    }
    #adm-edit-cat-footer > div {
        width: 100% !important;
        justify-content: space-between !important;
    }
    .adm-cat-control-bar {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ============================================================
   CHỈ HIỂN THỊ SẢN PHẨM TRÊN TRANG SẢN PHẨM (#products)
   Ẩn hoàn toàn các block của trang chủ và banner gộp trung gian
   ============================================================ */
body.on-products-page #home-view-wrapper,
body.on-products-page #home-event-sale-banner,
body.on-products-page #dashboard-marquee-bar,
body.on-products-page #dashboard-welcome-card,
body.on-products-page #dashboard-guide-card,
body.on-products-page .dashboard-hero-grid,
body.on-products-page #home-trust-badges-sec,
body.on-products-page .dashboard-stats-row,
body.on-products-page #home-feedback-section,
body.on-products-page #category-showcase-section,
body.on-products-page #category-hero-header-box,
body.on-products-page .category-section-block > div:first-child {
    display: none !important;
}

/* ============================================================
   ZERMANGO STYLE: HERO GRID & NEWBIE BUYING GUIDE CARD
   ============================================================ */
.dashboard-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
    align-items: stretch;
}
@media (max-width: 992px) {
    .dashboard-hero-grid {
        grid-template-columns: 1fr;
    }
}

.dashboard-hero-grid .dashboard-welcome-card {
    margin-bottom: 0 !important;
    height: 100%;
    box-sizing: border-box;
}

.dashboard-guide-card {
    background: linear-gradient(135deg, rgba(16, 20, 29, 0.95), rgba(24, 21, 46, 0.95));
    border: 1px solid rgba(124, 108, 242, 0.35);
    border-radius: 12px;
    padding: 16px 18px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    box-sizing: border-box;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35), 0 0 16px rgba(124, 108, 242, 0.1);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.dashboard-guide-card:hover {
    border-color: rgba(124, 108, 242, 0.55);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 20px rgba(124, 108, 242, 0.18);
}

.guide-card-top {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.guide-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0;
}
.guide-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(124, 108, 242, 0.2);
    color: #a5b4fc;
    border: 1px solid rgba(124, 108, 242, 0.45);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 3px 9px;
    border-radius: 6px;
    text-transform: uppercase;
}
.guide-quick-tag {
    font-size: 11.5px;
    color: #cbd5e1;
    font-weight: 700;
}
.guide-card-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
}
.guide-card-icon-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
}
.guide-card-icon {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    background: linear-gradient(135deg, rgba(124, 108, 242, 0.3), rgba(79, 70, 229, 0.2));
    border: 1px solid rgba(124, 108, 242, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a5b4fc;
    flex-shrink: 0;
}
.guide-card-icon svg {
    width: 15px;
    height: 15px;
}
.guide-card-title {
    font-size: 14.5px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.3;
    margin: 0;
}
.guide-card-desc {
    font-size: 12.5px;
    color: #94a3b8;
    line-height: 1.4;
    margin: 0;
}
.guide-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 10px;
}
.btn-guide-start {
    flex: 1;
    min-width: 130px;
    padding: 9px 16px;
    border-radius: 8px;
    background: linear-gradient(135deg, #5b50e6, #7c6cf2);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(91, 80, 230, 0.35);
    transition: background 0.2s ease, box-shadow 0.2s ease;
}
.btn-guide-start:hover {
    background: linear-gradient(135deg, #6c60ff, #8b7cf8);
    box-shadow: 0 6px 16px rgba(91, 80, 230, 0.5);
}
.btn-guide-video {
    padding: 9px 14px;
    border-radius: 8px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s ease;
}
.btn-guide-video:hover {
    background: rgba(239, 68, 68, 0.25);
    color: #ffffff;
    border-color: rgba(239, 68, 68, 0.6);
}

/* TOPBAR GUIDE BUTTON */
.topbar-guide-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    padding: 7px 12px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}
.topbar-guide-btn:hover {
    background: rgba(124, 108, 242, 0.18);
    border-color: rgba(124, 108, 242, 0.45);
    color: #ffffff;
    box-shadow: 0 0 12px rgba(124, 108, 242, 0.3);
}
.topbar-guide-btn svg {
    color: #7c6cf2;
}

/* ============================================================
   INTERACTIVE TOUR ONBOARDING (CHUẨN ZERMANGO SPOTLIGHT & NEON)
   ============================================================ */
.guide-tour-svg-backdrop {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 100002;
    transition: opacity 0.25s ease;
}

.guide-spotlight-backdrop-rect {
    pointer-events: auto;
    cursor: default;
}

/* Khung Viền Neon Phát Sáng Ô Mục Tiêu (Chuẩn Ảnh 2 Zermango) */
.guide-neon-spotlight-box {
    position: fixed;
    pointer-events: none;
    z-index: 100003;
    border-radius: 16px;
    border: 2px solid #7170ff;
    box-shadow: 0 0 25px rgba(113, 112, 255, 0.6), inset 0 0 16px rgba(113, 112, 255, 0.25);
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.guide-tour-dialog {
    position: fixed;
    z-index: 100005;
    background: #11141c;
    border: 1px solid rgba(113, 112, 255, 0.4);
    border-radius: 14px;
    padding: 20px 22px;
    width: 420px;
    max-width: calc(100vw - 32px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95), 0 0 35px rgba(113, 112, 255, 0.25);
    box-sizing: border-box;
    transition: top 0.25s ease, left 0.25s ease, opacity 0.2s ease;
    animation: tourDialogPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes tourDialogPop {
    0% { opacity: 0; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); }
}

.tour-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.tour-step-badge {
    background: rgba(113, 112, 255, 0.15);
    border: 1px solid rgba(113, 112, 255, 0.3);
    color: #a5b4fc;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.tour-meta-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}
.tour-counter {
    font-size: 12.5px;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 1px;
}
.tour-close-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s ease;
}
.tour-close-btn:hover {
    color: #ffffff;
}

.tour-title {
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 8px 0;
    line-height: 1.35;
}
.tour-content {
    font-size: 13px;
    line-height: 1.6;
    color: #cbd5e1;
    margin: 0 0 12px 0;
}

.tour-video-btn {
    background: #ef4444;
    color: #ffffff;
    border: none;
    font-weight: 700;
    font-size: 12.5px;
    border-radius: 8px;
    padding: 8px 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
}
.tour-video-btn:hover {
    background: #dc2626;
}

.tour-hint-box {
    background: rgba(113, 112, 255, 0.08);
    border: 1px solid rgba(113, 112, 255, 0.2);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 12.5px;
    color: #c7d2fe;
    line-height: 1.5;
    margin-bottom: 14px;
}

.tour-stepper-dots {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 14px;
}
.tour-dot {
    height: 5px;
    width: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.25s ease;
}
.tour-dot.active {
    width: 22px;
    background: #7170ff;
    box-shadow: 0 0 10px #7170ff;
}

.tour-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.tour-btn-skip {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
}
.tour-btn-skip:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}
.tour-nav-btns {
    display: flex;
    gap: 8px;
}
.tour-btn-prev {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}
.tour-btn-prev:hover {
    background: rgba(255, 255, 255, 0.1);
}
.tour-btn-next {
    background: linear-gradient(135deg, #5b50e6, #7c6cf2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-radius: 8px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 14px rgba(91, 80, 230, 0.45);
    transition: all 0.2s ease;
}
.tour-btn-next:hover {
    background: linear-gradient(135deg, #6c60ff, #8b7cf8);
    box-shadow: 0 6px 20px rgba(91, 80, 230, 0.65);
    transform: translateY(-1px);
}

/* ============================================================
   YOUTUBE VIDEO MODAL PLAYER & CHOICE POPUP
   ============================================================ */
.guide-video-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10010;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.guide-video-dialog {
    background: #11141c;
    border: 1px solid rgba(239, 68, 68, 0.35);
    border-radius: 14px;
    width: 820px;
    max-width: 96vw;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95), 0 0 40px rgba(239, 68, 68, 0.2);
    overflow: hidden;
    animation: tourDialogPop 0.25s ease;
}
.guide-video-dialog .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.yt-badge {
    background: #ef4444;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 5px;
    letter-spacing: 0.5px;
}
.guide-video-player-container {
    position: relative;
    padding-top: 56.25%;
    width: 100%;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}
.guide-video-player-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.guide-video-info-box {
    margin-top: 12px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 13px;
    color: #cbd5e1;
}

/* GUIDE CHOICE MODAL */
.guide-choice-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 10008;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.guide-choice-dialog {
    background: #11141c;
    border: 1px solid rgba(124, 108, 242, 0.35);
    border-radius: 14px;
    width: 520px;
    max-width: 94vw;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(124, 108, 242, 0.2);
    padding: 22px 24px;
    animation: tourDialogPop 0.25s ease;
}
.guide-choice-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 12px;
}
.guide-choice-card:hover {
    background: rgba(124, 108, 242, 0.12);
    border-color: rgba(124, 108, 242, 0.4);
    transform: translateY(-2px);
}
.guide-choice-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

/* ==========================================================================
   DTN SHOP - DEPOSIT SECTION (KHỚP 100% GIAO DIỆN ẢNH 2)
   ========================================================================== */

.deposit-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #12151b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 20px 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.deposit-header-left .deposit-title {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 6px 0;
    letter-spacing: -0.3px;
}

.deposit-header-left .deposit-subtitle {
    font-size: 13.5px;
    color: #94a3b8;
    margin: 0;
}

.deposit-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.deposit-balance-lbl {
    font-size: 12.5px;
    color: #94a3b8;
    font-weight: 600;
}

.deposit-balance-val {
    font-size: 22px;
    font-weight: 800;
    color: #10b981;
    letter-spacing: 0.5px;
}

.deposit-grid-dtn {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 24px;
    align-items: start;
}

@media (max-width: 992px) {
    .deposit-grid-dtn {
        grid-template-columns: 1fr;
    }
    .deposit-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
    .deposit-header-right {
        align-items: flex-start;
    }
}

.deposit-card-left,
.deposit-card-right {
    background: #12151b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.deposit-box-header {
    margin-bottom: 20px;
}

.deposit-box-header.text-center {
    text-align: center;
}

.deposit-box-title {
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 4px 0;
}

.deposit-box-desc {
    font-size: 13px;
    color: #94a3b8;
    margin: 0;
}

.deposit-field-group {
    margin-bottom: 20px;
}

.deposit-field-lbl {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #cbd5e1;
    margin-bottom: 10px;
}

/* 1. Payment Method Tabs (Khớp 100% Ảnh 1) */
.deposit-methods-tabs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

@media (max-width: 768px) {
    .deposit-methods-tabs {
        grid-template-columns: repeat(3, 1fr);
    }
}

.deposit-method-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 10px;
    background: #161922;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.deposit-method-btn .method-icon-wrap {
    font-size: 18px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.deposit-method-btn:hover {
    background: #1c202c;
    border-color: rgba(99, 102, 241, 0.4);
    color: #ffffff;
}

.deposit-method-btn.active {
    background: #1e2230;
    border: 1.5px solid #6366f1;
    color: #ffffff;
}

/* 2. Amount Presets Grid (3x3) */
.deposit-presets-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.deposit-preset-btn {
    background: #161922;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 12px 10px;
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.deposit-preset-btn:hover {
    background: #1c202c;
    border-color: rgba(99, 102, 241, 0.35);
    color: #ffffff;
}

.deposit-preset-btn.active {
    background: #202538;
    border-color: #6366f1;
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.28);
}

/* 3. Custom Amount Input Box */
.deposit-amount-input-box {
    display: flex;
    align-items: stretch;
    background: #161922;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.deposit-amount-input-box:focus-within {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.deposit-curr-tag {
    background: #1c202c;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 700;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    user-select: none;
}

.deposit-amount-input-box input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    padding: 12px 16px;
}

/* Submit Button */
.deposit-btn-submit {
    width: 100%;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 13px 20px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
    transition: all 0.25s ease;
    margin-top: 8px;
    letter-spacing: 0.3px;
}

.deposit-btn-submit:hover {
    background: linear-gradient(135deg, #4f46e5, #4338ca);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
    transform: translateY(-1px);
}

.deposit-btn-submit:active {
    transform: translateY(0);
}

/* Guide Notes Card */
.deposit-guide-notes-card {
    background: #12151b;
    border: 1px solid rgba(99, 102, 241, 0.22);
    border-radius: 12px;
    padding: 16px 18px;
    margin-top: 22px;
}

.deposit-guide-notes-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 700;
    color: #e0e7ff;
    margin-bottom: 10px;
}

.deposit-guide-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 12.5px;
    color: #94a3b8;
    line-height: 1.5;
}

.deposit-guide-bullets strong {
    color: #cbd5e1;
}

.deposit-guide-bullets .highlight-green {
    color: #10b981;
    font-weight: 700;
}

.deposit-guide-bullets .highlight-blue {
    color: #818cf8;
    font-weight: 700;
}

/* Right Card: Process Box */
.deposit-process-box {
    background: #161922;
    border: 1px dashed rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    padding: 20px;
    margin-top: 8px;
}

.deposit-process-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 14px;
}

.deposit-process-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.5;
}

.deposit-process-steps strong {
    color: #ffffff;
}

/* Active Bill State */
.deposit-active-bill-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
}

.deposit-timer {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #ef4444;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 20px;
}

.deposit-qr-wrap {
    background: #ffffff;
    border-radius: 14px;
    padding: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    width: 220px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.deposit-qr-wrap img {
    max-width: 100%;
    max-height: 100%;
    display: block;
    border-radius: 6px;
}

.deposit-details-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.deposit-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #161922;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
}

.deposit-detail-item .lbl {
    color: #94a3b8;
    font-weight: 600;
}

.deposit-detail-item .val {
    color: #ffffff;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.deposit-detail-item .val.highlight {
    color: #10b981;
    font-size: 15px;
    font-weight: 800;
}

.deposit-detail-item.highlight-box {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
}

.deposit-detail-item.highlight-box .val strong {
    color: #a5b4fc;
    font-size: 15px;
    font-family: monospace;
    letter-spacing: 0.5px;
}

.btn-copy-pill {
    background: #1c202c;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-copy-pill:hover {
    background: #232838;
    color: #ffffff;
}

.btn-copy-pill.accent {
    background: #6366f1;
    color: #ffffff;
    border: none;
}

.btn-copy-pill.accent:hover {
    background: #4f46e5;
}

.deposit-wait-status {
    font-size: 13px;
    color: #f59e0b;
    font-weight: 600;
    text-align: center;
    padding: 8px 12px;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 8px;
    width: 100%;
}

.deposit-btn-cancel {
    background: transparent;
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #ef4444;
    font-size: 13px;
    font-weight: 700;
    padding: 9px 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.deposit-btn-cancel:hover {
    background: rgba(239, 68, 68, 0.12);
}


/* ==========================================================================
   DTN SHOP - GLOBAL SITE FOOTER & CTA (KHỚP 100% GIAO DIỆN ẢNH 1)
   ========================================================================== */

.site-footer {
    width: 100%;
    margin-top: 60px;
    background: #0c0f1a;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    z-index: 10;
}

/* 1. Footer CTA Card "Bạn cần hỗ trợ?" */
.footer-cta-container {
    width: 100%;
    max-width: 1240px;
    margin: 36px auto 24px auto;
    padding: 0 20px;
    box-sizing: border-box;
    transform: none;
}

.footer-cta-card {
    background: #141124;
    border: 1px solid #2e2648;
    border-radius: 16px;
    padding: 42px 30px;
    text-align: center;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
}

.footer-cta-title {
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 10px 0;
    letter-spacing: -0.3px;
}

.footer-cta-desc {
    font-size: 15px;
    color: #94a3b8;
    margin: 0 0 24px 0;
    max-width: 600px;
    line-height: 1.6;
}

.footer-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    background: #4f46e5;
    color: #ffffff !important;
    text-decoration: none;
    font-size: 14.5px;
    font-weight: 700;
    padding: 12px 36px;
    border-radius: 25px;
    box-shadow: 0 4px 18px rgba(79, 70, 229, 0.35);
    transition: background 0.2s ease;
    cursor: default;
    user-select: none;
}

.footer-cta-btn:hover {
    background: #4338ca;
    transform: none;
    box-shadow: 0 4px 18px rgba(79, 70, 229, 0.35);
}

/* 2. Main Footer Grid (4 Cột) */
.footer-main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px 30px 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 36px;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }
}

@media (max-width: 560px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .footer-cta-card {
        padding: 28px 16px;
    }
    .footer-cta-title {
        font-size: 20px;
    }
}

/* Cột 1: Brand & Socials */
.footer-brand-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.footer-logo-box {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 3px 12px rgba(99, 102, 241, 0.35);
}

.footer-brand-title {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.2px;
}

.footer-brand-title .accent {
    color: #818cf8;
}

.footer-brand-desc {
    font-size: 13.5px;
    color: #94a3b8;
    line-height: 1.65;
    margin: 0 0 18px 0;
    max-width: 340px;
}

.footer-social-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #161922;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #cbd5e1 !important;
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.footer-social-btn:hover {
    background: #1f2742;
    border-color: rgba(99, 102, 241, 0.4);
    color: #ffffff !important;
    transform: translateY(-2px);
}

/* Cột 2, 3, 4: Links */
.footer-col-title {
    font-size: 13.5px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.5px;
    margin: 0 0 16px 0;
    text-transform: uppercase;
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links-list li a {
    color: #94a3b8 !important;
    text-decoration: none;
    font-size: 13.5px;
    transition: all 0.2s ease;
    display: inline-block;
}

.footer-links-list li a:hover {
    color: #818cf8 !important;
    transform: translateX(3px);
}

/* 3. Dải đáy: Copyright & Badges */
.footer-bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 22px;
    flex-wrap: wrap;
    gap: 14px;
}

.footer-copyright {
    font-size: 13px;
    color: #64748b;
}

/* ==========================================================================
   DTN SHOP - TRANG TÀI KHOẢN (KHỚP 100% GIAO DIỆN ẢNH 2)
   CODE SẠCH, CHUẨN UX SINH VIÊN ĐẠI HỌC NĂM 4, KHÔNG CẦU KỲ
   ========================================================================== */

/* 1. Header Profile Banner */
.profile-header-card {
    background: #141124;
    border: 1px solid #2e2648;
    border-radius: 16px;
    padding: 22px 26px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    margin-bottom: 18px;
}

@media (max-width: 768px) {
    .profile-header-card {
        flex-direction: column;
        align-items: flex-start;
    }
}

.profile-header-left {
    display: flex;
    align-items: center;
    gap: 18px;
}

.profile-avatar-wrap {
    position: relative;
    width: 66px;
    height: 66px;
    flex-shrink: 0;
    cursor: pointer;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
}

.profile-avatar-wrap:hover {
    border-color: #38bdf8;
    transform: scale(1.03);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.35);
}

.profile-avatar-box {
    width: 100%;
    height: 100%;
    border-radius: 14px;
    background: #1e1b4b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 600;
    color: #a5b4fc;
    text-transform: uppercase;
    user-select: none;
}

.profile-avatar-overlay {
    display: flex !important;
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    border-radius: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    pointer-events: none;
}

.profile-avatar-wrap:hover .profile-avatar-overlay {
    opacity: 1;
}

.profile-online-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #22c55e;
    border: 2px solid #141124;
    z-index: 2;
}

.profile-user-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.profile-user-row1 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-username {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.2px;
}

.profile-badge-member {
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.4);
    color: #a5b4fc;
    font-size: 10.5px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.profile-fullname {
    font-size: 13px;
    font-weight: 500;
    color: #94a3b8;
}

.profile-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: #94a3b8;
    margin-top: 2px;
    flex-wrap: wrap;
}

.profile-meta-item {
    display: flex;
    align-items: center;
}

.profile-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 12px 20px;
}

@media (max-width: 768px) {
    .profile-header-right {
        align-items: flex-start;
        width: 100%;
    }
}

.profile-balance-label {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.profile-balance-value {
    font-size: 20px;
    font-weight: 600;
    color: #38bdf8;
}

/* 2. Thống kê 4 thẻ */
.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

@media (max-width: 900px) {
    .profile-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .profile-stats-grid {
        grid-template-columns: 1fr;
    }
}

.profile-stat-card {
    background: #141124;
    border: 1px solid #2e2648;
    border-radius: 14px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.profile-stat-card:hover {
    border-color: #6366f1;
}

.profile-stat-card.clickable {
    cursor: pointer;
}

.profile-stat-icon-wrap {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon-blue {
    background: var(--theme-bg-glow);
    color: var(--theme-primary);
    border: 1px solid var(--theme-border);
}

.stat-icon-purple {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.stat-icon-green {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.stat-icon-yellow {
    background: rgba(234, 179, 8, 0.15);
    color: #facc15;
    border: 1px solid rgba(234, 179, 8, 0.3);
}

.profile-stat-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.profile-stat-lbl {
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.profile-stat-val {
    font-size: 17px;
    font-weight: 600;
    color: #ffffff;
}

.profile-stat-sub {
    font-size: 11px;
    color: #10b981;
}

.profile-stat-link {
    font-size: 13px;
    font-weight: 600;
    color: #60a5fa;
    text-decoration: none;
    transition: color 0.2s ease;
}

.profile-stat-link:hover {
    color: #93c5fd;
    text-decoration: underline;
}

/* 3. 2 Form Cards (Thông tin & Bảo mật) */
.profile-forms-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 820px) {
    .profile-forms-grid {
        grid-template-columns: 1fr;
    }
}

.profile-box-card {
    background: #141124;
    border: 1px solid #2e2648;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.profile-box-title {
    display: flex;
    align-items: center;
    font-size: 13.5px;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.profile-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.profile-input-lbl {
    font-size: 12px;
    font-weight: 500;
    color: #94a3b8;
}

.profile-input-box {
    display: flex;
    align-items: center;
    background: #0f0d1b;
    border: 1px solid #28213e;
    border-radius: 8px;
    padding: 0 12px;
    height: 42px;
    gap: 8px;
    transition: border-color 0.2s ease;
}

.profile-input-box:focus-within {
    border-color: #6366f1;
}

.profile-input-box.locked {
    background: #0d0b17;
    border-color: #201a32;
    opacity: 0.85;
}

.profile-input-box input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 500;
    height: 100%;
}

.profile-input-box input:disabled {
    color: #94a3b8;
    cursor: not-allowed;
}

.input-icon-prefix {
    color: #94a3b8;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.input-icon-suffix {
    color: #64748b;
    display: flex;
    align-items: center;
}

.btn-toggle-eye {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
    font-size: 12px;
}

.btn-toggle-eye:hover {
    color: #ffffff;
}

.profile-btn-action {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--theme-gradient, linear-gradient(135deg, #7c6cf2, #6366f1));
    border: none;
    color: #ffffff;
    border-radius: 8px;
    padding: 11px 18px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--theme-glow);
    transition: filter 0.2s ease, transform 0.2s ease;
    margin-top: 6px;
    width: 100%;
}

.profile-btn-action:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    color: #ffffff;
    box-shadow: none;
}

/* Responsive cho Bảng Cấp Bậc Thành Viên & Quyền Lợi Chiết Khấu */
@media (max-width: 992px) {
    .profile-tier-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 520px) {
    .profile-tier-grid {
        grid-template-columns: 1fr !important;
    }
}

.tier-col-card {
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.tier-col-card:hover {
    border-color: rgba(56, 189, 248, 0.4) !important;
    transform: translateY(-2px);
}

/* ==========================================================================
   FLOATING SUPPORT CHAT FAB & EXPANDABLE MENU (Góc hỗ trợ dạng logo chat)
   ========================================================================== */
.support-corner-widget {
    position: fixed;
    bottom: 24px;
    right: 22px;
    z-index: 99998;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    pointer-events: auto;
    font-family: inherit;
}

/* Nút Tròn FAB Logo Tin Nhắn */
.support-corner-fab {
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--theme-gradient, linear-gradient(135deg, #7c6cf2 0%, #6366f1 100%));
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: var(--theme-glow, 0 6px 20px rgba(124, 108, 242, 0.5)), 0 2px 8px rgba(0, 0, 0, 0.4);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
    padding: 0;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, background 0.3s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.support-corner-fab:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 26px var(--theme-glow, rgba(124, 108, 242, 0.65)), 0 4px 12px rgba(0, 0, 0, 0.5);
}

.support-corner-fab:active {
    transform: scale(0.94);
}

.support-corner-fab.open {
    background: linear-gradient(135deg, #e11d48, #be123c);
    box-shadow: 0 6px 20px rgba(225, 29, 72, 0.5), 0 2px 8px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Pulse animation effect */
.support-corner-fab-pulse {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: var(--theme-bg-glow, rgba(124, 108, 242, 0.45));
    z-index: -1;
    animation: supportPulse 2s infinite ease-out;
    pointer-events: none;
}

.support-corner-fab.open .support-corner-fab-pulse {
    display: none;
}

@keyframes supportPulse {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }
    70% {
        transform: scale(1.4);
        opacity: 0;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

.support-corner-fab-icon-chat,
.support-corner-fab-icon-close {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

/* Chấm xanh Online */
.support-corner-fab-dot {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: #22c55e;
    border: 2px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.8);
}

/* Menu danh sách các liên kết mở ra */
.support-corner-menu {
    display: none;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
    min-width: 210px;
    background: rgba(18, 20, 29, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 10px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.05);
    opacity: 0;
    transform: translateY(14px) scale(0.96);
    transform-origin: bottom right;
    transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.support-corner-menu.active {
    display: flex;
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.support-corner-menu-title {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
    padding: 2px 6px 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Item liên kết trong menu */
.support-corner-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 10px;
    text-decoration: none !important;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.support-corner-item:hover {
    transform: translateX(-3px);
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.18);
}

.support-corner-item-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.support-corner-item-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex: 1;
}

.support-corner-item-name {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.support-corner-item-sub {
    font-size: 10.5px;
    color: #94a3b8;
    line-height: 1.2;
}

/* Màu riêng cho Zalo */
.support-corner-zalo:hover {
    background: rgba(0, 104, 255, 0.16);
    border-color: rgba(0, 104, 255, 0.4);
}
.support-corner-zalo .support-corner-item-icon {
    background: #ffffff;
}
.support-corner-zalo:hover .support-corner-item-name {
    color: #60a5fa;
}

/* Màu riêng cho Telegram */
.support-corner-tele:hover {
    background: rgba(34, 158, 217, 0.16);
    border-color: rgba(34, 158, 217, 0.4);
}
.support-corner-tele .support-corner-item-icon {
    background: #229ED9;
}
.support-corner-tele:hover .support-corner-item-name {
    color: #38bdf8;
}

/* Màu riêng cho Facebook */
.support-corner-fb:hover {
    background: rgba(24, 119, 242, 0.16);
    border-color: rgba(24, 119, 242, 0.4);
}
.support-corner-fb .support-corner-item-icon {
    background: #1877f2;
}
.support-corner-fb:hover .support-corner-item-name {
    color: #60a5fa;
}

/* Responsive di động */
@media (max-width: 600px) {
    .support-corner-widget {
        bottom: 18px;
        right: 16px;
    }
    .support-corner-fab {
        width: 48px;
        height: 48px;
    }
    .support-corner-fab svg {
        width: 24px;
        height: 24px;
    }
    .support-corner-menu {
        min-width: 195px;
    }
}












/* ================================================================
   PHỐI MÀU NÉT ĐẸP ZERMANGO (KẾT HỢP XANH - ĐỎ - TÍM VÀ GIỮ DẢI LED ĐA SẮC)
   Đảm bảo dải LED chạy không đổi; phối hợp màu sắc sống động, sắc nét trên nền đen sâu
   ================================================================ */

/* 1. Dải LED xoay quanh thông báo Admin Popup - Tuyệt đối giữ nguyên dải màu RGB đa sắc */
.popup-notification-modal .admin-notice-card::before {
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        transparent 40deg,
        rgba(110, 130, 255, 0.2) 60deg,
        #6366f1 90deg,
        #a855f7 125deg,
        #ec4899 145deg,
        #38bdf8 175deg,
        rgba(56, 189, 248, 0.25) 200deg,
        transparent 230deg,
        transparent 360deg
    ) !important;
    animation: borderBeamRotate 4s linear infinite !important;
}

/* 2. Ba thẻ Thống Kê Trang Chủ: Phối màu 3 sắc thái (Xanh Cyber - Tím Zermango - Đỏ Hồng VIP) */
.dashboard-stats-row .d-stat-card:nth-child(1) .d-stat-icon {
    background: rgba(14, 165, 233, 0.15) !important;
    border: 1px solid rgba(56, 189, 248, 0.35) !important;
    color: #38bdf8 !important;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.2) !important;
}
.dashboard-stats-row .d-stat-card:nth-child(2) .d-stat-icon {
    background: rgba(124, 108, 242, 0.16) !important;
    border: 1px solid rgba(124, 108, 242, 0.4) !important;
    color: #a78bfa !important;
    box-shadow: 0 0 12px rgba(124, 108, 242, 0.25) !important;
}
.dashboard-stats-row .d-stat-card:nth-child(3) .d-stat-icon {
    background: rgba(244, 63, 94, 0.15) !important;
    border: 1px solid rgba(244, 63, 94, 0.35) !important;
    color: #fb7185 !important;
    box-shadow: 0 0 12px rgba(244, 63, 94, 0.2) !important;
}

/* 3. Badge SALE & FLASH SALE: Giữ màu đỏ rực lửa nổi bật - Không bị ép thành tím đơn sắc */
.badge-sale-tag,
.card-sale-badge,
.badge-flash-sale,
.flash-badge {
    background: linear-gradient(135deg, #ef4444, #f43f5e) !important;
    color: #ffffff !important;
    box-shadow: 0 3px 12px rgba(239, 68, 68, 0.45) !important;
    border: none !important;
}

/* 4. Huy hiệu "ĐÃ XÁC MINH" & Icon Bảo mật: Giữ sắc Xanh Cyber công nghệ */
.feedback-verified-badge,
.welcome-verified-badge {
    background: rgba(14, 165, 233, 0.16) !important;
    border: 1px solid rgba(56, 189, 248, 0.35) !important;
    color: #38bdf8 !important;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.2) !important;
}

/* 5. Gói lựa chọn thẻ sản phẩm DTNSHOP: Sắc Xanh Cyber rõ nét */
.dtn-pkg-pill {
    background: rgba(14, 165, 233, 0.12) !important;
    border: 1px solid rgba(56, 189, 248, 0.3) !important;
    color: #38bdf8 !important;
}

/* 6. Header Store Title: Gradient chuyển màu sắc nét Tím sang Xanh Cyber */
.welcome-store-title {
    background: linear-gradient(135deg, #c4b5fd 0%, #38bdf8 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    font-weight: 900 !important;
}

/* 7. Thẻ Hướng Dẫn Mua Người Mới: Điểm nhấn Đỏ (Người mới) + Tím (1 phút là biết) */
.guide-badge {
    background: linear-gradient(135deg, #f43f5e, #ef4444) !important;
    color: #ffffff !important;
    font-weight: 800 !important;
}
.guide-quick-tag {
    background: rgba(124, 108, 242, 0.18) !important;
    color: #c4b5fd !important;
    border: 1px solid rgba(124, 108, 242, 0.35) !important;
}

/* 8. Nền đen sâu thẳm Zermango cho tất cả khung thẻ sản phẩm và panel */
.product-card,
.dtn-card,
.download-card,
.deposit-card-left,
.deposit-card-right,
.dashboard-welcome-card,
.dashboard-guide-card,
.dashboard-marquee-bar,
.modal {
    background-color: #12151b !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.product-card:hover,
.dtn-card:hover,
.download-card:hover,
.d-stat-card:hover {
    border-color: rgba(124, 108, 242, 0.45) !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.7), 0 0 18px rgba(124, 108, 242, 0.18) !important;
}


/* Đảm bảo toàn bộ layout trang đều đen tuyền chuẩn Zermango - KHÔNG CÓ Ô LƯỚI */
html, body, .app {
    background-color: #08090c !important;
}
.side {
    background: #08090c !important;
    border-right: 1px solid rgba(255, 255, 255, 0.06) !important;
}
.topbar {
    background: rgba(8, 9, 12, 0.94) !important;
    backdrop-filter: blur(16px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}
.content {
    background: #08090c !important;
}
.dtn-cat-card,
.dtn-card,
.product-card,
.dashboard-welcome-card,
.dashboard-guide-card,
.dashboard-marquee-bar,
.download-card,
.deposit-card-left,
.deposit-card-right {
    background-color: #10131a !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}
.btn-view-all-products {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
}
.btn-view-all-products:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
}


/* ================================================================
   CỔNG NẠP TIỀN TỰ ĐỘNG TRANG CHỦ (CHUẨN ZERMANGO DASHBOARD)
   Hai banner Nạp Chuyển Khoản & Nạp Thẻ Cào với nút NẠP NGAY nổi lên
   ================================================================ */
.home-deposit-portal-section {
    background: rgba(15, 18, 26, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 16px 18px;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    margin-top: 0;
    margin-bottom: 24px;
    width: 100%;
}

.home-deposit-portal-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.8), rgba(99, 102, 241, 0.8), transparent);
    opacity: 0.8;
}

.home-deposit-portal-section:hover {
    border-color: rgba(34, 197, 94, 0.35);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35), 0 0 20px rgba(34, 197, 94, 0.1);
}

.home-deposit-portal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.portal-header-left {
    display: flex;
    align-items: center;
    gap: 9px;
}

.portal-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 10px #22c55e, 0 0 4px #4ade80;
    display: inline-block;
    flex-shrink: 0;
    animation: statusPulse 2s infinite ease-in-out;
}

@keyframes statusPulse {
    0%, 100% {
        box-shadow: 0 0 8px #22c55e, 0 0 14px rgba(34, 197, 94, 0.4);
        opacity: 1;
    }
    50% {
        box-shadow: 0 0 3px #22c55e, 0 0 6px rgba(34, 197, 94, 0.2);
        opacity: 0.6;
    }
}

.portal-status-title {
    font-size: 14.5px;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin: 0;
}

.portal-live-badge {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
    font-size: 10.5px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 12px;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.home-deposit-portal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
    max-width: 1080px;
}

@media (max-width: 768px) {
    .home-deposit-portal-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        max-width: 100%;
    }
}

.portal-deposit-card {
    position: relative;
    display: block;
    width: 100%;
    max-width: 520px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s ease-out, border-color 0.2s ease-out, box-shadow 0.2s ease-out;
}

.portal-deposit-card:hover {
    transform: translateY(-3px);
    border-color: rgba(124, 92, 255, 0.5);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 18px rgba(124, 92, 255, 0.3);
}

.portal-deposit-card:active {
    transform: translateY(-1px);
}

.portal-banner-picture {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    line-height: 0;
}

.portal-banner-img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 480 / 204;
    object-fit: cover;
    border-radius: 12px;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: high-quality;
    transition: transform 0.3s ease;
}

.portal-deposit-card:hover .portal-banner-img {
    transform: scale(1.018);
}

/* ==========================================================================
   ZERMANGO DASHBOARD: 2-COLUMN MAIN LAYOUT (Trái: Cập nhật SP, Phải: Cổng nạp tiền)
   ========================================================================== */
.dashboard-split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(320px, 360px);
    gap: 10px;
    align-items: stretch;
    margin-bottom: 24px;
    width: 100%;
}

.dashboard-split-left {
    min-width: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.dashboard-split-left .prod-updates-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}

.dashboard-split-right {
    min-width: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.dashboard-split-right .home-deposit-portal-section {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    flex: 1;
    height: 100%;
    box-sizing: border-box;
}

.dashboard-split-right .home-deposit-portal-grid.vertical-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    max-width: 100%;
}

.dashboard-split-right .portal-deposit-card {
    width: 100%;
    max-width: 100%;
    border-radius: 12px;
}

/* Tiện ích & Cam kết nạp tiền 24/7 (Lấp đầy khoảng trống bên dưới 2 banner, bằng phẳng tuyệt đối với khung trái) */
.portal-deposit-benefits {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.portal-benefit-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 9px;
    padding: 9px 12px;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.portal-benefit-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(34, 197, 94, 0.3);
    transform: translateY(-1px);
}

.p-benefit-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 100%;
}

.p-benefit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.p-benefit-title {
    font-size: 12.5px;
    font-weight: 700;
    color: #f1f5f9;
}

.p-benefit-tag {
    font-size: 11px;
    font-weight: 800;
    color: #4ade80;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    padding: 1px 7px;
    border-radius: 6px;
    letter-spacing: 0.3px;
}

.p-benefit-sub {
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.4;
}

.portal-quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 4px;
}

.btn-portal-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 7px;
    font-size: 11.5px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-portal-action.secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
}

.btn-portal-action.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.22);
}

.btn-portal-action.primary {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(16, 185, 129, 0.3));
    border: 1px solid rgba(34, 197, 94, 0.45);
    color: #4ade80;
}

.btn-portal-action.primary:hover {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.35), rgba(16, 185, 129, 0.5));
    border-color: rgba(34, 197, 94, 0.7);
    color: #fff;
    box-shadow: 0 0 14px rgba(34, 197, 94, 0.35);
}

/* Responsive Tablet & Mobile */
@media (max-width: 992px) {
    .dashboard-split-layout {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .dashboard-split-right {
        order: -1; /* Trên mobile: Cổng nạp tiền tự động xuất hiện ngay dưới Số Dư */
    }
    .dashboard-split-right .home-deposit-portal-grid.vertical-stack {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 12px;
    }
}

@media (max-width: 600px) {
    .dashboard-split-right .home-deposit-portal-grid.vertical-stack {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
}

/* CẬP NHẬT SẢN PHẨM (CHUẨN ZERMANGO) */
.prod-updates-section {
    background: rgba(15, 18, 26, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 16px 18px;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.prod-updates-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.prod-updates-title-wrap {
    display: flex;
    align-items: center;
    gap: 9px;
}

.prod-updates-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #8b5cf6;
    box-shadow: 0 0 10px #8b5cf6;
    flex-shrink: 0;
}

.prod-updates-title {
    margin: 0;
    font-size: 14.5px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.prod-updates-count {
    background: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.35);
    font-size: 11px;
    font-weight: 800;
    padding: 1px 7px;
    border-radius: 12px;
}

.prod-updates-toolbar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}

.prod-updates-search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 8px;
    padding: 8px 12px;
    color: #94a3b8;
    transition: all 0.2s ease;
}

.prod-updates-search-box:focus-within {
    border-color: #6366f1;
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.28);
    background: rgba(0, 0, 0, 0.6);
}

.prod-updates-search-box input {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 13px;
    width: 100%;
}

.prod-updates-search-box input::placeholder {
    color: #64748b;
}

.prod-updates-filter-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.pu-tab-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pu-tab-btn:hover {
    background: rgba(255, 255, 255, 0.09);
    color: #fff;
}

.pu-tab-btn.active {
    background: #6366f1;
    border-color: #6366f1;
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.4);
}

.prod-updates-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 480px;
    overflow-y: auto;
    padding-right: 4px;
}

.prod-updates-list::-webkit-scrollbar {
    width: 5px;
}

.prod-updates-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
}

.prod-updates-list::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.4);
    border-radius: 4px;
}

.prod-updates-list::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.7);
}

.pu-card {
    background: rgba(20, 24, 34, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    padding: 13px 15px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.pu-card:hover {
    transform: translateY(-2px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.pu-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 7px;
    flex-wrap: wrap;
    gap: 6px;
}

.pu-badges {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.pu-badge-pin {
    background: rgba(234, 179, 8, 0.15);
    color: #eab308;
    border: 1px solid rgba(234, 179, 8, 0.3);
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.pu-badge-type {
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.pu-badge-type.feature {
    background: rgba(6, 182, 212, 0.15);
    color: #06b6d4;
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.pu-badge-type.update {
    background: rgba(168, 85, 247, 0.15);
    color: #a855f7;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.pu-badge-type.fix {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.pu-badge-type.maint {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.pu-badge-cat {
    background: rgba(255, 255, 255, 0.06);
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 10.5px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
}

.pu-card-date {
    font-size: 11.5px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 4px;
}

.pu-card-title {
    margin: 0 0 5px 0;
    font-size: 14px;
    font-weight: 700;
    color: #f8fafc;
    line-height: 1.4;
}

.pu-card-desc {
    margin: 0;
    font-size: 12.5px;
    color: #94a3b8;
    line-height: 1.5;
}

.pu-highlight-link {
    color: #818cf8;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}

.pu-highlight-link:hover {
    color: #a5b4fc;
}

.pu-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 9px;
    padding-top: 7px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.pu-card-source {
    font-size: 11px;
    color: #64748b;
}

.pu-card-more {
    font-size: 11.5px;
    font-weight: 600;
    color: #818cf8;
    display: flex;
    align-items: center;
    gap: 3px;
    transition: transform 0.2s ease;
}

.pu-card:hover .pu-card-more {
    transform: translateX(3px);
    color: #a5b4fc;
}

/* Modal Chi Tiết Cập Nhật */
.prod-update-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.prod-update-modal-dialog {
    background: #11141d;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    width: 100%;
    max-width: 540px;
    padding: 22px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.prod-update-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.pum-close-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.pum-close-btn:hover {
    color: #fff;
}

.pum-title {
    margin: 0 0 8px 0;
    font-size: 17px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.35;
}

.pum-date {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 14px;
}

.pum-content {
    font-size: 13.5px;
    color: #cbd5e1;
    line-height: 1.65;
    white-space: pre-line;
}

.prod-update-modal-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pum-btn-action {
    background: #6366f1;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.pum-btn-action:hover {
    background: #4f46e5;
}
