/* ===== MAIN.CSS - HOÀN THIỆN & TỐI ƯU ===== */
/* Version: 1.12.1 - Đã loại bỏ duplicate và đồng bộ hoàn toàn */

/* ===== VARIABLES & RESET ===== */
:root {
    --wave-peak: #ff2e63;
    --wave-trough: #00d4ff;
    --wave-mid: #f7931a;
    --bg-dark: #0a0e17;
    --bg-darker: #050811;
    --text-light: #ffffff;
    --text-glow: rgba(255, 255, 255, 0.8);
    --sensor-blue: #0a1a2a;
    --sensor-purple: #1a0a2a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Segoe UI', 'Arial', sans-serif;
    color: var(--text-light);
    background-color: var(--bg-darker);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    /* cursor: crosshair; */
    touch-action: manipulation;
}

/* ===== NAVIGATION ===== */
.navigation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.5s ease;
}

.navigation.scrolled {
    padding: 15px 0;
    background: rgba(0, 0, 0, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.8em;
    font-weight: 900;
    background: linear-gradient(to right, var(--wave-trough), var(--wave-peak));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-decoration: none;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo i {
    font-size: 1.2em;
}

.nav-menu {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-link {
    color: var(--text-glow);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    padding: 10px 0;
    position: relative;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    min-height: 40px;
    line-height: 1.2;
    gap: 5px;
}

.nav-link:hover {
    color: var(--wave-trough);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--wave-trough), var(--wave-peak));
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: var(--wave-peak);
}

.nav-link.active::after {
    width: 100%;
    background: var(--wave-peak);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5em;
    cursor: pointer;
    padding: 5px;
}

/* Reading List Badge */
.reading-list-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--wave-peak), #ff6b00);
    color: white;
    font-size: 0.7em;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 5px;
    min-width: 18px;
    text-align: center;
    line-height: 1.2;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 10px rgba(255, 107, 0, 0.5);
    animation: pulse 2s infinite;
}

.reading-list-badge-mobile {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, var(--wave-peak), #ff6b00);
    color: white;
    font-size: 0.6em;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--bg-darker);
    box-shadow: 0 0 15px rgba(255, 107, 0, 0.7);
    z-index: 100;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(255, 107, 0, 0.5);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 20px rgba(255, 107, 0, 0.8);
    }
}

/* ===== SENSOR NETWORK BACKGROUND ===== */
.sensor-network {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: 
        radial-gradient(circle at 20% 50%, var(--sensor-blue) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, var(--sensor-purple) 0%, transparent 50%),
        linear-gradient(to bottom, var(--bg-darker), var(--bg-dark));
}

.sensor-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid;
    opacity: 0;
    animation: sensorPulse 8s linear infinite;
}

.ring-1 {
    width: 0;
    height: 0;
    border-color: rgba(0, 212, 255, 0.1);
    animation-delay: 0s;
}

.ring-2 {
    width: 0;
    height: 0;
    border-color: rgba(247, 147, 26, 0.08);
    animation-delay: 2s;
}

.ring-3 {
    width: 0;
    height: 0;
    border-color: rgba(255, 46, 99, 0.06);
    animation-delay: 4s;
}

.ring-4 {
    width: 0;
    height: 0;
    border-color: rgba(0, 212, 255, 0.04);
    animation-delay: 6s;
}

@keyframes sensorPulse {
    0% {
        width: 0;
        height: 0;
        opacity: 0.8;
        border-width: 1px;
    }
    50% {
        opacity: 0.4;
    }
    100% {
        width: 150vmax;
        height: 150vmax;
        opacity: 0;
        border-width: 0.5px;
    }
}

/* Bitcoin Waves */
.bitcoin-waves {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
}

.bitcoin-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%,
        var(--wave-trough) 15%, 
        var(--wave-mid) 35%, 
        var(--wave-peak) 50%, 
        var(--wave-mid) 65%, 
        var(--wave-trough) 85%,
        transparent 100%);
    opacity: 0.1;
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z"/></svg>');
    mask-size: 100% 100%;
    mask-repeat: no-repeat;
    mask-position: bottom;
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z"/></svg>');
    -webkit-mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: bottom;
    will-change: transform;
}

.wave-1 {
    animation: waveMove 20s linear infinite;
    opacity: 0.12;
    z-index: 3;
}

.wave-2 {
    animation: waveMove 25s linear infinite;
    opacity: 0.08;
    height: 95%;
    z-index: 2;
}

.wave-3 {
    animation: waveMove 30s linear infinite;
    opacity: 0.05;
    height: 90%;
    z-index: 1;
}

@keyframes waveMove {
    0% {
        transform: translateX(0) translateY(0);
    }
    100% {
        transform: translateX(-50%) translateY(8px);
    }
}

/* Energy Particles */
.energy-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: var(--wave-trough);
    opacity: 0;
}

.particle:nth-child(odd) {
    background: var(--wave-peak);
}

/* Bitcoin Visualization */
.bitcoin-visualization {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 100px;
    z-index: 1;
    opacity: 0.3;
}

/* ===== MAIN CONTENT ===== */
.content-container {
    position: relative;
    z-index: 5;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    justify-content: center;
}

/* ===== LOGO CONTAINER - HOÀN CHỈNH ===== */
.logo-container {
    text-align: center;
    margin-bottom: 50px;
    background: rgba(0, 0, 0, 0.7);
    padding: 30px 50px 40px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    margin-top: 100px;
    transition: border-color 1.5s ease, box-shadow 1.5s ease;
}

.logo-container.peak-active {
    border-color: var(--wave-peak);
    box-shadow: 0 0 30px rgba(255, 46, 99, 0.3);
}

.logo-container.dip-active {
    border-color: var(--wave-trough);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
}

