/* =========================================================
   PROJECT_05:59 — AUTHORIZATION NODE V2
========================================================= */

:root {
    --v2-bg: #020206;
    --v2-cyan: #78efff;
    --v2-blue: #69b8ff;
    --v2-purple: #a96fff;
    --v2-magenta: #f15bd8;
    --v2-white: #eefaff;
    --v2-green: #5dffc1;
    --v2-red: #ff5e7a;
}

#authorization-node-v2 {
    position: fixed;
    inset: 0;
    z-index: 500;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    background:
        radial-gradient(circle at 50% 30%, rgba(151, 72, 255, 0.16), transparent 28%),
        radial-gradient(circle at 18% 55%, rgba(72, 215, 255, 0.08), transparent 35%),
        radial-gradient(circle at 82% 52%, rgba(239, 72, 218, 0.08), transparent 37%),
        var(--v2-bg);
    color: var(--v2-white);
    font-family: "Segoe UI", "Trebuchet MS", Arial, sans-serif;
    transition: visibility 0.45s ease, opacity 0.45s ease;
}

#authorization-node-v2.v2-visible {
    visibility: visible;
    opacity: 1;
}

/* V3 PRE-FINAL — lifecycle: cero animaciones de Authorization mientras está oculto. */
#authorization-node-v2:not(.v2-visible) * {
    animation-play-state: paused !important;
}

#authorization-node-v2 * {
    box-sizing: border-box;
}

/* =========================================================
   FONDO
========================================================= */

.v2-nebula {
    position: absolute;
    z-index: 0;
    width: 48vw;
    height: 48vw;
    border-radius: 50%;
    filter: blur(125px);
    pointer-events: none;
    animation: v2NebulaDrift 13s ease-in-out infinite;
}

.v2-nebula-cyan {
    left: -24vw;
    top: 16vh;
    opacity: 0.13;
    background: #00d9ff;
}

.v2-nebula-purple {
    right: -22vw;
    bottom: -16vh;
    opacity: 0.18;
    background: #a93bff;
    animation-delay: -6s;
}

.v2-grid {
    position: absolute;
    pointer-events: none;
}

.v2-grid-back {
    inset: 0;
    z-index: 2;
    opacity: 0.032;
    background-image:
        linear-gradient(rgba(166, 83, 255, 0.18) 1px, transparent 1px),
        linear-gradient(90deg, rgba(78, 222, 255, 0.16) 1px, transparent 1px);
    background-size: 88px 88px;
}

.v2-grid-floor {
    left: -28%;
    right: -28%;
    bottom: -55%;
    z-index: 3;
    height: 98%;
    opacity: 0.11;
    background-image:
        linear-gradient(rgba(83, 220, 255, 0.22) 1px, transparent 1px),
        linear-gradient(90deg, rgba(177, 67, 255, 0.2) 1px, transparent 1px);
    background-size: 70px 70px;
    transform: perspective(760px) rotateX(69deg);
    transform-origin: center top;
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 29%, transparent 91%);
    mask-image: linear-gradient(to bottom, transparent, black 29%, transparent 91%);
}

.v2-noise {
    position: absolute;
    inset: -18%;
    z-index: 11;
    opacity: 0.025;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(255,255,255,0.72) 0.6px, transparent 0.9px);
    background-size: 5px 5px;
    animation: v2Noise 0.24s steps(2) infinite;
}

.v2-vignette {
    position: absolute;
    inset: 0;
    z-index: 12;
    pointer-events: none;
    background: radial-gradient(circle at center, transparent 34%, rgba(0,0,0,0.18) 61%, rgba(0,0,0,0.73) 100%);
}

/* =========================================================
   DATA RAIN — FONDO PRINCIPAL OPTIMIZADO
========================================================= */

#v2-data-rain {
    position: absolute;
    inset: 0;
    z-index: 13;
    overflow: hidden;
    pointer-events: none;
    opacity: 0.72;
    contain: layout paint style;
}

