/* develop HAILX:0787086710 */
/* ===== V12 PREMIUM DARK STOREFRONT STYLE ===== */
:root {
    --bg: #07080a;
    --bg2: #0b0c10;
    --surface: #101217;
    --surface2: #161821;
    --border: rgba(26, 92, 255, 0.12);
    --text: #e2e8f0;
    --muted: #708098;
    --accent: #1a5cff;
    --accent2: #0052fe;
    --accent3: #0040c0;
    --gold: #ffd700;
    --green: #10b981;
    --red: #ef4444;
    --glow: 0 0 24px rgba(26, 92, 255, 0.25);
    --shadow: 0 12px 32px rgba(0, 0, 0, 0.75);
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 16px;
    --r-xl: 20px;
}

* {
    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);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-color: var(--bg);
    background-image: 
        linear-gradient(rgba(26, 92, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(26, 92, 255, 0.04) 1px, transparent 1px),
        radial-gradient(ellipse at top left, rgba(26, 92, 255, 0.16), transparent 55%),
        radial-gradient(ellipse at bottom right, rgba(0, 82, 254, 0.12), transparent 55%);
    background-size: 40px 40px, 40px 40px, auto, auto;
    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: #0d1117;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    position: fixed;
    inset: 0 auto 0 0;
    padding: 16px 12px;
    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;
}

/* Admin App Layout (Keeps full sidebar for admin panel on desktop) */
@media (min-width: 993px) {
    .admin-app .side {
        width: 260px !important;
        padding: 20px 14px !important;
    }
    .admin-app .main {
        margin-left: 260px !important;
        width: calc(100% - 260px) !important;
        max-width: calc(100% - 260px) !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: 50% !important;
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    display: grid !important;
    place-items: center !important;
    font-weight: 900;
    color: #ffffff;
    font-size: 16px;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    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: 50% !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: 15px;
    letter-spacing: -.3px;
    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: #161b24;
    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: 14px;
    padding: 12px 14px;
    border-radius: 10px;
    color: #8b949e;
    background: transparent;
    border: 0;
    width: 100%;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all .2s ease;
    font-family: inherit;
    text-align: left;
    text-decoration: none;
    white-space: nowrap;
    position: relative;
}

.nav a:hover, .nav button:hover {
    background: rgba(59, 130, 246, 0.12);
    color: #ffffff;
    transform: none;
}

.nav .active {
    background: #2563eb !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4) !important;
}

.nav svg {
    width: 22px;
    height: 22px;
    min-width: 22px;
    flex-shrink: 0;
    opacity: .9;
}

.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: #0f131a;
    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;
    max-width: 560px;
}

.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: #161b24;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 0 14px;
    height: 40px;
    width: 100%;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.topbar-search:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 12px rgba(59, 130, 246, 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: 10px;
    flex-shrink: 0;
}

.topbar-lang-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #161b24;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 700;
    color: #94a3b8;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s;
}

.topbar-lang-pill:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.topbar-balance-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(37, 99, 235, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.35);
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 13.5px;
    font-weight: 700;
    color: #60a5fa;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.topbar-balance-pill svg {
    width: 16px;
    height: 16px;
}

.topbar-balance-pill:hover {
    background: rgba(37, 99, 235, 0.22);
    border-color: #3b82f6;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.25);
    transform: translateY(-1px);
}

.topbar-user-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #161b24;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 4px 10px 4px 5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.topbar-user-pill:hover {
    border-color: rgba(255, 255, 255, 0.25);
}

.topbar-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 800;
    font-size: 13px;
}

.topbar-username {
    font-size: 13px;
    font-weight: 600;
    color: #e2e8f0;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar-logout-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    display: grid;
    place-items: center;
    padding: 2px;
    border-radius: 4px;
    transition: color 0.2s;
}

.topbar-logout-btn:hover {
    color: #ef4444;
}

.hamb {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #161b24;
    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: #212836;
    border-color: rgba(255, 255, 255, 0.25);
    color: #3b82f6;
}

.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: #10141d;
    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;
}

.marquee-scroll-text {
    display: inline-block;
    white-space: nowrap;
    animation: marqueeScroll 25s linear infinite;
    font-size: 13px;
    color: #cbd5e1;
    font-weight: 500;
}

.marquee-scroll-container:hover .marquee-scroll-text {
    animation-play-state: paused;
}

@keyframes marqueeScroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* System Welcome / Notice Card (Shinmod Style - Image 1) */
.dashboard-welcome-card {
    background: #10141d;
    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: #141824;
    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: #10141d;
    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: #141822;
    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: #1e2638;
    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: #141822;
    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, rgba(26,92,255,0.09), rgba(26,92,255,0.03));
    border: 1px solid rgba(26, 92, 255, 0.28);
    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 rgba(26,92,255,0.08), 0 20px 70px rgba(0,0,0,.2);
}

.notice svg {
    flex-shrink: 0;
    color: #4d8aff;
    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: rgba(26, 92, 255, 0.45);
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.45), 0 0 20px rgba(26, 92, 255, 0.15);
}

.product-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    background: radial-gradient(circle at 50% 35%, rgba(26, 92, 255, 0.08), 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: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(26, 92, 255, 0.35);
}