/* Logo Wave Effect */
.logo-wave-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%,
        var(--wave-trough) 20%, 
        var(--wave-mid) 40%, 
        var(--wave-peak) 60%, 
        var(--wave-mid) 80%, 
        var(--wave-trough) 100%,
        transparent 100%);
    opacity: 0.05;
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".25"/><path d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z" opacity=".5"/><path d="M0,0V5.63C149.93,59,314.09,71.78,475.83,42.57,579.44,21.88,696.24,4.83,811.54,14.89c86.85,7.51,172.7,44.29,250.66,81.28,19.67,9.33,40.14,19.75,62,28.77C1148.49,98.48,1200,50.54,1200,0Z"/></svg>');
    mask-size: 100% 100%;
    mask-repeat: no-repeat;
    mask-position: bottom;
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".25"/><path d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z" opacity=".5"/><path d="M0,0V5.63C149.93,59,314.09,71.78,475.83,42.57,579.44,21.88,696.24,4.83,811.54,14.89c86.85,7.51,172.7,44.29,250.66,81.28,19.67,9.33,40.14,19.75,62,28.77C1148.49,98.48,1200,50.54,1200,0Z"/></svg>');
    -webkit-mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: bottom;
    animation: logoWaveMove 15s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes logoWaveMove {
    0% {
        transform: translateX(0) translateY(0);
    }
    100% {
        transform: translateX(-25%) translateY(5px);
    }
}


/* Logo Content */
.logo-content {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.logo {
    font-size: 3.5em;
    margin: 0;
    line-height: 1.2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.logo-main {
    font-size: 1em;
    font-weight: 900;
    background: linear-gradient(to right, var(--wave-trough), var(--wave-peak));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 2px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoGlow {
    0%, 100% {
        text-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    }
    50% {
        text-shadow: 0 0 40px rgba(255, 46, 99, 0.5);
    }
}

.tagline-seo {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.35em !important;
    font-weight: 400 !important;
    color: var(--text-glow) !important;
    letter-spacing: 0.5px !important;
    line-height: 1.5 !important;
    opacity: 0.95 !important;
    width: 100%;
    max-width: 800px;
    margin-top: 5px;
}

.tagline-line1 {
    display: block;
    text-align: center;
    white-space: nowrap;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    margin-bottom: 3px;
    color: rgba(255, 255, 255, 0.9);
}

.tagline-line2 {
    display: block;
    text-align: center;
    white-space: nowrap;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    color: var(--wave-trough);
    font-weight: 500;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

/* AI Badge */
.ai-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--wave-trough), var(--wave-mid), var(--wave-peak));
    background-size: 200% 200%;
    color: white;
    padding: 10px 25px;
    border-radius: 25px;
    font-size: 1em;
    font-weight: bold;
    letter-spacing: 2px;
    margin-top: 5px;
    position: relative;
    z-index: 2;
    transition: all 0.8s ease;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    animation: badgeBreathing 3s ease-in-out infinite;
}

.ai-badge.peak-mode {
    background: linear-gradient(135deg, var(--wave-peak), #ff6b00);
    animation: badgePeak 1.5s ease infinite;
}

.ai-badge.dip-mode {
    background: linear-gradient(135deg, var(--wave-trough), #0066ff);
    animation: badgeDip 1.5s ease infinite;
}

@keyframes badgeBreathing {
    0%, 100% {
        opacity: 0.9;
        transform: scale(1);
        background-position: 0% 50%;
    }
    50% {
        opacity: 1;
        transform: scale(1.02);
        background-position: 100% 50%;
        box-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
    }
}

@keyframes badgePeak {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 46, 99, 0.5); }
    50% { box-shadow: 0 0 40px rgba(255, 46, 99, 0.8); }
}

@keyframes badgeDip {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 212, 255, 0.5); }
    50% { box-shadow: 0 0 40px rgba(0, 212, 255, 0.8); }
}

