
:root {
    --hero-art: url('https://images.unsplash.com/photo-1518709268805-4e9042af9f23?q=80&w=1920&auto=format&fit=crop');
    --titan-darkest: #070a0f;
    --titan-base: #0f1520;
    --titan-panel: #141d2c;
    --titan-border: #2b3952;
    --titan-light: #485c7f;
    
    --gold-ancient: #c89b3c;
    --gold-bright: #f0c35e;
    --gold-glow: rgba(240, 195, 94, 0.35);

    --crimson-blood: #991b1b;
    --crimson-bright: #ef4444;
    --crimson-glow: rgba(239, 68, 68, 0.4);

    --mu-blue: #00d2ff;
    --mu-blue-glow: rgba(0, 210, 255, 0.3);

    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--titan-darkest);
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(153, 27, 27, 0.22) 0%, transparent 55%),
        radial-gradient(circle at 80% 80%, rgba(0, 210, 255, 0.05) 0%, transparent 40%),
        linear-gradient(rgba(7, 10, 15, 0.95), rgba(7, 10, 15, 0.98));
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    min-height: 100vh;
}

/* ================= HEADER ================= */
.header {
    background: linear-gradient(180deg, #182335 0%, #0d1421 100%);
    border-bottom: 2px solid var(--titan-border);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.8), 0 1px 0 rgba(240, 195, 94, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
}

.brand {

    font-size: 1.45rem;
    font-weight: 900;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
}

.brand span {
    color: var(--gold-bright);
    text-shadow: 0 0 15px var(--gold-glow);
}

.nav-links {
    display: flex;
    gap: 12px;
}

.nav-links a {
    font-family: 'Chakra Petch', sans-serif;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 4px;
    border: 1px solid transparent;
    transition: all 0.25s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--gold-bright);
    background: linear-gradient(180deg, rgba(200, 155, 60, 0.15), rgba(15, 21, 32, 0.6));
    border-color: var(--gold-ancient);
    box-shadow: 0 0 12px rgba(200, 155, 60, 0.2);
}

/* ================= CONTAINER & CARDS ================= */
.container {
    max-width: 980px;
    margin: 28px auto;
    padding: 0 16px;
}

