/* ==========================================================
   HTD SHOP - NEXT-GEN ULTRA-PREMIUM MODERN DESIGN SYSTEM
   LIGHT & DARK MODE • TRUMCLONE TYPOGRAPHY (INTER & SPACE GROTESK)
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700;800&display=swap');

/* DARK THEME */
:root, [data-theme="dark"] {
    --font-main: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-heading: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --rs-site-font: "Inter", "Segoe UI", Roboto, Arial, sans-serif;

    --bg-body: #090d16;
    --bg-surface: #0f172a;
    --bg-surface-elevated: #17223b;
    --bg-input: #1b2640;
    --bg-hover: rgba(255, 255, 255, 0.05);
    
    --border-subtle: #1e2b45;
    --border-strong: #2d3f66;
    --border-focus: #3b82f6;
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --brand-primary: #3b82f6;
    --brand-gradient: linear-gradient(135deg, #2563eb 0%, #3b82f6 50%, #60a5fa 100%);
    --brand-glow: 0 4px 20px rgba(59, 130, 246, 0.35);
    
    --accent-success: #10b981;
    --accent-warning: #f59e0b;
    --accent-danger: #ef4444;
    --accent-purple: #8b5cf6;
    --accent-cyan: #06b6d4;

    --badge-bg-success: rgba(16, 185, 129, 0.12);
    --badge-bg-warning: rgba(245, 158, 11, 0.12);
    --badge-bg-danger: rgba(239, 68, 68, 0.12);
    --badge-bg-primary: rgba(59, 130, 246, 0.12);
    
    --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
    --card-shadow-hover: 0 20px 35px -10px rgba(0, 0, 0, 0.6), 0 0 15px rgba(59, 130, 246, 0.15);
    --navbar-bg: rgba(15, 23, 42, 0.9);
    --footer-bg: #060910;
    --glass-bg: rgba(15, 23, 42, 0.75);
}

/* LIGHT THEME */
[data-theme="light"] {
    --font-main: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-heading: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --rs-site-font: "Inter", "Segoe UI", Roboto, Arial, sans-serif;

    --bg-body: #f4f6fb;
    --bg-surface: #ffffff;
    --bg-surface-elevated: #f8fafc;
    --bg-input: #f1f5f9;
    --bg-hover: rgba(0, 0, 0, 0.04);
    
    --border-subtle: #e2e8f0;
    --border-strong: #cbd5e1;
    --border-focus: #2563eb;
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    --brand-primary: #2563eb;
    --brand-gradient: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #3b82f6 100%);
    --brand-glow: 0 4px 18px rgba(37, 99, 235, 0.2);
    
    --accent-success: #059669;
    --accent-warning: #d97706;
    --accent-danger: #dc2626;
    --accent-purple: #7c3aed;
    --accent-cyan: #0891b2;

    --badge-bg-success: rgba(5, 150, 105, 0.08);
    --badge-bg-warning: rgba(217, 119, 6, 0.08);
    --badge-bg-danger: rgba(220, 38, 38, 0.08);
    --badge-bg-primary: rgba(37, 99, 235, 0.08);
    
    --card-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05), 0 2px 6px -1px rgba(0, 0, 0, 0.02);
    --card-shadow-hover: 0 16px 28px -6px rgba(0, 0, 0, 0.1), 0 0 12px rgba(37, 99, 235, 0.12);
    --navbar-bg: rgba(255, 255, 255, 0.94);
    --footer-bg: #e2e8f0;
    --glass-bg: rgba(255, 255, 255, 0.85);
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-main, "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif) !important;
    background-color: var(--bg-body);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
    transition: background-color 0.25s ease, color 0.25s ease;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

h1, h2, h3, h4, h5, h6, .brand-logo, .brand-name, .hero-title, .page-header-title {
    font-family: var(--font-heading, "Space Grotesk", "Inter", sans-serif);
}

.ambient-glow {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 350px;
    background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

a {
    color: var(--brand-primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    opacity: 0.85;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

@media (max-width: 480px) {
    .container {
        padding: 0 8px;
    }
}

/* ==========================================================
   AUTH REQUIRED PROMPT CARD (GIAO DIỆN CẢNH BÁO ĐĂNG NHẬP SANG TRỌNG)
   ========================================================== */
.auth-guard-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    max-width: 540px;
    margin: 40px auto;
    padding: 40px 32px;
    text-align: center;
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
    animation: fadeInScale 0.3s ease-out;
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

.auth-guard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--brand-gradient);
}

.auth-guard-icon-box {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: var(--badge-bg-primary);
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 20px;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.25);
}

.auth-guard-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.auth-guard-desc {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 26px;
}

.auth-guard-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.auth-guard-features {
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--text-muted);
}

.auth-guard-features span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.auth-guard-features i {
    color: var(--accent-success);
}

/* ==========================================================
   NAVBAR & LEFT-ALIGNED MOBILE DRAWER
   ========================================================== */
.navbar {
    background: var(--navbar-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 8px 0;
    transition: all 0.3s ease;
    overflow: visible;
}

.navbar .container {
    overflow: visible;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: nowrap !important;
    width: 100%;
    overflow: visible;
}

.nav-left-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-icon-box {
    width: 36px;
    height: 36px;
    background: var(--brand-gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 17px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.brand-subtitle {
    font-size: 9.5px;
    font-weight: 700;
    color: var(--brand-primary);
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
    flex-shrink: 1;
}

.nav-item-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 9px;
    color: var(--text-secondary);
    font-size: 12.5px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap !important;
    line-height: 1.2;
}

.nav-item-link:hover, .nav-item-link.active {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.nav-item-link.active {
    color: var(--brand-primary);
    background: var(--badge-bg-primary);
    font-weight: 700;
}

/* Tự động chuyển menu trên PC khi màn hình hẹp hơn 1180px để không bao giờ bị tràn */
@media (max-width: 1180px) {
    .nav-menu {
        display: none !important;
    }
    .mobile-toggle-btn {
        display: flex !important;
    }
    .desktop-only {
        display: none !important;
    }
    .mobile-only {
        display: inline-flex !important;
    }
}

/* Nav Dropdown Menu for Desktop */
.nav-dropdown-wrapper {
    position: relative;
    list-style: none;
}

.nav-dropdown-arrow {
    font-size: 10px;
    margin-left: 2px;
    transition: transform 0.2s ease;
    color: var(--text-muted);
}

.nav-dropdown-wrapper:hover .nav-dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 250px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.45);
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
    backdrop-filter: blur(8px);
}

.nav-dropdown-wrapper:hover .nav-dropdown-menu,
.nav-dropdown-wrapper:focus-within .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.dropdown-item-link:hover {
    background: var(--bg-surface-elevated);
}

.dropdown-item-link.active {
    background: var(--badge-bg-primary);
}

.dropdown-item-link i {
    font-size: 16px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.dropdown-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    display: block;
    line-height: 1.2;
}

.dropdown-desc {
    font-size: 11px;
    color: var(--text-muted);
    display: block;
    margin-top: 2px;
    line-height: 1.2;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    margin-left: auto;
}

.mobile-toggle-btn {
    display: none;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    flex-shrink: 0;
}

.theme-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.theme-btn:hover {
    border-color: var(--brand-primary);
    transform: rotate(15deg);
}

.balance-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.35);
    padding: 4px 12px 4px 5px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 700;
    color: #10b981;
    white-space: nowrap;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.12);
}

.balance-icon-wrap {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10.5px;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.4);
    flex-shrink: 0;
    transition: transform 0.2s ease, background 0.2s ease;
}

.balance-pill:hover {
    background: rgba(16, 185, 129, 0.18);
    border-color: rgba(16, 185, 129, 0.6);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
    color: #34d399;
}

.balance-pill:hover .balance-icon-wrap {
    transform: scale(1.12);
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
}

/* ==========================================================
   USER PROFILE DROPDOWN MENU (PC & MOBILE)
   ========================================================== */
.user-dropdown-container {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.user-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 11px;
    border-radius: 10px;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    outline: none;
}

.user-dropdown-trigger:hover,
.user-dropdown-trigger.active {
    border-color: var(--brand-primary);
    background: var(--bg-surface);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.user-trigger-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.15);
    color: var(--brand-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10.5px;
}

.user-trigger-chevron {
    font-size: 9.5px;
    color: var(--text-muted);
    transition: transform 0.2s ease;
}

.user-dropdown-trigger.active .user-trigger-chevron {
    transform: rotate(180deg);
}

@media (max-width: 768px) {
    .user-dropdown-trigger {
        padding: 4px 8px;
        gap: 5px;
        font-size: 11.5px;
        border-radius: 8px;
    }
    .user-trigger-avatar {
        width: 20px;
        height: 20px;
        font-size: 9.5px;
    }
    .user-trigger-name {
        max-width: 65px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* Dropdown Popup */
.user-dropdown-popup {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 275px;
    max-width: calc(100vw - 16px);
    max-height: 85vh;
    overflow-y: auto;
    background: var(--bg-surface);
    border: 1.5px solid var(--border-subtle);
    border-radius: 16px;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.45);
    padding: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.96);
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999999;
    pointer-events: none;
}

.user-dropdown-popup.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.user-dropdown-header {
    background: var(--bg-surface-elevated);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 8px;
    border: 1px solid var(--border-subtle);
}

.user-header-info-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.user-dropdown-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--brand-gradient);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 15px;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.user-dropdown-username {
    font-weight: 800;
    font-size: 14px;
    color: var(--text-primary);
}

.user-dropdown-role-badge {
    display: inline-block;
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    font-size: 10.5px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 4px;
    margin-top: 2px;
}

.user-dropdown-balance-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px dashed var(--border-subtle);
    padding-top: 8px;
    margin-top: 8px;
    font-size: 12px;
}

.user-balance-label {
    color: var(--text-muted);
}

.user-balance-val {
    color: var(--accent-success);
    font-weight: 800;
    font-size: 13.5px;
    font-family: monospace;
}

