/* ==========================================================================
   LOBI SHOP - MODERN BLUE THEME SYSTEM
   ========================================================================== */
:root {
    --bg: #090d16;
    --bg-main: #0b1120;
    --bg-card: #111827;
    --bg-card-hover: #1e293b;
    --bg-card-border: rgba(56, 189, 248, 0.2);
    --bg-sidebar: #090b14;
    --sidebar-neon-purple: #a855f7;
    --sidebar-neon-glow: rgba(168, 85, 247, 0.45);
    --sidebar-neon-deep: #8a2be2;
    --sidebar-border: rgba(168, 85, 247, 0.18);
    --sidebar-active-grad: linear-gradient(90deg, rgba(168, 85, 247, 0.22) 0%, rgba(138, 43, 226, 0.05) 100%);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-blue: #38bdf8;
    --accent-primary: #0284c7;
    --accent-primary-hover: #0369a1;
    --accent-green: #10b981;
    --accent-red: #ef4444;
    --accent-amber: #f59e0b;
    --accent-purple: #a855f7;
    --shadow-glow: 0 4px 20px rgba(2, 132, 199, 0.15);
    --shadow-card-luxury: 0 4px 25px -2px rgba(0, 0, 0, 0.25);
    --glass-bg: rgba(17, 24, 39, 0.72);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-blur: blur(16px) saturate(180%);
    --transDur: 0.3s;
    --primary: #38bdf8;
    --primaryT: rgba(56, 189, 248, 0.3);
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 80px;
}

body.light-theme {
    --bg: #f8fafc;
    --bg-main: #f0f7ff;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;
    --bg-card-border: #cbd5e1;
    --bg-sidebar: #0c101d; /* Giữ Dark UI Neon Purple cho sidebar chuẩn video tham chiếu */
    --sidebar-neon-purple: #a855f7;
    --sidebar-neon-glow: rgba(168, 85, 247, 0.45);
    --sidebar-neon-deep: #8a2be2;
    --sidebar-border: rgba(168, 85, 247, 0.18);
    --sidebar-active-grad: linear-gradient(90deg, rgba(168, 85, 247, 0.22) 0%, rgba(138, 43, 226, 0.05) 100%);
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --accent-blue: #0284c7;
    --accent-primary: #0284c7;
    --accent-primary-hover: #0369a1;
    --accent-green: #059669;
    --accent-red: #dc2626;
    --accent-amber: #d97706;
    --accent-purple: #8a2be2;
    --shadow-glow: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-card-luxury: 0 4px 25px -2px rgba(0, 0, 0, 0.05);
    --glass-bg: rgba(255, 255, 255, 0.72);
    --glass-border: rgba(255, 255, 255, 0.4);
    --primary: #0284c7;
    --primaryT: rgba(2, 132, 199, 0.2);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ==========================================================================
   8D. FULL-SCREEN LOADING PAGE & ANIMATIONS
   ========================================================================== */
#fullscreen-loader {
    position: fixed;
    inset: 0;
    background-color: var(--bg-main);
    z-index: 100000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
#fullscreen-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none !important;
    display: none !important;
}

.loader-bar { 
    width: 120px; 
    height: 22px; 
    border-radius: 20px; 
    color: var(--accent-blue); 
    border: 2px solid; 
    position: relative; 
}
.loader-bar::before { 
    content: ""; 
    position: absolute; 
    margin: 2px; 
    inset: 0 100% 0 0; 
    border-radius: inherit; 
    background: currentColor; 
    animation: l6 2s infinite; 
}
@keyframes l6 { 100% { inset: 0 } }

.loader-text { 
    font-weight: bold; 
    font-family: monospace; 
    font-size: 30px; 
    display: inline-grid; 
    color: var(--text-primary);
}
.loader-text:before, .loader-text:after { 
    content: "Loading..."; 
    grid-area: 1/1; 
    -webkit-mask: linear-gradient(90deg, #000 50%, #0000 0) 0 50%/2ch 100%; 
    animation: l11 1s infinite cubic-bezier(0.5, 220, 0.5, -220); 
}
.loader-text:after { 
    -webkit-mask-position: 1ch 50%; 
    --s: -1; 
}
@keyframes l11 { 100% { transform: translateY(calc(var(--s, 1)*0.1%)); } }

/* ==========================================================================
   8E. INLINE TAB & CONTAINER LOADER (HIỂN THỊ KHI DỮ LIỆU ĐANG LOAD)
   ========================================================================== */
.tab-inline-loader {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 60px 20px;
    box-sizing: border-box;
}

.tab-inline-loader.compact {
    min-height: 150px;
    padding: 24px 10px;
    gap: 16px;
}

.tab-inline-loader.compact .loader-bar {
    width: 90px;
    height: 18px;
}

.tab-inline-loader.compact .loader-text {
    font-size: 20px;
}

/* ==========================================================================
   8A. NÚT TOGGLE THEME SÁNG/TỐI (1 NÚT ĐƠN GIẢN CHUẨN HIỆN ĐẠI)
   ========================================================================== */
.btn-theme-simple {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    padding: 0;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}
.btn-theme-simple:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(56, 189, 248, 0.25);
}
.btn-theme-simple svg {
    width: 20px;
    height: 20px;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}
body.dark-theme .btn-theme-simple .theme-icon-sun {
    display: block;
    color: #fbbf24;
}
body.dark-theme .btn-theme-simple .theme-icon-moon {
    display: none;
}
body.light-theme .btn-theme-simple .theme-icon-sun {
    display: none;
}
body.light-theme .btn-theme-simple .theme-icon-moon {
    display: block;
    color: #0284c7;
}
body:not(.light-theme) .btn-theme-simple .theme-icon-sun {
    display: block;
    color: #fbbf24;
}
body:not(.light-theme) .btn-theme-simple .theme-icon-moon {
    display: none;
}

/* ==========================================================================
   8B. NÚT ĐĂNG XUẤT ANIMATED LOGOUT BUTTON (MƯỢT MÀ, TỪ TỪ, FIT MÀN HÌNH)
   ========================================================================== */
.Btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 22px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: width 0.75s cubic-bezier(0.25, 1, 0.5, 1), border-radius 0.75s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.5s ease;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25);
    background: linear-gradient(135deg, #0284c7 0%, #ef4444 100%);
    flex-shrink: 0;
}
.Btn .sign {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.Btn .sign svg {
    width: 17px;
}
.Btn .sign svg path {
    fill: white;
}
.Btn .text {
    position: absolute;
    left: 44px;
    opacity: 0;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    transition: opacity 0.5s ease 0.18s, transform 0.65s cubic-bezier(0.25, 1, 0.5, 1);
    transform: translateX(-10px);
}
.Btn:hover {
    width: 125px;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.35);
}
.Btn:hover .text {
    opacity: 1;
    transform: translateX(0);
}
.Btn:active {
    transform: scale(0.96);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   5. BELL NOTIFICATION VỚI HIỆU ỨNG LẮC LƯ VÀ BẢNG THÔNG BÁO
   ========================================================================== */
.bell-notification-wrapper {
    position: relative;
}
.bell-notification-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    cursor: pointer;
    transition: all 0.25s ease;
    padding: 0;
}
.bell-notification-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-blue);
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.3);
}

/* Hiệu ứng lắc lư khi đưa chuột đến (hover) */
@keyframes bellSwingWiggle {
    0% { transform: rotate(0); }
    15% { transform: rotate(16deg); }
    30% { transform: rotate(-14deg); }
    45% { transform: rotate(12deg); }
    60% { transform: rotate(-8deg); }
    75% { transform: rotate(4deg); }
    85% { transform: rotate(-2deg); }
    100% { transform: rotate(0); }
}
.bell-notification-btn:hover .bell-icon-inner {
    display: inline-block;
    transform-origin: top center;
    animation: bellSwingWiggle 0.8s ease-in-out infinite;
}

.bell-badge-dot {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 9px;
    height: 9px;
    background-color: var(--accent-red);
    border-radius: 50%;
    border: 2px solid var(--bg-card);
    display: none;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.8);
    animation: pulseDot 1.5s infinite;
}
.bell-badge-dot.active {
    display: block;
}
@keyframes pulseDot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}

/* BẢNG THÔNG BÁO DROPDOWN */
.notification-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 350px;
    max-width: calc(100vw - 32px);
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), var(--shadow-glow);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.96);
    transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.notification-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}
.noti-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--bg-card-border);
    background: rgba(2, 132, 199, 0.05);
}
.noti-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}
.noti-title-icon {
    font-size: 16px;
}
.noti-title-text {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-primary);
}
.noti-unread-tag {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    background: rgba(2, 132, 199, 0.2);
    color: var(--accent-blue);
    border-radius: 10px;
}
.btn-noti-mark-all {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}
.btn-noti-mark-all:hover {
    color: var(--accent-blue);
    background: rgba(56, 189, 248, 0.1);
}
.noti-body-list {
    max-height: 320px;
    overflow-y: auto;
    padding: 6px 0;
}
.noti-body-list::-webkit-scrollbar {
    width: 4px;
}
.noti-body-list::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.25);
    border-radius: 4px;
}
.noti-item {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.2s ease;
    cursor: default;
    position: relative;
}
.noti-item:hover {
    background: var(--bg-card-hover);
}
.noti-item.unread {
    background: rgba(56, 189, 248, 0.05);
}
.noti-item-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.noti-item-icon.deposit {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-green);
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.noti-item-icon.otp {
    background: rgba(56, 189, 248, 0.15);
    color: var(--accent-blue);
    border: 1px solid rgba(56, 189, 248, 0.3);
}
.noti-item-icon.system {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-amber);
    border: 1px solid rgba(245, 158, 11, 0.3);
}
.noti-item-content {
    flex: 1;
    min-width: 0;
}
.noti-item-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 3px;
    line-height: 1.4;
}
.noti-item-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
    word-break: break-word;
}
.noti-item-time {
    font-size: 10.5px;
    color: var(--text-secondary);
    margin-top: 4px;
    opacity: 0.8;
}
.noti-empty-state {
    padding: 30px 20px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 13px;
}
.noti-empty-icon {
    font-size: 32px;
    margin-bottom: 8px;
}
.noti-footer {
    padding: 10px 16px;
    background: rgba(0, 0, 0, 0.15);
    border-top: 1px solid var(--bg-card-border);
    font-size: 11px;
    color: var(--text-secondary);
    text-align: center;
}

/* ==========================================================================
   8C. CSS ICON REFRESH SỐ DƯ / ĐỒNG BỘ
   ========================================================================== */
.loader-refresh {
    width: 28px; 
    aspect-ratio: 1; 
    display: grid; 
    border: 3px solid #0000; 
    border-radius: 50%; 
    border-color: var(--accent-blue) #0000; 
    animation: l16 1s infinite linear;
}
.loader-refresh::before, .loader-refresh::after { 
    content: ""; 
    grid-area: 1/1; 
    margin: 2px; 
    border: inherit; 
    border-radius: 50%; 
}
.loader-refresh::before { 
    border-color: #38bdf8 #0000; 
    animation: inherit; 
    animation-duration: .5s; 
    animation-direction: reverse; 
}
.loader-refresh::after { margin: 6px; }
@keyframes l16 { 100%{transform: rotate(1turn)} }

/* ==========================================================================
   9. HIỆU ỨNG PHÁO HOA (FIREWORKS ANIMATION)
   ========================================================================== */
#fireworks { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 99999; }
.firework { position: absolute; width: 6px; height: 6px; border-radius: 50%; animation: explode 1.2s ease-out forwards; }
@keyframes explode {
  0% { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(var(--x), var(--y)) scale(0.2); opacity: 0; }
}

/* ==========================================================================
   TOAST NOTIFICATION (1-CLICK COPY / SYSTEM NOTICE)
   ========================================================================== */
#toast-notification {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: #0f172a;
    color: #f8fafc;
    border: 1px solid var(--accent-blue);
    padding: 10px 20px;
    border-radius: 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 15px rgba(56, 189, 248, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    z-index: 100001;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
    opacity: 0;
}
#toast-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ==========================================================================
   CUSTOM ALERT / MODAL POPUP DIALOG (THAY THẾ ALERT MẶC ĐỊNH)
   ========================================================================== */