.btn.primary:hover {
    box-shadow: 0 12px 28px rgba(26, 92, 255, 0.5);
    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: rgba(59, 130, 246, 0.12); color: #3b82f6; }
.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,.5);
    }
    
    .app.menu-open .sidebar-overlay {
        opacity: 1;
        pointer-events: auto;
    }
    
    .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: hidden !important;
    }

    .topbar-left {
        max-width: none;
        flex: 1;
        min-width: 0;
        gap: 6px;
    }

    .topbar-search {
        flex: 1;
        min-width: 60px;
        max-width: 160px;
        height: 36px;
        padding: 0 8px;
    }

    .topbar-search input {
        font-size: 12px;
    }

    .topbar-lang-pill {
        display: none !important;
    }

    .topbar-balance-pill {
        padding: 4px 8px;
        font-size: 12px;
        max-width: 110px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .topbar-balance-pill span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .topbar-right {
        gap: 6px;
        flex-shrink: 0;
    }

    .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 8px 3px 4px !important;
        gap: 6px !important;
        max-width: 135px !important;
        flex-shrink: 0 !important;
    }

    .topbar-username {
        max-width: 60px !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: #141822;
    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: #1e2638;
    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;
}

/* Hide middle admin tab navigation buttons to avoid layout shifts */
.admin-tabs, .admin-tab-nav {
    display: none !important;
}

/* =========================================================
   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: 0 2px 8px rgba(26, 92, 255, 0.3);
}

.copy-badge-btn:hover {
    box-shadow: 0 4px 12px rgba(26, 92, 255, 0.5);
    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: rgba(26, 92, 255, 0.35);
}

.payment-method-card.active {
    border-color: var(--accent);
    background: rgba(26, 92, 255, 0.06);
    box-shadow: 0 0 16px rgba(26, 92, 255, 0.15);
}

.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(--accent);
    box-shadow: 0 0 0 2px rgba(26, 92, 255, 0.15);
}

.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: rgba(26, 92, 255, 0.02);
    border: 1px dashed rgba(26, 92, 255, 0.2);
    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: rgba(26, 92, 255, 0.4);
    background: var(--surface);
}
.package-item.active {
    border-color: var(--accent);
    background: rgba(26, 92, 255, 0.08);
    box-shadow: 0 0 12px rgba(26, 92, 255, 0.2);
}
.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: rgba(59, 130, 246, 0.16);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.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: rgba(59, 130, 246, 0.35);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.38), 0 0 12px rgba(59, 130, 246, 0.15);
}

.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: linear-gradient(135deg, #2563eb, #1d4ed8);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.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: 1200px;
}

.product-card {
    background: #141721;
    border: 1.5px solid rgba(59, 130, 246, 0.4);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
    contain: none;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35), 0 0 12px rgba(59, 130, 246, 0.2);
    transform-style: preserve-3d;
    perspective: 1000px;
    will-change: transform;
    transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
    border-color: rgba(96, 165, 250, 0.85);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55), 0 0 20px rgba(59, 130, 246, 0.4), 0 0 4px rgba(147, 197, 253, 0.5);
}

/* 3D Specular Glare - Soft & Subtle (Never obscuring product image or text) */
.product-card-glare {
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background: radial-gradient(circle at 50% 50%, rgba(96, 165, 250, 0.1), transparent 50%);
    opacity: 0;
    mix-blend-mode: screen;
    transition: opacity 0.2s ease;
    z-index: 2;
}

/* 3D Tactile Press on Click ("Khi ấn vô mục") */
.product-card.pressing {
    transform: scale3d(0.96, 0.96, 0.96) translateZ(-18px) !important;
    border-color: #60a5fa !important;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4), 0 0 24px rgba(59, 130, 246, 0.6) !important;
    transition: transform 0.1s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.1s ease !important;
}

.product-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    background: radial-gradient(circle at 50% 40%, rgba(59, 130, 246, 0.08), 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);
    transform-style: preserve-3d;
}

.product-img img {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform .35s ease;
    transform: translateZ(15px);
}

.product-card:hover .product-img img {
    transform: scale(1.06) translateZ(25px);
}

.product-card .badge-stock-tag,
.product-card .badge-top-left-group {
    transform: translateZ(35px);
}

.product-card .product-info {
    transform-style: preserve-3d;
    transform: translateZ(20px);
}

.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 rgba(59, 130, 246, 0.5);
}

/* 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: #2563eb;
    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: 0 4px 12px rgba(37, 99, 235, 0.35);
    flex-shrink: 0;
    font-family: inherit;
}

.btn-card-buy:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.5);
}

/* 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: rgba(59, 130, 246, 0.14);
    border: 1px solid rgba(59, 130, 246, 0.35);
    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: #2563eb;
    border: 1px solid #3b82f6;
    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;
    transition: all 0.2s ease;
}

.btn-order-download:hover {
    background: #1d4ed8;
}

/* 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 rgba(59, 130, 246, 0.2);
    border-top-color: #3b82f6;
    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 rgba(59, 130, 246, 0.3) !important;
    border-radius: 18px !important;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.85), 0 0 50px rgba(59, 130, 246, 0.15) !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), 0 0 70px rgba(59, 130, 246, 0.28) !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: rgba(59, 130, 246, 0.6);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 14px rgba(59, 130, 246, 0.25);
}

#prod-detail-packages-grid .package-item.active {
    transform: scale(1.02);
    border-color: #3b82f6 !important;
    background: rgba(59, 130, 246, 0.18) !important;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4), inset 0 0 8px rgba(59, 130, 246, 0.25) !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: #141822;
    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: #1e2638;
    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: #10141d;
    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: #2563eb;
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.45);
    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: linear-gradient(135deg, #2563eb, #1d4ed8);
    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: 0 4px 14px rgba(37, 99, 235, 0.35);
    text-decoration: none;
    letter-spacing: normal;
    box-sizing: border-box;
    margin-top: 4px;
}

.btn-download-primary:hover {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.5);
    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;
}