.user-dropdown-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.18s ease;
}

.user-dropdown-item:hover {
    background: var(--bg-surface-elevated);
    color: var(--text-primary);
    transform: translateX(3px);
}

.user-dropdown-divider {
    height: 1px;
    background: var(--border-subtle);
    margin: 4px 0;
}

.user-dropdown-item.item-logout {
    color: var(--accent-danger);
}

.user-dropdown-item.item-logout:hover {
    background: var(--badge-bg-danger);
    color: var(--accent-danger);
}

/* Mobile User Avatar trigger */
.mobile-user-avatar-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-user-avatar-btn:hover,
.mobile-user-avatar-btn.active {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

/* Mobile Drawer */
.mobile-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(5px);
    z-index: 99990;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.25s ease;
}

.mobile-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 275px;
    max-width: 82vw;
    height: 100%;
    background: var(--bg-surface);
    border-right: 1px solid var(--border-subtle);
    z-index: 99991;
    display: flex;
    flex-direction: column;
    padding: 12px 14px;
    transform: translateX(-100%);
    visibility: hidden;
    pointer-events: none;
    box-shadow: none;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.25s ease;
}

.mobile-drawer.active {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
    box-shadow: 15px 0 45px rgba(0, 0, 0, 0.45);
}

.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 8px;
}

.mobile-drawer-header .igbm-clean-brand-link {
    flex: 1;
    display: flex;
    align-items: center;
    margin-right: 8px;
}

.mobile-drawer-header .igbm-clean-logo-img {
    height: 38px !important;
    max-height: 42px !important;
    width: auto !important;
    max-width: 165px !important;
    object-fit: contain;
    display: block;
}

.mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5px;
    flex: 1;
    overflow-y: auto;
    padding-right: 2px;
    margin: 0;
    padding: 0;
    scrollbar-width: thin;
}

.mobile-nav-links::-webkit-scrollbar {
    width: 3px;
}

.mobile-nav-links::-webkit-scrollbar-thumb {
    background: var(--border-subtle);
    border-radius: 4px;
}

.mobile-nav-group-label {
    font-size: 9.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-muted);
    padding: 8px 6px 2px 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mobile-nav-group-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-subtle);
    opacity: 0.6;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 6.5px 10px;
    color: var(--text-secondary);
    font-size: 12.5px;
    font-weight: 600;
    border-radius: 7px;
    text-decoration: none;
    transition: all 0.18s ease;
}

.mobile-nav-link:hover, .mobile-nav-link.active {
    background: var(--bg-surface-elevated);
    color: var(--text-primary);
}

.mobile-nav-link.active {
    color: var(--brand-primary);
    background: var(--badge-bg-primary);
    font-weight: 700;
}

/* ==========================================================
   DRAWER & DROPDOWN ICONS (CLEAN, MINIMAL & SLEEK)
   ========================================================== */
.drawer-icon-box {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12.5px;
    flex-shrink: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
    background: transparent;
    border: none;
    box-shadow: none;
}

.mobile-nav-link:hover .drawer-icon-box,
.mobile-nav-link.active .drawer-icon-box,
.user-dropdown-item:hover .drawer-icon-box {
    transform: scale(1.1);
}

.drawer-icon-box.icon-store { color: #3b82f6; }
.drawer-icon-box.icon-deposit { color: #10b981; }
.drawer-icon-box.icon-orders { color: #a855f7; }
.drawer-icon-box.icon-vip { color: #f59e0b; }
.drawer-icon-box.icon-affiliate { color: #06b6d4; }
.drawer-icon-box.icon-2fa { color: #eab308; }
.drawer-icon-box.icon-checklive { color: #38bdf8; }
.drawer-icon-box.icon-face { color: #ec4899; }
.drawer-icon-box.icon-symbol { color: #f97316; }
.drawer-icon-box.icon-api { color: #8b5cf6; }
.drawer-icon-box.icon-terms { color: #10b981; }
.drawer-icon-box.icon-contact { color: #3b82f6; }
.drawer-icon-box.icon-faq { color: #f59e0b; }
.drawer-icon-box.icon-admin { color: #ef4444; }


/* ==========================================================
   HOMEPAGE PAYOS QUICK DEPOSIT HERO BANNER
   ========================================================== */
.payos-hero-banner {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 18px;
    padding: 20px 24px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25), 0 0 20px rgba(56, 189, 248, 0.12);
    position: relative;
    overflow: hidden;
}

[data-theme="light"] .payos-hero-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
}

.payos-hero-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.payos-hero-left {
    flex: 1;
    min-width: 280px;
    position: relative;
    z-index: 1;
}

.payos-badge-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #38bdf8;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.4px;
    margin-bottom: 8px;
}

.payos-hero-title {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.payos-hero-subtitle {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 0;
    line-height: 1.5;
}

.payos-hero-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.btn-payos-cta {
    background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 10px 18px;
    font-size: 13.5px;
    font-weight: 800;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-payos-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(2, 132, 199, 0.55);
}

.btn-outline-cta {
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0 !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-outline-cta:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff !important;
}

/* ==========================================================
   ADMIN ANNOUNCEMENT CARD (CLEAN & MINIMALIST DESIGN)
   ========================================================== */
/* ==========================================================
   ADMIN ANNOUNCEMENT CARD (CLEAN FULL-WIDTH BALANCED DESIGN)
   ========================================================== */
/* ==========================================================
   NEXT-GEN ADMIN ANNOUNCEMENT CARD (PREMIUM & VIBRANT)
   ========================================================== */
.admin-notice-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
    border: 1px solid rgba(2, 132, 199, 0.18);
    border-radius: 18px;
    padding: 20px 24px;
    margin-bottom: 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 10px 30px -4px rgba(2, 132, 199, 0.08), 0 2px 8px rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
}

.admin-notice-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3.5px;
    background: linear-gradient(90deg, #0284c7 0%, #38bdf8 30%, #10b981 60%, #8b5cf6 85%, #ec4899 100%);
    display: block;
}

[data-theme="dark"] .admin-notice-card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.88) 0%, rgba(24, 34, 53, 0.92) 100%);
    border-color: rgba(56, 189, 248, 0.25);
    box-shadow: 0 12px 36px -6px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    backdrop-filter: blur(12px);
}

.admin-notice-card:hover {
    border-color: rgba(14, 165, 233, 0.38);
    box-shadow: 0 14px 36px -4px rgba(14, 165, 233, 0.12), 0 4px 12px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .admin-notice-card:hover {
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 16px 42px -6px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(56, 189, 248, 0.2) inset;
}

/* Header Row: Luxury 3D Icon + Gradient Title + Neon Status Pill */
.notice-card-header-clean {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-subtle);
    flex-wrap: wrap;
}

.notice-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.notice-icon-badge {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 50%, #7c3aed 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
    position: relative;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.45);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.admin-notice-card:hover .notice-icon-badge {
    transform: scale(1.1) rotate(-4deg);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.6);
}

.notice-icon-sonar {
    position: absolute;
    inset: -3px;
    border-radius: 15px;
    border: 2px solid rgba(14, 165, 233, 0.4);
    animation: noticeSonar 2.2s infinite ease-out;
    pointer-events: none;
}

@keyframes noticeSonar {
    0% { transform: scale(0.96); opacity: 0.8; }
    100% { transform: scale(1.3); opacity: 0; }
}

.notice-header-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.notice-header-title {
    font-size: 15.5px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin: 0;
    background: linear-gradient(135deg, #0284c7 0%, #1d4ed8 60%, #6d28d9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 6px;
}

[data-theme="dark"] .notice-header-title {
    background: linear-gradient(135deg, #38bdf8 0%, #60a5fa 50%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.35));
}

.notice-live-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(5, 150, 105, 0.2) 100%);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.4);
    font-size: 11px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 99px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.15);
}

[data-theme="dark"] .notice-live-tag {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(5, 150, 105, 0.28) 100%);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.25);
}

.notice-pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px #10b981, 0 0 20px #10b981;
    animation: noticePulse 1.8s infinite ease-in-out;
}

@keyframes noticePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.notice-header-right {
    display: flex;
    align-items: center;
}

.notice-badge-verified {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 800;
    color: var(--text-muted);
    background: var(--bg-surface-elevated);
    padding: 5px 12px;
    border-radius: 99px;
    border: 1px solid var(--border-subtle);
    letter-spacing: 0.3px;
}

.notice-badge-verified i {
    color: #38bdf8;
    font-size: 13px;
}

.notice-main-text {
    width: 100%;
    font-size: 13.5px;
    color: var(--text-primary);
    line-height: 1.6;
}

/* Rich Announcement Content Components */
.announcement-wrapper {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
}

.announcement-intro {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.65;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-weight: 500;
}

.intro-sparkle {
    font-size: 14px;
    animation: sparkleSpin 3s infinite linear;
    display: inline-block;
}

@keyframes sparkleSpin {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.15) rotate(15deg); }
}

.brand-highlight,
.announcement-intro strong {
    color: #0284c7 !important;
    font-weight: 800;
}

[data-theme="dark"] .brand-highlight,
[data-theme="dark"] .announcement-intro strong {
    color: #38bdf8 !important;
    text-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
}

/* Announcement Structured Sections (New Style) */
.notice-intro-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(2, 132, 199, 0.08);
    border: 1px solid rgba(2, 132, 199, 0.22);
    border-radius: 12px;
    padding: 11px 16px;
    font-size: 13.5px;
    font-weight: 500;
    color: #0284c7;
    margin-bottom: 12px;
    line-height: 1.6;
}
[data-theme="dark"] .notice-intro-banner {
    background: rgba(2, 132, 199, 0.15);
    border-color: rgba(56, 189, 248, 0.3);
    color: #38bdf8;
}

.notice-section-box {
    background: rgba(248, 250, 252, 0.85);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 14px;
    padding: 14px 18px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}