.custom-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    padding: 20px;
}
.custom-modal-backdrop.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.custom-dialog-box {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: 20px;
    padding: 28px 24px;
    max-width: 440px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), var(--shadow-glow);
    transform: scale(0.92);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.custom-modal-backdrop.open .custom-dialog-box {
    transform: scale(1);
}
.dialog-icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}
.dialog-icon-circle.success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-green);
    border: 2px solid var(--accent-green);
}
.dialog-icon-circle.error {
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-red);
    border: 2px solid var(--accent-red);
}
.dialog-icon-circle.info {
    background: rgba(56, 189, 248, 0.15);
    color: var(--accent-blue);
    border: 2px solid var(--accent-blue);
}
.dialog-title {
    font-size: 19px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 10px;
}
.dialog-message {
    font-size: 14.5px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 22px;
    word-break: break-word;
}
.btn-dialog-close {
    background: var(--accent-primary);
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s ease, transform 0.15s ease;
}
.btn-dialog-close:hover {
    background: var(--accent-primary-hover);
    transform: translateY(-1px);
}

/* ==========================================================================
   2. TRANG LANDING / GIỚI THIỆU (KHI CHƯA ĐĂNG NHẬP)
   ========================================================================== */
#landing-view {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.landing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 5%;
    background: var(--bg-sidebar);
    border-bottom: 1px solid var(--bg-card-border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.landing-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.landing-nav-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}
.btn-landing-contact {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(56, 189, 248, 0.12);
    color: var(--accent-blue);
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 8px 16px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 700;
    transition: all 0.2s ease;
}
.btn-landing-contact:hover {
    background: rgba(56, 189, 248, 0.22);
    border-color: var(--accent-blue);
}
.btn-landing-login {
    background: var(--accent-primary);
    color: #ffffff;
    border: none;
    padding: 8px 20px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
    transition: all 0.2s ease;
}
.btn-landing-login:hover {
    background: var(--accent-primary-hover);
    transform: translateY(-1px);
}

.landing-hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 24px 40px;
    max-width: 1300px;
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
}
.hero-badge-wrap {
    display: flex;
    gap: 10px;
    margin-bottom: 22px;
    flex-wrap: wrap;
    justify-content: center;
}
.hero-badge {
    background: rgba(2, 132, 199, 0.15);
    color: var(--accent-blue);
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 700;
}
.hero-badge.green {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-green);
    border-color: rgba(16, 185, 129, 0.3);
}
.hero-title {
    font-size: clamp(34px, 5vw, 56px);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 18px;
    background: linear-gradient(135deg, #f8fafc 30%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
body.light-theme .hero-title {
    background: linear-gradient(135deg, #0f172a 30%, var(--accent-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-desc {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 680px;
    line-height: 1.6;
    margin-bottom: 34px;
}
.hero-cta-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 50px;
}
.btn-hero-primary {
    background: linear-gradient(135deg, var(--accent-primary) 0%, #0369a1 100%);
    color: #fff;
    border: none;
    padding: 14px 34px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(2, 132, 199, 0.4);
    transition: all 0.25s ease;
}
.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(2, 132, 199, 0.5);
}
.btn-hero-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--bg-card-border);
    padding: 14px 28px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
}
.btn-hero-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-blue);
}

.landing-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    width: 100%;
    margin-top: 15px;
    text-align: left;
    box-sizing: border-box;
}
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    padding: 22px 18px;
    border-radius: 16px;
    box-shadow: var(--shadow-glow);
    transition: transform 0.25s ease, border-color 0.25s ease;
    display: flex;
    flex-direction: column;
}
.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-blue);
}
.feature-icon-box {
    font-size: 30px;
    margin-bottom: 12px;
}
.feature-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 6px;
}
.feature-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ==========================================================================
   AUTH MODAL (POPUP LOGIN / REGISTER)
   ========================================================================== */
/* ==========================================================================
   GLASSY LOGIN & REGISTER FORM V3 (GLASSMORPHISM SPEC)
   Reference: https://vt.tiktok.com/ZSgSxoNaJ/
   backdrop-filter: blur(16px) saturate(180%) + cyber corner accents + 3D flip
   ========================================================================== */
#auth-modal-overlay,
#reset-password-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 24px 20px;
    opacity: 0;
    visibility: hidden;
    perspective: 1200px;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
#auth-modal-overlay.open,
#reset-password-modal.open {
    opacity: 1;
    visibility: visible;
}

.auth-modal-box {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 26px;
    width: 100%;
    max-width: 440px;
    position: relative;
    padding: 30px 24px 24px 24px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.65), inset 0 1px 1px rgba(255, 255, 255, 0.25), 0 0 30px rgba(56, 189, 248, 0.12);
    transform: scale(0.92) translateY(16px);
    transform-style: preserve-3d;
    transition: transform 350ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 350ms ease;
    overflow: visible; /* Để nút X nằm ra ngoài không bị che khuất */
}

#auth-modal-overlay.open .auth-modal-box,
#reset-password-modal.open .auth-modal-box {
    transform: scale(1) translateY(0);
}

/* Cyber Glass Corner Accents (Glassy Login Form v3) */
.cyber-glass-corner {
    position: absolute;
    width: 36px;
    height: 36px;
    pointer-events: none;
    z-index: 2;
}
.cyber-glass-corner.top-left {
    top: 0;
    left: 0;
    border-top: 2px solid rgba(56, 189, 248, 0.7);
    border-left: 2px solid rgba(56, 189, 248, 0.7);
    border-top-left-radius: 24px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.22) 0%, transparent 70%);
}
.cyber-glass-corner.bottom-right {
    bottom: 0;
    right: 0;
    border-bottom: 2px solid rgba(56, 189, 248, 0.7);
    border-right: 2px solid rgba(56, 189, 248, 0.7);
    border-bottom-right-radius: 24px;
    background: linear-gradient(315deg, rgba(56, 189, 248, 0.22) 0%, transparent 70%);
}

/* 3D Flip animation when switching Login <-> Register */
.auth-modal-box.mode-flip {
    animation: authCardFlip 520ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes authCardFlip {
    0% {
        transform: perspective(1200px) rotateY(-28deg) scale(0.92);
        opacity: 0.3;
        filter: blur(4px);
    }
    50% {
        transform: perspective(1200px) rotateY(6deg) scale(0.98);
        filter: blur(0px);
    }
    100% {
        transform: perspective(1200px) rotateY(0deg) scale(1);
        opacity: 1;
        filter: blur(0px);
    }
}

/* NÚT CLOSE (X): Đặt ra NGOÀI modal container ở góc trên cùng bên phải, không cấn vào nút Đăng ký */
.auth-close-btn {
    position: absolute;
    top: -14px;
    right: -14px;
    z-index: 50; /* Hiển thị nổi bật bên ngoài góc card */
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1.5px solid var(--glass-border);
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}
.auth-close-btn:hover {
    background: rgba(239, 68, 68, 0.25);
    color: var(--accent-red);
    border-color: var(--accent-red);
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.5);
}

/* KHỐI TAB: Chiếm full width thoải mái vì nút X đã ở bên ngoài */
.auth-tabs {
    margin-top: 4px;
    width: 100%;
    display: flex;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 14px;
    padding: 5px;
    margin-bottom: 20px;
    border: 1px solid var(--glass-border);
    position: relative;
}
.auth-tab-btn {
    flex: 1;
    padding: 10px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 13.5px;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    transition: all 250ms cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 2;
}
.auth-tab-btn.active {
    background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(56, 189, 248, 0.4);
}

.auth-heading {
    font-size: 23px;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 6px;
    text-align: center;
    letter-spacing: -0.3px;
}
.auth-subheading {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    text-align: center;
}

.google-auth-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
    position: relative;
    z-index: 5;
    transition: transform 0.2s ease;
}
.google-auth-wrapper:hover {
    transform: translateY(-1px);
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 18px 0;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.8px;
}
.auth-divider::before, .auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--glass-border);
}
.auth-divider span {
    padding: 0 12px;
}

.form-group-auth {
    margin-bottom: 16px;
    text-align: left;
    position: relative;
}
.form-group-auth label {
    display: block;
    font-size: 11.5px;
    font-weight: 800;
    color: var(--text-secondary);
    margin-bottom: 6px;
    letter-spacing: 0.6px;
    transition: color 0.2s ease;
}
.form-group-auth:focus-within label {
    color: #38bdf8;
}

/* INPUT WITH ICON (GLASSY LOGIN FORM V3) */
.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}
.input-with-icon .field-icon {
    position: absolute;
    left: 14px;
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
    pointer-events: none;
    transition: color 0.25s ease, transform 0.25s ease;
}
.input-with-icon .auth-input {
    padding-left: 42px;
}
.form-group-auth:focus-within .field-icon {
    color: #38bdf8;
    transform: scale(1.08);
}

/* INPUT WITH GLOW BORDER AND ELEVATION ON FOCUS */
.auth-input {
    width: 100%;
    padding: 13px 16px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    outline: none;
    transition: all 250ms cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}
.auth-input:focus {
    background: rgba(0, 0, 0, 0.35);
    border-color: #38bdf8;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.35), inset 0 1px 2px rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

/* SUBMIT BUTTON WITH VIBRANT NEON GRADIENT */
.btn-auth-submit {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 14.5px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.4);
    margin-top: 10px;
    transition: all 250ms cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 26px rgba(56, 189, 248, 0.6);
    filter: brightness(1.1);
}
.btn-auth-submit:active {
    transform: translateY(0);
}

.auth-footer-text {
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-secondary);
    text-align: center;
}
.auth-footer-text a {
    color: var(--sidebar-neon-purple);
    font-weight: 700;
    text-decoration: none;
    margin-left: 4px;
    transition: all 0.2s ease;
}
.auth-footer-text a:hover {
    color: #c084fc;
    text-decoration: underline;
}

/* ==========================================================================
   RESET PASSWORD MODAL (BẢO MẬT 1 LẦN, HẠN 15 PHÚT)
   ========================================================================== */
.reset-modal-box {
    max-width: 440px;
}
.reset-badge-header {
    text-align: center;
    margin-bottom: 6px;
}
.reset-secure-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid #10b981;
    color: #34d399;
    border-radius: 9999px;
    padding: 4px 14px;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.5px;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}
.reset-timer-alert {
    background: rgba(245, 158, 11, 0.12);
    border: 1px dashed rgba(245, 158, 11, 0.5);
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 13.5px;
    text-align: center;
    color: #f1f5f9;
    margin: 12px 0 16px 0;
}

/* ==========================================================================
   3. APP DASHBOARD CONTAINER & RESPONSIVE DRAWER SIDEBAR
   ========================================================================== */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--bg-main);
    position: relative;
}

.app-body-layout {
    display: flex;
    flex: 1;
    min-height: calc(100vh - 56px);
    position: relative;
}

/* ==========================================================================
   SIDEBAR NAVIGATION: DARK UI WITH NEON PURPLE ACCENT (#A855F7 / #8A2BE2)
   Smooth 300ms transition with cubic-bezier(0.4, 0, 0.2, 1)
   ========================================================================== */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    border-right: 1px solid var(--sidebar-border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px 12px 14px;
    flex-shrink: 0;
    transition: width 300ms cubic-bezier(0.4, 0, 0.2, 1), transform 300ms cubic-bezier(0.4, 0, 0.2, 1), padding 300ms cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 50;
    height: calc(100vh - 56px);
    max-height: calc(100vh - 56px);
    min-height: calc(100vh - 56px);
    overflow: hidden;
    position: sticky;
    top: 56px;
    bottom: 0;
    box-sizing: border-box;
    box-shadow: 4px 0 25px rgba(0, 0, 0, 0.35);
}

