* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

/* --- Custom Scrollbar --- */


html { scroll-behavior: auto; }

body {
    background-color: var(--background-color); /* Giữ lại màu nền gốc làm fallback */
    color: var(--text-color);
    overflow-x: hidden;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    position: relative;
    transition: padding-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body::before {
    content: '';
    position: fixed; /* Dùng fixed để nó không cuộn theo trang */
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(
        225deg, 
        #0a0a1a, /* Màu nền chính */
        #1a1a2e, /* Màu surface */
        #002244, /* Một màu xanh đậm khác */
        var(--primary-color)
    );
    background-size: 400% 400%;
    animation: gradient-animation 25s ease infinite;
    z-index: -2; /* Đặt nó ở lớp dưới cùng */
    opacity: 0.8; /* Giảm độ sáng một chút để không bị chói */
}

/* LỚP GIỮA: LƯỚI TĨNH MỜ ẢO */
body::after {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 50px 50px; /* Kích thước của các ô lưới */
    z-index: -1; /* Nằm trên gradient, dưới nội dung */
    animation: grid-shimmer 30s linear infinite alternate; /* Hiệu ứng nhấp nháy nhẹ */
}


/* Keyframes cho animation */
@keyframes gradient-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes grid-shimmer {
    from { opacity: 0; }
    to { opacity: 0.5; }
}

/* Điều chỉnh cho các theme khác */
body[data-theme="light"]::before {
    background: linear-gradient(225deg, #f4f7fc, #e9ecf2, #d1d9e6);
}
body[data-theme="light"]::after {
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.07) 1px, transparent 1px);
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

section {
    padding: 120px 0;
    position: relative;
    z-index: 1; /* Thêm z-index cho các section */
}

.section-bg {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;

    z-index: -1;
}

.section-title {
    font-size: 2.8rem; font-weight: 700; text-align: center;
    margin-bottom: 80px; color: var(--text-color); text-shadow: 0 0 15px var(--accent-glow);
    transition: color 0.3s ease;
}
body[data-theme="light"] .section-title { text-shadow: none; }

/* --- Splash Screen V3 --- */
/* === SPLASH SCREEN V2: CORE IGNITION === */
#splash-screen {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--background-color);
    display: flex; justify-content: center; align-items: center;
    z-index: 9999;
    transition: opacity 0.5s 0.5s ease-out, visibility 0.5s 0.5s ease-out;
}
#splash-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
#splash-screen.hidden { opacity: 0; visibility: hidden; }
.splash-content { text-align: center; position: relative; z-index: 1; }

/* Ẩn các thành phần cũ không còn dùng */
.splash-content .progress-bar,
.splash-content .splash-logo-img {
    display: none;
}

.logo-container {
    position: relative;
    width: 250px;
    height: 250px;
    margin-bottom: 25px;
}

#aibot-logo-svg {
    width: 100%;
    height: 100%;
    overflow: visible; 
}

/* 1. HIỆU ỨNG VIỀN LOGO (OUTLINE) */
#logo-outline {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 2;
    /* Animation vẽ viền */
    stroke-dasharray: 5000; /* Số đủ lớn để bao phủ toàn bộ path */
    stroke-dashoffset: 5000;
    animation: draw-outline 2s cubic-bezier(0.65, 0, 0.35, 1) forwards,
               flicker-glow 3s infinite linear 2s; /* flicker-glow bắt đầu sau 2s */
}

@keyframes draw-outline {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes flicker-glow {
    0%, 100% {
        filter: drop-shadow(0 0 5px var(--accent-glow));
        opacity: 1;
    }
    50% {
        filter: drop-shadow(0 0 15px var(--accent-glow));
        opacity: 0.8;
    }
}

/* 2. HIỆU ỨNG LẤP ĐẦY VÀ SÓNG */
#logo-wave {
    filter: blur(3px);
    animation: wave-motion 3s infinite linear;
}

@keyframes wave-motion {
    0% { transform: translateX(-10%); }
    50% { transform: translateX(10%); }
    100% { transform: translateX(-10%); }
}

/* 3. HIỆU ỨNG SÓNG XUNG KÍCH (SHOCKWAVE) */
.logo-container::after {
    content: '';
    position: absolute; top: 50%; left: 50%;
    width: 100%; height: 100%;
    border-radius: 50%;
    border: 3px solid #fff;
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0;
    pointer-events: none;
}

.logo-container.complete::after {
    animation: shockwave 0.8s ease-out;
}

@keyframes shockwave {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(3);
        opacity: 0;
    }
}

/* 4. HIỆU ỨNG CHO KÝ HIỆU >| */
#logo-symbols {
    opacity: 0;
    animation: fade-in-symbols 1s ease forwards 2.5s; /* Hiện ra sau khi viền vẽ xong */
}

@keyframes fade-in-symbols {
    to {
        opacity: 1;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
    white-space: nowrap;
    margin-bottom: 40px; /* << SỬA TỪ margin-right */
}

/* Style cho Form Đăng nhập/Đăng ký trong Modal */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Giảm khoảng cách giữa các nhóm trường */
    margin-top: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.form-group label {
    margin-bottom: 4px;
    font-weight: 500;
    color: var(--text-light);
    font-size: 0.9rem;
}

.form-group input {
    padding: 11px 12px;
    background-color: var(--surface-color-2);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-color);
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 132, 255, 0.2); /* Hiệu ứng focus rõ ràng hơn */
}
/* Định vị cho icon hiển thị mật khẩu */
.form-group.password-group {
    position: relative;
}

.password-toggle-robot {
    position: absolute;
    right: 12px;
    transform: translateY(-50%);
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: color 0.2s ease, transform 0.2s ease;
}

.password-toggle-robot:hover {
    transform: translateY(-50%) scale(1.1); 
    color: var(--primary-color);
}
.password-toggle-robot svg {
    width: 100%;
    height: 100%;
}

.form-message {
    text-align: center;
    margin-top: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    height: 18px;
    transition: color 0.3s ease;
}

.form-message.error {
    color: #ff6b6b;
}

.form-message.success {
    color: #51cf66;
}

.forgot-password {
    text-align: right;
    margin-top: -10px;
    margin-bottom: 15px;
}

.forgot-password a {
    color: var(--text-light);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.forgot-password a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.google-signin-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    background-color: var(--surface-color);
    color: var(--text-light);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.google-signin-btn:hover {
    background-color: var(--surface-color-2);
    border-color: var(--primary-color);
}

.google-signin-btn svg {
    width: 18px;
    height: 18px;
}

.form-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-light);
    margin: 18px 0;
    font-size: 0.8rem;
}

.form-divider::before,
.form-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.form-divider:not(:empty)::before {
    margin-right: .5em;
}

.form-divider:not(:empty)::after {
    margin-left: .5em;
}
/* ======================================================= */
/* === MODULE: CÔNG TẮC PLASMA CONDUIT (NÂNG CẤP)      === */
/* ======================================================= */

.energy-core-switch {
    --track-width: 95px;
    --track-height: 40px;
    --core-size: 32px;
    --track-bg: rgba(10, 10, 26, 0.7);
    --track-border: rgba(0, 234, 255, 0.2);

    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: var(--track-width);
    height: var(--track-height);
    cursor: pointer;
    z-index: 1001;
}

/* --- 1. Rãnh Năng lượng (Energized Track) --- */
.switch-track {
    width: 100%;
    height: 100%;
    background-color: var(--track-bg);
    border: 1px solid var(--track-border);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), 
                inset 0 0 8px rgba(0, 0, 0, 0.5); /* Thêm chiều sâu */
}

/* --- 2. Biểu tượng Phản hồi (Reactive Icons) --- */
.theme-icon {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: rgba(255, 255, 255, 0.4);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 0 0px transparent); /* Chuẩn bị cho hiệu ứng glow */
}

/* --- 3. Lõi Năng lượng Đa pha (Tri-Phase Core) --- */
.energy-core {
    position: absolute;
    top: 4px;
    left: 4px;
    width: var(--core-size);
    height: var(--core-size);
    border-radius: 50%;
    /* Hiệu ứng chuyển động mượt mà hơn */
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2;
}

/* Lõi năng lượng giờ đây có 3 lớp, tương ứng 3 theme */
.energy-core::before, .energy-core::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border-radius: 50%;
    opacity: 0; /* Mặc định ẩn 2 lớp phụ */
    transition: opacity 0.5s ease;
}

/* Lớp Light (vàng cam) */
.energy-core::before {
    background-color: #f39c12;
    box-shadow: 0 0 10px #f39c12, 0 0 15px #f39c12;
}
/* Lớp Hologram (gradient) */
.energy-core::after {
    background: linear-gradient(45deg, #00eaff, #ff00de);
    box-shadow: 0 0 10px #00eaff, 0 0 15px #ff00de;
    animation: hologram-core-pulse-subtle 2s infinite ease-in-out;
}
@keyframes hologram-core-pulse-subtle {
    50% { transform: scale(0.98); }
}

/* === 4. ĐỊNH NGHĨA TRẠNG THÁI CHO TỪNG THEME === */

/* --- Trạng thái 1: DARK (Mặc định) --- */
.energy-core-switch[data-theme-state="dark"] .energy-core {
    left: 4px;
    background-color: #ffffff;
    box-shadow: 0 0 10px #fff, 0 0 15px #fff;
}
.energy-core-switch[data-theme-state="dark"] .icon-dark {
    stroke: #fff;
    transform: scale(1.1);
    /* Hiệu ứng phát sáng mạnh hơn */
    filter: drop-shadow(0 0 5px #fff);
}

/* --- Trạng thái 2: LIGHT --- */
.energy-core-switch[data-theme-state="light"] .energy-core {
    left: calc(50% - var(--core-size) / 2);
    background-color: transparent; /* Nền chính trong suốt */
    box-shadow: none;
}
.energy-core-switch[data-theme-state="light"] .energy-core::before {
    opacity: 1; /* Hiện lớp Light */
}
.energy-core-switch[data-theme-state="light"] .icon-light {
    stroke: #f39c12;
    transform: scale(1.1);
    filter: drop-shadow(0 0 5px #f39c12);
}

/* --- Trạng thái 3: HOLOGRAM --- */
.energy-core-switch[data-theme-state="hologram"] .energy-core {
    left: calc(100% - var(--core-size) - 4px);
    background-color: transparent; /* Nền chính trong suốt */
    box-shadow: none;
}
.energy-core-switch[data-theme-state="hologram"] .energy-core::after {
    opacity: 1; /* Hiện lớp Hologram */
}
.energy-core-switch[data-theme-state="hologram"] .icon-hologram {
    stroke: #00eaff;
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px #00eaff);
}

/* --- Hero Section & 3D Robot --- */
#hero {
    height: calc(var(--vh, 1vh) * 100);
    display: flex; align-items: center; justify-content: center;
    padding: 0; overflow: hidden; position: relative;
}
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none; /* << Rất quan trọng: Để bạn có thể click xuyên qua canvas vào các nút và nội dung */
}
.hero-content { text-align: center; z-index: 2; position: relative; }
.hero-title {
    font-family: 'Audiowide', sans-serif; /* <-- THÊM DÒNG NÀY */
    font-size: 6rem; 
    font-weight: normal; /* <-- SỬA DÒNG NÀY (vì font ROSNOC thường không có độ đậm 700) */
    margin-bottom: 20px; 
    color: var(--text-color);
    text-shadow: 0 0 25px var(--accent-glow);
}
body[data-theme="light"] .hero-title { text-shadow: none; }
.hero-subtitle {
    font-size: 1.3rem; color: var(--text-light); max-width: 600px; margin: 0 auto;
}
/* --- Sections Styling --- */
.card {
    background: var(--surface-color); border-radius: 15px; text-align: center;
    border: 1px solid var(--border-color); position: relative; overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease; transform-style: preserve-3d;
    will-change: transform, box-shadow;
}
.card.clickable-card { cursor: pointer; }
.card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    border-radius: 15px; background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
    opacity: 0; transition: opacity 0.3s ease;
}
body[data-theme="light"] .card::before { background: linear-gradient(135deg, rgba(0,0,0,0.05), transparent); }
.card:hover { box-shadow: 0 20px 40px var(--shadow-color); }
.card-content { position: relative; z-index: 1; padding: 30px; transition: transform 0.3s ease; }
.card:hover .card-content { transform: translateZ(20px); }

.grid-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.card h3 { color: var(--primary-color); margin-bottom: 15px; font-size: 1.5rem; transform: translateZ(40px); transition: transform 0.3s ease;}
.card:hover h3 { transform: translateZ(50px); }
.blog-card-meta { font-size: 0.9rem; color: var(--text-light); margin-top: 15px; }

