/* Premium Neon Background System v2.0 - ULTIMATE 'WOW' EDITION */
:root {
    --neon-blue: #00f2ff;
    --neon-cyan: #00ffff;
    --neon-purple: #9d00ff;
    --neon-magenta: #ff00ff;
    --neon-orange: #ff8a00;
    --neon-pink: #ff6ac1;
}

#premium-neon-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.3) 100%);
    perspective: 2000px; /* Enhanced depth */
    transform-style: preserve-3d;
}

#premium-neon-container::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.1;
    pointer-events: none;
}

.neon-shape {
    position: absolute;
    opacity: 0.8;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
    transform-style: preserve-3d;
}

/* Sharp Lozenge (Double Stroke) */
.neon-box-outline {
    border: 1.5px solid currentColor;
    border-radius: 40px;
    background: rgba(255, 255, 255, 0.01);
    box-shadow: 
        0 0 5px rgba(255,255,255,0.5),
        0 0 15px currentColor,
        inset 0 0 10px currentColor;
    filter: drop-shadow(0 0 10px currentColor);
}

/* L-Shape / Corner Geometric */
.neon-corner {
    width: 60px;
    height: 60px;
    border-top: 2px solid currentColor;
    border-left: 2px solid currentColor;
    filter: drop-shadow(0 0 8px currentColor);
}

/* Multi-colored Gradient Beam */
.neon-beam {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), var(--neon-magenta), transparent);
    box-shadow: 0 0 15px currentColor;
    border-radius: 10px;
}

.neon-beam-vertical {
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--neon-blue), var(--neon-purple), transparent);
    box-shadow: 0 0 20px currentColor;
}

/* Advanced Circuit Lines */
.neon-circuit {
    background: currentColor;
    opacity: 0.4;
    box-shadow: 0 0 12px currentColor;
    border-radius: 4px;
}

/* Particles / Bokeh */
.neon-particle {
    border-radius: 50%;
    box-shadow: 0 0 10px currentColor, 0 0 20px currentColor;
}

/* 3D Prism / Pyramid Shapes */
.neon-prism {
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 35px solid currentColor;
    filter: drop-shadow(0 0 10px currentColor);
    opacity: 0.8;
}

.neon-ring {
    width: 40px;
    height: 40px;
    border: 2px solid currentColor;
    border-radius: 50%;
    filter: drop-shadow(0 0 12px currentColor);
    background: transparent;
}

.neon-plus {
    width: 30px;
    height: 30px;
    position: relative;
    filter: drop-shadow(0 0 8px currentColor);
}

.neon-plus::before, .neon-plus::after {
    content: "";
    position: absolute;
    background: currentColor;
    border-radius: 2px;
}

.neon-plus::before {
    width: 100%;
    height: 2px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.neon-plus::after {
    width: 2px;
    height: 100%;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
}


/* Animations - More Dynamic */
@keyframes neon-flicker {
    0%, 19.999%, 22%, 62.999%, 64%, 64.999%, 70%, 100% { opacity: 0.9; filter: brightness(1.2); }
    20%, 21.999%, 63%, 63.999%, 65%, 69.999% { opacity: 0.4; filter: brightness(0.6); }
}

@keyframes neon-pulse-deep {
    0%, 100% { transform: scale(1) translateZ(0); filter: brightness(1); }
    50% { transform: scale(1.05) translateZ(30px); filter: brightness(1.5); }
}

.flicker-anim { animation: neon-flicker 5s infinite; }
.pulse-anim { animation: neon-pulse-deep 4s infinite ease-in-out; }

/* 3D Float - Complex Path */
@keyframes ultimate-float {
    0% { transform: translate3d(0, 0, 0) rotateX(var(--rotX)) rotateY(var(--rotY)); }
    25% { transform: translate3d(20px, -20px, 50px) rotateX(calc(var(--rotX) + 10deg)) rotateY(calc(var(--rotY) - 10deg)); }
    50% { transform: translate3d(-10px, 15px, 20px) rotateX(calc(var(--rotX) - 5deg)) rotateY(calc(var(--rotY) + 5deg)); }
    75% { transform: translate3d(15px, 10px, 60px) rotateX(calc(var(--rotX) + 5deg)) rotateY(calc(var(--rotY) + 10deg)); }
    100% { transform: translate3d(0, 0, 0) rotateX(var(--rotX)) rotateY(var(--rotY)); }
}

.float-anim { animation: ultimate-float 15s infinite ease-in-out; }

/* Depth Layers */
.depth-back { filter: blur(4px) brightness(0.4); opacity: 0.4; }
.depth-mid { filter: blur(1px) brightness(0.9); opacity: 0.7; }
.depth-front { filter: blur(0px) brightness(1.5); opacity: 1; }

/* Styles for the Neon Toggle Dropdown */
#neon-style-dropdown-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.2s;
    margin-left: 8px;
    position: relative;
    cursor: pointer;
}

#neon-style-dropdown-wrap:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.1);
}

.neon-dropdown-list {
    position: absolute;
    bottom: 40px;
    right: 0;
    width: 160px;
    background: var(--theme-panel-bg);
    backdrop-filter: blur(25px);
    border: 1px solid var(--theme-card-border);
    border-radius: 12px;
    padding: 8px;
    display: none;
    flex-direction: column;
    gap: 4px;
    z-index: 10000;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.neon-dropdown-list.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.neon-style-option {
    padding: 10px 15px;
    font-size: 11px;
    color: var(--text-light);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.neon-style-option:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-orange);
}

.neon-style-option.active {
    background: var(--primary-orange);
    color: white;
}

.neon-style-option.turn-off {
    margin-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #ff4d4d;
}

.neon-style-option.turn-off:hover {
    background: rgba(255, 77, 77, 0.1);
    color: #ff4d4d;
}