.v2-rain-column {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    line-height: 1;
    letter-spacing: 0.06em;
    white-space: nowrap;
    transform: translate3d(0, 0, 0);
    will-change: transform;
    animation:
        v2DataFall
        var(--rain-duration)
        linear
        var(--rain-delay)
        infinite;
}

.v2-rain-column span {
    display: block;
    color: var(--glyph-color);
    opacity: var(--glyph-opacity);
    text-shadow:
        0 0 5px currentColor,
        0 0 10px currentColor;
}

.v2-rain-column .v2-rain-lead {
    opacity: 1;
    font-weight: 700;
    text-shadow:
        0 0 7px currentColor,
        0 0 16px currentColor,
        0 0 25px currentColor;
}

.v2-rain-depth-0 {
    z-index: 1;
    font-family: Consolas, "Courier New", monospace;
    font-size: 10px;
    opacity: 0.30;
    filter: blur(0.55px);
}

.v2-rain-depth-1 {
    z-index: 2;
    font-family: Consolas, "Courier New", monospace;
    font-size: 13px;
    opacity: 0.56;
}

.v2-rain-depth-2 {
    z-index: 3;
    font-family: Consolas, "Courier New", monospace;
    font-size: 16px;
    opacity: 0.76;
}

/* =========================================================
   DATOS Y REFERENCIAS
========================================================= */

.v2-corner-data {
    position: absolute;
    z-index: 20;
    top: 6vh;
    display: grid;
    gap: 8px;
    color: rgba(255,255,255,0.28);
    font-family: Consolas, "Courier New", monospace;
    font-size: 8px;
    letter-spacing: 0.27em;
    pointer-events: none;
}

.v2-corner-data b {
    color: rgba(119,239,255,0.83);
    font-weight: 500;
    text-shadow: 0 0 9px rgba(119,239,255,0.42);
}

.v2-corner-left {
    left: 4.5vw;
    padding-left: 13px;
    border-left: 1px solid rgba(110,230,255,0.29);
}

#v2-reference-card {
    --reference-accent: var(--v2-cyan);
    position: absolute;
    z-index: 25;
    top: 15vh;
    right: 4.5vw;
    width: min(240px, 24vw);
    padding: 14px 15px 13px;
    overflow: hidden;
    text-align: right;
    font-family: Consolas, "Courier New", monospace;
    opacity: 0;
    transform: translateX(12px);
    border-right: 1px solid color-mix(in srgb, var(--reference-accent) 68%, transparent);
    background: linear-gradient(270deg, rgba(5,8,18,0.55), transparent);
    transition: opacity 0.25s ease, transform 0.25s ease, filter 0.15s steps(2);
    pointer-events: none;
}

#v2-reference-card.v2-reference-visible {
    opacity: 1;
    transform: translateX(0);
}

#v2-reference-card.v2-reference-switching {
    opacity: 0.18;
    transform: translateX(7px) skewX(-7deg);
    filter: blur(1px);
}

#v2-reference-card span,
#v2-reference-card strong,
#v2-reference-card small {
    display: block;
}

#v2-reference-card span {
    color: rgba(255,255,255,0.2);
    font-size: 7px;
    letter-spacing: 0.27em;
}

#v2-reference-card strong {
    margin-top: 8px;
    color: var(--reference-accent);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-shadow: 0 0 10px color-mix(in srgb, var(--reference-accent) 45%, transparent);
}

#v2-reference-card small {
    margin-top: 6px;
    color: rgba(255,255,255,0.45);
    font-size: 8px;
    letter-spacing: 0.23em;
}

#v2-reference-card > i {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 62%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--reference-accent));
    box-shadow: 0 0 8px color-mix(in srgb, var(--reference-accent) 48%, transparent);
}

/* =========================================================
   PARTÍCULAS
========================================================= */

#v2-particles {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
}

#v2-particles i {
    position: absolute;
    left: var(--particle-x);
    top: var(--particle-y);
    width: var(--particle-size);
    height: var(--particle-size);
    border-radius: 50%;
    opacity: 0;
    background: rgba(126,239,255,0.9);
    box-shadow: 0 0 7px rgba(126,239,255,0.8), 0 0 15px rgba(181,70,255,0.4);
    animation: v2ParticleRise var(--particle-duration) linear var(--particle-delay) infinite;
}