.team-hierarchy { display: flex; flex-direction: column; align-items: center; gap: 50px; }
.team-level { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; }
/* ======================================================= */
/* === MODULE: THẺ ĐỊNH DANH HOLOGRAPHIC (NÂNG CẤP)     === */
/* ======================================================= */

.role-title {
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-light);
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px var(--accent-glow);
}

.member-card {
    position: relative;
    width: 240px;
    height: 320px;
    background: rgba(26, 46, 79, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    clip-path: polygon(0 25px, 25px 0, calc(100% - 25px) 0, 100% 25px, 100% calc(100% - 25px), calc(100% - 25px) 100%, 25px 100%, 0 calc(100% - 25px));
    -webkit-clip-path: polygon(0 25px, 25px 0, calc(100% - 25px) 0, 100% 25px, 100% calc(100% - 25px), calc(100% - 25px) 100%, 25px 100%, 0 calc(100% - 25px));
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.member-card-content {
    position: relative;
    width: 100%; height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    z-index: 2;
}

/* --- Lớp viền và hiệu ứng phát sáng --- */
.member-card-border, .member-card-glow {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    clip-path: polygon(0 25px, 25px 0, calc(100% - 25px) 0, 100% 25px, 100% calc(100% - 25px), calc(100% - 25px) 100%, 25px 100%, 0 calc(100% - 25px));
    transition: all 0.4s ease;
}
.member-card-border {
    border: 2px solid var(--border-color);
    z-index: 1;
}
.member-card-glow {
    box-shadow: 0 0 20px var(--shadow-color);
    z-index: 0;
}

/* --- Nền lục giác động --- */
.member-card-hex-bg {
    position: absolute;
    top: 0; left: 0;
    width: 200%; height: 200%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40"><path d="M.4 20v-20L20 0l19.5 10v20L20 40 .4 30z" fill="none" stroke-width="1" stroke="rgba(0,132,255,0.1)"/></svg>');
    background-size: 25px 25px;
    opacity: 0.5;
    z-index: -1;
    transition: transform 0.8s ease;
    transform: translate(-25%, -25%);
}

/* --- Avatar hình lục giác --- */
.member-avatar {
    width: 120px;
    height: 138px; /* Tỉ lệ của hình lục giác */
    margin-bottom: 20px;
}
.member-avatar img {
    width: 100%; height: 100%;
    object-fit: cover;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    transition: transform 0.4s ease;
}

.member-name {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 5px;
}
.member-role {
    color: var(--primary-color);
    font-weight: 600;
}

/* --- Hiệu ứng Hover --- */
.member-card:hover {
    transform: translateY(-10px);
}
.member-card:hover .member-card-border {
    border-color: var(--primary-color);
}
.member-card:hover .member-card-glow {
    box-shadow: 0 0 30px var(--accent-glow);
}
.member-card:hover .member-card-hex-bg {
    transform: translate(-25%, -25%) rotate(15deg);
}
.member-card:hover .member-avatar img {
    transform: scale(1.05);
}
/* Thêm vào cuối file style.css */
.member-avatar.is-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--surface-color-2);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}
.member-avatar.is-icon svg {
    width: 60%;
    height: 60%;
    fill: var(--primary-color);
}

/* ======================================================= */
/* === MODULE: TIMELINE SECTION (V3 - SỬA LỖI Z-INDEX CUỐI CÙNG) === */
/* ======================================================= */

#timeline .container {
    max-width: 900px;
}

.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background: linear-gradient(to bottom, transparent, var(--primary-color), transparent);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 10px var(--accent-glow);
    /* SỬA LỖI DỨT ĐIỂM: Đẩy thanh giữa xuống lớp dưới cùng */
    z-index: -1; 
}

.timeline-item {
    padding: 10px 50px;
    position: relative;
    width: 50%;
}

.timeline-item.left { left: 0; }
.timeline-item.right { left: 50%; }

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--background-color);
    border: 3px solid var(--primary-color);
    top: 25px;
    border-radius: 50%;
    /* Giữ nút tròn ở lớp trên */
    z-index: 1;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px var(--accent-glow);
}

/* Căn giữa nút tròn (giữ nguyên từ lần sửa trước) */
.timeline-item.left::after {
    right: 0;
    transform: translateX(50%);
}
.timeline-item.right::after {
    left: 0;
    transform: translateX(-50%);
}

.timeline-content {
    padding: 30px;
    background: rgba(26, 46, 79, 0.45);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(0, 132, 255, 0.2);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-content {
    border-color: var(--primary-color);
    box-shadow: 0 0 25px var(--accent-glow);
    transform: translateY(-8px);
}

.timeline-item:hover::after {
    transform: scale(1.2) translateX(var(--translate-fix));
}
.timeline-item.left:hover::after { --translate-fix: 50%; }
.timeline-item.right:hover::after { --translate-fix: -50%; }


.timeline-content h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Tùy chỉnh màu sắc cho theme Light (giữ nguyên) */
body[data-theme="light"] .timeline::after {
    background: linear-gradient(to bottom, transparent, #bdc3c7, transparent);
    box-shadow: none;
}
body[data-theme="light"] .timeline-item::after {
    border-color: #7f8c8d;
    box-shadow: none;
}
body[data-theme="light"] .timeline-item:hover::after {
    background-color: #7f8c8d;
    border-color: #34495e;
}
body[data-theme="light"] .timeline-content {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(0, 0, 0, 0.1);
}
body[data-theme="light"] .timeline-item:hover .timeline-content {
    border-color: #34495e;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* Responsive (giữ nguyên) */
@media (max-width: 768px) {
    .timeline::after {
        left: 31px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    .timeline-item.left, .timeline-item.right {
        left: 0;
    }
    .timeline-item.left::after, .timeline-item.right::after {
        left: 31px;
    }
}
/* --- Contact Form --- */
#contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 100%; /* Form sẽ lấp đầy cột 2 */
}
#contact-form input, #contact-form textarea {
    padding: 18px; background-color: var(--surface-color);
    border: 2px solid var(--border-color); border-radius: 8px;
    color: var(--text-color); font-size: 1rem; transition: border-color 0.3s, box-shadow 0.3s, background-color 0.3s;
}
#contact-form input:focus, #contact-form textarea:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 15px var(--accent-glow); }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
/* --- Contact Form Status --- */
#form-status {
    margin-top: 15px;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
    transition: opacity 0.3s ease;
}
#form-status.success {
    color: #28a745;
}
#form-status.error {
    color: #dc3545;
}

.contact-wrapper {
    display: grid;
    /* Tạo 2 cột, cột 1 (info) = 1fr, cột 2 (form) = 1.5fr */
    grid-template-columns: 1fr 1.5fr; 
    gap: 50px;
    align-items: flex-start; /* Căn các cột theo đỉnh */
    max-width: 1100px; /* Tăng max-width chung */
    margin: 0 auto;
}

/* --- Cột 1: Bảng Thông tin (Intel Panel) --- */
.contact-info {
    padding: 40px;
    background: rgba(26, 46, 79, 0.45); /* Giống .timeline-content */
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    
    /* (QUAN TRỌNG) Dùng clip-path giống member-card để đồng bộ chủ đề */
    clip-path: polygon(0 20px, 20px 0, calc(100% - 20px) 0, 100% 20px, 100% calc(100% - 20px), calc(100% - 20px) 100%, 20px 100%, 0 calc(100% - 20px));
    
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-info:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 25px var(--accent-glow);
}

.contact-info h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.contact-info p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 30px;
}

.contact-channels {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-channels li {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-channels svg {
    width: 32px;
    height: 32px;
    color: var(--primary-color);
    flex-shrink: 0; /* Không co icon lại */
}

.contact-channels div {
    display: flex;
    flex-direction: column;
}

.contact-channels strong {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 2px;
}

.contact-channels span {
    color: var(--text-light);
    font-size: 0.95rem;
    word-break: break-all; /* Đảm bảo email/link không làm vỡ layout */
}

/* --- Cột 2: Wrapper cho Form --- */
.contact-form-wrapper {
    /* Không cần style gì đặc biệt, nó chỉ là container */
    padding-top: 10px; /* Căn chỉnh nhẹ cho form */
}

/* --- Responsive cho Contact V2 --- */
@media (max-width: 992px) {
    .contact-wrapper {
        /* Chuyển thành 1 cột */
        grid-template-columns: 1fr;
        gap: 40px; /* Giảm khoảng cách */
    }

    .contact-info {
        /* Đặt bảng info lên trước form */
        order: 1;
    }

    .contact-form-wrapper {
        order: 2;
    }
}
/* ======================================================= */
/* === MODULE: NÚT TRANSMISSION (FORM LIÊN HỆ)         === */
/* ======================================================= */

.transmission-btn {
    position: relative;
    padding: 18px 40px;
    font-family: 'ROSNOC', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 1px;
    color: var(--primary-color);
    background-color: var(--surface-color);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s ease;
}

/* Lớp nền phát sáng */
.transmission-btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: var(--primary-color);
    box-shadow: 0 0 20px var(--accent-glow);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

/* Hiệu ứng vạch quét (scan line) */
.transmission-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%; /* Bắt đầu bên ngoài nút */
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
    transform: skewX(-25deg); /* Nghiêng vạch quét */
}

/* Chữ của nút */
.transmission-btn .btn-text {
    position: relative;
    z-index: 1;
}

/* --- Trạng thái Hover --- */
.transmission-btn:hover {
    color: #fff; /* Chữ trắng khi hover */
    border-color: var(--primary-color);
    box-shadow: 0 0 25px var(--accent-glow);
}

.transmission-btn:hover::before {
    opacity: 1;
}

.transmission-btn:hover::after {
    left: 150%; /* Di chuyển vạch quét qua hết nút */
}

/* --- Trạng thái Loading (tích hợp với spinner đã có) --- */
.transmission-btn.loading {
    pointer-events: none;
}
.transmission-btn.loading .btn-text {
    visibility: hidden;
}
/* Style cho spinner bên trong nút này */
.transmission-btn .spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px; /* Kích thước spinner */
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff; /* Màu của vòng xoay */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
}
.transmission-btn.loading .spinner {
    display: block;
}

/* --- Footer --- */
.footer {
    padding: 50px 0;
    text-align: center;
    
    /* === BẮT ĐẦU NÂNG CẤP === */
    /* Chuyển màu nền sang dạng rgba để có độ trong suốt */
    /* Màu gốc --surface-color-2 là #101024, ta đổi thành rgba(16, 16, 36, ...) */
    background-color: rgba(16, 16, 36, 0.5); 
    
    /* Hiệu ứng làm mờ nền phía sau footer */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* Hỗ trợ cho trình duyệt Safari */
    
    /* Thêm một đường viền mỏng phía trên để tạo cảm giác "tấm kính" */
    border-top: 1px solid var(--border-color); 
    /* === KẾT THÚC NÂNG CẤP === */

    transition: background-color 0.3s ease;
}
.social-links a {
    color: var(--text-light); margin: 0 15px; font-size: 1.8rem;
    transition: color 0.3s ease, transform 0.3s ease; display: inline-block;
    width: 32px; height: 32px;
}
.social-links a:hover { color: var(--primary-color); transform: translateY(-5px) scale(1.1); }
.footer p { margin-top: 25px; color: var(--text-light); }