[data-theme="dark"] .notice-section-box {
    background: rgba(30, 41, 59, 0.55);
    border-color: rgba(255, 255, 255, 0.08);
}
.notice-section-box:hover {
    border-color: rgba(2, 132, 199, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}
[data-theme="dark"] .notice-section-box:hover {
    border-color: rgba(56, 189, 248, 0.3);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.notice-section-title {
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.notice-section-title.title-gold { color: #d97706; }
[data-theme="dark"] .notice-section-title.title-gold { color: #fbbf24; }

.notice-section-title.title-green { color: #059669; }
[data-theme="dark"] .notice-section-title.title-green { color: #34d399; }

.notice-section-title.title-pink { color: #db2777; }
[data-theme="dark"] .notice-section-title.title-pink { color: #f472b6; }

.notice-section-list {
    margin: 0;
    padding-left: 20px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.65;
}
.notice-section-list li {
    margin-bottom: 6px;
}
.notice-section-list li:last-child {
    margin-bottom: 0;
}
.notice-section-list strong {
    color: var(--text-primary);
    font-weight: 700;
}

.announce-btn-terms {
    background: #f1f5f9 !important;
    color: #475569 !important;
    border: 1px solid #cbd5e1 !important;
}
.announce-btn-terms:hover {
    background: #e2e8f0 !important;
    color: #1e293b !important;
    transform: translateY(-2px);
}
[data-theme="dark"] .announce-btn-terms {
    background: rgba(51, 65, 85, 0.6) !important;
    color: #cbd5e1 !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}
[data-theme="dark"] .announce-btn-terms:hover {
    background: rgba(71, 85, 105, 0.8) !important;
    color: #ffffff !important;
}

/* 4-Column Feature Micro-Cards Grid - Full Width */
.announcement-highlights-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    width: 100%;
}

@media (max-width: 992px) {
    .announcement-highlights-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

@media (max-width: 576px) {
    .announcement-highlights-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

/* Individual Micro Card */
.announce-highlight-card, 
.announce-highlight-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .announce-highlight-card, 
[data-theme="dark"] .announce-highlight-item {
    background: rgba(30, 41, 59, 0.65);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.highlight-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.announce-highlight-item:hover .highlight-icon-box,
.announce-highlight-card:hover .highlight-icon-box {
    transform: scale(1.14);
}

/* Specific Card Themes & Glows */
.highlight-card-gold .highlight-icon-box,
.highlight-icon-box.icon-gold {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.highlight-card-gold:hover {
    border-color: rgba(245, 158, 11, 0.5);
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.15);
    transform: translateY(-2px);
}

.highlight-card-green .highlight-icon-box,
.highlight-icon-box.icon-green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.highlight-card-green:hover {
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.15);
    transform: translateY(-2px);
}

.highlight-card-blue .highlight-icon-box,
.highlight-icon-box.icon-blue {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.4);
}

.highlight-card-blue:hover {
    border-color: rgba(2, 132, 199, 0.5);
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.15);
    transform: translateY(-2px);
}

.highlight-card-purple .highlight-icon-box,
.highlight-icon-box.icon-purple {
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.4);
}

.highlight-card-purple:hover {
    border-color: rgba(236, 72, 153, 0.5);
    box-shadow: 0 6px 18px rgba(236, 72, 153, 0.15);
    transform: translateY(-2px);
}

/* Text Hierarchy inside Cards */
.highlight-info,
.highlight-text-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.highlight-title {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.25;
    letter-spacing: -0.1px;
}

.highlight-desc {
    font-size: 11.5px;
    color: var(--text-muted);
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Action CTA Buttons */
.announcement-action-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 4px;
    width: 100%;
}

.announce-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
    border: none;
}

.announce-btn-deposit {
    background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.32);
}

.announce-btn-deposit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
    filter: brightness(1.06);
}

.announce-btn-otp {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.28);
}

.announce-btn-otp:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    filter: brightness(1.06);
}

.announce-btn-zalo,
.announce-btn-telegram {
    background: linear-gradient(135deg, #0088cc 0%, #0060fe 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(0, 104, 255, 0.32);
    position: relative;
}

.announce-btn-zalo:hover,
.announce-btn-telegram:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 104, 255, 0.45);
    filter: brightness(1.06);
}

.btn-pulse-tag {
    background: #4ade80;
    color: #064e3b;
    font-size: 9.5px;
    font-weight: 900;
    padding: 1px 6px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Custom Vector Zalo Icon Class */
.icon-zalo,
.icon-zalo-mask {
    display: inline-block;
    width: 1.15em;
    height: 1.15em;
    vertical-align: -0.18em;
    background-color: currentColor;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 54 54'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M12 27C12 18.7157 18.7157 12 27 12C35.2843 12 42 18.7157 42 27C42 35.2843 35.2843 42 27 42C23.9535 42 21.1165 41.0964 18.7368 39.5428L13.8821 41.4847C13.0617 41.8129 12.2132 41.0177 12.4839 40.1818L13.9785 35.5659C12.7231 33.0908 12 30.1415 12 27ZM17.5 22.5H23.5C24.0523 22.5 24.5 22.9477 24.5 23.5C24.5 23.821 24.346 24.1172 24.1026 24.3065L19.882 27.5H23.5C24.0523 27.5 24.5 27.9477 24.5 28.5C24.5 29.0523 24.0523 29.5 23.5 29.5H17.5C16.9477 29.5 16.5 29.0523 16.5 28.5C16.5 28.179 16.654 27.8828 16.8974 27.6935L21.118 24.5H17.5C16.9477 24.5 16.5 24.0523 16.5 23.5C16.5 22.9477 16.9477 22.5 17.5 22.5ZM26 23.5C26 22.9477 26.4477 22.5 27 22.5C27.5523 22.5 28 22.9477 28 23.5V28.5C28 29.0523 27.5523 29.5 27 29.5C26.4477 29.5 26 29.0523 26 28.5V23.5ZM29.5 23.5C29.5 22.9477 29.9477 22.5 30.5 22.5C31.0523 22.5 31.5 22.9477 31.5 23.5V27.5H33.5C34.0523 27.5 34.5 27.9477 34.5 28.5C34.5 29.0523 34.0523 29.5 33.5 29.5H30.5C29.9477 29.5 29.5 29.0523 29.5 28.5V23.5ZM35.5 26C35.5 24.067 37.067 22.5 39 22.5C40.933 22.5 42.5 24.067 42.5 26C42.5 27.933 40.933 29.5 39 29.5C37.067 29.5 35.5 27.933 35.5 26ZM39 24.5C38.1716 24.5 37.5 25.1716 37.5 26C37.5 26.8284 38.1716 27.5 39 27.5C39.8284 27.5 40.5 26.8284 40.5 26C40.5 25.1716 39.8284 24.5 39 24.5Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 54 54'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M12 27C12 18.7157 18.7157 12 27 12C35.2843 12 42 18.7157 42 27C42 35.2843 35.2843 42 27 42C23.9535 42 21.1165 41.0964 18.7368 39.5428L13.8821 41.4847C13.0617 41.8129 12.2132 41.0177 12.4839 40.1818L13.9785 35.5659C12.7231 33.0908 12 30.1415 12 27ZM17.5 22.5H23.5C24.0523 22.5 24.5 22.9477 24.5 23.5C24.5 23.821 24.346 24.1172 24.1026 24.3065L19.882 27.5H23.5C24.0523 27.5 24.5 27.9477 24.5 28.5C24.5 29.0523 24.0523 29.5 23.5 29.5H17.5C16.9477 29.5 16.5 29.0523 16.5 28.5C16.5 28.179 16.654 27.8828 16.8974 27.6935L21.118 24.5H17.5C16.9477 24.5 16.5 24.0523 16.5 23.5C16.5 22.9477 16.9477 22.5 17.5 22.5ZM26 23.5C26 22.9477 26.4477 22.5 27 22.5C27.5523 22.5 28 22.9477 28 23.5V28.5C28 29.0523 27.5523 29.5 27 29.5C26.4477 29.5 26 29.0523 26 28.5V23.5ZM29.5 23.5C29.5 22.9477 29.9477 22.5 30.5 22.5C31.0523 22.5 31.5 22.9477 31.5 23.5V27.5H33.5C34.0523 27.5 34.5 27.9477 34.5 28.5C34.5 29.0523 34.0523 29.5 33.5 29.5H30.5C29.9477 29.5 29.5 29.0523 29.5 28.5V23.5ZM35.5 26C35.5 24.067 37.067 22.5 39 22.5C40.933 22.5 42.5 24.067 42.5 26C42.5 27.933 40.933 29.5 39 29.5C37.067 29.5 35.5 27.933 35.5 26ZM39 24.5C38.1716 24.5 37.5 25.1716 37.5 26C37.5 26.8284 38.1716 27.5 39 27.5C39.8284 27.5 40.5 26.8284 40.5 26C40.5 25.1716 39.8284 24.5 39 24.5Z'/%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

@media (max-width: 768px) {
    .admin-notice-card {
        padding: 14px 16px;
        gap: 10px;
    }
    .announce-btn {
        flex: 1 1 calc(50% - 6px);
        justify-content: center;
        padding: 8px 12px;
    }
}

/* ==========================================================
   STORE QUICK UTILITIES BAR (CHECK LIVE FB, 2FA, ICON FB, RANDOM FACE)
   ========================================================== */
.store-quick-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
    width: 100%;
}

.quick-tool-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    user-select: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    outline: none !important;
}

.quick-tool-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
    filter: brightness(1.05);
}

.quick-tool-card:active {
    transform: translateY(0);
}

/* Card 1: Check live FB - Green/Cyan Gradient */
.tool-card-checklive {
    background: linear-gradient(135deg, #059669 0%, #0284c7 100%);
}

/* Card 2: Lấy mã 2FA - Blue Gradient */
.tool-card-2fa {
    background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
}

/* Card 3: Đọc Email - Royal Purple / Violet Gradient */
.tool-card-readmail {
    background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
}

/* Card 3 (legacy fallback): Icon Facebook */
.tool-card-iconfb {
    background: linear-gradient(135deg, #9333ea 0%, #6366f1 100%);
}

/* Card 4: Random Face - Amber/Orange Gradient */
.tool-card-face {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

/* Icon Box inside Quick Tool Card (Clean White Squircle with Shadow) */
.quick-tool-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.14);
    overflow: hidden;
}

.quick-tool-icon-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.quick-tool-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.25;
}

.quick-tool-title {
    font-size: 14px;
    font-weight: 800;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.2px;
}

.quick-tool-badge {
    font-size: 11.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 2px;
}

@media (max-width: 992px) {
    .store-quick-tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

@media (max-width: 576px) {
    .store-quick-tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .quick-tool-card {
        padding: 8px 10px;
        gap: 9px;
        border-radius: 10px;
    }
    .quick-tool-icon-box {
        width: 36px;
        height: 36px;
        border-radius: 8px;
    }
    .quick-tool-title {
        font-size: 12.5px;
    }
    .quick-tool-badge {
        font-size: 10.5px;
    }
}

/* ==========================================================
   NEXT-GEN STORE FILTER PANEL & SEARCH
   ========================================================== */
.store-filter-panel {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin-bottom: 22px;
    box-shadow: none !important;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    transition: all 0.3s ease;
}

[data-theme="dark"] .store-filter-panel {
    box-shadow: none !important;
    background: transparent !important;
    border: none !important;
}

.store-filter-top-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

@media (max-width: 860px) {
    .store-filter-top-row {
        flex-direction: column;
        align-items: stretch;
    }
}

.search-input-box {
    position: relative;
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
}

/* Stock Segmented Filter Capsule */
.stock-filter-segmented {
    display: inline-flex;
    align-items: center;
    background: var(--bg-surface);
    border: 1.5px solid var(--border-subtle);
    border-radius: 12px;
    padding: 4px;
    gap: 4px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .stock-filter-segmented {
    background: #ffffff;
    border-color: #e2e8f0;
}

[data-theme="dark"] .stock-filter-segmented {
    background: #111827;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

@media (max-width: 860px) {
    .stock-filter-segmented {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
        box-sizing: border-box;
        padding: 3px;
        gap: 2px;
    }
    .stock-filter-btn {
        padding: 6px 2px;
        gap: 3px;
        font-size: 11px;
        min-width: 0;
    }
    .stock-filter-btn i,
    .stock-dot-live,
    .stock-dot-out {
        flex-shrink: 0;
        font-size: 10px;
    }
    .stock-filter-label {
        font-size: 11px;
        white-space: nowrap;
    }
    .stock-filter-count {
        font-size: 9.5px;
        padding: 1px 4px;
        flex-shrink: 0;
    }
}

.stock-filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    user-select: none;
}

.stock-filter-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] .stock-filter-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #f8fafc;
}

/* Active states */
.stock-filter-btn.active {
    background: var(--bg-surface);
    color: var(--text-primary);
    border-color: var(--border-subtle);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .stock-filter-btn.active {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .stock-filter-btn.active {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.stock-filter-btn.active[data-stock="instock"],
.stock-filter-btn.in-stock-btn.active {
    color: #059669;
    border-color: rgba(16, 185, 129, 0.35);
}
[data-theme="dark"] .stock-filter-btn.active[data-stock="instock"],
[data-theme="dark"] .stock-filter-btn.in-stock-btn.active {
    color: #34d399;
}

.stock-filter-btn.active[data-stock="outstock"],
.stock-filter-btn.out-stock-btn.active {
    color: #dc2626;
    border-color: rgba(239, 68, 68, 0.35);
}
[data-theme="dark"] .stock-filter-btn.active[data-stock="outstock"],
[data-theme="dark"] .stock-filter-btn.out-stock-btn.active {
    color: #f87171;
}

.stock-dot-live {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 6px #10b981;
    flex-shrink: 0;
}

.stock-dot-out {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ef4444;
    flex-shrink: 0;
}

.stock-filter-count {
    font-size: 10.5px;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 20px;
    background: var(--bg-surface);
    color: var(--text-muted);
    border: 1px solid var(--border-subtle);
}

[data-theme="light"] .stock-filter-count {
    background: #e2e8f0;
}

[data-theme="dark"] .stock-filter-count {
    background: rgba(255, 255, 255, 0.08);
}

.stock-filter-btn.active .count-instock {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
    border-color: rgba(16, 185, 129, 0.3);
}
[data-theme="dark"] .stock-filter-btn.active .count-instock {
    color: #34d399;
}

.stock-filter-btn.active .count-outstock {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
    border-color: rgba(239, 68, 68, 0.3);
}
[data-theme="dark"] .stock-filter-btn.active .count-outstock {
    color: #f87171;
}

.search-icon-badge {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(56, 189, 248, 0.1);
    color: #0284c7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13.5px;
    pointer-events: none;
    transition: all 0.2s ease;
}

[data-theme="dark"] .search-icon-badge {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.15);
}

.search-input-box input {
    width: 100%;
    padding: 11px 46px 11px 50px;
    background: var(--bg-surface);
    border: 1.5px solid var(--border-subtle);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    outline: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    -webkit-appearance: none;
}

[data-theme="light"] .search-input-box input {
    background: #ffffff;
    border-color: #e2e8f0;
}

[data-theme="dark"] .search-input-box input {
    background: #111827;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

@media (max-width: 768px) {
    .search-input-box input {
        font-size: 16px;
        padding-right: 42px;
    }
}

.search-input-box input:focus {
    border-color: #38bdf8;
    background: var(--bg-surface);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.15);
}

.search-input-box input:focus ~ .search-icon-badge {
    background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
    color: #ffffff;
    transform: translateY(-50%) scale(1.05);
}

.search-clear-btn {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.08);
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

[data-theme="dark"] .search-clear-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

.search-clear-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

/* Category Pills - Wrap naturally down onto multiple rows without spilling */
.category-pill-scroll {
    width: 100%;
    overflow: visible;
    padding-bottom: 2px;
}

.category-pill-grid {
    display: flex;
    flex-wrap: wrap !important;
    align-items: center;
    gap: 8px 10px;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .category-pill-scroll {
        padding: 2px 0;
        overflow: visible;
    }
    .category-pill-grid {
        flex-wrap: wrap !important;
        width: 100%;
        min-width: 100%;
        gap: 6px;
    }
    .cat-btn {
        padding: 6px 10px 6px 8px;
        font-size: 12px;
        gap: 6px;
        border-radius: 6px;
    }
    .cat-btn-icon {
        width: 18px;
        height: 18px;
        font-size: 11px;
    }
    .cat-btn-img {
        width: 18px;
        height: 18px;
    }
    .cat-btn-title {
        font-size: 12px;
    }
}

.cat-btn {
    background: #2b2c2f;
    border: 1px solid #3c3e44;
    color: #ffffff;
    padding: 7px 14px 7px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.18);
    letter-spacing: -0.1px;
}

[data-theme="dark"] .cat-btn {
    background: #27282b;
    border-color: #3b3e44;
}

.cat-btn-icon {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
    background: transparent;
    transition: all 0.2s ease;
}

.cat-btn-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    border-radius: 3px;
}

.cat-btn-title {
    line-height: 1.2;
    color: #ffffff;
}

.cat-btn:hover {
    color: #ffffff;
    background: #393b41;
    border-color: #555964;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.cat-btn:hover .cat-btn-title {
    color: #ffffff;
}

/* Active State (Light Gray background with Cyan/Blue text & icon as in screenshot) */
.cat-btn.active {
    background: #dbe2e8 !important;
    border-color: #cbd5e1 !important;
    color: #0f5676 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    transform: none;
}

[data-theme="dark"] .cat-btn.active {
    background: #d8dee4 !important;
    border-color: #cbd5e1 !important;
    color: #0c4a6e !important;
}

.cat-btn.active .cat-btn-icon {
    color: #0284c7 !important;
}

.cat-btn.active .cat-btn-icon i {
    color: #0284c7 !important;
}

.cat-btn.active .cat-btn-title {
    color: #0f5676 !important;
}

[data-theme="dark"] .cat-btn.active .cat-btn-title {
    color: #0c4a6e !important;
}

/* Brand specific icon badges */
.cat-icon-youtube {
    background: #ff0000 !important;
    color: #ffffff !important;
}
.cat-icon-youtube i {
    color: #ffffff !important;
    font-size: 12px;
}
.cat-icon-hotmail, .cat-icon-outlook, .cat-icon-microsoft {
    background: #0078d4 !important;
    color: #ffffff !important;
}
.cat-icon-hotmail i, .cat-icon-outlook i, .cat-icon-microsoft i {
    color: #ffffff !important;
    font-size: 12px;
}
.cat-icon-canva {
    background: linear-gradient(135deg, #00c4cc, #7d2ae8) !important;
    color: #ffffff !important;
}
.cat-icon-canva i {
    color: #ffffff !important;
    font-size: 11px;
}
.cat-icon-google {
    background: #ffffff !important;
    color: #ea4335 !important;
    border-radius: 4px;
}
.cat-icon-google i {
    color: #ea4335 !important;
    font-size: 13px;
}
.cat-icon-facebook {
    background: #1877f2 !important;
    color: #ffffff !important;
}
.cat-icon-facebook i {
    color: #ffffff !important;
    font-size: 13px;
}
.cat-icon-capcut {
    background: #000000 !important;
    color: #ffffff !important;
    border: 1px solid #444444;
}
.cat-icon-capcut i {
    color: #ffffff !important;
    font-size: 11px;
}
.cat-icon-vpn {
    background: #18181b !important;
    color: #fbbf24 !important;
    border: 1px solid rgba(251, 191, 36, 0.6);
}
.cat-icon-vpn i {
    color: #fbbf24 !important;
    font-size: 11px;
}
.cat-icon-ai {
    background: linear-gradient(135deg, #ec4899, #8b5cf6, #3b82f6) !important;
    color: #ffffff !important;
}
.cat-icon-ai i {
    color: #ffffff !important;
    font-size: 11px;
}
.cat-icon-coding {
    background: #0f172a !important;
    color: #38bdf8 !important;
    border: 1px solid #38bdf8;
}
.cat-icon-coding i {
    color: #38bdf8 !important;
    font-size: 11px;
}
.cat-icon-tiktok {
    background: #000000 !important;
    color: #ffffff !important;
}
.cat-icon-tiktok i {
    color: #ffffff !important;
    font-size: 12px;
}
.cat-icon-telegram {
    background: #229ed9 !important;
    color: #ffffff !important;
}
.cat-icon-telegram i {
    color: #ffffff !important;
    font-size: 12px;
}

/* Empty Search / Filter Notice */
.store-empty-search-notice {
    text-align: center;
    padding: 48px 24px;
    background: var(--bg-surface);
    border: 1px dashed var(--border-subtle);
    border-radius: 20px;
    margin: 20px 0 34px 0;
}

.empty-search-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(56, 189, 248, 0.1);
    color: #0284c7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin: 0 auto 16px auto;
}

[data-theme="dark"] .empty-search-icon {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.15);
}

.empty-search-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.empty-search-desc {
    font-size: 13px;
    color: var(--text-muted);
    max-width: 420px;
    margin: 0 auto 18px auto;
    line-height: 1.5;
}

/* ==========================================================
   CATEGORY SECTION HEADLINE & HEADERS (Banner Bar style)
   ========================================================== */
.category-section-block {
    margin-bottom: 30px;
}

.section-headline-banner {
    background: #0d4a85;
    color: #ffffff;
    padding: 9px 14px;
    border-radius: 6px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .section-headline-banner {
    background: #0a3d74;
}

.section-headline-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.section-headline-icon {
    width: 26px;
    height: 26px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #ffffff;
    flex-shrink: 0;
}

.section-headline-title {
    font-size: 13.5px;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: -0.1px;
    white-space: normal;
    word-break: break-word;
    line-height: 1.35;
}

.section-headline-count {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(0, 0, 0, 0.2);
    padding: 2px 8px;
    border-radius: 12px;
}

/* ==========================================================
   PRODUCTS GRID & HORIZONTAL CARDS (2 COLUMNS)
   ========================================================== */
.category-section-block {
    margin-bottom: 28px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 14px;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 868px) {
    .products-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }
}

.product-card {
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: all 0.2s ease-in-out;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

[data-theme="dark"] .product-card {
    background: #1e2532;
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.product-card:hover {
    border-color: #94a3b8;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
    transform: translateY(-1px);
}

[data-theme="dark"] .product-card:hover {
    border-color: #38bdf8;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

/* Left: Product Thumbnail / App Icon Squircle */
.prod-thumb-box {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

[data-theme="dark"] .prod-thumb-box {
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

.product-card:hover .prod-thumb-box {
    transform: scale(1.04);
}

.prod-thumb-icon {
    font-size: 26px;
}

.prod-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

/* Middle: Title & Stock Tag */
.prod-info-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-width: 0;
    gap: 6px;
}

.prod-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    line-height: 1.4;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
    letter-spacing: -0.1px;
    display: block;
}

[data-theme="dark"] .prod-title {
    color: #f8fafc;
}

.prod-stock-tag {
    background: #8b24a8;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    width: fit-content;
    line-height: 1.2;
    box-shadow: 0 1px 3px rgba(139, 36, 168, 0.25);
    white-space: nowrap;
    flex-shrink: 0;
}

.prod-stock-tag.stock-empty {
    background: #64748b;
    box-shadow: none;
}

/* Right: Action Column (Price Chip + XEM NGAY button) */
.prod-action-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    gap: 6px;
    flex-shrink: 0;
    width: 88px;
    min-width: 88px;
    box-sizing: border-box;
}

.prod-price-box {
    border: 1px dashed #f472b6;
    background: rgba(244, 114, 182, 0.05);
    border-radius: 6px;
    padding: 3px 6px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

[data-theme="dark"] .prod-price-box {
    border-color: rgba(244, 114, 182, 0.6);
    background: rgba(244, 114, 182, 0.1);
}

.prod-price-text {
    font-size: 12.5px;
    font-weight: 800;
    color: #e11d48;
    font-family: ui-monospace, SFMono-Regular, monospace;
    line-height: 1.2;
    display: block;
    white-space: nowrap;
    text-align: center;
}

[data-theme="dark"] .prod-price-text {
    color: #fb7185;
}

.prod-btn-action {
    background: #0d4a85;
    color: #ffffff !important;
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 6px 8px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    text-align: center;
    width: 100%;
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
    text-decoration: none;
    display: inline-block;
    box-sizing: border-box;
    line-height: 1.3;
    white-space: nowrap;
}

.prod-btn-action:hover {
    background: #093968;
    box-shadow: 0 2px 8px rgba(13, 74, 133, 0.4);
    transform: translateY(-1px);
}

.prod-btn-action:active {
    transform: scale(0.97);
}

.prod-btn-action.btn-disabled {
    background: #64748b !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    transform: none !important;
    opacity: 0.85;
}

@media (max-width: 640px) {
    .product-card {
        padding: 10px 12px;
        gap: 10px;
    }
    .prod-thumb-box {
        width: 46px;
        height: 46px;
        border-radius: 10px;
    }
    .prod-thumb-icon {
        font-size: 22px;
    }
    .prod-title {
        font-size: 13px;
        line-height: 1.35;
        white-space: normal;
        word-break: break-word;
    }
    .prod-stock-tag {
        font-size: 10px;
        padding: 2px 6px;
    }
    .prod-action-col {
        width: 82px;
        min-width: 82px;
        gap: 5px;
    }
    .prod-price-text {
        font-size: 12px;
    }
    .prod-btn-action {
        font-size: 11px;
        padding: 5px 6px;
    }
}

/* ==========================================================
   BUTTONS, FORMS, CARDS & ALERTS
   ========================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--brand-gradient);
    color: #fff;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
    transform: translateY(-1px);
    color: #fff;
}

.btn-outline {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
}

.btn-outline:hover {
    border-color: var(--border-strong);
    color: var(--text-primary);
    background: var(--bg-hover);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
}

.card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 20px;
    box-shadow: var(--card-shadow);
}

.form-group {
    margin-bottom: 14px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 13.5px;
    font-family: inherit;
    transition: all 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px var(--badge-bg-primary);
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.alert-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert-close-btn {
    background: transparent;
    border: none;
    color: inherit;
    font-size: 16px;
    cursor: pointer;
    opacity: 0.7;
}

.alert-success { background: var(--badge-bg-success); color: var(--accent-success); border: 1px solid rgba(16, 185, 129, 0.3); }
.alert-danger { background: var(--badge-bg-danger); color: var(--accent-danger); border: 1px solid rgba(239, 68, 68, 0.3); }
.alert-warning { background: var(--badge-bg-warning); color: var(--accent-warning); border: 1px solid rgba(245, 158, 11, 0.3); }
.alert-info { background: var(--badge-bg-primary); color: var(--brand-primary); border: 1px solid rgba(59, 130, 246, 0.3); }

/* Table */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 500px;
}

.custom-table th {
    background: var(--bg-surface-elevated);
    padding: 10px 14px;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    border-bottom: 1px solid var(--border-subtle);
    text-align: left;
}

.custom-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-secondary);
}

.custom-table tr:hover td {
    background: var(--bg-hover);
}

/* Modal */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 16px;
}