/* ===== DETECTION MESSAGES - TẤT CẢ CÁC TRẠNG THÁI ===== */
.detection-messages {
    width: 100%;
    margin-top: 20px;
    position: relative;
    z-index: 2;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.detection-message {
    font-size: 1.8em;
    font-weight: 900;
    text-align: center;
    text-shadow: 0 0 15px currentColor;
    transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    width: 100%;
    padding: 12px 20px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    opacity: 0;
    pointer-events: none;
    left: 50%;
    transform: translateX(-50%);
    border: 1px solid transparent;
}

/* Tất cả các trạng thái detection */
.peak-detection {
    color: var(--wave-peak);
    border-color: rgba(255, 46, 99, 0.3);
    box-shadow: 0 0 20px rgba(255, 46, 99, 0.2);
}

.dip-detection {
    color: var(--wave-trough);
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.analysing-detection {
    color: var(--wave-mid);
    border-color: rgba(247, 147, 26, 0.3);
    box-shadow: 0 0 20px rgba(247, 147, 26, 0.2);
}

.signal-detection {
    color: #9c27b0;
    border-color: rgba(156, 39, 176, 0.3);
    box-shadow: 0 0 20px rgba(156, 39, 176, 0.2);
}

.warning-detection {
    color: #ff9800;
    border-color: rgba(255, 152, 0, 0.3);
    box-shadow: 0 0 20px rgba(255, 152, 0, 0.2);
}

.detection-message.active {
    opacity: 1;
    animation: messagePulse 2s ease-in-out infinite;
}

/* Mobile styles - TẤT CẢ CÁC TRẠNG THÁI */
@media (max-width: 768px) {
    .detection-messages {
        min-height: 60px;
        margin-top: 15px;
    }
    
    .detection-message {
        font-size: 1.4em;
        padding: 8px 15px;
        width: 95%;
        border-radius: 30px;
    }
}

@media (max-width: 580px) {
    .detection-message {
        font-size: 1.3em;
    }
}

@media (max-width: 480px) {
    .detection-messages {
        min-height: 50px;
    }
    
    .detection-message {
        font-size: 1.2em;
        padding: 6px 12px;
    }
}

@media (max-width: 380px) {
    .detection-message {
        font-size: 1.1em;
    }
}

@media (max-width: 340px) {
    .detection-message {
        font-size: 1em;
    }
}

@keyframes messagePulse {
    0%, 100% {
        transform: translateX(-50%) scale(1);
        text-shadow: 0 0 15px currentColor;
    }
    50% {
        transform: translateX(-50%) scale(1.02);
        text-shadow: 0 0 25px currentColor, 0 0 35px currentColor;
    }
}

/* ===== STATUS INDICATOR - TẤT CẢ CÁC TRẠNG THÁI ===== */
.status-indicator {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 100;
    background: rgba(0, 0, 0, 0.7);
    padding: 15px 30px;
    border-radius: 50px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.5s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.status-indicator.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(20px);
}

.status-light {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    animation: statusPulse 4s infinite alternate;
    transition: opacity 1.5s ease, background-color 1.5s ease;
}

.status-peak {
    background: var(--wave-peak);
}

.status-dip {
    background: var(--wave-trough);
}

/* Tất cả các trạng thái có thể có */
.status-text[data-status="peak"] { color: var(--wave-peak); }
.status-text[data-status="dip"] { color: var(--wave-trough); }
.status-text[data-status="analysing"] { color: var(--wave-mid); }
.status-text[data-status="signal"] { color: #9c27b0; }
.status-text[data-status="warning"] { color: #ff9800; }
.status-text[data-status="error"] { color: #f44336; }
.status-text[data-status="success"] { color: #4CAF50; }
.status-text[data-status="loading"] { color: #9c27b0; }
.status-text[data-status="offline"] { color: #757575; }

.status-text {
    font-size: 1.2em;
    font-weight: bold;
    letter-spacing: 2px;
    transition: opacity 1.5s ease, color 1.5s ease;
}

/* Mobile styles - TẤT CẢ CÁC TRẠNG THÁI */
@media (max-width: 768px) {
    .status-indicator {
        bottom: 20px;
        padding: 10px 20px;
        gap: 12px;
        max-width: 95%;
        width: auto;
    }
    
    .status-light {
        width: 12px;
        height: 12px;
        flex-shrink: 0;
    }
    
    .status-text {
        font-size: 1em;
        font-weight: 600;
        white-space: nowrap;
        letter-spacing: 0.5px;
        line-height: 1.2;
    }
}

@media (max-width: 580px) {
    .status-text {
        font-size: 0.95em;
    }
}

@media (max-width: 480px) {
    .status-indicator {
        bottom: 15px;
        padding: 8px 16px;
        gap: 8px;
    }
    
    .status-text {
        font-size: 0.9em;
    }
    
    .status-light {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 380px) {
    .status-text {
        font-size: 0.85em;
    }
}

@media (max-width: 340px) {
    .status-text {
        font-size: 0.8em;
    }
}

@keyframes statusPulse {
    0%, 100% {
        box-shadow: 0 0 10px currentColor;
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 20px currentColor;
        transform: scale(1.1);
    }
}

/* ===== FEATURES ===== */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    width: 100%;
    margin: 50px 0;
}

.feature-card {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.8s ease;
    text-align: center;
    transform: translateY(0);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--wave-mid);
    box-shadow: 0 15px 30px rgba(247, 147, 26, 0.2);
}

.feature-icon {
    font-size: 3em;
    margin-bottom: 20px;
    background: linear-gradient(to right, var(--wave-trough), var(--wave-peak));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.feature-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--text-light);
}

.feature-desc {
    color: var(--text-glow);
    line-height: 1.6;
}

/* ===== PROBLEM CONTAINER ===== */
.problem-container {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

.problem-card {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.problem-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00d4ff, #ff4d4d, transparent);
    animation: scan 3s linear infinite;
}

@keyframes scan {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.problem-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(0, 212, 255, 0.3);
    position: relative;
    animation: radarPulse 2s ease infinite;
}

.problem-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(0, 212, 255, 0.5);
    animation: radarRing 2s ease-out infinite;
}

.problem-icon::after {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    border-radius: 50%;
    border: 1px solid rgba(255, 77, 77, 0.3);
    animation: radarRing 3s ease-out infinite;
}

.problem-icon i {
    font-size: 2.5em;
    color: #00d4ff;
    filter: drop-shadow(0 0 15px rgba(0, 212, 255, 0.7));
    transform: rotate(-45deg);
    animation: radarSweep 4s linear infinite;
}

@keyframes radarPulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(0, 212, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0); }
}

@keyframes radarRing {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

@keyframes radarSweep {
    0% { transform: rotate(-45deg); }
    25% { transform: rotate(45deg); }
    50% { transform: rotate(135deg); }
    75% { transform: rotate(225deg); }
    100% { transform: rotate(315deg); }
}

.problem-title {
    color: #ffffff;
    font-size: 1.5em;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.problem-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 30px;
}

.problem-desc.second {
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
    border-left: 3px solid #ff4d4d;
    padding-left: 15px;
    text-align: left;
    background: rgba(255, 77, 77, 0.05);
    border-radius: 0 8px 8px 0;
}

.problem-desc.third {
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.9);
    font-style: normal;
    border-left: 3px solid #00d4ff;
    padding-left: 15px;
    text-align: left;
    background: rgba(0, 212, 255, 0.05);
    border-radius: 0 8px 8px 0;
    font-weight: 500;
}

.problem-desc .highlight-text {
    color: #ff4d4d;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(255, 77, 77, 0.3);
}

.problem-desc .highlight-blue {
    color: #00d4ff;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(0, 212, 255, 0.3);
}

/* Insights Grid */
.problem-insights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.insight-card {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    padding: 20px;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.insight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.insight-peakdip {
    border-top: 3px solid #00d4ff;
}

.insight-regime {
    border-top: 3px solid #ffd700;
}

.insight-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-weight: 600;
}

.insight-peakdip .insight-header {
    color: #00d4ff;
}

.insight-regime .insight-header {
    color: #ffd700;
}

.insight-list {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

.insight-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95em;
    margin-bottom: 10px;
}

.insight-list li i {
    width: 20px;
    color: #00d4ff;
    font-size: 0.9em;
}

.insight-regime-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1em;
    font-weight: 600;
    margin: 10px 0;
    padding: 10px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.insight-footer {
    margin-top: 15px;
    text-align: center;
}

.badge-risk {
    background: rgba(0, 212, 255, 0.15);
    color: #00d4ff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.badge-mastery {
    background: rgba(255, 215, 0, 0.15);
    color: #ffd700;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.problem-note {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.problem-note i {
    color: #ff4d4d;
    font-size: 0.7em;
}

/* ===== PREVIEW SECTIONS ===== */
.about-preview,
.product-preview {
    width: 100%;
    margin: 50px 0;
}

/* Process Card */
.process-card {
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
}

.process-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: left 0.7s;
}

.process-card:hover::before {
    left: 100%;
}

.process-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Strategy Preview Card */
.strategy-preview-card {
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.strategy-preview-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.strategy-preview-card:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    animation: slideShine 1.5s ease;
}

@keyframes slideShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Buttons */
.learn-more-btn,
.explore-product-btn {
    display: inline-block;
    color: white;
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.learn-more-btn {
    background: linear-gradient(to right, var(--wave-trough), var(--wave-peak));
}

.explore-product-btn {
    background: linear-gradient(to right, var(--wave-trough), #9c27b0);
}

.learn-more-btn:hover,
.explore-product-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.explore-product-btn:hover {
    background: linear-gradient(to right, #9c27b0, var(--wave-peak));
}

/* ===== CHANNELS ===== */
.channels {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    margin: 50px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    background: linear-gradient(to right, var(--wave-trough), var(--wave-peak));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.channel-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    border-radius: 12px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.5s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    width: 100%;
    min-height: 70px;
    line-height: 1.2;
}

.channel-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.channel-btn:hover::before {
    left: 100%;
}

.channel-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-telegram { background: #0088cc; }
.btn-discord { background: #7289da; }
.btn-beincom { background: linear-gradient(to right, #4CAF50, #2E7D32); }

/* X.com Button */
.btn-xcom {
    background: #000000 !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 15px !important;
    padding: 20px !important;
    border-radius: 12px !important;
    text-decoration: none !important;
    font-weight: bold !important;
    font-size: 1.1em !important;
    transition: all 0.5s ease !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    cursor: pointer !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
    width: 100% !important;
    min-height: 70px !important;
    line-height: 1.2 !important;
}

.btn-xcom i {
    color: #ffffff !important;
    font-size: 1.5em !important;
    font-style: normal !important;
    font-weight: bold !important;
    font-family: 'Arial', sans-serif !important;
    background: transparent !important;
    width: auto !important;
    height: auto !important;
    display: inline-block !important;
    margin: 0 !important;
    line-height: 1 !important;
}

.btn-xcom i::before {
    content: "X" !important;
    font-size: 1.3em !important;
    font-weight: bold !important;
    display: inline-block !important;
}

.btn-xcom:hover {
    background: #333333 !important;
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
}

.btn-xcom:hover i {
    color: #ffffff !important;
    transform: scale(1.1) !important;
}

/* Đồng bộ icon cho các nút */
.btn-telegram i,
.btn-discord i,
.btn-beincom i,
.btn-xcom i {
    font-size: 1.5em !important;
    width: 24px !important;
    text-align: center !important;
}

/* ===== FOOTER ===== */
#pageFooter {
    text-align: center;
    margin-top: 60px;
    padding: 40px 20px 20px;
    width: 100%;
    color: var(--text-glow);
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 20px 20px 0 0;
    border-top: 1px solid rgba(0, 212, 255, 0.2);
    position: relative;
    overflow: hidden;
    animation: footerFadeIn 0.8s ease forwards;
}

#pageFooter::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--wave-trough), 
        var(--wave-mid), 
        var(--wave-peak), 
        var(--wave-trough), 
        transparent);
    opacity: 0.5;
    animation: footerGlow 4s infinite;
}

@keyframes footerGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

@keyframes footerFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer Brand */
.footer-brand {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.footer-brand::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--wave-trough), var(--wave-peak), var(--wave-trough), transparent);
    border-radius: 2px;
}

.brand-name {
    font-size: 1.8em;
    font-weight: 900;
    background: linear-gradient(135deg, var(--wave-trough), var(--wave-peak), #9c27b0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    padding: 0 20px;
}

.brand-name::before,
.brand-name::after {
    content: '⚡';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8em;
    opacity: 0.7;
    color: var(--wave-trough);
}

.brand-name::before {
    left: -5px;
}

.brand-name::after {
    right: -5px;
}

.brand-tagline {
    color: var(--text-glow);
    font-size: 0.95em;
    font-weight: 400;
    letter-spacing: 1px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
    position: relative;
    padding: 0 15px;
}

.brand-tagline::before {
    content: '“';
    position: absolute;
    left: -5px;
    top: -5px;
    font-size: 1.5em;
    color: var(--wave-trough);
    opacity: 0.5;
}

.brand-tagline::after {
    content: '”';
    position: absolute;
    right: -5px;
    bottom: -5px;
    font-size: 1.5em;
    color: var(--wave-peak);
    opacity: 0.5;
}

/* Copyright text */
#pageFooter > p:first-child {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95em;
    letter-spacing: 1px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-block;
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer Contact */
.footer-contact {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin: 0 auto 25px;
    padding: 10px 0;
    border: none;
    background: transparent;
}

.footer-contact-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.footer-contact-item i {
    font-size: 1.1em;
    transition: all 0.3s ease;
}

.footer-contact-item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.95em;
    font-weight: 500;
    transition: all 0.3s ease;
}

/* Email */
.footer-contact-item:has(.fa-envelope) i {
    color: #fbbc04;
}

.footer-contact-item:has(.fa-envelope):hover {
    border-color: #fbbc04;
    background: rgba(251, 188, 4, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(251, 188, 4, 0.2);
}

.footer-contact-item:has(.fa-envelope):hover i {
    color: #fbbc04;
    transform: scale(1.1);
}

/* LinkedIn */
.footer-contact-item:has(.fa-linkedin) i {
    color: #0077b5;
}

.footer-contact-item:has(.fa-linkedin):hover {
    border-color: #0077b5;
    background: rgba(0, 119, 181, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 119, 181, 0.2);
}

.footer-contact-item:has(.fa-linkedin):hover i {
    color: #0077b5;
    transform: scale(1.1);
}

/* Telegram */
.footer-contact-item:has(.fa-telegram) i {
    color: #0088cc;
}

.footer-contact-item:has(.fa-telegram):hover {
    border-color: #0088cc;
    background: rgba(0, 136, 204, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 136, 204, 0.2);
}

.footer-contact-item:has(.fa-telegram):hover i {
    color: #0088cc;
    transform: scale(1.1);
}

/* X.com */
.footer-contact-item:has(.fa-x-twitter) {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.footer-contact-item:has(.fa-x-twitter) i {
    color: #ffffff;
    font-size: 1.1em;
    transition: all 0.3s ease;
    background: #000000;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-style: normal;
    font-weight: bold;
    font-family: 'Arial', sans-serif;
}

.footer-contact-item:has(.fa-x-twitter) i::before {
    content: "X";
    font-size: 0.9em;
}

.footer-contact-item:has(.fa-x-twitter) a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.95em;
    font-weight: 500;
    transition: all 0.3s ease;
}

.footer-contact-item:has(.fa-x-twitter):hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
    animation: xPulseWhite 1.5s infinite;
}

.footer-contact-item:has(.fa-x-twitter):hover i {
    color: #000000;
    background: #ffffff;
    transform: scale(1.1);
}

.footer-contact-item:has(.fa-x-twitter):hover a {
    color: #ffffff;
}

@keyframes xPulseWhite {
    0%, 100% {
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.7);
    }
}

/* Footer Links */
.footer-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin: 25px 0 15px;
    flex-wrap: wrap;
    padding: 20px 0 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 500;
    padding: 5px 0;
    position: relative;
    transition: all 0.3s ease;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--wave-trough), var(--wave-mid));
    transition: width 0.3s ease;
}

.footer-link:hover {
    color: white;
}

.footer-link:hover::after {
    width: 100%;
}

.footer-link.active {
    color: var(--wave-trough);
    font-weight: 600;
}

.footer-link.active::after {
    width: 100%;
    background: var(--wave-trough);
}

/* Disclaimer */
.disclaimer {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin: 30px 0;
    font-size: 0.9em;
    border-left: 4px solid var(--wave-mid);
}

/* ===== SENSOR ALERT ===== */
.sensor-alert {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.alert-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid;
    opacity: 0;
    transform: translate(-50%, -50%);
    animation: alertExpand 1.5s ease-out forwards;
}

@keyframes alertExpand {
    0% {
        width: 0;
        height: 0;
        opacity: 0.9;
        border-width: 3px;
    }
    50% {
        opacity: 0.6;
        border-width: 2px;
    }
    100% {
        width: 150vmax;
        height: 150vmax;
        opacity: 0;
        border-width: 1px;
    }
}

/* ===== INTERACTIVE BACKGROUND ===== */
.interactive-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    cursor: default;  /* Đổi thành default */
    touch-action: manipulation;
}

