/* ═══ CINEMATIC SPACE AESTHETIC ═══ */

:root {
    --bg-base: #050816;
    --bg-secondary: #0b1023;
    --accent-orange: #ff6a00;
    --accent-amber: #ff9d2f;
    --text-main: #f4f7fb;
    --glass: rgba(11, 16, 35, 0.65);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glow-orange: 0 0 20px rgba(255, 106, 0, 0.3);
    --glow-orange-intense: 0 0 40px rgba(255, 106, 0, 0.5);
}

/* Base Reset */
body {
    background-color: var(--bg-base);
    color: var(--text-main);
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
}

/* Glassmorphism */
.glass {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
}

.glass-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Organic Energy Structures (Plasma/Nebula) */
.energy-nebula {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at 50% 50%, rgba(11, 16, 35, 1) 0%, rgba(5, 8, 22, 1) 100%);
}

.energy-nebula::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: 
        radial-gradient(circle at 30% 40%, rgba(255, 106, 0, 0.1), transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(255, 157, 47, 0.08), transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(0, 102, 255, 0.05), transparent 60%);
    filter: blur(100px);
    animation: nebula-evolve 30s ease-in-out infinite alternate;
}

@keyframes nebula-evolve {
    0% { transform: rotate(0deg) scale(1); opacity: 0.6; }
    50% { transform: rotate(10deg) scale(1.1); opacity: 1; }
    100% { transform: rotate(-5deg) scale(1.05); opacity: 0.8; }
}

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

/* Buttons with Glow */
.btn-glow {
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-amber));
    box-shadow: var(--glow-orange);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-glow:hover {
    box-shadow: var(--glow-orange-intense);
    transform: translateY(-2px) scale(1.02);
}

.btn-glow:active {
    transform: translateY(0) scale(0.98);
}

/* Gradient Text */
.text-glow {
    background: linear-gradient(135deg, #fff 0%, var(--accent-amber) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(255, 157, 47, 0.3));
}

/* Animations */
.animate-reveal {
    opacity: 0;
    transform: translateY(30px);
    animation: reveal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* Scroll Reveal */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Product Cards */
.product-card {
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(255, 106, 0, 0.2);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.6);
}

.product-card img {
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover img {
    transform: scale(1.1);
}

/* Forms */
.form-input {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
}

.form-input:focus {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-orange);
    box-shadow: 0 0 15px rgba(255, 106, 0, 0.1);
    outline: none;
}

/* Tighten global spacing */
section {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}

.py-32 { padding-top: 6rem !important; padding-bottom: 6rem !important; }
.py-48 { padding-top: 8rem !important; padding-bottom: 8rem !important; }
.mb-20 { margin-bottom: 4rem !important; }
.mb-16 { margin-bottom: 3rem !important; }

/* Redesign Stats / Admin Tables */
.admin-table-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 2rem;
    overflow: hidden;
}

.admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.admin-table th {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.25rem 1.5rem;
    text-transform: uppercase;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.2em;
    color: var(--accent-orange);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-table td {
    padding: 1.25rem 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 0.85rem;
}

.admin-table tr:hover td {
    background: rgba(255, 255, 255, 0.01);
}

/* ═══ PREMIUM ANIMATIONS ═══ */

/* Float Animation */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* Glow Pulse */
@keyframes glow-pulse {
    0% { box-shadow: 0 0 10px rgba(255, 106, 0, 0.2); }
    50% { box-shadow: 0 0 30px rgba(255, 106, 0, 0.5); }
    100% { box-shadow: 0 0 10px rgba(255, 106, 0, 0.2); }
}

.glow-pulse {
    animation: glow-pulse 3s infinite;
}

/* Shimmer Effect */
@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.shimmer-mask {
    position: relative;
    overflow: hidden;
}

.shimmer-mask::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.05),
        transparent
    );
    animation: shimmer 2s infinite;
}

/* Page Transitions */
.fade-in-blur {
    animation: fadeInBlur 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInBlur {
    0% { opacity: 0; filter: blur(10px); transform: scale(0.95); }
    100% { opacity: 1; filter: blur(0); transform: scale(1); }
}

/* Scroll Reveal Tweaks */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(5px);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* ═══ MOBILE INTENSITY UPGRADE ═══ */
@media (max-width: 768px) {
    .energy-nebula::after {
        animation: nebula-evolve 15s ease-in-out infinite alternate;
        filter: blur(60px);
        background: 
            radial-gradient(circle at 30% 40%, rgba(255, 106, 0, 0.2), transparent 50%),
            radial-gradient(circle at 70% 60%, rgba(255, 157, 47, 0.15), transparent 50%),
            radial-gradient(circle at 50% 50%, rgba(0, 102, 255, 0.1), transparent 60%);
    }

    .animate-float {
        animation: float 4s ease-in-out infinite;
    }

    h1 {
        text-shadow: 0 0 30px rgba(255, 106, 0, 0.3);
    }

    .glass-card {
        border-color: rgba(255, 106, 0, 0.1);
    }
}