/* --- Scroll Animations --- */
.reveal { opacity: 0; transform: translateY(60px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* --- Widgets --- */
/* ======================================================= */
/* === MODULE: NÚT WIDGET SCI-FI HUD (CHAT & TOP)      === */
/* ======================================================= */

/* --- 1. Style cơ bản của Widget --- */
.widget {
    position: fixed;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 998;
    
    /* Hiệu ứng kính mờ & viền phát sáng */
    background-color: rgba(26, 26, 46, 0.5); /* Thay thế màu nền đặc */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 15px var(--accent-glow), inset 0 0 10px rgba(0, 132, 255, 0.2);

    transition: transform 0.3s ease, background-color 0.3s ease;
    animation: widget-pulse 3s infinite ease-in-out;
    will-change: transform, box-shadow;
}

/* --- 2. Các vòng năng lượng xoay quanh (ẩn mặc định) --- */
.widget::before,
.widget::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border-style: solid;
    border-color: var(--primary-color);
    opacity: 0;
    transform: scale(0.8);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.widget::before {
    border-width: 2px;
    border-style: dashed;
}

.widget::after {
    border-width: 1px;
}

/* --- 3. Hiệu ứng khi Hover --- */
.widget:hover {
    animation: none; /* Tắt animation pulse khi hover */
    transform: scale(1.05); /* Nút chính hơi to ra */
    background-color: rgba(0, 132, 255, 0.2);
}

.widget:hover::before {
    transform: scale(1.3);
    opacity: 0.8;
    animation: rotate-clockwise 10s linear infinite;
}

.widget:hover::after {
    transform: scale(1.6);
    opacity: 0.6;
    animation: rotate-counter-clockwise 10s linear infinite 0.5s; /* Delay nhẹ */
}

/* --- 4. Style cho Icon SVG bên trong --- */
.widget svg {
    width: 30px;
    height: 30px;
    fill: var(--primary-color); /* Đổi màu icon để hợp với viền */
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), fill 0.3s ease;
}

.widget:hover svg {
    fill: #fff; /* Icon sáng lên khi hover */
    transform: rotate(15deg);
}

/* --- 5. Keyframes cho các Animation --- */
@keyframes widget-pulse {
    0%, 100% { box-shadow: 0 0 15px var(--accent-glow); }
    50% { box-shadow: 0 0 25px var(--accent-glow); }
}

@keyframes rotate-clockwise {
    from { transform: scale(1.3) rotate(0deg); }
    to { transform: scale(1.3) rotate(360deg); }
}

@keyframes rotate-counter-clockwise {
    from { transform: scale(1.6) rotate(0deg); }
    to { transform: scale(1.6) rotate(-360deg); }
}
#chat-widget-button { bottom: 30px; right: 30px; }
#back-to-top-btn { bottom: 100px; right: 30px; opacity: 0; visibility: hidden; }
#back-to-top-btn.show { opacity: 1; visibility: visible; }

#chat-container {
    position: fixed; bottom: 100px; right: 30px; width: 350px; height: 500px;
    background-color: var(--surface-color); border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow-color); display: flex; flex-direction: column;
    overflow: hidden; z-index: 999; transform: scale(0.5) translateY(50px);
    opacity: 0; visibility: hidden; transform-origin: bottom right;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease, background-color 0.3s ease;
}
#chat-container.open { transform: scale(1) translateY(0); opacity: 1; visibility: visible; }
.chat-header {
    padding: 15px; background-color: var(--surface-color-2); color: var(--text-color);
    font-weight: 600; border-bottom: 1px solid var(--border-color); transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
#chat-messages { flex-grow: 1; padding: 15px; overflow-y: auto; display: flex; flex-direction: column; }
.chat-message { max-width: 80%; padding: 10px 15px; border-radius: 18px; margin-bottom: 10px; line-height: 1.4; }
.user-message { background-color: var(--primary-color); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.ai-message { background-color: var(--surface-color-2); color: var(--text-color); align-self: flex-start; border-bottom-left-radius: 4px; transition: background-color 0.3s ease, color 0.3s ease; }
.typing-indicator span { background-color: var(--text-light); }
.chat-input-container { display: flex; padding: 10px; border-top: 1px solid var(--border-color); transition: border-color 0.3s ease; }
#chat-input { flex-grow: 1; border: none; background: transparent; padding: 10px; color: var(--text-color); font-size: 1rem; }
#chat-input:focus { outline: none; }
#chat-send-btn svg { fill: var(--primary-color); }

@media (max-width: 992px) {
    .container {
        padding: 0 40px;
    }

    .hero-title {
        font-size: 3rem;
    }
}


/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    body::after {
        animation: none; /* Tắt animation nhấp nháy */
        opacity: 0.3;    /* Giữ lại lưới tĩnh mờ */
    }
    section {
        padding: 80px 0;
    }

    .section-title {
        font-size: 2.2rem;
        margin-bottom: 50px;
    }

    .grid-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .timeline::after {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 60px;
        padding-right: 10px;
    }
    
    .timeline-item.left, .timeline-item.right {
        left: 0;
    }

    .timeline-item.left .timeline-content,
    .timeline-item.right .timeline-content {
        text-align: left;
    }

    .timeline-item.right::after, .timeline-item.left::after {
        left: 11px;
    }

    #contact-form {
        padding: 0 15px;
    }
    
}

/* --- Chatbot Suggestion Chips --- */
#chat-suggestion-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 0;
    transition: opacity 0.3s ease;
}
.chip {
    background-color: var(--surface-color-2);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 12px;
    border-radius: 16px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
}
.chip:hover {
    background-color: var(--primary-color);
    color: #fff;
}
/* --- Hiệu ứng xuất hiện lần lượt cho phần Cơ cấu --- */
@keyframes cascadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#team .member-card, #team .role-title {
    opacity: 0;
}

#team.visible .member-card,
#team.visible .role-title {
    animation: cascadeIn 0.6s ease-out forwards;
}

#team.visible .team-level:nth-of-type(1) .member-card { animation-delay: 0.1s; }
#team.visible .team-level:nth-of-type(2) .member-card { animation-delay: 0.3s; }
#team.visible .team-level:nth-of-type(3) .member-card:nth-of-type(1) { animation-delay: 0.5s; }
#team.visible .team-level:nth-of-type(3) .member-card:nth-of-type(2) { animation-delay: 0.6s; }
#team.visible .team-level:nth-of-type(4) .role-title { animation-delay: 0.8s; }
#team.visible .team-level:nth-of-type(4) .member-card:nth-of-type(1) { animation-delay: 1.0s; }
#team.visible .team-level:nth-of-type(4) .member-card:nth-of-type(2) { animation-delay: 1.1s; }
#team.visible .team-level:nth-of-type(4) .member-card:nth-of-type(3) { animation-delay: 1.2s; }

/* --- Hiệu ứng chuyển cảnh Matrix --- */
#transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-color);
    z-index: -1; /* Đẩy nó xuống lớp dưới cùng khi không hoạt động */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out;
}
#transition-overlay.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 9999; /* Chỉ đưa nó lên trên cùng khi cần hiển thị */
}
#transition-canvas {
    width: 100%;
    height: 100%;
}
/* --- Nâng cấp Màu Sắc cho Hero Title theo Theme --- */
body[data-theme="light"] .hero-title {
    background: linear-gradient(90deg, #0056b3, #0084ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: none;
}

body[data-theme="hologram"] .hero-title {
    color: #ffffff;
    text-shadow: 0 0 5px #fff, 
                 0 0 15px var(--accent-glow), 
                 0 0 25px var(--accent-glow);
}
body:not([data-theme]) .hero-title {
    color: #ffffff;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8),
                 0 0 15px var(--primary-color),
                 0 0 30px var(--primary-color);
}
/* --- Nâng cấp UI Phần Giới thiệu --- */
.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 80px;
}
.about-intro {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 800px;
    text-align: center;
    line-height: 1.8;
    /* SỬA LỖI: Thêm margin auto để căn giữa khối */
    margin: 0 auto 60px auto; 
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    width: 100%;
}
.feature-item {
    padding: 40px;
    text-align: center;
}
.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 30px auto;
    background: var(--surface-color-2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
    border: 2px solid var(--border-color);
}
.feature-icon svg {
    width: 32px;
    height: 32px;
}
.feature-item h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: var(--primary-color);
}
.feature-item p {
    color: var(--text-light);
}

.stats-container {
    display: flex;
    justify-content: space-around;
    width: 100%;
    max-width: 900px;
    background: var(--surface-color);
    padding: 40px 20px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
}
.stat-item {
    text-align: center;
    color: var(--primary-color);
    font-weight: 700;
}
.stat-number {
    font-size: 3.5rem;
}
.stat-label {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 400;
}

@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    .stats-container {
        flex-direction: column;
        gap: 40px;
    }
}
/* === NÂNG CẤP HIỆU ỨNG HOLOGRAM === */
body[data-theme="hologram"]::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: repeating-linear-gradient(
        0deg,
        rgba(0, 234, 255, 0.1),
        rgba(0, 234, 255, 0.1) 1px,
        transparent 1px,
        transparent 4px
    );
    background-size: 100% 4px;
    animation: scanlines 20s linear infinite;
    pointer-events: none;
    z-index: 10;
    will-change: background-position;
}

@keyframes scanlines {
    from { background-position: 0 0; }
    to { background-position: 0 100vh; }
}

body[data-theme="hologram"] .hologram-glitch {
    animation: text-glitch 5s infinite alternate;
}

@keyframes text-glitch {
    0%, 10%, 12%, 100% {
        text-shadow: 0 0 8px var(--accent-glow);
        opacity: 1;
    }
    10.5% {
        text-shadow: 0 0 10px #ff00de, 0 0 20px #ff00de;
        opacity: 0.8;
    }
    11.5% {
        text-shadow: 0 0 10px #00eaff, 0 0 20px #00eaff;
        opacity: 0.8;
    }
}

body[data-theme="hologram"] .card {
    position: relative;
}

body[data-theme="hologram"] .card::before,
body[data-theme="hologram"] .card::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
    transition: width 0.4s ease-out;
}

body[data-theme="hologram"] .card::before {
    top: 0;
    left: 0;
}

body[data-theme="hologram"] .card::after {
    bottom: 0;
    right: 0;
}

body[data-theme="hologram"] .card:hover::before,
body[data-theme="hologram"] .card:hover::after {
    width: 100%;
}

body[data-theme="hologram"] .hero-title,
body[data-theme="hologram"] .section-title {
    color: #ffffff;
    /* Sử dụng filter để tạo hiệu ứng glitch và glow, thường nhanh hơn text-shadow */
    filter: 
        drop-shadow(0 0 8px var(--accent-glow))
        drop-shadow(2px 0 1px rgba(255, 0, 100, 0.7))
        drop-shadow(-2px 0 1px rgba(0, 255, 255, 0.7));
    /* Giữ lại một lớp text-shadow đơn giản để làm sáng chữ */
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}
/* --- NÂNG CẤP HIỆU ỨNG HIỆN MODAL CHO HOLOGRAM --- */
body[data-theme="hologram"] .modal-overlay.visible .modal {
    animation: hologram-scan-in 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes hologram-scan-in {
    from {
        opacity: 0;
        clip-path: inset(0 0 100% 0);
        filter: blur(10px) hue-rotate(90deg);
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        clip-path: inset(0 0 0 0);
        filter: blur(0) hue-rotate(0deg);
        transform: scale(1);
    }
}

/* --- Nâng cấp Background Video cho Section --- */
.section-video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -2;
}

.section-video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#about .container {
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .section-video-background video {
        display: none;
    }
    #about .section-video-background {
        background-size: cover;
        background-position: center center;
    }
}

#about .section-bg {
    display: none;
}

.section-video-background::after {
    background-color: transparent;
}
.splash-content .splash-logo-img {
    max-width: 200px; /* Giới hạn chiều rộng tối đa của logo */
    width: 50%; /* Chiều rộng tương đối */
    height: auto;
    margin-bottom: 20px; /* Tạo khoảng cách với thanh tiến trình */
}
.footer-logo {
    text-align: center;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 50px; /* Bạn có thể điều chỉnh chiều cao này */
    width: auto;
}
.navbar .logo img {
    height: 40px; /* Bạn có thể điều chỉnh chiều cao này cho phù hợp */
    width: auto; /* Giữ nguyên tỷ lệ của logo */
}
/* --- Định vị công tắc Theme ở trên cùng, chính giữa --- */
#theme-switch-container {
    position: fixed;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 101; /* Nằm trên header */
    margin-left: 0; /* Ghi đè margin-left cũ */
}

/* --- Định vị các nút ở góc trên bên phải --- */
.top-right-actions {
    position: fixed;
    top: 20px;
    right: 40px;
    z-index: 101; /* Nằm trên header */
    display: flex;
    gap: 10px;
}

/* --- Style cho nút phụ (nút Đăng Xuất) --- */
.btn.btn-secondary {
    background-color: var(--surface-color);
    color: var(--text-light);
    border: 1px solid var(--border-color);
}

.btn.btn-secondary:hover {
    background-color: var(--surface-color-2);
    border-color: var(--text-light);
}
/* --- Tắt header dọc trên mobile để dễ nhìn hơn --- */
@media (max-width: 992px) {
    .top-right-actions {
        right: 20px;
    }
}

/* ===== BẮT ĐẦU KHỐI MÃ MỚI - THÊM VÀO CUỐI TỆP CSS ===== */

/* --- CSS cho Hiệu ứng lật Form --- */
.auth-modal-flipper-container {
    perspective: 1000px;
    min-height: 500px; /* Chiều cao tối thiểu để vừa form đăng ký */
}

.auth-modal-flipper {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.modal-content {
    /* Đảm bảo modal không bị cắt xén khi lật */
    overflow: visible; 
}

.auth-modal-flipper.is-flipped {
    transform: rotateY(180deg);
}

.auth-form-front,
.auth-form-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden; /* Safari */
    backface-visibility: hidden;
}

.auth-form-back {
    transform: rotateY(180deg);
}

.auth-toggle-link {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.auth-toggle-link a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.auth-toggle-link a:hover {
    text-decoration: underline;
}

/* Đảm bảo id các trường input là duy nhất */
#login-form input, #register-form input {
    width: 100%;
}
body[data-theme="light"] .footer {
    /* Màu --surface-color-2 ở nền sáng là #f9f9f9 */
    background-color: rgba(249, 249, 249, 0.65); 
}

