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

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

html, body {
    width: 100vw;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 15.5px;
    line-height: 1.55;
    min-height: 100vh;
}

/* Floating background glow effects & grid lines */
body {
    background-color: var(--bg);
    background-image: 
        linear-gradient(rgba(26, 92, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(26, 92, 255, 0.04) 1px, transparent 1px),
        radial-gradient(ellipse at top left, rgba(26, 92, 255, 0.18), transparent 55%),
        radial-gradient(ellipse at bottom right, rgba(0, 82, 254, 0.14), transparent 55%);
    background-size: 40px 40px, 40px 40px, auto, auto;
    background-attachment: fixed;
}

body::before, body::after {
    content: "";
    position: fixed;
    pointer-events: none;
    z-index: 0;
    border-radius: 50%;
    filter: blur(80px);
    opacity: .25;
}

body::before {
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(26, 92, 255, 0.25), transparent 70%);
    top: -180px;
    left: -160px;
    animation: float1 18s ease-in-out infinite;
}

body::after {
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(0, 82, 254, 0.2), transparent 70%);
    bottom: -160px;
    right: -140px;
    animation: float2 22s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translate(0,0) scale(1) }
    50% { transform: translate(60px,80px) scale(1.1) }
}

@keyframes float2 {
    0%, 100% { transform: translate(0,0) scale(1) }
    50% { transform: translate(-80px,-50px) scale(1.15) }
}

.app {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* Sidebar Styling */
.side {
    width: 260px;
    background: var(--bg2);
    border-right: 1px solid var(--border);
    position: fixed;
    inset: 0 auto 0 0;
    padding: 22px 14px;
    z-index: 30;
    overflow-y: auto;
    transition: transform .25s ease;
    backdrop-filter: blur(18px);
}

.sidebar-close-btn {
    display: none;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 8px 16px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 14px;
}

.brand-logo {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent3));
    display: grid;
    place-items: center;
    font-weight: 900;
    color: #ffffff;
    font-size: 18px;
    box-shadow: var(--glow);
    background-size: cover;
    background-position: center;
    border: 2px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.brand-name {
    font-weight: 900;
    font-size: 17px;
    letter-spacing: -.5px;
    color: #ffffff;
}

.brand-tag {
    font-size: 11px;
    color: var(--muted);
    font-weight: 600;
}

.balance-card {
    background: linear-gradient(135deg, rgba(180,180,180,.12), rgba(160,160,160,.08));
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 14px;
    margin-bottom: 14px;
    position: relative;
    overflow: hidden;
}

.balance-card::after {
    content: "";
    position: absolute;
    inset: -50%;
    background: conic-gradient(from 0deg, transparent, rgba(180,180,180,.12), transparent 30%);
    animation: spin 8s linear infinite;
    pointer-events: none;
}

@keyframes spin {
    to { transform: rotate(360deg) }
}

.balance-card .lbl {
    font-size: 10px;
    color: var(--muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    position: relative;
    z-index: 2;
}

.balance-card .val {
    font-size: 22px;
    font-weight: 900;
    color: var(--gold);
    margin-top: 2px;
    position: relative;
    z-index: 2;
}

/* Sidebar Navigation links */
.nav-group {
    margin-top: 8px;
}

.nav-title {
    font-size: 10px;
    color: var(--muted);
    font-weight: 800;
    letter-spacing: 1px;
    padding: 8px 10px;
    text-transform: uppercase;
}

.nav a, .nav button {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 12px;
    border-radius: var(--r-sm);
    color: var(--muted);
    background: transparent;
    border: 0;
    width: 100%;
    font-weight: 600;
    font-size: 14.5px;
    cursor: pointer;
    transition: all .2s ease;
    font-family: inherit;
    text-align: left;
    text-decoration: none;
}

.nav a:hover, .nav button:hover {
    background: rgba(26, 92, 255, 0.08);
    color: #ffffff;
    transform: translateX(4px);
}

.nav .active {
    background: var(--accent) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(26, 92, 255, 0.45) !important;
}

.nav svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: .85;
}

/* Main content wrapper */
.main {
    margin-left: 260px;
    width: calc(100% - 260px);
    min-width: 0;
}

/* Topbar Header */
.topbar {
    height: 64px;
    background: rgba(12, 12, 12, 0.72);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 20;
}

.topbar h1 {
    font-size: 18px;
    font-weight: 800;
    margin: 0;
}

.hamb {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(180,180,180,.22);
    background: var(--surface);
    border-radius: var(--r-sm);
    position: relative;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
}

