/* ========================================================
   Ultra-Premium Cyberpunk / SaaS UI Effects
   RGB Animations, Grid / Grip Matrix Mesh & Glassmorphism
   ======================================================== */

:root {
    --rgb-primary: #3b82f6;
    --rgb-secondary: #8b5cf6;
    --rgb-accent: #ec4899;
}

/* Futuristic Cyber Grid / Grip Background Effect */
.cyber-grid {
    background-color: #030712;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 36px 36px;
    background-position: center center;
    position: relative;
}

.cyber-grid::before {
    content: '';
    position: fixed; inset: 0; z-index: 0;
    background: radial-gradient(circle at 50% 40%, transparent 10%, #030712 85%);
    pointer-events: none !important;
}

/* Floating RGB Aurora Blobs */
@keyframes floatBlob1 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(40px, -60px) scale(1.15);
    }
    66% {
        transform: translate(-30px, 30px) scale(0.95);
    }
}

@keyframes floatBlob2 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(-50px, 40px) scale(1.1);
    }
    66% {
        transform: translate(40px, -40px) scale(0.9);
    }
}

@keyframes rgbGradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.blob-1 {
    animation: floatBlob1 12s ease-in-out infinite;
}

.blob-2 {
    animation: floatBlob2 15s ease-in-out infinite reverse;
}

/* Animated RGB Neon Border */
.rgb-border-box {
    position: relative;
    border-radius: 1.75rem;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 
        0 20px 50px -10px rgba(0, 0, 0, 0.8),
        0 0 30px -5px rgba(59, 130, 246, 0.15),
        0 0 40px -10px rgba(236, 72, 153, 0.15);
    z-index: 1;
}

.rgb-border-box::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: calc(1.75rem + 2px);
    padding: 2px;
    background: linear-gradient(
        135deg, 
        rgba(59, 130, 246, 0.6), 
        rgba(168, 85, 247, 0.2), 
        rgba(236, 72, 153, 0.6), 
        rgba(59, 130, 246, 0.2)
    );
    background-size: 300% 300%;
    animation: rgbGradientShift 8s ease infinite;
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events-none !important;
    z-index: -1;
}

/* Flash highlight on new real-time row */
@keyframes rowFlash {
    0% { background-color: rgba(16, 185, 129, 0.4); }
    100% { background-color: transparent; }
}
.row-flash {
    animation: rowFlash 2.5s ease-out;
}

/* RGB Glowing Button */
.btn-rgb-glow {
    position: relative;
    background: linear-gradient(90deg, #2563eb, #7c3aed, #db2777, #2563eb);
    background-size: 300% 100%;
    animation: rgbGradientShift 6s linear infinite;
    transition: all 0.3s ease;
}

.btn-rgb-glow:hover {
    box-shadow: 
        0 0 25px rgba(37, 99, 235, 0.5),
        0 0 35px rgba(219, 39, 119, 0.3);
    transform: translateY(-1px);
}

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

/* Input Focus Glow */
.input-rgb-focus {
    transition: all 0.25s ease;
}

.input-rgb-focus:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25), 0 0 15px rgba(99, 102, 241, 0.1);
}

/* ========================================================
   Logo Glowing Border Effects (Admin Configurable)
   ======================================================== */
.logo-glow-box {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    padding: 2px;
    background: rgba(15, 23, 42, 0.8);
    transition: all 0.3s ease;
}

/* RGB Rainbow Aurora Glow Border */
@keyframes rgbLogoGlow {
    0%, 100% {
        border-color: #6366f1;
        box-shadow: 0 0 14px rgba(99, 102, 241, 0.7), 0 0 28px rgba(168, 85, 247, 0.4), inset 0 0 8px rgba(99, 102, 241, 0.3);
    }
    33% {
        border-color: #06b6d4;
        box-shadow: 0 0 16px rgba(6, 182, 212, 0.75), 0 0 32px rgba(59, 130, 246, 0.45), inset 0 0 8px rgba(6, 182, 212, 0.3);
    }
    66% {
        border-color: #ec4899;
        box-shadow: 0 0 18px rgba(236, 72, 153, 0.75), 0 0 36px rgba(244, 63, 94, 0.45), inset 0 0 8px rgba(236, 72, 153, 0.3);
    }
}
.logo-glow-rgb {
    border: 2px solid #6366f1;
    animation: rgbLogoGlow 5s ease-in-out infinite;
}

/* Cyber Cyan & Purple Pulse Glow */
@keyframes cyberLogoGlow {
    0%, 100% {
        border-color: #06b6d4;
        box-shadow: 0 0 15px rgba(6, 182, 212, 0.8), 0 0 30px rgba(99, 102, 241, 0.4), inset 0 0 8px rgba(6, 182, 212, 0.3);
    }
    50% {
        border-color: #a855f7;
        box-shadow: 0 0 22px rgba(168, 85, 247, 0.85), 0 0 40px rgba(99, 102, 241, 0.5), inset 0 0 10px rgba(168, 85, 247, 0.35);
    }
}
.logo-glow-cyber {
    border: 2px solid #06b6d4;
    animation: cyberLogoGlow 3.5s ease-in-out infinite;
}

/* Amber / Golden Fire Glow */
@keyframes amberLogoGlow {
    0%, 100% {
        border-color: #f59e0b;
        box-shadow: 0 0 14px rgba(245, 158, 11, 0.8), 0 0 28px rgba(239, 68, 68, 0.4), inset 0 0 8px rgba(245, 158, 11, 0.3);
    }
    50% {
        border-color: #ef4444;
        box-shadow: 0 0 22px rgba(239, 68, 68, 0.85), 0 0 40px rgba(245, 158, 11, 0.5), inset 0 0 10px rgba(239, 68, 68, 0.35);
    }
}
.logo-glow-amber {
    border: 2px solid #f59e0b;
    animation: amberLogoGlow 3.5s ease-in-out infinite;
}

/* Emerald Neon Matrix Glow */
@keyframes emeraldLogoGlow {
    0%, 100% {
        border-color: #10b981;
        box-shadow: 0 0 14px rgba(16, 185, 129, 0.8), 0 0 28px rgba(5, 150, 105, 0.4), inset 0 0 8px rgba(16, 185, 129, 0.3);
    }
    50% {
        border-color: #34d399;
        box-shadow: 0 0 22px rgba(52, 211, 153, 0.85), 0 0 40px rgba(16, 185, 129, 0.5), inset 0 0 10px rgba(52, 211, 153, 0.35);
    }
}
.logo-glow-emerald {
    border: 2px solid #10b981;
    animation: emeraldLogoGlow 3.5s ease-in-out infinite;
}