/* ======================================================= */
/* === KHỐI MÃ SỬA LỖI LOGO VÀ HOÀN THIỆN BỐ CỤC SIDEBAR === */
/* ======================================================= */

/* --- 1. Sửa lỗi Logo bị ẩn --- */
/* Đảm bảo thẻ <a> chứa logo là một khối flex để căn chỉnh được nội dung bên trong */
.header .logo {
    display: flex;
    align-items: center;
    justify-content: center; /* Mặc định căn giữa (cho trạng thái thu gọn) */
    width: 100%;
    padding: 0 10px;
    margin-bottom: 20px;
    flex-shrink: 0;
    transition: justify-content 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Style cho ảnh logo bên trong */
.header .logo img {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

/* --- 2. Tinh chỉnh lại việc căn chỉnh --- */

/* KHI THU GỌN: Căn giữa logo và các icon */
.header:not(:hover) .logo {
    justify-content: center;
}
/* KHI MỞ RỘNG: Căn trái logo và các icon/chữ */
.header:hover .logo{
    justify-content: flex-start;
}


/* Thêm hiệu ứng nhỏ cho logo khi mở rộng */
.header:hover .logo img {
    transform: rotate(-10deg);
}
/* ======================================================= */
/* === MODULE: MENU VORTEX DI ĐỘNG (NÂNG CẤP)          === */
/* ======================================================= */

/* --- 1. Container chính (giữ nguyên) --- */
#orbital-container {
    position: fixed;
    /* Vị trí mặc định, sẽ được JS ghi đè nếu có vị trí đã lưu */
    top: 30px;
    left: 40px;
    z-index: 1000;
}

/* --- 2. Nút bấm Vortex --- */
#orbital-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--surface-color-2);
    border: none; /* Bỏ border cũ */
    cursor: grab; /* Con trỏ hình bàn tay để báo hiệu có thể kéo */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    box-shadow: 0 5px 20px var(--shadow-color);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                background-color 0.3s, box-shadow 0.3s;
    position: relative; /* Rất quan trọng cho các mảnh ghép */
}

#orbital-toggle:active {
    cursor: grabbing; /* Đổi con trỏ khi đang kéo */
}

/* --- 3. Các mảnh ghép tạo thành Vortex --- */
#orbital-toggle::before,
#orbital-toggle::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Mảnh ngoài */
#orbital-toggle::before {
    clip-path: polygon(50% 0%, 100% 0%, 100% 50%, 50% 50%, 50% 100%, 0% 100%, 0% 50%, 50% 50%);
}

/* Mảnh trong */
#orbital-toggle::after {
    clip-path: polygon(0% 0%, 50% 0%, 50% 50%, 100% 50%, 100% 100%, 50% 100%, 50% 50%, 0% 50%);
}

/* --- 4. Hiệu ứng Hover --- */
#orbital-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 0 25px var(--accent-glow);
}

#orbital-toggle:hover::before {
    transform: rotate(180deg) scale(1.2);
    opacity: 0.7;
}

#orbital-toggle:hover::after {
    transform: rotate(-180deg) scale(1.2);
    opacity: 0.7;
}

/* --- 5. Trạng thái Đang kéo (Dragging) --- */
#orbital-toggle.dragging {
    transform: scale(1.15); /* To hơn một chút khi kéo */
    box-shadow: 0 0 30px var(--accent-glow);
    animation: dragging-pulse 1.5s infinite;
}
@keyframes dragging-pulse {
    0% { box-shadow: 0 0 30px var(--accent-glow); }
    50% { box-shadow: 0 0 45px var(--accent-glow); }
    100% { box-shadow: 0 0 30px var(--accent-glow); }
}

/* --- 6. Icon logo bên trong (giữ nguyên nhưng có thể tùy chỉnh) --- */
#orbital-toggle img {
    height: 35px;
    width: auto;
    transition: transform 0.4s ease;
    z-index: 2; /* Đảm bảo icon nằm trên các mảnh ghép */
}

#orbital-toggle:hover img {
    transform: rotate(-45deg);
}

/* --- 7. Trạng thái Mở (Open) --- */
#orbital-container.open #orbital-toggle {
    transform: scale(1.1);
}
#orbital-container.open #orbital-toggle::before {
    transform: rotate(270deg) scale(0.8);
}
#orbital-container.open #orbital-toggle::after {
    transform: rotate(-270deg) scale(0.8);
}

/* --- 8. Các mục menu con (giữ nguyên không đổi) --- */
#orbital-menu {
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}
.orbital-links { list-style: none; margin: 0; padding: 0; position: relative; }
.orbital-links li { position: absolute; top: 0; left: 0; transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.orbital-link { width: 50px; height: 50px; border-radius: 50%; background-color: var(--surface-color); border: 1px solid var(--border-color); display: flex; justify-content: center; align-items: center; text-decoration: none; color: var(--text-color); transform: scale(0); opacity: 0; transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55), opacity 0.3s ease, box-shadow 0.3s ease; position: relative; }
#orbital-container.open .orbital-link { transform: scale(1); opacity: 1; pointer-events: auto; }
.orbital-link:hover { box-shadow: 0 0 15px var(--accent-glow); border-color: var(--primary-color); color: var(--primary-color); }
.orbital-link svg { width: 24px; height: 24px; stroke: currentColor; }
#orbital-container.open .orbital-links li:nth-child(1) .orbital-link { transition-delay: 0.05s; }
#orbital-container.open .orbital-links li:nth-child(2) .orbital-link { transition-delay: 0.1s; }
#orbital-container.open .orbital-links li:nth-child(3) .orbital-link { transition-delay: 0.15s; }
#orbital-container.open .orbital-links li:nth-child(4) .orbital-link { transition-delay: 0.2s; }
#orbital-container.open .orbital-links li:nth-child(5) .orbital-link { transition-delay: 0.25s; }
#orbital-container.open .orbital-links li:nth-child(6) .orbital-link { transition-delay: 0.3s; }
#orbital-container.open .orbital-links li:nth-child(7) .orbital-link { transition-delay: 0.35s; }
#orbital-container.open .orbital-links li:nth-child(8) .orbital-link { transition-delay: 0.4s; }
.orbital-label { position: absolute; left: 120%; top: 50%; transform: translateY(-50%); background-color: var(--surface-color-2); color: var(--text-color); padding: 5px 12px; border-radius: 5px; white-space: nowrap; font-weight: 600; font-size: 0.9rem; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; pointer-events: none; z-index: 10; }
.orbital-link:hover .orbital-label { opacity: 1; visibility: visible; }
.orbital-link.active-link { background-color: var(--primary-color); color: #fff; border-color: var(--primary-color); box-shadow: 0 0 20px var(--accent-glow); transform: scale(1.1); }
/* ===== BẮT ĐẦU: CSS CHO FOOTER TƯƠNG TÁC ===== */

#interactive-footer {
    position: relative;
    height: 200px; /* Chiều cao của vùng footer */
    width: 100%;
    overflow: hidden;
    opacity: 0; /* Mặc định sẽ ẩn đi */
    transition: opacity 0.8s ease;
    background-color: transparent; /* Nền sẽ được vẽ bởi canvas */
}

#interactive-footer.visible {
    opacity: 1; /* Hiện ra khi cuộn tới */
}

#footer-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

#footer-tooltip {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -150%); /* Đặt phía trên logo trung tâm */
    background-color: var(--surface-color-2);
    color: var(--primary-color);
    padding: 8px 15px;
    border-radius: 5px;
    border: 1px solid var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    box-shadow: 0 0 15px var(--accent-glow);
}

#footer-tooltip.visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -170%); /* Hiệu ứng đẩy lên khi hiện */
}

/* ===== KẾT THÚC: CSS CHO FOOTER TƯƠNG TÁC ===== */
/* ===== BẮT ĐẦU: CSS CHO BỐ CỤC HYPERCUBE SHOWCASE ===== */

#about .about-intro {
    margin-bottom: 60px; /* Tăng khoảng cách với nội dung bên dưới */
}

.hypercube-showcase {
    display: grid;
    /* Sửa ở đây: Tăng tỉ lệ cho cột giữa */
    grid-template-columns: 1fr 2.5fr 1fr; 
    align-items: center;
    gap: 40px;
    width: 100%;
}

#hypercube-canvas-container {
    width: 100%;
    height: 500px; /* Chiều cao cho vùng 3D */
    cursor: grab;
}

#hypercube-canvas-container:active {
    cursor: grabbing;
}

.showcase-panel {
    display: flex;
    flex-direction: column;
    gap: 30px;
    height: 100%;
}

.showcase-panel .feature-item {
    background-color: rgba(26, 26, 46, 0.4); /* Nền mờ */
    backdrop-filter: blur(5px);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    text-align: left;
}
.showcase-panel .feature-item h3 {
    text-align: left;
    transform: none; /* Bỏ hiệu ứng 3D cũ */
    color: var(--primary-color);
    margin-bottom: 10px;
}
.showcase-panel .feature-item p {
    color: var(--text-light);
}


.stats-container-vertical {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background-color: rgba(26, 26, 46, 0.4);
    backdrop-filter: blur(5px);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
}
.stats-container-vertical .stat-item {
    display: flex;
    align-items: baseline;
    gap: 15px;
}
.stats-container-vertical .stat-number {
    font-size: 2.5rem;
}
.stats-container-vertical .stat-label {
    font-size: 1rem;
}

/* Responsive cho mobile */
@media (max-width: 992px) {
    .hypercube-showcase {
        grid-template-columns: 1fr; /* Chuyển thành 1 cột */
    }
    .showcase-panel.left { order: 2; }
    #hypercube-canvas-container { order: 1; }
    .showcase-panel.right { order: 3; }
    
    #hypercube-canvas-container { height: 350px; }
}
/* Style cho video khi được phóng to trong modal */
#details-modal-content video {
    width: 100%;
    height: auto;
    border-radius: 8px;
    background-color: #000;
}
/* ===== KẾT THÚC: CSS CHO BỐ CỤC HYPERCUBE SHOWCASE ===== */

/* ===== BẮT ĐẦU: NÚT "THAM GIA NGAY" ĐA CHỦ ĐỀ V3 ===== */

#tham-gia-ngay-btn.quantum-gate-button {
    /* --- Các biến màu chung --- */
    --clr-light: #00eaff;
    --clr-dark: #1f2859;
    --clr-bg: #131730;
    --clr-glow: rgba(0, 234, 255, 0.6);

    position: relative;
    padding: 18px 40px;
    margin: 10px;
    font-family: 'ROSNOC', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 2px;
    cursor: pointer;
    background: transparent !important;
    border: none;
    z-index: 1;
    transition: color 0.4s ease, transform 0.1s ease-out;
    line-height: normal;
    text-align: center;
}

/* --- Lớp nền và hình dạng --- */
#tham-gia-ngay-btn.quantum-gate-button::before {
    content: '';
    position: absolute;
    inset: 0;
    border-width: 2px;
    border-style: solid;
    clip-path: polygon(calc(100% - 20px) 0, 100% 20px, 100% calc(100% - 20px), calc(100% - 20px) 100%, 20px 100%, 0 calc(100% - 20px), 0 20px, 20px 0);
    transition: clip-path 0.3s cubic-bezier(0.23, 1, 0.32, 1), background 0.4s ease, border-color 0.4s ease;
}

/* --- Lớp hiệu ứng phát sáng / đổ bóng --- */
#tham-gia-ngay-btn.quantum-gate-button::after {
    content: '';
    position: absolute;
    inset: -5px;
    filter: blur(15px);
    z-index: -1;
    transition: background 0.4s ease, opacity 0.4s ease;
    animation: glow-pulse 5s infinite ease-in-out;
}

/* --- Hiệu ứng tia lửa --- */
#tham-gia-ngay-btn.quantum-gate-button .spark {
    position: absolute; inset: 0; border-radius: 10px; overflow: hidden; z-index: 1;
}
#tham-gia-ngay-btn.quantum-gate-button .spark::before {
    content: ''; position: absolute; width: 80px; height: 150%; top: -25%; left: -100px;
    filter: blur(30px); transform: rotate(20deg); opacity: 0; transition: left 0.5s ease;
}
#tham-gia-ngay-btn.quantum-gate-button .text { position: relative; z-index: 2; }
#tham-gia-ngay-btn.quantum-gate-button:active { transform: scale(0.98) !important; filter: blur(1px); }

