body {
    background-color: #020617;
    font-family: 'Outfit', sans-serif;
    color: #cbd5e1;
    overflow-x: hidden;
    transition: background-color 0.3s, color 0.3s;
    font-size: 1.15rem;
    line-height: 1.7;
    text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
.font-heading {
    font-family: 'Orbitron', sans-serif;
    line-height: 1.3;
}

/* 1. NEW NEXUS STYLES */
.bg-grid {
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.brand-glow {
    width: 100%;
    max-width: 450px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(45, 212, 191, 0.3)) drop-shadow(0 0 50px rgba(15, 118, 110, 0.2));
    animation: floatGlow 6s ease-in-out infinite;
}

@keyframes floatGlow {

    0%,
    100% {
        transform: translateY(0px) scale(1);
        filter: drop-shadow(0 0 20px rgba(45, 212, 191, 0.3)) drop-shadow(0 0 50px rgba(15, 118, 110, 0.2));
    }

    50% {
        transform: translateY(-15px) scale(1.02);
        filter: drop-shadow(0 0 40px rgba(45, 212, 191, 0.5)) drop-shadow(0 0 80px rgba(15, 118, 110, 0.4));
    }
}

.sphere-card {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.sphere-card:hover {
    transform: translateY(-10px) scale(1.02);
    background: rgba(30, 41, 59, 0.7);
    border-color: #2dd4bf;
    box-shadow: 0 20px 40px -10px rgba(45, 212, 191, 0.2);
}

/* 2. GENERAL UI UTILS */
.glass-card {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: #2dd4bf;
    box-shadow: 0 10px 40px -10px rgba(45, 212, 191, 0.2);
}

.modal {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.modal.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.95);
}

.modal:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-thumb {
    background: #0f766e;
    border-radius: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

#translate-loader {
    backdrop-filter: blur(5px);
    background: rgba(15, 23, 42, 0.8);
    z-index: 9999;
}

.reading-highlight {
    color: #5eead4;
    text-shadow: 0 0 10px rgba(94, 234, 212, 0.8);
    font-weight: 800;
    background: rgba(45, 212, 191, 0.15);
    border-radius: 4px;
    padding: 0 2px;
}

/* FIREWORKS STYLES */
.firework {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    box-shadow: 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff;
    animation: fireworks 1.5s infinite;
}

@keyframes fireworks {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(30);
        opacity: 0;
        box-shadow: 40px -40px #2dd4bf, -40px -40px #2dd4bf, 40px 40px #2dd4bf, -40px 40px #2dd4bf, 0 -60px #2dd4bf, 0 60px #2dd4bf, 60px 0 #2dd4bf, -60px 0 #2dd4bf;
    }
}

/* --- LIGHT MODE OVERRIDES --- */
body.light-mode {
    background-color: #f8fafc;
    color: #334155;
}

body.light-mode .bg-grid {
    background-image: linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
}

body.light-mode .text-white {
    color: #0f172a !important;
}

body.light-mode .text-slate-300 {
    color: #334155 !important;
}

body.light-mode .text-slate-400 {
    color: #475569 !important;
}

body.light-mode .text-slate-500 {
    color: #64748b !important;
}

body.light-mode .bg-slate-900,
body.light-mode .bg-slate-900\/95,
body.light-mode .bg-slate-900\/50,
body.light-mode .bg-black {
    background-color: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

body.light-mode .bg-slate-800,
body.light-mode .bg-slate-800\/50 {
    background-color: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

body.light-mode .bg-slate-950 {
    background-color: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

body.light-mode .sphere-card,
body.light-mode .glass-card {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

body.light-mode .sphere-card:hover,
body.light-mode .glass-card:hover {
    border-color: #0f766e !important;
    box-shadow: 0 20px 40px -10px rgba(15, 118, 110, 0.2) !important;
}

body.light-mode input,
body.light-mode select,
body.light-mode textarea {
    color: #0f172a !important;
    background-color: #ffffff !important;
    border-color: #cbd5e1 !important;
}

body.light-mode .modal.bg-black\/90,
body.light-mode .modal.bg-black\/95,
body.light-mode .modal.bg-black\/10 {
    background-color: rgba(248, 250, 252, 0.85) !important;
}

body.light-mode .bg-gradient-to-r.from-white {
    background-image: linear-gradient(to right, #0f172a, #0f766e, #14b8a6) !important;
}

body.light-mode #chat-window {
    background-color: #ffffff !important;
    border-color: #e2e8f0 !important;
}

body.light-mode #chat-messages {
    background-color: #f8fafc !important;
}

/* 3. SOCIAL & NOTIFICATION SYSTEM (HIVE NETWORK) */
.hero-glass {
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.interaction-bar {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(45, 212, 191, 0.2);
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.5);
    z-index: 50;
}

.intel-toast {
    animation: toastSlideIn 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

@keyframes toastSlideIn {
    from {
        transform: translate(-50%, -150%);
        opacity: 0;
    }

    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

.hive-logo-spin {
    animation: hiveSpin 10s linear infinite;
}

@keyframes hiveSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.comment-card {
    background: rgba(30, 41, 59, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
}

.comment-card:hover {
    background: rgba(30, 41, 59, 0.5);
    border-color: rgba(45, 212, 191, 0.3);
}