* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --void-black: #0a0a0f;
    --deep-purple: #1a0a2e;
    --cosmic-purple: #6b21a8;
    --bright-purple: #7c3aed;
    --accent-orange: #f97316;
    --warm-orange: #fb923c;
    --stellar-white: #e2e8f0;
    --ghost-white: #f1f5f9;
}

body {
    font-family: 'Exo 2', sans-serif;
    background: var(--void-black);
    color: var(--stellar-white);
    overflow-x: hidden;
    min-height: 100vh;
}

.font-orbitron {
    font-family: 'Orbitron', sans-serif;
}

.font-exo {
    font-family: 'Exo 2', sans-serif;
}

/* Background */
.bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    overflow: hidden;
}

.bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: slowRotate 120s linear infinite;
    transform-origin: center center;
    scale: 1.15;
}

.bg-fallback {
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse 80% 60% at 50% 50%, rgba(107, 33, 168, 0.4) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 50% 50%, rgba(249, 115, 22, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse 40% 30% at 50% 50%, rgba(251, 146, 60, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, #000 0%, #000 10%, transparent 11%),
        radial-gradient(ellipse at 50% 50%, #0a0a1a 0%, #050510 100%);
    animation: diskPulse 8s ease-in-out infinite alternate;
}

@keyframes slowRotate {
    from { transform: scale(1.15) rotate(0deg); }
    to { transform: scale(1.15) rotate(360deg); }
}

@keyframes diskPulse {
    0% { filter: brightness(0.8) saturate(1); }
    50% { filter: brightness(1.1) saturate(1.3); }
    100% { filter: brightness(0.9) saturate(1.1); }
}

.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(ellipse at center, rgba(10,10,15,0.5) 0%, rgba(10,10,15,0.85) 100%);
    z-index: 1;
}

/* Glass Cards */
.glass-card {
    background: rgba(10, 10, 20, 0.55);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.5), rgba(249, 115, 22, 0.5), transparent);
}

.glass-card:hover {
    border-color: rgba(124, 58, 237, 0.4);
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.15), 0 0 60px rgba(249, 115, 22, 0.05);
    transform: translateY(-2px);
}

/* LIVE badge */
@keyframes livePulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(239, 68, 68, 0.8); }
    50% { opacity: 0.6; box-shadow: 0 0 20px rgba(239, 68, 68, 0.4); }
}

.live-badge {
    animation: livePulse 1.5s ease-in-out infinite;
    background: #ef4444;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
}

/* Vortex animation */
.vortex-container {
    width: 100px;
    height: 100px;
    position: relative;
}

.vortex-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: vortexSpin 4s linear infinite;
}

.vortex-ring:nth-child(1) {
    width: 90px; height: 90px;
    border-color: rgba(249, 115, 22, 0.6);
    animation-duration: 6s;
}
.vortex-ring:nth-child(2) {
    width: 70px; height: 70px;
    border-color: rgba(124, 58, 237, 0.7);
    animation-duration: 4s;
    animation-direction: reverse;
}
.vortex-ring:nth-child(3) {
    width: 50px; height: 50px;
    border-color: rgba(251, 146, 60, 0.8);
    animation-duration: 3s;
}
.vortex-ring:nth-child(4) {
    width: 30px; height: 30px;
    border-color: rgba(107, 33, 168, 0.9);
    animation-duration: 2s;
    animation-direction: reverse;
}
.vortex-ring:nth-child(5) {
    width: 12px; height: 12px;
    border: none;
    background: radial-gradient(circle, #000 40%, rgba(249, 115, 22, 0.8) 100%);
    animation: none;
}

@keyframes vortexSpin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Gravity well */
.gravity-well {
    width: 160px;
    height: 160px;
    position: relative;
    margin: 0 auto;
}

.grav-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid;
    top: 50%;
    left: 50%;
    animation: gravPull 3s ease-in-out infinite;
}

@keyframes gravPull {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
    50% { transform: translate(-50%, -50%) scale(0.85); opacity: 1; }
}

/* Ticker */
.ticker-wrap {
    overflow: hidden;
    width: 100%;
}

.ticker-content {
    display: flex;
    white-space: nowrap;
    animation: tickerScroll 40s linear infinite;
}

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

/* Card entrance animations */
@keyframes cardEnter {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-enter {
    animation: cardEnter 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    opacity: 0;
}

/* Particles */
.particle {
    position: fixed;
    width: 2px;
    height: 2px;
    background: rgba(124, 58, 237, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

@keyframes floatParticle {
    0% { transform: translate(0, 0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translate(var(--dx), var(--dy)); opacity: 0; }
}

/* Toggle switch */
.unit-toggle {
    position: relative;
    width: 56px;
    height: 28px;
    background: rgba(26, 10, 46, 0.8);
    border-radius: 14px;
    cursor: pointer;
    border: 1px solid rgba(124, 58, 237, 0.3);
    transition: all 0.3s;
}

.unit-toggle.active {
    background: rgba(107, 33, 168, 0.6);
    border-color: rgba(249, 115, 22, 0.5);
}

.unit-toggle-knob {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bright-purple), var(--accent-orange));
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.unit-toggle.active .unit-toggle-knob {
    transform: translateX(28px);
}

/* Forecast icons */
.forecast-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(10, 10, 15, 0.5);
}
::-webkit-scrollbar-thumb {
    background: rgba(124, 58, 237, 0.3);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(124, 58, 237, 0.5);
}

/* Temperature shimmer */
@keyframes tempShimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.temp-shimmer {
    background: linear-gradient(90deg, #fb923c, #f97316, #ef4444, #f97316, #fb923c);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: tempShimmer 3s linear infinite;
}

.temp-cold {
    background: linear-gradient(90deg, #60a5fa, #818cf8, #a78bfa, #818cf8, #60a5fa);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: tempShimmer 3s linear infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .glass-card:hover {
        transform: none;
    }
}