/* =========================================================
   ESCENARIO Y ÓRBITAS
========================================================= */

#v2-hologram-stage {
    position: absolute;
    z-index: 18;
    left: 50%;
    top: 36%;
    width: min(650px, 50vw);
    height: min(650px, 72vh);
    opacity: 0;
    transform: translate(-50%, -48%) scale(0.985);
    transition: opacity 0.62s ease, transform 0.62s cubic-bezier(.2,.8,.2,1);
    pointer-events: none;
}

#v2-hologram-stage.v2-stage-visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.v2-orbit {
    position: absolute;
    left: 50%;
    top: 50%;
    aspect-ratio: 1;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.v2-orbit-outer {
    width: 100%;
    border: 1px solid rgba(167,78,255,0.2);
    animation: v2RotateClockwise 24s linear infinite;
}

.v2-orbit-outer::before,
.v2-orbit-outer::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 8px;
    border: 1px solid rgba(97,231,255,0.7);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(97,231,255,0.48);
}

.v2-orbit-outer::before {
    left: 12%;
    top: 17%;
}

.v2-orbit-outer::after {
    right: 7%;
    bottom: 29%;
}

.v2-orbit-outer i {
    position: absolute;
    width: 52px;
    height: 1px;
    background: linear-gradient(90deg, rgba(105,235,255,0.48), transparent);
}

.v2-orbit-outer i:nth-child(1) { left: -15px; top: 46%; }
.v2-orbit-outer i:nth-child(2) { right: -17px; top: 28%; transform: rotate(180deg); }
.v2-orbit-outer i:nth-child(3) { left: 31%; bottom: -5px; transform: rotate(90deg); }

.v2-orbit-middle {
    width: 78%;
    border: 1px dashed rgba(94,228,255,0.22);
    animation: v2RotateCounter 16s linear infinite;
}

.v2-orbit-inner {
    width: 55%;
    border: 1px solid rgba(190,76,255,0.26);
    box-shadow: 0 0 30px rgba(147,57,255,0.08);
    animation: v2OrbitPulse 3.5s ease-in-out infinite;
}

.v2-orbit.v2-orbit-accelerated {
    animation-duration: 1.1s;
}

.v2-axis {
    position: absolute;
    left: 50%;
    top: 50%;
    opacity: 0.14;
    transform: translate(-50%, -50%);
}

.v2-axis-horizontal {
    width: 112%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(104,233,255,0.52), transparent);
}

.v2-axis-vertical {
    width: 1px;
    height: 112%;
    background: linear-gradient(to bottom, transparent, rgba(198,76,255,0.46), transparent);
}

.v2-projector-beam {
    position: absolute;
    left: 50%;
    top: 27%;
    width: 50%;
    height: 105%;
    opacity: 0.17;
    transform: translateX(-50%);
    background: linear-gradient(to top, rgba(128,67,255,0.45), rgba(66,217,255,0.16) 58%, transparent 100%);
    clip-path: polygon(42% 100%, 58% 100%, 84% 0, 16% 0);
    filter: blur(13px);
    animation: v2ProjectorBreath 3.1s ease-in-out infinite;
}

.v2-holo-base {
    position: absolute;
    left: 50%;
    bottom: -16%;
    width: 280px;
    height: 44px;
    transform: translateX(-50%);
    border: 1px solid rgba(123,224,255,0.24);
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(139,74,255,0.18), transparent 68%);
    box-shadow: 0 0 28px rgba(87,223,255,0.15), 0 0 62px rgba(171,68,255,0.16);
}

.v2-holo-base i {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 145px;
    height: 8px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: rgba(121,228,255,0.22);
    box-shadow: 0 0 16px rgba(121,228,255,0.52);
}

/* =========================================================
   LUCY HOLOGRÁFICA
========================================================= */