/* ================================================= */
/* === STYLE CHO DARK THEME (MẶC ĐỊNH) === */
/* ================================================= */
#tham-gia-ngay-btn.quantum-gate-button {
    color: var(--clr-light);
    text-shadow: 0 0 10px var(--clr-light);
}
#tham-gia-ngay-btn.quantum-gate-button::before {
    background: var(--clr-bg);
    border-color: var(--clr-light);
}
#tham-gia-ngay-btn.quantum-gate-button::after {
    background: linear-gradient(90deg, var(--clr-dark), var(--clr-light));
}
#tham-gia-ngay-btn.quantum-gate-button .spark::before {
    background: white;
}
#tham-gia-ngay-btn.quantum-gate-button:hover {
    color: var(--clr-dark);
    text-shadow: none;
}
#tham-gia-ngay-btn.quantum-gate-button:hover::before {
    clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%, 0 100%, 0 100%, 0 0, 0 0);
}
#tham-gia-ngay-btn.quantum-gate-button:hover .spark::before {
    left: 120%;
    opacity: 0.5;
}

/* ================================================= */
/* === STYLE CHO LIGHT THEME === */
/* ================================================= */
body[data-theme="light"] #tham-gia-ngay-btn.quantum-gate-button {
    color: #2c3e50; /* Màu text đậm */
    text-shadow: none;
}
body[data-theme="light"] #tham-gia-ngay-btn.quantum-gate-button::before {
    background: #ffffff; /* Nền trắng */
    border-color: #2c3e50; /* Viền đậm */
}
body[data-theme="light"] #tham-gia-ngay-btn.quantum-gate-button::after {
    background: #aab8c2; /* Bóng mờ xám nhẹ */
    opacity: 0.7;
}
body[data-theme="light"] #tham-gia-ngay-btn.quantum-gate-button .spark::before {
    background: #2c3e50; /* Tia lửa đậm */
}
body[data-theme="light"] #tham-gia-ngay-btn.quantum-gate-button:hover {
    color: #ffffff; /* Chữ trắng khi hover */
}
body[data-theme="light"] #tham-gia-ngay-btn.quantum-gate-button:hover::before {
    background: #2c3e50; /* Nền đậm khi hover */
    border-color: #2c3e50;
}

/* ================================================= */
/* === STYLE CHO HOLOGRAM THEME === */
/* ================================================= */
body[data-theme="hologram"] #tham-gia-ngay-btn.quantum-gate-button {
    color: #ffffff;
    text-shadow: 0 0 8px #fff, 0 0 15px var(--clr-glow);
    animation: text-glitch-subtle 5s infinite alternate;
}
body[data-theme="hologram"] #tham-gia-ngay-btn.quantum-gate-button::before {
    background: rgba(10, 10, 26, 0.5); /* Nền bán trong suốt */
    border-color: transparent;
    border-image: linear-gradient(90deg, #ff00de, #00eaff) 1; /* Viền cầu vồng */
    animation: border-glitch 4s infinite linear;
}
body[data-theme="hologram"] #tham-gia-ngay-btn.quantum-gate-button::after {
    background: linear-gradient(90deg, #ff00de, #00eaff); /* Vầng sáng cầu vồng */
}
body[data-theme="hologram"] #tham-gia-ngay-btn.quantum-gate-button:hover::before {
    border-image: linear-gradient(90deg, #00eaff, #ff00de) 1;
}

/* --- Keyframes cho các animation --- */
@keyframes glow-pulse { 0% { opacity: 0.7; } 50% { opacity: 1; } 100% { opacity: 0.7; } }
@keyframes text-glitch { 0% { transform: translate(0, 0); } 25% { transform: translate(2px, -2px); } 50% { transform: translate(-2px, 2px); } 75% { transform: translate(2px, 2px); } 100% { transform: translate(0, 0); } }
@keyframes text-glitch-subtle { 0%, 100% { opacity: 1; } 49% { opacity: 1; } 50% { opacity: 0.7; transform: translateX(2px); } 51% { opacity: 1; } }
@keyframes border-glitch { 0% { clip-path: polygon(calc(100% - 20px) 0, 100% 20px, 100% calc(100% - 20px), calc(100% - 20px) 100%, 20px 100%, 0 calc(100% - 20px), 0 20px, 20px 0); } 49% { clip-path: polygon(calc(100% - 20px) 0, 100% 20px, 100% calc(100% - 20px), calc(100% - 20px) 100%, 20px 100%, 0 calc(100% - 20px), 0 20px, 20px 0); } 50% { clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%, 0 100%, 0 calc(100% - 20px), 0 20px, 20px 0); } 51% { clip-path: polygon(calc(100% - 20px) 0, 100% 20px, 100% calc(100% - 20px), calc(100% - 20px) 100%, 20px 100%, 0 calc(100% - 20px), 0 20px, 20px 0); } 100% { clip-path: polygon(calc(100% - 20px) 0, 100% 20px, 100% calc(100% - 20px), calc(100% - 20px) 100%, 20px 100%, 0 calc(100% - 20px), 0 20px, 20px 0); } }

/* ===== KẾT THÚC: NÚT "THAM GIA NGAY" ĐA CHỦ ĐỀ V3 ===== */

/* ===== BẮT ĐẦU: GIAO DIỆN XÁC THỰC THE TERMINAL (V3 - STABLE) ===== */
#details-modal {
    background: transparent;
    border: none;
    box-shadow: none;
    max-width: 450px;
    width: 100%; /* << THÊM DÒNG NÀY */
    border-radius: 0;
}
#details-modal-content {
    max-height: none; /* Gỡ bỏ giới hạn chiều cao tối đa */
    overflow-y: hidden; /* Ẩn thanh cuộn */
    padding: 0; 
}
#details-modal .modal-header { display: none; }

/* --- Container chính của Terminal --- */
.terminal-container {
    --clr-neon: #00eaff;
    --clr-bg: #0a0a1a;
    --clr-text-muted: rgba(0, 234, 255, 0.5);

    padding: 2rem;
    background-color: var(--clr-bg);
    border: 2px solid var(--clr-neon);
    box-shadow: 0 0 15px var(--clr-neon), inset 0 0 15px var(--clr-neon);
    border-radius: 8px;

    /* Nền scanline */
    background-image: repeating-linear-gradient(
        0deg, transparent, transparent 3px, rgba(0, 234, 255, 0.1) 3px, rgba(0, 234, 255, 0.1) 4px
    );
    animation: scanline-move 30s linear infinite;
}
@keyframes scanline-move { from { background-position: 0 0; } to { background-position: 0 100vh; } }

/* --- Tiêu đề & phụ đề --- */
.auth-title {
    font-family: 'monospace', sans-serif;
    color: var(--clr-neon);
    text-align: center;
    font-size: 1.5rem;
    letter-spacing: 2px;
    margin: 0 0 0.5rem 0;
    text-transform: uppercase;
}
.auth-subtitle {
    font-family: 'monospace', sans-serif;
    color: var(--clr-text-muted);
    text-align: center;
    font-size: 0.8rem;
    margin: 0 0 2rem 0;
    text-transform: uppercase;
}

/* --- Bố cục Form bằng Flexbox (Ổn định) --- */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.form-group { width: 100%; }

.form-group input {
    width: 100%;
    padding: 0.75rem;
    background-color: rgba(0, 234, 255, 0.05);
    border: 1px solid var(--clr-text-muted);
    border-radius: 4px;
    color: #fff;
    font-family: 'monospace';
    font-size: 1rem;
    transition: all 0.3s ease;
}
.form-group input::placeholder { color: var(--clr-text-muted); }
.form-group input:focus {
    outline: none;
    border-color: var(--clr-neon);
    background-color: rgba(0, 234, 255, 0.1);
    box-shadow: 0 0 10px var(--clr-neon);
}

/* --- Nút Glitch (giữ nguyên) --- */
.btn-glitch {
    padding: 1rem;
    border: 1px solid var(--clr-neon);
    background: transparent;
    color: var(--clr-neon);
    font-family: 'ROSNOC', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.btn-glitch:hover {
    background: var(--clr-neon);
    color: var(--clr-bg);
    text-shadow: none;
}
.btn-glitch::before, .btn-glitch::after {
    content: attr(data-text);
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--clr-bg); color: var(--clr-neon);
    display: flex; justify-content: center; align-items: center;
    opacity: 0;
}
.btn-glitch:hover::before { animation: glitch-anim 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite; opacity: 1; }
.btn-glitch:hover::after { animation: glitch-anim 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) reverse both infinite; opacity: 1; }

@keyframes glitch-anim {
  0% { transform: translate(0); }
  20% { transform: translate(-3px, 3px); }
  40% { transform: translate(-3px, -3px); }
  60% { transform: translate(3px, 3px); }
  80% { transform: translate(3px, -3px); }
  to { transform: translate(0); }
}

/* --- Các link phụ --- */
.forgot-password, .auth-toggle-link { text-align: center; }
.forgot-password a, .auth-toggle-link, .auth-toggle-link a {
    font-family: 'monospace'; font-size: 0.9rem; color: var(--clr-text-muted);
    text-decoration: none; transition: color 0.3s;
}
.auth-toggle-link a:hover { color: var(--clr-neon); text-decoration: underline; }
.form-message { text-align: center; }
.form-message.error { color: #ff3366; }
.form-message.success { color: var(--clr-neon); }

.terminal-container .auth-modal-flipper { min-height: 480px; }
/* Dán đoạn mã này vào file style-deferred.css */

/* =================================================================== */
/* === MODULE: GIAO DIỆN XÁC THỰC V6 (ĐÃ TÁI CẤU TRÚC)           === */
/* =================================================================== */

/* --- 1. Container chính của Terminal (viết 1 lần) --- */
.terminal-container {
    padding: 2rem;
    background-color: var(--auth-bg);
    border: 2px solid var(--auth-border);
    box-shadow: 0 0 25px var(--auth-glow), inset 0 0 15px var(--auth-glow);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.4s ease; /* Thêm transition để chuyển theme mượt hơn */
}

/* Hiệu ứng scanline đặc trưng cho Hologram */
body[data-theme="hologram"] .terminal-container {
    background-image: repeating-linear-gradient(
        0deg, transparent, transparent 3px, rgba(0, 234, 255, 0.1) 3px, rgba(0, 234, 255, 0.1) 4px
    );
    animation: scanline-move 30s linear infinite;
}

/* --- 2. Các thành phần bên trong (viết 1 lần) --- */
.auth-title {
    color: var(--auth-title-color);
    text-shadow: 0 0 10px var(--auth-glow);
    font-family: 'monospace', sans-serif;
    text-align: center;
    font-size: 1.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0 0 0.5rem 0;
}

.auth-subtitle {
    color: var(--auth-subtitle-color);
    font-family: 'monospace', sans-serif;
    text-align: center;
    font-size: 0.8rem;
    margin: 0 0 2rem 0;
    text-transform: uppercase;
}

.form-group input {
    background-color: var(--auth-input-bg);
    border: 1px solid var(--auth-subtitle-color); /* Dùng màu phụ làm viền */
    color: var(--auth-input-text);
    font-family: 'monospace';
}

.form-group input:focus {
    border-color: var(--auth-border);
    box-shadow: 0 0 10px var(--auth-glow);
}

.btn-glitch {
    border-color: var(--auth-border);
    color: var(--auth-btn-color);
}

.btn-glitch:hover {
    background: var(--auth-btn-bg-hover);
    color: var(--auth-btn-text-hover);
}

.auth-toggle-link a, .forgot-password a {
    color: var(--auth-subtitle-color);
}
.auth-toggle-link a:hover, .forgot-password a:hover {
    color: var(--auth-title-color);
}

/* --- 3. Tinh chỉnh riêng cho Theme LIGHT --- */
/* Theme Light có phong cách khác biệt, nên cần một vài ghi đè nhỏ */
body[data-theme="light"] .terminal-container {
    padding: 2.5rem;
    box-shadow: 0 10px 30px var(--shadow-color);
}
body[data-theme="light"] .auth-title,
body[data-theme="light"] .auth-subtitle,
body[data-theme="light"] .form-group input,
body[data-theme="light"] .btn-glitch,
body[data-theme="light"] .auth-toggle-link,
body[data-theme="light"] .forgot-password a {
    font-family: 'Inter', sans-serif; /* Dùng font chính, không dùng monospace */
}
body[data-theme="light"] .btn-glitch {
    background-color: var(--primary-color);
    border: none;
    border-radius: 6px;
}
body[data-theme="light"] .btn-glitch:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 132, 255, 0.3);
}

