:root {
    --bg-dark: #020205; 
    
    --primary: #7c3aed; 
    --primary-glow: rgba(124, 58, 237, 0.4); 
    
    
    --neon-cyan: #2dd4bf; 
    
    
    --neon-pink: #c026d3;
    
   
    --glass: rgba(10, 10, 15, 0.85);
    --glass-border: rgba(255, 255, 255, 0.08);
    
    --text-main: #e2e8f0; 
    --text-muted: #94a3b8;
    
   
    --font-heading: 'Exo 2', sans-serif; 
    --font-body: 'Be Vietnam Pro', sans-serif;
    --font-quote: 'Patrick Hand', cursive;
}

* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }


::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--neon-cyan); }

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
    font-size: 16px;
    
}


#anime-particles {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1; pointer-events: none;
}
/* Tìm và đảm bảo .bg-grid có các thuộc tính này */
/* ================= VIDEO BACKGROUND ================= */
.bg-video {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100vw; 
    height: 100vh;
    object-fit: cover; 
    z-index: -3; 
    transform: translateZ(0); 
}

.bg-overlay {
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100vw; 
    height: 100vh;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.9) 0%,     
        rgba(0, 0, 0, 0.3) 30%,     
        rgba(0, 0, 0, 0.3) 70%,     
        rgba(0, 0, 0, 0.9) 100%     
    );
    z-index: -2;
    pointer-events: none; 
}

/* ================= TYPOGRAPHY ================= */
h1, h2, h3 { 
    font-family: var(--font-heading); 
    text-transform: uppercase; 
    font-weight: 800;
}
.highlight { color: var(--neon-cyan); text-shadow: 0 0 15px rgba(6, 182, 212, 0.5); }
.section-padding { padding: 120px 0; position: relative; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }

.section-title {
    
    font-size: 2.5rem; 
    text-align: center; 
    position: relative;
    display: inline-block; 
    width: 100%; 
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-weight: 900; 
    background: linear-gradient(
        120deg, 
        #ffffff 20%,  
        #a855f7 40%,  
        #4c1d95 60%,  
        #2dd4bf 80%   
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    
    
    animation: shine-flow 6s linear infinite;
    
    
    filter: drop-shadow(0 0 10px rgba(124, 58, 237, 0.3));
}
.section-title::before {
    content: attr(data-shadow);
    position: absolute; top: -25px; left: 50%; transform: translateX(-50%);
    font-size: 4rem; color: rgba(255,255,255,0.03);
    z-index: -1; white-space: nowrap; font-weight: 900;
}
.divider-center {
    width: 80px; height: 4px; background: var(--primary);
    margin: 0 auto 60px; position: relative;
    box-shadow: 0 0 15px var(--primary);
}
.divider-center::before, .divider-center::after {
    content: ''; position: absolute; width: 6px; height: 6px; background: #fff; top: -1px;
}
.divider-center::before { left: 0; } .divider-center::after { right: 0; }


.glass-nav {
    position: fixed; top: 0; width: 100%; padding: 15px 40px;
    display: flex; justify-content: space-between; align-items: center;
    background: rgba(5, 5, 7, 0.7); backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    z-index: 1000;
}
.logo { font-size: 1.4rem; font-weight: 800; font-family: var(--font-heading); font-style: italic; }

.nav-links { display: flex; gap: 35px; list-style: none; }
.nav-links a { 
    color: var(--text-muted); text-decoration: none; font-weight: 600; 
    font-size: 0.95rem; transition: 0.3s; position: relative; 
    text-transform: uppercase; font-family: var(--font-heading);
}
.nav-links a:hover { color: var(--neon-cyan); text-shadow: 0 0 10px var(--neon-cyan); }
.nav-links a::after {
    content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px;
    background: var(--neon-cyan); transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-links a:hover::after { width: 100%; }


.btn-nav {
    padding: 10px 25px; border: 1px solid var(--primary); 
    color: #fff; text-decoration: none; font-weight: 700; font-family: var(--font-heading);
    position: relative; overflow: hidden; clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
    background: rgba(88, 101, 242, 0.1); transition: 0.3s;
}
.btn-nav:hover { background: var(--primary); box-shadow: 0 0 25px var(--primary-glow); }
.btn-shine {
    position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.5), transparent);
    transform: skewX(-20deg); transition: 0.5s;
}
.btn-nav:hover .btn-shine { left: 150%; transition: 0.5s ease-in-out; }

.hero { height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; position: relative; padding-top: 60px; }
.badge { 
    background: rgba(0, 243, 255, 0.1); border: 1px solid var(--neon-cyan); 
    color: var(--neon-cyan); padding: 8px 20px; border-radius: 4px;
    font-size: 0.8rem; font-weight: 700; letter-spacing: 2px; 
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2); margin-bottom: 25px; display: inline-block;
}