#v2-lucy {
    position: absolute;
    left: 50%;
    top: 0;
    width: min(430px, 35vw);
    height: 93%;
    opacity: 0;
    overflow: hidden;
    transform: translateX(-50%) translateY(18px);
    transition: opacity 0.62s ease, transform 0.62s cubic-bezier(.2,.8,.2,1), filter 0.2s steps(2);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 4%, black 74%, rgba(0,0,0,0.76) 84%, transparent 98%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 4%, black 74%, rgba(0,0,0,0.76) 84%, transparent 98%);
}

#v2-lucy.v2-lucy-visible {
    opacity: 0.95;
    transform: translateX(-50%) translateY(0);
}

#v2-lucy::before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 42%;
    width: 112%;
    height: 94%;
    transform: translate(-50%, -50%);
    border-radius: 48%;
    background: radial-gradient(ellipse at center, rgba(122,82,255,0.22), rgba(84,216,255,0.08) 46%, transparent 72%);
    filter: blur(28px);
    opacity: 0.7;
    animation: v2LucyGlow 3.3s ease-in-out infinite;
}

#v2-lucy-image {
    opacity: 0;
    animation-play-state: paused;
}


#v2-lucy-image {
    position: absolute;
    inset: 0;
    z-index: 3;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center top;
    opacity: 0.96;
    mix-blend-mode: normal;
    filter:
        saturate(1.08)
        contrast(1.13)
        brightness(0.94)
        hue-rotate(2deg)
        drop-shadow(0 0 4px rgba(103,231,255,0.38))
        drop-shadow(0 0 17px rgba(162,69,255,0.24));
    animation: v2LucyFloat 5.4s ease-in-out infinite;
}

.v2-lucy-echo {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.085;
    background: url("./assets/lucy.png") center top / contain no-repeat;
    mix-blend-mode: screen;
}

.v2-echo-cyan {
    transform: translateX(-2px);
    filter: grayscale(1) sepia(1) saturate(7) hue-rotate(130deg) brightness(1.1);
}

.v2-echo-purple {
    transform: translateX(2px);
    filter: grayscale(1) sepia(1) saturate(7) hue-rotate(248deg) brightness(1.06);
}

.v2-lucy-scanlines {
    position: absolute;
    inset: 0;
    z-index: 4;
    opacity: 0.16;
    background: repeating-linear-gradient(to bottom, rgba(122,229,255,0.22) 0, rgba(122,229,255,0.22) 1px, transparent 1px, transparent 5px);
    mix-blend-mode: screen;
    pointer-events: none;
}

.v2-lucy-sweep {
    position: absolute;
    z-index: 8;
    left: 2%;
    right: 2%;
    top: 2%;
    height: 2px;
    opacity: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(111,230,255,0.28) 8%,
        rgba(238,253,255,0.98) 48%,
        rgba(245,91,220,0.82) 62%,
        transparent 100%
    );
    box-shadow:
        0 0 5px rgba(130,244,255,0.95),
        0 0 14px rgba(115,231,255,0.72),
        0 0 25px rgba(214,83,255,0.45);
    mix-blend-mode: screen;
    animation: v2LucySweep 3.15s linear infinite;
    animation-play-state: paused;
    pointer-events: none;
}

.v2-lucy-sweep::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 74px;
    transform: translateY(-50%);
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(103,231,255,0.06) 28%,
        rgba(127,241,255,0.18) 49%,
        rgba(241,91,216,0.12) 56%,
        transparent
    );
    filter: blur(7px);
}

.v2-lucy-sweep::after {
    content: "";
    position: absolute;
    left: 13%;
    right: 13%;
    top: -1px;
    height: 4px;
    background: rgba(238,253,255,0.9);
    filter: blur(1.2px);
    box-shadow: 0 0 12px rgba(121,238,255,0.9);
}

#v2-lucy.v2-lucy-visible .v2-lucy-sweep {
    animation-play-state: running;
}

.v2-lucy-shimmer {
    position: absolute;
    inset: 0;
    z-index: 6;
    opacity: 0.08;
    pointer-events: none;
    background: linear-gradient(90deg, transparent 0 24%, rgba(112,230,255,0.3) 24% 25%, transparent 25% 67%, rgba(193,77,255,0.26) 67% 68%, transparent 68%);
    mix-blend-mode: screen;
}