/* --- 5. Các style chung cho Form (áp dụng cho mọi theme) --- */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.form-group { width: 100%; }
.form-group input {
    width: 100%;
    padding: 0.75rem;
    border-radius: 4px;
    font-size: 1rem;
    transition: all 0.3s ease;
}
.form-group input:focus {
    outline: none;
}
.forgot-password, .auth-toggle-link { text-align: center; }
.forgot-password a, .auth-toggle-link, .auth-toggle-link a {
    font-family: 'monospace'; font-size: 0.9rem;
    text-decoration: none; transition: color 0.3s;
}
.form-message { text-align: center; height: 18px;}
.form-message.error { color: #ff3366; }
.form-message.success { color: #51cf66; }

/* Thích ứng chiều cao cho form đăng ký dài hơn */
.terminal-container .auth-modal-flipper {
    min-height: 450px;
}
/* ======================================================= */
/* === MODULE: NÂNG CẤP ICON HIỆN MẬT KHẨU (V2)        === */
/* ======================================================= */

/* --- Định vị cho icon --- */
.form-group.password-group {
    position: relative;
}

.password-toggle-robot {
    position: absolute;
    top: 50%; /* Căn giữa theo chiều dọc */
    right: 12px;
    transform: translateY(-50%);
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: color 0.2s ease, transform 0.2s ease;
}

.password-toggle-robot:hover {
    transform: translateY(-50%) scale(1.1);
    color: var(--primary-color);
}

.password-toggle-robot svg {
    width: 100%;
    height: 100%;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Thêm hiệu ứng cho robot "thức dậy" */
.password-toggle-robot.awake svg {
    transform: rotate(15deg) scale(1.1);
}
/* ======================================================= */
/* === MODULE: GIAO DIỆN QUÊN MẬT KHẨU (V1)            === */
/* ======================================================= */

.auth-view {
    /* Mặc định ẩn view này đi */
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95);
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
}

.auth-view.active {
    /* Hiện view ra */
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

/* Ẩn flipper khi view quên mật khẩu hiện ra */
.auth-modal-flipper.hidden {
    display: none;
}

/* Style cho các theme */
body:not([data-theme="light"]):not([data-theme="hologram"]) #forgot-password-view {
    color: var(--clr-nyx-text);
}

body[data-theme="light"] #forgot-password-view {
    color: var(--text-color);
}

body[data-theme="hologram"] #forgot-password-view {
    color: var(--clr-text-muted);
}
/* ======================================================= */
/* === MODULE: BUTTON LOADING EFFECT (V2)              === */
/* ======================================================= */

.btn-glitch {
    position: relative;
    transition: color 0.3s ease;
}

/* Trạng thái loading */
.btn-glitch.loading {
    pointer-events: none; /* Ngăn click nhiều lần */
    color: transparent !important; /* Ẩn màu của text-shadow trên theme hologram */
}
.btn-glitch.loading .btn-text {
    visibility: hidden; /* Ẩn text đi */
}

/* Vòng xoay spinner */
.btn-glitch .spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid currentColor; /* Tự động lấy màu của nút */
    border-top-color: transparent; /* Tạo hiệu ứng xoay */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none; /* Mặc định ẩn */
}

.btn-glitch.loading .spinner {
    display: inline-block; /* Hiện ra khi có class loading */
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}
/* ======================================================= */
/* === NÂNG CẤP CHATBOT BIẾN ĐỔI THEO THEME           === */
/* ======================================================= */

/* --- Cấu trúc chung --- */
.theme-aware-chat .chat-header {
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.4s ease;
}

.chat-avatar-container {
    width: 40px;
    height: 40px;
    transition: all 0.4s ease;
}

.chat-avatar-container svg {
    width: 100%;
    height: 100%;
}

.theme-aware-chat .chat-message.ai-message {
    /* Thêm khoảng trống cho avatar */
    padding-left: 55px;
    position: relative;
    background-color: transparent; /* Nền sẽ được định nghĩa theo theme */
}

/* Thêm avatar vào trước tin nhắn của AI */
.theme-aware-chat .chat-message.ai-message::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 0;
    width: 40px;
    height: 40px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: all 0.4s ease;
}

/* --- Theme 1: LIGHT (Persona: Helios - Vệ Binh Ánh Sáng) --- */
body[data-theme="light"] .theme-aware-chat {
    background-color: #fdfdfd;
    border: 1px solid #e0e0e0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border-radius: 20px;
}
body[data-theme="light"] .chat-header {
    background-color: #f5f5f5;
    color: #4CAF50; /* Xanh lá cây */
}
body[data-theme="light"] .chat-avatar-container svg {
    animation: sun-rotate 20s linear infinite;
}
@keyframes sun-rotate {
    to { transform: rotate(360deg); }
}
body[data-theme="light"] .chat-message.ai-message::before {
    /* Sử dụng SVG mặt trời */
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23FFC107" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="5"></circle><line x1="12" y1="1" x2="12" y2="3"></line><line x1="12" y1="21" x2="12" y2="23"></line><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line><line x1="1" y1="12" x2="3" y2="12"></line><line x1="21" y1="12" x2="23" y2="12"></line><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line></svg>');
}
body[data-theme="light"] .chat-message.ai-message .message-bubble {
    background-color: #e8f5e9; /* Xanh lá nhạt */
    color: #388E3C;
    border-radius: 20px 20px 20px 5px;
}

/* --- Theme 2: DARK (Persona: Nyx - Thực Thể Bóng Đêm) --- */
body:not([data-theme]) .theme-aware-chat { /* Áp dụng cho theme dark mặc định */
    border: 1px solid #8A2BE2; /* Tím đậm */
    box-shadow: 0 0 25px rgba(138, 43, 226, 0.4);
}
body:not([data-theme]) .chat-header {
    background-color: #1e1b2e;
    color: #c792ea; /* Tím lavender */
    border-bottom-color: #8A2BE2;
}
body:not([data-theme]) .chat-avatar-container svg {
    animation: wisp-float 4s ease-in-out infinite;
}
@keyframes wisp-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}
body:not([data-theme]) .chat-message.ai-message::before {
    /* Sử dụng SVG con quỷ/linh hồn */
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="%23c792ea"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm-2-9c-.83 0-1.5.67-1.5 1.5S9.17 14 10 14s1.5-.67 1.5-1.5S10.83 11 10 11zm4 0c-.83 0-1.5.67-1.5 1.5S13.17 14 14 14s1.5-.67 1.5-1.5S14.83 11 14 11zm-4.03 4.97c-1.33.74-2.43 1.88-2.9 3.03H17c-.47-1.15-1.57-2.29-2.9-3.03-1.03-.57-2.17-.57-3.2 0z" opacity="0.8"/></svg>');
}
body:not([data-theme]) .chat-message.ai-message .message-bubble {
    background-color: #2a213c;
    color: #e1c0ff;
    border: 1px solid #4a3c6a;
    border-radius: 10px;
}

/* --- Theme 3: HOLOGRAM (Persona: Unit 734 - ARC AI) --- */
body[data-theme="hologram"] .theme-aware-chat {
    background: rgba(10, 25, 47, 0.75);
    backdrop-filter: blur(10px);
    border: 1px solid var(--primary-color);
    border-radius: 0;
    box-shadow: 0 0 20px var(--accent-glow), inset 0 0 15px rgba(0, 132, 255, 0.2);
}
body[data-theme="hologram"] .chat-header {
    background: transparent;
    color: var(--primary-color);
    font-family: 'monospace';
    border-bottom: 1px solid var(--primary-color);
}
body[data-theme="hologram"] .chat-avatar-container svg {
    animation: robot-glitch 5s steps(1) infinite;
}
@keyframes robot-glitch {
    0%, 48%, 52%, 100% { transform: translate(0, 0); opacity: 1; }
    50% { transform: translate(2px, -2px); opacity: 0.8; }
}
body[data-theme="hologram"] .chat-message.ai-message::before {
     /* Sử dụng SVG robot */
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%2300eaff" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M16 8.33V2H8v6.33M18 9H6a4 4 0 0 0-4 4v2a4 4 0 0 0 4 4h12a4 4 0 0 0 4-4v-2a4 4 0 0 0-4-4z"></path><circle cx="9" cy="14" r="1"></circle><circle cx="15" cy="14" r="1"></circle></svg>');
}
body[data-theme="hologram"] .chat-message.ai-message .message-bubble {
    background: rgba(0, 132, 255, 0.1);
    color: #99ddff;
    border-radius: 0;
    border-left: 3px solid var(--primary-color);
    font-family: 'monospace';
}
/* ======================================================= */
/* === MODULE: NÚT DATA STREAM (KHU VỰC THÀNH VIÊN)    === */
/* ======================================================= */

/* --- 1. Style cơ bản cho nút --- */
.data-stream-button {
    position: relative;
    display: inline-block; /* Để <a> hoạt động như button */
    padding: 12px 28px;
    font-family: 'ROSNOC', sans-serif;
    font-size: 1rem;
    text-decoration: none;
    text-align: center;
    border-width: 2px;
    border-style: solid;
    overflow: hidden;
    z-index: 1;
    transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hiệu ứng nền "luồng dữ liệu" */
.data-stream-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.data-stream-button:hover::before {
    left: 0;
}

/* --- 2. Phiên bản "Primary" (Khu Vực Thành Viên) --- */
.data-stream-button.primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    text-shadow: 0 0 10px var(--accent-glow);
}
.data-stream-button.primary::before {
    background-color: var(--primary-color);
}
.data-stream-button.primary:hover {
    /* Khi hover, màu chữ sẽ là màu nền của trang */
    color: var(--background-color); 
    text-shadow: none;
}

/* --- 3. Phiên bản "Secondary" (Đăng Xuất) --- */
.data-stream-button.secondary {
    color: var(--text-light);
    border-color: var(--text-light);
}
.data-stream-button.secondary::before {
    background-color: var(--text-light);
}
.data-stream-button.secondary:hover {
    color: var(--background-color);
}

/* --- 4. Tùy chỉnh cho Theme Hologram --- */
body[data-theme="hologram"] .data-stream-button {
    text-shadow: 0 0 5px #fff, 0 0 10px var(--accent-glow);
    animation: text-glitch-subtle 4s infinite alternate;
}
body[data-theme="hologram"] .data-stream-button.primary {
    border-image: linear-gradient(45deg, #ff00de, #00eaff) 1;
}
body[data-theme="hologram"] .data-stream-button.primary:hover {
    color: var(--background-color);
    border-image: none; /* Tắt viền gradient khi hover */
    border-color: var(--primary-color);
}
body[data-theme="hologram"] .data-stream-button.secondary {
    border-color: var(--text-light);
    opacity: 0.8;
}
body[data-theme="hologram"] .data-stream-button.secondary:hover {
    opacity: 1;
}
/* ======================================================= */
/* === MODULE: NÂNG CẤP MODAL (ANIMATION & STYLING)    === */
/* ======================================================= */

/* --- Hiệu ứng chung cho Overlay và Modal --- */
#details-modal-overlay {
    transition: opacity 0.4s ease;
}

#details-modal {
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.4s ease;
    transform: scale(0.9);
    opacity: 0;
}

#details-modal-overlay.visible #details-modal {
    transform: scale(1);
    opacity: 1;
}

/* Hiệu ứng khi đóng */
#details-modal-overlay.hiding #details-modal {
    transform: scale(0.9);
    opacity: 0;
}

/* --- Hiệu ứng quét Hologram đặc biệt --- */
body[data-theme="hologram"] #details-modal-overlay.visible #details-modal {
    animation: hologram-scan-in 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes hologram-scan-in {
    from {
        opacity: 0;
        clip-path: inset(100% 0 0 0);
        filter: blur(10px) hue-rotate(90deg);
    }
    to {
        opacity: 1;
        clip-path: inset(0 0 0 0);
        filter: blur(0) hue-rotate(0deg);
    }
}

/* ======================================================= */
/* === MODULE: NÂNG CẤP BỐ CỤC MODAL CHI TIẾT          === */
/* ======================================================= */

/* --- Cấu trúc Grid 2 cột --- */
.modal-grid {
    display: grid;
    grid-template-columns: 1.5fr 2fr; /* Cột ảnh rộng hơn một chút */
    gap: 30px;
    align-items: flex-start;
}

/* --- Cột Hình ảnh --- */
.modal-image-container img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    background-color: var(--surface-color-2);
    border: 1px solid var(--border-color);
    box-shadow: 0 0 20px var(--accent-glow);
}

/* --- Cột Nội dung Chữ --- */
.modal-text-container h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-shadow: 0 0 10px var(--accent-glow);
}

.modal-text-container p {
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 15px;
}

/* --- Thông tin phụ (Tác giả, Thời gian) --- */
.modal-meta-info {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
}

/* --- Responsive cho màn hình nhỏ --- */
@media (max-width: 768px) {
    .modal-grid {
        grid-template-columns: 1fr; /* Chuyển thành 1 cột */
    }
}
/* ======================================================= */
/* === SỬA LỖI: ĐỊNH VỊ CHO MODAL OVERLAY             === */
/* ======================================================= */

#details-modal-overlay {
    position: fixed; /* QUAN TRỌNG: Để lớp phủ nằm trên toàn bộ trang */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 26, 0.8); /* Màu nền mờ */
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000; /* Đảm bảo nằm trên mọi thứ khác */
    
    /* Trạng thái ẩn mặc định */
    opacity: 0;
    visibility: hidden;
    /* transition đã có sẵn từ khối nâng cấp trước, không cần thêm lại */
}