/* Collapsed state (80px - Icon Only) */
.sidebar.collapsed {
    width: var(--sidebar-collapsed-width); /* 80px */
    padding: 10px 8px 14px;
}
.sidebar.collapsed .brand-name,
.sidebar.collapsed .menu-label,
.sidebar.collapsed .nav-text,
.sidebar.collapsed .user-profile-info {
    opacity: 0;
    width: 0;
    height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
    pointer-events: none;
    transition: opacity 150ms ease, width 300ms cubic-bezier(0.4, 0, 0.2, 1);
}
.sidebar.collapsed .nav-btn {
    justify-content: center;
    padding: 12px 0;
    gap: 0;
}
.sidebar.collapsed .nav-btn .icon {
    font-size: 20px;
    margin: 0 auto;
}
.sidebar.collapsed .sidebar-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.sidebar.collapsed .sidebar-user-profile {
    padding: 0;
    background: transparent;
    border: none;
    justify-content: center;
    width: 100%;
}
.sidebar.collapsed .Btn {
    margin: 0 auto;
}

.sidebar-top {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    gap: 6px;
}

/* SIDEBAR TOGGLE & TITLE CONTAINER (SIDEBAR V2 SPEC) */
.sidebar-hamburger-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 6px 10px;
    border-bottom: 1px solid var(--sidebar-border);
    flex-shrink: 0;
}
.sidebar.collapsed .sidebar-hamburger-box {
    justify-content: center;
    padding: 6px 0 10px;
}
.sidebar-menu-title {
    font-size: 11.5px;
    font-weight: 800;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: opacity 150ms ease;
}
.sidebar.collapsed .sidebar-menu-title {
    display: none;
    opacity: 0;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
}
.brand-badge {
    background: linear-gradient(135deg, var(--accent-primary) 0%, #0369a1 100%);
    color: #fff;
    font-size: 14.5px;
    font-weight: 900;
    letter-spacing: 1.2px;
    padding: 7px 16px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(2, 132, 199, 0.4);
    white-space: nowrap;
    border: 1px solid rgba(56, 189, 248, 0.35);
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
}
.brand-badge:hover {
    box-shadow: 0 6px 22px rgba(2, 132, 199, 0.6);
    transform: translateY(-1px);
}

/* NÚT TOGGLE COLLAPSE BO TRÒN - NEON PURPLE GLOW (SIDEBAR V2 SPEC) */
.btn-sidebar-hamburger {
    background: rgba(168, 85, 247, 0.12);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: #e9d5ff;
    font-size: 12px;
    font-weight: 800;
    width: 32px;
    height: 32px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}
.btn-sidebar-hamburger:hover {
    background: rgba(168, 85, 247, 0.3);
    color: #ffffff;
    border-color: var(--sidebar-neon-purple);
    box-shadow: 0 0 16px var(--sidebar-neon-glow);
    transform: scale(1.08);
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 2px;
}
.nav-menu::-webkit-scrollbar {
    width: 4px;
}
.nav-menu::-webkit-scrollbar-track {
    background: transparent;
}
.nav-menu::-webkit-scrollbar-thumb {
    background: rgba(168, 85, 247, 0.2);
    border-radius: 4px;
}
.nav-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(168, 85, 247, 0.4);
}
.sidebar.collapsed .nav-menu {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.sidebar.collapsed .nav-menu::-webkit-scrollbar {
    display: none;
}

.menu-label {
    font-size: 11px;
    font-weight: 800;
    color: #a78bfa;
    padding: 10px 12px 4px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}
.menu-label.admin-label {
    color: var(--accent-amber);
    margin-top: 10px;
}

/* SIDEBAR ITEM (NAV-BTN): 60FPS HOVER & ACTIVE ANIMATIONS */
.nav-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 11px 14px;
    background: transparent;
    border: 1px solid transparent;
    color: #cbd5e1;
    font-size: 13.5px;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
    transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.nav-btn .icon {
    font-size: 18px;
    flex-shrink: 0;
    transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1), filter 300ms ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-btn .nav-text {
    transition: opacity 150ms ease, transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* HOVER EFFECT: Tăng độ sáng (brightness), glow shadow (0 0 15px rgba(168, 85, 247, 0.4)), trượt nhẹ icon sang phải 4px */
.nav-btn:hover {
    background: rgba(168, 85, 247, 0.1);
    color: #ffffff;
    filter: brightness(1.18);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
    border-color: rgba(168, 85, 247, 0.25);
}
.nav-btn:hover .icon {
    transform: translateX(4px);
    filter: drop-shadow(0 0 6px var(--sidebar-neon-purple));
}

/* ACTIVE STATE: Thanh indicator phát sáng bên cạnh + background gradient mờ */
.nav-btn.active {
    background: var(--sidebar-active-grad);
    color: #f3e8ff;
    border-color: rgba(168, 85, 247, 0.35);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.25);
}
.nav-btn.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    height: 100%;
    border-radius: 0 4px 4px 0;
    background: #a855f7;
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.6), 0 0 20px rgba(168, 85, 247, 0.4);
}
.nav-btn.active .icon {
    filter: drop-shadow(0 0 8px var(--sidebar-neon-purple));
}

.nav-btn.admin-btn.active {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.2) 0%, rgba(217, 119, 6, 0.05) 100%);
    color: #fef3c7;
    border-color: rgba(245, 158, 11, 0.35);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.25);
}
.nav-btn.admin-btn.active::before {
    background: var(--accent-amber);
    box-shadow: 0 0 14px var(--accent-amber);
}

/* SIDEBAR FOOTER (USER PROFILE & LOGOUT - LUÔN FIT GỌN KHÔNG BỊ CẮT XÉN) */
.sidebar-footer {
    padding-top: 12px;
    padding-bottom: 4px;
    border-top: 1px solid var(--bg-card-border);
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
    margin-top: auto;
}
.sidebar-user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--bg-card-border);
    transition: all 0.2s ease;
}
.profile-avatar-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(2, 132, 199, 0.2);
    color: var(--accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 800;
    flex-shrink: 0;
}
.user-profile-info {
    overflow: hidden;
}
.user-profile-name {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-primary);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}
.user-profile-role {
    font-size: 11px;
    color: var(--accent-blue);
    font-weight: 600;
}

/* DRAWER OVERLAY CHO MOBILE */
.sidebar-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 45;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.sidebar-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* MAIN CONTENT */
.main-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: var(--bg-main);
}

/* TOPBAR */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 22px;
    background: var(--bg-sidebar);
    border-bottom: 1px solid var(--bg-card-border);
    position: sticky;
    top: 0;
    z-index: 60;
    height: 56px;
    box-sizing: border-box;
    width: 100%;
}
.topbar-left {
    display: flex;
    align-items: center;
    gap: 14px;
}
.topbar-brand-box {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.btn-mobile-hamburger {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 22px;
    cursor: pointer;
}

/* ==========================================================================
   TOPBAR HEADER MARQUEE ANNOUNCEMENT (CỐ ĐỊNH TRÊN HEADER KHI CUỘN)
   ========================================================================== */
.topbar-marquee-bar {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.09) 0%, rgba(13, 21, 39, 0.75) 100%);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 9999px;
  height: 34px;
  padding: 0 12px 0 6px;
  margin: 0 16px 0 18px;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  position: relative;
}

.topbar-marquee-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #f59e0b;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.15);
  border-radius: 9999px;
  padding: 2px 9px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.2);
  margin-right: 10px;
  user-select: none;
}

.topbar-marquee-track {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  display: flex;
  mask-image: linear-gradient(to right, transparent 0%, black 12px, black calc(100% - 12px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 12px, black calc(100% - 12px), transparent 100%);
}

.topbar-marquee-inner {
  display: flex;
  flex-shrink: 0;
  white-space: nowrap;
  animation: topbarMarqueeScroll 28s linear infinite;
  will-change: transform;
}

.topbar-marquee-bar:hover .topbar-marquee-inner {
  animation-play-state: paused;
}

.topbar-marquee-item {
  font-size: 12.5px;
  font-weight: 500;
  color: #f1f5f9;
  padding-right: 40px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.topbar-marquee-item strong {
  color: #fbbf24;
  font-weight: 700;
}

.topbar-marquee-item .announcement-zalo-link {
  color: #38bdf8;
  text-decoration: underline;
  font-weight: 700;
  margin: 0 2px;
}

.topbar-marquee-item .announcement-zalo-link:hover {
  color: #7dd3fc;
}

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

@media (max-width: 900px) {
  .topbar-marquee-bar {
    margin: 0 8px;
    height: 30px;
    padding: 0 8px 0 4px;
  }
  .topbar-marquee-badge {
    padding: 1px 6px;
    font-size: 9px;
    margin-right: 6px;
  }
  .topbar-marquee-item {
    font-size: 11.5px;
  }
}

@media (max-width: 640px) {
  .topbar-marquee-badge {
    display: none;
  }
  .topbar-marquee-bar {
    margin: 0 6px;
    padding: 0 6px;
  }
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* REFRESH BUTTON: BO TRÒN HOÀN TOÀN 100% VỚI SVG VECTOR SẮC NÉT */
.btn-refresh-wrap {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    color: var(--accent-blue, #38bdf8);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%; /* BO TRÒN */
    transition: all 0.25s ease;
    flex-shrink: 0;
}
.btn-refresh-wrap .refresh-svg-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}
.btn-refresh-wrap svg {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.btn-refresh-wrap:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-blue, #38bdf8);
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.3);
    transform: scale(1.06);
}
.btn-refresh-wrap:hover svg {
    transform: rotate(120deg);
}
.btn-refresh-wrap:active {
    transform: scale(0.95);
}

/* BELL NOTIFICATION ICON WITH BADGE */
.bell-notification-btn {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    color: var(--text-primary);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.bell-notification-btn:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}
.bell-badge-dot {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 9px;
    height: 9px;
    background: var(--accent-red);
    border: 2px solid var(--bg-card);
    border-radius: 50%;
    display: none;
}
.bell-badge-dot.active {
    display: block;
    animation: pulseRed 1.8s infinite;
}
@keyframes pulseRed {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.8; }
}

/* WALLET BALANCE BADGE */
.balance-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(2, 132, 199, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 13.5px;
    color: var(--text-primary);
}
.balance-badge strong {
    color: var(--accent-blue);
    font-size: 14.5px;
}

/* CONTENT BODY */
.content-body {
    padding: 24px 28px;
    flex: 1;
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block !important;
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   TAB: DASHBOARD TỔNG QUAN (NEW MODERN DASHBOARD)
   ========================================================================== */
.dash-welcome-banner {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.25) 0%, rgba(30, 41, 59, 0.7) 100%);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 20px;
    padding: 28px 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-glow);
}
.dash-welcome-banner h2 {
    font-size: 24px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 8px;
}
.dash-welcome-banner p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ==========================================================================
   DASHBOARD ANALYTICS & ANIMATED COUNTERS (60FPS STAGGER SPEC)
   Reference: https://vt.tiktok.com/ZSgSQer5k/
   Clean Luxury, rounded-2xl (18px-20px), stagger fade-in, sparkline draw
   ========================================================================== */
.dash-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

@keyframes cardStaggerIn {
    0% {
        opacity: 0;
        transform: translateY(24px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid rgba(226, 232, 240, 0.8);
    padding: 22px 20px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
    transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 300ms ease, border-color 300ms ease;
    position: relative;
    overflow: hidden;
}
body.dark-theme .stat-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.35);
}

/* Stagger Animation: Các KPI card hiển thị nối tiếp nhau cách nhau 0.08s từ dưới lên */
.stat-card:nth-child(1) { animation: cardStaggerIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0s both; }
.stat-card:nth-child(2) { animation: cardStaggerIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.08s both; }
.stat-card:nth-child(3) { animation: cardStaggerIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.16s both; }

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px -4px rgba(0, 0, 0, 0.25), 0 0 20px rgba(168, 85, 247, 0.15);
    border-color: rgba(168, 85, 247, 0.4);
}

.stat-card-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.stat-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}
.stat-card:hover .stat-icon {
    transform: scale(1.08) rotate(4deg);
}