.hamb:before {
    content: "☰";
    font-size: 22px;
    color: var(--text);
    font-weight: 900;
}

.app.menu-open .hamb:before {
    content: "×";
    font-size: 26px;
}

.user-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px 6px 6px;
    background: var(--surface);
    border-radius: 99px;
    border: 1px solid var(--border);
    box-shadow: inset 0 0 0 1px rgba(180,180,180,.18);
}

.avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent3));
    display: grid;
    place-items: center;
    color: #ffffff;
    font-weight: 800;
    font-size: 13px;
    background-size: cover;
    background-position: center;
}

.user-chip span {
    font-weight: 700;
    font-size: 13.5px;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.content {
    padding: 26px;
    max-width: 1320px;
    margin: 0 auto;
}

/* Notice & Alert */
.notice {
    background: linear-gradient(135deg, rgba(26,92,255,0.09), rgba(26,92,255,0.03));
    border: 1px solid rgba(26, 92, 255, 0.28);
    border-radius: var(--r-lg);
    padding: 14px 18px;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 14px;
    color: #e2e8f0;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    box-shadow: 0 4px 24px rgba(26,92,255,0.08), 0 20px 70px rgba(0,0,0,.2);
}

.notice svg {
    flex-shrink: 0;
    color: #4d8aff;
    margin-top: 2px;
}

.notice strong {
    color: #4d8aff;
}

.section-title {
    font-size: 22px;
    font-weight: 900;
    margin: 8px 0 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -.3px;
}

.section-title:before {
    content: "";
    width: 4px;
    height: 22px;
    background: linear-gradient(180deg, var(--accent), var(--accent3));
    border-radius: 2px;
}

/* Card basic */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: 0 20px 70px rgba(0,0,0,.25);
}

.pad {
    padding: 22px;
}

/* Grid layout */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 22px;
}

/* Product Cards style */
.product-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all .25s cubic-bezier(.2,.8,.2,1);
    position: relative;
    cursor: pointer;
}

.product-card:hover {
    border-color: rgba(26, 92, 255, 0.45);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(26, 92, 255, 0.18);
}

.product-img {
    height: 180px;
    background: radial-gradient(circle at 50% 35%, rgba(26, 92, 255, 0.08), transparent 50%), var(--bg2);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.product-info {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-cat {
    font-size: 10px;
    color: var(--muted);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.product-name {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -.2px;
    line-height: 1.4;
    min-height: 44px;
}

.product-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: auto;
    margin-bottom: 10px;
}

.product-price {
    font-size: 20px;
    font-weight: 900;
    color: var(--gold);
}

.sale-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, var(--red), #dc2626);
    color: #ffffff;
    font-size: 11px;
    font-weight: 900;
    padding: 4px 10px;
    border-radius: 99px;
    letter-spacing: .5px;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    z-index: 5;
}

/* Custom design buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: var(--r-md) !important;
    padding: 11px 18px;
    font-weight: 800;
    font-size: 14.5px;
    cursor: pointer;
    transition: all .2s;
    font-family: inherit;
    min-height: 52px;
    position: relative;
    overflow: hidden;
}

.btn:active {
    transform: scale(.97) !important;
}

.btn:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.16), transparent);
    transform: translateX(-120%);
    transition: .45s;
}

.btn:hover:after {
    transform: translateX(120%);
}

.btn.primary {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(26, 92, 255, 0.35);
}

.btn.primary:hover {
    box-shadow: 0 12px 28px rgba(26, 92, 255, 0.5);
    filter: brightness(1.08);
}

.btn.ghost {
    background: var(--surface2);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn.ghost:hover {
    background: var(--surface);
    color: #ffffff;
}

/* Custom form fields */
.form label {
    display: block;
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 6px;
    color: var(--text);
}

.form input, .form select, .form textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    color: var(--text);
    font-size: 14.5px;
    font-family: inherit;
    outline: none;
    transition: .15s;
}

.form input:focus, .form select:focus, .form textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(180, 180, 180, 0.15);
}

/* Custom dropdown style */
select.nice-combo {
    display: block;
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    background: linear-gradient(135deg, rgba(15,15,15,.98), rgba(27,27,27,.94));
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23afafaf' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 20px;
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    color: #f7f7f7;
    font-size: 15px;
    font-weight: 800;
    font-family: inherit;
    padding: 14px 44px 14px 14px;
    height: 54px;
    cursor: pointer;
    outline: none;
    box-shadow: 0 14px 40px rgba(0,0,0,.28);
    transition: border-color .18s, box-shadow .18s;
}

select.nice-combo:focus {
    border-color: rgba(200,200,200,.85);
    box-shadow: 0 0 0 3px rgba(200,200,200,.15);
}