/* Kích hoạt trạng thái hiển thị */
#details-modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}
/* ======================================================= */
/* === MODULE: GIAO DIỆN MODAL CHI TIẾT THÀNH VIÊN (V5 - FINAL) === */
/* ======================================================= */

.modal-member-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.modal-member-avatar {
    width: 180px;
    height: 208px;
    margin-bottom: 25px;
    filter: drop-shadow(0 0 15px var(--accent-glow));
}

.modal-member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.modal-member-details {
    max-width: 600px;
}

.modal-member-name {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 5px;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.modal-member-role {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.modal-member-description {
    /* SỬA LỖI: Đổi sang màu chữ chính để sáng và dễ đọc hơn trên nền tối */
    color: var(--text-color); /* Cũ: var(--text-light) */
    line-height: 1.8;
    transition: color 0.3s ease;
}

/* === TÙY CHỈNH MÀU SẮC & HIỆU ỨNG CHO TỪNG THEME === */

/* --- 1. Tùy chỉnh cho Theme LIGHT (PHONG CÁCH RỰC RỠ) --- */
body[data-theme="light"] .modal-member-name {
    background: linear-gradient(90deg, #007cf0, #00dfd8, #7928ca, #ff0080);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: shine-effect 5s linear infinite;
    text-shadow: none;
}
body[data-theme="light"] .modal-member-role {
    color: #0056b3;
    font-weight: 700;
}
body[data-theme="light"] .modal-member-description {
    color: #efffad; /* Màu đen tuyền để dễ đọc nhất */
}
@keyframes shine-effect {
    to { background-position: 200% center; }
}

/* --- 2. Tùy chỉnh cho Theme HOLOGRAM --- */
body[data-theme="hologram"] .modal-member-name {
    color: #ffffff;
    text-shadow: 0 0 5px #fff, 
                 0 0 15px var(--accent-glow), 
                 2px 0 1px rgba(255, 0, 100, 0.8), 
                 -2px 0 1px rgba(0, 255, 255, 0.8);
}
body[data-theme="hologram"] .modal-member-role {
    color: #00eaff;
}
body[data-theme="hologram"] .modal-member-description {
    color: #c0f5ff; /* Giữ màu sáng đặc trưng của hologram */
}
/* === BẮT ĐẦU: CODE RESPONSIVE CHO THIẾT BỊ DI ĐỘNG === */

/* Áp dụng cho màn hình tablet và nhỏ hơn (dưới 992px) */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem; /* Thu nhỏ tiêu đề chính */
    }

    .container {
        padding: 0 40px;
    }
}


/* Áp dụng cho màn hình điện thoại (dưới 768px) */
@media (max-width: 768px) {
    section {
        padding: 80px 0; /* Giảm khoảng cách giữa các section */
    }

    .section-title {
        font-size: 2.2rem;
        margin-bottom: 50px;
    }
    
    .hero-title {
        font-size: 2.5rem; /* Thu nhỏ tiêu đề chính hơn nữa */
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }

    /* Ẩn các nút ở góc phải, chỉ giữ lại menu tròn */
    .top-right-actions {
        /* Bỏ định vị fixed, cho nó trở thành một phần của layout */
        position: relative;
        top: auto;
        right: auto;
        
        /* Căn giữa các nút và tạo khoảng cách với nội dung phía trên */
        display: flex;
        flex-direction: column; /* Xếp các nút theo chiều dọc */
        align-items: center;
        gap: 15px; /* Khoảng cách giữa các nút */
        margin-top: 40px; /* Khoảng cách với hero-subtitle */
        width: 100%;
    }
    
    /* Cho phép các thẻ thành viên tự xuống dòng */
    .team-level {
        flex-wrap: wrap;
    }
    
    /* Thu nhỏ menu tròn và bán kính bung ra */
    #orbital-container {
        transform: scale(0.8);
        transform-origin: top left;
        /* Điều chỉnh lại vị trí sau khi thu nhỏ */
        top: 20px;
        left: 20px;
    }

    #contact-form {
        padding: 0 15px;
    }
}

/* === KẾT THÚC: CODE RESPONSIVE === */
/* Đoạn code CSS cuối cùng cho mobile */
.hero-content .top-right-actions {
    position: static; /* Ghi đè lại position: fixed của desktop */
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 40px;
    width: 100%;
    
    /* Reset các thuộc tính không cần thiết trên mobile */
    top: auto;
    right: auto;
    z-index: auto;
}
/* ===== BẮT ĐẦU: CSS TỐI ƯU FORM XÁC THỰC CHO MOBILE ===== */

/* Áp dụng cho các màn hình có chiều rộng tối đa là 768px */
@media (max-width: 768px) {

    /* 1. Điều chỉnh kích thước của toàn bộ modal */
    #details-modal-overlay.visible #details-modal {
        width: 90vw; /* Chiều rộng bằng 90% chiều rộng màn hình */
        max-width: 400px; /* Giới hạn chiều rộng tối đa, tránh bị quá to trên tablet */
    }

    /* 2. Giảm padding bên trong form để có thêm không gian */
    .terminal-container {
        /* Giảm padding từ 2rem (32px) xuống 1.5rem (24px) */
        padding: 1.5rem; 
    }

    /* 3. Thu nhỏ font chữ của tiêu đề và phụ đề */
    .auth-title {
        font-size: 1.25rem; /* Giảm từ 1.5rem */
    }

    .auth-subtitle {
        font-size: 0.75rem; /* Giảm từ 0.8rem */
        margin-bottom: 1.2rem; /* Giảm khoảng cách dưới phụ đề một chút */
    }
    
    /* 4. Giảm khoảng cách giữa các trường input */
    .auth-form {
        gap: 1rem; /* Giảm từ 1.5rem */
    }
    .auth-toggle-link {
        display: flex;
        flex-direction: column; /* Xếp các phần tử con theo chiều dọc */
        align-items: center;   /* Căn giữa theo chiều ngang */
        gap: 0.25rem;          /* Tạo khoảng cách nhỏ giữa 2 dòng */
        font-size: 0.9rem;     /* Có thể trả lại font-size gốc */
    }
    .auth-form .auth-toggle-link {
        margin-top: 0.8rem; /* Giảm khoảng cách phía trên link chuyển đổi */
        flex-direction: row; /* Đưa chữ về một hàng */
        flex-wrap: wrap; /* Cho phép xuống dòng nếu màn hình quá hẹp */
        justify-content: center;
        gap: 0.4rem;
    }
    .hero-content .top-right-actions {
        position: static; /* Ghi đè position: fixed từ desktop */
        flex-direction: column;
        align-items: center;
        gap: 15px;
        margin-top: 40px;
        width: 100%;
        
        /* Reset các thuộc tính không cần thiết */
        top: auto;
        right: auto;
        z-index: auto;
    }

    /* 2. Giảm padding của container để có thêm không gian */
    .container {
        padding: 0 20px;
    }

    /* 3. Tối ưu hóa Modal xác thực (Đăng nhập/Đăng ký) */
    #details-modal-overlay.visible #details-modal {
        width: 90vw; /* Chiều rộng bằng 90% màn hình */
        max-width: 400px;
    }
    .terminal-container {
        padding: 1.5rem; /* Giảm padding bên trong form */
    }
    .auth-title {
        font-size: 1.25rem;
    }
    .auth-subtitle {
        font-size: 0.75rem;
        margin-bottom: 1.2rem;
    }
    .auth-form {
        gap: 1rem; /* Giảm khoảng cách giữa các trường input */
    }
    .auth-form .auth-toggle-link {
        margin-top: 0.8rem;
        flex-direction: row;
        flex-wrap: wrap; /* Cho phép xuống dòng nếu màn hình quá hẹp */
        justify-content: center;
        gap: 0.4rem;
    }

    /* 4. Điều chỉnh lại bố cục phần Giới thiệu (About) */
    .hypercube-showcase {
        grid-template-columns: 1fr; /* Chuyển thành 1 cột */
        gap: 30px;
    }
    .showcase-panel.left { order: 2; }
    #hypercube-canvas-container { order: 1; height: 350px; }
    .showcase-panel.right { order: 3; }

    /* 5. Đảm bảo các thẻ thành viên không quá lớn */
    .member-card {
        width: 100%;
        max-width: 260px; /* Giới hạn chiều rộng tối đa */
        height: auto; /* Chiều cao tự động */
    }
}

/* ===== KẾT THÚC: CSS TỐI ƯU FORM XÁC THỰC CHO MOBILE ===== */
/* --- Toast Notification Styling --- */
#toast-notification {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background-color: #ff4757; /* Màu đỏ báo lỗi */
    color: #fff;
    padding: 15px 40px 15px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 9999;
    transform: translateY(200%);
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

#toast-notification.toast-visible {
    transform: translateY(0);
}

#toast-notification p {
    margin: 0;
    font-weight: 500;
}

#toast-close-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
}
/* ===== NÂNG CẤP THANH CUỘN V3: DATA STREAM SCROLLBAR ===== */

/* --- Cấu trúc chung cho Webkit (Chrome, Safari, Edge) --- */
::-webkit-scrollbar {
    width: 14px; /* Tăng độ dày một chút để hiệu ứng rõ hơn */
}

::-webkit-scrollbar-track {
    background-color: var(--surface-color-2); /* Nền tối mờ */
    border-radius: 10px;
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3); /* Đổ bóng vào trong */
}

::-webkit-scrollbar-thumb {
    border-radius: 10px;
    border: 3px solid transparent; /* Tạo khoảng trống với track */
    background-clip: content-box; /* Quan trọng để border hoạt động như padding */
    position: relative; /* Cần thiết cho pseudo-element */
    overflow: hidden; /* Ẩn phần animation tràn ra ngoài */
    background-color: var(--primary-accent); /* Màu nền mặc định */
}

/* Hiệu ứng luồng dữ liệu */
::-webkit-scrollbar-thumb::before {
    content: '';
    position: absolute;
    top: -100%; /* Bắt đầu bên trên */
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient tạo hiệu ứng vạch sáng */
    background: linear-gradient(
        transparent 0%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 100%
    );
    /* Animation di chuyển vạch sáng */
    animation: data-stream-flow 2s linear infinite;
}

@keyframes data-stream-flow {
    from {
        top: -100%;
    }
    to {
        top: 100%;
    }
}

/* --- Tùy chỉnh màu sắc theo Theme --- */

/* Theme DARK (Mặc định) */
:root {
    scrollbar-color: var(--primary-color) var(--surface-color-2); /* Firefox */
}
::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
}

/* Theme LIGHT */
body[data-theme="light"] {
    scrollbar-color: #AAB8C2 var(--surface-color-2); /* Firefox */
}
body[data-theme="light"] ::-webkit-scrollbar-thumb {
    background-color: #AAB8C2; /* Xám xanh nhạt */
}
body[data-theme="light"] ::-webkit-scrollbar-thumb::before {
    background: linear-gradient(
        transparent 0%,
        rgba(0, 0, 0, 0.15) 50%, /* Vạch tối hơn trên nền sáng */
        transparent 100%
    );
}
body[data-theme="light"] ::-webkit-scrollbar-track {
    background-color: #E1E8ED; /* Xám rất nhạt */
     box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.1);
}


/* Theme HOLOGRAM */
body[data-theme="hologram"] {
    scrollbar-color: #00eaff #101024; /* Firefox */
}
body[data-theme="hologram"] ::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ff00de, #00eaff); /* Gradient màu chính */
    box-shadow: 0 0 10px var(--accent-glow);
}
body[data-theme="hologram"] ::-webkit-scrollbar-thumb::before {
    background: linear-gradient(
        transparent 0%,
        rgba(255, 255, 255, 0.5) 50%, /* Vạch trắng sáng hơn */
        transparent 100%
    );
    filter: blur(1px); /* Hơi mờ ảo */
}
body[data-theme="hologram"] ::-webkit-scrollbar-track {
    background-color: #101024;
}

