/* BẢNG MÀU LUXURY: Xanh Lục Bảo, Vàng Gold, Đen Xám */
:root {
    --bg-dark: #0b1411;
    --bg-card: #12221c;
    --emerald: #1b4d3e;
    --gold-light: #f3e5ab;
    --gold: #d4af37;
    --gold-dark: #aa7c11;
    --text-light: #f5f7f6;
    --danger: #ff4d4d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

/* --- HEADER & NAVIGATION --- */
header {
    background: linear-gradient(180deg, rgba(11,20,17,1) 0%, rgba(18,34,28,0.8) 100%);
    border-bottom: 1px solid var(--gold-dark);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.logo-container { display: flex; align-items: center; gap: 12px; }
.logo-box {
    background: linear-gradient(135deg, var(--emerald) 0%, #0b1411 100%);
    border: 2px solid var(--gold);
    width: 45px;
    height: 45px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 900;
    font-size: 22px;
    color: var(--gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}
.logo-text {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 2px;
    background: linear-gradient(to right, var(--gold-light), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav ul { display: flex; list-style: none; gap: 25px; }
nav ul li a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    padding: 5px 0;
    transition: 0.3s;
    text-transform: uppercase;
}
nav ul li a:hover, nav ul li a.active {
    color: var(--gold);
    border-bottom: 2px solid var(--gold);
}

.header-tools { display: flex; align-items: center; gap: 15px; }
.lang-switch select {
    background-color: rgba(27,77,62,0.3);
    color: var(--gold-light);
    border: 1px solid var(--gold-dark);
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 50%, var(--gold-light) 100%);
    color: #0b1411;
    border: none;
    padding: 12px 25px;
    font-size: 14px;
    font-weight: 900;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(212,175,55,0.4);
    transition: all 0.3s ease;
    letter-spacing: 1px;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(212,175,55,0.6); }

.btn-outline {
    border: 2px solid var(--gold);
    color: var(--gold);
    background: transparent;
    padding: 10px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}
.btn-outline:hover { background-color: var(--gold); color: var(--bg-dark); }

/* --- CẤU TRÚC CHUYỂN TRANG 1 TRANG (SPA) --- */
.page-section { display: none; padding: 40px 5%; min-height: 70vh; }
.page-section.active { display: block; animation: fadeIn 0.5s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* --- 1. HOME PAGE --- */
.hero-banner {
    text-align: center;
    padding: 100px 20px;
    border-radius: 16px;
    border: 1px solid rgba(214, 175, 55, 0.2);
    background: radial-gradient(circle at center, rgba(27,77,62,0.4) 0%, rgba(11,20,17,1) 70%);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    margin-bottom: 40px;
}
.hero-banner h1 {
    font-size: 48px;
    font-weight: 900;
    letter-spacing: 3px;
    background: linear-gradient(to right, #ffffff, var(--gold-light), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
}
.hero-banner h2 { font-size: 24px; color: var(--gold-light); margin-bottom: 25px; font-weight: 600; letter-spacing: 1px; }
.hero-banner p { color: #a0b0aa; margin-bottom: 40px; font-size: 16px; }

.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 900;
    color: var(--gold);
    margin-bottom: 40px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* --- 2. TRANG SẢN PHẨM --- */
.grid-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.product-card {
    background-color: var(--bg-card);
    border: 1px solid rgba(214, 175, 55, 0.15);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: all 0.4s ease;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}
.product-card:hover { transform: translateY(-10px); border-color: var(--gold); box-shadow: 0 15px 35px rgba(27,77,62,0.4); }
.product-img {
    width: 100%; height: 220px;
    background: linear-gradient(135deg, rgba(27,77,62,0.6) 0%, rgba(11,20,17,0.8) 100%);
    border-radius: 8px; border: 1px dashed rgba(214,175,55,0.3);
    display: flex; align-items: center; justify-content: center; margin-bottom: 15px; color: var(--gold-light); font-weight: 600;
}
.btn-group { display: flex; gap: 10px; margin-top: 20px; }

/* --- 3. TRANG MINI GAME --- */
.game-info {
    background-color: var(--bg-card); padding: 25px; border-radius: 12px; border: 1px solid var(--gold-dark);
    margin-bottom: 30px; display: flex; justify-content: space-between; box-shadow: inset 0 0 20px rgba(212,175,55,0.05);
}
.game-info p { margin-bottom: 8px; color: #a0b0aa; }
.game-info span, .game-info strong { color: var(--gold-light); font-weight: 700; }

.ticket-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-top: 25px; }
.ticket {
    background-color: var(--bg-card); border: 2px solid rgba(214, 175, 55, 0.3); border-radius: 12px;
    padding: 20px; text-align: center; transition: 0.3s; position: relative; overflow: hidden;
}
.ticket:hover:not(.sold) { border-color: var(--gold); box-shadow: 0 0 15px rgba(212,175,55,0.3); }
.ticket.sold { border-color: rgba(255, 77, 77, 0.4); opacity: 0.6; pointer-events: none; }
.ticket.sold::after {
    content: "ĐÃ BÁN HẾT"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-25deg);
    color: var(--danger); font-weight: 900; font-size: 18px; border: 3px solid var(--danger);
    padding: 8px 15px; background: rgba(11,20,17,0.9); border-radius: 8px; white-space: nowrap;
}
.ticket h4 { color: var(--gold); margin-bottom: 15px; font-weight: 900; letter-spacing: 1px;}
.ticket-numbers { display: flex; justify-content: center; gap: 8px; margin-bottom: 20px; }
.num-circle {
    width: 32px; height: 32px; background: linear-gradient(135deg, var(--emerald) 0%, #0b1411 100%);
    border: 1px solid var(--gold); color: var(--gold-light); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 900;
}
.ticket.sold .num-circle { background: #2a2a2a; border-color: #555; color: #888; }

/* --- 4. TRANG TIN TỨC --- */
.news-list { list-style: none; max-width: 900px; margin: 0 auto; }
.news-item {
    background-color: var(--bg-card); padding: 25px; border-left: 4px solid var(--gold);
    border-radius: 0 12px 12px 0; margin-bottom: 20px; box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}
.news-item h3 { color: var(--gold-light); margin-bottom: 8px; }

/* --- 5. TRANG KYC & PAYMENT --- */
.account-box {
    background-color: var(--bg-card); padding: 35px; border-radius: 16px;
    border: 1px solid rgba(214, 175, 55, 0.2); max-width: 800px; margin: 0 auto 40px auto;
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
}
.wallet-balances { display: flex; gap: 20px; margin-bottom: 30px; }
.wallet { flex: 1; background: rgba(11,20,17,0.8); padding: 20px; border-radius: 12px; text-align: center; border: 1px solid var(--emerald); }
.wallet h4 { color: #a0b0aa; font-size: 13px; margin-bottom: 10px; text-transform: uppercase; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; font-weight: 700; color: var(--gold-light); margin-bottom: 8px; text-transform: uppercase; }
.form-group input {
    width: 100%; background-color: rgba(11,20,17,0.8); border: 1px solid var(--emerald);
    color: #fff; padding: 14px; border-radius: 8px; font-size: 14px; transition: 0.3s;
}
.form-group input:focus { outline: none; border-color: var(--gold); }
.form-group input[readonly] { border-color: var(--gold-dark); color: var(--gold); font-weight: 700; }

/* --- FOOTER --- */
footer {
    background: linear-gradient(0deg, rgba(11,20,17,1) 0%, rgba(18,34,28,0.8) 100%);
    border-top: 1px solid var(--gold-dark); padding: 50px 5% 30px 5%; text-align: center;
}
.social-links { margin-bottom: 25px; display: flex; justify-content: center; gap: 20px; }
.social-links a { color: var(--gold-light); font-weight: 700; text-decoration: none; font-size: 14px; }
.social-links a:hover { color: var(--gold); }
.footer-info p { color: #a0b0aa; font-size: 13px; margin-bottom: 8px; }
/* --- TỐI ƯU HÓA MOBILE RESPONSIVE (DÁN VÀO CUỐI FILE) --- */
@media screen and (max-width: 768px) {
    /* 1. Reset để tránh tràn màn hình */
    body { overflow-x: hidden; }

    /* 2. Header: Thu gọn menu */
    header { padding: 15px 10px; flex-direction: column; gap: 10px; }
    nav ul { gap: 10px; font-size: 12px; }

    /* 3. Hero Banner: Giảm padding và font chữ */
    .hero-banner { padding: 40px 15px !important; }
    .hero-banner h1 { font-size: 28px !important; }

    /* 4. Sản phẩm: Hiển thị 1 cột */
    .grid-container { grid-template-columns: 1fr !important; gap: 15px !important; }

    /* 5. Minigame: 2 cột vé, các con số nhỏ hơn */
    .ticket-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
    .num-circle { width: 26px; height: 26px; font-size: 10px; }
    .ticket h4 { font-size: 14px; }

    /* 6. Tin tức: Chuyển sang dạng thẻ dọc gọn gàng */
    .result-card { 
        flex-direction: column !important; 
        text-align: center !important; 
        gap: 10px !important; 
        padding: 15px !important;
    }

    /* 7. KYC & Thông tin thanh toán: Input tràn ngang */
    .account-box { padding: 20px !important; }
    .wallet-balances { flex-direction: column; gap: 10px; }
    .form-group input { font-size: 13px; padding: 10px; }
}
