/* ===== VARIABLES ===== */
:root {
    --bg-dark: #050510;
    --bg-darker: #020208;
    --accent-neon: #00ffea;
    --accent-purple: #9d00ff;
    --accent-pink: #ff00cc;
    --accent-blue: #0066ff;
    --accent-green: #00ff88;
    --text-glow: 0 0 20px, 0 0 40px, 0 0 60px;
    --gradient-ai: linear-gradient(135deg, #00ffea 0%, #9d00ff 50%, #ff00cc 100%);
    --gradient-card: linear-gradient(145deg, rgba(20, 20, 40, 0.9), rgba(10, 10, 30, 0.9));
    --grid-color: rgba(0, 255, 234, 0.03);
}

/* ===== BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-dark);
    color: #fff;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* ===== TRADING CHART BACKGROUND WITH CANDLESTICK ANIMATION ===== */
.trading-chart-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(to right, rgba(0, 255, 234, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 255, 234, 0.02) 1px, transparent 1px),
        radial-gradient(circle at 20% 30%, rgba(0, 255, 234, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(157, 0, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255, 0, 204, 0.05) 0%, transparent 50%);
    background-size: 
        80px 80px,
        80px 80px,
        100% 100%,
        100% 100%,
        100% 100%;
    z-index: -3;
    opacity: 0.6;
}

/* ===== CANDLESTICK CHART CANVAS ===== */
#candlestick-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    opacity: 0.08;
    pointer-events: none;
}

/* ===== FLOATING CANDLESTICKS ===== */
.floating-candlestick {
    position: absolute;
    z-index: -1;
    opacity: 0.4;
    transition: all 0.5s ease;
    pointer-events: none;
}

.candlestick-body {
    position: absolute;
    width: 100%;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.candlestick-wick {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    transition: all 0.3s ease;
}

.candlestick-green .candlestick-body {
    background: linear-gradient(180deg, rgba(0, 255, 234, 0.8) 0%, rgba(0, 255, 234, 0.3) 100%);
    box-shadow: 0 0 10px rgba(0, 255, 234, 0.5);
}

.candlestick-green .candlestick-wick {
    background: linear-gradient(180deg, rgba(0, 255, 234, 0.8) 0%, rgba(0, 255, 234, 0.3) 100%);
}

.candlestick-red .candlestick-body {
    background: linear-gradient(180deg, rgba(255, 0, 204, 0.8) 0%, rgba(255, 0, 204, 0.3) 100%);
    box-shadow: 0 0 10px rgba(255, 0, 204, 0.5);
}

.candlestick-red .candlestick-wick {
    background: linear-gradient(180deg, rgba(255, 0, 204, 0.8) 0%, rgba(255, 0, 204, 0.3) 100%);
}

.chart-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(90deg, 
            transparent, 
            transparent 20px, 
            rgba(0, 255, 234, 0.1) 20px, 
            rgba(0, 255, 234, 0.1) 21px
        ),
        repeating-linear-gradient(0deg, 
            transparent, 
            transparent 40px, 
            rgba(157, 0, 255, 0.1) 40px, 
            rgba(157, 0, 255, 0.1) 41px
        );
    opacity: 0.3;
}

/* ===== NEON GLOW EFFECTS ===== */
.neon-glow {
    position: relative;
    z-index: 1;
}

.neon-glow::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-ai);
    border-radius: inherit;
    z-index: -1;
    filter: blur(15px);
    opacity: 0.6;
    animation: pulse-glow 3s ease-in-out infinite;
}

/* ===== PREMIUM HEADER ===== */
.premium-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(5, 5, 16, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 255, 234, 0.2);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-scrolled {
    background: rgba(5, 5, 16, 0.98);
    padding: 10px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* ===== HERO SECTION ===== */
.hero-cyber {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 100px;
}

/* ===== DATA STREAM ANIMATION ===== */
.data-stream {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.stream-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-neon), transparent);
    animation: stream-flow 20s linear infinite;
    filter: blur(1px);
}

/* ===== PREMIUM CARDS ===== */
.cyber-card {
    background: var(--gradient-card);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 255, 234, 0.1);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

.cyber-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--accent-neon);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.6),
        0 0 50px rgba(0, 255, 234, 0.2);
}