#v2-lucy.v2-lucy-desync {
    transform: translateX(calc(-50% + 4px)) translateY(-2px);
    filter: saturate(1.36) contrast(1.16);
}

#v2-lucy.v2-lucy-attention {
    filter: brightness(1.16) drop-shadow(0 0 18px rgba(122,235,255,0.3));
}

#v2-lucy.v2-lucy-confirmed {
    opacity: 0.99;
    filter: brightness(1.16) drop-shadow(0 0 14px rgba(126,239,255,0.37)) drop-shadow(0 0 34px rgba(170,72,255,0.32));
}

#v2-lucy.v2-lucy-denied {
    filter: hue-rotate(285deg) saturate(1.48);
    animation: v2DeniedShake 0.18s steps(3) 3;
}

/* =========================================================
   LUCY — LIVE HOLOGRAM V3 PRE-FINAL
   Se activa con .v2-lucy-live-active. Simula video sin MP4.
========================================================= */
#v2-lucy.v2-lucy-live-active::after {
    content: "";
    position: absolute;
    inset: 2% 5% 5%;
    z-index: 7;
    pointer-events: none;
    opacity: .16;
    background:
        repeating-linear-gradient(
            to bottom,
            transparent 0 10px,
            rgba(125,242,255,.24) 10px 11px,
            transparent 11px 19px
        ),
        linear-gradient(
            90deg,
            transparent 0 18%,
            rgba(189,91,255,.08) 18% 19%,
            transparent 19% 71%,
            rgba(101,236,255,.08) 71% 72%,
            transparent 72%
        );
    mix-blend-mode: screen;
    transform: translate3d(0,0,0);
    animation: v2LucyLiveInterference 5.8s steps(1,end) infinite;
}

#v2-lucy.v2-lucy-live-active #v2-lucy-image {
    animation:
        v2LucyFloat 5.4s ease-in-out infinite,
        v2LucyLiveExposure 4.8s ease-in-out infinite;
}

#v2-lucy.v2-lucy-live-active .v2-lucy-shimmer {
    background-size: 180% 100%;
    animation: v2LucyLiveShimmer 4.6s linear infinite;
}

#v2-lucy.v2-lucy-signal-pulse {
    filter: brightness(1.15) contrast(1.13) saturate(1.22);
}

#v2-lucy.v2-lucy-signal-pulse #v2-lucy-image {
    transform: translate3d(2px,-1px,0) scale(1.006);
}

#v2-lucy.v2-lucy-signal-pulse .v2-echo-cyan {
    opacity: .19;
    transform: translateX(-7px);
}

#v2-lucy.v2-lucy-signal-pulse .v2-echo-purple {
    opacity: .17;
    transform: translateX(7px);
}

@keyframes v2LucyLiveExposure {
    0%, 100% {
        opacity: .94;
        filter: saturate(1.08) contrast(1.13) brightness(.94) hue-rotate(2deg)
            drop-shadow(0 0 4px rgba(103,231,255,.38))
            drop-shadow(0 0 17px rgba(162,69,255,.24));
    }
    48% {
        opacity: .99;
        filter: saturate(1.12) contrast(1.15) brightness(1) hue-rotate(4deg)
            drop-shadow(0 0 6px rgba(103,231,255,.48))
            drop-shadow(0 0 21px rgba(162,69,255,.28));
    }
    51% { opacity: .90; }
    53% { opacity: .98; }
}

@keyframes v2LucyLiveShimmer {
    from { background-position: 180% 0; }
    to { background-position: -80% 0; }
}

@keyframes v2LucyLiveInterference {
    0%,16%,18%,47%,49%,73%,75%,100% {
        transform: translate3d(0,0,0);
        opacity: .12;
    }
    17% { transform: translate3d(2px,-1px,0); opacity: .28; }
    48% { transform: translate3d(-3px,1px,0); opacity: .23; }
    74% { transform: translate3d(1px,0,0); opacity: .20; }
}

/* =========================================================
   VIDEOS
========================================================= */

