/* /css/style.css */
:root {
    --primary-red: #ff0000;
    --dark-red:    #8b0000;
    --gold-1:      #ffb700;
    --gold-2:      #ffee00;
    --dark-bg:     #05070a;
    --glass:       rgba(15, 5, 5, 0.85);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Prompt', sans-serif;
    background: url('/images/back.jpg') center top / cover fixed no-repeat;
    background-color: var(--dark-bg);
    color: #fff;
    overflow-x: hidden;
    min-height: 100vh;
	padding-top: 80px !important;
}

/* ── LỚP PHỦ MÀU ĐỎ (OVERLAY) ── */
.hero-overlay {
    position: fixed;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 60% at 50% 0%,   rgba(255,0,0,0.2) 0%, transparent 70%),
        radial-gradient(ellipse 60% 40% at 80% 100%, rgba(255,183,0,0.1) 0%, transparent 60%),
        linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(5,0,10,0.9) 100%);
    z-index: 1;
    pointer-events: none;
}

/* ── HEADER ── */
header {
    position: fixed;
    top: 0; width: 100%;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 48px; height: 70px;
    background: rgba(5, 7, 10, 0.8);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255,0,0,0.2);
    z-index: 1000;
}

.logo {
    display: flex; align-items: center; gap: 10px;
    font-family: 'Orbitron', sans-serif; font-size: 18px; font-weight: 900;
    color: var(--gold-1);
    text-shadow: 0 0 10px var(--primary-red);
}

nav a {
    color: rgba(255,255,255,0.7);
    text-decoration: none; margin-right: 25px;
    font-size: 13px; font-weight: 600; text-transform: uppercase;
    transition: .3s;
}
nav a:hover { color: var(--gold-1); text-shadow: 0 0 8px var(--primary-red); }

.auth-btn {
    padding: 8px 22px; border-radius: 30px;
    text-decoration: none; color: #fff; font-weight: 700;
    background: linear-gradient(135deg, var(--dark-red), var(--primary-red));
    box-shadow: 0 0 15px rgba(255,0,0,0.4);
    transition: .3s;
}
/* Container bọc phần User để nằm ngang */
/* /css/style.css */

/* 1. Ép container luôn nằm ngang */
/* ÉP HIỂN THỊ NGANG VÀ ĐÚNG MÀU */
.auth-section {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 15px !important;
    min-width: fit-content !important;
}

/* Container con bắt buộc phải dùng Flex để các thành phần nằm ngang */
.auth-section div, 
.auth-section-flex {
    display: flex !important;
    flex-direction: row !important; /* Ép nằm ngang */
    align-items: center !important;
    gap: 12px !important;
    position: relative !important;
    z-index: 1001 !important;
    pointer-events: auto !important;
}

/* Tên User */
.user-nick {
    font-weight: 800 !important;
    color: #fff !important;
    font-family: 'Orbitron', sans-serif !important;
    font-size: 14px !important;
    white-space: nowrap !important;
}

/* Icon Gear */
.user-icon-btn {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 16px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px !important;
    border-radius: 50% !important;
    transition: all 0.3s ease !important;
    user-select: none !important;
    flex-shrink: 0 !important;
}

.user-icon-btn:hover {
    color: var(--primary-red) !important;
    background: rgba(255, 0, 0, 0.1) !important;
    text-shadow: 0 0 8px rgba(255, 0, 0, 0.5) !important;
    transform: scale(1.1) !important;
}

/* NÚT NGUỒN: ÉP MÀU ĐỎ RỰC */
.logout-btn, 
.auth-section a[href*="logout"] {
    color: #ff0000 !important; /* Mã màu đỏ thuần */
    font-size: 18px !important;
    display: flex !important;
    align-items: center !important;
    text-decoration: none !important;
    filter: drop-shadow(0 0 5px rgba(255, 0, 0, 0.5)) !important;
}

.logout-btn:hover {
    filter: brightness(1.5) !important;
    transform: scale(1.1);
}
/* ── HERO & BUTTONS ── */
.hero {
    position: relative; min-height: 100vh;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    text-align: center; z-index: 2; padding: 100px 20px;
}

.hero h1 {
    font-family: 'Orbitron', sans-serif; font-size: 85px; font-weight: 900; line-height: 1.1;
    background: linear-gradient(135deg, #fff, var(--gold-1), var(--primary-red), var(--gold-2), #fff);
    background-size: 200% auto;
    -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 0 20px rgba(255,0,0,0.7));
    animation: titleShimmer 5s linear infinite;
}

@keyframes titleShimmer { to { background-position: 200% center; } }

.btn-main {
    padding: 16px 40px; border-radius: 50px; text-decoration: none; font-weight: 800;
    text-transform: uppercase; letter-spacing: 1px; transition: .35s;
}

.btn-red {
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    color: #fff; box-shadow: 0 8px 20px rgba(255,0,0,0.4);
}

.btn-outline {
    background: rgba(255,255,255,0.05); border: 2px solid var(--primary-red);
    color: var(--primary-red);
}

.footer-text {
    position: absolute; bottom: 30px; width: 100%; text-align: center; 
    color: rgba(255,255,255,0.3); font-size: 11px; letter-spacing: 2px;
}

@media (max-width: 768px) {
    header {
        justify-content: center;
        padding: 10px 16px;
        height: auto;
    }

    .logo {
        width: 100%;
        justify-content: center;
        margin: 0 auto;
    }

    nav {
        order: 2;
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        padding: 0 10px;
    }

    nav a {
        margin: 0 6px;
        font-size: 12px;
    }

    .auth-section {
        order: 3;
        width: 100%;
        display: flex;
        justify-content: center;
        margin-top: 10px;
    }

    .auth-section-flex {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
}

/* Container chính cho phần Auth */
.auth-section-flex {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Style cho các viên thuốc (Pills) */
.user-pill, .gcoin-pill {
    background: rgba(18, 10, 5, 0.9);
    border: 1px solid #3d2109;
    padding: 5px 14px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-weight: 700;
    font-size: 13px;
    font-family: 'Orbitron', sans-serif; /* Dùng font game cho ngầu */
    box-shadow: inset 0 0 5px rgba(0,0,0,0.5);
    white-space: nowrap;
}

/* Màu icon riêng biệt */
.user-pill i { color: #ff6a00; } /* Cam */
.gcoin-pill i { color: #ffd700; } /* Xanh lá */

/* Các nút chức năng (Gear & Power) */
.user-icon-btn, .logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
}

.user-icon-btn { color: rgba(255,255,255,0.7); }
.user-icon-btn:hover { background: rgba(255,255,255,0.1); color: #fff; }

.logout-btn { color: #ff0000; }
.logout-btn:hover { transform: scale(1.1); filter: brightness(1.5); }