.modal-backdrop.show {
    display: flex;
}

.modal-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    animation: modal-pop 0.2s ease-out;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

@keyframes modal-pop {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-header {
    padding: 16px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 20px;
    color: var(--text-muted);
    cursor: pointer;
}

.modal-body {
    padding: 16px;
    overflow-y: auto;
}

.modal-footer {
    padding: 12px 16px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 90vw;
}

.toast {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: var(--card-shadow);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Deposit */
.deposit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.qr-box {
    background: #ffffff;
    padding: 14px;
    border-radius: 10px;
    width: fit-content;
    margin: 0 auto 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.qr-box img {
    max-width: 200px;
    display: block;
}

.bank-info-table {
    width: 100%;
    border-collapse: collapse;
}

.bank-info-table td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 13px;
}

.bank-info-table td:first-child {
    color: var(--text-muted);
    font-weight: 500;
    width: 38%;
}

.bank-info-table td:last-child {
    color: var(--text-primary);
    font-weight: 700;
}

.copyable-badge {
    background: var(--badge-bg-primary);
    color: var(--brand-primary);
    border: 1px dashed var(--brand-primary);
    padding: 3px 8px;
    border-radius: 6px;
    font-family: monospace;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Footer */
.footer {
    background: var(--footer-bg);
    border-top: 1px solid var(--border-subtle);
    margin-top: auto;
    padding: 30px 0 18px;
    font-size: 13px;
    color: var(--text-secondary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 20px;
}

.footer-brand h3 {
    color: var(--text-primary);
    font-size: 16px;
    margin-bottom: 8px;
}

.footer-links h4 {
    color: var(--text-primary);
    font-size: 13.5px;
    margin-bottom: 10px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-links a {
    color: var(--text-secondary);
}

.footer-links a:hover {
    color: var(--brand-primary);
}

.footer-bottom {
    border-top: 1px solid var(--border-subtle);
    padding-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

/* ==========================================================
   RESPONSIVE QUERIES & VISIBILITY UTILITIES
   ========================================================== */
.mobile-only {
    display: none !important;
}

.desktop-only {
    display: inline-flex !important;
}

@media (max-width: 992px) {
    .nav-menu {
        display: none;
    }
    .mobile-toggle-btn {
        display: flex;
    }
    .deposit-grid, .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
    .mobile-only {
        display: inline-flex !important;
    }
    .nav-wrapper {
        padding: 0 10px;
        height: 56px;
    }
    .nav-left-group {
        gap: 8px;
        min-width: 0;
        flex: 1;
    }
    .mobile-toggle-btn {
        width: 34px;
        height: 34px;
        font-size: 14px;
        border-radius: 8px;
        flex-shrink: 0;
    }
    .nav-brand {
        gap: 8px;
        min-width: 0;
        flex-shrink: 1;
    }
    .brand-icon-box {
        width: 32px;
        height: 32px;
        font-size: 15px;
        border-radius: 8px;
        flex-shrink: 0;
    }
    .brand-title {
        font-size: 14.5px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 110px;
    }
    .brand-subtitle {
        display: none;
    }
    .nav-right {
        gap: 6px;
        flex-shrink: 0;
    }
    .balance-pill {
        padding: 4px 8px;
        font-size: 11.5px;
        gap: 4px;
        text-decoration: none;
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .mobile-user-avatar-btn {
        width: 32px;
        height: 32px;
        border-radius: 8px;
        background: var(--bg-surface-elevated);
        border: 1px solid var(--border-subtle);
        color: var(--text-primary);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        text-decoration: none;
        transition: all 0.2s ease;
        flex-shrink: 0;
    }
    .mobile-user-avatar-btn:hover {
        color: var(--brand-primary);
        border-color: var(--brand-primary);
    }
}

@media (max-width: 640px) {
    .auth-guard-card {
        padding: 28px 18px;
        margin: 20px auto;
    }
    .auth-guard-icon-box {
        width: 52px;
        height: 52px;
        font-size: 22px;
    }
    .auth-guard-title {
        font-size: 18px;
    }
    .auth-guard-desc {
        font-size: 13px;
    }
    .admin-notice-card {
        padding: 14px 16px;
        gap: 12px;
    }
    .notice-icon-circle {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }
    .notice-header-title {
        font-size: 12px;
    }
    .notice-main-text {
        font-size: 13px;
    }
    .store-filter-panel {
        padding: 0 !important;
        gap: 10px;
    }
    .cat-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    .products-grid {
        grid-template-columns: 1fr;
    }
    .nav-brand .brand-subtitle {
        display: none;
    }
    .balance-pill {
        padding: 4px 8px;
        font-size: 12px;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================================
   HTD NOTIFICATION MODAL SYSTEM (JS POPUP WITH ANIMATED CHECKMARK)
   ========================================================== */
.htd-notify-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 8, 18, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.htd-notify-backdrop.active {
    display: flex;
    opacity: 1;
}

.htd-notify-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    width: 100%;
    max-width: 440px;
    padding: 32px 28px 24px;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.35), 0 10px 25px -5px rgba(0, 0, 0, 0.15);
    text-align: center;
    position: relative;
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.htd-notify-backdrop.active .htd-notify-card {
    transform: scale(1) translateY(0);
}

.htd-notify-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: transparent;
    border: none;
    font-size: 22px;
    line-height: 1;
    color: #94a3b8;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.htd-notify-close:hover {
    color: #0f172a;
    background: #f1f5f9;
}

/* Icon Box & SVG Checkmark Animations */
.htd-notify-icon-container {
    margin: 0 auto 18px;
    width: 76px;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* SUCCESS (Green Checkmark - Tích V Xanh) */
.htd-checkmark-svg {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: block;
    stroke-width: 3.5;
    stroke: #10b981;
    stroke-miterlimit: 10;
    margin: 0 auto;
    box-shadow: inset 0px 0px 0px #10b981, 0 0 25px rgba(16, 185, 129, 0.25);
    animation: htd-fill-success 0.4s ease-in-out 0.4s forwards, htd-scale-icon 0.3s ease-in-out 0.8s both;
}

.htd-checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 3.5;
    stroke-miterlimit: 10;
    stroke: #10b981;
    fill: #ecfdf5;
    animation: htd-stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.htd-checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke: #10b981;
    animation: htd-stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.5s forwards;
}

/* ERROR (Red X Circle) */
.htd-error-svg {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: block;
    stroke-width: 3.5;
    stroke: #ef4444;
    stroke-miterlimit: 10;
    margin: 0 auto;
    box-shadow: 0 0 25px rgba(239, 68, 68, 0.25);
    animation: htd-scale-icon 0.3s ease-in-out 0.8s both;
}

.htd-error-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 3.5;
    stroke-miterlimit: 10;
    stroke: #ef4444;
    fill: #fef2f2;
    animation: htd-stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.htd-error-x {
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke-width: 4;
    stroke-linecap: round;
    stroke: #ef4444;
    animation: htd-stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.5s forwards;
}

/* WARNING (Amber Triangle/Circle) */
.htd-warning-svg {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    stroke: #f59e0b;
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.25);
    animation: htd-scale-icon 0.3s ease-in-out 0.8s both;
}

.htd-warning-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 3.5;
    stroke: #f59e0b;
    fill: #fffbeb;
    animation: htd-stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.htd-warning-mark {
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke-width: 4;
    stroke-linecap: round;
    stroke: #f59e0b;
    animation: htd-stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.5s forwards;
}

/* Keyframes */
@keyframes htd-stroke {
    100% { stroke-dashoffset: 0; }
}

@keyframes htd-scale-icon {
    0%, 100% { transform: none; }
    50% { transform: scale3d(1.1, 1.1, 1); }
}

@keyframes htd-fill-success {
    100% { box-shadow: inset 0px 0px 0px 30px rgba(16, 185, 129, 0), 0 0 35px rgba(16, 185, 129, 0.25); }
}

/* Typography & Content inside Modal */
.htd-notify-title {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.htd-notify-message {
    font-size: 14px;
    color: #475569;
    line-height: 1.55;
    margin-bottom: 16px;
    word-break: break-word;
}

/* Detail Badge (Amount / Username / Section) */
.htd-notify-badge-box {
    margin-bottom: 20px;
}

.htd-notify-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.htd-notify-badge.danger {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}

.htd-notify-badge.warning {
    background: #fffbeb;
    border-color: #fde68a;
    color: #b45309;
}

.htd-notify-badge.info {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

/* Action Button */
.htd-notify-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.htd-notify-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 11px 32px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 20px -4px rgba(16, 185, 129, 0.4);
    transition: all 0.2s ease;
}

.htd-notify-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px -4px rgba(16, 185, 129, 0.5);
    filter: brightness(1.05);
}

.htd-notify-btn.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 8px 20px -4px rgba(239, 68, 68, 0.4);
}

.htd-notify-btn.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 8px 20px -4px rgba(245, 158, 11, 0.4);
}

.htd-notify-btn.btn-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 8px 20px -4px rgba(59, 130, 246, 0.4);
}

/* Progress Bar at bottom */
.htd-notify-progress-track {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #f1f5f9;
}

.htd-notify-progress-bar {
    height: 100%;
    width: 100%;
    background: #10b981;
    transition: width linear;
}

.htd-notify-progress-bar.danger { background: #ef4444; }
.htd-notify-progress-bar.warning { background: #f59e0b; }
.htd-notify-progress-bar.info { background: #3b82f6; }

@keyframes popupScaleIn {
    0% {
        opacity: 0;
        transform: scale(0.85) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.site-popup-card {
    transition: all 0.3s ease;
}

/* ==========================================================
   FLOATING ACTION WIDGETS (VERTICAL STACK: ZALO TOP, THEME BOTTOM)
   ========================================================== */
.floating-widget-stack {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    pointer-events: none;
}

.floating-widget-stack > * {
    pointer-events: auto;
}

/* 1. Zalo Support Pill (Nằm Trên) */
.floating-zalo-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 15px 7px 8px;
    background: linear-gradient(135deg, #0088ff 0%, #0060fe 100%);
    border-radius: 50px;
    text-decoration: none;
    color: #ffffff !important;
    font-size: 12.5px;
    font-weight: 800;
    box-shadow: 0 8px 24px rgba(0, 104, 255, 0.45), 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.floating-zalo-pill:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 104, 255, 0.65), 0 0 15px rgba(0, 136, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.5);
}

.floating-zalo-pill:active {
    transform: scale(0.95);
}

.zalo-pill-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13.5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.zalo-pill-text {
    letter-spacing: -0.2px;
}

.zalo-pill-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 8px #4ade80;
    animation: beaconPulse 2s infinite;
}

/* 2. Theme Switch Capsule (Nằm Dưới) */
.floating-theme-capsule {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px 5px 7px;
    border-radius: 50px;
    cursor: pointer;
    user-select: none;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 8px 25px -4px rgba(0, 0, 0, 0.4), 0 2px 6px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="light"] .floating-theme-capsule {
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(226, 232, 240, 0.95);
    box-shadow: 0 8px 25px -4px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(37, 99, 235, 0.08);
}

.floating-theme-capsule:hover {
    transform: translateY(-3px) scale(1.05);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 12px 30px -4px rgba(59, 130, 246, 0.3);
}

[data-theme="light"] .floating-theme-capsule:hover {
    border-color: #93c5fd;
    box-shadow: 0 12px 30px -4px rgba(37, 99, 235, 0.18);
}

.floating-theme-capsule:active {
    transform: scale(0.95);
}

/* Sliding Track & Thumb */
.theme-switch-track {
    width: 44px;
    height: 24px;
    border-radius: 20px;
    background: #17223b;
    border: 1px solid rgba(255, 255, 255, 0.12);
    position: relative;
    padding: 2px;
    display: flex;
    align-items: center;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .theme-switch-track {
    background: #e2e8f0;
    border-color: #cbd5e1;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.08);
}

.track-icons {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5px;
    pointer-events: none;
    font-size: 9.5px;
    box-sizing: border-box;
}

.track-sun {
    color: #f59e0b;
    opacity: 0.5;
}

.track-moon {
    color: #60a5fa;
    opacity: 0.5;
}

.theme-switch-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 9px;
    position: relative;
    z-index: 2;
    transform: translateX(20px);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .theme-switch-thumb {
    transform: translateX(0px);
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.4);
}

[data-theme="dark"] .thumb-sun {
    display: none;
}
[data-theme="dark"] .thumb-moon {
    display: inline-block;
}

[data-theme="light"] .thumb-sun {
    display: inline-block;
    color: #ffffff;
}
[data-theme="light"] .thumb-moon {
    display: none;
}

.theme-capsule-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    min-width: 24px;
}

/* 3. Scroll To Top Button */
.floating-top-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    outline: none;
}

[data-theme="light"] .floating-top-btn {
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(226, 232, 240, 0.95);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.floating-top-btn:hover {
    background: var(--brand-primary);
    color: #ffffff;
    border-color: transparent;
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
}

@media (max-width: 600px) {
    .floating-widget-stack {
        bottom: 14px;
        right: 14px;
        gap: 8px;
        transform: scale(0.92);
        transform-origin: bottom right;
    }
}

/* ==========================================================
   NEXT-GEN LIVE ACTIVITY FEED & TRANSACTION STREAM
   ========================================================== */
.tx-feed-panel {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 24px;
    margin-top: 36px;
    margin-bottom: 26px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

[data-theme="light"] .tx-feed-panel {
    background: #ffffff;
    border-color: rgba(226, 232, 240, 0.9);
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.04), 0 2px 6px -1px rgba(0, 0, 0, 0.02);
}

.tx-feed-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-subtle);
}

.tx-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.tx-header-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(6, 182, 212, 0.15) 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.tx-header-title-box h3 {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: -0.2px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tx-header-title-box p {
    font-size: 12.5px;
    color: var(--text-muted);
    margin: 3px 0 0 0;
}

.tx-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tx-feed-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-input);
    padding: 4px;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    flex-wrap: wrap;
}

.tx-tab-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: inherit;
}

.tx-tab-btn:hover {
    color: var(--brand-primary);
    background: var(--bg-hover);
}

.tx-tab-btn.active {
    background: var(--brand-gradient);
    color: #ffffff !important;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.tx-grid-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}

.tx-card-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 12px 14px;
    gap: 12px;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

[data-theme="light"] .tx-card-item {
    background: #f8fafc;
    border-color: #e2e8f0;
}

[data-theme="light"] .tx-card-item:hover {
    background: #ffffff;
    border-color: #93c5fd;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -4px rgba(37, 99, 235, 0.1);
}

[data-theme="dark"] .tx-card-item {
    background: rgba(23, 34, 59, 0.45);
    border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .tx-card-item:hover {
    background: rgba(23, 34, 59, 0.8);
    border-color: rgba(56, 189, 248, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -4px rgba(0, 0, 0, 0.4);
}

.tx-card-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.tx-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.tx-avatar-circle {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 13.5px;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.tx-badge-icon {
    position: absolute;
    bottom: -3px;
    right: -3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 1.5px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
}

.tx-body {
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

.tx-top-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
    flex-wrap: wrap;
}

.tx-user-name {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
}

.tx-activity-tag {
    font-size: 9.5px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
}

.tx-tag-order {
    background: rgba(59, 130, 246, 0.12);
    color: #2563eb;
    border: 1px solid rgba(59, 130, 246, 0.25);
}

[data-theme="dark"] .tx-tag-order {
    color: #60a5fa;
}

.tx-tag-deposit {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

[data-theme="dark"] .tx-tag-deposit {
    color: #34d399;
}

.tx-tag-otp {
    background: rgba(168, 85, 247, 0.12);
    color: #7c3aed;
    border: 1px solid rgba(168, 85, 247, 0.25);
}

[data-theme="dark"] .tx-tag-otp {
    color: #c084fc;
}

.tx-time-ago {
    font-size: 11px;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
}

.tx-detail-title {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
    line-height: 1.35;
    display: block;
}

.tx-card-right {
    text-align: right;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    white-space: nowrap;
}

.tx-val-amount {
    font-size: 13.5px;
    font-weight: 800;
    letter-spacing: -0.2px;
    white-space: nowrap;
}

.tx-val-order {
    color: #0284c7;
}

[data-theme="dark"] .tx-val-order {
    color: #38bdf8;
}

.tx-val-deposit {
    color: #059669;
}

[data-theme="dark"] .tx-val-deposit {
    color: #10b981;
}

.tx-val-otp {
    color: #7c3aed;
}

[data-theme="dark"] .tx-val-otp {
    color: #c084fc;
}

.tx-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 9px;
    font-weight: 700;
    color: var(--accent-success);
    background: var(--badge-bg-success);
    padding: 1px 6px;
    border-radius: 20px;
    border: 1px solid rgba(16, 185, 129, 0.2);
    white-space: nowrap;
}

.tx-status-pill .pulse-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent-success);
    box-shadow: 0 0 6px var(--accent-success);
}

.tx-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 32px 20px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.tx-empty-state i {
    font-size: 28px;
    opacity: 0.5;
}

@media (max-width: 960px) {
    .tx-grid-container {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .tx-feed-panel {
        padding: 12px 10px;
        border-radius: 14px;
        margin-top: 20px;
        margin-bottom: 20px;
        width: 100%;
        box-sizing: border-box;
    }
    .tx-feed-header {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        margin-bottom: 10px;
        padding-bottom: 10px;
    }
    .tx-header-left {
        gap: 10px;
    }
    .tx-header-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
        border-radius: 8px;
    }
    .tx-header-title-box h3 {
        font-size: 13.5px;
    }
    .tx-header-title-box p {
        font-size: 11px;
    }
    .tx-header-right {
        width: 100%;
    }
    .tx-feed-tabs {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding: 3px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .tx-feed-tabs::-webkit-scrollbar {
        display: none;
    }
    .tx-tab-btn {
        flex-shrink: 0;
        white-space: nowrap;
        padding: 4px 8px;
        font-size: 10.5px;
    }
    .tx-grid-container {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        width: 100%;
    }
    .tx-card-item {
        padding: 8px 10px;
        gap: 8px;
        border-radius: 10px;
        min-width: 0;
        width: 100%;
    }
    .tx-card-left {
        gap: 8px;
        min-width: 0;
    }
    .tx-avatar-circle {
        width: 30px;
        height: 30px;
        font-size: 12px;
        border-radius: 8px;
    }
    .tx-badge-icon {
        width: 14px;
        height: 14px;
        font-size: 7px;
    }
    .tx-top-meta {
        gap: 4px;
        margin-bottom: 2px;
    }
    .tx-user-name {
        font-size: 11.5px;
    }
    .tx-activity-tag {
        font-size: 8.5px;
        padding: 1px 4px;
    }
    .tx-time-ago {
        font-size: 10px;
    }
    .tx-detail-title {
        font-size: 11px;
        line-height: 1.3;
    }
    .tx-card-right {
        gap: 2px;
        min-width: 65px;
    }
    .tx-val-amount {
        font-size: 12px;
    }
    .tx-status-pill {
        font-size: 8px;
        padding: 1px 4px;
    }
}

/* ==========================================================
   FLOATING ACTION WIDGETS (ANIMATED ZALO PILL & THEME CAPSULE)
   ========================================================== */
.floating-widget-stack {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    pointer-events: none;
}

.floating-widget-stack > * {
    pointer-events: auto;
}

/* --- 1. ZALO SUPPORT WIDGET (SUPERCHARGED ANIMATIONS) --- */
.floating-zalo-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Sonar Wave Rings radiating outward */
.zalo-sonar-wave {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50px;
    border: 2px solid #0088ff;
    opacity: 0.8;
    pointer-events: none;
    animation: zaloSonarRipple 2.4s cubic-bezier(0.22, 1, 0.36, 1) infinite;
    z-index: 1;
}

.zalo-sonar-wave.wave-2 {
    animation-delay: 1.2s;
}

@keyframes zaloSonarRipple {
    0% {
        transform: translate(-50%, -50%) scale(0.95);
        opacity: 0.9;
    }
    50% {
        opacity: 0.4;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.35, 1.6);
        opacity: 0;
    }
}

/* Floating Zalo Pill */
.floating-zalo-pill {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px 8px 10px;
    height: 42px;
    min-width: 130px;
    box-sizing: border-box;
    background: linear-gradient(135deg, #0088ff 0%, #0056f6 100%);
    border-radius: 50px;
    text-decoration: none;
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 8px 24px rgba(0, 104, 255, 0.45), 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    overflow: hidden;
    animation: zaloFloatBounce 4s ease-in-out infinite;
}

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

.floating-zalo-pill:hover {
    transform: translateY(-5px) scale(1.08) !important;
    box-shadow: 0 14px 35px rgba(0, 104, 255, 0.7), 0 0 20px rgba(0, 136, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.6);
}

.floating-zalo-pill:active {
    transform: scale(0.95) !important;
}

/* Light Sweep Shimmer Beam across the pill */
.zalo-shimmer-beam {
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-25deg);
    animation: zaloShimmerSweep 3s infinite;
    pointer-events: none;
}

@keyframes zaloShimmerSweep {
    0%, 60% {
        left: -100%;
    }
    100% {
        left: 200%;
    }
}

/* Chat Icon with Wiggle Animation */
.zalo-pill-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13.5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    animation: zaloIconWiggle 4s infinite;
}

@keyframes zaloIconWiggle {
    0%, 75%, 100% {
        transform: rotate(0deg) scale(1);
    }
    80% {
        transform: rotate(-16deg) scale(1.15);
    }
    85% {
        transform: rotate(14deg) scale(1.15);
    }
    90% {
        transform: rotate(-10deg) scale(1.1);
    }
    95% {
        transform: rotate(6deg) scale(1.05);
    }
}

.zalo-pill-text {
    letter-spacing: -0.2px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Live Pulsing Dot */
.zalo-pill-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 8px #4ade80;
    position: relative;
    flex-shrink: 0;
}

.zalo-pill-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: #4ade80;
    animation: dotPulseSonar 1.8s infinite;
}

@keyframes dotPulseSonar {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.9;
    }
    100% {
        transform: translate(-50%, -50%) scale(3);
        opacity: 0;
    }
}