.stat-icon.blue { background: rgba(56, 189, 248, 0.15); color: var(--accent-blue); box-shadow: 0 0 12px rgba(56, 189, 248, 0.25); }
.stat-icon.green { background: rgba(16, 185, 129, 0.15); color: var(--accent-green); box-shadow: 0 0 12px rgba(16, 185, 129, 0.25); }
.stat-icon.purple { background: rgba(168, 85, 247, 0.15); color: var(--sidebar-neon-purple); box-shadow: 0 0 12px rgba(168, 85, 247, 0.25); }

.stat-trend-tag {
    font-size: 11.5px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    letter-spacing: 0.3px;
}
.stat-trend-tag.positive {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.stat-trend-tag.blue-tag {
    background: rgba(56, 189, 248, 0.15);
    color: var(--accent-blue);
    border: 1px solid rgba(56, 189, 248, 0.3);
}
.stat-trend-tag.purple-tag {
    background: rgba(168, 85, 247, 0.15);
    color: var(--sidebar-neon-purple);
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.stat-info .stat-label {
    font-size: 12px;
    font-weight: 800;
    color: var(--text-secondary);
    margin-bottom: 6px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}
.stat-info .stat-value {
    font-size: 27px;
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1.2;
    letter-spacing: -0.5px;
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
}

/* MINI SVG SPARKLINE WITH STROKE DRAWING ANIMATION */
.stat-sparkline {
    width: 100%;
    height: 34px;
    margin-top: 14px;
    overflow: visible;
}
.stat-sparkline path {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: drawSparkline 1.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}
@keyframes drawSparkline {
    to {
        stroke-dashoffset: 0;
    }
}

.dash-quick-actions-box {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 28px;
    box-shadow: var(--shadow-card-luxury);
    animation: cardStaggerIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.38s both;
}
.dash-quick-actions-box h3 {
    font-size: 16.5px;
    font-weight: 900;
    margin-bottom: 16px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.quick-action-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.btn-quick-act {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-main);
    border: 1px solid var(--bg-card-border);
    color: var(--text-primary);
    padding: 11px 20px;
    border-radius: 14px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 250ms cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-quick-act:hover {
    background: rgba(168, 85, 247, 0.12);
    border-color: var(--sidebar-neon-purple);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(168, 85, 247, 0.25);
}

/* ==========================================================================
   4. TAB: THUÊ OTP (OPTIMIZED ORDER FORM & TABLE)
   ========================================================================== */
.otp-card-form {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    padding: 24px;
    border-radius: 18px;
    box-shadow: var(--shadow-glow);
    max-width: 620px;
    margin-bottom: 28px;
}
.otp-card-form h3 {
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 18px;
    color: var(--text-primary);
}
.form-group {
    margin-bottom: 16px;
}
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 6px;
}
.form-control {
    width: 100%;
    padding: 11px 14px;
    background: var(--bg-main);
    border: 1px solid var(--bg-card-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
}
.form-control:focus {
    border-color: var(--accent-blue);
}

.price-display-box {
    background: var(--bg-main);
    border: 1px dashed var(--bg-card-border);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 18px;
    font-size: 14px;
    color: var(--text-secondary);
}
.price-display-box strong {
    color: var(--accent-blue);
    font-size: 16px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary) 0%, #0369a1 100%);
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 50px; /* BO TRÒN DẠNG VIÊN THUỐC */
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
    transition: all 0.2s ease;
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.5);
}

/* NÚT ĐỒNG BỘ VÀ LƯU CẤU HÌNH BO TRÒN DẠNG PILL */
#btn-sync-otp, #btn-save-otp, #btn-sync-shop, #btn-save-shop, #btn-save-deposit-note {
    border-radius: 50px !important;
    padding: 10px 24px !important;
}

/* NÚT TICK / CHECKBOX BO TRÒN HOÀN TOÀN DẠNG TRÒN HIỆN ĐẠI (LOẠI TRỪ CÔNG TẮC BẢO TRÌ) */
.data-table input[type="checkbox"]:not(.switch__input),
.table input[type="checkbox"]:not(.switch__input) {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50% !important; /* TRÒN 100% */
    border: 2px solid var(--accent-blue);
    background: var(--bg-card);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    vertical-align: middle;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    margin: 0;
    outline: none;
}
.data-table input[type="checkbox"]:not(.switch__input):hover,
.table input[type="checkbox"]:not(.switch__input):hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(2, 132, 199, 0.5);
}
.data-table input[type="checkbox"]:not(.switch__input)::after,
.table input[type="checkbox"]:not(.switch__input)::after {
    content: "✓";
    font-size: 12px;
    font-weight: 900;
    color: #fff;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s ease;
}
.data-table input[type="checkbox"]:not(.switch__input):checked,
.table input[type="checkbox"]:not(.switch__input):checked {
    background: linear-gradient(135deg, var(--accent-primary) 0%, #0284c7 100%);
    border-color: var(--accent-primary);
    box-shadow: 0 0 12px rgba(2, 132, 199, 0.45);
}
.data-table input[type="checkbox"]:not(.switch__input):checked::after,
.table input[type="checkbox"]:not(.switch__input):checked::after {
    opacity: 1;
    transform: scale(1);
}

/* THANH TÌM KIẾM EMAIL & UID (NÚT CHỌN VÀ CHỮ DÍNH SÁT NHAU KHÔNG RỜI RẠC) */
.admin-search-wrapper {
    display: inline-flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: 30px;
    padding: 6px 14px;
    gap: 10px;
    box-shadow: var(--shadow-sm);
}
.admin-search-wrapper input[type="text"] {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 13.5px;
    padding: 2px 4px;
    min-width: 170px;
}
.admin-search-wrapper .search-radio-group {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}
.admin-search-wrapper .radio-label {
    display: inline-flex;
    align-items: center;
    gap: 4px !important; /* DÍNH SÁT NHAU */
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    user-select: none;
    margin: 0 !important;
    padding: 0 !important;
}
.admin-search-wrapper .radio-label input[type="radio"] {
    margin: 0 !important;
    padding: 0 !important;
    cursor: pointer;
    width: 15px;
    height: 15px;
    accent-color: var(--accent-blue);
}

/* ==========================================================================
   BUTTON SPINNER & ANTI-SPAM LOADING STATES (XOAY XOAY CHUẨN HIỆN ĐẠI)
   ========================================================================== */
@keyframes spinRefresh {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.btn-spinner-icon {
    display: inline-block;
    animation: spinRefresh 0.8s linear infinite;
    margin-right: 6px;
    font-style: normal;
    font-size: 14px;
    vertical-align: middle;
}
.btn-loading {
    opacity: 0.75 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    transform: none !important;
}

/* SECTION LỊCH SỬ THUÊ SỐ */
.table-header-hint-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.table-header-hint-wrap h3 {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-primary);
}
.hint-tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(56, 189, 248, 0.15);
    color: var(--accent-blue);
    font-size: 12px;
    font-weight: 800;
    cursor: help;
    position: relative;
}
.hint-tooltip-icon:hover::after {
    content: "Bấm trực tiếp vào Số điện thoại hoặc Mã OTP để sao chép";
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    background: #0f172a;
    color: #f8fafc;
    border: 1px solid var(--accent-blue);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    z-index: 100;
}

/* CLICKABLE 1-CLICK COPY BADGES */
.clickable-copy {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 8px;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.2);
    cursor: pointer;
    font-weight: 700;
    color: var(--text-primary);
    transition: all 0.18s ease;
}
.clickable-copy:hover {
    background: rgba(56, 189, 248, 0.2);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}
.clickable-copy svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    opacity: 0.8;
}

/* ==========================================================================
   TABLES & SUB TABS
   ========================================================================== */
.table-responsive {
    overflow-x: auto;
    width: 100%;
    border-radius: 14px;
    border: 1px solid var(--bg-card-border);
}
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    font-size: 13.5px;
}
.data-table th {
    background: rgba(2, 132, 199, 0.1);
    color: var(--text-primary);
    font-weight: 800;
    text-align: left;
    padding: 12px 14px;
    border-bottom: 1px solid var(--bg-card-border);
    white-space: nowrap;
}
.data-table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    vertical-align: middle;
}
body.light-theme .data-table td {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.data-table tr:hover td {
    background: var(--bg-card-hover);
}

.sub-tab-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--bg-card-border);
    padding-bottom: 8px;
    overflow-x: auto;
}
.sub-tab-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}
.sub-tab-btn:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}
.sub-tab-btn.active {
    background: rgba(2, 132, 199, 0.16);
    color: var(--accent-blue);
    border-color: rgba(56, 189, 248, 0.3);
}

.sub-tab-badge {
    background: var(--accent-red);
    color: #fff;
    padding: 1px 6px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 800;
}

/* STATUS BADGES */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}
.status-pill.success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-green);
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.status-pill.warning {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-amber);
    border: 1px solid rgba(245, 158, 11, 0.3);
}
.status-pill.danger {
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-red);
    border: 1px solid rgba(239, 68, 68, 0.3);
}
.status-pill.online {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-green);
}
.status-pill.offline {
    background: rgba(148, 163, 184, 0.15);
    color: var(--text-secondary);
}

/* OTP LIVE TIMER BADGES (CỘT TIME) */
.otp-timer-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.otp-timer-badge.countdown {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
}
.otp-timer-badge.refunding {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.35);
    animation: otpPulseGlow 1.2s infinite ease-in-out;
}
.otp-timer-badge.done {
    color: var(--text-secondary);
    font-weight: normal;
    background: transparent;
    border: none;
    padding: 0;
}
@keyframes otpPulseGlow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(0.98); }
}

/* ==========================================================================
   TAB: SHOP SẢN PHẨM SỐ
   ========================================================================== */
.shop-header-title h3 {
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 20px;
    color: var(--text-primary);
}
.products-grid-new {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 20px;
}
.product-card-new {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: 18px;
    padding: 16px;
    cursor: pointer;
    box-shadow: var(--shadow-glow);
    transition: transform 0.25s ease, border-color 0.25s ease;
    display: flex;
    flex-direction: column;
}
.product-card-new:hover {
    transform: translateY(-4px);
    border-color: var(--accent-blue);
}
.card-top {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 12px;
    aspect-ratio: 16/10;
    background: #090d16;
    display: flex;
    align-items: center;
    justify-content: center;
}
.card-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.stock-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.3px;
    z-index: 2;
}
.stock-badge.badge-in {
    background: rgba(16, 185, 129, 0.9);
    color: #fff;
}
.stock-badge.badge-out {
    background: rgba(239, 68, 68, 0.9);
    color: #fff;
}
.warranty-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 10.5px;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.65);
    color: var(--text-primary);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 2;
}

.card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.p-name {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 1.35;
}
.p-sub {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.p-meta-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11.5px;
    color: var(--text-secondary);
    margin: 4px 0 10px 0;
    padding: 6px 10px;
    background: var(--bg-main);
    border-radius: 8px;
    border: 1px solid var(--bg-card-border);
}
.p-meta-info strong {
    color: var(--accent-blue);
}
.p-price-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 12px;
}
.p-price {
    font-size: 16.5px;
    font-weight: 900;
    color: var(--accent-blue);
}
.card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: auto;
}
.btn-card-detail, .btn-card-buy {
    padding: 9px 8px;
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 800;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.btn-card-detail {
    background: var(--bg-main);
    border: 1px solid var(--bg-card-border);
    color: var(--text-primary);
}
.btn-card-detail:hover {
    background: rgba(2, 132, 199, 0.15);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    transform: translateY(-1px);
}
.btn-card-buy {
    background: linear-gradient(135deg, var(--accent-primary) 0%, #0369a1 100%);
    border: none;
    color: #fff;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.3);
}
.btn-card-buy:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.5);
}
.btn-card-buy.disabled, .btn-card-buy:disabled {
    background: #374151;
    color: #9ca3af;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* ==========================================================================
   TAB: NẠP TIỀN & NO-SPINNER INPUT
   ========================================================================== */
.deposit-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 28px;
}
.deposit-left-qr {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
}
.qr-img-display {
    max-width: 280px;
    width: 100%;
    border-radius: 16px;
    border: 2px solid var(--bg-card-border);
}