/* ===== NO DATA STATES ===== */
.no-data-container {
    text-align: center;
    padding: 60px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    border: 2px dashed rgba(255, 255, 255, 0.1);
    margin: 30px 0;
}

.no-data-container i {
    font-size: 4em;
    color: var(--wave-mid);
    opacity: 0.5;
    margin-bottom: 20px;
}

.no-data-container h3 {
    color: var(--text-light);
    font-size: 1.8em;
    margin-bottom: 15px;
}

.no-data-container p {
    color: var(--text-glow);
    font-size: 1.1em;
    max-width: 600px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.no-data-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.no-data-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.no-data-btn.primary {
    background: linear-gradient(to right, var(--wave-trough), var(--wave-mid));
    color: white;
}

.no-data-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.no-data-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* ===== CSV ERROR STATES ===== */
.csv-error {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.csv-error-header {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #f44336;
    margin-bottom: 15px;
}

.csv-error-header i {
    font-size: 1.5em;
}

.csv-error-body {
    color: var(--text-glow);
    font-size: 0.95em;
    line-height: 1.5;
}

.csv-error-body code {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: monospace;
    color: var(--wave-trough);
}

/* ===== PWA STYLES ===== */
.update-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: linear-gradient(to right, var(--wave-trough), #9c27b0);
    color: white;
    padding: 15px;
    border-radius: 10px;
    z-index: 10000;
    box-shadow: 0 5px 25px rgba(0,0,0,0.3);
    animation: slideUp 0.3s ease;
    backdrop-filter: blur(10px);
    max-width: 500px;
    margin: 0 auto;
}

.update-content {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.update-content i {
    font-size: 1.5em;
}

.update-btn {
    background: white;
    color: #00d4ff;
    border: none;
    padding: 8px 20px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    margin-left: auto;
    transition: all 0.3s ease;
}

.update-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,255,255,0.2);
}

.close-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

.install-prompt {
    position: fixed;
    bottom: 80px;
    left: 20px;
    right: 20px;
    background: linear-gradient(to right, var(--wave-trough), #9c27b0);
    color: white;
    padding: 15px;
    border-radius: 10px;
    z-index: 10000;
    box-shadow: 0 5px 25px rgba(0,0,0,0.3);
    animation: slideUp 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    max-width: 500px;
    margin: 0 auto;
}

.install-content {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.install-content i {
    font-size: 1.5em;
    color: white;
}

.install-content span {
    flex: 1;
    font-size: 1.1em;
}

.install-btn {
    background: white;
    color: #00d4ff;
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1em;
}

.install-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,255,255,0.3);
}

.dismiss-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.dismiss-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

.offline-indicator {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #ff9800;
    color: white;
    text-align: center;
    padding: 8px;
    font-size: 0.9em;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    animation: slideDown 0.3s ease;
}

.offline-indicator i {
    font-size: 1.1em;
}

/* Standalone mode adjustments */
@media (display-mode: standalone) {
    .navigation {
        padding-top: env(safe-area-inset-top);
    }
    
    .status-indicator {
        bottom: calc(30px + env(safe-area-inset-bottom));
    }
    
    .content-container {
        padding-top: calc(40px + env(safe-area-inset-top));
    }
}

@media (display-mode: fullscreen) {
    .navigation {
        padding-top: 20px;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(100%);
        opacity: 0;
    }
}

/* ===== DROPDOWN MENU ===== */
.nav-item.dropdown {
    position: relative;
}

.nav-link.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.dropdown-arrow {
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.nav-item.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(10, 14, 23, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 16px;
    padding: 15px 0;
    min-width: 350px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1000;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 212, 255, 0.1);
    margin-top: 5px;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: rgba(10, 14, 23, 0.98);
    border-left: 1px solid rgba(0, 212, 255, 0.2);
    border-top: 1px solid rgba(0, 212, 255, 0.2);
    rotate: 45deg;
    backdrop-filter: blur(20px);
}

.nav-item.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 10px;
}