/* ===== STATS COUNTER - SMALLER ===== */
.stat-counter {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--gradient-ai);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(0, 255, 234, 0.5);
    line-height: 1;
}

/* ===== PREMIUM BUTTONS ===== */
.cyber-btn {
    background: linear-gradient(135deg, var(--accent-neon), var(--accent-purple));
    color: #000;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

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

.cyber-btn:hover {
    transform: scale(1.05);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(0, 255, 234, 0.4);
}

/* ===== AI CHIP DESIGN ===== */
.ai-chip {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(0, 255, 234, 0.1), rgba(157, 0, 255, 0.1));
    border-radius: 15px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ai-chip::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: conic-gradient(
        from 0deg,
        transparent,
        var(--accent-neon),
        var(--accent-purple),
        var(--accent-pink),
        transparent
    );
    animation: rotate-chip 3s linear infinite;
}

.ai-chip::after {
    content: '';
    position: absolute;
    width: 90%;
    height: 90%;
    background: var(--bg-dark);
    border-radius: 12px;
}

/* ===== FEATURE ICONS ===== */
.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(0, 255, 234, 0.1), rgba(157, 0, 255, 0.1));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
}

.feature-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(0, 255, 234, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.feature-icon:hover::before {
    transform: translateX(100%);
}

/* ===== TESTIMONIAL SECTION ===== */
.testimonial-grid {
    display: grid;
    gap: 20px;
}

.testimonial-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-neon);
}

/* ===== PRICING CARDS - EQUAL HEIGHT ===== */
.pricing-container {
    display: grid;
    gap: 25px;
    align-items: stretch;
}

.pricing-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pricing-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pricing-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-ai);
    color: #000;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    z-index: 2;
    white-space: nowrap;
}

/* ===== PARTNER BROKERS IMAGE UPLOAD SYSTEM ===== */
.partner-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 10px;
}

.upload-placeholder {
    width: 80px;
    height: 80px;
    background: rgba(0, 255, 234, 0.1);
    border: 2px dashed var(--accent-neon);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-placeholder:hover {
    background: rgba(0, 255, 234, 0.2);
    transform: scale(1.05);
}

/* ===== FOOTER ===== */
.premium-footer {
    background: linear-gradient(to bottom, transparent, rgba(5, 5, 16, 0.9));
    border-top: 1px solid rgba(0, 255, 234, 0.1);
    position: relative;
    overflow: hidden;
}

/* ===== ANIMATIONS ===== */
@keyframes gradient-shift {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.1) rotate(90deg); }
    50% { transform: scale(1.05) rotate(180deg); }
    75% { transform: scale(1.1) rotate(270deg); }
}

@keyframes stream-flow {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100vw); }
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

@keyframes rotate-chip {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* ===== CANDLESTICK ANIMATIONS ===== */
@keyframes candlestickFloat {
    0%, 100% { transform: translateY(0) translateX(0); }
    25% { transform: translateY(-10px) translateX(5px); }
    50% { transform: translateY(5px) translateX(-5px); }
    75% { transform: translateY(-5px) translateX(3px); }
}

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

/* ===== RESPONSIVE DESIGN ===== */
/* Mobile First Approach */
@media (max-width: 640px) {
    .stat-counter {
        font-size: 2rem;
    }
    
    .cyber-btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    
    .hero-cyber {
        padding-top: 80px;
    }
    
    .pricing-card {
        padding: 20px;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
    }
    
    .floating-candlestick {
        width: 8px !important;
        margin-left: -4px !important;
    }
    
    #candlestick-canvas {
        opacity: 0.05;
    }
}

@media (min-width: 641px) and (max-width: 768px) {
    .stat-counter {
        font-size: 2.2rem;
    }
    
    .pricing-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .floating-candlestick {
        width: 10px !important;
        margin-left: -5px !important;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .stat-counter {
        font-size: 2.8rem;
    }
    
    .pricing-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1025px) {
    .stat-counter {
        font-size: 3rem;
    }
    
    .pricing-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-ai);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-neon);
}

/* ===== SELECTION ===== */
::selection {
    background: var(--accent-neon);
    color: #000;
}

/* ===== UTILITY CLASSES ===== */
.space-compact {
    margin: 0;
    padding: 0;
}

.equal-height {
    height: 100%;
    min-height: 450px;
}