.deposit-right-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
}
.deposit-instructions-box {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: 18px;
    padding: 24px;
    box-shadow: var(--shadow-glow);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.deposit-instructions-box h4 {
    font-size: 16px;
    font-weight: 800;
    color: var(--accent-blue);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.deposit-instructions-box .note-text-content {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* SHORTCUT AMOUNTS FOR DEPOSIT & REMOVE SPINNERS */
.deposit-amount-controller {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.input-no-spinner::-webkit-outer-spin-button,
.input-no-spinner::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.input-no-spinner {
    -moz-appearance: textfield;
}

.btn-qty-shortcut {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--bg-main);
    border: 1px solid var(--bg-card-border);
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.btn-qty-shortcut:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

.deposit-preset-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.chip-preset {
    background: var(--bg-main);
    border: 1px solid var(--bg-card-border);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}
.chip-preset:hover {
    background: rgba(2, 132, 199, 0.15);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

/* DEPOSIT AMOUNT CONTROLLER WITH TẠO QR BUTTON */
.deposit-amount-row-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    max-width: 380px;
    margin: 0 auto 12px;
    flex-wrap: wrap;
}
.deposit-amount-row-wrapper .deposit-amount-controller {
    margin-bottom: 0;
    flex: 1;
    min-width: 170px;
}
.btn-generate-qr {
    padding: 10px 18px;
    font-size: 13.5px;
    font-weight: 800;
    border-radius: 12px;
    white-space: nowrap;
    background: linear-gradient(135deg, var(--accent-primary) 0%, #0369a1 100%);
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
    cursor: pointer;
    border: none;
    color: #fff;
    transition: all 0.25s ease;
    height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn-generate-qr:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.55);
}

/* ==========================================================================
   POPUP MODAL VIETQR NẠP TIỀN TỰ ĐỘNG
   ========================================================================== */
#deposit-qr-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
#deposit-qr-modal-overlay.open {
    opacity: 1;
    visibility: visible;
}
.deposit-qr-modal-box {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: 24px;
    width: 100%;
    max-width: 440px;
    padding: 30px 24px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), var(--shadow-glow);
    position: relative;
    transform: scale(0.94);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
}
#deposit-qr-modal-overlay.open .deposit-qr-modal-box {
    transform: scale(1);
}
.deposit-modal-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(2, 132, 199, 0.15);
    border: 1.5px solid var(--accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin: 0 auto 12px;
}
.deposit-modal-title {
    font-size: 20px;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.deposit-modal-sub {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}
.deposit-modal-qr-wrap {
    background: #fff;
    padding: 12px;
    border-radius: 18px;
    display: inline-block;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    margin-bottom: 16px;
}
.modal-qr-image {
    width: 210px;
    height: 210px;
    object-fit: contain;
    display: block;
    border-radius: 10px;
}
.deposit-modal-info-list {
    background: var(--bg-main);
    border: 1px solid var(--bg-card-border);
    border-radius: 16px;
    padding: 12px 16px;
    margin-bottom: 14px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.deposit-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}
.deposit-info-item .label {
    color: var(--text-secondary);
}
.deposit-info-item .value {
    color: var(--text-primary);
    font-weight: 700;
}
.deposit-info-item .value.highlight {
    color: var(--accent-green);
    font-size: 15px;
    font-weight: 800;
}
.deposit-info-item.highlight-box {
    background: rgba(2, 132, 199, 0.1);
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px dashed var(--accent-blue);
}
.deposit-info-item.highlight-box strong {
    color: var(--accent-blue);
    font-size: 14px;
}
.deposit-modal-note {
    font-size: 12px;
    color: var(--accent-amber);
    margin-bottom: 16px;
    line-height: 1.4;
}
.btn-modal-agree {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, #0369a1 100%);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(2, 132, 199, 0.4);
    transition: all 0.25s ease;
}
.btn-modal-agree:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(2, 132, 199, 0.55);
}

/* ==========================================================================
   PRODUCT DETAIL MODAL
   ========================================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}
.modal-box-detail {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: 24px;
    width: 100%;
    max-width: 480px;
    padding: 28px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), var(--shadow-glow);
    position: relative;
}
.btn-close-modal {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: var(--text-secondary);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-close-modal:hover {
    background: rgba(239, 68, 68, 0.2);
    color: var(--accent-red);
}
.modal-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 18px 0;
}
.info-card {
    background: var(--bg-main);
    border: 1px solid var(--bg-card-border);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
}
.info-card span {
    display: block;
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}
.info-card strong {
    font-size: 14px;
    color: var(--accent-blue);
}

.quantity-control-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}
.quantity-control-box button {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--bg-main);
    border: 1px solid var(--bg-card-border);
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
}
.quantity-control-box input {
    width: 60px;
    text-align: center;
    padding: 8px;
    background: var(--bg-main);
    border: 1px solid var(--bg-card-border);
    border-radius: 10px;
    color: var(--text-primary);
    font-weight: 800;
}

.summary-checkout-box {
    background: var(--bg-main);
    border: 1px solid var(--bg-card-border);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 20px;
}
.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 13.5px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.summary-row.total-row {
    border-top: 1px solid var(--bg-card-border);
    padding-top: 8px;
    margin-bottom: 0;
    color: var(--text-primary);
    font-size: 15px;
}
.summary-row.total-row strong {
    color: var(--accent-green);
    font-size: 17px;
}

.btn-pay-wallet {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, #0369a1 100%);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(2, 132, 199, 0.4);
}
.btn-pay-wallet:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.5);
}

/* ==========================================================================
   ADMIN PANEL SEARCH BOXES & LOG TABS
   ========================================================================== */
.admin-search-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-main);
    padding: 6px 14px;
    border-radius: 12px;
    border: 1px solid var(--bg-card-border);
    flex-wrap: wrap;
}
.admin-search-wrapper input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 13.5px;
    outline: none;
    min-width: 180px;
}
.admin-search-wrapper label {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

/* ==========================================================================
   FLOATING CONTACT BUTTONS (ZALO ADMIN & CỘNG ĐỒNG BIBEO OTP)
   ========================================================================== */
.floating-contact-container,
.zalo-float-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

/* Từng khối nút liên hệ độc lập */
.float-contact-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* Prompt Popup bật ra khi hover hoặc khi chạm trên mobile */
.contact-prompt-bubble,
.zalo-prompt-bubble {
    position: absolute;
    bottom: 54px;
    right: 0;
    width: 290px;
    max-width: calc(100vw - 36px);
    background: rgba(17, 24, 39, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 16px;
    padding: 13px 15px;
    color: #e2e8f0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.95);
    transform-origin: bottom right;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.3s;
    pointer-events: none;
    z-index: 10001;
}

/* CẦU NỐI VÔ HÌNH: ĐẢM BẢO CHUỘT RÊ TỪ NÚT LÊN PROMPT KHÔNG BỊ MẤT HOVER / TỰ TẮT */
.contact-prompt-bubble::before,
.zalo-prompt-bubble::before {
    content: '';
    position: absolute;
    bottom: -18px;
    left: 0;
    right: 0;
    height: 20px;
    background: transparent;
    z-index: 10;
}

/* Style riêng cho Bubble Zalo */
.bubble-zalo,
.zalo-prompt-bubble {
    border: 1px solid rgba(0, 104, 255, 0.35);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 24px rgba(0, 104, 255, 0.22);
}

/* Style riêng cho Bubble Cộng Đồng BIBEO OTP */
.bubble-community {
    border: 1px solid rgba(249, 115, 22, 0.4);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 24px rgba(249, 115, 22, 0.25);
}

/* Hiển thị prompt khi hover hoặc khi active trên mobile */
.float-contact-item:hover .contact-prompt-bubble,
.float-contact-item.is-hovered .contact-prompt-bubble,
.float-contact-item.is-open .contact-prompt-bubble,
.float-contact-item:hover .zalo-prompt-bubble,
.float-contact-item.is-hovered .zalo-prompt-bubble,
.float-contact-item.is-open .zalo-prompt-bubble {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Mũi tên nhọn trỏ xuống nút tương ứng */
.contact-prompt-tail,
.zalo-prompt-tail {
    position: absolute;
    bottom: -6px;
    right: 18px;
    width: 12px;
    height: 12px;
    background: rgba(17, 24, 39, 0.96);
    transform: rotate(45deg);
}

.tail-zalo,
.zalo-prompt-bubble .zalo-prompt-tail {
    border-right: 1px solid rgba(0, 104, 255, 0.35);
    border-bottom: 1px solid rgba(0, 104, 255, 0.35);
}

.tail-community {
    border-right: 1px solid rgba(249, 115, 22, 0.4);
    border-bottom: 1px solid rgba(249, 115, 22, 0.4);
}

/* Header bên trong Prompt */
.contact-prompt-header,
.zalo-prompt-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 9px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-prompt-avatar,
.zalo-prompt-avatar {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.avatar-zalo,
.zalo-prompt-avatar {
    background: rgba(0, 104, 255, 0.15);
    border: 1px solid rgba(0, 104, 255, 0.3);
}

.avatar-zalo img,
.zalo-prompt-avatar img {
    width: 22px;
    height: 22px;
    display: block;
}

.avatar-community {
    background: rgba(249, 115, 22, 0.15);
    border: 1px solid rgba(249, 115, 22, 0.4);
    overflow: hidden;
}

.avatar-community img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Chấm trạng thái online / hoạt động nhấp nháy */
.contact-online-pulse,
.zalo-online-pulse {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    border: 2px solid #111827;
    border-radius: 50%;
}

.pulse-zalo,
.zalo-online-pulse {
    background-color: #10b981;
}

.pulse-zalo::after,
.zalo-online-pulse::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background-color: #10b981;
    opacity: 0.6;
    animation: contactPulseAnim 1.8s infinite;
}

.pulse-community {
    background-color: #ff7700;
}

.pulse-community::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background-color: #ff7700;
    opacity: 0.6;
    animation: contactPulseAnim 1.8s infinite;
}

@keyframes contactPulseAnim {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(2.4); opacity: 0; }
}

.contact-prompt-info,
.zalo-prompt-info {
    display: flex;
    flex-direction: column;
}

.contact-prompt-name,
.zalo-prompt-name {
    font-size: 13.5px;
    font-weight: 700;
    color: #f8fafc;
    letter-spacing: 0.2px;
}

.contact-prompt-status,
.zalo-prompt-status {
    font-size: 11px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 1px;
}

.status-online {
    color: #10b981;
}

.status-community {
    color: #fb923c;
}

.contact-dot-indicator,
.zalo-dot-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    display: inline-block;
}

.dot-orange {
    background: #f97316;
}

/* Nội dung tin nhắn prompt */
.contact-prompt-body,
.zalo-prompt-body {
    font-size: 12.5px;
    line-height: 1.5;
    color: #cbd5e1;
    margin-bottom: 11px;
}

/* Nút bấm hành động CTA */
.contact-prompt-cta,
.zalo-prompt-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #ffffff !important;
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 600;
    padding: 7.5px 12px;
    border-radius: 9px;
    transition: all 0.25s ease;
    cursor: pointer;
}