.glitch-wrapper { 
    position: relative; 
    margin-bottom: 25px;
    padding: 0 10px; 
}

.anime-title {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 2.8rem;
    text-transform: uppercase;
    line-height: 1.4;
    letter-spacing: 1.5px;
    text-align: center;
    
    background: linear-gradient(
        120deg, 
        #e2e8f0 20%, 
        #a855f7 40%,  
        #4c1d95 60%,  
        #2dd4bf 80%   
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    
    animation: shine-flow 6s linear infinite; 
    filter: drop-shadow(0 0 15px rgba(124, 58, 237, 0.3));
}


@keyframes shine-flow {
    to { background-position: 200% center; }
}

.hero-desc { 
    font-size: 1.2rem; color: var(--text-muted); max-width: 800px; margin: 0 auto 50px; 
    min-height: 80px; text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}


.btn { 
    padding: 16px 40px; font-weight: 700; text-decoration: none; 
    display: inline-flex; align-items: center; gap: 12px; transition: 0.3s; 
    font-size: 1rem; text-transform: uppercase; font-family: var(--font-heading);
    clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
}
.btn-primary { 
    background: var(--primary); color: white; position: relative; overflow: hidden;
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.4);
}
.btn-primary:hover { background: #4f46e5; transform: translateY(-3px); box-shadow: 0 0 50px rgba(99, 102, 241, 0.8); }
.btn-secondary { 
    background: transparent; border: 1px solid rgba(255,255,255,0.3); color: white; margin-left: 20px; 
}
.btn-secondary:hover { border-color: var(--neon-cyan); color: var(--neon-cyan); background: rgba(6, 182, 212, 0.1); }
.pulse-anim { animation: pulse-glow 2s infinite; }
@keyframes pulse-glow { 0% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7); } 70% { box-shadow: 0 0 0 20px rgba(99, 102, 241, 0); } 100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); } }


.modern-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.compact-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }


.glass-card {
    background: linear-gradient(145deg, rgba(10, 10, 15, 0.8) 0%, rgba(0, 0, 0, 0.9) 100%);
    
    backdrop-filter: blur(12px); 
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 40px 30px; position: relative; transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    clip-path: polygon(
        20px 0, 100% 0, 
        100% calc(100% - 20px), calc(100% - 20px) 100%, 
        0 100%, 0 20px
    );
}
.glass-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--neon-cyan);
    background: linear-gradient(145deg, rgba(6, 182, 212, 0.1) 0%, rgba(0,0,0,0) 100%);
}

.glass-card::after {
    content: ''; position: absolute; bottom: 0; right: 0; width: 30px; height: 30px;
    background: linear-gradient(to top left, var(--neon-cyan) 50%, transparent 50%);
    opacity: 0.3; transition: 0.3s;
}
.glass-card:hover::after { opacity: 1; }

.glass-card h3 { 
    font-size: 1.25rem; margin-bottom: 15px; color: #fff;
    border-left: 3px solid var(--neon-pink); padding-left: 10px;
}
.card-content { color: var(--text-muted); font-size: 0.95rem; }
.card-icon { font-size: 2.5rem; color: var(--neon-cyan); margin-bottom: 25px; filter: drop-shadow(0 0 10px var(--neon-cyan)); }


.quote-box {
    margin-top: 60px; padding: 30px; text-align: center;
    
    
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    
    border-left: 2px solid var(--primary); border-right: 2px solid var(--primary);
    border-top: 1px solid rgba(255,255,255,0.05); 
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.anime-quote {
    font-family: var(--font-quote); font-size: 1.8rem; color: #fff; 
    display: inline-block; margin: 0 15px; font-style: italic;
}
.quote-box i { color: var(--primary); opacity: 0.5; font-size: 1.2rem; }


.feature-row { display: flex; align-items: center; gap: 80px; margin-bottom: 120px; }
.feature-row.reverse { flex-direction: row-reverse; }
.feature-text { flex: 1; }
.feature-text h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    background: linear-gradient(
        120deg, 
        #ffffff 20%,  
        #a855f7 40%, 
        #4c1d95 60%,  
        #2dd4bf 80%   
    );
    
   
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    
   
    animation: shine-flow 6s linear infinite;
    
    
    filter: drop-shadow(0 0 5px rgba(168, 85, 247, 0.4));
}

.tech-item {
    
    background: rgba(0, 0, 0, 0.6); 
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1); 
    
    padding: 15px 20px; margin-bottom: 12px; display: flex; align-items: center; gap: 15px;
    transition: 0.3s; clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%, 0 10px);
}
.tech-item:hover {
    background: rgba(6, 182, 212, 0.1); border-color: var(--neon-cyan);
    transform: translateX(10px);
}
.tech-icon { color: var(--neon-cyan); }

