/* === FONT & BIẾN MÀU (CYBER GREEN THEME) === */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@600;700;800;900&family=Rajdhani:wght@500;600;700&family=Roboto:wght@400;500;700&display=swap');

:root {
    --primary-green: #00ff66;
    --primary-red: #00ff66; /* Backward compatibility */
    --secondary-green: #10b981;
    --secondary-red: #16a34a; /* Backward compatibility */
    --accent-green: #39ff14;
    --dark-green: #052e16;
    --text-color: #ffffff;
    --text-light: #94a3b8;
    --border-color: #1a3c28;
    --shadow-hover: 0 10px 30px rgba(0, 255, 102, 0.35);
    --glow-green: 0 0 15px rgba(0, 255, 102, 0.5);
}

/* === THIẾT LẬP CHUNG === */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #030705;
    color: var(--text-color);
    margin: 0;
    overflow: hidden; /* Mặc định ẩn cuộn, các trang con sẽ tự ghi đè nếu cần */
}

/* === SỬA ĐỔI: Đã xóa max-width và margin auto === */
main { 
    padding: 30px; 
    position: relative; 
    z-index: 5;
    text-align: center;
}

.fadeIn { 
    animation: fadeIn 0.6s ease-in-out; 
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === HEADER CHUNG === */
.header { 
    padding: 15px 5%; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    position: sticky; 
    top: 0; 
    z-index: 10;
    background-color: transparent; 
    border-bottom: 1px solid rgba(0, 255, 102, 0.2); 
}

/* === GRID CONTAINER CHUNG === */
.grid-container {
    display: grid;
    gap: 25px;
}

/* === NÚT CHUNG === */
.btn-primary { 
    width: 100%; 
    padding: 14px 20px; 
    border: none; 
    border-radius: 12px; 
    cursor: pointer; 
    font-weight: 900; 
    font-size: 1em; 
    text-transform: uppercase; 
    color: #ffffff; 
    text-shadow: 0 0 8px #00ff66, 0 0 16px rgba(0, 255, 102, 0.8);
    background: url('/assets/v2/button.png') no-repeat center center;
    background-size: 100% 100%;
    transition: all 0.3s ease-in-out; 
    box-shadow: 0 0 15px rgba(0, 255, 102, 0.4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 1px;
}
.btn-primary:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 0 25px rgba(0, 255, 102, 0.75); 
    filter: brightness(1.15);
    color: #ffffff;
    text-shadow: 0 0 12px #00ff66, 0 0 24px #00ff66;
}

/*
=========================================
=== MODAL CHUNG ===
=========================================
*/

.modal {
    display: none; /* Rất quan trọng: Mặc định ẩn modal */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #08120d;
    border: 1px solid rgba(0, 255, 102, 0.3);
    color: #fff;
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0 5px 25px rgba(0, 255, 102, 0.25);
    width: 90%;
    max-width: 500px;
    animation: fadeIn 0.3s; 
}

.close-btn {
    color: #889988;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    padding-bottom: 10px;
    transition: color 0.2s;
}

.close-btn:hover,
.close-btn:focus {
    color: var(--primary-green);
    text-decoration: none;
    cursor: pointer;
}