.dropdown-header i {
    font-size: 1.3em;
    color: var(--wave-trough);
    background: rgba(0, 212, 255, 0.1);
    padding: 8px;
    border-radius: 12px;
}

.dropdown-header span {
    color: var(--text-light);
    font-weight: 600;
    font-size: 1.1em;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(to right, var(--wave-trough), var(--wave-peak));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.dropdown-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 12px 20px;
    color: var(--text-glow);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: slideIn 0.3s ease forwards;
    opacity: 0;
    transform: translateY(-10px);
}

.dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--wave-trough), var(--wave-peak));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dropdown-item:hover {
    background: rgba(0, 212, 255, 0.05);
    padding-left: 25px;
}

.dropdown-item:hover::before {
    opacity: 1;
}

.dropdown-item i {
    font-size: 1.2em;
    color: var(--wave-mid);
    min-width: 24px;
    text-align: center;
    margin-top: 3px;
}

.dropdown-item .item-content {
    flex: 1;
}

.dropdown-item .item-title {
    display: block;
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.95em;
    margin-bottom: 4px;
}

.dropdown-item .item-desc {
    display: block;
    color: var(--text-glow);
    font-size: 0.8em;
    opacity: 0.7;
    line-height: 1.4;
}

.dropdown-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0, 212, 255, 0.3), transparent);
    margin: 12px 20px;
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== MOBILE MENU - CĂN PHẢI ===== */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(0, 212, 255, 0.1));
        border: 1px solid rgba(0, 212, 255, 0.3);
        border-radius: 14px;
        color: var(--wave-trough);
        font-size: 1.4em;
        cursor: pointer;
        z-index: 1002;
        position: relative;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(0, 212, 255, 0.2);
        margin-left: auto !important;
        margin-right: 0 !important;
    }
    
    .nav-container {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        padding: 0 20px !important;
    }
    
    .nav-logo {
        margin-right: auto !important;
        font-size: 1.5em !important;
    }
    
    .nav-menu {
        position: fixed !important;
        top: 80px !important;
        right: 10px !important;
        left: auto !important;
        width: auto !important;
        min-width: 250px !important;
        max-width: calc(100% - 20px) !important;
        transform: translateY(-150%) !important;
        opacity: 0 !important;
        visibility: hidden !important;
        background: rgba(10, 14, 23, 0.98) !important;
        backdrop-filter: blur(20px) !important;
        border: 1px solid rgba(0, 212, 255, 0.3) !important;
        border-radius: 20px !important;
        padding: 16px !important;
        flex-direction: column !important;
        gap: 8px !important;
        transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) !important;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 212, 255, 0.3) !important;
        z-index: 1001 !important;
        pointer-events: none !important;
        max-height: calc(100vh - 120px) !important;
        overflow-y: auto !important;
    }
    
    .nav-menu.active {
        transform: translateY(0) !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: all !important;
    }
    
    .nav-menu .nav-item {
        width: 100% !important;
        margin: 0 !important;
        list-style: none;
    }
    
    .nav-menu .nav-link {
        display: flex !important;
        align-items: center !important;
        padding: 14px 18px !important;
        border-radius: 14px !important;
        font-size: 1.1em !important;
        color: rgba(255, 255, 255, 0.9) !important;
        background: rgba(255, 255, 255, 0.03) !important;
        width: 100% !important;
        border: 1px solid rgba(255, 255, 255, 0.05) !important;
        transition: all 0.3s ease !important;
        font-weight: 500 !important;
        letter-spacing: 0.3px !important;
        text-decoration: none !important;
        min-height: auto;
    }
    
    .nav-menu .nav-link i {
        width: 28px !important;
        margin-right: 14px !important;
        color: var(--wave-trough) !important;
        font-size: 1.3em !important;
        flex-shrink: 0 !important;
        text-align: center !important;
        transition: all 0.3s ease !important;
    }
    
    .nav-menu .nav-link:hover {
        background: rgba(0, 212, 255, 0.2) !important;
        color: white !important;
        border-color: var(--wave-trough) !important;
        transform: translateX(8px) !important;
        box-shadow: 0 5px 15px rgba(0, 212, 255, 0.2) !important;
    }
    
    .nav-menu .nav-link.active {
        background: linear-gradient(135deg, rgba(0, 212, 255, 0.25), rgba(0, 212, 255, 0.15)) !important;
        color: white !important;
        border-left: 4px solid var(--wave-trough) !important;
        border-color: var(--wave-trough) !important;
        box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3) !important;
        transform: translateX(0) !important;
    }
    
    .nav-menu .nav-link.active i {
        color: white !important;
        transform: scale(1.1) !important;
    }
    
    .nav-menu .nav-link.active:hover {
        background: linear-gradient(135deg, rgba(0, 212, 255, 0.35), rgba(0, 212, 255, 0.25)) !important;
        transform: translateX(0) !important;
    }
    
    .nav-menu .nav-link.active::after {
        display: none !important;
    }
    
    .reading-list-badge {
        margin-left: auto !important;
        padding: 4px 10px !important;
        font-size: 0.85em !important;
        min-width: 26px !important;
        height: 26px !important;
        background: linear-gradient(135deg, var(--wave-peak), #ff6b00) !important;
        color: white !important;
        border-radius: 13px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border: 2px solid rgba(255, 255, 255, 0.4) !important;
        box-shadow: 0 0 15px rgba(255, 107, 0, 0.5) !important;
        font-weight: bold !important;
    }
    
    .nav-menu.active .nav-item {
        animation: slideInMenuItem 0.3s ease forwards;
        opacity: 0;
        transform: translateX(-10px);
    }
    
    .nav-menu.active .nav-item:nth-child(1) { animation-delay: 0.05s; }
    .nav-menu.active .nav-item:nth-child(2) { animation-delay: 0.1s; }
    .nav-menu.active .nav-item:nth-child(3) { animation-delay: 0.15s; }
    .nav-menu.active .nav-item:nth-child(4) { animation-delay: 0.2s; }
    .nav-menu.active .nav-item:nth-child(5) { animation-delay: 0.25s; }
    .nav-menu.active .nav-item:nth-child(6) { animation-delay: 0.3s; }
    
    @keyframes slideInMenuItem {
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
    
    /* Dropdown mobile */
    .nav-item.dropdown {
        position: static;
    }
    
    .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        min-width: 100%;
        margin: 10px 0;
        box-shadow: none;
        border: 1px solid rgba(0, 212, 255, 0.1);
        background: rgba(0, 0, 0, 0.5);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease;
    }
    
    .nav-item.dropdown.active .dropdown-menu {
        max-height: 600px;
    }
    
    .dropdown-menu::before {
        display: none;
    }
    
    .dropdown-arrow {
        transition: transform 0.3s ease;
    }
    
    .nav-item.dropdown.active .dropdown-arrow {
        transform: rotate(180deg);
    }
    
    .dropdown-item {
        padding: 15px 25px;
    }
    
    .dropdown-item .item-desc {
        font-size: 0.85em;
    }
    
    /* Safe area support */
    @supports (padding-top: env(safe-area-inset-top)) {
        .nav-menu {
            top: calc(80px + env(safe-area-inset-top)) !important;
            right: calc(10px + env(safe-area-inset-right)) !important;
            max-height: calc(100vh - 120px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;
        }
    }
}

/* Mobile very small */
@media (max-width: 480px) {
    .nav-menu {
        right: 5px !important;
        min-width: 220px !important;
        padding: 12px !important;
    }
    
    .nav-menu .nav-link {
        padding: 12px 14px !important;
        font-size: 1em !important;
    }
    
    .nav-menu .nav-link i {
        width: 24px !important;
        margin-right: 10px !important;
        font-size: 1.2em !important;
    }
    
    .footer-contact {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .footer-contact-item {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
    
    .footer-links {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .footer-link {
        font-size: 0.8em;
        text-align: center;
    }
}

@media (max-width: 380px) {
    .nav-menu {
        right: 5px !important;
        max-width: 280px !important;
    }
    
    .nav-menu .nav-link {
        padding: 8px 14px !important;
        font-size: 0.9em !important;
    }
    
    .nav-menu .nav-link i {
        width: 20px !important;
        margin-right: 10px !important;
    }
}

/* ===== BODY MENU OPEN ===== */
body.menu-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
    touch-action: none !important;
}

body.menu-open .status-indicator {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: opacity 0.3s ease, visibility 0.3s ease !important;
}


/* ===== TOAST NOTIFICATIONS ===== */
.toast-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--wave-trough), var(--wave-mid));
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10000;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 2px solid white;
    animation: slideUp 0.3s ease;
    max-width: 90%;
}