.feature-visual {
    flex: 0.8; height: 350px; display: flex; align-items: center; justify-content: center;
    font-size: 6rem; position: relative;
    background: radial-gradient(circle, rgba(99,102,241,0.15) 0%, transparent 70%);
    
    animation: float 6s ease-in-out infinite;
}
.glow-purple { color: var(--primary); filter: drop-shadow(0 0 30px var(--primary)); }
.glow-cyan { color: var(--neon-cyan); filter: drop-shadow(0 0 30px var(--neon-cyan)); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }

.glass-panel {
    background: rgba(10, 10, 12, 0.8); border: 1px solid var(--glass-border);
    border-top: 1px solid var(--neon-cyan);
    padding: 80px; backdrop-filter: blur(20px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.admin-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; }
.highlight-title { color: var(--neon-cyan); letter-spacing: 2px; margin-bottom: 35px; border-bottom: 2px solid rgba(255,255,255,0.1); padding-bottom: 10px; display: inline-block; }

.desc-text {
    margin-bottom: 30px;
}

.commitment-box h3.neon-pink-text {
    margin-bottom: 35px;
}

.rocket-list li { 
    margin-bottom: 20px; padding-left: 20px; position: relative; 
    color: var(--text-muted); font-size: 1.05rem; 
}
.rocket-list li i { color: var(--neon-pink); margin-right: 10px; }


.commitment-grid { display: grid; gap: 30px; }
.commit-card {
    display: flex; align-items: center; gap: 20px; padding: 25px;
    background: linear-gradient(90deg, rgba(255,255,255,0.02), transparent);
    border-left: 2px solid var(--text-muted); transition: 0.3s;
}
.commit-card:hover { border-left-color: var(--neon-pink); background: linear-gradient(90deg, rgba(236, 72, 153, 0.1), transparent); }
.commit-icon-box { font-size: 1.5rem; color: var(--neon-pink); }


footer { text-align: center; padding: 80px 0 40px; background: #050505; border-top: 1px solid #222; margin-top: 80px; }
.social-btn {
    width: 60px; height: 60px; border-radius: 50%; background: #111; color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    margin: 0 10px; font-size: 1.5rem; transition: 0.4s; border: 1px solid #333;
}
.social-btn:hover { 
    background: var(--primary); color: #fff; transform: translateY(-5px) rotate(360deg); 
    box-shadow: 0 0 30px var(--primary-glow); border-color: var(--primary);
}
.poetic-text { 
    font-family: var(--font-quote); font-size: 1.5rem; color: #888; 
    margin: 40px 0; font-style: italic; 
}

.scroll-reveal { opacity: 0; transform: translateY(50px); transition: 1s cubic-bezier(0.2, 0.8, 0.2, 1); }
.scroll-reveal.active { opacity: 1; transform: translateY(0); }
.fade-in { animation: fadeIn 1s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }



.mobile-only-btn { display: none; }
.desktop-only-btn { display: inline-block; }


.menu-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}
.menu-toggle .bar {
    width: 25px; height: 3px;
    background-color: var(--text-main);
    transition: 0.3s; border-radius: 2px;
}


@media (max-width: 1024px) {
    .container { padding: 0 20px; }
    .hero-title { font-size: 2.2rem; }
    
   
    .modern-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
    .compact-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
    
    
    .feature-row { flex-direction: column !important; gap: 40px; margin-bottom: 80px; }
    .feature-row.reverse { flex-direction: column !important; }
    
    .feature-visual { height: 250px; font-size: 4rem; width: 100%; }
    
    .admin-grid { grid-template-columns: 1fr; gap: 50px; }
}

/* ================= MODAL AUTH (ĐĂNG NHẬP) ================= */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(8px);
    z-index: 2000; display: flex; justify-content: center; align-items: center;
    opacity: 0; visibility: hidden; transition: 0.3s ease;
}
.modal-overlay.active { opacity: 1; visibility: visible; }

.auth-modal {
    width: 90%; max-width: 400px; padding: 40px 30px; position: relative;
    transform: translateY(-50px) scale(0.9); transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-top: 2px solid var(--primary);
}
.modal-overlay.active .auth-modal { transform: translateY(0) scale(1); }

.close-modal {
    position: absolute; top: 15px; right: 15px; background: transparent;
    border: none; color: var(--text-muted); font-size: 1.5rem; cursor: pointer; transition: 0.3s;
}
.close-modal:hover { color: var(--neon-pink); transform: rotate(90deg); }

