/* =====================================================
   CUTE LOADER — 3D CAMERA RIG & CYBER HUD EDITION
   Optimizat 100% pentru ca ecranul LCD să nu iasă din ecran pe mobile
   ===================================================== */

.cute-loader-wrapper {
    display: block;
    position: relative;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 0;
    margin: 20px 0;
    padding: 0;
    box-sizing: border-box;
    isolation: isolate;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Main Container Box */
.cute-loader-wrapper .cute-loader-box {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 10px 5px;
    box-sizing: border-box;
    overflow: visible;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    z-index: 1;
}

/* Scena 3D - Versiune compactă */
.cute-loader-wrapper .stage-viewport-3d {
    position: relative;
    width: 100%;
    max-width: 440px;
    height: 220px;
    margin: 0 auto;
    perspective: 1600px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
}

.cute-loader-wrapper .god-tier-camera-rig {
    position: absolute;
    width: 480px;
    height: 220px;
    left: 50%;
    top: 50%;
    margin-left: -240px;
    margin-top: -110px;
    transform-style: preserve-3d;
    transform: rotateY(-25deg) rotateX(15deg) rotateZ(2deg);
    animation: antiGravityFloat 6s ease-in-out infinite alternate;
}

@keyframes antiGravityFloat {
    0% { transform: rotateY(-25deg) rotateX(15deg) translateY(0px) rotateZ(2deg); }
    100% { transform: rotateY(-15deg) rotateX(20deg) translateY(-12px) rotateZ(-1deg); }
}

/* Aura Volumetrică Reactor */
.cute-loader-wrapper .volumetric-aura-core {
    position: absolute;
    top: 5%;
    left: 5%;
    width: 90%;
    height: 80%;
    background: radial-gradient(circle, rgba(0, 255, 170, 0.4) 0%, rgba(0, 170, 255, 0.15) 50%, transparent 80%);
    filter: blur(45px);
    z-index: 0;
    animation: auraBreathing 3.5s ease-in-out infinite alternate;
}

@keyframes auraBreathing {
    0% { opacity: 0.5; transform: scale(0.88); }
    100% { opacity: 1; transform: scale(1.12); }
}

/* Proiecția Holografică Laser */
.cute-loader-wrapper .hologram-laser-beam {
    position: absolute;
    top: -45px;
    left: 200px;
    width: 90px;
    height: 100px;
    background: linear-gradient(to top, rgba(0, 255, 170, 0.5), transparent);
    clip-path: polygon(25% 100%, 75% 100%, 100% 0%, 0% 0%);
    z-index: 6;
    animation: laserScan 2s ease-in-out infinite alternate;
}

@keyframes laserScan {
    0% { opacity: 0.3; transform: scaleX(0.7); }
    100% { opacity: 1; transform: scaleX(1.3); }
}

/* Inel de scanare 3D în jurul lentilei */
.cute-loader-wrapper .orbital-scanner-ring {
    position: absolute;
    top: 55px;
    left: -12px;
    width: 155px;
    height: 155px;
    border: 2px dashed rgba(0, 255, 170, 0.9);
    border-radius: 50%;
    z-index: 5;
    animation: orbitSpin 9s linear infinite;
    box-shadow: 0 0 20px rgba(0, 255, 170, 0.5);
}

@keyframes orbitSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mâner Superior Pro cu Microfon Dual */
.cute-loader-wrapper .god-handle-assembly {
    position: absolute;
    top: 10px;
    left: 135px;
    width: 220px;
    height: 58px;
    background: linear-gradient(135deg, #1d2633 0%, #0d121a 100%);
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 170, 0.3);
    box-shadow: 0 12px 30px rgba(0,0,0,0.85);
    z-index: 2;
}

.cute-loader-wrapper .shotgun-mic-god {
    position: absolute;
    top: -18px;
    left: -48px;
    width: 105px;
    height: 28px;
    background: #111622;
    border: 1px solid #314057;
    border-radius: 14px;
    background-image: radial-gradient(circle, #00ffaa 1px, transparent 1px);
    background-size: 4px 4px;
    box-shadow: 0 0 14px rgba(0, 255, 170, 0.4);
}

/* Plăcuța Aurie Deluxe */
.cute-loader-wrapper .gold-badge-god {
    position: absolute;
    top: 10px;
    right: 20px;
    width: 50px;
    height: 38px;
    background: linear-gradient(135deg, #ffe066 0%, #a8840c 100%);
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.7);
    border: 1px solid #fff9e6;
}

.cute-loader-wrapper .gold-badge-god::after {
    content: '🐱';
    font-size: 19px;
}

/* Corpul Principal din Aliaj de Titan */
.cute-loader-wrapper .titanium-chassis {
    position: absolute;
    top: 65px;
    left: 105px;
    width: 275px;
    height: 140px;
    background: 
        linear-gradient(135deg, rgba(0, 255, 170, 0.08) 0%, transparent 50%),
        repeating-linear-gradient(45deg, #151c27, #151c27 2px, #0b0f16 2px, #0b0f16 5px);
    border-radius: 14px;
    border: 1px solid rgba(0, 255, 170, 0.45);
    box-shadow: 
        0 40px 90px rgba(0, 0, 0, 0.98),
        inset 0 0 30px rgba(0, 255, 170, 0.25);
    z-index: 2;
}

.cute-loader-wrapper .neon-tag-god {
    position: absolute;
    top: 45px;
    right: 22px;
    color: #00ffaa;
    font-family: monospace;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 2px;
    text-shadow: 0 0 15px #00ffaa;
}

/* Obiectiv Anamorfic Quantum Core */
.cute-loader-wrapper .quantum-lens-assembly {
    position: absolute;
    top: 68px;
    left: 12px;
    width: 138px;
    height: 134px;
    background: radial-gradient(circle, #1c2b3d 0%, #040609 85%);
    border-radius: 50%;
    border: 6px solid #25364d;
    box-shadow: 
        0 25px 50px rgba(0,0,0,0.95),
        0 0 40px rgba(0, 255, 170, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 4;
}

.cute-loader-wrapper .lens-crystal-core {
    position: absolute;
    width: 90px;
    height: 90px;
    background: radial-gradient(circle at 35% 35%, rgba(0, 240, 255, 0.9) 0%, rgba(20, 5, 50, 0.95) 65%, #000 100%);
    border-radius: 50%;
    box-shadow: 
        inset 0 0 25px rgba(0, 255, 170, 0.95),
        0 0 20px rgba(0, 180, 255, 0.7);
    overflow: hidden;
}

.cute-loader-wrapper .lens-crystal-core::before {
    content: '';
    position: absolute;
    top: -40%;
    left: -60%;
    width: 220%;
    height: 180%;
    background: linear-gradient(45deg, transparent 40%, rgba(0, 255, 170, 0.8) 50%, transparent 60%);
    transform: rotate(-35deg);
    animation: quantumFlare 6s infinite ease-in-out;
}

@keyframes quantumFlare {
    0%, 100% { transform: rotate(-35deg) translateX(-45%); }
    50% { transform: rotate(-35deg) translateX(45%); }
}

/* Matte Box Frontal */
.cute-loader-wrapper .matte-box-god {
    position: absolute;
    top: 50px;
    left: -50px;
    width: 78px;
    height: 160px;
    background: #0c1018;
    border: 3px solid #233145;
    border-radius: 9px;
    box-shadow: -15px 20px 45px rgba(0,0,0,0.95);
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 15px;
}

.cute-loader-wrapper .matte-box-god::after {
    content: '🐱';
    font-size: 15px;
    background: #020406;
    padding: 3px 8px;
    border: 1px solid #00ffaa;
    border-radius: 4px;
    box-shadow: 0 0 12px #00ffaa;
}

/* Ecran LCD Lateral Curbat */
.cute-loader-wrapper .lcd-god-screen {
    position: absolute;
    top: 90px;
    right: -68px;
    width: 125px;
    height: 95px;
    background: #111724;
    border: 3px solid #293a52;
    border-radius: 9px;
    transform: rotateY(42deg) rotateX(-6deg);
    box-shadow: -18px 20px 40px rgba(0,0,0,0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3;
    transition: all 0.3s ease;
}

.cute-loader-wrapper .lcd-hud-panel {
    width: 110px;
    height: 80px;
    background: #010a05;
    border: 1px solid #00ffaa;
    border-radius: 5px;
    box-shadow: inset 0 0 15px rgba(0, 255, 170, 0.75);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 6px;
}

.cute-loader-wrapper .audio-wave-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 44px;
}

.cute-loader-wrapper .wave-column {
    width: 5px;
    background: #00ffaa;
    box-shadow: 0 0 10px #00ffaa;
    border-radius: 1px;
    animation: waveBounce 1s ease-in-out infinite alternate;
}

.cute-loader-wrapper .wave-column:nth-child(1) { height: 45%; animation-delay: 0.1s; }
.cute-loader-wrapper .wave-column:nth-child(2) { height: 95%; animation-delay: 0.3s; }
.cute-loader-wrapper .wave-column:nth-child(3) { height: 60%; animation-delay: 0.5s; }
.cute-loader-wrapper .wave-column:nth-child(4) { height: 85%; animation-delay: 0.2s; }
.cute-loader-wrapper .wave-column:nth-child(5) { height: 50%; animation-delay: 0.4s; }

@keyframes waveBounce {
    0% { transform: scaleY(0.3); }
    100% { transform: scaleY(1.2); }
}

.cute-loader-wrapper .hud-timecode-row {
    font-size: 8px;
    color: #00ffaa;
    font-family: monospace;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(0, 255, 170, 0.4);
    padding-top: 3px;
    font-weight: bold;
}

/* Secțiunea de text sub cameră */
.cute-loader-wrapper .text-god-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 5px;
    z-index: 10;
}

.cute-loader-wrapper .cute-text {
    font-size: 14px;
    font-weight: 500;
    color: #8f9cae;
    letter-spacing: 0.5px;
    text-transform: none;
    margin-top: 5px;
}

/* AJAX Content Container */
.cute-loader-wrapper .cute-hidden-content {
    display: block;
    position: relative;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-align: initial;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.cute-loader-wrapper .cute-hidden-content.vizibil {
    opacity: 1;
}

.cute-loader-wrapper .cute-hidden-content iframe,
.cute-loader-wrapper .cute-hidden-content video {
    max-width: 100%;
}

.cute-loader-wrapper .cute-loader-box[hidden] {
    display: none !important;
}

/* =====================================================
   RESPONSIVE MOBILE OPTIMIZATION
   ===================================================== */

@media (max-width: 520px) {
    .cute-loader-wrapper .stage-viewport-3d {
        transform: scale(0.72);
        height: 160px;
        margin-top: -20px;
        margin-bottom: -20px;
    }

    /* Apropie ecranul LCD de corpul camerei pe telefoane */
    .cute-loader-wrapper .lcd-god-screen {
        right: -35px;
        transform: rotateY(28deg) rotateX(-4deg);
    }
}

@media (max-width: 400px) {
    .cute-loader-wrapper .stage-viewport-3d {
        transform: scale(0.58);
        height: 130px;
        margin-top: -30px;
        margin-bottom: -30px;
    }

    .cute-loader-wrapper .lcd-god-screen {
        right: -25px;
    }
}

@media (max-width: 320px) {
    .cute-loader-wrapper .stage-viewport-3d {
        transform: scale(0.48);
        height: 110px;
        margin-top: -35px;
        margin-bottom: -35px;
    }

    .cute-loader-wrapper .lcd-god-screen {
        right: -15px;
    }
}