.toast-success {
    background: linear-gradient(135deg, #4CAF50, #45a049);
}

.toast-warning {
    background: linear-gradient(135deg, #ff9800, #f57c00);
}

.toast-error {
    background: linear-gradient(135deg, #f44336, #d32f2f);
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
}

/* ===== PUSH NOTIFICATION BUTTON ===== */
.push-simple-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #00d4ff, #f7931a);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 9999;
    box-shadow: 0 4px 15px rgba(0,212,255,0.3);
    border: 2px solid white;
    transition: all 0.3s ease;
    animation: slideInRight 0.5s ease;
}

.push-simple-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,212,255,0.5);
}

.push-simple-btn.enabled {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .push-simple-btn {
        bottom: 10px;
        right: 10px;
        padding: 10px 15px;
    }
    .push-simple-btn span {
        display: none;
    }
    .push-simple-btn i {
        font-size: 20px;
    }
}

/* ===== MOBILE DEVICE - TẮT HIỆU ỨNG NẶNG ===== */
body.mobile-device .sensor-ring,
body.mobile-device .bitcoin-waves .bitcoin-wave,
body.mobile-device .energy-particles .particle,
body.mobile-device .bitcoin-visualization .bitcoin-wave {
    animation: none !important;
    opacity: 0.1 !important;
    display: none;
}