.auth-tabs { display: flex; margin-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.auth-tab {
    flex: 1; background: transparent; border: none; color: var(--text-muted);
    padding: 10px; font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700;
    cursor: pointer; transition: 0.3s; position: relative;
}
.auth-tab.active { color: #fff; text-shadow: 0 0 10px var(--neon-cyan); }
.auth-tab.active::after {
    content: ''; position: absolute; bottom: -1px; left: 0; width: 100%;
    height: 2px; background: var(--neon-cyan); box-shadow: 0 0 10px var(--neon-cyan);
}

.auth-form { display: none; animation: fadeIn 0.4s; }
.auth-form.active { display: block; }

.input-group { position: relative; margin-bottom: 20px; }
.input-group i { position: absolute; top: 50%; left: 15px; transform: translateY(-50%); color: var(--primary); }
.input-group input {
    width: 100%; padding: 15px 15px 15px 45px; background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1); color: #fff; font-family: var(--font-body);
    border-radius: 4px; transition: 0.3s; outline: none;
}
.input-group input:focus { border-color: var(--neon-cyan); box-shadow: 0 0 15px rgba(45, 212, 191, 0.2); }

.auth-link { text-align: center; margin-top: 20px; font-size: 0.9rem; }
.auth-link a { color: var(--text-muted); text-decoration: none; transition: 0.3s; }
.auth-link a:hover { color: var(--primary); }


@media (max-width: 768px) {
   
    .menu-toggle { display: flex; z-index: 1001; }
    .desktop-only-btn { display: none; }
    .mobile-only-btn { display: inline-block; margin-top: 10px; text-align: center; }

    .nav-links {
        position: fixed;
        top: 0; right: -100%; 
        width: 75%; height: 100vh;
        background: rgba(5, 5, 7, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        border-left: 1px solid rgba(255,255,255,0.1);
        padding: 0;
    }
    
    .nav-links.active { right: 0;}
    
    .nav-links li { margin: 15px 0; }
    .nav-links a { font-size: 1.2rem; }

    .menu-toggle.active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .menu-toggle.active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }


    .anime-title { font-size: 1.8rem; line-height: 1.3; }
    .hero-desc { font-size: 1rem; margin-bottom: 30px; }
    .section-title { font-size: 1.8rem; margin-bottom: 20px; }
    .section-title::before { font-size: 2.5rem; top: -15px; } 
    
    .section-padding { padding: 60px 0; } 
    
   
    .cta-group { 
        display: flex; 
        flex-direction: column; 
        gap: 15px; 
        padding: 0 20px;
    }
    .btn-secondary { margin-left: 0; width: 100%; justify-content: center; }
    .btn-primary { width: 100%; justify-content: center; }


    .glass-card { padding: 25px 20px; }
    .glass-panel { padding: 30px 20px; } 
    

    .rocket-list li { font-size: 0.95rem; }

    footer { padding: 40px 0 20px; }
    .social-btn { width: 45px; height: 45px; font-size: 1.2rem; }
    .poetic-text { font-size: 1.1rem; }
}

/* ================= ICON ẨN/HIỆN MẬT KHẨU ================= */
.input-group i.toggle-password {
    left: auto; /* Bỏ căn trái của icon ổ khóa */
    right: 15px; /* Ép con mắt sang mép phải */
    color: var(--text-muted); /* Màu tối cho đỡ chói */
    cursor: pointer; /* Biến con trỏ thành hình bàn tay khi chĩa vào */
    transition: 0.3s;
}

.input-group i.toggle-password:hover {
    color: var(--neon-cyan); /* Sáng lên màu xanh neon khi di chuột vào */
}

/* Đẩy chữ bên trong ô input lùi lại để không bị đè lên con mắt */
.input-group input {
    padding-right: 45px; 
}

/* ================= NÚT GOOGLE LOGIN ================= */
.social-login-divider {
    text-align: center; margin: 15px 0; position: relative;
}
.social-login-divider::before {
    content: ''; position: absolute; left: 0; top: 50%; width: 100%; height: 1px; background: rgba(255,255,255,0.1); z-index: 1;
}
.social-login-divider span {
    background: var(--bg-dark); padding: 0 10px; color: var(--text-muted); font-size: 0.8rem; position: relative; z-index: 2; font-weight: 600;
}
.btn-google {
    width: 100%; padding: 12px; margin-bottom: 20px;
    background: #fff; color: #333; border: none; border-radius: 4px;
    font-family: var(--font-body); font-weight: 600; font-size: 1rem;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    cursor: pointer; transition: 0.3s;
}
.btn-google img { width: 20px; height: 20px; }
.btn-google:hover { background: #f1f5f9; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(255,255,255,0.2); }