select.nice-combo option {
    background: #191919;
    color: #e6e6e6;
    font-weight: 700;
    padding: 10px;
}

/* Hero Contact Redesign Layout */
.hero-contact {
    display: grid;
    grid-template-columns: 1.45fr .75fr;
    gap: 22px;
    margin-bottom: 32px;
    align-items: stretch;
}

.hero-contact-text, .hero-contact-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(200,200,200,.18);
    background: linear-gradient(145deg, rgba(24,24,24,.86), rgba(14,14,14,.88));
    border-radius: var(--r-xl);
    padding: 28px;
    box-shadow: 0 25px 80px rgba(0,0,0,.28);
}

.hero-contact-text:before {
    content: "";
    position: absolute;
    inset: -80px -20px auto auto;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(200,200,200,.16), transparent 70%);
    pointer-events: none;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #cecece;
    font-weight: 900;
    font-size: 12px;
    letter-spacing: .14em;
    margin-bottom: 10px;
}

.hero-contact h1 {
    font-size: 40px;
    line-height: 1.1;
    margin: 0 0 12px;
    font-weight: 950;
    background: linear-gradient(135deg, #ffffff, #e3e3e3, #bdbdbd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-contact p {
    color: #c1c1c1;
    font-size: 15px;
    line-height: 1.6;
}

.support-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.support-badges span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(23, 23, 23, 0.62);
    border: 1px solid rgba(168, 168, 168, 0.14);
    font-weight: 900;
    color: #e0e0e0;
    font-size: 13px;
}

.hero-contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-contact-card .orb {
    width: 100px;
    height: 100px;
    border-radius: 32px;
    background: linear-gradient(135deg, #b4b4b4, #c8c8c8, #555555);
    box-shadow: 0 0 40px rgba(180,180,180,.25);
    margin-bottom: 14px;
    animation: floatOrb 3.2s ease-in-out infinite;
}

@keyframes floatOrb {
    0%, 100% { transform: translateY(0) rotate(0) }
    50% { transform: translateY(-8px) rotate(4deg) }
}

.hero-contact-card b {
    font-size: 20px;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 4px;
}

.hero-contact-card span {
    color: var(--muted);
    font-size: 13.5px;
    font-weight: 600;
}

/* Free Fire Config Builder Styling */
.config-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 22px;
}

.terminal-output {
    flex-grow: 1;
    background: #040404;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 18px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 13.5px;
    color: #cecece;
    overflow-y: auto;
    max-height: 390px;
    min-height: 280px;
    white-space: pre-wrap;
    word-break: break-all;
    line-height: 1.6;
    box-shadow: inset 0 8px 30px rgba(0,0,0,0.8);
}

.terminal-output span.keyword {
    color: #eab308;
    font-weight: bold;
}

.terminal-output span.value {
    color: #22c55e;
}

.terminal-output span.comment {
    color: var(--muted);
}

.badge-vip {
    background: linear-gradient(135deg, #eab308, #ca8a04);
    color: #000000;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 900;
    text-transform: uppercase;
    box-shadow: 0 0 10px rgba(234, 179, 8, 0.25);
}

.badge-free {
    background: var(--surface2);
    color: var(--text);
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 900;
    text-transform: uppercase;
    border: 1px solid var(--border);
}

/* =========================================================
   NEW ADMIN PANEL STYLING (Inspired by subsieunhanh.online)
   ========================================================= */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
}

.stat-card {
    background: linear-gradient(145deg, rgba(20,20,20,.95), rgba(10,10,10,.98));
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform .2s, border-color .2s;
}

.stat-card:hover {
    border-color: rgba(180, 180, 180, 0.22);
    transform: translateY(-2px);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 20px;
    flex-shrink: 0;
}

