:root {
            --bg: #020809;
            --green: #00ff9c;
            --green-2: #00d684;
            --cyan: #00eaff;
            --text: #e3fff6;
            --muted: #77a99a;
            --danger: #ff5d7c;
            --font-mono: Consolas, "Courier New", monospace;
        }

        html[data-login-theme="dark"] {
            color-scheme: dark;
        }

        html[data-login-theme="light"] {
            color-scheme: light;
            --bg: #cbd0d3;
            --green: #8a3f62;
            --green-2: #5b2a43;
            --cyan: #b27655;
            --text: #243432;
            --muted: #64716f;
            --danger: #b4233e;
            --light-page: #cbd0d3;
            --light-page-deep: #b8bfc3;
            --light-surface: #f5f7f7;
            --light-surface-strong: #ffffff;
            --light-ink: #243432;
            --light-ink-soft: #465856;
            --light-line: rgba(138,63,98,0.22);
            --light-line-strong: rgba(138,63,98,0.38);
            --light-metal: #849092;
            --light-shadow: rgba(32,45,45,0.17);
        }

        * {
            box-sizing: border-box;
        }

        html,
        body {
            margin: 0;
            width: 100%;
            min-height: 100%;
        }

        body {
            width: 100%;
            height: 100vh;
            overflow: hidden;
            font-family: var(--font-mono);
            color: var(--text);
            background:
                radial-gradient(circle at 50% 45%, rgba(0, 80, 68, 0.22), transparent 35%),
                radial-gradient(circle at center, #071719 0%, #030d0e 42%, #010506 75%, #000203 100%);
        }

        button,
        input {
            font: inherit;
        }

        /* =========================================================
           BACKGROUND
           ========================================================= */

        #matrix {
            position: fixed;
            inset: 0;
            z-index: 1;
            width: 100%;
            height: 100%;
            pointer-events: none;
            opacity: 0.16;
        }

        .grid {
            position: fixed;
            inset: 0;
            z-index: 2;
            pointer-events: none;
            background-image:
                linear-gradient(rgba(0, 255, 156, 0.035) 1px, transparent 1px),
                linear-gradient(90deg, rgba(0, 255, 156, 0.035) 1px, transparent 1px);
            background-size: 50px 50px;
            -webkit-mask-image: radial-gradient(circle, #000 22%, transparent 92%);
            mask-image: radial-gradient(circle, #000 22%, transparent 92%);
        }

        .scan-lines {
            position: fixed;
            inset: 0;
            z-index: 20;
            pointer-events: none;
            opacity: 0.30;
            background:
                repeating-linear-gradient(
                    0deg,
                    rgba(255,255,255,0.013),
                    rgba(255,255,255,0.013) 1px,
                    transparent 1px,
                    transparent 4px
                );
        }

        .scanner {
            position: fixed;
            left: 0;
            right: 0;
            top: -5%;
            z-index: 21;
            height: 1px;
            pointer-events: none;
            opacity: 0.16;
            background: var(--green);
            box-shadow:
                0 0 8px var(--green),
                0 0 18px rgba(0,255,156,0.45);
            animation: scanScreen 8s linear infinite;
        }

        @keyframes scanScreen {
            to {
                top: 105%;
            }
        }

        /* =========================================================
           MYSTERY WORDS
           - Mỗi đợt chỉ dùng 3-5 từ ngẫu nhiên
           - Cùng lúc tối đa 1-2 từ
           - Mỗi từ tự phát sáng rồi biến mất
           ========================================================= */

        .mystery-words {
            position: fixed;
            inset: 0;
            z-index: 4;
            overflow: hidden;
            pointer-events: none;
        }

        .mystery-word {
            position: absolute;
            white-space: nowrap;
            user-select: none;
            opacity: 0;
            font-family: var(--font-mono);
            font-weight: 700;
            letter-spacing: 2px;
            text-transform: uppercase;
            color: var(--green);
            transform:
                translate(-50%, -50%)
                scale(0.82)
                translateY(10px);
            filter: blur(6px);
            animation:
                mysteryWordAppear var(--life, 5s)
                ease-in-out forwards;
        }

        .mystery-word.cyan {
            color: var(--cyan);
        }

        .mystery-word.dim {
            color: #9affd7;
        }

        .mystery-word::after {
            content: attr(data-text);
            position: absolute;
            inset: 0;
            opacity: 0.18;
            color: var(--cyan);
            transform: translateX(2px);
            clip-path: inset(42% 0 34% 0);
        }

        .mystery-word::before {
            content: attr(data-text);
            position: absolute;
            inset: 0;
            opacity: 0.10;
            color: var(--green);
            transform: translateX(-2px);
            clip-path: inset(15% 0 70% 0);
        }

        @keyframes mysteryWordAppear {
            0% {
                opacity: 0;
                filter: blur(7px);
                transform:
                    translate(-50%, -50%)
                    scale(0.78)
                    translateY(12px);
                text-shadow: none;
            }

            16% {
                opacity: 0.05;
            }

            30% {
                opacity: calc(var(--opacity, 0.58) * 0.52);
                filter: blur(1.5px);
            }

            40% {
                opacity: var(--opacity, 0.58);
                filter: blur(0);
                transform:
                    translate(-50%, -50%)
                    scale(1);
                text-shadow:
                    0 0 4px currentColor,
                    0 0 10px currentColor,
                    0 0 22px currentColor,
                    0 0 38px rgba(0,255,156,0.25);
            }

            56% {
                opacity: calc(var(--opacity, 0.58) * 0.88);
                text-shadow:
                    0 0 3px currentColor,
                    0 0 8px currentColor,
                    0 0 18px currentColor,
                    0 0 32px rgba(0,255,156,0.20);
            }

            76% {
                opacity: 0.18;
                filter: blur(0.8px);
                transform:
                    translate(-50%, -50%)
                    scale(1.04)
                    translateY(-7px);
            }

            100% {
                opacity: 0;
                filter: blur(5px);
                transform:
                    translate(-50%, -50%)
                    scale(1.07)
                    translateY(-16px);
                text-shadow: none;
            }
        }

        /* =========================================================
           COMPLEX STREAMS
           - Tăng độ phức tạp cho vùng chữ chạy nền
           ========================================================= */

        .complex-streams {
            position: fixed;
            inset: 0;
            z-index: 3;
            overflow: hidden;
            pointer-events: none;
        }

        .stream-column {
            position: absolute;
            top: -18vh;
            white-space: nowrap;
            writing-mode: vertical-rl;
            text-orientation: mixed;
            font-family: var(--font-mono);
            font-size: 14px;
            line-height: 0.88;
            letter-spacing: 1px;
            color: rgba(0, 255, 156, 0.17);
            text-shadow:
                0 0 6px rgba(0,255,156,0.22),
                0 0 16px rgba(0,255,156,0.12);
            filter: blur(0.15px);
            user-select: none;
            opacity: var(--opacity, 0.18);
            transform: translateX(0);
            mix-blend-mode: screen;
        }

        .stream-column.soft {
            color: rgba(106, 255, 206, 0.11);
            text-shadow:
                0 0 4px rgba(0,255,156,0.16),
                0 0 12px rgba(0,255,156,0.08);
        }

        .stream-column.bright {
            color: rgba(0, 234, 255, 0.18);
            text-shadow:
                0 0 6px rgba(0,234,255,0.26),
                0 0 16px rgba(0,234,255,0.12);
        }

        .stream-column::after {
            content: attr(data-shadow);
            position: absolute;
            inset: 0;
            color: rgba(0,255,156,0.08);
            transform: translateX(2px);
            filter: blur(1px);
            opacity: 0.55;
        }

        @keyframes streamDriftDown {
            0% {
                transform: translate3d(0, -14vh, 0);
            }

            100% {
                transform: translate3d(var(--drift-x, 0px), 122vh, 0);
            }
        }

        @keyframes streamDriftUp {
            0% {
                transform: translate3d(0, 112vh, 0);
            }

            100% {
                transform: translate3d(var(--drift-x, 0px), -20vh, 0);
            }
        }

        @keyframes streamFlicker {
            0%,
            100% {
                opacity: calc(var(--opacity, 0.18) * 0.72);
                filter: blur(0.2px);
            }

            35% {
                opacity: var(--opacity, 0.18);
                filter: blur(0);
            }

            65% {
                opacity: calc(var(--opacity, 0.18) * 0.54);
            }
        }

        /* =========================================================
           CULTURE PANEL
           - Hiển thị giá trị cốt lõi với hiệu ứng neon lóe sáng
           ========================================================= */

        .culture-panel {
            position: relative;
            width: 100%;
            margin-top: 22px;
            padding: 16px 14px 18px;
            overflow: hidden;
            border: 1px solid rgba(0,255,156,0.18);
            background:
                linear-gradient(
                    180deg,
                    rgba(0,255,156,0.035),
                    rgba(0,14,18,0.22)
                );
            box-shadow:
                inset 0 0 18px rgba(0,255,156,0.03),
                0 0 16px rgba(0,255,156,0.03);
        }

        .culture-panel::before {
            content: "";
            position: absolute;
            top: 0;
            left: 16px;
            width: 56px;
            height: 1px;
            background: var(--green);
            box-shadow:
                0 0 7px rgba(0,255,156,0.55),
                0 0 18px rgba(0,255,156,0.16);
        }

        .culture-panel::after {
            content: "";
            position: absolute;
            right: 10px;
            bottom: 10px;
            width: 26px;
            height: 26px;
            border-right: 1px solid rgba(0,255,156,0.28);
            border-bottom: 1px solid rgba(0,255,156,0.28);
            opacity: 0.7;
        }

        .culture-title {
            margin-bottom: 14px;
            color: rgba(0,255,156,0.74);
            text-align: center;
            font-size: 10px;
            letter-spacing: 2px;
        }

        .culture-lines {
            display: flex;
            flex-direction: column;
            gap: 14px;
        }

        .culture-line {
            display: flex;
            flex-wrap: nowrap;
            justify-content: center;
            align-items: center;
            gap: 3px;
            width: 100%;
            white-space: nowrap;
            text-align: center;
            animation: cultureBreath 4.8s ease-in-out infinite;
        }

        .culture-line.secondary {
            animation-delay: 1.9s;
        }

        @keyframes cultureBreath {
            0%,
            100% {
                opacity: 0.86;
                transform: scale(1);
            }

            50% {
                opacity: 1;
                transform: scale(1.01);
            }
        }

        .value-chip {
            position: relative;
            display: inline-block;
            flex: 0 0 auto;
            padding: 1px 2px;
            color: rgba(223,255,244,0.92);
            font-size: clamp(8px, 0.72vw, 11px);
            font-weight: 700;
            letter-spacing: 0.35px;
            white-space: nowrap;
            text-shadow:
                0 0 5px rgba(0,255,156,0.18),
                0 0 13px rgba(0,255,156,0.08);
            transition:
                color 0.22s ease,
                text-shadow 0.22s ease,
                transform 0.22s ease,
                filter 0.22s ease;
            filter: saturate(1);
        }

        .culture-sep {
            flex: 0 0 auto;
            color: rgba(0,255,156,0.38);
            font-size: clamp(8px, 0.68vw, 10px);
            white-space: nowrap;
        }

        .value-chip.active-flash {
            transform: translateY(-1px) scale(1.05);
            filter: saturate(1.22);
            animation: neonFlash 0.95s ease-in-out;
        }

        .value-chip.flash-cyan {
            color: #78f9ff;
            text-shadow:
                0 0 6px #78f9ff,
                0 0 15px rgba(120,249,255,0.9),
                0 0 30px rgba(120,249,255,0.48);
        }

        .value-chip.flash-pink {
            color: #ff73c6;
            text-shadow:
                0 0 6px #ff73c6,
                0 0 15px rgba(255,115,198,0.9),
                0 0 30px rgba(255,115,198,0.45);
        }

        .value-chip.flash-gold {
            color: #ffe07c;
            text-shadow:
                0 0 6px #ffe07c,
                0 0 14px rgba(255,224,124,0.85),
                0 0 28px rgba(255,224,124,0.36);
        }

        .value-chip.flash-violet {
            color: #bb8cff;
            text-shadow:
                0 0 6px #bb8cff,
                0 0 14px rgba(187,140,255,0.85),
                0 0 28px rgba(187,140,255,0.35);
        }

        @keyframes neonFlash {
            0% {
                opacity: 0.62;
            }

            20% {
                opacity: 1;
            }

            40% {
                opacity: 0.75;
            }

            65% {
                opacity: 1;
            }

            100% {
                opacity: 1;
            }
        }

/* =========================================================
           HUD CORNERS
           ========================================================= */

        .corner {
            position: fixed;
            z-index: 10;
            width: 90px;
            height: 90px;
            pointer-events: none;
            opacity: 0.62;
        }

        .corner::before,
        .corner::after {
            content: "";
            position: absolute;
            background: var(--green);
            box-shadow:
                0 0 6px rgba(0,255,156,0.5),
                0 0 18px rgba(0,255,156,0.2);
        }

        .corner::before {
            width: 100%;
            height: 1px;
        }

        .corner::after {
            width: 1px;
            height: 100%;
        }

        .corner.tl {
            top: 25px;
            left: 25px;
        }

        .corner.tr {
            top: 25px;
            right: 25px;
            transform: rotate(90deg);
        }

        .corner.bl {
            bottom: 25px;
            left: 25px;
            transform: rotate(-90deg);
        }

        .corner.br {
            right: 25px;
            bottom: 25px;
            transform: rotate(180deg);
        }

        .hud-label {
            position: fixed;
            z-index: 8;
            color: rgba(0,255,156,0.35);
            font-size: 9px;
            letter-spacing: 2px;
            pointer-events: none;
        }

        .hud-label.top {
            top: 18px;
            left: 50%;
            transform: translateX(-50%);
        }

        .hud-label.bottom {
            bottom: 18px;
            left: 50%;
            transform: translateX(-50%);
        }

        /* =========================================================
           MAIN LAYOUT
           ========================================================= */

        .app {
            position: relative;
            z-index: 5;
            width: 100%;
            height: 100%;
            min-height: 100vh;
            display: grid;
            grid-template-columns: 330px minmax(460px, 1fr) 330px;
            gap: 24px;
            padding: 35px;
        }

        .side-panel {
            position: relative;
            min-width: 0;
            height: 100%;
            padding: 20px;
            overflow: hidden;
            border: 1px solid rgba(0,255,156,0.18);
            background:
                linear-gradient(
                    135deg,
                    rgba(0,255,156,0.035),
                    rgba(0,0,0,0.04)
                );
            backdrop-filter: blur(2px);
        }

        .side-panel::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 54px;
            height: 2px;
            background: var(--green);
            box-shadow:
                0 0 8px rgba(0,255,156,0.5),
                0 0 20px rgba(0,255,156,0.2);
        }

        .side-panel::after {
            content: "";
            position: absolute;
            right: 0;
            bottom: 0;
            width: 35px;
            height: 35px;
            border-right: 1px solid rgba(0,255,156,0.38);
            border-bottom: 1px solid rgba(0,255,156,0.38);
        }

        .panel-title {
            margin-bottom: 18px;
            color: var(--green);
            font-size: 12px;
            letter-spacing: 3px;
        }

        /* =========================================================
           TERMINAL
           ========================================================= */

        .terminal {
            height: calc(100% - 40px);
            overflow: hidden;
            color: rgba(116,255,193,0.62);
            font-size: 11px;
            line-height: 1.72;
        }

        .terminal-line {
            opacity: 0;
            animation: terminalIn 0.28s forwards;
        }

        .terminal-line::before {
            content: "> ";
            color: var(--cyan);
        }

        @keyframes terminalIn {
            to {
                opacity: 1;
            }
        }

        /* =========================================================
           LOGIN
           ========================================================= */

        .center {
            position: relative;
            min-width: 0;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .login-card {
            position: relative;
            width: min(100%, 540px);
            padding: 52px 48px 44px;
            overflow: hidden;
            background:
                linear-gradient(
                    145deg,
                    rgba(4,25,26,0.94),
                    rgba(0,8,10,0.92)
                );
            border: 1px solid rgba(0,255,156,0.32);
            clip-path:
                polygon(
                    18px 0,
                    calc(100% - 18px) 0,
                    100% 18px,
                    100% calc(100% - 18px),
                    calc(100% - 18px) 100%,
                    18px 100%,
                    0 calc(100% - 18px),
                    0 18px
                );
            box-shadow:
                0 0 0 1px rgba(0,255,156,0.05),
                0 0 45px rgba(0,255,156,0.09),
                inset 0 0 34px rgba(0,255,156,0.022);
            backdrop-filter: blur(12px);
            animation: cardAppear 0.9s ease-out;
        }

        .login-card::before {
            content: "";
            position: absolute;
            top: 0;
            left: 12%;
            width: 76%;
            height: 1px;
            background:
                linear-gradient(
                    90deg,
                    transparent,
                    var(--green),
                    transparent
                );
            box-shadow:
                0 0 7px rgba(0,255,156,0.6),
                0 0 22px rgba(0,255,156,0.26);
        }

        .login-card::after {
            content: "";
            position: absolute;
            inset: 0;
            pointer-events: none;
            opacity: 0.14;
            background:
                linear-gradient(
                    110deg,
                    transparent 0 43%,
                    rgba(0,255,156,0.16) 49%,
                    transparent 55% 100%
                );
            transform: translateX(-120%);
            animation: cardLight 8s ease-in-out infinite 1.5s;
        }

        @keyframes cardAppear {
            from {
                opacity: 0;
                transform: scale(0.94);
            }
            to {
                opacity: 1;
                transform: scale(1);
            }
        }

        @keyframes cardLight {
            0%, 62%, 100% {
                transform: translateX(-120%);
            }
            75% {
                transform: translateX(120%);
            }
        }

        .card-corner {
            position: absolute;
            z-index: 2;
            width: 30px;
            height: 30px;
            pointer-events: none;
        }

        .card-corner::before,
        .card-corner::after {
            content: "";
            position: absolute;
            background: var(--green);
            box-shadow:
                0 0 5px rgba(0,255,156,0.6),
                0 0 15px rgba(0,255,156,0.22);
        }

        .card-corner::before {
            width: 18px;
            height: 1px;
        }

        .card-corner::after {
            width: 1px;
            height: 18px;
        }

        .card-corner.a {
            top: 8px;
            left: 8px;
        }

        .card-corner.b {
            top: 8px;
            right: 8px;
            transform: rotate(90deg);
        }

        .card-corner.c {
            bottom: 8px;
            left: 8px;
            transform: rotate(-90deg);
        }

        .card-corner.d {
            right: 8px;
            bottom: 8px;
            transform: rotate(180deg);
        }

        .brand {
            position: relative;
            z-index: 3;
            margin-bottom: 36px;
            text-align: center;
        }

        .logo {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 64px;
            height: 64px;
            margin-bottom: 18px;
            border: 1px solid var(--green);
            color: var(--green);
            font-size: 18px;
            font-weight: 800;
            transform: rotate(45deg);
            box-shadow:
                0 0 10px rgba(0,255,156,0.25),
                inset 0 0 15px rgba(0,255,156,0.08);
        }

        .logo span {
            transform: rotate(-45deg);
        }

        .brand h1 {
            margin: 0;
            color: #effff9;
            font-size: 27px;
            line-height: 1.25;
            font-weight: 700;
            letter-spacing: 3px;
            text-shadow: 0 0 12px rgba(0,255,156,0.22);
        }

        .brand p {
            margin: 9px 0 0;
            color: var(--muted);
            font-size: 11px;
            letter-spacing: 4px;
        }

        /* =========================================================
           RANDOM QUOTE TYPEWRITER
           - Thay cho dòng "QUẢN LÝ KHÁCH HÀNG"
           - Gõ chữ ngẫu nhiên
           - Chữ cũ tự mất dần khi dòng quá dài
           - Con trỏ neon nhấp nháy
           ========================================================= */

        .quote-typewriter {
            position: relative;
            z-index: 4;
            width: min(100%, 430px);
            height: 32px;
            margin: 10px auto 0;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            white-space: nowrap;
            color: rgba(181, 231, 216, 0.78);
            font-size: 11.2px;
            font-weight: 600;
            line-height: 1;
            letter-spacing: 0.45px;
            text-align: center;
            text-shadow:
                0 0 5px rgba(0,255,156,0.13),
                0 0 11px rgba(0,255,156,0.06);
        }

        .quote-typewriter::before,
        .quote-typewriter::after {
            content: "";
            position: absolute;
            top: 50%;
            width: 24px;
            height: 1px;
            opacity: 0.16;
            background:
                linear-gradient(
                    90deg,
                    transparent,
                    var(--green)
                );
        }

        .quote-typewriter::before {
            left: 0;
        }

        .quote-typewriter::after {
            right: 0;
            transform: rotate(180deg);
        }

        .quote-typewriter-text {
            display: inline-block;
            max-width: calc(100% - 30px);
            overflow: hidden;
            text-overflow: clip;
            vertical-align: middle;
            opacity: 1;
            transform: translateX(0);
            filter: blur(0);
            transition:
                opacity 0.28s ease,
                transform 0.22s ease,
                filter 0.28s ease,
                color 0.3s ease,
                text-shadow 0.3s ease;
        }

        /*
         * Khi các từ cũ ở đầu câu bị bỏ đi,
         * phần còn lại dịch rất nhẹ để tạo cảm giác
         * dữ liệu đang được đẩy qua terminal.
         */
        .quote-typewriter-text.window-shift {
            animation: quoteWindowShift 0.24s ease-out;
        }

        @keyframes quoteWindowShift {
            0% {
                opacity: 0.70;
                transform: translateX(-5px);
                filter: blur(0.7px);
            }

            100% {
                opacity: 1;
                transform: translateX(0);
                filter: blur(0);
            }
        }

        /*
         * Cuối một câu:
         * toàn bộ phần còn lại mờ / tan đi trước
         * khi câu ngẫu nhiên tiếp theo bắt đầu.
         */
        .quote-typewriter-text.quote-fade-out {
            opacity: 0;
            transform: translateY(-3px);
            filter: blur(3px);
        }

        /*
         * Đôi lúc ánh sáng câu gõ tăng nhẹ,
         * tránh hiệu ứng nhìn quá phẳng.
         */
        .quote-typewriter-text.quote-pulse {
            color: rgba(213,255,242,0.96);
            text-shadow:
                0 0 4px rgba(0,255,156,0.55),
                0 0 11px rgba(0,255,156,0.22),
                0 0 20px rgba(0,234,255,0.10);
        }

        .quote-typewriter-cursor {
            display: inline-block;
            flex: 0 0 auto;
            width: 6px;
            height: 14px;
            margin-left: 5px;
            border-radius: 1px;
            background: var(--green);
            box-shadow:
                0 0 5px var(--green),
                0 0 12px rgba(0,255,156,0.55);
            animation: quoteCursorBlink 0.78s steps(1, end) infinite;
        }

        .quote-typewriter.typing .quote-typewriter-cursor {
            animation-duration: 0.48s;
        }

        @keyframes quoteCursorBlink {
            0%,
            48% {
                opacity: 1;
            }

            49%,
            100% {
                opacity: 0.08;
            }
        }

        @media (max-width: 560px) {
            .quote-typewriter {
                width: 100%;
                height: 32px;
                font-size: 9.4px;
                letter-spacing: 0.28px;
            }

            .quote-typewriter::before,
            .quote-typewriter::after {
                width: 12px;
            }
        }

        .system-status {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 7px;
            margin-top: 15px;
            color: var(--green-2);
            font-size: 10px;
            letter-spacing: 1.5px;
        }

        .status-dot {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: var(--green);
            box-shadow:
                0 0 5px var(--green),
                0 0 12px var(--green);
            animation: pulse 1.5s infinite;
        }

        @keyframes pulse {
            50% {
                opacity: 0.35;
            }
        }

        .login-form {
            position: relative;
            z-index: 3;
        }

        .theme-selector {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            margin: -9px 0 14px;
            padding: 4px;
            border-bottom: 1px solid rgba(0,255,156,0.22);
            background: rgba(0,255,156,0.025);
        }

        .theme-selector-label {
            padding: 0 6px 0 2px;
            color: var(--muted);
            font-size: 8px;
            letter-spacing: 1px;
        }

        .theme-selector button {
            min-width: 42px;
            padding: 5px 7px;
            cursor: pointer;
            border: 0;
            background: transparent;
            color: var(--muted);
            font-size: 8px;
            letter-spacing: 1px;
        }

        .theme-selector button:hover {
            color: var(--green);
        }

        .theme-selector button[aria-pressed="true"] {
            background: var(--green);
            color: #ffffff;
            box-shadow: 0 0 12px rgba(0,255,156,0.16);
        }

        .field {
            margin-bottom: 22px;
        }

        .field label {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            margin-bottom: 9px;
            color: var(--green-2);
            font-size: 11px;
            letter-spacing: 1.4px;
        }

        .field-code {
            flex: 0 0 auto;
            color: rgba(0,234,255,0.45);
        }

        .input-wrap {
            position: relative;
        }

        .input-wrap input {
            width: 100%;
            height: 52px;
            padding: 0 46px 0 16px;
            outline: none;
            border: 1px solid rgba(0,255,156,0.25);
            border-radius: 0;
            background: rgba(0,12,13,0.75);
            color: var(--text);
            caret-color: var(--green);
            font-size: 14px;
            transition:
                border-color 0.25s ease,
                box-shadow 0.25s ease,
                background 0.25s ease;
        }

        .input-wrap input::placeholder {
            color: rgba(119,169,154,0.35);
        }

        .input-wrap input:focus {
            border-color: var(--green);
            background: rgba(0,25,23,0.9);
            box-shadow:
                0 0 0 1px rgba(0,255,156,0.12),
                0 0 20px rgba(0,255,156,0.08);
        }

        .input-wrap::before {
            content: "";
            position: absolute;
            z-index: 2;
            top: 0;
            left: 0;
            width: 8px;
            height: 8px;
            border-top: 1px solid var(--green);
            border-left: 1px solid var(--green);
            pointer-events: none;
        }

        .input-icon {
            position: absolute;
            right: 16px;
            top: 50%;
            transform: translateY(-50%);
            color: rgba(0,255,156,0.6);
            pointer-events: none;
        }

        .password-toggle {
            position: absolute;
            right: 12px;
            top: 50%;
            min-width: 52px;
            padding: 6px 7px;
            transform: translateY(-50%);
            cursor: pointer;
            border: 1px solid rgba(0,255,156,0.25);
            background: rgba(0,20,18,0.82);
            color: var(--green-2);
            font: inherit;
            font-size: 9px;
            letter-spacing: 1px;
        }

        .password-field-wrap input {
            padding-right: 82px;
        }

        .password-toggle:hover,
        .password-toggle[aria-pressed="true"] {
            border-color: var(--green);
            background: rgba(0,45,35,0.9);
        }

        .login-button {
            position: relative;
            width: 100%;
            height: 54px;
            margin-top: 10px;
            overflow: hidden;
            cursor: pointer;
            border: 1px solid var(--green);
            background:
                linear-gradient(
                    90deg,
                    rgba(0,255,156,0.08),
                    rgba(0,255,156,0.20),
                    rgba(0,255,156,0.08)
                );
            color: var(--green);
            font-size: 13px;
            font-weight: 700;
            letter-spacing: 2.5px;
            transition:
                color 0.25s,
                background 0.25s,
                box-shadow 0.25s,
                transform 0.15s;
        }

        .login-button::before {
            content: "";
            position: absolute;
            top: 0;
            left: -100%;
            width: 60%;
            height: 100%;
            background:
                linear-gradient(
                    90deg,
                    transparent,
                    rgba(255,255,255,0.22),
                    transparent
                );
            transform: skewX(-20deg);
            transition: left 0.5s;
        }

        .login-button:hover::before {
            left: 150%;
        }

        .login-button:hover {
            background: var(--green);
            color: #00110b;
            box-shadow:
                0 0 12px rgba(0,255,156,0.35),
                0 0 30px rgba(0,255,156,0.16);
        }

        .login-button:active {
            transform: translateY(1px);
        }

        .login-button:disabled {
            cursor: wait;
            opacity: 0.6;
        }

        .login-message {
            display: none;
            margin-top: 16px;
            padding: 10px 12px;
            border: 1px solid rgba(255,93,124,0.35);
            background: rgba(255,93,124,0.05);
            color: #ff8aa0;
            text-align: center;
            font-size: 11px;
            line-height: 1.5;
            letter-spacing: 0.8px;
        }

        .login-message.show {
            display: block;
        }

        .login-message.success {
            border-color: rgba(0,255,156,0.35);
            background: rgba(0,255,156,0.05);
            color: var(--green);
        }

        .login-footer {
            position: relative;
            z-index: 3;
            display: flex;
            justify-content: space-between;
            gap: 15px;
            margin-top: 28px;
            color: rgba(117,175,158,0.62);
            font-size: 9px;
            letter-spacing: 1px;
        }

        .motion-toggle {
            padding: 0;
            cursor: pointer;
            border: 0;
            border-bottom: 1px solid rgba(0,255,156,0.28);
            background: transparent;
            color: rgba(0,255,156,0.72);
            font: inherit;
            letter-spacing: inherit;
        }

        .motion-toggle:hover,
        .motion-toggle[aria-pressed="true"] {
            border-bottom-color: var(--cyan);
            color: var(--cyan);
        }

        /* =========================================================
           RADAR
           ========================================================= */

        .radar-section {
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .radar {
            position: relative;
            flex: 0 0 auto;
            width: 230px;
            height: 230px;
            aspect-ratio: 1;
            margin-top: 28px;
            overflow: hidden;
            border: 1px solid rgba(0,255,156,0.35);
            border-radius: 50%;
            background:
                repeating-radial-gradient(
                    circle,
                    transparent 0,
                    transparent 37px,
                    rgba(0,255,156,0.14) 38px,
                    transparent 39px
                );
            box-shadow:
                inset 0 0 20px rgba(0,255,156,0.05),
                0 0 18px rgba(0,255,156,0.08);
        }

        .radar::before,
        .radar::after {
            content: "";
            position: absolute;
            background: rgba(0,255,156,0.16);
        }

        .radar::before {
            left: 50%;
            width: 1px;
            height: 100%;
        }

        .radar::after {
            top: 50%;
            width: 100%;
            height: 1px;
        }

        .radar-sweep {
            position: absolute;
            inset: 0;
            border-radius: 50%;
            background:
                conic-gradient(
                    from 0deg,
                    transparent 0deg,
                    transparent 285deg,
                    rgba(0,255,156,0.03) 300deg,
                    rgba(0,255,156,0.40) 359deg,
                    transparent 360deg
                );
            animation: radarRotate 4s linear infinite;
        }

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

        .radar-dot {
            position: absolute;
            width: 5px;
            height: 5px;
            border-radius: 50%;
            background: var(--green);
            box-shadow:
                0 0 5px var(--green),
                0 0 12px var(--green);
            animation: dotBlink 2s ease-in-out infinite;
            transition:
                opacity 0.22s ease,
                transform 0.22s ease,
                filter 0.22s ease;
            will-change: left, top, opacity, transform;
        }

        .radar-dot.radar-dot-shifting {
            opacity: 0;
            transform: scale(0.45);
            filter: blur(1px);
            animation: none;
        }

        .radar-dot.one {
            top: 35%;
            left: 68%;
        }

        .radar-dot.two {
            top: 68%;
            left: 38%;
            animation-delay: 0.4s;
        }

        .radar-dot.three {
            top: 52%;
            left: 23%;
            animation-delay: 1s;
        }

        .radar-dot.four {
            top: 27%;
            left: 43%;
            animation-delay: 1.45s;
        }

        @keyframes dotBlink {
            50% {
                opacity: 0.16;
            }
        }

        .clock {
            width: 100%;
            margin-top: 36px;
            text-align: center;
        }

        #time {
            color: var(--green);
            font-size: 29px;
            letter-spacing: 4px;
            text-shadow: 0 0 10px rgba(0,255,156,0.35);
        }

        #date {
            margin-top: 7px;
            color: var(--muted);
            font-size: 10px;
            letter-spacing: 2px;
        }

        .system-data {
            width: 100%;
            margin-top: 35px;
            font-size: 10px;
        }

        .data-row {
            display: flex;
            justify-content: space-between;
            gap: 12px;
            padding: 9px 0;
            border-bottom: 1px dashed rgba(0,255,156,0.12);
        }

        .data-row span:first-child {
            color: var(--muted);
        }

        .data-row span:last-child {
            color: var(--green-2);
            text-align: right;
        }


        /* =========================================================
           LEFT STACK + PERFORMANCE SIGNAL
           ========================================================= */

        .left-stack {
            display: flex;
            flex-direction: column;
            gap: 14px;
        }

        .terminal-section {
            min-height: 0;
            flex: 1 1 auto;
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        .left-stack .terminal {
            min-height: 0;
            height: auto;
            flex: 1 1 auto;
        }

        .performance-panel {
            position: relative;
            flex: 0 0 auto;
            width: 100%;
            padding: 13px 12px 11px;
            overflow: hidden;
            border: 1px solid rgba(0,255,156,0.22);
            background:
                linear-gradient(
                    180deg,
                    rgba(0,255,156,0.035),
                    rgba(0,8,10,0.62)
                );
            box-shadow:
                inset 0 0 22px rgba(0,255,156,0.025),
                0 0 16px rgba(0,255,156,0.025);
        }

        .performance-panel::before {
            content: "";
            position: absolute;
            top: 0;
            left: 13px;
            width: 49px;
            height: 1px;
            background: var(--green);
            box-shadow:
                0 0 6px rgba(0,255,156,0.65),
                0 0 17px rgba(0,255,156,0.20);
        }

        .performance-panel::after {
            content: "";
            position: absolute;
            right: 7px;
            bottom: 7px;
            width: 18px;
            height: 18px;
            border-right: 1px solid rgba(0,255,156,0.25);
            border-bottom: 1px solid rgba(0,255,156,0.25);
            pointer-events: none;
        }

        .performance-title {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            margin-bottom: 10px;
            color: var(--green);
            font-size: 8px;
            font-weight: 700;
            letter-spacing: 1.2px;
        }

        .performance-live {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            color: var(--cyan);
            font-size: 7px;
            letter-spacing: 1px;
        }

        .performance-live-dot {
            width: 4px;
            height: 4px;
            border-radius: 50%;
            background: var(--cyan);
            box-shadow:
                0 0 5px var(--cyan),
                0 0 11px rgba(0,234,255,0.8);
            animation: performanceLivePulse 1.15s ease-in-out infinite;
        }

        @keyframes performanceLivePulse {
            50% {
                opacity: 0.24;
                transform: scale(0.72);
            }
        }

        .wave-card + .wave-card {
            margin-top: 9px;
            padding-top: 8px;
            border-top: 1px dashed rgba(0,255,156,0.12);
        }

        .wave-head,
        .wave-footer {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
        }

        .wave-head {
            margin-bottom: 4px;
        }

        .wave-name {
            color: rgba(220,255,245,0.82);
            font-size: 8px;
            font-weight: 700;
            letter-spacing: 0.75px;
        }

        .wave-value {
            flex: 0 0 auto;
            font-size: 9px;
            font-weight: 700;
            letter-spacing: 0.7px;
        }

        .wave-value.green,
        .wave-trend.green {
            color: var(--green);
            text-shadow: 0 0 8px rgba(0,255,156,0.4);
        }

        .wave-value.cyan,
        .wave-trend.cyan {
            color: var(--cyan);
            text-shadow: 0 0 8px rgba(0,234,255,0.4);
        }

        .wave-chart {
            position: relative;
            width: 100%;
            height: 36px;
            overflow: hidden;
            border-left: 1px solid rgba(0,255,156,0.10);
            border-bottom: 1px solid rgba(0,255,156,0.10);
            background:
                linear-gradient(
                    rgba(0,255,156,0.035) 1px,
                    transparent 1px
                ),
                linear-gradient(
                    90deg,
                    rgba(0,255,156,0.035) 1px,
                    transparent 1px
                );
            background-size: 18px 12px;
        }

        .wave-chart::after {
            content: "";
            position: absolute;
            top: 0;
            bottom: 0;
            width: 26px;
            pointer-events: none;
            background:
                linear-gradient(
                    90deg,
                    transparent,
                    rgba(0,255,156,0.07),
                    transparent
                );
            animation: performanceScan 3.4s linear infinite;
        }

        .wave-card.second .wave-chart::after {
            background:
                linear-gradient(
                    90deg,
                    transparent,
                    rgba(0,234,255,0.07),
                    transparent
                );
            animation-delay: -1.7s;
        }

        @keyframes performanceScan {
            from {
                left: -30px;
            }

            to {
                left: calc(100% + 30px);
            }
        }

        .wave-canvas {
            display: block;
            width: 100%;
            height: 100%;
        }

        .wave-footer {
            margin-top: 3px;
            color: rgba(117,169,154,0.44);
            font-size: 6.4px;
            letter-spacing: 0.55px;
        }

        .wave-trend {
            font-size: 6.8px;
            font-weight: 700;
        }

        /* =========================================================
           CONNECT & SHARE SLOGAN
           ========================================================= */

        .connect-slogan {
            position: relative;
            width: 100%;
            min-height: 92px;
            margin-top: 16px;
            padding: 12px 10px 13px;
            overflow: hidden;
            border: 1px solid rgba(0,255,156,0.16);
            background:
                radial-gradient(
                    circle at 50% 50%,
                    rgba(0,255,156,0.055),
                    transparent 58%
                ),
                rgba(0,8,10,0.28);
            box-shadow:
                inset 0 0 22px rgba(0,255,156,0.025);
        }

        .connect-slogan::before {
            content: "";
            position: absolute;
            top: 0;
            left: 13px;
            width: 46px;
            height: 1px;
            background: var(--green);
            box-shadow:
                0 0 7px rgba(0,255,156,0.55),
                0 0 18px rgba(0,255,156,0.18);
        }

        .connect-slogan::after {
            content: "";
            position: absolute;
            left: -45%;
            top: 0;
            width: 35%;
            height: 100%;
            pointer-events: none;
            background:
                linear-gradient(
                    90deg,
                    transparent,
                    rgba(0,255,156,0.09),
                    transparent
                );
            transform: skewX(-20deg);
            animation: sloganSweep 5.8s ease-in-out infinite;
        }

        @keyframes sloganSweep {
            0%,
            45% {
                left: -45%;
            }

            72% {
                left: 125%;
            }

            100% {
                left: 125%;
            }
        }

        .connect-slogan-grid {
            position: absolute;
            inset: 0;
            opacity: 0.46;
            background-image:
                linear-gradient(
                    rgba(0,255,156,0.025) 1px,
                    transparent 1px
                ),
                linear-gradient(
                    90deg,
                    rgba(0,255,156,0.025) 1px,
                    transparent 1px
                );
            background-size: 18px 18px;
            -webkit-mask-image:
                radial-gradient(circle at center, #000, transparent 78%);
            mask-image:
                radial-gradient(circle at center, #000, transparent 78%);
        }

        .connect-slogan-label {
            position: relative;
            z-index: 2;
            margin-bottom: 8px;
            color: rgba(0,255,156,0.48);
            text-align: center;
            font-size: 6.5px;
            letter-spacing: 1.5px;
        }

        .connect-slogan-text {
            position: relative;
            z-index: 2;
            display: flex;
            align-items: baseline;
            justify-content: center;
            gap: 7px;
            white-space: nowrap;
            line-height: 1;
        }

        .connect-word,
        .share-word {
            font-size: clamp(16px, 1.28vw, 22px);
            font-weight: 800;
            letter-spacing: 0.9px;
        }

        .connect-word {
            color: var(--green);
            text-shadow:
                0 0 5px rgba(0,255,156,0.65),
                0 0 15px rgba(0,255,156,0.30),
                0 0 28px rgba(0,255,156,0.15);
            animation: connectGlow 3.6s ease-in-out infinite;
        }

        .share-word {
            color: var(--cyan);
            text-shadow:
                0 0 5px rgba(0,234,255,0.65),
                0 0 15px rgba(0,234,255,0.30),
                0 0 28px rgba(0,234,255,0.15);
            animation: shareGlow 3.6s ease-in-out infinite 1.1s;
        }

        .connect-amp {
            color: rgba(225,255,247,0.88);
            font-size: clamp(13px, 1vw, 17px);
            font-weight: 400;
            text-shadow: 0 0 8px rgba(255,255,255,0.28);
        }

        @keyframes connectGlow {
            0%,
            100% {
                opacity: 0.75;
                filter: brightness(0.92);
            }

            46% {
                opacity: 1;
                filter: brightness(1.25);
            }

            50% {
                opacity: 0.68;
            }

            55% {
                opacity: 1;
                filter: brightness(1.38);
            }
        }

        @keyframes shareGlow {
            0%,
            100% {
                opacity: 0.78;
                filter: brightness(0.94);
            }

            42% {
                opacity: 1;
                filter: brightness(1.30);
            }

            48% {
                opacity: 0.66;
            }

            54% {
                opacity: 1;
                filter: brightness(1.42);
            }
        }

        .connect-slogan-sub {
            position: relative;
            z-index: 2;
            margin-top: 8px;
            color: rgba(117,169,154,0.46);
            text-align: center;
            font-size: 6.1px;
            letter-spacing: 0.9px;
        }

        .connect-node {
            position: absolute;
            z-index: 2;
            width: 4px;
            height: 4px;
            border-radius: 50%;
            background: var(--green);
            box-shadow:
                0 0 5px var(--green),
                0 0 13px rgba(0,255,156,0.62);
            animation: connectNodeBlink 2.2s ease-in-out infinite;
        }

        .connect-node.node-a {
            left: 18%;
            top: 58%;
        }

        .connect-node.node-b {
            right: 18%;
            top: 36%;
            background: var(--cyan);
            box-shadow:
                0 0 5px var(--cyan),
                0 0 13px rgba(0,234,255,0.62);
            animation-delay: 0.65s;
        }

        .connect-node.node-c {
            right: 28%;
            bottom: 15%;
            animation-delay: 1.15s;
        }

        @keyframes connectNodeBlink {
            50% {
                opacity: 0.14;
                transform: scale(0.62);
            }
        }

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

        @media (max-width: 1180px) {
            .app {
                grid-template-columns: 240px minmax(420px, 1fr) 240px;
                gap: 16px;
                padding: 28px;
            }

            .radar {
                width: 180px;
                height: 180px;
            }

            .login-card {
                padding: 42px 32px 38px;
            }
        }

        @media (max-width: 900px) {
            body {
                overflow-y: auto;
            }

            .app {
                min-height: 100vh;
                display: flex;
                align-items: center;
                justify-content: center;
                padding: 24px;
            }

            .side-panel {
                display: none;
            }

            .center {
                width: 100%;
            }

            .login-card {
                width: min(100%, 520px);
            }

            .hud-label {
                display: none;
            }
        }

        @media (max-width: 560px) {
            .app {
                padding: 14px;
            }

            .login-card {
                padding: 40px 24px 32px;
            }

            .brand h1 {
                font-size: 21px;
            }

            .brand p {
                font-size: 9px;
                letter-spacing: 2px;
            }

            .field label {
                align-items: flex-start;
                flex-direction: column;
                gap: 4px;
            }

            .theme-selector button {
                min-width: 44px;
                min-height: 44px;
            }

            .password-toggle {
                min-height: 44px;
            }

            .login-footer {
                flex-direction: column;
                text-align: center;
            }

            .corner {
                width: 45px;
                height: 45px;
            }
        }

        .login-button:focus-visible,
        .password-toggle:focus-visible,
        .motion-toggle:focus-visible,
        .theme-selector button:focus-visible {
            outline: 2px solid var(--cyan);
            outline-offset: 3px;
        }

        .input-wrap input:focus-visible {
            outline: none;
            border-color: var(--green);
            box-shadow:
                0 0 0 1px rgba(0,255,156,0.16),
                0 0 22px rgba(0,255,156,0.16);
        }

        @media (max-height: 800px) and (min-width: 901px) {
            .app {
                padding-block: 22px;
            }

            .login-card {
                padding-block: 34px 30px;
            }

            .brand {
                margin-bottom: 24px;
            }

            .field {
                margin-bottom: 16px;
            }

            .radar {
                width: 150px;
                height: 150px;
                margin-top: 14px;
            }

            .clock {
                margin-top: 18px;
            }

            #time {
                font-size: 24px;
            }

            .system-data {
                margin-top: 18px;
            }

            .data-row {
                padding-block: 6px;
            }

            .culture-panel {
                margin-top: 14px;
                padding-block: 12px;
            }

            .culture-lines {
                gap: 8px;
            }

            .connect-slogan {
                min-height: 78px;
                margin-top: 12px;
                padding-block: 10px;
            }
        }

        /* =========================================================
           LIGHT LOGIN THEME
           ========================================================= */

        html[data-login-theme="light"] body {
            background:
                radial-gradient(circle at 50% 42%, rgba(255,255,255,0.38), transparent 32%),
                radial-gradient(circle at 82% 20%, rgba(138,63,98,0.065), transparent 28%),
                radial-gradient(circle at 15% 16%, rgba(255,255,255,0.18), transparent 25%),
                linear-gradient(145deg, #dde1e3 0%, var(--light-page) 53%, var(--light-page-deep) 100%);
        }

        html[data-login-theme="light"] #matrix {
            opacity: 0.38;
            mix-blend-mode: normal;
            filter: saturate(0);
        }

        html[data-login-theme="light"] .grid {
            opacity: 0.34;
            background-image:
                linear-gradient(rgba(255,255,255,0.34) 1px, transparent 1px),
                linear-gradient(90deg, rgba(255,255,255,0.34) 1px, transparent 1px);
        }

        html[data-login-theme="light"] .scan-lines {
            opacity: 0.07;
            background: repeating-linear-gradient(
                0deg,
                rgba(24,53,47,0.035),
                rgba(24,53,47,0.035) 1px,
                transparent 1px,
                transparent 4px
            );
        }

        html[data-login-theme="light"] .scanner {
            opacity: 0.10;
            box-shadow: 0 0 8px rgba(138,63,98,0.28);
        }

        html[data-login-theme="light"] .complex-streams,
        html[data-login-theme="light"] .mystery-words {
            opacity: 0.20;
            color: rgba(255,255,255,0.86);
            mix-blend-mode: soft-light;
        }

        html[data-login-theme="light"] .side-panel {
            border-color: var(--light-line);
            background:
                linear-gradient(145deg, rgba(250,251,251,0.94), rgba(235,239,239,0.88));
            box-shadow:
                0 18px 50px rgba(23,53,47,0.10),
                inset 0 1px 0 rgba(255,255,255,0.92);
            backdrop-filter: blur(16px);
        }

        html[data-login-theme="light"] .side-panel::before,
        html[data-login-theme="light"] .performance-panel::before,
        html[data-login-theme="light"] .culture-panel::before,
        html[data-login-theme="light"] .connect-slogan::before {
            background: linear-gradient(90deg, var(--light-metal), var(--green));
            box-shadow: 0 0 12px rgba(138,63,98,0.18);
        }

        html[data-login-theme="light"] .side-panel::after,
        html[data-login-theme="light"] .performance-panel::after,
        html[data-login-theme="light"] .culture-panel::after {
            border-color: rgba(138,63,98,0.28);
        }

        html[data-login-theme="light"] .login-card {
            border-color: var(--light-line-strong);
            background:
                linear-gradient(145deg, rgba(255,255,255,0.99), rgba(242,245,245,0.98));
            box-shadow:
                0 0 0 1px rgba(255,255,255,0.78),
                0 28px 78px var(--light-shadow),
                0 8px 24px rgba(138,63,98,0.08),
                inset 0 0 40px rgba(138,63,98,0.025);
            backdrop-filter: blur(22px);
        }

        html[data-login-theme="light"] .login-card::before {
            height: 2px;
            background: linear-gradient(90deg, transparent, var(--light-metal), var(--green), transparent);
            box-shadow: 0 0 16px rgba(138,63,98,0.16);
        }

        html[data-login-theme="light"] .login-card::after {
            opacity: 0.32;
            background:
                linear-gradient(112deg, transparent 0 42%, rgba(132,144,146,0.10) 48%, transparent 55% 100%);
        }

        html[data-login-theme="light"] .logo {
            border-color: var(--green);
            background: linear-gradient(145deg, rgba(255,255,255,0.96), rgba(229,239,235,0.92));
            color: var(--green-2);
            box-shadow:
                0 12px 28px rgba(23,53,47,0.12),
                inset 0 0 0 1px rgba(255,255,255,0.72);
        }

        html[data-login-theme="light"] .brand h1 {
            color: var(--light-ink);
            text-shadow: 0 2px 12px rgba(23,53,47,0.09);
        }

        html[data-login-theme="light"] .quote-typewriter,
        html[data-login-theme="light"] .terminal,
        html[data-login-theme="light"] .wave-name,
        html[data-login-theme="light"] .value-chip,
        html[data-login-theme="light"] .connect-amp {
            color: var(--light-ink-soft);
            text-shadow: none;
        }

        html[data-login-theme="light"] .panel-title,
        html[data-login-theme="light"] .performance-title,
        html[data-login-theme="light"] .culture-title {
            color: var(--green-2);
            text-shadow: none;
        }

        html[data-login-theme="light"] .terminal-line::before,
        html[data-login-theme="light"] .field-code,
        html[data-login-theme="light"] .performance-live {
            color: var(--cyan);
        }

        html[data-login-theme="light"] .system-status {
            color: var(--green-2);
        }

        html[data-login-theme="light"] .status-dot {
            box-shadow: 0 0 0 4px rgba(138,63,98,0.10), 0 0 12px rgba(138,63,98,0.30);
        }

        html[data-login-theme="light"] .theme-selector {
            gap: 3px;
            padding: 5px;
            border: 1px solid rgba(138,63,98,0.14);
            border-radius: 3px;
            background: rgba(231,234,241,0.88);
            box-shadow: inset 0 1px 2px rgba(23,53,47,0.04);
        }

        html[data-login-theme="light"] .theme-selector-label {
            color: #687078;
        }

        html[data-login-theme="light"] .theme-selector button {
            color: #59636e;
            border-radius: 2px;
        }

        html[data-login-theme="light"] .theme-selector button:hover {
            background: rgba(255,255,255,0.76);
            color: var(--green-2);
        }

        html[data-login-theme="light"] .theme-selector button[aria-pressed="true"] {
            background: linear-gradient(135deg, var(--green), var(--green-2));
            color: #ffffff;
            box-shadow: 0 5px 14px rgba(138,63,98,0.22);
        }

        html[data-login-theme="light"] .field label {
            color: var(--green-2);
        }

        html[data-login-theme="light"] .field-code {
            opacity: 0.72;
        }

        html[data-login-theme="light"] .input-wrap input {
            border-color: rgba(138,63,98,0.28);
            background: rgba(255,255,255,0.96);
            color: var(--light-ink);
            caret-color: var(--green);
            box-shadow:
                0 1px 2px rgba(23,53,47,0.035),
                inset 0 1px 0 rgba(255,255,255,0.86);
        }

        html[data-login-theme="light"] .input-wrap input::placeholder {
            color: rgba(62,91,84,0.55);
        }

        html[data-login-theme="light"] .input-wrap input:focus,
        html[data-login-theme="light"] .input-wrap input:focus-visible {
            border-color: var(--green);
            background: var(--light-surface-strong);
            box-shadow:
                0 0 0 1px rgba(138,63,98,0.15),
                0 8px 22px rgba(138,63,98,0.13);
        }

        html[data-login-theme="light"] .input-icon {
            color: rgba(138,63,98,0.72);
        }

        html[data-login-theme="light"] .password-toggle {
            border-color: rgba(138,63,98,0.24);
            background: rgba(232,235,243,0.96);
            color: var(--green-2);
        }

        html[data-login-theme="light"] .password-toggle:hover,
        html[data-login-theme="light"] .password-toggle[aria-pressed="true"] {
            border-color: var(--green);
            background: #f2e8ec;
        }

        html[data-login-theme="light"] .login-button {
            border-color: var(--green-2);
            background: linear-gradient(135deg, #914766 0%, #5b2a43 100%);
            color: #ffffff;
            box-shadow:
                0 12px 25px rgba(138,63,98,0.20),
                inset 0 1px 0 rgba(255,255,255,0.16);
        }

        html[data-login-theme="light"] .login-button:hover {
            background: linear-gradient(135deg, #a35174 0%, #4d2238 100%);
            color: #ffffff;
            box-shadow:
                0 15px 30px rgba(138,63,98,0.26),
                0 0 0 1px rgba(132,144,146,0.20);
            transform: translateY(-1px);
        }

        html[data-login-theme="light"] .login-message {
            border-color: rgba(180,35,62,0.3);
            background: rgba(255,241,244,0.96);
            color: #9d1f38;
        }

        html[data-login-theme="light"] .login-footer,
        html[data-login-theme="light"] .wave-footer,
        html[data-login-theme="light"] .connect-slogan-sub {
            color: #687078;
        }

        html[data-login-theme="light"] .motion-toggle {
            border-bottom-color: rgba(138,63,98,0.30);
            color: var(--green-2);
        }

        html[data-login-theme="light"] .radar {
            border-color: rgba(138,63,98,0.32);
            background-color: rgba(249,251,250,0.86);
            background-image:
                repeating-radial-gradient(circle, transparent 0, transparent 37px, rgba(138,63,98,0.14) 38px, transparent 39px);
            box-shadow:
                inset 0 0 28px rgba(138,63,98,0.07),
                0 16px 36px rgba(23,53,47,0.09);
        }

        html[data-login-theme="light"] .radar::before,
        html[data-login-theme="light"] .radar::after {
            background: rgba(138,63,98,0.16);
        }

        html[data-login-theme="light"] .radar-sweep {
            background:
                conic-gradient(from 0deg, transparent 0deg, transparent 285deg, rgba(138,63,98,0.02) 300deg, rgba(138,63,98,0.32) 359deg, transparent 360deg);
        }

        html[data-login-theme="light"] .radar-dot {
            background: var(--green);
            box-shadow:
                0 0 0 3px rgba(138,63,98,0.10),
                0 0 7px rgba(138,63,98,0.72),
                0 0 16px rgba(138,63,98,0.34);
            animation-name: lightRadarSignal;
        }

        html[data-login-theme="light"] .radar-dot.radar-dot-shifting {
            opacity: 0;
            animation: none;
        }

        @keyframes lightRadarSignal {
            0%,
            100% {
                opacity: 0.96;
                transform: scale(1);
            }

            50% {
                opacity: 0.40;
                transform: scale(0.74);
            }
        }

        html[data-login-theme="light"] #time {
            color: var(--green-2);
            text-shadow: 0 4px 16px rgba(138,63,98,0.18);
        }

        html[data-login-theme="light"] .performance-panel,
        html[data-login-theme="light"] .culture-panel,
        html[data-login-theme="light"] .connect-slogan {
            border-color: rgba(138,63,98,0.20);
            background: linear-gradient(180deg, rgba(255,255,255,0.88), rgba(237,242,240,0.82));
            box-shadow:
                inset 0 1px 0 rgba(255,255,255,0.92),
                0 12px 26px rgba(23,53,47,0.06);
        }

        html[data-login-theme="light"] .wave-chart {
            border-color: rgba(138,63,98,0.16);
            background-color: rgba(255,255,255,0.72);
        }

        html[data-login-theme="light"] .data-row {
            border-bottom-color: rgba(138,63,98,0.16);
        }

        html[data-login-theme="light"] .hud-label {
            color: rgba(91,42,67,0.52);
        }

        html[data-login-theme="light"] .connect-word,
        html[data-login-theme="light"] .share-word,
        html[data-login-theme="light"] .wave-value,
        html[data-login-theme="light"] .wave-trend {
            text-shadow: none;
        }

        html[data-login-theme="light"] .culture-sep {
            color: rgba(138,63,98,0.42);
        }

        html[data-login-theme="light"] .value-chip.flash-gold {
            color: #596668;
            text-shadow: 0 0 12px rgba(132,144,146,0.22);
        }

        html[data-login-theme="light"] .value-chip.flash-cyan,
        html[data-login-theme="light"] .value-chip.flash-pink,
        html[data-login-theme="light"] .value-chip.flash-violet {
            color: var(--green-2);
            text-shadow: 0 0 12px rgba(138,63,98,0.16);
        }

        body.motion-reduced *,
        body.motion-reduced *::before,
        body.motion-reduced *::after {
                scroll-behavior: auto !important;
                animation-duration: 0.001ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.001ms !important;
        }

        body.motion-reduced #matrix,
        body.motion-reduced .mystery-words,
        body.motion-reduced .complex-streams,
        body.motion-reduced .scanner,
        body.motion-reduced .radar-sweep {
            display: none;
        }

        body.motion-reduced .wave-canvas {
            visibility: hidden;
        }

        body.motion-reduced .quote-typewriter-cursor {
            opacity: 1;
        }