/* --- 2. THEME SWITCH CAPSULE (ĐỒNG BỘ KÍCH THƯỚC BẰNG ZALO PILL) --- */
.floating-theme-capsule {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 14px 6px 10px;
    height: 42px;
    min-width: 130px;
    box-sizing: border-box;
    border-radius: 50px;
    cursor: pointer;
    user-select: none;
    background: rgba(15, 23, 42, 0.88);
    border: 1.5px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 25px -4px rgba(0, 0, 0, 0.4), 0 2px 6px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="light"] .floating-theme-capsule {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(226, 232, 240, 0.95);
    box-shadow: 0 8px 25px -4px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(37, 99, 235, 0.08);
}

.floating-theme-capsule:hover {
    transform: translateY(-3px) scale(1.05);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 12px 30px -4px rgba(59, 130, 246, 0.35);
}

[data-theme="light"] .floating-theme-capsule:hover {
    border-color: #93c5fd;
    box-shadow: 0 12px 30px -4px rgba(37, 99, 235, 0.2);
}

.floating-theme-capsule:active {
    transform: scale(0.95);
}

/* Sliding Track & Thumb */
.theme-switch-track {
    width: 44px;
    height: 24px;
    border-radius: 20px;
    background: #17223b;
    border: 1px solid rgba(255, 255, 255, 0.12);
    position: relative;
    padding: 2px;
    display: flex;
    align-items: center;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

[data-theme="light"] .theme-switch-track {
    background: #e2e8f0;
    border-color: #cbd5e1;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.08);
}

.track-icons {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5px;
    pointer-events: none;
    font-size: 9.5px;
    box-sizing: border-box;
}

.track-sun {
    color: #f59e0b;
    opacity: 0.6;
}

.track-moon {
    color: #60a5fa;
    opacity: 0.6;
}

.theme-switch-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 9px;
    position: relative;
    z-index: 2;
    transform: translateX(20px);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .theme-switch-thumb {
    transform: translateX(0px);
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.4);
}