/* Dynamic Admin Icons colors matching dashboard screenshot style */
.stat-icon.u { background: rgba(34, 197, 94, 0.12); color: #22c55e; }
.stat-icon.u-new { background: rgba(59, 130, 246, 0.12); color: #3b82f6; }
.stat-icon.bal { background: rgba(234, 179, 8, 0.12); color: #eab308; }
.stat-icon.dep { background: rgba(139, 92, 246, 0.12); color: #8b5cf6; }
.stat-icon.rev { background: rgba(239, 68, 68, 0.12); color: #ef4444; }
.stat-icon.ord { background: rgba(249, 115, 22, 0.12); color: #f97316; }
.stat-icon.tick { background: rgba(16, 185, 129, 0.12); color: #10b981; }
.stat-icon.dep-today { background: rgba(6, 182, 212, 0.12); color: #06b6d4; }
.stat-icon.ord-today { background: rgba(236, 72, 153, 0.12); color: #ec4899; }
.stat-icon.pending { background: rgba(245, 158, 11, 0.12); color: #f59e0b; }
.stat-icon.file-vip { background: rgba(168, 85, 247, 0.12); color: #a855f7; }
.stat-icon.active-con { background: rgba(100, 116, 139, 0.12); color: #64748b; }

.stat-val {
    font-size: 22px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.2;
}

.stat-lbl {
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
    margin-top: 2px;
}

/* Admin Data Table */
.table-responsive {
    overflow-x: auto;
    width: 100%;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
    text-align: left;
}

.admin-table th, .admin-table td {
    padding: 7px 8px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.admin-table td {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-table td:last-child {
    max-width: none;
    overflow: visible;
    text-overflow: clip;
}

.admin-table th {
    background: var(--surface2);
    color: var(--text);
    font-weight: 800;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.admin-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.admin-table .badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}

.admin-table .badge.admin {
    background: rgba(239, 68, 68, 0.14);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #ef4444;
}

.admin-table .badge.member {
    background: rgba(180, 180, 180, 0.1);
    border: 1px solid var(--border);
    color: var(--text);
}

/* Chat Shell Layout */
.chat-shell {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 18px;
}

.chat-users, .chat-box {
    background: linear-gradient(145deg, rgba(21,21,21,.92), rgba(11,11,11,.94)) !important;
}

.chat-log {
    height: 380px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px !important;
    background: radial-gradient(circle at 50% 0, rgba(200,200,200,.09), transparent 35%), rgba(6,6,6,.42) !important;
    border-radius: var(--r-md);
    border: 1px solid rgba(168, 168, 168, 0.12);
}

.msg {
    max-width: 80%;
    padding: 11px 13px;
    border-radius: var(--r-md);
    background: rgba(40, 40, 40, 0.8);
    border: 1px solid rgba(168, 168, 168, 0.12);
    align-self: flex-start;
    box-shadow: 0 12px 34px rgba(0,0,0,.18);
    font-size: 14px;
}

.msg.me {
    align-self: flex-end;
    background: linear-gradient(135deg, rgba(180,180,180,.25), rgba(113,113,113,.15));
    border-color: rgba(200, 200, 200, 0.24) !important;
}

.msg small {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 10px;
    text-align: right;
}

.activity-list {
    display: grid;
    gap: 10px;
}

.activity-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border-radius: var(--r-md);
    background: rgba(23,23,23,.55);
    border: 1px solid rgba(168, 168, 168,.13);
}

.activity-main {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.tick-anim {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    background: rgba(34,197,94,.16);
    border: 2px solid rgba(34,197,94,.95);
    color: #22c55e;
    flex: 0 0 auto;
    box-shadow: 0 0 18px rgba(34,197,94,.28);
}

.tick-anim:before {
    content: "✓";
    font-weight: 1000;
    font-size: 14px;
}

.activity-title {
    font-weight: 800;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-sub {
    font-size: 11px;
    color: var(--muted);
}

.status-pill {
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 99px;
    background: rgba(200,200,200,.10);
    border: 1px solid rgba(200,200,200,.18);
    font-weight: 900;
}

/* Avatar upload area styling */
.avatar-upload-zone {
    width: 100%;
    height: 120px;
    border: 2px dashed rgba(200, 200, 200, 0.3);
    border-radius: var(--r-md);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: relative;
    background: var(--bg2);
    overflow: hidden;
    transition: all 0.25s ease;
}

.avatar-upload-zone:hover {
    border-color: var(--accent);
    box-shadow: 0 0 12px rgba(180, 180, 180, 0.15);
}

.avatar-upload-zone input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}

.upload-placeholder {
    text-align: center;
    color: var(--muted);
    font-size: 13.5px;
    pointer-events: none;
}

.upload-placeholder span {
    font-size: 28px;
    display: block;
    margin-bottom: 4px;
}

#avatar-preview-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    z-index: 2;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

/* Modern Modals */
.modal-bg {
    position: fixed;
    inset: 0;
    background: rgba(4, 4, 4, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    display: flex;
    transition: opacity 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), visibility 0.3s;
}

.modal-bg.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal {
    background: linear-gradient(145deg, #0d0d0d, #060606);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--r-xl) !important;
    width: min(520px, calc(100vw - 32px));
    max-width: 520px;
    max-height: calc(100vh - 48px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.8), 0 0 40px rgba(255, 215, 0, 0.03);
    transform: scale(0.92) translateY(10px);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.modal-bg.open .modal {
    transform: scale(1) translateY(0);
}

.modal-head {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(27,27,27,.98);
}

.modal-head h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 900;
}

.modal-close {
    background: none;
    border: 0;
    color: var(--muted);
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
}

.modal-body {
    padding: 22px;
    overflow-y: auto;
    flex: 1;
}

.bank-note {
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--muted);
    margin-bottom: 14px;
}

.qr-box {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 18px;
    align-items: center;
}

.qr-box img {
    width: 100%;
    border-radius: var(--r-md);
    background: #ffffff;
    padding: 8px;
    object-fit: contain;
}

.kv {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--r-sm);
    margin-bottom: 8px;
    font-size: 13px;
    align-items: center;
}

.kv b {
    color: var(--muted);
    font-weight: 700;
}

.kv span {
    font-weight: 800;
    word-break: break-all;
}

.copy-btn {
    background: var(--accent);
    color: #ffffff;
    border: 0;
    padding: 4px 10px;
    border-radius: var(--r-sm);
    font-weight: 700;
    cursor: pointer;
    font-size: 11px;
}

.copy-btn:hover {
    filter: brightness(1.15);
}

.bank-action-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 14px;
}

.bank-action-row button {
    height: 56px;
    min-height: 56px;
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 25;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .side {
        transform: translateX(-105%);
        width: 260px;
    }
    
    .app.menu-open .side {
        transform: translateX(0);
        box-shadow: 20px 0 60px rgba(0,0,0,.5);
    }
    
    .app.menu-open .sidebar-overlay {
        opacity: 1;
        pointer-events: auto;
    }
    
    .sidebar-close-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 20px;
        right: 14px;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: var(--muted);
        cursor: pointer;
        transition: all 0.2s ease;
        z-index: 35;
    }
    
    .sidebar-close-btn:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #ffffff;
        transform: scale(1.05);
    }

    .sidebar-close-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .main {
        margin-left: 0;
        width: 100%;
    }
    
    .hamb {
        display: flex;
    }

    .hero-contact {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .config-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .admin-modules-grid {
        grid-template-columns: 1fr !important;
        gap: 18px;
    }

    .chat-shell {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    body { font-size: 14.5px; }
    .content { padding: 14px 12px 88px; }
    .grid { grid-template-columns: 1fr; gap: 14px; }
    .prod-img { height: 150px; }
    .qr-box { grid-template-columns: 1fr; justify-items: center; }
    .qr-box img { max-width: 200px; }
    .bank-action-row { grid-template-columns: 1fr; }
    .topbar h1 { font-size: 16px; }
    .search-filter-bar { flex-direction: column; align-items: stretch; }
    .filter-buttons { overflow-x: auto; flex-wrap: nowrap; }
    .flash-sale-inner { flex-wrap: wrap; gap: 8px; justify-content: center; }
}

/* =========================================================
   TOAST NOTIFICATION SYSTEM
   ========================================================= */
#toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    max-width: 360px;
    width: calc(100vw - 48px);
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--r-md);
    background: rgba(20, 20, 20, 0.96);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.04);
    pointer-events: all;
    animation: toastIn .35s cubic-bezier(.2,.8,.2,1) forwards;
    position: relative;
    overflow: hidden;
}

.toast.removing {
    animation: toastOut .3s ease forwards;
}

@keyframes toastIn {
    from { transform: translateX(120%); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
}

@keyframes toastOut {
    from { transform: translateX(0); opacity: 1; max-height: 100px; }
    to   { transform: translateX(120%); opacity: 0; max-height: 0; padding: 0; margin: 0; }
}

.toast::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    border-radius: 3px 0 0 3px;
}

.toast.success::before { background: var(--green); }
.toast.error::before   { background: var(--red); }
.toast.warning::before { background: var(--gold); }
.toast.info::before    { background: var(--accent); }

.toast-icon {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 1px;
}

.toast-body { flex: 1; min-width: 0; }

.toast-msg {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: 0;
    color: var(--muted);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 0;
    flex-shrink: 0;
    transition: color .15s;
}

.toast-close:hover { color: var(--text); }

.toast-progress {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: rgba(255,255,255,.08);
}

.toast-progress-bar {
    height: 100%;
    width: 100%;
    border-radius: 2px;
    transition: width linear;
}

.toast.success .toast-progress-bar { background: var(--green); }
.toast.error   .toast-progress-bar { background: var(--red); }
.toast.warning .toast-progress-bar { background: var(--gold); }
.toast.info    .toast-progress-bar { background: var(--accent); }

/* =========================================================
   SOCIAL PROOF POPUP
   ========================================================= */
.social-proof-popup {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 99998;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(18, 18, 18, 0.94);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(200,200,200,.18);
    border-radius: var(--r-lg);
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
    max-width: 320px;
    animation: spSlideUp .4s cubic-bezier(.2,.8,.2,1);
}

.social-proof-popup.hiding {
    animation: spSlideDown .3s ease forwards;
}

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

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

.sp-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent3));
    display: grid;
    place-items: center;
    font-size: 18px;
    flex-shrink: 0;
    border: 2px solid rgba(255,255,255,.12);
}

.sp-content { flex: 1; min-width: 0; }

.sp-name {
    font-weight: 800;
    font-size: 13px;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sp-action {
    font-size: 12px;
    color: var(--muted);
    margin: 2px 0;
}

.sp-action strong { color: var(--gold); }

.sp-time {
    font-size: 11px;
    color: var(--accent3);
    font-weight: 600;
}

.sp-close {
    background: none;
    border: 0;
    color: var(--muted);
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
    flex-shrink: 0;
}

/* =========================================================
   FLASH SALE BANNER
   ========================================================= */
.flash-sale-banner {
    background: linear-gradient(135deg, #1a0a00, #2d1500, #1a0a00);
    border: 1px solid rgba(255, 165, 0, 0.35);
    border-radius: var(--r-lg);
    padding: 16px 22px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.flash-sale-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,165,0,.06) 50%, transparent 100%);
    animation: flashSweep 2.5s ease-in-out infinite;
}

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

.flash-sale-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.flash-icon {
    font-size: 22px;
    animation: flashPulse 1s ease-in-out infinite;
}

@keyframes flashPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.7; transform: scale(1.15); }
}

.flash-label {
    font-size: 17px;
    font-weight: 900;
    color: var(--gold);
    letter-spacing: 1px;
}

.flash-sub {
    font-size: 13px;
    color: rgba(255,255,255,.65);
    font-weight: 600;
}

.countdown-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.countdown-unit {
    background: rgba(0,0,0,.5);
    border: 1px solid rgba(255,165,0,.3);
    border-radius: var(--r-sm);
    padding: 6px 10px;
    text-align: center;
    min-width: 50px;
}

.countdown-unit span {
    display: block;
    font-size: 22px;
    font-weight: 900;
    color: var(--gold);
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.countdown-unit small {
    display: block;
    font-size: 9px;
    color: rgba(255,255,255,.5);
    font-weight: 700;
    letter-spacing: .5px;
    margin-top: 2px;
}

.cd-sep {
    font-size: 22px;
    font-weight: 900;
    color: var(--gold);
    animation: flashPulse 1s ease-in-out infinite;
}

.flash-badge {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    padding: 6px 12px;
    border-radius: 99px;
    letter-spacing: .5px;
    box-shadow: 0 0 16px rgba(239,68,68,.35);
    animation: flashPulse 1.5s ease-in-out infinite;
    margin-left: auto;
}

/* Sản phẩm đang sale */
.product-card.on-sale .product-img::after {
    content: "SALE -30%";
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    padding: 4px 8px;
    border-radius: 4px;
    letter-spacing: .5px;
    box-shadow: 0 4px 12px rgba(239,68,68,.4);
}

.price-original {
    font-size: 14px;
    color: var(--muted);
    text-decoration: line-through;
    margin-bottom: 2px;
    font-weight: 600;
}

/* =========================================================
   SEARCH & FILTER BAR
   ========================================================= */
.search-filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.search-input-wrap {
    position: relative;
    flex: 1;
    min-width: 220px;
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    pointer-events: none;
    z-index: 2;
}

.search-input-wrap input {
    width: 100%;
    padding: 11px 14px 11px 42px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

.search-input-wrap input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(160,160,160,.15);
}

.filter-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 99px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s;
    font-family: inherit;
    white-space: nowrap;
}

.filter-btn:hover {
    background: var(--surface2);
    color: var(--text);
    border-color: rgba(26, 92, 255, 0.35);
}

.filter-btn.active {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(26, 92, 255, 0.4) !important;
}

.sort-combo {
    appearance: none;
    -webkit-appearance: none;
    background: var(--surface);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23afafaf' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 18px;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    padding: 10px 36px 10px 14px;
    cursor: pointer;
    outline: none;
    transition: border-color .2s;
    white-space: nowrap;
}

.sort-combo:focus {
    border-color: var(--accent);
}

.sort-combo option {
    background: #191919;
    color: var(--text);
}

/* Countdown urgency pulse khi < 1 giờ */
.countdown-unit.urgent span {
    color: var(--red) !important;
    animation: flashPulse .6s ease-in-out infinite;
}


/* =========================================================
   ADDITIONAL ADMIN PANEL STYLING (Multi-tab, forms, chat)
   ========================================================= */
.admin-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 22px;
    padding-bottom: 8px;
    flex-wrap: wrap;
}

.admin-tab-btn {
    background: transparent;
    border: 0;
    color: var(--muted);
    padding: 10px 16px;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    border-radius: var(--r-md);
    transition: all .2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.admin-tab-btn:hover {
    background: var(--surface);
    color: #ffffff;
}

.admin-tab-btn.active {
    background: linear-gradient(135deg, rgba(160,160,160,.22), rgba(100,100,100,.15));
    color: #ffffff;
    box-shadow: inset 0 -2px 0 var(--accent), inset 0 0 0 1px rgba(180,180,180,.15);
}

.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
}

/* Upload zone */
.upload-zone-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.upload-zone {
    border: 2px dashed var(--border);
    border-radius: var(--r-md);
    padding: 18px;
    text-align: center;
    background: var(--bg2);
    cursor: pointer;
    transition: border-color .2s;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}

.upload-zone:hover {
    border-color: var(--accent);
}

.upload-zone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.upload-zone .icon {
    font-size: 24px;
    margin-bottom: 6px;
}

.upload-zone .desc {
    font-size: 12px;
    color: var(--muted);
}

.upload-preview-img {
    max-height: 80px;
    max-width: 100%;
    border-radius: 4px;
    object-fit: cover;
    margin-top: 6px;
    display: none;
}

/* Admin Chat support UI */
.admin-chat-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 20px;
    height: 550px;
}

.admin-chat-inbox {
    border-right: 1px solid var(--border);
    padding-right: 16px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    gap: 10px;
}

.admin-chat-user-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--r-md);
    background: var(--surface);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all .2s;
}