/* Thanh số dư người chơi (Titan Gold Bar) */
.user-balance-bar {
    background: linear-gradient(90deg, #111a28 0%, #172438 50%, #111a28 100%);
    border: 1px solid var(--titan-border);
    border-top: 2px solid var(--gold-ancient);
    border-radius: 6px;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.user-balance-bar .account-name {
    
    font-weight: 800;
    color: #ffffff;
    font-size: 1.15rem;
    letter-spacing: 1px;
}

.user-balance-bar .dcoin-val {
 
    color: var(--gold-bright);
    font-weight: 700;
    font-size: 1.25rem;
    text-shadow: 0 0 10px var(--gold-glow);
}

/* Nút Nạp Dcoin trên thanh top */
.btn-nap-top {
    background: linear-gradient(180deg, #d97706 0%, #854d0e 100%);
    color: #ffffff;
    border: 1px solid var(--gold-bright);
    padding: 9px 20px;
    border-radius: 4px;

    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 0 14px rgba(217, 119, 6, 0.4);
    transition: all 0.2s;
}

.btn-nap-top:hover {
    background: linear-gradient(180deg, #f59e0b 0%, #a16207 100%);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.65);
    transform: translateY(-1px);
}

/* Khung Panel Titan */
.panel-card, .card-box {
    background: linear-gradient(180deg, rgba(20, 29, 44, 0.9) 0%, rgba(13, 19, 31, 0.95) 100%);
    border: 1px solid var(--titan-border);
    border-top: 2px solid var(--titan-light);
    border-radius: 6px;
    padding: 28px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    position: relative;
}

.panel-title, .card-title {

    font-size: 1.25rem;
    font-weight: 800;
    color: var(--gold-bright);
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(72, 92, 127, 0.35);
    padding-bottom: 12px;
    text-shadow: 0 0 10px rgba(240, 195, 94, 0.3);
}

/* ================= TABS ================= */
/* Tầng Tab 1: Menu Chính */
.main-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
    border-bottom: 2px solid var(--titan-border);
    padding-bottom: 12px;
    overflow-x: auto;
}

.main-tab-btn {
    background: linear-gradient(180deg, #1a2538 0%, #111a29 100%);
    color: var(--text-secondary);
    border: 1px solid var(--titan-border);
    padding: 11px 22px;
    border-radius: 4px;
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.main-tab-btn:hover {
    color: #ffffff;
    border-color: var(--titan-light);
    background: #202d45;
}

.main-tab-btn.active {
    background: linear-gradient(180deg, #b45309 0%, #78350f 100%);
    color: #ffffff;
    border: 1px solid var(--gold-bright);
    box-shadow: 0 0 16px rgba(180, 83, 9, 0.5);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* Tầng Tab 2: Menu Phụ */
.sub-tabs {
    display: flex;
    gap: 18px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--titan-border);
}

.sub-tab-btn {
    background: transparent;
    color: var(--text-muted);
    border: none;
    border-bottom: 3px solid transparent;
    padding: 10px 14px;
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sub-tab-btn:hover {
    color: var(--text-primary);
}

.sub-tab-btn.active {
    color: var(--gold-bright);
    border-bottom: 3px solid var(--gold-bright);
    text-shadow: 0 0 8px var(--gold-glow);
}

/* ================= AVATAR ================= */
.avatar-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(72, 92, 127, 0.3);
}

.avatar-circle {
    width: 72px;
    height: 72px;
    border-radius: 6px;
    background: linear-gradient(135deg, #1e2a3f, #0d1421);
    border: 2px solid var(--titan-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--gold-ancient);
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.8);
}

.avatar-btn {
    background: #192336;
    color: var(--text-primary);
    border: 1px solid var(--titan-light);
    padding: 8px 16px;
    border-radius: 4px;
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
}

.avatar-btn:hover {
    border-color: var(--gold-ancient);
    color: var(--gold-bright);
}

/* ================= FORMS & INPUTS ================= */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group.full-width {
    grid-column: span 2;
}

label {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

label span.req {
    color: var(--crimson-bright);
}

input[type="text"], input[type="password"], input[type="email"], select {
    background: #090e17;
    border: 1px solid var(--titan-border);
    color: #ffffff;
    padding: 11px 14px;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.2s;
}

input:focus, select:focus {
    border-color: var(--gold-bright);
    box-shadow: 0 0 12px rgba(240, 195, 94, 0.25);
    background: #0d1522;
}

.date-picker-group, .input-with-btn {
    display: flex;
    gap: 8px;
}

.date-picker-group select, .input-with-btn input {
    flex: 1;
}

/* ================= BUTTONS ================= */
.btn-save-yellow {
    background: linear-gradient(180deg, #d97706 0%, #92400e 100%);
    color: #ffffff;
    border: 1px solid var(--gold-bright);
    border-radius: 4px;
    padding: 14px 20px;
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    cursor: pointer;
    width: 100%;
    margin-top: 25px;
    letter-spacing: 1px;
    box-shadow: 0 4px 18px rgba(180, 83, 9, 0.4);
    transition: all 0.25s;
}

.btn-save-yellow:hover {
    background: linear-gradient(180deg, #f59e0b 0%, #b45309 100%);
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.7);
    transform: translateY(-1px);
}

.btn-outline {
    background: rgba(15, 21, 32, 0.8);
    color: var(--gold-bright);
    border: 1px solid var(--gold-ancient);
    padding: 7px 14px;
    border-radius: 4px;
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
}

.btn-outline:hover {
    background: rgba(200, 155, 60, 0.2);
    border-color: var(--gold-bright);
    box-shadow: 0 0 10px var(--gold-glow);
}

/* Các nút kiểu cơ bản */
.btn-row {
    margin-top: 25px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.btn {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(180deg, #991b1b 0%, #581010 100%);
    color: #ffffff;
    border: 1px solid #ef4444;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(180deg, #b91c1c 0%, #771212 100%);
    box-shadow: 0 0 22px rgba(239, 68, 68, 0.7);
}

/* ================= TABLES ================= */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.data-table, .info-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th, .data-table td,
.info-table th, .info-table td {
    padding: 12px 16px;
    border: 1px solid var(--titan-border);
    text-align: left;
}

.data-table th, .info-table th {
    background: linear-gradient(180deg, #182335 0%, #101826 100%);
    color: var(--gold-bright);
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.data-table td, .info-table td {
    background: #0a0f19;
    color: var(--text-primary);
}

.data-table tbody tr:hover td {
    background: #111a2a;
}

.status-badge {
    padding: 4px 9px;
    border-radius: 3px;
    font-size: 0.75rem;
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
}

.status-success {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid #22c55e;
}

.status-pending {
    background: rgba(234, 179, 8, 0.15);
    color: #facc15;
    border: 1px solid #eab308;
}

/* ================= ALERTS ================= */
.alert {
    padding: 13px 18px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-weight: 500;
    font-size: 0.95rem;
}

.alert-error {
    background: rgba(153, 27, 27, 0.3);
    border: 1px solid var(--crimson-bright);
    color: #fca5a5;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.2);
}

.alert-success {
    background: rgba(200, 155, 60, 0.2);
    border: 1px solid var(--gold-bright);
    color: #fef08a;
    box-shadow: 0 0 12px rgba(240, 195, 94, 0.2);
}

/* ================= MODAL NẠP DCOIN (TITAN DARK) ================= */
.modal-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(4, 7, 12, 0.88);
    backdrop-filter: blur(6px);
    justify-content: center;
    align-items: center;
    padding: 15px;
}

.nap-modal-content {
    background: linear-gradient(180deg, #162030 0%, #0d1421 100%);
    border: 1px solid var(--titan-light);
    border-top: 2px solid var(--gold-bright);
    border-radius: 8px;
    width: 100%;
    max-width: 530px;
    padding: 26px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 25px rgba(200, 155, 60, 0.15);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--titan-border);
    padding-bottom: 12px;
}

.modal-title {

    font-size: 1.3rem;
    font-weight: 800;
    color: var(--gold-bright);
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 1px;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.6rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #ffffff;
}

.nap-user-info-box {
    background: #080c14;
    border: 1px solid var(--titan-border);
    border-radius: 6px;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.nap-grid-packages {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.package-item {
    background: #090e17;
    border: 1px solid var(--titan-border);
    border-radius: 6px;
    padding: 12px 6px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.package-item:hover {
    border-color: var(--gold-bright);
    background: #111a29;
    transform: translateY(-2px);
}

.package-item.active {
    border: 2px solid var(--gold-bright);
    background: linear-gradient(180deg, rgba(200, 155, 60, 0.2) 0%, rgba(13, 20, 33, 0.9) 100%);
    box-shadow: 0 0 15px rgba(240, 195, 94, 0.3);
}

.package-vnd {
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: #ffffff;
    margin-bottom: 4px;
}

.package-dcoin {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.8rem;
    color: var(--gold-bright);
    font-weight: 600;
}

.nap-preview-box {
    background: #080c14;
    border: 1px solid var(--titan-border);
    border-radius: 6px;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.btn-pay-action {
    background: linear-gradient(180deg, #d97706 0%, #92400e 100%);
    color: #ffffff;
    border: 1px solid var(--gold-bright);
    border-radius: 4px;
    padding: 14px;
    width: 100%;
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.4);
    transition: all 0.2s;
}

.btn-pay-action:hover {
    background: linear-gradient(180deg, #f59e0b 0%, #b45309 100%);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.7);
}

.nap-footer-note {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 14px;
}

/* Responsive Mobile */
@media (max-width: 768px) {
    .nav-container { flex-direction: column; gap: 12px; }
    .form-grid { grid-template-columns: 1fr; }
    .form-group.full-width { grid-column: span 1; }
    .nap-grid-packages { grid-template-columns: repeat(2, 1fr); }
    .user-balance-bar { flex-direction: column; gap: 12px; text-align: center; }
}

/* ================= FIX TRÀN FORM REGISTER ================= */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    width: 100%;
}

.form-group {
    min-width: 0; /* Ngăn chặn flex/grid item làm bung chiều rộng container */
}

.input-with-btn {
    display: flex;
    gap: 6px;
    width: 100%;
}

.input-with-btn input {
    min-width: 0;
    flex: 1 1 auto;
}

.input-with-btn button {
    flex-shrink: 0;
    white-space: nowrap;
}

.date-picker-group {
    display: flex;
    gap: 6px;
    width: 100%;
}

.date-picker-group select {
    min-width: 0;
    flex: 1;
    padding-left: 6px;
    padding-right: 6px;
}

/* ================= FOOTER (CHUẨN THEO MẪU ẢNH) ================= */
.site-footer {
    background: #080c14;
    border-top: 1px solid var(--titan-border);
    margin-top: 50px;
    padding: 40px 20px 25px 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(43, 57, 82, 0.6);
}

.footer-col h4 {
    font-family: 'Chakra Petch', sans-serif;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.footer-info-list {
    list-style: none;
    line-height: 1.8;
}

.footer-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 6px;
    color: #cbd5e1;
}

.footer-links-list {
    list-style: none;
    line-height: 2;
}

.footer-links-list a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links-list a:hover {
    color: var(--gold-bright);
}

.footer-social-icons {
    display: flex;
    gap: 12px;
}

.social-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #162030;
    border: 1px solid var(--titan-light);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.2s;
}

.social-btn:hover {
    background: var(--gold-bright);
    color: #0b0f17;
    box-shadow: 0 0 10px var(--gold-glow);
}

.footer-bottom {
    max-width: 1100px;
    margin: 20px auto 0 auto;
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.footer-bottom-links {
    margin-top: 8px;
}

.footer-bottom-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin: 0 8px;
}

.footer-bottom-links a:hover {
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

/* ================= HERO BANNER & INTRO SECTION ================= */
.hero-banner {
    position: relative;
    width: 100%;
    /* Chiều cao phủ kín toàn bộ chiều cao màn hình trừ đi thanh menu header */
    min-height: calc(100vh - 65px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px 80px 20px;
    background: 
        radial-gradient(ellipse at 50% 40%, rgba(153, 27, 27, 0.48) 0%, rgba(10, 15, 25, 0.88) 75%, #070a0f 100%),
        linear-gradient(180deg, rgba(7, 10, 15, 0.3) 0%, #070a0f 100%),
        var(--hero-art) center center / cover no-repeat;
    border-bottom: 2px solid var(--titan-border);
    box-shadow: inset 0 -50px 80px #070a0f, 0 15px 40px rgba(0, 0, 0, 0.9);
    overflow: hidden;
}

/* Ánh lửa ma thuật & bụi than phía dưới */
.hero-banner::after {
    content: "";
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 120px;
    background: linear-gradient(to top, #070a0f, transparent);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 860px;
}

.hero-tagline {
    font-family: 'Chakra Petch', sans-serif;
    color: var(--gold-bright);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 12px;
    text-shadow: 0 0 12px var(--gold-glow);
}

.hero-title {
    font-family: 'Cinzel', serif;
    font-size: 3.2rem;
    font-weight: 900;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 4px;
    line-height: 1.15;
    margin-bottom: 14px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9), 0 0 30px rgba(239, 68, 68, 0.6);
}

.hero-title span {
    color: #ef4444;
    text-shadow: 0 0 25px rgba(239, 68, 68, 0.8);
}

.hero-desc {
    color: #cbd5e1;
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 680px;
    margin: 0 auto 30px auto;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
}

/* ================= BỘ 3 NÚT DOWNLOAD ĐA NỀN TẢNG ================= */
.download-group {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.btn-download {
    background: linear-gradient(180deg, #182335 0%, #0d1421 100%);
    border: 1px solid var(--titan-light);
    border-top: 2px solid var(--gold-ancient);
    border-radius: 8px;
    padding: 12px 22px;
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.25s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
    min-width: 210px;
    text-align: left;
}

.btn-download:hover {
    border-color: var(--gold-bright);
    background: linear-gradient(180deg, #22324d 0%, #131c2d 100%);
    box-shadow: 0 0 20px var(--gold-glow), 0 8px 25px rgba(0, 0, 0, 0.8);
    transform: translateY(-2px);
}

.btn-download.btn-windows {
    border-top-color: #00d2ff;
}
.btn-download.btn-windows:hover {
    border-color: #00d2ff;
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.4);
}

.btn-download.btn-google {
    border-top-color: #22c55e;
}
.btn-download.btn-google:hover {
    border-color: #22c55e;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
}

.btn-download.btn-apple {
    border-top-color: #f8fafc;
}
.btn-download.btn-apple:hover {
    border-color: #f8fafc;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.download-icon {
    font-size: 2rem;
    line-height: 1;
}

.download-text .sub-text {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-family: 'Chakra Petch', sans-serif;
    letter-spacing: 0.5px;
}

.download-text .main-text {
    font-size: 1.05rem;
    font-weight: 700;
    font-family: 'Chakra Petch', sans-serif;
    color: #ffffff;
    letter-spacing: 0.5px;
}

/* Badge thông tin phiên bản */
.hero-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: 'Chakra Petch', sans-serif;
}

.hero-meta span b {
    color: var(--gold-bright);
}

/* Responsive Banner Mobile */
@media (max-width: 768px) {
    .hero-banner {
        min-height: 400px;
        padding: 40px 15px;
    }
    .hero-title {
        font-size: 2.1rem;
        letter-spacing: 2px;
    }
    .download-group {
        flex-direction: column;
        align-items: stretch;
    }
    .btn-download {
        min-width: 100%;
        justify-content: center;
    }
}

/* ================= HIỆU ỨNG CHỮ HERO TITLE ================= */
.hero-title {
    position: relative;
    font-family: 'Cinzel', serif;
    font-size: 3.4rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 5px;
    line-height: 1.15;
    margin-bottom: 16px;
    display: inline-block;
    
    /* Màu nền kim loại Titan & Vàng cổ */
    background: linear-gradient(
        135deg, 
        #ffffff 0%, 
        #f0c35e 25%, 
        #ffffff 50%, 
        #c89b3c 75%, 
        #ffffff 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    
    /* Hiệu ứng quét sáng kim loại liên tục */
    animation: shineSweep 4s linear infinite, firePulse 2.5s ease-in-out infinite alternate;
}

.hero-title span {
    background: linear-gradient(
        135deg, 
        #ff7676 0%, 
        #ef4444 40%, 
        #ffb703 70%, 
        #dc2626 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: firePulseSpan 2.5s ease-in-out infinite alternate;
}

/* Ánh sáng quét kim loại */
@keyframes shineSweep {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* Nhịp thở hỏa ngục */
@keyframes firePulse {
    0% {
        filter: drop-shadow(0 0 10px rgba(240, 195, 94, 0.4)) drop-shadow(0 0 25px rgba(220, 38, 38, 0.5));
    }
    100% {
        filter: drop-shadow(0 0 20px rgba(240, 195, 94, 0.8)) drop-shadow(0 0 45px rgba(239, 68, 68, 0.9));
    }
}

@keyframes firePulseSpan {
    0% {
        filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.5));
    }
    100% {
        filter: drop-shadow(0 0 25px rgba(255, 56, 56, 0.9));
    }
}

/* ================= CANVAS TÀN LỬA BAY (EMBER PARTICLES) ================= */
#ember-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Nằm ngay trên nền banner và dưới các nút bấm */
    pointer-events: none; /* Không cản trở việc click chuột vào các nút */
}

/* Mobile responsive font chữ */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
        letter-spacing: 2px;
    }
}
.scroll-down-btn {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    color: var(--gold-bright);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
    animation: bounceScroll 2s infinite;
}

.scroll-down-btn:hover {
    color: #ffffff;
    text-shadow: 0 0 10px var(--gold-glow);
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid var(--gold-bright);
    border-bottom: 2px solid var(--gold-bright);
    transform: rotate(45deg);
    margin-top: -4px;
}

@keyframes bounceScroll {
    0%, 20%, 50%, 80%, 100% {
        transform: translate(-50%, 0);
    }
    40% {
        transform: translate(-50%, -10px);
    }
    60% {
        transform: translate(-50%, -5px);
    }
}

/* Tự động cuộn trang êm ái */
html {
    scroll-behavior: smooth;
}

/* ================= LOGO LƠ LỬNG GÓC TRÁI TRÊN (NÂNG CẤP KÍCH THƯỚC) ================= */
.floating-hero-logo {
    position: absolute;
    top: 25px;
    left: 65px; /* Đã dịch sang bên phải nhiều hơn (trước đây là 30px) */
    z-index: 15;
    display: inline-block;
    text-decoration: none;
    animation: floatingLogo 4.5s ease-in-out infinite;
    transition: transform 0.3s ease;
    pointer-events: auto;
}

.floating-hero-logo img {
    height: 200px; /* Tăng kích thước lớn gấp rưỡi (trước đây là 125px) */
    width: auto;
    max-width: 480px;
    display: block;
    object-fit: contain;
    /* Hiệu ứng hào quang ma thuật xanh lam kết hợp bóng nổi 3D */
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.9)) 
            drop-shadow(0 0 25px rgba(0, 210, 255, 0.6))
            drop-shadow(0 0 45px rgba(0, 119, 254, 0.35));
}

.floating-hero-logo:hover {
    transform: scale(1.04) translateY(-8px);
}

@keyframes floatingLogo {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

/* Tự động tối ưu trên máy tính bảng và điện thoại */
@media (max-width: 1024px) {
    .floating-hero-logo {
        top: 20px;
        left: 35px;
    }
    .floating-hero-logo img {
        height: 150px;
    }
}

@media (max-width: 768px) {
    .floating-hero-logo {
        top: 15px;
        left: 50%;
        transform: translateX(-50%); /* Trên điện thoại tự động căn giữa cho cân đối */
        animation: floatingLogoMobile 4s ease-in-out infinite;
    }
    .floating-hero-logo img {
        height: 110px;
    }
    @keyframes floatingLogoMobile {
        0%, 100% {
            transform: translate(-50%, 0);
        }
        50% {
            transform: translate(-50%, -8px);
        }
    }
}

/* ================= HUY HIỆU 18+ VÀ CẢNH BÁO SỨC KHỎE ================= */
.age-warning-badge {
    position: fixed;
    top: 75px;
    left: 15px;
    z-index: 999;
    background: rgba(13, 20, 32, 0.92);
    border: 2px solid #ff0000;
    border-radius: 6px;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 250px;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.35);
    pointer-events: none;
}
.age-warning-badge .age-circle {
    background: #000000;
    color: #fff;
    font-family: 'Chakra Petch', sans-serif;
    font-size: 2.4rem;
    font-weight: 900;
    line-height: 1;
    padding: 6px 8px;
    border-radius: 4px;
    white-space: nowrap;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}
.age-warning-badge .warning-text {
    font-size: 0.72rem;
    color: #ffffff;
    line-height: 1.3;
    font-weight: 600;
}
@media (max-width: 768px) {
    .age-warning-badge {
        top: auto;
        bottom: 12px;
        left: 12px;
        padding: 4px 8px;
        max-width: 210px;
    }
    .age-warning-badge .age-circle {
        font-size: 1.1rem;
        padding: 4px 6px;
    }
    .age-warning-badge .warning-text {
        font-size: 0.65rem;
    }
}