.v2-transition-video {
    position: absolute;
    inset: 0;
    z-index: 80;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    pointer-events: none;
    mix-blend-mode: screen;
    filter: contrast(1.15) saturate(1.28) brightness(1.03);
    transition: opacity 0.12s linear;
}

.v2-transition-video.v2-video-visible {
    opacity: 1;
}

/* =========================================================
   PROYECCIÓN DE AUTORIZACIÓN — PANEL SIMPLE
========================================================= */

#v2-auth-projection {
    position: absolute;
    z-index: 50;
    left: 50%;
    top: 72%;
    width: min(690px, 72vw);
    padding: 20px 28px 18px;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -42%) scale(0.99);

    background: linear-gradient(
        90deg,
        rgba(2, 5, 14, 0.72) 0%,
        rgba(4, 6, 18, 0.54) 64%,
        rgba(4, 6, 18, 0.24) 100%
    );

    border-left: 2px solid rgba(120, 239, 255, 0.48);
    border-top: 1px solid rgba(120, 239, 255, 0.16);
    border-bottom: 1px solid rgba(202, 100, 255, 0.16);

    transition:
        opacity 0.38s ease,
        transform 0.38s cubic-bezier(.2, .8, .2, 1),
        border-color 0.2s ease;
}

#v2-auth-projection.v2-panel-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

#v2-auth-eyebrow {
    min-height: 12px;
    margin: 0 0 7px;
    color: rgba(255,255,255,0.3);
    font-family: Consolas, "Courier New", monospace;
    font-size: 8px;
    letter-spacing: 0.27em;
}

#v2-auth-title {
    min-height: 20px;
    margin: 0;
    color: var(--v2-cyan);
    font-family: Consolas, "Courier New", monospace;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.31em;
    text-shadow: 0 0 10px rgba(120,239,255,0.5);
}

#v2-auth-instruction {
    min-height: 14px;
    margin: 15px 0 7px;
    color: rgba(255,255,255,0.43);
    font-family: Consolas, "Courier New", monospace;
    font-size: 8px;
    letter-spacing: 0.24em;
}

#v2-auth-question {
    min-height: 53px;
    margin: 0;
    font-family: "Agency FB", "Bahnschrift Condensed", "Arial Narrow", "Segoe UI", sans-serif;
    font-size: clamp(34px, 4vw, 58px);
    font-weight: 600;
    font-stretch: condensed;
    letter-spacing: 0.035em;
    line-height: 1.04;
    background: linear-gradient(90deg, #8ff5ff 0%, #a8dcff 27%, #ca7fff 62%, #ff8de7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 16px rgba(126,225,255,0.1), 0 0 26px rgba(220,91,255,0.08);
}

.v2-input-line {
    position: relative;
    display: flex;
    align-items: center;
    gap: 13px;
    margin-top: 17px;
    padding: 7px 0 9px;
    border-bottom: 1px solid rgba(104,232,255,0.34);
    cursor: text;
}

.v2-prompt {
    color: var(--v2-magenta);
    font-family: Consolas, "Courier New", monospace;
    font-size: 25px;
    line-height: 1;
    text-shadow: 0 0 9px rgba(241,91,216,0.58);
    animation: v2PromptPulse 1.15s ease-in-out infinite;
}

#v2-auth-input {
    flex: 1;
    min-width: 0;
    padding: 0;
    border: 0;
    outline: 0;
    color: var(--v2-white);
    background: transparent;
    font-family: Consolas, "Courier New", monospace;
    font-size: 27px;
    letter-spacing: 0.18em;
    caret-color: var(--v2-cyan);
    text-shadow: 0 0 9px rgba(120,239,255,0.55);
}

#v2-auth-input:disabled {
    cursor: wait;
    opacity: 0.65;
}

.v2-input-trace {
    position: absolute;
    left: -26%;
    bottom: -1px;
    width: 26%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--v2-purple), var(--v2-cyan), transparent);
    box-shadow: 0 0 8px rgba(169,111,255,0.42);
    animation: v2InputScanner 3.2s linear infinite;
}

