: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-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::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;
}
.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); }
/* ================= TỐI ƯU HIỂN THỊ ĐIỆN THOẠI (BẢNG BIỂU) ================= */
@media (max-width: 768px) {
    /* Ép tất cả các bảng dữ liệu có thể vuốt ngang được */
    table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap; /* Giữ text trên 1 dòng để vuốt cho dễ */
    }
    
    /* Thu gọn lề ở trang Admin và Staff */
    .admin-container, .staff-container {
        padding: 10px;
        margin-top: 80px;
    }
    
    .tab-btn {
        font-size: 0.85rem;
        padding: 10px 5px;
    }
    
    /* Chỉnh Modal đặt đơn trên đt cho gọn */
    .auth-modal {
        padding: 30px 20px;
    }
}
/* --- Style cho Logo GIF mới --- */
.logo-gif-container {
    display: flex;
    align-items: center;
    text-decoration: none; /* Bỏ gạch chân nếu là thẻ link */
    height: 100%; /* Giúp căn giữa theo chiều cao header */
}

.logo-gif-container img {
    height: 70px; /* Tùy chỉnh độ to nhỏ của logo ở đây (50px - 70px) */
    width: auto; /* Chiều ngang sẽ tự động giãn theo đúng tỷ lệ thật của GIF */
    display: block;
    object-fit: contain; 
    
    /* Đã xóa bỏ transform: scale(2.0) để không vỡ layout */
    
    filter: drop-shadow(0 0 5px var(--neon-pink));
    transition: 0.3s; /* Thêm chút hiệu ứng mượt mà nếu cần */
}
/* ================= HIỆU ỨNG LOGO FOOTER MỚI ================= */
.footer-logo-wrapper {
    display: inline-block;
    margin-bottom: 25px;
    text-decoration: none;
}

