/* === FONT & BIẾN MÀU === */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@700&family=Roboto:wght@400;700&display=swap');

:root {
    --primary-red: #d90429;
    --secondary-red: #a40606;
    --text-color: #1a1a1a;
    --text-light: #888;
    --border-color: #e0e0e0;
    --shadow-hover: 0 10px 30px rgba(217, 4, 41, 0.25);
}

/* === THIẾT LẬP CHUNG === */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #000;
    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(255, 255, 255, 0.2); 
}

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

/* === NÚT CHUNG === */
.btn-primary { 
    width: 100%; 
    padding: 14px; 
    border: none; 
    border-radius: 10px; 
    cursor: pointer; 
    font-weight: bold; 
    font-size: 1em; 
    text-transform: uppercase; 
    color: white; 
    background: linear-gradient(90deg, var(--secondary-red), var(--primary-red), var(--secondary-red)); 
    background-size: 200% 100%; 
    transition: all 0.4s ease-in-out; 
    animation: animated-gradient 4s linear infinite; 
}
@keyframes animated-gradient { 
    0% { background-position: 200% 0; } 
    100% { background-position: -200% 0; } 
}
.btn-primary:hover { 
    transform: translateY(-3px); 
    box-shadow: var(--shadow-hover); 
}
/*
=========================================
=== 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.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    width: 90%;
    max-width: 500px;
    /* Sử dụng animation đã có sẵn trong global.css */
    animation: fadeIn 0.3s; 
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1; /* Căn chỉnh nút đóng cho đẹp hơn */
    padding-bottom: 10px;
}

.close-btn:hover,
.close-btn:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}