.admin-chat-user-row:hover, .admin-chat-user-row.active {
    background: var(--surface2);
    border-color: var(--accent);
}

.admin-chat-user-row .avatar {
    width: 40px;
    height: 40px;
    font-size: 16px;
}

.admin-chat-user-info {
    flex-grow: 1;
    min-width: 0;
}

.admin-chat-username {
    font-weight: 800;
    font-size: 14.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-chat-lastmsg {
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-chat-unread {
    background: var(--red);
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 99px;
    font-weight: 900;
}

.admin-chat-area {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.admin-chat-header {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    font-weight: 800;
    font-size: 16px;
}

.admin-chat-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(0,0,0,0.1);
}

.admin-chat-input-row {
    padding: 14px 0 0;
    display: flex;
    gap: 10px;
}

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

/* =========================================================
   DEPOSIT SYSTEM STYLING
   ========================================================= */
.deposit-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 22px;
    margin-bottom: 30px;
}

@media (max-width: 992px) {
    .deposit-grid {
        grid-template-columns: 1fr;
    }
}

.deposit-info-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.deposit-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
}

.deposit-info-label {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.deposit-info-value {
    color: #ffffff;
    font-weight: 800;
    font-size: 14.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.copy-badge-btn {
    background: var(--accent);
    color: #ffffff;
    border: 0;
    border-radius: 4px;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    transition: all .2s;
    box-shadow: 0 2px 8px rgba(26, 92, 255, 0.3);
}

.copy-badge-btn:hover {
    box-shadow: 0 4px 12px rgba(26, 92, 255, 0.5);
    filter: brightness(1.1);
}

.payment-methods-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.payment-method-card {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 14px 16px;
    cursor: pointer;
    transition: all .2s ease;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.payment-method-card:hover {
    border-color: rgba(26, 92, 255, 0.35);
}

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

.payment-method-title {
    font-weight: 800;
    font-size: 13.5px;
    color: #ffffff;
}

.payment-method-desc {
    font-size: 11px;
    color: var(--muted);
}

.deposit-bill-preview {
    padding: 14px 16px;
    background: rgba(255, 215, 0, 0.02);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: var(--r-md);
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
}

.deposit-bill-preview span {
    color: var(--gold);
    font-weight: 900;
    font-size: 15px;
}

.deposit-custom-input-wrap {
    display: flex;
    align-items: center;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    overflow: hidden;
    padding: 0 16px;
    transition: border-color .2s;
}

.deposit-custom-input-wrap:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(26, 92, 255, 0.15);
}

.deposit-custom-input-wrap input {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
    padding: 14px 0 !important;
    flex: 1;
    font-weight: 800;
    color: #ffffff;
    -webkit-appearance: none !important;
    -moz-appearance: textfield !important;
    appearance: none !important;
}

/* Ẩn hoàn toàn mũi tên spinner và spin buttons của input number */
.deposit-custom-input-wrap input::-webkit-outer-spin-button,
.deposit-custom-input-wrap input::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    appearance: none !important;
    margin: 0 !important;
    display: none !important;
}

.deposit-custom-input-wrap .suffix {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.deposit-note-box {
    padding: 14px 16px;
    background: rgba(26, 92, 255, 0.02);
    border: 1px dashed rgba(26, 92, 255, 0.2);
    border-radius: var(--r-md);
    color: var(--text);
    font-size: 12.5px;
    line-height: 1.5;
}

.qr-result-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.qr-result-image-wrapper {
    background: #ffffff;
    padding: 12px;
    border-radius: var(--r-md);
    display: inline-flex;
}

.qr-result-image-wrapper img {
    max-width: 220px;
    display: block;
}

/* ===== ANNOUNCEMENT BAR ===== */
.announcement-bar {
    width: 100%;
    background: transparent;
    border-bottom: none;
    padding: 6px 0;
    overflow: hidden;
    position: relative;
    z-index: 200;
}
.announcement-track {
    display: flex;
    animation: announcementScroll 25s linear infinite;
    white-space: nowrap;
}
.announcement-text {
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    padding-right: 60px;
}
@keyframes announcementScroll {
    0% { transform: translateX(100vw); }
    100% { transform: translateX(-100%); }
}

/* ===== BANNER CAROUSEL ===== */
.banner-carousel {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
}
.banner-track {
    display: flex;
    transition: transform 0.5s ease;
}
.banner-slide {
    min-width: 100%;
    position: relative;
    cursor: pointer;
}
.banner-slide img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}
.banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    padding: 20px 16px 12px;
}
.banner-overlay h3 {
    color: #fff;
    font-size: 16px;
    margin: 0 0 4px;
}
.banner-overlay p {
    color: rgba(255,255,255,0.8);
    font-size: 12px;
    margin: 0;
}
.banner-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 8px 0;
    background: var(--surface);
}
.banner-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
.banner-dot.active {
    background: var(--gold);
    transform: scale(1.3);
}