[data-theme="dark"] .thumb-sun {
    display: none;
}
[data-theme="dark"] .thumb-moon {
    display: inline-block;
}

[data-theme="light"] .thumb-sun {
    display: inline-block;
    color: #ffffff;
}
[data-theme="light"] .thumb-moon {
    display: none;
}

.theme-capsule-label {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-primary);
    min-width: 32px;
    text-align: right;
}

/* --- 3. SCROLL TO TOP BUTTON --- */
.floating-top-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    outline: none;
}

[data-theme="light"] .floating-top-btn {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(226, 232, 240, 0.95);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.floating-top-btn:hover {
    background: var(--brand-primary);
    color: #ffffff;
    border-color: transparent;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.45);
}

@media (max-width: 768px) {
    .floating-widget-stack {
        bottom: max(10px, env(safe-area-inset-bottom, 10px));
        right: 10px;
        gap: 6px;
    }
    
    /* Đồng bộ kích thước Zalo Pill trên Mobile */
    .floating-zalo-pill {
        padding: 6px 12px 6px 8px;
        font-size: 11.5px;
        height: 36px;
        min-width: 116px;
        gap: 6px;
        box-shadow: 0 4px 14px rgba(0, 104, 255, 0.4);
    }
    .zalo-pill-icon {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }
    
    /* Đồng bộ kích thước Theme Switch Capsule bằng với Zalo trên Mobile */
    .floating-theme-capsule {
        padding: 4px 10px 4px 8px;
        height: 36px;
        min-width: 116px;
        gap: 6px;
        justify-content: space-between;
    }
    .theme-switch-track {
        width: 38px;
        height: 20px;
    }
    .theme-switch-thumb {
        width: 14px;
        height: 14px;
        transform: translateX(18px);
    }
    [data-theme="light"] .theme-switch-thumb {
        transform: translateX(0px);
    }
    .theme-capsule-label {
        font-size: 11.5px;
        font-weight: 800;
        min-width: 28px;
    }
    
    /* Compact Top Button */
    .floating-top-btn {
        width: 30px;
        height: 30px;
        font-size: 10px;
    }
}