.cta-zalo,
.zalo-prompt-cta {
    background: linear-gradient(135deg, #0068ff 0%, #0084ff 100%);
    box-shadow: 0 4px 14px rgba(0, 104, 255, 0.4);
}

.cta-zalo:hover,
.zalo-prompt-cta:hover {
    background: linear-gradient(135deg, #005ae0 0%, #0077e6 100%);
    box-shadow: 0 6px 18px rgba(0, 104, 255, 0.6);
    transform: translateY(-1px);
}

.cta-community {
    background: linear-gradient(135deg, #ff5722 0%, #f97316 100%);
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.4);
}

.cta-community:hover {
    background: linear-gradient(135deg, #f4511e 0%, #ea580c 100%);
    box-shadow: 0 6px 18px rgba(249, 115, 22, 0.6);
    transform: translateY(-1px);
}

.contact-prompt-cta svg,
.zalo-prompt-cta svg {
    flex-shrink: 0;
}

/* Nút Floating tròn co giãn mở rộng sang trái */
.floating-contact-btn,
.zalo-float-widget {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 48px;
    height: 48px;
    border-radius: 24px;
    text-decoration: none;
    overflow: hidden;
    cursor: pointer;
    transition: width 0.55s cubic-bezier(0.25, 1, 0.5, 1),
                border-radius 0.55s cubic-bezier(0.25, 1, 0.5, 1),
                box-shadow 0.35s ease,
                transform 0.2s ease;
}

.btn-zalo,
.zalo-float-widget {
    background: linear-gradient(135deg, #0068ff 0%, #0284c7 100%);
    box-shadow: 0 6px 20px rgba(0, 104, 255, 0.45);
}

.btn-community {
    background: linear-gradient(135deg, #ff5722 0%, #f97316 100%);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.45);
}

.contact-sign,
.zalo-float-widget .zalo-sign {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.sign-zalo img,
.zalo-float-widget .zalo-sign img {
    width: 26px;
    height: 26px;
    display: block;
}

.sign-community img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.contact-text,
.zalo-float-widget .zalo-text {
    position: absolute;
    left: 48px;
    opacity: 0;
    color: #fff;
    font-size: 13.5px;
    font-weight: 800;
    white-space: nowrap;
    transition: opacity 0.4s ease 0.1s, transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    transform: translateX(-8px);
    letter-spacing: 0.3px;
}

/* KHI RÊ CHUỘT HOẶC KÍCH HOẠT: NÚT MỞ RỘNG SANG TRÁI VÀ HIỆN CHỮ */
.float-contact-item.item-zalo:hover .btn-zalo,
.float-contact-item.item-zalo.is-hovered .btn-zalo,
.float-contact-item.item-zalo.is-open .btn-zalo {
    width: 175px;
    box-shadow: 0 8px 28px rgba(0, 104, 255, 0.6);
}

.float-contact-item.item-community:hover .btn-community,
.float-contact-item.item-community.is-hovered .btn-community,
.float-contact-item.item-community.is-open .btn-community {
    width: 220px;
    box-shadow: 0 8px 28px rgba(249, 115, 22, 0.65);
}

.float-contact-item:hover .contact-text,
.float-contact-item.is-hovered .contact-text,
.float-contact-item.is-open .contact-text {
    opacity: 1;
    transform: translateX(0);
}

.floating-contact-btn:active,
.zalo-float-widget:active {
    transform: scale(0.96);
}

/* ==========================================================================
   RESPONSIVE DESIGN (DESKTOP >=1280px, TABLET 768px - 1027px, MOBILE <768px)
   ========================================================================== */

/* TABLET BREAKPOINT (768px - 1027px) */
@media (min-width: 768px) and (max-width: 1027px) {
    .sidebar {
        width: 80px;
    }
    .sidebar .menu-label,
    .sidebar .nav-text,
    .sidebar .user-profile-info,
    .sidebar .Btn .text {
        opacity: 0;
        pointer-events: none;
        display: none;
    }
    .sidebar .nav-btn {
        justify-content: center;
        padding: 12px 0;
    }
    .sidebar .nav-btn .icon {
        font-size: 20px;
        margin: 0;
    }
    .sidebar .sidebar-user-profile {
        justify-content: center;
        padding: 8px 0;
        background: transparent;
        border-color: transparent;
    }
    .sidebar .Btn {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        margin: 0 auto;
    }
    .sidebar .Btn .sign {
        width: 100%;
        padding-left: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .dash-stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 16px;
    }
    .landing-features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .content-body {
        padding: 20px;
    }
}

/* MOBILE BREAKPOINT (<768px) */
@media (max-width: 767px) {
    .landing-features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-top: 18px;
    }
    .sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        height: 100vh;
        max-height: 100vh;
        transform: translateX(-100%);
        box-shadow: 4px 0 30px rgba(0, 0, 0, 0.65);
        z-index: 100;
        width: 260px;
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .btn-mobile-hamburger {
        display: block;
    }
    .content-body {
        padding: 14px 12px;
    }
    .topbar {
        padding: 10px 14px;
    }
    .topbar-brand-divider {
        margin: 0 4px;
    }
    #page-title {
        font-size: 14.5px;
    }
    .dash-stats-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .stat-card {
        padding: 18px 16px;
    }
    .stat-info .stat-value {
        font-size: 24px;
    }
    .landing-header {
        padding: 14px 16px;
    }
    .landing-nav-actions {
        gap: 8px;
    }
    .btn-landing-contact span {
        display: none;
    }
    .feature-card {
        padding: 14px 10px;
        border-radius: 14px;
    }
    .feature-icon-box {
        font-size: 24px;
        margin-bottom: 8px;
    }
    .feature-title {
        font-size: 13.5px;
        margin-bottom: 4px;
    }
    .feature-desc {
        font-size: 11.5px;
        line-height: 1.4;
    }
    .balance-badge span:first-child {
        display: none;
    }
    .dash-welcome-banner {
        padding: 16px 14px;
    }
    .dash-welcome-banner h2 {
        font-size: 19px;
    }
    .hero-title {
        font-size: 26px;
    }
    .auth-modal-box {
        padding: 24px 18px;
        max-width: 94vw;
    }
    .floating-contact-container,
    .zalo-float-container {
        bottom: 16px;
        right: 16px;
        gap: 10px;
    }
    .floating-contact-btn,
    .zalo-float-widget {
        width: 44px;
        height: 44px;
        border-radius: 22px;
    }
    .contact-sign,
    .zalo-float-widget .zalo-sign {
        width: 44px;
        height: 44px;
    }
    .contact-sign img,
    .zalo-float-widget .zalo-sign img {
        width: 24px;
        height: 24px;
    }
    .sign-community img {
        width: 28px;
        height: 28px;
    }
    .contact-text,
    .zalo-float-widget .zalo-text {
        left: 44px;
        font-size: 12.5px;
    }
    .float-contact-item.item-zalo.is-open .btn-zalo,
    .float-contact-item.item-zalo:hover .btn-zalo {
        width: 160px;
    }
    .float-contact-item.item-community.is-open .btn-community,
    .float-contact-item.item-community:hover .btn-community {
        width: 195px;
    }
    .contact-prompt-bubble,
    .zalo-prompt-bubble {
        width: 265px;
        bottom: 50px;
        padding: 11px 13px;
    }
    .contact-prompt-tail,
    .zalo-prompt-bubble .zalo-prompt-tail {
        right: 16px;
    }
}

/* ==========================================================================
   MODAL CHI TIẾT SẢN PHẨM & MUA HÀNG DEDICATED
   ========================================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.22s ease-out;
}

.modal-box-detail {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: 22px;
    width: 100%;
    max-width: 580px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 26px;
    position: relative;
    box-shadow: 0 25px 60px rgba(0,0,0,0.65);
    animation: slideUpModal 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-box-buy {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: 22px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 26px;
    position: relative;
    box-shadow: 0 25px 60px rgba(0,0,0,0.65);
    animation: slideUpModal 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpModal {
    from { opacity: 0; transform: translateY(18px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-detail-header-row {
    margin: 12px 0 14px 0;
}
.modal-detail-title {
    font-size: 21px;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.3;
}
.modal-detail-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.modal-warranty-tag {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 700;
}
.modal-stock-tag {
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 700;
}
.modal-stock-tag.in-stock {
    background: rgba(2, 132, 199, 0.15);
    color: var(--accent-blue);
    border: 1px solid rgba(2, 132, 199, 0.35);
}
.modal-stock-tag.out-stock {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.35);
}

.modal-detail-section {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--bg-card-border);
}
.modal-detail-section h4 {
    font-size: 12.5px;
    font-weight: 800;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.modal-detail-text {
    font-size: 13.5px;
    color: var(--text-primary);
    line-height: 1.6;
    background: var(--bg-main);
    padding: 14px;
    border-radius: 12px;
    border: 1px solid var(--bg-card-border);
    word-break: break-word;
    white-space: pre-line;
}
.modal-detail-text.policy-box {
    color: var(--text-secondary);
    font-size: 12.5px;
    line-height: 1.55;
}

.modal-detail-actions {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 12px;
    margin-top: 22px;
}
.btn-modal-cancel {
    padding: 12px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
    background: var(--bg-main);
    border: 1px solid var(--bg-card-border);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}
.btn-modal-cancel:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}
.btn-modal-primary-buy {
    padding: 12px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-primary) 0%, #0369a1 100%);
    border: none;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
    transition: all 0.2s;
}
.btn-modal-primary-buy:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.55);
}
.btn-modal-primary-buy:disabled {
    background: #374151;
    color: #9ca3af;
    cursor: not-allowed;
    box-shadow: none;
}

/* BUY MODAL STYLES */
.buy-modal-header {
    text-align: center;
    margin-bottom: 18px;
}
.buy-modal-header h3 {
    font-size: 19px;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.buy-modal-header p {
    font-size: 12.5px;
    color: var(--text-secondary);
}
.buy-product-summary-card {
    display: flex;
    gap: 14px;
    align-items: center;
    background: var(--bg-main);
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--bg-card-border);
    margin-bottom: 16px;
}
.buy-modal-thumb img {
    width: 54px;
    height: 54px;
    object-fit: contain;
    border-radius: 10px;
    background: rgba(0,0,0,0.25);
}
.buy-modal-item-info h4 {
    font-size: 14.5px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.buy-modal-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--text-secondary);
}
.buy-stock-hint {
    color: var(--accent-blue);
    font-weight: 600;
}
.buy-warranty-hint {
    color: #10b981;
    font-weight: 600;
}

.buy-qty-section {
    margin-bottom: 16px;
}
.buy-section-label {
    display: block;
    font-size: 12px;
    font-weight: 800;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-align: center;
}
.buy-qty-controller {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.btn-qty-step {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--bg-card-border);
    background: var(--bg-main);
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-qty-step:hover {
    background: rgba(2, 132, 199, 0.15);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}
.buy-qty-input {
    width: 80px;
    text-align: center;
    font-size: 17px;
    font-weight: 900;
    border-radius: 12px;
    border: 1px solid var(--bg-card-border);
    background: var(--bg-card);
    color: var(--accent-blue);
    padding: 8px;
}

.buy-checkout-breakdown {
    background: var(--bg-main);
    border: 1px solid var(--bg-card-border);
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 16px;
}
.breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13.5px;
    color: var(--text-secondary);
}
.breakdown-row strong {
    color: var(--text-primary);
}
.breakdown-row.total-row {
    border-top: 1px solid var(--bg-card-border);
    padding-top: 10px;
    margin-top: 10px;
}
.breakdown-row.wallet-row {
    margin-top: 6px;
    font-size: 13px;
}
.buy-balance-alert {
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 16px;
    text-align: center;
    display: none;
}
.buy-balance-alert.ok {
    display: block;
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.buy-balance-alert.need-fund {
    display: block;
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.buy-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.btn-deposit-shortcut {
    width: 100%;
    padding: 13px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
    transition: all 0.2s;
}
.btn-deposit-shortcut:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.5);
}

/* ==========================================================================
   TAB: CHECK LỊCH SỬ TÀI KHOẢN (AUDIT LOG)
   ========================================================================== */
.audit-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.audit-metric-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: 14px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.audit-metric-card:hover {
    transform: translateY(-2px);
    border-color: rgba(99, 102, 241, 0.4);
}
.audit-metric-card .title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    font-weight: 700;
}
.audit-metric-card .val {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
}
.audit-metric-card.critical {
    border: 1px solid rgba(239, 68, 68, 0.5);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(22, 27, 38, 0.95) 100%);
}
.audit-metric-card.critical .val {
    color: #ef4444;
}
.audit-metric-card.success-card {
    border: 1px solid rgba(34, 197, 94, 0.4);
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.08) 0%, rgba(22, 27, 38, 0.95) 100%);
}
.audit-metric-card.success-card .val {
    color: #22c55e;
}
.audit-alert-box {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}
.audit-alert-box.danger {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid #ef4444;
    color: #fca5a5;
}
.audit-alert-box.success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid #22c55e;
    color: #86efac;
}
.audit-type-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}
.audit-type-pill.deposit { background: rgba(34, 197, 94, 0.15); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.3); }
.audit-type-pill.otp_rent { background: rgba(56, 189, 248, 0.15); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.3); }
.audit-type-pill.otp_refund { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.audit-type-pill.shop_buy { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }
.audit-type-pill.shop_refund { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.audit-type-pill.admin_set { background: rgba(234, 179, 8, 0.15); color: #facc15; border: 1px solid rgba(234, 179, 8, 0.3); }
.audit-type-pill.admin_deduct { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }
.suggestion-user-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.suggestion-user-chip:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: #6366f1;
    transform: translateY(-1px);
}
.running-bal-badge {
    font-family: monospace;
    font-size: 13px;
    font-weight: 700;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.06);
    padding: 3px 8px;
    border-radius: 6px;
}

/* ==========================================================================
   LANDING FOOTER & MOBILE TOUCH POLISH
   ========================================================================== */
.landing-footer-bar a {
    transition: color 0.2s ease;
}
.landing-footer-bar a:hover {
    color: var(--accent-blue) !important;
}
html, body {
    -webkit-overflow-scrolling: touch;
    touch-action: manipulation;
}
@media (max-width: 767px) {
    .landing-footer-bar {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
    }
}

/* DEPOSIT HERO CARD & QR DOWNLOAD BUTTON */
.deposit-hero-card {
    text-align: center;
    padding: 24px 20px;
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.12) 0%, rgba(15, 23, 42, 0.6) 100%);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 20px;
    margin-bottom: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.deposit-hero-icon {
    font-size: 42px;
    margin-bottom: 8px;
}
.deposit-hero-card h3 {
    font-size: 17px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}
