*{box-sizing:border-box}
body{
    margin:0;
    font-family:'Segoe UI',sans-serif;
    background:radial-gradient(circle at top,#0f172a,#020617);
    color:#e5e7eb;
}

/* ===== HEADER ===== */
.header{
    padding:18px 40px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    background:rgba(2,6,23,.9);
    backdrop-filter:blur(10px);
    box-shadow:0 0 40px rgba(56,189,248,.3);
}

.logo{
    font-size:24px;
    font-weight:800;
    color:#38bdf8;
    text-shadow:0 0 15px #38bdf8;
}

.menu a{
    margin-left:15px;
    padding:8px 14px;
    border-radius:8px;
    background:#020617;
    transition:.25s;
}

.menu a:hover{
    background:#38bdf8;
    color:#020617;
    box-shadow:0 0 20px #38bdf8;
}

.menu .logout{
    background:#ef4444;
}



/* ===== SECTION ===== */
.section{
    padding:60px 40px;
}

.section h2{
    font-size:32px;
    margin-bottom:30px;
    color:#a5f3fc;
    text-shadow:0 0 20px #38bdf8;
}

/* ===== GRID ===== */
.grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(240px,1fr));
    gap:25px;
}

/* ===== CARD ===== */
.card{
    background:linear-gradient(180deg,#020617,#020617);
    border-radius:16px;
    padding:25px;
    box-shadow:0 0 0 1px #1e293b,0 0 30px rgba(56,189,248,.1);
    transition:.25s;
}

.card:hover{
    transform:translateY(-6px);
    box-shadow:0 0 50px rgba(56,189,248,.5);
}

.card h3{
    margin:0 0 12px;
}

.card p{
    font-size:14px;
    color:#94a3b8;
}

.card .btn{
    display:inline-block;
    margin-top:15px;
    padding:10px 18px;
    border-radius:10px;
    background:#38bdf8;
    color:#020617;
    font-weight:700;
}

/* ===== FORM ===== */
.form-box{
    max-width:420px;
    margin:80px auto;
    padding:30px;
    background:#020617;
    border-radius:20px;
    box-shadow:0 0 40px rgba(56,189,248,.3);
}

.form-box h2{
    text-align:center;
    color:#38bdf8;
}

.form-box input,.form-box button{
    width:100%;
    padding:14px;
    margin-top:12px;
    border-radius:10px;
    border:none;
}

.form-box button{
    background:linear-gradient(135deg,#38bdf8,#6366f1);
    font-weight:800;
    cursor:pointer;
}
.auth-box{
 width:380px;
 margin:80px auto;
 background:#0b1220;
 padding:30px;
 border-radius:18px;
 box-shadow:0 0 40px rgba(0,255,255,.25);
 color:#fff;
 text-align:center;
}

.auth-box h2{
 color:#00ffff;
 margin-bottom:20px;
 text-shadow:0 0 10px #00ffff;
}

.auth-box input{
 width:100%;
 padding:12px;
 margin:8px 0;
 border:none;
 border-radius:10px;
 background:#111;
 color:#fff;
}

.btn.full{
 width:100%;
 padding:12px;
 margin-top:15px;
 background:linear-gradient(135deg,#00ffff,#0066ff);
 border:none;
 border-radius:30px;
 font-weight:bold;
 cursor:pointer;
}

.auth-links{
 margin-top:18px;
 display:flex;
 flex-direction:column;
 gap:8px;
}

.error{color:#ff5252}
.success{color:#00e676}
/* ===== HEADER SHOP LỚN ===== */
.top-header{
    position: fixed;          /* QUAN TRỌNG */
    top: 0;
    left: 0;
    width: 100%;
    height: 64px;
    z-index: 9999;            /* ĐÈ HẾT */
    background: linear-gradient(90deg,#070b14,#0c1b2e);
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:0 20px;
    border-bottom:1px solid #0ff3;
}


.header-left{
    display:flex;
    align-items:center;
    gap:28px;
}

.logo{
    font-size:22px;
    font-weight:900;
    color:#00ffff;
    text-shadow:0 0 15px #00ffff;
}

.nav a{
    margin-right:16px;
    color:#cbd5e1;
    font-weight:600;
    transition:.25s;
}

.nav a:hover{
    color:#00ffff;
    text-shadow:0 0 8px #00ffff;
}

.header-right{
    display:flex;
    align-items:center;
    gap:12px;
}

/* USER LOGIN */
.user-box{
    display:flex;
    align-items:center;
    gap:14px;
    background:#111827;
    padding:8px 16px;
    border-radius:18px;
    box-shadow:0 0 18px rgba(0,255,255,.15);
}

.user-name{
    color:#fff;
    font-weight:600;
}

.user-balance{
    color:#00ff99;
    font-weight:700;
}

/* BUTTON */
.btn-login,
.btn-register,
.btn-logout{
    padding:8px 16px;
    border-radius:20px;
    font-weight:700;
    transition:.25s;
}

.btn-login{
    border:1px solid #00ffff;
    color:#00ffff;
}

.btn-login:hover{
    background:#00ffff;
    color:#000;
}

.btn-register{
    background:linear-gradient(135deg,#00ffff,#0066ff);
    color:#000;
}

.btn-register:hover{
    opacity:.85;
}

.btn-logout{
    background:#ff1744;
    color:#fff;
}

.btn-logout:hover{
    opacity:.85;
}



.btn-main{
    padding:14px 34px;
    border-radius:28px;
    background:linear-gradient(135deg,#00ffff,#3b82f6);
    color:#000;
    font-weight:800;
    box-shadow:0 0 25px rgba(0,255,255,.45);
}

.btn-main:hover{
    transform:translateY(-2px);
}

.btn-outline{
    padding:14px 34px;
    border-radius:28px;
    border:2px solid #00ffff;
    color:#00ffff;
    font-weight:800;
}

.btn-outline:hover{
    background:#00ffff;
    color:#000;
}
.topup-box{
    max-width:520px;
    margin:-60px auto 40px;   /* ❗ kéo lên đè hero */
    background:linear-gradient(160deg,#020617,#030712);
    border-radius:18px;
    padding:22px;
    box-shadow:0 0 40px rgba(56,189,248,.35);
    position:relative;
    z-index:5;
}


.topup-title{
    text-align:center;
    font-size:24px;
    color:#38bdf8;
    margin-bottom:20px;
    text-shadow:0 0 15px #38bdf8;
}

.topup-list{
    list-style:none;
    padding:0;
    margin:0;
}

.topup-list li{
    display:flex;
    align-items:center;
    justify-content:space-between;
    background:#0f172a;
    margin-bottom:10px;
    padding:12px 16px;
    border-radius:14px;
    transition:.25s;
}

.topup-list li:hover{
    transform:translateY(-2px);
    box-shadow:0 0 20px rgba(56,189,248,.35);
}

.rank{
    width:50px;
    text-align:center;
    font-weight:bold;
    color:#94a3b8;
}

.user{
    flex:1;
    font-weight:600;
    color:#e5e7eb;
}

.money{
    font-weight:700;
    color:#22c55e;
}

/* TOP 1 2 3 */
.hero-pro{
    position: relative;
    height: 360px;              /* ❗ giảm mạnh */
    background: url('../images/hero-bg.jpg') center/cover no-repeat;
    display:flex;
    align-items:center;
    justify-content:center;
}

.hero-overlay{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.65);
}

.hero-content{
    position:relative;
    text-align:center;
    max-width:700px;
}

.hero-logo{
    height: 120px;
}

.hero-content h1{
    font-size:30px;
    margin-bottom:6px;
}

.hero-content p{
    font-size:14px;
    color:#cbd5e1;
}
.section{
    padding:30px 0;     /* ❗ giảm mạnh */
}

.section h2{
    text-align:center;
    margin-bottom:20px;
    font-size:24px;
    color:#38bdf8;
}
.neon-card{
    background:#0b1220;
    border-radius:14px;
    padding:18px;
    text-align:center;
    box-shadow:0 0 18px rgba(56,189,248,.18);
    transition:.25s;
}

.neon-card:hover{
    transform:translateY(-4px);
    box-shadow:0 0 30px rgba(56,189,248,.45);
}

.neon-card h3{
    margin-bottom:6px;
    font-size:18px;
    color:#e5e7eb;
}

.neon-card p{
    font-size:13px;
    color:#94a3b8;
    margin-bottom:10px;
}
.grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(230px,1fr));
    gap:16px;     /* ❗ giảm gap */
}

.topup-list{
    list-style:none;
    padding:0;
    margin:0;
}

.topup-list li{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:14px 16px;
    border-radius:12px;
    margin-bottom:10px;
    background:#020617;
    border:1px solid #0f172a;
}

/* ===== CUP ===== */
.rank-cup{
    min-width:70px;
    text-align:center;
    font-weight:700;
    font-size:13px;
    padding:6px 0;
    border-radius:999px;
}

/* ===== TOP 1 ===== */
.rank-1{
    background:linear-gradient(135deg,#facc15,#ca8a04);
}
.rank-1 .rank-cup{
    background:#78350f;
    color:#fde047;
}

/* ===== TOP 2 ===== */
.rank-2{
    background:linear-gradient(135deg,#e5e7eb,#9ca3af);
}
.rank-2 .rank-cup{
    background:#374151;
    color:#f9fafb;
}

/* ===== TOP 3 ===== */
.rank-3{
    background:linear-gradient(135deg,#f97316,#c2410c);
}
.rank-3 .rank-cup{
    background:#7c2d12;
    color:#ffedd5;
}

/* ===== TOP 4–5 ===== */
.rank-4,
.rank-5{
    background:#020617;
}
.rank-5 .rank-cup{
    background:#6bb437;
    color:#38bdf8;
}
.rank-4 .rank-cup{
    background:#0a44cd;
    color:#38bdf8;
}

/* ===== USER + MONEY ===== */
.topup-list .user{
    flex:1;
    margin:0 12px;
    font-weight:700;
    color:#020617;   /* ❗ TOP 1–3 rất rõ */
}

.rank-4 .user,
.rank-5 .user{
    color:#da15b2; 
}

.money{
    font-weight:800;
        color:#da15b2; 
}
/* ===== TOP 1 ===== */
.rank-1{
    background:linear-gradient(135deg,#facc15,#ca8a04);
    box-shadow:0 0 12px rgba(250,204,21,.35);
}

/* ===== TOP 2 ===== */
.rank-2{
    background:linear-gradient(135deg,#e5e7eb,#9ca3af);
    box-shadow:0 0 10px rgba(156,163,175,.35);
}

/* ===== TOP 3 ===== */
.rank-3{
    background:linear-gradient(135deg,#fb923c,#c2410c);
    box-shadow:0 0 10px rgba(251,146,60,.35);
}

/* ===== CHỮ RÕ – KHÔNG CHÌM ===== */
.rank-1 .user,
.rank-1 .money,
.rank-2 .user,
.rank-2 .money,
.rank-3 .user,
.rank-3 .money{
    color:#da15b2;        /* đen xanh → rõ trên nền sáng */
    font-weight:800;
}

/* ===== TOP 4–5 ===== */
.rank-4{
    background:linear-gradient(135deg,#e5e7eb,#9ca3af);
    box-shadow:0 0 10px rgba(156,163,175,.35);
}
.rank-5{
    background:#020617;
}

.rank-4 .user,
.rank-5 .user{
        color:#da15b2; 
}
.product-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
    gap:20px;
}

.product-card{
    background:#0b0f1a;
    border-radius:14px;
    padding:15px;
    position:relative;
    box-shadow:0 0 20px rgba(0,255,255,.15);
    transition:.25s;
}

.product-card:hover{
    transform:translateY(-6px);
    box-shadow:0 0 30px rgba(0,255,255,.35);
}

.sale-badge{
    position:absolute;
    top:10px;
    right:10px;
    background:linear-gradient(135deg,#ff004c,#ff7a00);
    color:#fff;
    padding:5px 10px;
    border-radius:20px;
    font-weight:bold;
    font-size:13px;
}

.product-title{
    color:#00f7ff;
    font-weight:700;
    margin-bottom:8px;
    font-size:15px;
}

.product-image img{
    width:100%;
    border-radius:10px;
    margin:10px 0;
}

.product-stats{
    font-size:13px;
    color:#aaa;
}

.price-box{
    margin:10px 0;
}

.old-price{
    text-decoration:line-through;
    color:#999;
    font-size:14px;
}

.new-price{
    color:#00ff9d;
    font-size:18px;
    font-weight:800;
}

.product-actions{
    display:flex;
    gap:10px;
}

.product-actions .btn{
    flex:1;
    padding:10px;
    text-align:center;
    border-radius:10px;
    font-weight:700;
    background:#00f7ff;
    color:#000;
    transition:.2s;
}

.product-actions .detail{
    background:#1f2933;
    color:#fff;
}

.product-actions .btn:hover{
    opacity:.85;
}
a {
    text-decoration: none;
    color: inherit;
}
.nav a,
.auth-links a {
    text-decoration: none;
    color: #fff;
    font-weight: 600;
}

.nav a:hover,
.auth-links a:hover {
    color: #ffd700;
}
.nav a {
    margin: 0 10px;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    transition: 0.2s;
}

.nav a:hover {
    color: #00ffe7;
    text-shadow: 0 0 8px #00ffe7;
}
.btn-topup {
    background: linear-gradient(135deg,#00ffcc,#00bfa5);
    color:#000;
    padding:6px 12px;
    border-radius:6px;
    font-weight:700;
    margin-left:6px;
}

.btn-topup:hover {
    box-shadow:0 0 10px #00ffcc;
}
.welcome-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.welcome-box {
    background: #0b0f1a;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    color: #fff;
    box-shadow: 0 0 30px #00ffe7;
}

.welcome-box button {
    margin-top: 15px;
    padding: 10px 20px;
    font-weight: 700;
    border-radius: 8px;
    background: linear-gradient(135deg,#ffd700,#ff9800);
    border: none;
    cursor: pointer;
}
.welcome-modal{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.75);
    display:none;
    justify-content:center;
    align-items:center;
    z-index:9999;
}

.welcome-box{
    background:#0f172a;
    border:2px solid #22d3ee;
    padding:30px 40px;
    border-radius:14px;
    text-align:center;
    width:360px;
    box-shadow:0 0 40px #22d3ee;
}
/* ===== WELCOME POPUP ===== */
.welcome-modal{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.78);
    display:none;
    justify-content:center;
    align-items:center;
    z-index:9999;
}

.welcome-box{
    position:relative;
    background:#0b1220;
    border:2px solid #22d3ee;
    padding:32px 36px 28px;
    border-radius:18px;
    text-align:center;
    width:380px;
    box-shadow:0 0 40px rgba(34,211,238,.6);
    animation:pop .35s ease;
}

@keyframes pop{
    from{transform:scale(.9);opacity:0}
    to{transform:scale(1);opacity:1}
}

.welcome-box h2{
    color:#22d3ee;
    margin-bottom:10px;
}

.welcome-box p{
    color:#e5e7eb;
    font-size:14px;
    line-height:1.6;
}

/* CLOSE ICON */
.welcome-close{
    position:absolute;
    top:10px;
    right:14px;
    font-size:18px;
    color:#94a3b8;
    cursor:pointer;
}
.welcome-close:hover{
    color:#ef4444;
}

/* BUTTONS */
.welcome-actions{
    margin-top:22px;
    display:flex;
    justify-content:space-between;
    gap:14px;
}

.welcome-actions button{
    flex:1;
    padding:12px;
    border-radius:10px;
    border:none;
    font-weight:600;
    cursor:pointer;
}

.btn-later{
    background:#1e293b;
    color:#22d3ee;
    border:1px solid #22d3ee;
}
.btn-later:hover{
    background:#22d3ee;
    color:#000;
}

.btn-close{
    background:#ef4444;
    color:#fff;
}
.btn-close:hover{
    background:#dc2626;
}
/* ===== QR POPUP ===== */
.qr-modal{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.8);
    display:none;
    justify-content:center;
    align-items:center;
    z-index:9999;
}

.qr-box{
    position:relative;
    background:#0b1220;
    border:2px solid #22d3ee;
    border-radius:18px;
    padding:26px 30px;
    width:360px;
    text-align:center;
    box-shadow:0 0 40px rgba(34,211,238,.6);
}

.qr-box h2{
    color:#22d3ee;
    margin-bottom:14px;
}

.qr-img{
    width:220px;
    margin:12px auto;
    display:block;
    border-radius:10px;
    background:#fff;
    padding:8px;
}

.qr-info{
    color:#e5e7eb;
    font-size:14px;
    line-height:1.6;
}

.qr-code{
    color:#22d3ee;
    font-weight:700;
}

.qr-note{
    margin-top:12px;
    font-size:13px;
    color:#facc15;
}

/* CLOSE */
.qr-close{
    position:absolute;
    top:10px;
    right:14px;
    cursor:pointer;
    color:#94a3b8;
}
.qr-close:hover{
    color:#ef4444;
}

/* BUTTON */
.btn-topup{
    background:linear-gradient(135deg,#22d3ee,#0ea5e9);
    border:none;
    color:#000;
    padding:6px 12px;
    border-radius:8px;
    font-weight:600;
    cursor:pointer;
    margin-left:6px;
}
.btn-topup:hover{
    opacity:.85;
}
.category-top{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin:20px 0;
}
.category-actions{
    display:flex;
    gap:10px;
}
.btn.back{background:#222}
.btn.history{background:#0a7}
.group-title{
    font-size:28px;
    font-weight:800;
    margin:25px 0 10px;
}

.category-actions{
    margin-bottom:15px;
}

.btn-history{
    display:inline-block;
    padding:8px 16px;
    background:linear-gradient(135deg,#00fff0,#0077ff);
    color:#000;
    font-weight:600;
    border-radius:8px;
    text-decoration:none;
}
.category-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin:25px 0 15px;
}

.group-title{
    font-size:28px;
    font-weight:800;
    margin:0;
}

.btn-history{
    padding:10px 18px;
    background:linear-gradient(135deg,#00fff0,#0077ff);
    color:#000;
    font-weight:700;
    border-radius:10px;
    text-decoration:none;
    box-shadow:0 0 15px rgba(0,255,255,.4);
    transition:.2s;
}

.btn-history:hover{
    transform:translateY(-2px);
    box-shadow:0 0 25px rgba(0,255,255,.7);
}
.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.category-actions {
    display: flex;
    gap: 12px;
}

.btn-home,
.btn-history {
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg,#00eaff,#0066ff);
    box-shadow: 0 0 15px rgba(0,234,255,.4);
    transition: .2s;
}

.btn-home:hover,
.btn-history:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0,234,255,.7);
}
/* ================= MOBILE FIX ================= */
@media (max-width: 768px) {

  /* HEADER */
  .top-header {
    padding: 10px 12px;
  }

  .logo {
    font-size: 16px;
    font-weight: 700;
  }

  .nav a {
    display: none; /* Ẩn menu desktop */
  }

  .user-box {
    gap: 6px;
  }

  .user-name,
  .user-balance {
    display: none; /* Ẩn chữ cho gọn */
  }

  .btn-topup {
    padding: 6px 10px;
    font-size: 13px;
  }

  .btn-logout {
    padding: 6px 10px;
    font-size: 13px;
  }

  /* HERO */
  .hero h1 {
    font-size: 20px;
    text-align: center;
  }

  .hero p {
    font-size: 13px;
    line-height: 1.5;
  }

  .hero img {
    max-width: 160px;
    margin: 0 auto;
    display: block;
  }

  /* CARD */
  .card {
    margin: 10px;
    padding: 12px;
  }
}
/* ================= MOBILE MENU ================= */
.mobile-menu-btn {
    display: none;
    font-size: 26px;
    cursor: pointer;
}

/* MENU DROPDOWN */
.mobile-menu {
    display: none;
    position: absolute;
    top: 60px;
    right: 10px;
    background: #0b0f1a;
    border-radius: 10px;
    padding: 10px;
    width: 180px;
    z-index: 9999;
}

.mobile-menu a {
    display: block;
    padding: 10px;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
}

.mobile-menu a:hover {
    background: #1e90ff;
}

.mobile-menu.show {
    display: block;
}

/* MOBILE ONLY */
@media (max-width: 768px) {

  .nav a {
    display: none;
  }

  .user-name,
  .user-balance {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }
}

/* ===== MOBILE HEADER CLEAN ===== */
@media (max-width: 768px) {

  /* Ẩn toàn bộ action bên phải */
  .header-right {
    display: none;
  }

  /* Hiện nút 3 gạch */
  .mobile-menu-btn {
    display: block;
  }

}
/* ================= FOOTER ================= */
.site-footer{
    background: linear-gradient(135deg,#0f172a,#020617);
    color:#cbd5f5;
    margin-top:60px;
    border-top:2px solid #38bdf8;
}

.footer-container{
    max-width:1200px;
    margin:auto;
    padding:40px 20px;
    display:grid;
    grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
    gap:30px;
}

.footer-col h3,
.footer-col h4{
    color:#38bdf8;
    margin-bottom:10px;
}

.footer-col p{
    font-size:14px;
    line-height:1.6;
}

.footer-bottom{
    text-align:center;
    padding:15px;
    background:#020617;
    font-size:13px;
    color:#94a3b8;
}

/* MOBILE */
@media(max-width:600px){
    .footer-container{
        text-align:center;
    }
}
.modal{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.6);
    display:none;
    justify-content:center;
    align-items:center;
    z-index:9999;
}
.modal-box{
    background:#020617;
    padding:30px;
    width:360px;
    border-radius:16px;
    text-align:center;
    box-shadow:0 0 40px rgba(0,0,0,.7);
    animation:pop .25s ease;
}
@keyframes pop{
    from{transform:scale(.8);opacity:0}
    to{transform:scale(1);opacity:1}
}
.modal-box .icon{
    font-size:42px;
    margin-bottom:10px;
}
.modal-box h2{
    color:#22c55e;
}
.modal-box p{
    color:#cbd5f5;
    margin:10px 0 20px;
}
.modal-box .btn{
    width:100%;
    padding:12px;
    border:none;
    border-radius:10px;
    margin-top:10px;
    font-weight:bold;
    cursor:pointer;
}
.go-download{
    background:#22c55e;
}
.close{
    background:#334155;
    color:#fff;
}
.product-image {
    width: 100%;
    height: 180px;              /* chiều cao cố định */
    overflow: hidden;
    border-radius: 12px;
    background: #0b1220;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;          /* CHỐT VẤN ĐỀ */
    display: block;
}
.product-card {
    overflow: hidden;
}
/* ===== FIX VỠ ẢNH SHOP ===== */

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.product-card {
    background: #020617;
    border-radius: 16px;
    overflow: hidden;           /* CHỐT */
    display: flex;
    flex-direction: column;
}

.product-image {
    width: 100%;
    height: 180px;              /* KHÓA CHIỀU CAO */
    overflow: hidden;
    background: #000;
}

.product-image img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    display: block;
}
.menu-btn{
    font-size:22px;
    cursor:pointer;
    color:#00f7ff;
    z-index:10000;
    position:relative;
}

.slide-menu{
    position: fixed;
    top: 64px;
    left: -260px;
    width: 260px;
    height: calc(100vh - 64px);
    background:#0a1220;
    padding:15px;
    transition:.3s;
    z-index:9998;
}
/* ================= HEADER ================= */
.top-header{
    position:fixed;
    top:0; left:0; right:0;
    height:64px;
    background:linear-gradient(90deg,#050b16,#0b1d3a);
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:0 16px;
    z-index:1000;
}

.header-left{
    display:flex;
    align-items:center;
    gap:14px;
}

.menu-btn{
    font-size:22px;
    background:none;
    border:none;
    color:#00eaff;
    cursor:pointer;
    z-index:1100;
}

.logo{
    font-weight:800;
    font-size:20px;
    color:#00eaff;
}

.nav-link{
    color:#fff;
    text-decoration:none;
    opacity:.85;
}
.nav-link:hover{opacity:1}

.header-right{
    display:flex;
    align-items:center;
}

.user-inline{
    display:flex;
    align-items:center;
    gap:10px;
}

.user-name{font-weight:600}
.user-balance{color:#ffd35a}

.logout-icon{
    color:#ff5a5a;
    text-decoration:none;
    font-size:18px;
}

/* AUTH */
.auth-box a{
    margin-left:10px;
    padding:6px 14px;
    border-radius:20px;
    text-decoration:none;
    font-weight:600;
}

.btn-login{
    border:1px solid #00eaff;
    color:#00eaff;
}

.btn-register{
    background:#00eaff;
    color:#000;
}

/* ================= SLIDE MENU ================= */
#menuOverlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.6);
    display:none;
    z-index:999;
}
#menuOverlay.show{display:block}

.slide-menu{
    position:fixed;
    top:0; left:-280px;
    width:280px;
    height:100%;
    background:#08142c;
    padding:20px;
    transition:.3s;
    z-index:1001;
}
.slide-menu.show{left:0}

.menu-close{
    font-size:26px;
    cursor:pointer;
    text-align:right;
}

.menu-user{
    margin:20px 0;
    border-bottom:1px solid #1e2d55;
    padding-bottom:10px;
}

.slide-menu a{
    display:block;
    padding:10px 0;
    color:#fff;
    text-decoration:none;
}
.slide-menu a:hover{color:#00eaff}

.slide-menu .logout{color:#ff5a5a}

/* ĐẨY BODY XUỐNG KHỎI HEADER */
body{
    padding-top:64px;
}
/* ===== ICON KHI CHƯA ĐĂNG NHẬP ===== */
.guest-icons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.guest-icons a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    color: #38bdf8;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.guest-icons a:hover {
    background: #38bdf8;
    color: #000;
    box-shadow: 0 0 10px rgba(56,189,248,0.6);
    transform: scale(1.08);
}
/* ===== HEADER RIGHT ===== */
.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ===== USER LOGIN ===== */
.user-inline {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-name {
    font-weight: 600;
    font-size: 14px;
    color: #e5e7eb;
}

.user-balance {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    background: linear-gradient(135deg, #22d3ee, #38bdf8);
    color: #020617;
    box-shadow: 0 0 12px rgba(56,189,248,.4);
}

.logout-icon {
    font-size: 16px;
    color: #f87171;
    text-decoration: none;
}

.logout-icon:hover {
    color: #ef4444;
}

/* ===== GUEST ICONS ===== */
.guest-icons {
    display: flex;
    gap: 10px;
}

.guest-icons a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #020617;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    text-decoration: none;
    color: #38bdf8;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
    transition: .25s;
}

.guest-icons a:hover {
    background: #0f172a;
    transform: translateY(-2px);
}
/* ===== SERVICE ORDER ===== */
.order-card{
    max-width:700px;
    margin:40px auto;
    padding:30px;
    border-radius:16px;
}

.order-card h2,
.order-card .title{
    text-align:center;
    margin-bottom:10px;
}

.service-package{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:12px 15px;
    border:1px solid #2d3748;
    border-radius:12px;
    margin-bottom:10px;
    cursor:pointer;
}

.service-package:hover{
    border-color:var(--primary);
}

.service-price{
    color:var(--primary);
    font-weight:bold;
}

.order-card textarea,
.order-card input{
    width:100%;
}

.order-card button{
    width:100%;
    margin-top:10px;
}
/* ===== HEADER ===== */
.top-header{
    position:fixed;
    top:0; left:0; right:0;
    height:64px;
    background:linear-gradient(90deg,#050b1e,#071a2f);
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 18px;
    z-index:9999;
}

.header-left{
    display:flex;
    align-items:center;
    gap:14px;
}

.menu-btn{
    background:none;
    border:none;
    font-size:22px;
    color:#fff;
    cursor:pointer;
}

.logo{
    font-weight:800;
    color:#00f0ff;
    font-size:18px;
}

.nav-link{
    color:#fff;
    text-decoration:none;
    opacity:.9;
}

/* ===== RIGHT USER ===== */
.header-right{
    display:flex;
    align-items:center;
}

.user-inline{
    display:flex;
    align-items:center;
    gap:10px;
    background:#0b2a40;
    padding:6px 12px;
    border-radius:999px;
}

.user-name{
    color:#fff;
    font-weight:600;
}

.user-balance{
    background:#22c55e;
    color:#000;
    padding:4px 10px;
    border-radius:999px;
    font-weight:700;
}

.logout-icon img{
    width:20px;
    height:20px;
    filter:invert(1);
    transition:.2s;
}

.logout-icon img:hover{
    transform:scale(1.15);
    opacity:.8;
}

/* ===== GUEST ===== */
.guest-icons a{
    font-size:20px;
    margin-left:10px;
    text-decoration:none;
}

/* ===== SLIDE MENU ===== */
#menuOverlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.6);
    display:none;
    z-index:9998;
}

#menuOverlay.show{
    display:block;
}

.slide-menu{
    position:fixed;
    top:0;
    left:-280px;
    width:260px;
    height:100%;
    background:#020617;
    padding:20px;
    transition:.3s;
    z-index:9999;
}

.slide-menu.show{
    left:0;
}

.menu-close{
    font-size:26px;
    color:#fff;
    text-align:right;
    cursor:pointer;
}

.menu-user{
    margin:15px 0;
    padding:12px;
    background:#0b2a40;
    border-radius:12px;
    color:#fff;
}

.slide-menu a{
    display:block;
    color:#fff;
    text-decoration:none;
    padding:10px 0;
}

.slide-menu a.logout{
    color:#f87171;
}

/* ===== MOBILE FIX ===== */
@media(max-width:768px){
    .nav-link{display:none}
    .logo{font-size:16px}
    .user-name{display:inline}
    .user-balance{display:inline}
}
@media(max-width:768px){
    .logo{
        font-size:15px;
    }

    .nav-link{
        display:inline-flex;
        font-size:14px;
        gap:4px;
    }

    .user-inline{
        padding:5px 10px;
        gap:6px;
    }

    .user-name{
        font-size:13px;
    }

    .user-balance{
        font-size:12px;
        padding:3px 8px;
    }

    .logout-icon img{
        width:18px;
        height:18px;
    }
}
.logout-icon{
    display:flex;
    align-items:center;
}

.logout-icon img{
    width:22px;
    height:22px;
    opacity:0.9;
    transition:0.2s;
}

.logout-icon:hover img{
    opacity:1;
    transform:scale(1.1);
}

/* MOBILE */
@media(max-width:768px){
    .logout-icon img{
        width:18px;
        height:18px;
    }
}
.login-popup{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.7);
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:99999;
}
.login-box{
    background:#020617;
    padding:28px 32px;
    width:90%;
    max-width:360px;
    border-radius:18px;
    text-align:center;
    box-shadow:0 0 40px rgba(56,189,248,.45);
    animation:zoomIn .25s ease;
}
@keyframes zoomIn{
    from{transform:scale(.85);opacity:0}
    to{transform:scale(1);opacity:1}
}
.login-icon{
    font-size:42px;
    margin-bottom:10px;
}
.login-box h3{
    color:#38bdf8;
    margin-bottom:6px;
}
.login-box p{
    color:#cbd5e1;
    font-size:15px;
}
.login-count{
    margin-top:12px;
    font-size:14px;
    color:#facc15;
}
.sale-ribbon{
    position:absolute;
    top:12px;
    right:-40px;
    width:140px;
    text-align:center;
    background:linear-gradient(135deg,#ff3c3c,#ff9800);
    color:#fff;
    font-weight:700;
    font-size:14px;
    transform:rotate(45deg);
    box-shadow:0 3px 10px rgba(0,0,0,.4);
    z-index:9;
}
.sale-ribbon span{
    display:block;
    padding:6px 0;
}
.product-card{ position:relative; overflow:hidden; }
#botIcon{
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
    cursor: pointer;
    z-index: 99999;
}
#botIcon img{
    width:100%;
    height:100%;
}

#chatbot{
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 320px;
    background: #111;
    border-radius: 12px;
    display: none;
    flex-direction: column;
    z-index: 99999;
    box-shadow: 0 0 20px rgba(0,0,0,.5);
}

.chat-header{
    display:flex;
    align-items:center;
    padding:10px;
    background:#6c2bd9;
    color:#fff;
    border-radius:12px 12px 0 0;
}
.chat-header img{
    width:24px;
    margin-right:8px;
}
.chat-header button{
    margin-left:auto;
    background:none;
    border:none;
    color:#fff;
    font-size:20px;
    cursor:pointer;
}

.chat-body{
    padding:10px;
    height:220px;
    overflow-y:auto;
    color:#fff;
}

.bot-msg{
    background:#333;
    padding:6px 10px;
    border-radius:8px;
    margin-bottom:6px;
    width: fit-content;
}

.user-msg{
    background:#6c2bd9;
    padding:6px 10px;
    border-radius:8px;
    margin-bottom:6px;
    margin-left:auto;
    width: fit-content;
}

.chat-input{
    display:flex;
    border-top:1px solid #333;
}
.chat-input input{
    flex:1;
    padding:8px;
    border:none;
    outline:none;
}
.chat-input button{
    background:#6c2bd9;
    color:#fff;
    border:none;
    padding:8px 12px;
    cursor:pointer;
}
#zaloIcon{
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 55px;
    height: 55px;
    z-index: 99999;
}
#zaloIcon img{
    width:100%;
    height:100%;
}
#botIcon{
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
    cursor:pointer;
    z-index: 99999;
}

#chatbot{
    position: fixed;
    bottom: 90px;
    right: 90px;
    width: 320px;
    background:#111;
    color:#fff;
    display:none;
    flex-direction:column;
    border-radius:10px;
    z-index:99999;
}

.chat-header{
    background:#6c2bd9;
    padding:10px;
    font-weight:bold;
    display:flex;
    justify-content:space-between;
}

.chat-body{
    height:220px;
    padding:10px;
    overflow-y:auto;
}

.bot-msg{
    background:#333;
    padding:6px 10px;
    border-radius:6px;
    margin-bottom:6px;
}

.user-msg{
    background:#6c2bd9;
    padding:6px 10px;
    border-radius:6px;
    margin-bottom:6px;
    text-align:right;
}

.chat-input{
    display:flex;
}
.chat-input input{
    flex:1;
    padding:8px;
}
.chat-input button{
    background:#6c2bd9;
    color:#fff;
    border:none;
    padding:8px 12px;
}
/* ICON CHUNG */
#zaloIcon,
#botIcon{
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,.35);
    background:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    transition: transform .2s ease, box-shadow .2s ease;
}

/* ẢNH TRONG ICON */
#zaloIcon img,
#botIcon img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* HOVER HIỆU ỨNG */
#zaloIcon:hover,
#botIcon:hover{
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(108,43,217,.6);
}

/* SIZE RIÊNG */
#zaloIcon{
    width: 56px;
    height: 56px;
}

#botIcon{
    width: 56px;
    height: 56px;
}
.product-card{
 position:relative;
 background:rgba(12,18,30,.95);
 border-radius:18px;
 padding:14px;
 box-shadow:
  0 0 0 1px rgba(0,255,255,.15),
  0 12px 30px rgba(0,0,0,.75);
 transition:.3s ease;
 overflow:hidden;
}
.product-card:hover{
 transform:translateY(-6px) scale(1.025);
 box-shadow:
  0 0 0 1px rgba(0,255,255,.35),
  0 20px 45px rgba(0,0,0,.9),
  0 0 25px rgba(0,255,255,.25);
}
.product-card img{
 width:100%;
 display:block;
 margin:10px 0;
 border-radius:14px;
 background:#000;
 box-shadow:
  0 8px 18px rgba(0,0,0,.6),
  0 0 0 1px rgba(255,255,255,.06);
 transition:.3s ease;
}
.product-card:hover img{
 transform:scale(1.04);
 box-shadow:
  0 12px 25px rgba(0,0,0,.8),
  0 0 0 1px rgba(0,255,255,.25);
}
.product-card img{
 filter:contrast(1.08) saturate(1.15);
}
/* ===== BUY MODAL ===== */
.buy-modal{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.6);
    display:none;
    align-items:center;
    justify-content:center;
    z-index:9999;
}

.buy-box{
    background:#020617;
    border-radius:22px;
    padding:30px;
    width:90%;
    max-width:420px;
    text-align:center;
    box-shadow:0 20px 50px rgba(0,0,0,.6);
    animation:zoom .25s ease;
}

.buy-box h3{
    margin:12px 0 6px;
    font-size:22px;
}

.buy-box p{
    color:#94a3b8;
    font-size:15px;
}

#buyIcon{
    font-size:42px;
}

.buy-box .btn{
    margin-top:16px;
    width:100%;
}

.buy-box .close{
    background:#020617;
    border:1px solid #1e293b;
    color:#94a3b8;
}

@keyframes zoom{
    from{transform:scale(.8);opacity:0}
    to{transform:scale(1);opacity:1}
}
.alert{
    padding:14px 18px;
    margin:20px 0;
    border-radius:10px;
    font-weight:600;
}
.alert.success{
    background:#002a14;
    color:#7dffb3;
    border:1px solid #0f5;
}
.alert.error{
    background:#2a0000;
    color:#ff8a8a;
    border:1px solid #f55;
}
.acc-game-card img{
    width:100%;
    height:180px;
    object-fit:cover;
    border-radius:10px;
}
.sold-label{
    margin-top:8px;
    color:#7dffb3;
    font-weight:600;
}
/* ===== ACC DETAIL ===== */
.acc-detail {
    max-width: 1000px;
    margin: auto;
}

.acc-detail-box {
    display: flex;
    gap: 30px;
    padding: 25px;
    border-radius: 14px;
    background: #0f172a;
}

.acc-left {
    width: 40%;
}

.acc-image {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid rgba(255,255,255,0.1);
}

.no-image {
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #020617;
    border-radius: 12px;
    color: #666;
}

.acc-right {
    width: 60%;
    display: flex;
    flex-direction: column;
}

.acc-title {
    font-size: 24px;
    margin-bottom: 10px;
}

.acc-price {
    font-size: 22px;
    font-weight: bold;
    color: #22c55e;
    margin-bottom: 15px;
}

.acc-info {
    background: rgba(255,255,255,0.04);
    padding: 15px;
    border-radius: 10px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.acc-owned {
    padding: 12px;
    background: #16a34a;
    border-radius: 10px;
    color: #fff;
    text-align: center;
    font-weight: bold;
}

.btn.big {
    font-size: 18px;
    padding: 14px;
}

/* ===== MOBILE ===== */
@media(max-width:768px){
    .acc-detail-box{
        flex-direction: column;
    }
    .acc-left,.acc-right{
        width:100%;
    }
}
.acc-detail-box{
    display:flex;
    gap:20px;
    padding:20px;
    align-items:flex-start;
}

.acc-left{
    width:300px;
}

.acc-image{
    width:100%;
    max-height:220px;
    object-fit:cover;
    border-radius:12px;
}

.no-image{
    height:200px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#020617;
    border-radius:12px;
    color:#64748b;
}

.acc-info{
    background:#020617;
    padding:12px;
    border-radius:10px;
    margin-top:10px;
    line-height:1.6;
}

.acc-warning{
    margin-top:10px;
    padding:10px;
    background:#020617;
    border:1px dashed #facc15;
    color:#facc15;
    border-radius:8px;
    font-size:14px;
}

.acc-owned{
    margin-top:12px;
    color:#22c55e;
    font-weight:600;
}
.acc-info.preview{
    pointer-events:none;
}
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 30px 0;
}

.page-btn {
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 10px;
    background: #111;
    color: #fff;
    font-weight: 600;
    text-align: center;
    line-height: 38px;
    text-decoration: none;
    border: 1px solid #333;
    transition: all 0.2s ease;
}

.page-btn:hover {
    background: #00ffd5;
    color: #000;
    transform: translateY(-2px);
}

.page-btn.active {
    background: linear-gradient(135deg, #00ffd5, #00aaff);
    color: #000;
    border: none;
    pointer-events: none;
    box-shadow: 0 0 10px rgba(0,255,213,0.6);
}
.toast{
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    padding: 14px 20px;
    border-radius: 10px;
    font-weight: 600;
    animation: slideIn .4s ease, fadeOut .4s ease 3s forwards;
}

.toast.success{
    background: linear-gradient(135deg,#00c853,#64dd17);
    color:#fff;
}

.toast.error{
    background: linear-gradient(135deg,#ff5252,#ff1744);
    color:#fff;
}

@keyframes slideIn{
    from{opacity:0;transform:translateX(50px);}
    to{opacity:1;transform:translateX(0);}
}
@keyframes fadeOut{
    to{opacity:0;}
}
.admin-btn{
    display: block;
    margin: 10px;
    padding: 10px;
    background: linear-gradient(135deg,#ff9800,#ff5722);
    color: #fff;
    text-align: center;
    border-radius: 8px;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(255,87,34,.6);
}
.admin-btn:hover{
    opacity: .9;
}
/* ===== ACC GAME CHA ===== */
.acc-category-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:26px;
    margin-top:30px;
}

.acc-category-card{
    background:linear-gradient(180deg,#020617,#020617cc);
    border:1px solid #1e293b;
    border-radius:22px;
    padding:26px;
    box-shadow:0 20px 60px rgba(0,0,0,.55);
    transition:.25s;
    position:relative;
    overflow:hidden;
}

.acc-category-card::after{
    content:"";
    position:absolute;
    inset:0;
    background:radial-gradient(circle at top,#22d3ee22,transparent 60%);
    pointer-events:none;
}

.acc-category-card:hover{
    transform:translateY(-6px);
    box-shadow:0 30px 90px rgba(34,211,238,.25);
    border-color:#22d3ee;
}

.acc-header{
    font-size:20px;
    font-weight:800;
    margin-bottom:18px;
    color:#22d3ee;
    text-align:center;
}

/* ===== STATS ===== */
.acc-stats{
    display:flex;
    justify-content:space-between;
    gap:14px;
    margin-bottom:20px;
}

.stat{
    flex:1;
    background:#020617;
    border:1px solid #1e293b;
    border-radius:16px;
    padding:14px;
    text-align:center;
}

.stat span{
    display:block;
    font-size:22px;
    font-weight:800;
}

.stat small{
    color:#94a3b8;
    font-size:13px;
}

.stat.total span{color:#38bdf8}
.stat.sold span{color:#22c55e}

/* ===== BUTTON ===== */
.acc-btn{
    display:block;
    text-align:center;
    padding:14px;
    border-radius:16px;
    background:linear-gradient(135deg,#22d3ee,#2563eb);
    color:#020617;
    font-weight:900;
    text-decoration:none;
    transition:.2s;
}

.acc-btn:hover{
    filter:brightness(1.1);
}
.pagination{
    display:flex;
    gap:10px;
    justify-content:center;
    margin:30px 0;
}

.page-btn{
    padding:8px 14px;
    border-radius:8px;
    background:#0f172a;
    color:#fff;
    text-decoration:none;
    border:1px solid #00f0ff55;
}

.page-btn.active,
.page-btn:hover{
    background:#00f0ff;
    color:#000;
    font-weight:bold;
}
.loading{
    text-align:center;
    padding:40px;
    font-size:18px;
    color:#00f2ff;
}
.source-filter {
    display: flex;
    gap: 15px;
    margin: 15px 0 25px;
}

.source-filter a {
    padding: 8px 18px;
    border-radius: 30px;
    background: #111;
    color: #aaa;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    border: 1px solid #222;
}

.source-filter a:hover {
    background: #00f2ff;
    color: #000;
}

.source-filter a.active {
    background: linear-gradient(90deg,#00f2ff,#00ff9d);
    color: #000;
    box-shadow: 0 0 10px #00f2ff;
}
.product-card img{
    width:100%;
    height:180px;
    object-fit:cover;
    border-radius:10px;
}

.product-card{
    display:flex;
    flex-direction:column;
    min-height:420px;
}

.price-box{
    margin-top:auto;
}
.product-card:hover{
transform:translateY(-5px);
box-shadow:0 0 20px #00f7ff;
}
.product-card{
    display:flex;
    flex-direction:column;
    gap:8px;
}
.product-grid{
    align-items:start;
}
.product-actions{
margin-top:10px;
}
.product-grid{
align-items:start !important;
}

.product-card{
height:auto !important;
min-height:unset !important;
}

.product-actions{
margin-top:10px !important;
}