* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a0a2e 50%, #16213e 100%);
    color: #fff;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 140, 0, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.top-banner {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(135deg, #ffd700 0%, #ff9800 100%);
    padding: 15px 20px;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
    margin: -20px -20px 20px -20px;
    animation: bannerSlide 0.5s ease-out;
}

@keyframes bannerSlide {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.banner-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.banner-left {
    flex: 1;
}

.banner-text {
    color: #0a0a1a;
    font-weight: 600;
    font-size: 16px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.banner-right {
    display: flex;
    gap: 10px;
}

.auth-btn {
    padding: 10px 25px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.login-btn {
    background: rgba(10, 10, 26, 0.8);
    color: #ffd700;
    border: 2px solid #0a0a1a;
}

.login-btn:hover {
    background: #0a0a1a;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.register-btn {
    background: #fff;
    color: #0a0a1a;
    border: 2px solid #fff;
}

.register-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 255, 255, 0.4);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 40px rgba(255, 215, 0, 0.1);
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.coin-icon {
    font-size: 50px;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

h1 {
    font-size: 42px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 50%, #ff9800 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
    letter-spacing: 2px;
}

.price-display {
    text-align: right;
}

.current-price {
    font-size: 48px;
    font-weight: 700;
    color: #ffd700;
    text-shadow: 
        0 0 20px rgba(255, 215, 0, 0.8),
        0 0 40px rgba(255, 215, 0, 0.4);
    margin-bottom: 5px;
}

.price-change {
    font-size: 20px;
    font-weight: 600;
}

.price-change.positive {
    color: #00ff88;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.price-change.negative {
    color: #ff4444;
    text-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
}

.stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(255, 215, 0, 0.15);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.stat-item:hover {
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.2);
    transform: translateY(-2px);
}

.stat-label {
    font-size: 14px;
    color: #999;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 24px;
    font-weight: 600;
    color: #ffd700;
}

.chart-controls {
    margin-bottom: 20px;
}

.time-selector {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.time-btn {
    padding: 12px 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 25px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.time-btn:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    transform: translateY(-2px);
}

.time-btn.active {
    background: linear-gradient(135deg, #ffd700 0%, #ff9800 100%);
    border-color: #ffd700;
    color: #0a0a1a;
    box-shadow: 
        0 0 30px rgba(255, 215, 0, 0.5),
        0 5px 15px rgba(0, 0, 0, 0.3);
}

.chart-container {
    background: rgba(255, 255, 255, 0.03);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 40px rgba(255, 215, 0, 0.05);
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    min-height: 600px;
}

canvas {
    max-width: 100%;
}

footer {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 14px;
}

footer p {
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    padding: 10px;
    border-radius: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .top-banner {
        padding: 12px 15px;
    }
    
    .banner-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .banner-text {
        font-size: 14px;
    }
    
    .banner-right {
        width: 100%;
        justify-content: center;
    }
    
    .auth-btn {
        flex: 1;
        max-width: 150px;
    }
    
    header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .price-display {
        text-align: center;
    }
    
    h1 {
        font-size: 32px;
    }
    
    .current-price {
        font-size: 36px;
    }
    
    .time-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Glow animation for active elements */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 215, 0, 0.6);
    }
}

.chart-container {
    animation: glow 3s ease-in-out infinite;
}