.deposit-hero-card p {
    font-size: 12.5px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.btn-download-qr {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px 18px;
    background: rgba(56, 189, 248, 0.12);
    color: #38bdf8;
    border: 1.5px solid rgba(56, 189, 248, 0.4);
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.22s ease;
}
.btn-download-qr:hover {
    background: rgba(56, 189, 248, 0.25);
    border-color: #38bdf8;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(56, 189, 248, 0.3);
}
.btn-download-qr:active {
    transform: translateY(0);
}

/* System Log Modal in Admin */
#admin-log-detail-modal:not(.open) {
    display: none !important;
}
#admin-log-detail-modal.open {
    display: flex !important;
}

/* ==========================================================================
   MULTI-SERVER & DUAL-TAB OTP SYSTEM STYLES
   ========================================================================== */
.switch {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  position: relative !important;
  width: auto !important;
  height: auto !important;
  cursor: pointer !important;
  user-select: none !important;
  vertical-align: middle !important;
}
.switch__input {
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  display: none !important;
}
.switch__track {
  position: relative !important;
  display: inline-block !important;
  flex: 0 0 57px !important;
  width: 57px !important;
  height: 27px !important;
  border-radius: 14px !important;
  background-color: #334155 !important;
  border: 1px solid #475569 !important;
  box-sizing: border-box !important;
  transition: all 300ms ease !important;
  vertical-align: middle !important;
}
.switch__track::before {
  content: "" !important;
  position: absolute !important;
  top: 2px !important;
  left: 2px !important;
  width: 21px !important;
  height: 21px !important;
  border-radius: 50% !important;
  background-color: #ffffff !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4) !important;
  transition: transform 300ms ease !important;
}
.switch__input:checked + .switch__track {
  background-color: #ef4444 !important;
  border-color: #dc2626 !important;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.4) !important;
}
.switch__input:checked + .switch__track::before {
  transform: translateX(30px) !important;
}
[dir="rtl"] .switch__input:checked + .switch__track::before {
  transform: translateX(-30px) !important;
}
.switch__input:focus-visible + .switch__track {
  outline: 2px solid #2563eb !important;
  outline-offset: 2px !important;
}
.switch__label {
  display: inline-block !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: var(--text-secondary, #94a3b8) !important;
  white-space: nowrap !important;
  line-height: 1 !important;
  transition: color 200ms ease !important;
}
.switch__input:checked ~ .switch__label {
  color: #ef4444 !important;
  font-weight: 800 !important;
}

.switch-sm .switch__track { 
  flex: 0 0 44px !important;
  width: 44px !important; 
  height: 22px !important; 
  border-radius: 11px !important; 
}
.switch-sm .switch__track::before { 
  top: 2px !important;
  left: 2px !important;
  width: 16px !important; 
  height: 16px !important; 
}
.switch-sm .switch__input:checked + .switch__track::before { 
  transform: translateX(22px) !important; 
}

.step-locked {
  opacity: 0.35;
  filter: grayscale(0.8);
  pointer-events: none;
  user-select: none;
}
.step-unlocked {
  opacity: 1;
  filter: none;
  pointer-events: auto;
  user-select: auto;
}

.network-horizontal-bar {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}
.network-horizontal-bar::-webkit-scrollbar { height: 4px; }
.network-horizontal-bar::-webkit-scrollbar-thumb { background: #334155; border-radius: 2px; }

.btn-net-item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid var(--border-color, #334155);
  color: #cbd5e1;
  padding: 6px 14px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}
.btn-net-item:hover { border-color: var(--accent-blue, #0284c7); color: #fff; }
.btn-net-item.active {
  background: #0284c7;
  border-color: #38bdf8;
  color: #fff;
  box-shadow: 0 0 10px rgba(2, 132, 199, 0.4);
}

/* ==========================================================================
   OTP MARQUEE ANNOUNCEMENT BANNER
   ========================================================================== */
.otp-announcement-bar {
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.08) 0%, rgba(13, 21, 39, 0.85) 100%);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 9999px;
  padding: 6px 14px 6px 8px;
  margin-bottom: 14px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  position: relative;
}

.otp-announcement-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #f59e0b;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.12);
  border-radius: 9999px;
  padding: 3px 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.15);
  margin-right: 12px;
  z-index: 2;
  user-select: none;
}

.otp-announcement-track {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  display: flex;
  mask-image: linear-gradient(to right, transparent 0%, black 15px, black calc(100% - 15px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15px, black calc(100% - 15px), transparent 100%);
}

.otp-announcement-inner {
  display: flex;
  flex-shrink: 0;
  white-space: nowrap;
  animation: otpMarqueeScroll 28s linear infinite;
  will-change: transform;
}

.otp-announcement-bar:hover .otp-announcement-inner {
  animation-play-state: paused;
}

.otp-announcement-item {
  font-size: 13px;
  font-weight: 500;
  color: #f1f5f9;
  padding-right: 30px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.otp-announcement-item strong {
  color: #fbbf24;
  font-weight: 700;
}

.announcement-zalo-link {
  color: #38bdf8;
  text-decoration: underline;
  font-weight: 700;
  transition: color 0.2s;
  padding: 0 2px;
}

.announcement-zalo-link:hover {
  color: #7dd3fc;
  text-decoration: underline;
}

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

@media (max-width: 600px) {
  .otp-announcement-bar {
    border-radius: 12px;
    padding: 6px 10px;
  }
  .otp-announcement-badge {
    padding: 2px 8px;
    font-size: 10px;
    margin-right: 8px;
  }
  .otp-announcement-item {
    font-size: 12px;
  }
}

.otp-sub-tab-bar {
  display: flex;
  gap: 8px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color, #1e293b);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 14px;
  width: fit-content;
}
.otp-sub-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary, #94a3b8);
  padding: 6px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}
.otp-sub-tab-btn:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
.otp-sub-tab-btn.active {
  background: #1e293b;
  color: #38bdf8;
  border-color: #0284c7;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.2);
}

.server-maintenance-bar {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: #0f172a;
  border: 1.5px solid #1e293b;
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 16px;
  overflow-x: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.server-item {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 8px 14px;
  background: rgba(30, 41, 59, 0.45);
  border: 1px solid #334155;
  border-radius: 8px;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.server-item:hover {
  background: rgba(30, 41, 59, 0.7);
  border-color: #475569;
}
.server-item-title {
  font-size: 13px;
  font-weight: 800;
  color: #f1f5f9;
  letter-spacing: 0.2px;
}
.server-divider {
  width: 1px;
  height: 26px;
  background: #334155;
  flex-shrink: 0;
}

/* ==========================================================================
   LOCKET GOLD BY BIBEO STYLES
   ========================================================================== */
.locket-gold-wrapper {
    position: relative;
    max-width: 760px;
    margin: 20px auto 40px;
    padding: 10px;
}

.rainbow-slow-border {
    position: relative;
    border-radius: 28px;
    padding: 3px;
    background: linear-gradient(
        125deg, 
        #ff4d6d 0%,
        #f97316 16%,
        #facc15 32%,
        #10b981 48%,
        #06b6d4 64%,
        #3b82f6 80%,
        #a855f7 92%,
        #ff4d6d 100%
    );
    background-size: 350% 350%;
    animation: rainbow-shift 16s ease-in-out infinite;
    box-shadow: 0 10px 45px rgba(0, 0, 0, 0.7);
}

@keyframes rainbow-shift {
    0% { background-position: 0% 50%; filter: drop-shadow(0 0 18px rgba(255, 77, 109, 0.35)); }
    25% { background-position: 50% 100%; filter: drop-shadow(0 0 20px rgba(250, 204, 21, 0.35)); }
    50% { background-position: 100% 50%; filter: drop-shadow(0 0 20px rgba(16, 185, 129, 0.35)); }
    75% { background-position: 50% 0%; filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.35)); }
    100% { background-position: 0% 50%; filter: drop-shadow(0 0 18px rgba(255, 77, 109, 0.35)); }
}

.locket-center-box {
    background: linear-gradient(160deg, #0d121f 0%, #080c14 100%);
    border-radius: 25px;
    padding: 36px 30px;
    position: relative;
    z-index: 5;
}

.floating-cat-item {
    position: absolute;
    z-index: 20;
    pointer-events: none;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.6));
}

.cat-pos-top-left { top: -24px; left: 25px; animation: float-gentle-1 5s ease-in-out infinite; }
.cat-pos-top-right { top: -24px; right: 25px; animation: float-gentle-2 5.5s ease-in-out infinite; }
.cat-pos-mid-left { top: 46%; left: -26px; animation: float-gentle-3 6s ease-in-out infinite; }
.cat-pos-mid-right { top: 48%; right: -26px; animation: float-gentle-1 6.2s ease-in-out infinite reverse; }
.cat-pos-bottom-left { bottom: -22px; left: 35px; animation: float-gentle-2 5.2s ease-in-out infinite; }
.cat-pos-bottom-right { bottom: -22px; right: 35px; animation: float-gentle-3 5.8s ease-in-out infinite; }

@keyframes float-gentle-1 { 0%, 100% { transform: translateY(0px) rotate(-3deg); } 50% { transform: translateY(-12px) rotate(4deg); } }
@keyframes float-gentle-2 { 0%, 100% { transform: translateY(0px) rotate(4deg); } 50% { transform: translateY(-14px) rotate(-4deg); } }
@keyframes float-gentle-3 { 0%, 100% { transform: translateX(0px) translateY(0px) rotate(-5deg); } 50% { transform: translateX(-6px) translateY(-10px) rotate(3deg); } }

.cat-golden-avatar {
    width: 48px;
    height: 44px;
    transition: transform 0.3s;
}

/* KHÓA USER CHƯA NẠP 50K (DẤU X VÀNG) */
.locket-locked-card {
    background: #0d111a;
    border: 2px dashed rgba(245, 158, 11, 0.4);
    border-radius: 24px;
    padding: 60px 30px;
    text-align: center;
    max-width: 640px;
    margin: 30px auto;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}
.yellow-x-icon {
    width: 86px;
    height: 86px;
    background: rgba(251, 191, 36, 0.1);
    border: 3px solid #fbbf24;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: #fbbf24;
    font-size: 44px;
    font-weight: 900;
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.3);
    animation: pulse-yellow 2s infinite ease-in-out;
}
@keyframes pulse-yellow {
    0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(251, 191, 36, 0.25); }
    50% { transform: scale(1.06); box-shadow: 0 0 35px rgba(251, 191, 36, 0.5); }
}