/* === KẾT THÚC NÂNG CẤP THANH CUỘN V3 === */
@media (hover: hover) and (pointer: fine) {
    .password-toggle-robot:hover {
        transform: translateY(-50%) scale(1.1); 
        color: var(--primary-color);
    }
    .forgot-password a:hover {
        color: var(--primary-color);
        text-decoration: underline;
    }
    .card:hover { 
        box-shadow: 0 20px 40px var(--shadow-color); 
    }
    .card:hover .card-content { 
        transform: translateZ(20px); 
    }
    .card:hover h3 { 
        transform: translateZ(50px); 
    }
    .member-card:hover {
        transform: translateY(-10px);
    }
    .member-card:hover .member-card-border {
        border-color: var(--primary-color);
    }
    .member-card:hover .member-card-glow {
        box-shadow: 0 0 30px var(--accent-glow);
    }
    .member-card:hover .member-card-hex-bg {
        transform: translate(-25%, -25%) rotate(15deg);
    }
    .member-card:hover .member-avatar img {
        transform: scale(1.05);
    }
    .timeline-item:hover .timeline-content {
        border-color: var(--primary-color);
        box-shadow: 0 0 25px var(--accent-glow);
        transform: translateY(-8px);
    }
    .timeline-item:hover::after {
        transform: scale(1.2) translateX(var(--translate-fix));
    }
    .transmission-btn:hover {
        color: #fff;
        border-color: var(--primary-color);
        box-shadow: 0 0 25px var(--accent-glow);
    }
    .transmission-btn:hover::before {
        opacity: 1;
    }
    .transmission-btn:hover::after {
        left: 150%;
    }
    .widget:hover {
        animation: none;
        transform: scale(1.05);
        background-color: rgba(0, 132, 255, 0.2);
    }
    .widget:hover::before {
        transform: scale(1.3);
        opacity: 0.8;
        animation: rotate-clockwise 10s linear infinite;
    }
    .widget:hover::after {
        transform: scale(1.6);
        opacity: 0.6;
        animation: rotate-counter-clockwise 10s linear infinite 0.5s;
    }
    .widget:hover svg {
        fill: #fff;
        transform: rotate(15deg);
    }
    .chip:hover {
        background-color: var(--primary-color);
        color: #fff;
    }
    #orbital-toggle:hover {
        transform: scale(1.1);
        box-shadow: 0 0 25px var(--accent-glow);
    }
    #orbital-toggle:hover::before {
        transform: rotate(180deg) scale(1.2);
        opacity: 0.7;
    }
    #orbital-toggle:hover::after {
        transform: rotate(-180deg) scale(1.2);
        opacity: 0.7;
    }
    #orbital-toggle:hover img {
        transform: rotate(-45deg);
    }
    .orbital-link:hover { 
        box-shadow: 0 0 15px var(--accent-glow); 
        border-color: var(--primary-color); 
        color: var(--primary-color); 
    }
    .orbital-link:hover .orbital-label { 
        opacity: 1; 
        visibility: visible; 
    }
    #tham-gia-ngay-btn.quantum-gate-button:hover {
        color: var(--clr-dark);
        text-shadow: none;
    }
    #tham-gia-ngay-btn.quantum-gate-button:hover::before {
        clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%, 0 100%, 0 100%, 0 0, 0 0);
    }
    #tham-gia-ngay-btn.quantum-gate-button:hover .spark::before {
        left: 120%;
        opacity: 0.5;
    }
    body[data-theme="light"] #tham-gia-ngay-btn.quantum-gate-button:hover {
        color: #ffffff;
    }
    body[data-theme="light"] #tham-gia-ngay-btn.quantum-gate-button:hover::before {
        background: #2c3e50;
        border-color: #2c3e50;
    }
    .btn-glitch:hover {
        background: var(--auth-btn-bg-hover);
        color: var(--auth-btn-text-hover);
    }
    .btn-glitch:hover::before { 
        animation: glitch-anim 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite; 
        opacity: 1; 
    }
    .btn-glitch:hover::after { 
        animation: glitch-anim 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) reverse both infinite; 
        opacity: 1; 
    }
    body[data-theme="light"] .btn-glitch:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 15px rgba(0, 132, 255, 0.3);
    }
    .data-stream-button:hover::before {
        left: 0;
    }
    .data-stream-button.primary:hover {
        color: var(--background-color); 
        text-shadow: none;
    }
    .data-stream-button.secondary:hover {
        color: var(--background-color);
    }
    body[data-theme="hologram"] .data-stream-button.primary:hover {
        color: var(--background-color);
        border-image: none;
        border-color: var(--primary-color);
    }
    body[data-theme="hologram"] .data-stream-button.secondary:hover {
        opacity: 1;
    }
}
.context-menu {
    position: fixed;
    z-index: 10000;
    width: 250px;
    background-color: var(--header-bg, rgba(10, 10, 26, 0.8));
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 10px 30px var(--shadow-color);

    /* Hiệu ứng xuất hiện */
    opacity: 0;
    transform: scale(0.95) translateY(-10px);
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    transform-origin: top left;
}

.context-menu.visible {
    opacity: 1;
    transform: scale(1) translateY(0);
    visibility: visible;
}

.context-menu-items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.context-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-light);
}

.context-menu-item svg {
    width: 18px;
    height: 18px;
    stroke: var(--primary-color);
    transition: transform 0.2s ease;
}

.context-menu-item:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.context-menu-item:hover svg {
    stroke: #fff;
    transform: scale(1.1);
}

.context-menu-separator {
    height: 1px;
    background-color: var(--border-color);
    margin: 8px 0;
}
#f12-interceptor-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 26, 0.95);
    backdrop-filter: blur(5px);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#f12-interceptor-overlay.visible {
    opacity: 1;
    visibility: visible;
}

#f12-console {
    font-family: 'monospace', sans-serif;
    color: #00eaff;
    width: 80%;
    max-width: 600px;
    text-align: left;
}

#f12-console-output {
    height: 200px; /* Chiều cao cố định để chứa các dòng text */
    overflow: hidden;
    border: 1px solid var(--auth-border, #00eaff);
    padding: 15px;
    background: rgba(0, 234, 255, 0.05);
}

#f12-console-output p {
    margin: 0 0 10px 0;
    white-space: nowrap;
    overflow: hidden;
    width: 0; /* Bắt đầu với chiều rộng 0 để tạo hiệu ứng gõ chữ */
}

#f12-console-output p.visible {
    animation: typing 2s steps(40, end) forwards;
}

#f12-console-output p .cursor {
    display: inline-block;
    background-color: #00eaff; /* Hoặc màu bạn muốn */
    width: 10px; /* Chiều rộng cursor */
    height: 1.2em; /* Chiều cao tương ứng dòng chữ */
    margin-left: 3px; /* Khoảng cách nhỏ với chữ */
    animation: blink 0.7s infinite;
    vertical-align: bottom; /* Căn cursor theo dòng chữ */
}
@keyframes blink {
    50% { opacity: 0; }
}

#f12-progress-bar-container {
    width: 100%;
    height: 10px;
    border: 1px solid var(--auth-border, #00eaff);
    margin-top: 20px;
    padding: 2px;
}

#f12-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #ff00de, #00eaff);
    box-shadow: 0 0 10px var(--auth-glow, rgba(0, 234, 255, 0.6));
    transition: width 2s ease-out; /* Thời gian chạy của thanh progress */
}

#f12-console-prompt {
    margin-top: 20px;
    text-align: center;
    color: var(--auth-subtitle-color, rgba(0, 234, 255, 0.5));
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

#f12-console-prompt.visible {
    opacity: 1;
}


/* Keyframes cho hiệu ứng */
@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    50% { opacity: 0; }
}
/* ===== BẮT ĐẦU: NÂNG CẤP HIỆU ỨNG CONTEXT MENU ===== */

/* Ẩn các mục menu ban đầu để chuẩn bị cho animation */
.context-menu-item {
    opacity: 0;
}

/* Keyframe cho hiệu ứng xuất hiện */
@keyframes context-item-fade-in {
    from {
        opacity: 0;
        transform: translateX(-15px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Áp dụng animation khi menu hiện ra */
.context-menu.visible .context-menu-item {
    /* Áp dụng animation và tạo hiệu ứng xuất hiện lần lượt */
    animation: context-item-fade-in 0.3s ease-out forwards;
    animation-delay: calc(var(--animation-order, 0) * 40ms);
}

/* ===== KẾT THÚC: NÂNG CẤP HIỆU ỨNG CONTEXT MENU ===== */
/* ===== MODULE: MODAL THÔNG BÁO CẬP NHẬT PWA ===== */

/* Lớp phủ dùng chung với modal chi tiết nhưng có z-index cao hơn nếu cần */
#update-notification-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(10, 10, 26, 0.85); /* Tối hơn một chút */
    backdrop-filter: blur(8px);
    display: flex; justify-content: center; align-items: center;
    opacity: 0; visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

#update-notification-overlay.visible {
    opacity: 1; visibility: visible;
}

#update-notification-modal {
    background-color: var(--surface-color);
    border-radius: 15px;
    padding: 30px 40px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px var(--shadow-color);
    transform: scale(0.9); opacity: 0;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.4s ease, border-color 0.3s ease, background-color 0.3s ease;
}

#update-notification-overlay.visible #update-notification-modal {
    transform: scale(1); opacity: 1;
}

.update-icon-container {
    width: 70px; height: 70px;
    margin: 0 auto 20px auto;
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    background-color: var(--surface-color-2);
    border: 2px solid var(--primary-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.update-icon {
    width: 36px; height: 36px;
    fill: var(--primary-color);
    transition: fill 0.3s ease;
}

#update-notification-title {
    font-family: 'Audiowide', sans-serif;
    color: var(--primary-color);
    font-size: 1.6rem;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

#update-notification-message {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 30px;
    transition: color 0.3s ease;
}

.update-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn-update {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.1s ease;
}

.btn-update:active {
    transform: scale(0.97);
}

.btn-update.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 132, 255, 0.3);
}
.btn-update.btn-primary:hover {
    background-color: #006adc; /* Màu primary đậm hơn */
    box-shadow: 0 6px 20px rgba(0, 132, 255, 0.4);
}

.btn-update.btn-secondary {
    background-color: var(--surface-color-2);
    color: var(--text-light);
    border: 1px solid var(--border-color);
}
.btn-update.btn-secondary:hover {
    background-color: var(--border-color);
    color: var(--text-color);
}

/* --- Tùy chỉnh Icon và Màu sắc theo Theme --- */

/* Theme Light */
body[data-theme="light"] #update-notification-modal {
   border-color: #e0e0e0;
}
body[data-theme="light"] .update-icon-container {
   background-color: #e3f2fd; /* Xanh dương rất nhạt */
   border-color: var(--primary-color);
}
body[data-theme="light"] .update-icon {
   fill: var(--primary-color);
}
body[data-theme="light"] .btn-update.btn-primary {
    box-shadow: 0 4px 15px rgba(0, 132, 255, 0.2);
}
body[data-theme="light"] .btn-update.btn-secondary {
    border-color: #ced4da;
}
body[data-theme="light"] .btn-update.btn-secondary:hover {
    background-color: #e9ecef;
}

/* Theme Hologram */
body[data-theme="hologram"] #update-notification-overlay {
     background-color: rgba(10, 10, 26, 0.9);
}
body[data-theme="hologram"] #update-notification-modal {
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 30px var(--accent-glow), inset 0 0 10px rgba(0, 234, 255, 0.1);
    background: rgba(10, 25, 47, 0.8);
    backdrop-filter: blur(5px);
    animation: hologram-scan-in-update 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards; /* Animation riêng */
}
/* Keyframe animation riêng cho modal update hologram */
@keyframes hologram-scan-in-update {
    from { opacity: 0; transform: translateY(30px) scale(0.95); filter: blur(5px); }
    to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
body[data-theme="hologram"] .update-icon-container {
   background: transparent;
   border-image: linear-gradient(45deg, #ff00de, #00eaff) 1;
   border-width: 2px;
   border-style: solid;
   animation: border-glitch 4s infinite linear; /* Mượn animation từ nút */
}
body[data-theme="hologram"] .update-icon {
   fill: #00eaff; /* Màu icon sáng */
   filter: drop-shadow(0 0 5px #00eaff);
}
body[data-theme="hologram"] #update-notification-title {
   color: #fff;
   text-shadow: 0 0 10px var(--accent-glow);
}
body[data-theme="hologram"] .btn-update.btn-primary {
    background: var(--primary-color);
    color: #0a0a1a;
    box-shadow: 0 0 15px var(--accent-glow);
}
body[data-theme="hologram"] .btn-update.btn-primary:hover {
     box-shadow: 0 0 25px var(--accent-glow);
     background-color: #33ffff; /* Sáng hơn khi hover */
}
body[data-theme="hologram"] .btn-update.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border-color: var(--text-light);
}
body[data-theme="hologram"] .btn-update.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: #fff;
}
/* Thêm vào web/style-deferred.css hoặc web/style.css */
#form-status.success {
    color: #28a745; /* Màu xanh lá */
}
#form-status.error {
    color: #dc3545; /* Màu đỏ */
}

/* Style cho spinner bên trong nút transmission-btn */
.transmission-btn .spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px; /* Điều chỉnh kích thước nếu cần */
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff; /* Màu của vòng xoay */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none; /* Mặc định ẩn */
}
.transmission-btn.loading .spinner {
    display: block;
}
/* Ẩn text khi nút đang loading */
.transmission-btn.loading .btn-text {
    visibility: hidden;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}