body.mobile-device .sensor-network {
    background: var(--bg-darker);
}

body.mobile-device .logo-wave-effect {
    animation: none !important;
    opacity: 0.05 !important;
}

body.mobile-device .ai-badge {
    animation: none !important;
    box-shadow: none !important;
}

body.mobile-device .status-light {
    animation: none !important;
}

body.mobile-device .status-indicator {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

body.mobile-device .feature-card,
body.mobile-device .learn-card,
body.mobile-device .product-card {
    transform: none !important;
    transition: none !important;
}

/* ===== RESPONSIVE TỔNG THỂ ===== */
@media (max-width: 768px) {
    .logo-container {
        min-height: 280px;
        padding: 20px 30px 30px;
        margin-top: 80px;
    }
    
    .logo {
        font-size: 2.5em;
        gap: 6px;
    }
    
    .tagline-seo {
        font-size: 0.32em !important;
        max-width: 500px;
    }
    
    .tagline-line1,
    .tagline-line2 {
        white-space: normal;
        padding: 0 5px;
    }
    
    .ai-badge {
        font-size: 0.9em;
        padding: 8px 20px;
        letter-spacing: 1.5px;
    }
    
    .detection-message {
        font-size: 1.4em;
        padding: 10px 15px;
    }
    
    .detection-messages {
        min-height: 70px;
    }
    
    .features {
        gap: 15px;
        margin: 30px 0;
        grid-template-columns: 1fr;
    }
    
    .feature-card {
        padding: 20px 15px;
    }
    
    .feature-title {
        font-size: 1.3em;
    }
    
    .feature-desc {
        font-size: 0.95em;
    }
    
    .section-title {
        font-size: 2em;
    }
    
    .channels {
        padding: 30px 20px;
    }
    
    .channels-grid {
        gap: 12px !important;
    }
    
    .channel-btn {
        padding: 15px !important;
        font-size: 1em !important;
        min-height: 55px !important;
    }
    
    .footer-contact {
        gap: 12px;
        padding: 10px 0;
    }
    
    .footer-contact-item {
        padding: 6px 12px;
        font-size: 0.9em;
    }
    
    .footer-links {
        gap: 12px;
        padding: 15px 0 10px;
    }
    
    .footer-link {
        font-size: 0.8em;
        padding: 3px 0;
    }
    
    .disclaimer {
        padding: 15px;
        font-size: 0.85em;
    }
    
    .problem-insights {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .problem-title {
        font-size: 1.3em;
    }
    
    .problem-desc {
        font-size: 1em;
    }
    
    .problem-icon {
        width: 60px;
        height: 60px;
    }
    
    .problem-icon i {
        font-size: 2em;
    }
}

@media (max-width: 480px) {
    .logo-container {
        min-height: 260px;
        padding: 15px 20px 25px;
    }
    
    .logo {
        font-size: 2em;
        gap: 5px;
    }
    
    .tagline-seo {
        font-size: 0.3em !important;
        max-width: 350px;
    }
    
    .tagline-line1,
    .tagline-line2 {
        font-size: 0.95em;
    }
    
    .ai-badge {
        font-size: 0.8em;
        padding: 6px 15px;
        letter-spacing: 1px;
    }
    
    .detection-message {
        font-size: 1.2em;
        padding: 8px 12px;
    }
    
    .detection-messages {
        min-height: 60px;
        margin-top: 15px;
    }
    
    .feature-card {
        padding: 15px 12px;
    }
    
    .feature-icon {
        font-size: 2.2em;
    }
    
    .feature-title {
        font-size: 1.2em;
    }
    
    .feature-desc {
        font-size: 0.9em;
    }
    
    .section-title {
        font-size: 1.3em;
    }
}

@media (max-width: 380px) {
    .logo {
        font-size: 1.8em;
    }
    
    .tagline-seo {
        font-size: 0.28em !important;
    }
    
    .ai-badge {
        font-size: 0.75em;
        padding: 5px 12px;
    }
    
    .detection-message {
        font-size: 1.1em;
    }
}

/* ===== UTILITY CLASSES ===== */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

/* Particle animations */
@keyframes particleFloat {
    0% {
        transform: translateY(0) translateX(0);
    }
    100% {
        transform: translateY(-100vh) translateX(var(--particle-x, 100px));
    }
}

@keyframes particleFade {
    0%, 100% {
        opacity: 0;
    }
    10%, 90% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
}

/* Bitcoin pulse */
@keyframes bitcoinPulse {
    0%, 100% {
        height: 30%;
        filter: blur(5px);
    }
    50% {
        height: 70%;
        filter: blur(10px);
    }
}

.interactive-background {
    pointer-events: none !important;
    cursor: default !important;
}

/* Footer Build Info */
.footer-build-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 15px 0 20px;
    padding: 10px 20px;
    background: rgba(0, 212, 255, 0.05);
    border-radius: 30px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    flex-wrap: wrap;
    font-size: 0.9em;
    backdrop-filter: blur(5px);
}

.footer-build-info div {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-glow);
}