.locket-credits-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 14px;
    padding: 10px 14px;
    margin-bottom: 20px;
    gap: 8px;
    flex-wrap: nowrap;
    white-space: nowrap;
}
.locket-credits-left {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    white-space: nowrap;
}
.locket-credits-label {
    font-size: 13px;
    font-weight: 700;
    color: #cbd5e1;
    white-space: nowrap;
}
.locket-credits-pill {
    background: #f59e0b;
    color: #000;
    padding: 3px 9px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.3px;
}
.btn-watch-ad-locket {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.2s;
}
.btn-watch-ad-locket:hover { opacity: 0.9; transform: translateY(-1px); }

/* THẺ TÍNH NĂNG & HƯỚNG DẪN BÊN DƯỚI (LÀM ĐẦY TRANG, KHÔNG BỊ TRỐNG) */
.locket-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 36px;
}
.locket-feat-card {
    background: #0d121f;
    border: 1px solid #1e293b;
    border-radius: 16px;
    padding: 20px 16px;
    text-align: center;
    transition: all 0.25s ease;
}
.locket-feat-card:hover {
    border-color: rgba(245, 158, 11, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.locket-feat-card .feat-icon {
    font-size: 28px;
    margin-bottom: 8px;
}
.locket-feat-card .feat-title {
    font-size: 14.5px;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 6px;
}
.locket-feat-card .feat-desc {
    font-size: 12.5px;
    color: #94a3b8;
    line-height: 1.5;
}

.locket-guide-box {
    margin-top: 22px;
    background: #0a0e18;
    border: 1px solid #1e293b;
    border-radius: 18px;
    padding: 20px 22px;
}
.guide-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 8px;
}
.guide-tag {
    font-size: 12px;
    font-weight: 800;
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.25);
    padding: 4px 10px;
    border-radius: 8px;
    letter-spacing: 0.5px;
}
.guide-sub {
    font-size: 12.5px;
    color: #64748b;
}
.guide-steps-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.guide-step-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13px;
    color: #cbd5e1;
    line-height: 1.6;
}
.guide-step-item .step-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #1e293b;
    border: 1px solid #334155;
    color: #fbbf24;
    font-weight: 800;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}
.guide-step-item code {
    background: #111827;
    color: #38bdf8;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 12px;
}

/* RESPONSIVE TRÊN ĐIỆN THOẠI */
@media (max-width: 600px) {
    .locket-gold-wrapper {
        padding: 5px;
        margin: 15px auto 30px;
    }
    .locket-center-box {
        padding: 24px 14px;
    }
    .locket-credits-banner {
        padding: 8px 10px;
        gap: 6px;
    }
    .locket-credits-label {
        font-size: 12px;
    }
    .locket-credits-pill {
        font-size: 11.5px;
        padding: 2px 7px;
    }
    .btn-watch-ad-locket {
        font-size: 11.5px;
        padding: 5px 9px;
    }
    .btn-locket-act {
        font-size: 13px;
        padding: 12px 10px;
        gap: 4px;
    }
    .locket-features-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 24px;
    }
    .locket-guide-box {
        padding: 16px 14px;
    }
}

.locket-input-main {
    width: 100%;
    background: #0a0e17;
    border: 1.5px solid #27354a;
    border-radius: 14px;
    padding: 14px 18px;
    color: #fff;
    font-size: 15px;
    outline: none;
    transition: all 0.25s;
    box-sizing: border-box;
}
.locket-input-main:focus {
    border-color: #facc15;
    box-shadow: 0 0 15px rgba(250, 204, 21, 0.3);
}
.locket-input-main.locked {
    background: #111827;
    border-color: #374151;
    color: #9ca3af;
    cursor: not-allowed;
}

.locket-lock-badge {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #fbbf24;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: none;
    background: rgba(245, 158, 11, 0.15);
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.locket-actions-row {
    display: flex;
    gap: 12px;
    margin: 20px 0;
}
.btn-locket-act {
    flex: 1;
    padding: 14px 20px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 14.5px;
    cursor: pointer;
    border: none;
    transition: all 0.25s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-locket-check {
    background: #1e293b;
    color: #f8fafc;
    border: 1.5px solid #334155;
}
.btn-locket-check:hover:not(:disabled) {
    background: #334155;
    border-color: #f59e0b;
    color: #fbbf24;
}
.btn-locket-upgrade {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.35);
}
.btn-locket-upgrade:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}
.btn-locket-act:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.locket-status-box {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 600;
    display: none;
    margin-bottom: 20px;
}
.status-locket-active {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
}
.status-locket-inactive {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

/* FAKE TERMINAL */
.locket-terminal {
    background: #060910;
    border: 1px solid #1e293b;
    border-radius: 14px;
    padding: 16px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12.5px;
    color: #38bdf8;
    max-height: 180px;
    overflow-y: auto;
    display: none;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.8);
}
.locket-terminal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 8px;
    margin-bottom: 10px;
    border-bottom: 1px solid #1e293b;
    color: #94a3b8;
    font-size: 11px;
}

/* FIREWORKS & MODAL */
#locket-fireworks-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    pointer-events: none;
    z-index: 99999;
    display: none;
}
.locket-reward-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99998;
    cursor: pointer;
}
.locket-reward-box {
    background: linear-gradient(145deg, #131b2e, #090e18);
    border: 2px solid #fbbf24;
    border-radius: 24px;
    padding: 32px 28px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8), 0 0 25px rgba(251, 191, 36, 0.35);
    cursor: default;
}

.btn-locket-deposit {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
    transition: all 0.2s;
}
.btn-locket-deposit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}
.btn-locket-contact {
    background: #1e293b;
    color: #f1f5f9;
    font-weight: 600;
    padding: 12px 22px;
    border-radius: 12px;
    border: 1px solid #334155;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-locket-contact:hover {
    background: #334155;
    border-color: #f59e0b;
}

.terminal-dots { display: flex; gap: 6px; }
.dot { width: 9px; height: 9px; border-radius: 50%; }
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.log-row {
    margin: 4px 0;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-all;
}
.log-gold { color: #facc15; }
.log-green { color: #4ade80; }
.log-cyan { color: #38bdf8; }
.log-pink { color: #f472b6; }
.log-gray { color: #64748b; }

/* ==========================================================================
   OTP SERVER 3 (1-CLICK HORIZONTAL LUXURY CARDS & ADMIN STYLING)
   ========================================================================== */
.shopee-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
    margin-bottom: 8px;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}
.shopee-header-pill {
    background: linear-gradient(135deg, #ea580c, #c2410c);
    color: #ffffff;
    font-size: 12.5px;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 10px rgba(234, 88, 12, 0.45);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 1;
}
.shopee-controls-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.shopee-hint-text {
    font-size: 11.5px;
    color: var(--text-secondary);
}
.shopee-hint-text strong {
    color: var(--accent-cyan, #38bdf8);
}
.shopee-arrow-btn {
    background: #10192e;
    border: 1px solid #334155;
    color: #cbd5e1;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.16s ease;
}
.shopee-arrow-btn:hover {
    background: var(--accent-blue, #0284c7);
    color: #fff;
    border-color: var(--accent-cyan, #38bdf8);
}

.shopee-slider-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 160px;
    overflow: hidden;
}
.shopee-compact-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 6px 4px 14px 4px;
    scrollbar-width: thin;
    scrollbar-color: #334155 transparent;
    min-height: 160px;
    align-items: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    -webkit-overflow-scrolling: touch;
}
.shopee-compact-strip.is-dragging {
    cursor: grabbing !important;
}
.shopee-compact-strip, .shopee-card-item, .shopee-card-item * {
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}
.shopee-compact-strip::-webkit-scrollbar { height: 6px; }
.shopee-compact-strip::-webkit-scrollbar-thumb { background: #334155; border-radius: 10px; }

@keyframes slideInFromLeftWave {
    0% {
        opacity: 0;
        transform: translateX(-35px) scale(0.92);
    }
    65% {
        opacity: 0.95;
        transform: translateX(4px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.shopee-card-item {
    flex: 0 0 132px;
    background: var(--bg-card, #0f172a);
    border: 1.5px solid var(--border-color, #1e293b);
    border-radius: 12px;
    padding: 12px 8px 10px 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    min-height: 124px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    user-select: none;
    position: relative;
    flex-shrink: 0;
    animation: slideInFromLeftWave 0.38s cubic-bezier(0.16, 1, 0.3, 1) both;
    transition: transform 0.18s ease-in-out, border-color 0.18s ease-in-out, box-shadow 0.18s ease-in-out;
}
.shopee-card-item:hover {
    border-color: var(--accent-cyan, #38bdf8);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(56, 189, 248, 0.35);
}
.shopee-card-item:active {
    transform: scale(0.96);
    border-color: var(--accent-green, #10b981);
}

.shopee-avatar-box {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 6px;
    position: relative;
    border-radius: 10px;
}
.shopee-avatar-box img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}
.shopee-avatar-box svg {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: block;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.4));
}
.shopee-avatar-badge {
    position: absolute;
    bottom: -3px;
    right: -6px;
    font-size: 9px;
    font-weight: 800;
    background: #0f172a;
    color: #f8fafc;
    border: 1.5px solid #334155;
    border-radius: 9999px;
    padding: 0 4px;
    line-height: 1.3;
}

.shopee-name-lbl {
    font-size: 12px;
    font-weight: 800;
    color: #f8fafc;
    line-height: 1.25;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 4px;
}
.shopee-price-lbl {
    font-family: var(--font-mono, monospace);
    font-size: 14px;
    font-weight: 800;
    color: var(--accent-green, #10b981);
}
.shopee-note-lbl {
    font-size: 10px;
    font-weight: 600;
    color: #94a3b8;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 6px;
    padding: 3px 6px;
    margin-top: 5px;
    width: 100%;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.2;
}
.shopee-card-item:hover .shopee-note-lbl {
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.5);
    background: rgba(56, 189, 248, 0.12);
}

/* ADMIN PILL INPUTS & TOGGLE CIRCLE */
.admin-toggle-circle {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #38bdf8;
    background: transparent;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}
.admin-toggle-circle:checked {
    background: #0284c7;
    border-color: #38bdf8;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.7);
}
.admin-toggle-circle:checked::after {
    content: '✓';
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
}
.admin-pill-input {
    width: 100%;
    border-radius: 20px;
    padding: 7px 14px;
    background: #070d1a;
    border: 1.5px solid #1e293b;
    color: #ffffff;
    font-size: 13px;
    font-family: inherit;
    transition: all 0.2s ease;
    box-sizing: border-box;
}
.admin-pill-input:focus {
    outline: none;
    border-color: #0284c7;
    box-shadow: 0 0 10px rgba(2, 132, 199, 0.45);
    background: #0a1324;
}
.admin-pill-input-price {
    border-color: #0369a1;
    color: #38bdf8;
    font-weight: 800;
    font-family: monospace;
}
.admin-pill-input-price:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}
.admin-services-table {
    width: 100%;
    min-width: 1040px;
    border-collapse: collapse;
}

/* ==========================================================================
   TAB TRA CỨU VẬN ĐƠN (FULL KHÔNG GIAN, KHÔNG CUỘN, BACKGROUND TRÀN ĐÁY 100%)
   ========================================================================== */
#tracking-tab {
    margin: -24px -28px;
    padding: 0 !important;
    height: calc(100vh - 85px);
    min-height: calc(100vh - 85px);
    overflow: hidden;
    background: transparent;
}
#tracking-tab.active {
    display: flex !important;
    flex-direction: column;
}
#tracking-iframe {
    width: 100%;
    height: 100%;
    flex: 1;
    border: none !important;
    border-radius: 0 !important;
    display: block;
    background: transparent;
}
@media (max-width: 900px) {
    #tracking-tab {
        margin: -14px -12px;
        height: calc(100vh - 75px);
        min-height: calc(100vh - 75px);
    }
}