/* ==========================================================
   CLEAN IGBM-STYLE ANIMATED LOGO
   ========================================================== */
.igbm-clean-brand-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    user-select: none;
    margin-right: 14px;
    flex-shrink: 0;
    position: relative;
    transition: transform 0.25s ease;
}

.igbm-clean-brand-link:hover {
    transform: translateY(-1px) scale(1.04);
}

.igbm-clean-logo-img {
    height: 42px;
    width: auto;
    max-width: 175px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 0 6px rgba(255, 170, 0, 0.45));
    transition: filter 0.25s ease;
}

.igbm-clean-brand-link:hover .igbm-clean-logo-img {
    filter: drop-shadow(0 0 14px rgba(255, 215, 0, 0.85)) drop-shadow(0 0 18px rgba(0, 210, 255, 0.65));
}

@media (max-width: 991px) {
    .igbm-clean-brand-link {
        margin-right: 0;
    }
    .igbm-clean-logo-img {
        height: 32px;
        max-height: 34px;
        max-width: 140px;
    }
    .nav-left-group {
        gap: 8px;
        flex: 0 1 auto;
    }
    .nav-right {
        gap: 6px;
    }
    .balance-pill {
        padding: 3px 8px 3px 5px;
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 6px 0;
    }
    .nav-wrapper {
        gap: 6px;
        flex-wrap: nowrap !important;
    }
    .igbm-clean-logo-img {
        height: 28px;
        max-height: 30px;
        max-width: 125px;
    }
    .mobile-toggle-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
        border-radius: 8px;
    }
    .balance-pill {
        padding: 3px 7px 3px 4px;
        font-size: 11px;
        gap: 4px;
    }
    .balance-icon-wrap {
        width: 18px;
        height: 18px;
        font-size: 9px;
    }
    .mobile-user-avatar-btn {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
}