.footer-build-info i {
    color: var(--wave-trough);
    font-size: 1em;
}

.footer-build-info .build-version span {
    color: var(--wave-trough);
    font-weight: bold;
    background: rgba(0, 212, 255, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.footer-build-info .build-date span,
.footer-build-info .build-time span {
    color: rgba(255, 255, 255, 0.9);
}

/* Hover effect */
.footer-build-info:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--wave-trough);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
    transition: all 0.3s ease;
}

.footer-build-info:hover i {
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .footer-build-info {
        gap: 15px;
        padding: 8px 15px;
        font-size: 0.8em;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-build-info div {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer-build-info {
        gap: 10px;
        padding: 8px 10px;
    }
    
    .footer-build-info div {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ===== MOBILE: ẨN FEATURES, ABOUT PREVIEW, PRODUCT PREVIEW, KNOWLEDGE BASE ===== */
@media (max-width: 768px) {
    .features,
    #about-preview,
    .about-preview,
    #product-preview,
    .product-preview,
    .learn-header,
    .learn-grid,
    .recent-posts {
        display: none !important;
    }
}

/* ===== RESPONSIVE COLLAPSE - HỖ TRỢ NAVIGATION V3 ===== */
/* Text variants cho responsive collapse */
.nav-text.full {
    display: inline;
}

.nav-text.short {
    display: none;
}

/* Desktop normal (1200px+) - giữ nguyên */
@media (min-width: 1200px) {
    .nav-text.full {
        display: inline;
    }
    .nav-text.short {
        display: none;
    }
}

/* Tablet (992px - 1199px) - hiển thị short text */
@media (min-width: 992px) and (max-width: 1199px) {
    .nav-text.full {
        display: none !important;
    }
    .nav-text.short {
        display: inline !important;
    }
}

/* Desktop nhỏ (768px - 991px) - chỉ icon */
@media (min-width: 768px) and (max-width: 991px) {
    .nav-text.full,
    .nav-text.short {
        display: none !important;
    }
    
    /* Đảm bảo reading list badge hiển thị đúng */
    .reading-list-item {
        position: relative;
    }
    
    .reading-list-item .reading-list-badge {
        position: absolute;
        top: -4px;
        right: -6px;
        margin-left: 0;
    }
}

/* Mobile (max-width: 767px) - hiển thị full text */
@media (max-width: 767px) {
    .nav-text.full {
        display: inline !important;
    }
    .nav-text.short {
        display: none !important;
    }
}