.v2-projection-footer {
    display: flex;
    align-items: center;
    margin-top: 13px;
    color: rgba(255,255,255,0.17);
    font-family: Consolas, "Courier New", monospace;
    font-size: 7px;
    letter-spacing: 0.22em;
}

#v2-auth-status {
    min-height: 14px;
    max-width: 100%;
    color: rgba(104,231,255,0.68);
    line-height: 1.8;
    white-space: normal;
    overflow-wrap: anywhere;
}

#v2-auth-status[data-state="idle"] { color: rgba(242,91,215,0.68); }
#v2-auth-status[data-state="verify"] { color: rgba(192,123,255,0.82); }
#v2-auth-status[data-state="success"] {
    color: var(--v2-green);
    text-shadow: 0 0 9px rgba(93,255,193,0.5);
}
#v2-auth-status[data-state="error"] {
    color: var(--v2-red);
    text-shadow: 0 0 9px rgba(255,94,122,0.52);
}

#v2-auth-projection.v2-panel-verifying {
    border-left-color: rgba(195, 111, 255, 0.68);
}

/* =========================================================
   GLITCHES GENERALES
========================================================= */

#v2-flash,
#v2-rgb-wash,
#v2-glitch-slice {
    position: absolute;
    pointer-events: none;
    opacity: 0;
}

#v2-flash {
    inset: 0;
    z-index: 130;
    background: white;
}

#v2-rgb-wash {
    inset: 0;
    z-index: 120;
    background: linear-gradient(90deg, rgba(255,0,111,0.12), transparent 34%, transparent 66%, rgba(0,223,255,0.12));
    mix-blend-mode: screen;
}

#v2-glitch-slice {
    left: -10%;
    z-index: 125;
    width: 120%;
    background: linear-gradient(90deg, transparent, rgba(198,70,255,0.42), rgba(87,230,255,0.34), transparent);
    mix-blend-mode: screen;
}

/* =========================================================
   PRIVATE PLACEHOLDER
========================================================= */

#tgx-placeholder-v2 {
    position: fixed;
    inset: 0;
    z-index: 900;
    display: grid;
    place-content: center;
    gap: 18px;
    text-align: center;
    background: radial-gradient(circle, rgba(136,63,255,0.15), transparent 38%), #010106;
}

.v2-private-logo {
    position: relative;
    color: #effdff;
    font-family: Consolas, "Courier New", monospace;
    font-size: clamp(80px, 17vw, 260px);
    font-weight: 900;
    letter-spacing: 0.18em;
    text-shadow: 0 0 10px #78edff, 0 0 37px #a94fff, 0 0 82px rgba(126,50,255,0.55);
    animation: v2TgxGlitch 3s steps(1) infinite;
}

#tgx-placeholder-v2 span {
    color: rgba(119,235,255,0.44);
    font-family: Consolas, "Courier New", monospace;
    font-size: 9px;
    letter-spacing: 0.31em;
}

/* =========================================================
   ANIMACIONES
========================================================= */

@keyframes v2DataFall {
    from {
        transform: translate3d(0, -18vh, 0);
    }

    to {
        transform: translate3d(var(--rain-drift), 158vh, 0);
    }
}

@keyframes v2NebulaDrift {
    0%, 100% { transform: translate3d(0,0,0) scale(1); }
    50% { transform: translate3d(3vw,-2vh,0) scale(1.07); }
}

@keyframes v2Noise {
    0% { transform: translate(0,0); }
    50% { transform: translate(1.5%,-1%); }
    100% { transform: translate(-1%,1.5%); }
}

@keyframes v2ParticleRise {
    0% { opacity: 0; transform: translateY(0) scale(0.6); }
    15% { opacity: 0.75; }
    100% { opacity: 0; transform: translateY(-34vh) scale(1.25); }
}

