/* ====================================================
   --- BIẾN VÀ CÀI ĐẶT CHUNG --- 
   ==================================================== */
:root {
    --bg-color: #000000;
    --text-color: #ffffff;
    --text-muted: #888888;
    --accent-color: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    
    /* QUAN TRỌNG: Khóa cứng khung nền trình duyệt, chống scroll toàn trang */
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

/* ====================================================
   --- ĐIỀU HƯỚNG (HEADER) - FIX CỨNG TRÊN CÙNG --- 
   ==================================================== */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px); /* Nội dung cuộn bên dưới sẽ mờ đi tinh tế */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo, .nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: opacity 0.3s ease;
}

.nav-links a:hover {
    opacity: 0.7;
}

/* ====================================================
   --- PHẦN THÂN CHÍNH (MAIN) - NƠI DUY NHẤT ĐƯỢC SCROLL --- 
   ==================================================== */
main {
    height: 100vh;
    overflow-y: auto; /* Chỉ kích hoạt thanh cuộn dọc bên trong vùng nội dung */
    overflow-x: hidden;
    width: 100%;
    scrollbar-width: thin; /* Thu nhỏ thanh cuộn thanh thoát hơn trên các trình duyệt hiện đại */
}

/* ====================================================
   --- PHẦN HERO (TRANG CHỦ INDEX) --- 
   ==================================================== */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 130px;    /* Chừa khoảng trống rộng rãi để không bị Header che chữ */
    padding-bottom: 100px;  /* Chừa khoảng trống để không bị Footer che khuất */
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    text-align: center;
    min-height: 100vh;
}

.subtitle-top {
    font-size: 0.85rem;
    color: var(--text-color);
    background-color: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 0.5rem 1.2rem;
    margin-bottom: 2rem;
    font-weight: 500;
}

.logo-section {
    font-size: clamp(2.5rem, 6vw, 5rem); 
    font-weight: 800;
    display: flex;
    flex-wrap: wrap; 
    align-items: center;
    justify-content: center;
    gap: clamp(0.5rem, 2vw, 1.2rem);
    margin-bottom: 2.5rem;
    letter-spacing: -1.5px;
}

.slash {
    width: clamp(8px, 1.5vw, 14px);
    height: clamp(40px, 7vw, 70px);
    background-color: var(--accent-color);
    transform: skewX(-20deg);
    display: inline-block;
    border-radius: 2px;
}

/* ====================================================
   --- KHU VỰC BẢN ĐỒ VÀ RATING (TRANG CHỦ) --- 
   ==================================================== */
.map-bg-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background-image: url('map_bg.png'); 
    background-size: contain; 
    background-position: center;
    background-repeat: no-repeat;
    min-height: 380px;
}

.why-choose {
    font-size: 0.9rem;
    letter-spacing: 3px;
    color: var(--text-muted);
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-weight: 600;
}

.mission-statement {
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 2rem;
}

.stars {
    color: #FFD700;
    font-size: 1.5rem;
    letter-spacing: 6px;
    margin-bottom: 0.5rem;
}

.ratings-title {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 0.2rem;
}

.ratings-count {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* ====================================================
   --- TRANG NỘI DUNG VĂN BẢN (PRIVACY, TERMS) --- 
   ==================================================== */
.content-page {
    padding: 140px 5% 120px; /* Đảm bảo nội dung văn bản dài luôn nằm trong vùng an toàn giữa nav và footer */
    max-width: 1200px; 
    width: 100%;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 1.05rem;
    text-align: left;
}

.content-page h1 {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    margin-bottom: 0.8rem;
    color: var(--text-color);
    font-weight: 800;
}

.content-page h2 {
    font-size: clamp(1.5rem, 3vw, 1.8rem);
    margin: 3rem 0 1.2rem;
    color: var(--text-color);
    font-weight: 700;
}

.content-page h3 {
    font-size: 1.3rem;
    margin: 2rem 0 1rem;
    color: var(--text-color);
}

.content-page p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.content-page ul, 
.content-page ol {
    margin-bottom: 1.8rem;
    padding-left: 2rem;
    line-height: 1.8;
}

.content-page li {
    margin-bottom: 0.6rem;
}

.content-page em {
    display: inline-block;
    margin-bottom: 2.5rem;
    font-size: 0.95rem;
    color: #aaaaaa;
}

.content-page a {
    color: var(--text-color);
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.content-page a:hover {
    opacity: 0.7;
}

/* ====================================================
   --- CHÂN TRANG (FOOTER) - FIX CỨNG DƯỚI CÙNG --- 
   ==================================================== */
footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-top: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    
    /* Thiết lập ghim chặt cố định ở đáy */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--text-color);
}

/* ====================================================
   --- RESPONSIVE (MÀN HÌNH NHỎ & ĐIỆN THOẠI) --- 
   ==================================================== */
@media (max-width: 768px) {
    footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 1.2rem 5%;
    }
    
    /* Bù thêm khoảng cách padding ở chân trang di động do footer xếp dọc sẽ cao hơn */
    .hero {
        padding-top: 110px;
        padding-bottom: 140px; 
    }
    
    .content-page {
        padding: 120px 5% 140px;
    }
}

/* --- NÚT GOOGLE PLAY --- */
.play-store-btn {
    display: inline-block;
    margin-top: 10px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.play-store-btn:hover {
    transform: scale(1.05); /* Phóng to nhẹ khi di chuột */
    opacity: 0.9;
}

/* ====================================================
   --- PHẦN THÂN CHÍNH (MAIN) - CUSTOM SCROLLBAR --- 
   ==================================================== */
main {
    height: 100vh;
    overflow-y: auto; 
    overflow-x: hidden;
    width: 100%;
    
    /* FIREFOX: Ẩn thanh cuộn mặc định, chỉ hiện khi hover */
    scrollbar-width: thin;
    scrollbar-color: transparent transparent; 
    transition: scrollbar-color 0.3s ease;
}

main:hover {
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

/* CHROME, EDGE, SAFARI: Tùy chỉnh thanh cuộn */
main::-webkit-scrollbar {
    width: 6px; /* Độ mỏng của thanh cuộn */
}

main::-webkit-scrollbar-track {
    background: transparent; /* Ẩn rãnh cuộn */
}

main::-webkit-scrollbar-thumb {
    background: transparent; /* Ẩn cục cuộn theo mặc định */
    border-radius: 10px;
}

/* KHI DI CHUỘT VÀO TRANG: Hiện thanh cuộn mờ mờ */
main:hover::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2); 
}

/* KHI CHỈ CHUỘT TRỰC TIẾP LÊN THANH CUỘN: Sáng hơn chút nữa */
main::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5); 
}