/* ===== NOTIFICATION BELL ===== */
.notif-bell-container {
    position: relative;
}
.notif-bell-btn {
    background: none;
    border: none;
    color: var(--muted);
    font-size: 20px;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
}
.notif-bell-btn:hover {
    background: rgba(255,255,255,0.08);
    color: var(--gold);
}
.notif-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #e53935;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: none;
    align-items: center;
    justify-content: center;
    border: 2px solid #181818;
}
.notif-badge.visible {
    display: flex;
}
.notif-dropdown {
    position: absolute;
    right: 0;
    top: 44px;
    width: 320px;
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.55);
    z-index: 500;
    overflow: hidden;
    display: none;
}
.notif-dropdown.open {
    display: block;
}
.notif-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid #333;
    font-size: 13px;
    font-weight: 700;
}
.notif-dropdown-list {
    max-height: 300px;
    overflow-y: auto;
}
.notif-item {
    display: flex;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    cursor: pointer;
    transition: background 0.15s;
}
.notif-item:hover {
    background: rgba(255,255,255,0.05);
}
.notif-item.unread {
    background: rgba(255,215,0,0.04);
    border-left: 3px solid var(--gold);
}
.notif-item-icon {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}
.notif-item-body {
    flex: 1;
    overflow: hidden;
}
.notif-item-title {
    font-size: 13px;
    font-weight: 700;
    color: #eee;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.notif-item-text {
    font-size: 11.5px;
    color: #999;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.notif-item-time {
    font-size: 10.5px;
    color: #666;
    margin-top: 3px;
}

/* ===== POPUP NOTIFICATION MODAL ===== */
.popup-notification-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9000;
}
.popup-notification-modal.open {
    display: flex;
}
.popup-notification-modal .modal-box {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.popup-notification-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid #333;
    font-size: 15px;
    font-weight: 800;
    color: #fff;
}

/* ===== MAINTENANCE OVERLAY ===== */
.maintenance-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.93);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.maintenance-box {
    text-align: center;
    max-width: 420px;
    padding: 40px 24px;
}
.maintenance-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: spin 3s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.maintenance-box h2 {
    font-size: 24px;
    color: #fff;
    margin-bottom: 12px;
}
.maintenance-message {
    font-size: 14px;
    color: #999;
    line-height: 1.6;
}