.footer-logo-gif {
    height: auto;
    width: 100%;
    max-width: 500px; /* Tăng giảm con số này để chỉnh độ to nhỏ của logo (Mặc định 280px là rất to và rõ) */
    object-fit: contain;
    
    /* Đổ bóng phát sáng 2 lớp: Hồng và Xanh Cyan */
    filter: drop-shadow(0 0 8px rgba(192, 38, 211, 0.6)) 
            drop-shadow(0 0 15px rgba(45, 212, 191, 0.3));
    
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Hiệu ứng khi di chuột vào Logo */
.footer-logo-wrapper:hover .footer-logo-gif {
    transform: translateY(-5px) scale(1.05); /* Nổi lên và to ra thêm một chút */
    filter: drop-shadow(0 0 15px rgba(192, 38, 211, 0.9)) 
            drop-shadow(0 0 25px rgba(45, 212, 191, 0.7)); /* Sáng rực lên */
}

/* Căn giữa logo nếu mở trên điện thoại (màn hình nhỏ) */
@media (max-width: 992px) {
    .footer-logo-wrapper {
        display: flex;
        justify-content: center;
        width: 100%;
    }
}
/* ================= TỐI ƯU HỘP POPUP (MODAL) TRÊN MOBILE ================= */

/* 1. Sửa màn hình đen bên ngoài để có thể cuộn được */
.modal-overlay {
    padding: 20px 10px !important; /* Tránh hộp chạm sát viền điện thoại */
    overflow-y: auto !important;   /* BẬT CUỘN TRANG nếu hộp quá dài */
    align-items: flex-start !important; /* Bắt đầu từ trên xuống, chống bị cắt đỉnh */
}

/* 2. Sửa lại tỷ lệ cái Hộp (Modal) cho to ra và mượt hơn */
.auth-modal, .glass-panel.auth-modal {
    margin: auto !important;       /* Tự động căn giữa màn hình */
    width: 95% !important;         /* Mở rộng chiều ngang tối đa trên Mobile */
    max-width: 600px !important;   /* Tăng kích thước hộp trên PC lên cho to rõ */
    max-height: 85vh !important;   /* GIỚI HẠN CHIỀU CAO: Không bao giờ vượt quá màn hình */
    overflow-y: auto !important;   /* BẬT CUỘN BÊN TRONG HỘP để dễ lướt đọc thông báo dài */
}

/* 3. Phủ phép màu (Làm đẹp thanh cuộn bên trong hộp) */
.auth-modal::-webkit-scrollbar { width: 5px; }
.auth-modal::-webkit-scrollbar-track { background: transparent; }
.auth-modal::-webkit-scrollbar-thumb { background: var(--neon-cyan); border-radius: 5px; }
/* ================= FOOTER SIÊU CẤP: RỘNG - ĐẸP - HIỆN ĐẠI ================= */
.custom-footer {
    background: linear-gradient(to bottom, #050505, #0a0a0f);
    padding: 80px 0 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: 80px;
}

/* Kéo rộng khung chứa lên 1500px */
.custom-footer .container {
    max-width: 1500px;
    width: 95%;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr; /* Cột 1 to, cột 2 vừa, cột 3 dạt sang phải */
    gap: 60px;
    margin-bottom: 50px;
    align-items: start;
}

/* --- CỘT 1: GIỚI THIỆU (CĂN TRÁI) --- */
.footer-about {
    text-align: left;
}
.footer-logo-wrapper {
    display: inline-block;
    margin-bottom: 25px;
    text-decoration: none;
}
.footer-logo-gif {
    height: auto;
    width: 100%;
    max-width: 450px; /* Độ to logo sếp thích */
    filter: drop-shadow(0 0 8px rgba(192, 38, 211, 0.6)) drop-shadow(0 0 15px rgba(45, 212, 191, 0.3));
    transition: 0.4s;
}
.footer-logo-wrapper:hover .footer-logo-gif {
    transform: translateY(-5px) scale(1.05);
}
.footer-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
}
.footer-socials { display: flex; gap: 15px; }
.footer-socials a {
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.05);
    color: var(--text-muted);
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px;
    font-size: 1.2rem;
    transition: 0.3s;
}
.footer-socials a:hover { background: #444; color: #fff; transform: translateY(-3px); }

/* --- CỘT 2: DỊCH VỤ (CĂN GIỮA) --- */
.footer-services {
    display: flex;
    flex-direction: column;
    align-items: center; /* Căn giữa cột 2 */
}
.footer-heading {
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.footer-links-list { list-style: none; padding: 0; text-align: left; }
.footer-links-list li { margin-bottom: 15px; }
.footer-links-list a {
    color: var(--text-muted);
    text-decoration: none; font-size: 0.95rem;
    display: flex; align-items: center; gap: 12px;
    transition: 0.3s;
}
.footer-links-list a:hover { color: #fff; transform: translateX(5px); }
.footer-links-list a i { color: #f97316; } /* Icon màu cam đặc trưng */

/* --- CỘT 3: CONTACT (CĂN PHẢI) --- */
.footer-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Ép dạt hết sang phải màn hình */
}
.contact-box {
    width: 100%;
    max-width: 380px;
    display: flex; align-items: center; gap: 15px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    transition: 0.3s;
}
.contact-box:hover {
    border-color: rgba(249, 115, 22, 0.3);
    background: rgba(249, 115, 22, 0.05);
}
.contact-icon {
    width: 45px; height: 45px;
    background: rgba(249, 115, 22, 0.1);
    color: #f97316;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; flex-shrink: 0;
}
.contact-info { display: flex; flex-direction: column; text-align: left; }
.contact-label { font-size: 0.7rem; color: var(--text-muted); font-weight: 600; }
.contact-value { font-size: 1.1rem; color: #fff; font-weight: 800; }
.contact-status { color: #22c55e; font-size: 0.8rem; font-weight: 700; }

/* --- DÒNG BẢN QUYỀN --- */
.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 992px) {
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-services, .footer-contact { align-items: center; }
    .footer-logo-wrapper { display: flex; justify-content: center; }
}
/* Tìm đoạn này trong style của category.html */
.status-dot {
    position: absolute;
    bottom: 35px; right: 5px;
    width: 16px; height: 16px;
    border-radius: 50%;
    border: 2px solid #000;
    flex-shrink: 0; /* THÊM DÒNG NÀY */
}
/* =======================================================
   BẢN VÁ LỖI UX/UI TỐI THƯỢNG CHO ĐIỆN THOẠI (MOBILE FIX)
   ======================================================= */

@media (max-width: 768px) {
    /* 1. SỬA LỖI OVERFLOW GRID (Tràn viền màn hình) */
    .modern-grid { 
        grid-template-columns: repeat(auto-fit, minmax(100%, 1fr)) !important; 
        gap: 20px;
    }
    .compact-grid { 
        grid-template-columns: repeat(auto-fit, minmax(100%, 1fr)) !important; 
    }

    /* 2. CHỐNG TỰ ĐỘNG ZOOM TRÊN IPHONE (SAFARI) */
    input, select, textarea {
        font-size: 16px !important; /* Bắt buộc 16px để iOS không tự zoom */
    }

    /* 3. TỐI ƯU KHUNG CHAT AI CHO MÀN HÌNH NHỎ */
    #duck-chat-box {
        width: calc(100vw - 40px) !important; /* Full chiều ngang màn hình trừ đi lề 2 bên */
        right: 20px !important;
        max-height: 70vh !important; /* Không cao quá màn hình */
    }

    /* 4. TỐI ƯU KHOẢNG CÁCH AN TOÀN ĐÁY IPHONE (SAFE AREA) */
    #duck-cart-btn, #duck-chat-widget {
        /* Nâng lên để không bị cấn cái vạch đen Home của iPhone */
        bottom: calc(20px + env(safe-area-inset-bottom)) !important; 
    }
    #duck-cart-btn {
        bottom: calc(90px + env(safe-area-inset-bottom)) !important; /* Tránh đè lên nút Chat */
    }

    /* 5. FIX LẠI CÁI CHỮ TIÊU ĐỀ BỊ QUÁ TO TRÊN MOBILE */
    .section-title { font-size: 1.8rem !important; }
    .section-title::before { font-size: 2.2rem !important; top: -10px !important; }
    .anime-title { font-size: 1.8rem !important; }

    /* 6. LÀM CHO CÁC NÚT BẤM (BUTTON) TO RA ĐỂ DỄ DÙNG NGÓN TAY CHẠM */
    .btn { width: 100%; justify-content: center; }
    
    /* 7. FIX CHIỀU NGANG CỦA SỔ DANH BẠ VÀ LỊCH SỬ */
    .order-card { padding: 15px !important; }
    .order-stepper { flex-wrap: wrap; gap: 10px; }
    .step-item { flex: 1 1 30%; } /* Căn lại thanh tiến độ cày thuê */
    .step-line { display: none; } /* Trên đt thanh nối nhìn rất rối, ẩn đi */
}

/* =======================================================
   CHỐNG LỖI DÍNH HOVER TRÊN ĐIỆN THOẠI CẢM ỨNG
   ======================================================= */
/* Chỉ áp dụng hiệu ứng :hover nếu thiết bị có Chuột (PC/Laptop) */
@media (hover: hover) and (pointer: fine) {
    .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%);
    }
    .btn-nav:hover { background: var(--primary); box-shadow: 0 0 25px var(--primary-glow); }
    .pack-card:hover {
        border-color: var(--neon-cyan);
        transform: translateY(-8px);
        box-shadow: 0 10px 20px rgba(45, 212, 191, 0.2);
        background: rgba(45, 212, 191, 0.05);
    }
    .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);
    }
}