@media (max-width: 390px) {
    .igbm-clean-logo-img {
        height: 25px;
        max-width: 105px;
    }
    .balance-pill {
        padding: 2px 5px 2px 3px;
        font-size: 10.5px;
    }
    .balance-pill #user-header-balance {
        max-width: 65px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* Dynamic Logo Theme Switching */
[data-theme="dark"] .logo-light-mode,
:root:not([data-theme="light"]) .logo-light-mode {
    display: none !important;
}

[data-theme="dark"] .logo-dark-mode,
:root:not([data-theme="light"]) .logo-dark-mode {
    display: block !important;
}

[data-theme="light"] .logo-dark-mode {
    display: none !important;
}

[data-theme="light"] .logo-light-mode {
    display: block !important;
}

/* ==========================================================
   TRANSACTION SPLIT SECTION (ĐƠN HÀNG GẦN ĐÂY & NẠP TIỀN GẦN ĐÂY)
   ========================================================== */
.tx-split-section {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-top: 36px;
    margin-bottom: 24px;
    width: 100%;
    box-sizing: border-box;
}

.tx-split-column {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border-radius: 14px;
    overflow: hidden;
}

.tx-split-header {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 55%, #3b82f6 100%);
    color: #ffffff;
    padding: 12px 18px;
    font-size: 13.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 14px 14px 0 0;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
    user-select: none;
}

.tx-split-header i {
    font-size: 15px;
}

.tx-split-body {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-top: none;
    border-radius: 0 0 14px 14px;
    padding: 12px;
    max-height: 420px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Custom Scrollbar */
.tx-split-body::-webkit-scrollbar {
    width: 5px;
}
.tx-split-body::-webkit-scrollbar-track {
    background: transparent;
}
.tx-split-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
[data-theme="dark"] .tx-split-body::-webkit-scrollbar-thumb {
    background: #334155;
}

/* Item Card */
.tx-split-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: var(--bg-surface-elevated, #ffffff);
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 12.5px;
    line-height: 1.4;
    transition: all 0.15s ease;
    min-width: 0;
}

[data-theme="light"] .tx-split-item {
    background: #ffffff;
    border-color: #cbd5e1;
}

[data-theme="light"] .tx-split-item:hover {
    border-color: #93c5fd;
    background: #f8fafc;
}

[data-theme="dark"] .tx-split-item {
    background: rgba(15, 23, 42, 0.5);
    border-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .tx-split-item:hover {
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(56, 189, 248, 0.35);
}

.tx-item-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.tx-dot-green {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #22c55e;
    border: 2px solid #16a34a;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.5);
    flex-shrink: 0;
    display: inline-block;
}

.tx-money-icon {
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
}

.tx-item-text {
    color: var(--text-secondary, #475569);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap;
    min-width: 0;
}

.tx-user-green {
    color: #16a34a;
    font-weight: 800;
    flex-shrink: 0;
}

[data-theme="dark"] .tx-user-green {
    color: #22c55e;
}

.tx-lbl {
    color: var(--text-muted, #64748b);
    flex-shrink: 0;
}

.tx-prod-red {
    color: #dc2626;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

[data-theme="dark"] .tx-prod-red {
    color: #f87171;
}

.tx-price-blue, .tx-bank-blue {
    color: #0284c7;
    font-weight: 800;
    flex-shrink: 0;
}

[data-theme="dark"] .tx-price-blue, [data-theme="dark"] .tx-bank-blue {
    color: #38bdf8;
}

.tx-amount-red {
    color: #dc2626;
    font-weight: 800;
    flex-shrink: 0;
}

[data-theme="dark"] .tx-amount-red {
    color: #f87171;
}

.tx-received-green {
    color: #16a34a;
    font-weight: 800;
    flex-shrink: 0;
}

[data-theme="dark"] .tx-received-green {
    color: #4ade80;
}

.tx-time-pill {
    background: #0068ff;
    color: #ffffff !important;
    font-size: 10.5px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 104, 255, 0.25);
    user-select: none;
}

.tx-empty-card {
    text-align: center;
    padding: 24px 16px;
    color: var(--text-muted);
    font-size: 12.5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.tx-empty-card i {
    font-size: 24px;
    opacity: 0.5;
}

@media (max-width: 900px) {
    .tx-split-section {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .tx-item-text {
        white-space: normal;
        flex-wrap: wrap;
    }
}