@keyframes v2RotateClockwise {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes v2RotateCounter {
    to { transform: translate(-50%, -50%) rotate(-360deg); }
}

@keyframes v2OrbitPulse {
    0%, 100% { opacity: 0.45; box-shadow: 0 0 23px rgba(147,57,255,0.05); }
    50% { opacity: 0.9; box-shadow: 0 0 38px rgba(147,57,255,0.13); }
}

@keyframes v2ProjectorBreath {
    0%, 100% { opacity: 0.11; transform: translateX(-50%) scaleX(0.94); }
    50% { opacity: 0.22; transform: translateX(-50%) scaleX(1.04); }
}

@keyframes v2LucyFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes v2LucyGlow {
    0%, 100% { opacity: 0.55; transform: translate(-50%, -50%) scale(0.97); }
    50% { opacity: 0.82; transform: translate(-50%, -50%) scale(1.04); }
}

@keyframes v2LucySweep {
    0% { top: 1%; opacity: 0; }
    5% { opacity: 1; }
    48% { opacity: 0.96; }
    94% { opacity: 0.9; }
    100% { top: 96%; opacity: 0; }
}

@keyframes v2DeniedShake {
    0% { transform: translateX(-50%) translateX(0); }
    33% { transform: translateX(-50%) translateX(-5px); }
    66% { transform: translateX(-50%) translateX(5px); }
    100% { transform: translateX(-50%) translateX(0); }
}

@keyframes v2StatusBlink {
    0%, 100% { opacity: 0.35; }
    50% { opacity: 1; }
}

@keyframes v2PromptPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

@keyframes v2InputScanner {
    from { left: -28%; }
    to { left: 102%; }
}

@keyframes v2TgxGlitch {
    0%, 88%, 100% { transform: translate(0); filter: none; }
    89% { transform: translate(-3px,1px); filter: hue-rotate(35deg); }
    90% { transform: translate(4px,-1px); }
    91% { transform: translate(0); }
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {
    #v2-hologram-stage {
        top: 34%;
        width: min(620px, 72vw);
        height: min(620px, 66vh);
    }

    #v2-lucy {
        width: min(390px, 52vw);
    }

    #v2-auth-projection {
        top: 71%;
        width: min(690px, 88vw);
        padding-inline: 24px;
    }

    #v2-reference-card {
        width: 190px;
        right: 3vw;
    }
}

@media (max-width: 640px) {
    .v2-corner-data,
    #v2-reference-card {
        display: none;
    }

    #v2-data-rain {
        opacity: 0.58;
    }

    .v2-rain-depth-2 {
        font-size: 14px;
    }

    #v2-hologram-stage {
        top: 31%;
        width: 91vw;
        height: 55vh;
    }

    #v2-lucy {
        width: min(340px, 72vw);
    }

    #v2-auth-projection {
        top: 72%;
        width: 94vw;
        padding: 18px 17px 16px;
    }

    #v2-auth-question {
        min-height: 43px;
        font-size: clamp(29px, 9vw, 43px);
    }

    #v2-auth-input {
        font-size: 23px;
    }

    .v2-projection-footer {
        align-items: flex-start;
    }
}


/* El proyecto usa movimiento como parte central de la escena.
   V3 PRE-FINAL pausa toda la escena Authorization cuando está oculta para no
   consumir GPU/CPU en la página pública. */


/* =========================================================
   V4.4 — LUCY CLEAN CYBERPUNK SCENE
   Sin lluvia de números. El JS de autorización queda intacto.
========================================================= */
#v2-data-rain,
.v2-rain-column,
.v2-rain-depth-0,
.v2-rain-depth-1,
.v2-rain-depth-2,
.v2-rain-lead {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

#authorization-node-v2 {
    background:
        radial-gradient(circle at 28% 43%, rgba(61,208,255,.075), transparent 28%),
        radial-gradient(circle at 72% 52%, rgba(176,66,255,.11), transparent 33%),
        linear-gradient(135deg, #010104 0%, #03020a 48%, #000 100%) !important;
}
#authorization-node-v2 .v2-grid-back { opacity: .075 !important; }
#authorization-node-v2 .v2-grid-floor { opacity: .10 !important; }
#authorization-node-v2 .v2-noise { opacity: .055 !important; }
#authorization-node-v2 .v2-nebula { opacity: .12 !important; }
