        :root {

            --bg-deep: #fefce8;

            --primary: #70e000;

            --accent: #fdc500;

            --secondary: #71717a;

            --neon-cyan: #00f3ff;

            --text-main: #18181b;
            --text-muted: #52525b;

            --glass-core: rgba(255, 255, 255, 0.7);
            --glass-border: rgba(0, 0, 0, 0.08);

            --font-matrix: 'Space Grotesk', sans-serif;
            --font-sub: 'Inter', sans-serif;
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            -webkit-tap-highlight-color: transparent;
        }

        html,
        body {
            height: 100% !important;
            overflow: hidden !important;
        }

        /* FOUC Suppression */
        body {
            opacity: 0;
            transition: opacity 0.25s ease-in-out;
        }

        .no-animations *,
        .no-animations *::before,
        .no-animations *::after {
            transition: 0s !important;
            transition-duration: 0s !important;
            animation-duration: 0s !important;
            animation-iteration-count: 1 !important;
            animation-delay: 0s !important;
        }

        body.loaded {
            opacity: 1;
        }

        #main-scroller {
            width: 100%;
            height: 100%;
            overflow-y: scroll;
            overflow-x: hidden;
            display: flex;
            flex-direction: column;
            align-items: center;
            font-family: var(--font-sub);
            background-color: var(--bg-deep);
            background-image:
                radial-gradient(circle at 50% 0%, rgba(112, 224, 0, 0.15) 0%, transparent 70%),
                radial-gradient(circle at 100% 100%, rgba(253, 197, 0, 0.1) 0%, transparent 40%);
            color: var(--text-main);

            scrollbar-width: none !important;
            -ms-overflow-style: none !important;
        }

        #main-scroller::-webkit-scrollbar {
            display: none !important;
            width: 0 !important;
            height: 0 !important;
        }

        #scroll-progress-top {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 2.5px;
            background: linear-gradient(90deg, #70e000, #fdc500, #70e000);
            box-shadow: 0 0 15px rgba(112, 224, 0, 0.3);
            pointer-events: none;
            z-index: 10001;
            transform-origin: left;
            transform: scaleX(0);
            will-change: transform;
        }

        @keyframes moveGradient {
            0% {
                background-position: 0% 50%;
            }

            50% {
                background-position: 100% 50%;
            }

            100% {
                background-position: 0% 50%;
            }
        }

        .app-container {
            width: 100%;
            max-width: 450px;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            position: relative;
            padding: 1.5rem 1.25rem 2rem 1.25rem;
            perspective: 1000px;

        }


        .view-layer {
            display: none;
            flex-direction: column;
            gap: 1.5rem;
            width: 100%;
        }

        .view-layer.active {
            display: flex;
        }

        @-webkit-keyframes slide-in-elliptic-top-fwd {
            0% {
                -webkit-transform: translateY(-600px) rotateX(-30deg) scale(0);
                transform: translateY(-600px) rotateX(-30deg) scale(0);
                -webkit-transform-origin: 50% 100%;
                transform-origin: 50% 100%;
                opacity: 0;
            }

            100% {
                -webkit-transform: none;
                transform: none;
                -webkit-transform-origin: center;
                transform-origin: center;
                opacity: 1;
            }
        }

        @keyframes slide-in-elliptic-top-fwd {
            0% {
                -webkit-transform: translateY(-600px) rotateX(-30deg) scale(0);
                transform: translateY(-600px) rotateX(-30deg) scale(0);
                -webkit-transform-origin: 50% 100%;
                transform-origin: 50% 100%;
                opacity: 0;
            }

            100% {
                -webkit-transform: none;
                transform: none;
                -webkit-transform-origin: center;
                transform-origin: center;
                opacity: 1;
            }
        }

        @-webkit-keyframes slide-out-elliptic-top-bck {
            0% {
                -webkit-transform: none;
                transform: none;
                -webkit-transform-origin: center;
                transform-origin: center;
                opacity: 1;
            }

            100% {
                -webkit-transform: translateY(-600px) rotateX(-30deg) scale(0);
                transform: translateY(-600px) rotateX(-30deg) scale(0);
                -webkit-transform-origin: 50% 100%;
                transform-origin: 50% 100%;
                opacity: 0;
            }
        }

        @keyframes slide-out-elliptic-top-bck {
            0% {
                -webkit-transform: none;
                transform: none;
                -webkit-transform-origin: center;
                transform-origin: center;
                opacity: 1;
            }

            100% {
                -webkit-transform: translateY(-600px) rotateX(-30deg) scale(0);
                transform: translateY(-600px) rotateX(-30deg) scale(0);
                -webkit-transform-origin: 50% 100%;
                transform-origin: 50% 100%;
                opacity: 0;
            }
        }

        .matrix-card.decode.card-flipping {
            z-index: 1000 !important;
            pointer-events: none;
            -webkit-animation: card-portal-decode 0.8s cubic-bezier(0.25, 1, 0.5, 1) both;
            animation: card-portal-decode 0.8s cubic-bezier(0.25, 1, 0.5, 1) both;
        }

        .matrix-card.create.card-flipping {
            z-index: 1000 !important;
            pointer-events: none;
            -webkit-animation: card-portal-create 0.8s cubic-bezier(0.25, 1, 0.5, 1) both;
            animation: card-portal-create 0.8s cubic-bezier(0.25, 1, 0.5, 1) both;
        }

        .matrix-card.card-dimmed {
            opacity: 0.25;
            -webkit-transform: skewX(-25deg) scale(0.92);
            transform: skewX(-25deg) scale(0.92);
            filter: blur(2px) grayscale(0.5);
            pointer-events: none;
        }

        @-webkit-keyframes card-portal-decode {
            0% {
                -webkit-transform: skewX(-25deg) scale(1) rotateY(0deg) rotateX(0deg) translate3d(0, 0, 0);
                transform: skewX(-25deg) scale(1) rotateY(0deg) rotateX(0deg) translate3d(0, 0, 0);
                filter: brightness(1) contrast(1) blur(0px);
                box-shadow: 0 12px 35px rgba(112, 224, 0, 0.25), inset 0 2px 3px rgba(255, 255, 255, 0.8);
                opacity: 1;
            }

            40% {
                -webkit-transform: skewX(-25deg) scale(0.92) rotateY(-18deg) rotateX(15deg) translate3d(0, -10px, 0);
                transform: skewX(-25deg) scale(0.92) rotateY(-18deg) rotateX(15deg) translate3d(0, -10px, 0);
                filter: brightness(1.4) contrast(1.25) drop-shadow(0 0 15px rgba(112, 224, 0, 0.6));
                box-shadow: 0 15px 40px rgba(112, 224, 0, 0.5), inset 0 2px 5px rgba(255, 255, 255, 1);
                opacity: 1;
            }

            100% {
                -webkit-transform: skewX(-25deg) scale(0.2) rotateY(-90deg) rotateX(60deg) translate3d(0, 100px, -200px);
                transform: skewX(-25deg) scale(0.2) rotateY(-90deg) rotateX(60deg) translate3d(0, 100px, -200px);
                filter: brightness(0.2) blur(8px);
                box-shadow: 0 0px 0px rgba(112, 224, 0, 0);
                opacity: 0;
            }
        }

        @keyframes card-portal-decode {
            0% {
                transform: skewX(-25deg) scale(1) rotateY(0deg) rotateX(0deg) translate3d(0, 0, 0);
                filter: brightness(1) contrast(1) blur(0px);
                box-shadow: 0 12px 35px rgba(112, 224, 0, 0.25), inset 0 2px 3px rgba(255, 255, 255, 0.8);
                opacity: 1;
            }

            40% {
                transform: skewX(-25deg) scale(0.92) rotateY(-18deg) rotateX(15deg) translate3d(0, -10px, 0);
                filter: brightness(1.4) contrast(1.25) drop-shadow(0 0 15px rgba(112, 224, 0, 0.6));
                box-shadow: 0 15px 40px rgba(112, 224, 0, 0.5), inset 0 2px 5px rgba(255, 255, 255, 1);
                opacity: 1;
            }

            100% {
                transform: skewX(-25deg) scale(0.2) rotateY(-90deg) rotateX(60deg) translate3d(0, 100px, -200px);
                filter: brightness(0.2) blur(8px);
                box-shadow: 0 0px 0px rgba(112, 224, 0, 0);
                opacity: 0;
            }
        }

        @-webkit-keyframes card-portal-create {
            0% {
                -webkit-transform: skewX(-25deg) scale(1) rotateY(0deg) rotateX(0deg) translate3d(0, 0, 0);
                transform: skewX(-25deg) scale(1) rotateY(0deg) rotateX(0deg) translate3d(0, 0, 0);
                filter: brightness(1) contrast(1) blur(0px);
                box-shadow: 0 12px 35px rgba(168, 85, 247, 0.25), inset 0 2px 3px rgba(255, 255, 255, 0.8);
                opacity: 1;
            }

            40% {
                -webkit-transform: skewX(-25deg) scale(0.92) rotateY(18deg) rotateX(15deg) translate3d(0, -10px, 0);
                transform: skewX(-25deg) scale(0.92) rotateY(18deg) rotateX(15deg) translate3d(0, -10px, 0);
                filter: brightness(1.4) contrast(1.25) drop-shadow(0 0 15px rgba(168, 85, 247, 0.6));
                box-shadow: 0 15px 40px rgba(168, 85, 247, 0.5), inset 0 2px 5px rgba(255, 255, 255, 1);
                opacity: 1;
            }

            100% {
                -webkit-transform: skewX(-25deg) scale(0.2) rotateY(90deg) rotateX(60deg) translate3d(0, 100px, -200px);
                transform: skewX(-25deg) scale(0.2) rotateY(90deg) rotateX(60deg) translate3d(0, 100px, -200px);
                filter: brightness(0.2) blur(8px);
                box-shadow: 0 0px 0px rgba(168, 85, 247, 0);
                opacity: 0;
            }
        }

        @keyframes card-portal-create {
            0% {
                transform: skewX(-25deg) scale(1) rotateY(0deg) rotateX(0deg) translate3d(0, 0, 0);
                filter: brightness(1) contrast(1) blur(0px);
                box-shadow: 0 12px 35px rgba(168, 85, 247, 0.25), inset 0 2px 3px rgba(255, 255, 255, 0.8);
                opacity: 1;
            }

            40% {
                transform: skewX(-25deg) scale(0.92) rotateY(18deg) rotateX(15deg) translate3d(0, -10px, 0);
                filter: brightness(1.4) contrast(1.25) drop-shadow(0 0 15px rgba(168, 85, 247, 0.6));
                box-shadow: 0 15px 40px rgba(168, 85, 247, 0.5), inset 0 2px 5px rgba(255, 255, 255, 1);
                opacity: 1;
            }

            100% {
                transform: skewX(-25deg) scale(0.2) rotateY(90deg) rotateX(60deg) translate3d(0, 100px, -200px);
                filter: brightness(0.2) blur(8px);
                box-shadow: 0 0px 0px rgba(168, 85, 247, 0);
                opacity: 0;
            }
        }

        .reveal {
            opacity: 0;
            will-change: transform, opacity;
        }

        body.loaded .reveal.active {
            -webkit-animation: slide-in-elliptic-top-fwd 0.8s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
            animation: slide-in-elliptic-top-fwd 0.8s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
        }

        body.loaded .reveal.exit-active {
            -webkit-animation: slide-out-elliptic-top-bck 0.6s cubic-bezier(0.550, 0.085, 0.680, 0.530) both;
            animation: slide-out-elliptic-top-bck 0.6s cubic-bezier(0.550, 0.085, 0.680, 0.530) both;
        }


        .panel-list {
            width: calc(100% + 20px);
            margin-left: -10px;
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
            box-sizing: border-box;
        }

        .panel-row {
            background: var(--glass-core);
            border: 1px solid var(--glass-border);
            border-radius: 1rem;
            padding: 1.5rem 1.25rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
            text-decoration: none;
            color: var(--text-main);
            transition: all 0.2s;
        }

        .panel-row:active,
        .panel-row.clicked {
            background: rgba(112, 224, 0, 0.08);
            border-color: rgba(112, 224, 0, 0.4);
            transform: scale(0.98);
        }

        .panel-left {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .panel-left i {
            font-size: 1.2rem;
            color: var(--primary);
        }

        .panel-left span {
            font-family: var(--font-matrix);
            font-size: 0.85rem;
            font-weight: 600;
        }

        .row-trigger {
            font-size: 0.8rem;
            color: var(--secondary);
            opacity: 0.5;
        }

        .toast {
            position: fixed;
            top: 24px;
            left: 50%;
            transform: translate(-50%, -120px);
            width: calc(100% - 32px);
            max-width: 360px;
            background: rgba(254, 252, 232, 0.85);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1.5px solid rgba(112, 224, 0, 0.4);
            border-radius: 20px;
            padding: 14px 18px;
            box-shadow:
                0 10px 30px rgba(112, 224, 0, 0.12),
                0 1px 3px rgba(0, 0, 0, 0.05),
                inset 0 1px 0 rgba(255, 255, 255, 0.6);
            z-index: 2147483647;
            opacity: 0;
            pointer-events: none;
            transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
            cursor: pointer;
        }

        .toast.show {
            transform: translate(-50%, 0);
            opacity: 1;
            pointer-events: auto;
        }

        .toast-content {
            display: flex;
            align-items: center;
            gap: 14px;
        }

        .toast-icon {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 38px;
            height: 38px;
            background: rgba(112, 224, 0, 0.12);
            border-radius: 50%;
            color: var(--primary);
            flex-shrink: 0;
            box-shadow: inset 0 1px 3px rgba(112, 224, 0, 0.2);
        }

        .toast-icon i {
            width: 20px;
            height: 20px;
        }

        .toast-text {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .toast-title {
            font-family: var(--font-matrix);
            font-size: 14px;
            font-weight: 700;
            color: var(--text-main);
            letter-spacing: 0.3px;
        }

        .toast-desc {
            font-family: var(--font-sub);
            font-size: 11px;
            color: var(--text-muted);
            font-weight: 500;
        }

        /* Font protocol mode overrides for the parent shell */
        html body.font-mode-1,
        html body.font-mode-1 *:not(.material-symbols-outlined) {
            font-family: 'Space Grotesk', sans-serif !important;
            font-style: normal !important;
        }

        html body.font-mode-2,
        html body.font-mode-2 *:not(.material-symbols-outlined) {
            font-family: 'Montserrat', sans-serif !important;
            font-style: normal !important;
        }

        html body.font-mode-3,
        html body.font-mode-3 *:not(.material-symbols-outlined) {
            font-family: 'Inter', sans-serif !important;
            font-style: normal !important;
        }

        html body.font-mode-4,
        html body.font-mode-4 *:not(.material-symbols-outlined) {
            font-family: 'Lato', sans-serif !important;
            font-style: normal !important;
        }

        html body.font-mode-5,
        html body.font-mode-5 *:not(.material-symbols-outlined) {
            font-family: 'Merriweather', serif !important;
            font-style: italic !important;
        }

        html body.font-mode-6,
        html body.font-mode-6 *:not(.material-symbols-outlined) {
            font-family: 'Lora', serif !important;
            font-style: italic !important;
        }

        html body.font-mode-7,
        html body.font-mode-7 *:not(.material-symbols-outlined) {
            font-family: 'Clash Display', sans-serif !important;
            font-style: normal !important;
        }

        html body.font-mode-8,
        html body.font-mode-8 *:not(.material-symbols-outlined) {
            font-family: 'Bricolage Grotesque', sans-serif !important;
            font-style: normal !important;
        }

        /* ========================================================
           ✨ PREMIUM SAAS APP LOCK & SECURITY OVERLAYS (NEW DESIGN)
           ======================================================== */
        @keyframes float-glow-blue {
            0% {
                transform: translateY(0px) scale(1);
                box-shadow: 0 0 20px rgba(59, 130, 246, 0.2), inset 0 0 10px rgba(59, 130, 246, 0.1);
            }

            50% {
                transform: translateY(-6px) scale(1.04);
                box-shadow: 0 0 35px rgba(59, 130, 246, 0.45), inset 0 0 15px rgba(59, 130, 246, 0.2);
            }

            100% {
                transform: translateY(0px) scale(1);
                box-shadow: 0 0 20px rgba(59, 130, 246, 0.2), inset 0 0 10px rgba(59, 130, 246, 0.1);
            }
        }

        @keyframes float-glow-red {
            0% {
                transform: translateY(0px) scale(1);
                box-shadow: 0 0 20px rgba(239, 68, 68, 0.2), inset 0 0 10px rgba(239, 68, 68, 0.1);
            }

            50% {
                transform: translateY(-6px) scale(1.04);
                box-shadow: 0 0 35px rgba(239, 68, 68, 0.45), inset 0 0 15px rgba(239, 68, 68, 0.2);
            }

            100% {
                transform: translateY(0px) scale(1);
                box-shadow: 0 0 20px rgba(239, 68, 68, 0.2), inset 0 0 10px rgba(239, 68, 68, 0.1);
            }
        }

        @keyframes float-glow-green {
            0% {
                transform: translateY(0px) scale(1);
                box-shadow: 0 0 20px rgba(112, 224, 0, 0.2), inset 0 0 10px rgba(112, 224, 0, 0.1);
            }

            50% {
                transform: translateY(-6px) scale(1.04);
                box-shadow: 0 0 35px rgba(112, 224, 0, 0.45), inset 0 0 15px rgba(112, 224, 0, 0.2);
            }

            100% {
                transform: translateY(0px) scale(1);
                box-shadow: 0 0 20px rgba(112, 224, 0, 0.2), inset 0 0 10px rgba(112, 224, 0, 0.1);
            }
        }

        @keyframes premium-fade-in {
            from {
                opacity: 0;
                backdrop-filter: blur(0px);
            }

            to {
                opacity: 1;
                backdrop-filter: blur(25px);
            }
        }

        @keyframes premium-slide-up {
            from {
                opacity: 0;
                transform: translateY(30px) scale(0.96);
            }

            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        #app-lock-screen,
        #security-confirm-overlay,
        #app-auth-modal,
        #recommendation-popup-overlay,
        #cloud-sync-modal-overlay,
        #security-lockdown-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100dvh;
            background: radial-gradient(at 0% 0%, hsla(253, 16%, 7%, 1) 0, transparent 50%),
                radial-gradient(at 50% 0%, hsla(225, 39%, 30%, 1) 0, transparent 50%),
                radial-gradient(at 100% 0%, hsla(339, 49%, 30%, 1) 0, transparent 50%) !important;
            background-color: #0f0c29 !important;
            display: none;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            z-index: 2147483640;
            backdrop-filter: blur(16px) saturate(180%) !important;
            -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
            animation: premium-fade-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
            padding: 24px;
        }

        /* Specific modifications for overlay levels */
        #security-lockdown-overlay {
            background: radial-gradient(circle at center, rgba(20, 10, 10, 0.75) 0%, rgba(5, 2, 2, 0.9) 100%) !important;
            z-index: 2147483647 !important;
            backdrop-filter: blur(40px) saturate(180%) !important;
            -webkit-backdrop-filter: blur(40px) saturate(180%) !important;
        }

        #app-auth-modal {
            z-index: 2147483642 !important;
            backdrop-filter: blur(16px) saturate(180%) !important;
            -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
        }

        .saas-premium-card {
            width: 100%;
            max-width: 440px;
            background: linear-gradient(135deg, rgba(15, 23, 42, 0.6) 0%, rgba(8, 12, 30, 0.8) 100%);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-top: 1.5px solid rgba(255, 255, 255, 0.15);
            border-radius: 36px;
            padding: 40px 32px;
            box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.05);
            text-align: center;
            position: relative;
            overflow: hidden;
            animation: premium-slide-up 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .saas-premium-card::before {
            content: '';
            position: absolute;
            top: -20%;
            left: -20%;
            width: 140%;
            height: 140%;
            background: radial-gradient(circle, rgba(59, 130, 246, 0.06) 0%, transparent 60%);
            pointer-events: none;
            z-index: 0;
        }

        .saas-icon-wrapper {
            width: 76px;
            height: 76px;
            border-radius: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 24px auto;
            border: 1px solid rgba(255, 255, 255, 0.1);
            background: rgba(255, 255, 255, 0.03);
            position: relative;
            z-index: 1;
        }

        .saas-icon-wrapper.blue {
            color: #60a5fa;
            border-color: rgba(59, 130, 246, 0.3);
            animation: float-glow-blue 3.5s infinite ease-in-out;
        }

        .saas-icon-wrapper.red {
            color: #f87171;
            border-color: rgba(239, 68, 68, 0.3);
            animation: float-glow-red 3.5s infinite ease-in-out;
        }

        .saas-icon-wrapper.green {
            color: #a3e635;
            border-color: rgba(163, 230, 53, 0.3);
            animation: float-glow-green 3.5s infinite ease-in-out;
        }

        .saas-icon-wrapper span {
            font-size: 38px !important;
        }

        .saas-title {
            font-family: 'Space Grotesk', sans-serif !important;
            font-size: 1.7rem;
            font-weight: 850;
            letter-spacing: -0.5px;
            margin-bottom: 8px;
            background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            text-transform: uppercase;
            position: relative;
            z-index: 1;
        }

        .saas-subtitle {
            font-family: 'Inter', sans-serif !important;
            font-size: 0.85rem;
            font-weight: 600;
            color: rgba(255, 255, 255, 0.45);
            letter-spacing: 2px;
            text-transform: uppercase;
            margin-bottom: 30px;
            position: relative;
            z-index: 1;
        }

        .saas-description {
            font-family: 'Inter', sans-serif !important;
            font-size: 0.95rem;
            line-height: 1.6;
            color: rgba(255, 255, 255, 0.65);
            margin-bottom: 32px;
            position: relative;
            z-index: 1;
            font-weight: 400;
        }

        .saas-input-container {
            width: 100%;
            position: relative;
            margin-bottom: 24px;
            z-index: 1;
        }

        .saas-input {
            width: 100%;
            background: rgba(2, 6, 23, 0.5) !important;
            border: 1.5px solid rgba(255, 255, 255, 0.08) !important;
            border-radius: 20px !important;
            padding: 18px 24px !important;
            color: white !important;
            font-size: 1.05rem !important;
            font-family: 'Space Grotesk', sans-serif !important;
            outline: none !important;
            transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
            text-align: center;
        }

        .saas-input:focus {
            border-color: #3b82f6 !important;
            box-shadow: 0 0 25px rgba(59, 130, 246, 0.25) !important;
            background: rgba(2, 6, 23, 0.8) !important;
        }

        .saas-input.password {
            letter-spacing: 6px !important;
            font-family: monospace !important;
            font-size: 1.3rem !important;
        }

        .saas-input::placeholder {
            letter-spacing: normal !important;
            font-family: 'Space Grotesk', sans-serif !important;
            font-size: 0.9rem !important;
            color: rgba(255, 255, 255, 0.25) !important;
            font-weight: 500;
        }

        .saas-eye-btn {
            position: absolute;
            right: 18px;
            top: 50%;
            transform: translateY(-50%);
            background: transparent !important;
            border: none !important;
            color: rgba(255, 255, 255, 0.2) !important;
            cursor: pointer !important;
            padding: 6px !important;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: color 0.2s ease !important;
        }

        .saas-eye-btn:hover {
            color: rgba(255, 255, 255, 0.6) !important;
        }

        .saas-btn {
            width: 100%;
            padding: 18px;
            border-radius: 20px;
            font-weight: 800;
            font-size: 0.95rem;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            cursor: pointer;
            border: none;
            transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
            position: relative;
            z-index: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .saas-btn.primary {
            background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
            color: white;
            box-shadow: 0 10px 25px rgba(29, 78, 216, 0.35);
        }

        .saas-btn.primary:active {
            transform: scale(0.97);
            box-shadow: 0 5px 12px rgba(29, 78, 216, 0.2);
        }

        .saas-btn.secondary {
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid rgba(255, 255, 255, 0.08);
            color: white;
            margin-top: 12px;
        }

        .saas-btn.secondary:active {
            transform: scale(0.97);
            background: rgba(255, 255, 255, 0.08);
        }

        .saas-btn.coral {
            background: linear-gradient(135deg, #fb7185 0%, #e11d48 100%);
            color: white;
            box-shadow: 0 10px 25px rgba(225, 29, 72, 0.35);
        }

        .saas-btn.coral:active {
            transform: scale(0.97);
        }

        .saas-link {
            font-family: 'Inter', sans-serif !important;
            font-size: 0.8rem;
            color: rgba(255, 255, 255, 0.4);
            text-transform: uppercase;
            letter-spacing: 1.5px;
            font-weight: 700;
            margin-top: 28px !important;
            display: inline-block !important;
            cursor: pointer;
            transition: color 0.2s ease;
            position: relative;
            z-index: 1;
        }

        .saas-link:hover {
            color: #60a5fa;
        }

        .saas-link.footer {
            margin-top: 16px;
            font-size: 0.72rem;
        }

        .saas-link.footer:hover {
            color: #f87171;
            text-decoration: underline;
        }

        /* --- PRE-LOCKED BLUR --- */
        body.app-locked #main-scroller {
            filter: blur(35px);
            pointer-events: none;
            transition: filter 0.4s ease;
        }

        /* --- RECOVERY & RESET FLOW PANEL MOUNTING --- */
        #primary-lock-view,
        #recovery-section,
        #reset-password-section {
            width: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        /* --- MUTATION RESTRICTIONS FOR SETTINGS --- */
        .settings-privacy-container {
            position: relative;
        }

        .settings-privacy-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(2, 6, 23, 0.5);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            z-index: 100;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 30px;
            transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .privacy-btn {
            background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
            color: white !important;
            border: none !important;
            padding: 16px 28px !important;
            border-radius: 20px !important;
            cursor: pointer !important;
            font-family: 'Space Grotesk', sans-serif !important;
            font-weight: 700 !important;
            text-transform: uppercase !important;
            letter-spacing: 1px !important;
            box-shadow: 0 10px 25px rgba(29, 78, 216, 0.4) !important;
            transition: all 0.2s ease !important;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .privacy-btn:active {
            transform: scale(0.96) !important;
        }

        .privacy-restricted #global-cipher-field,
        .privacy-restricted #security-answer-field,
        .privacy-restricted #security-question-select {
            filter: blur(18px) !important;
            pointer-events: none !important;
            opacity: 0.15 !important;
            transition: all 0.3s ease !important;
        }

        .privacy-restricted .privacy-toggle-row,
        .privacy-restricted .privacy-commit-btn {
            display: none !important;
        }

        /* --- SESSION PAUSED PANEL --- */
        #session-pause-overlay {
            background: rgba(2, 6, 23, 0.7) !important;
            z-index: 2147483648 !important;
        }

        /* --- VERIFICATION CONFIRM LAYERS --- */
        .confirm-layer-card {
            width: 100%;
            display: none;
            flex-direction: column;
            align-items: center;
        }

        .confirm-layer-card.active {
            display: flex;
        }

        .confirm-btns-container {
            width: 100%;
            display: flex;
            gap: 12px;
            margin-top: 10px;
        }

        /* --- WARM WHITE MODERN & PREMIUM APP LOCK UI --- */
        #app-lock-screen {
            position: fixed !important;
            top: 0 !important;
            left: 0 !important;
            width: 100vw !important;
            height: 100dvh !important;
            background: #F9F8F3 !important;
            background-image: radial-gradient(at 50% 30%, #FFFFFF 0%, #F5F3EC 100%) !important;
            display: none;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            z-index: 2147483640 !important;
            padding: 16px !important;
            overflow-y: auto !important;
            box-sizing: border-box !important;
        }

        #app-lock-screen::before {
            display: none !important;
        }

        #app-lock-screen .saas-premium-card {
            width: 100% !important;
            max-width: 380px !important;
            padding: 32px 28px !important;
            border-radius: 28px !important;
            background: #FFFFFF !important;
            border: 1px solid rgba(0, 0, 0, 0.07) !important;
            box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.02) !important;
            color: #1F2937 !important;
            transform-origin: 50% 50% !important;
            transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
            box-sizing: border-box !important;
            margin: auto !important;
            display: flex !important;
            flex-direction: column !important;
            align-items: center !important;
        }

        #app-lock-screen .saas-premium-card:hover {
            transform: translateY(-2px) !important;
            box-shadow: 0 24px 60px -14px rgba(0, 0, 0, 0.09), 0 4px 12px rgba(0, 0, 0, 0.03) !important;
            border: 1px solid rgba(0, 0, 0, 0.1) !important;
        }

        #app-lock-screen .saas-icon-wrapper {
            width: 54px !important;
            height: 54px !important;
            border-radius: 18px !important;
            background: #F4F3ED !important;
            border: 1px solid #E6E4DC !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            margin: 0 auto 7mm auto !important;
            color: #1F2937 !important;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
        }

        #app-lock-screen .saas-icon-wrapper span {
            font-size: 24px !important;
            color: #1F2937 !important;
        }

        #app-lock-screen .saas-title {
            font-size: 22px !important;
            font-weight: 700 !important;
            margin-bottom: 8px !important;
            letter-spacing: -0.02em !important;
            background: none !important;
            -webkit-background-clip: initial !important;
            background-clip: initial !important;
            -webkit-text-fill-color: #111827 !important;
            color: #111827 !important;
            text-transform: uppercase !important;
        }

        #app-lock-screen .saas-subtitle {
            font-size: 12px !important;
            font-weight: 500 !important;
            margin-bottom: 7mm !important;
            color: #6B7280 !important;
            letter-spacing: 0.01em !important;
            -webkit-text-fill-color: #6B7280 !important;
        }

        #app-lock-screen .saas-power-tag {
            display: inline-block !important;
            padding: 4px 12px !important;
            border-radius: 100px !important;
            background: #F4F3ED !important;
            border: 1px solid #E5E3DC !important;
            font-size: 9.5px !important;
            font-weight: 700 !important;
            letter-spacing: 1.2px !important;
            color: #4B5563 !important;
            margin-bottom: 6mm !important;
        }

        #app-lock-screen .pin-display {
            display: flex !important;
            justify-content: center !important;
            align-items: center !important;
            flex-wrap: wrap !important;
            gap: 12px !important;
            margin-bottom: 6mm !important;
            max-width: 100% !important;
        }

        #app-lock-screen .pin-dot {
            width: 13px !important;
            height: 13px !important;
            border-radius: 50% !important;
            border: 2px solid #D1D5DB !important;
            background: transparent !important;
            transition: none !important;
        }

        #app-lock-screen .pin-dot.filled {
            background: #111827 !important;
            border-color: #111827 !important;
            box-shadow: 0 2px 8px rgba(17, 24, 39, 0.25) !important;
            transform: scale(1.15) !important;
            transition: none !important;
        }

        #app-lock-screen .pin-keypad {
            display: grid !important;
            grid-template-columns: repeat(3, 1fr) !important;
            gap: 10px !important;
            max-width: 260px !important;
            margin: 0 auto 8px auto !important;
        }

        #app-lock-screen .pin-btn {
            background: #F5F4EE !important;
            border: 1px solid #E6E4DC !important;
            color: #1F2937 !important;
            font-size: 1.15rem !important;
            font-weight: 600 !important;
            width: 50px !important;
            height: 50px !important;
            border-radius: 50% !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            cursor: pointer !important;
            transition: all 0.15s ease !important;
            margin: 0 auto !important;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02) !important;
        }

        #app-lock-screen .pin-btn:hover {
            background: #EBE9DF !important;
            border-color: #DCD9CC !important;
            color: #111827 !important;
            transform: translateY(-1px) !important;
        }

        #app-lock-screen .pin-btn:active {
            transform: translateY(1px) scale(0.96) !important;
            background: #E0DDD0 !important;
        }

        #app-lock-screen .pin-btn.action-btn {
            background: transparent !important;
            border: none !important;
            box-shadow: none !important;
        }

        #app-lock-screen .pin-btn.action-btn:hover {
            background: rgba(0, 0, 0, 0.04) !important;
        }

        #app-lock-screen .saas-link {
            display: inline-block !important;
            font-size: 11.5px !important;
            font-weight: 600 !important;
            color: #6B7280 !important;
            text-decoration: none !important;
            cursor: pointer !important;
            transition: all 0.2s ease !important;
            letter-spacing: 0.02em !important;
            -webkit-text-fill-color: #6B7280 !important;
        }

        #app-lock-screen .saas-link:hover {
            color: #111827 !important;
            -webkit-text-fill-color: #111827 !important;
        }

        #app-lock-screen .saas-description {
            font-size: 13px !important;
            color: #4B5563 !important;
            line-height: 1.5 !important;
            margin-bottom: 20px !important;
            -webkit-text-fill-color: #4B5563 !important;
        }

        #app-lock-screen .saas-input {
            width: 100% !important;
            padding: 12px 16px 12px 44px !important;
            border-radius: 12px !important;
            background: #F9F8F3 !important;
            border: 1px solid #E5E3DC !important;
            color: #111827 !important;
            font-size: 14px !important;
            box-sizing: border-box !important;
            outline: none !important;
            transition: all 0.2s ease !important;
            -webkit-text-fill-color: #111827 !important;
        }

        #app-lock-screen .saas-input:focus {
            background: #FFFFFF !important;
            border-color: #111827 !important;
            box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08) !important;
        }

        #app-lock-screen .saas-eye-btn {
            position: absolute !important;
            right: 14px !important;
            top: 50% !important;
            transform: translateY(-50%) !important;
            background: transparent !important;
            border: none !important;
            color: #9CA3AF !important;
            cursor: pointer !important;
            padding: 0 !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
        }

        #app-lock-screen .saas-eye-btn:hover {
            color: #111827 !important;
        }

        #app-lock-screen .saas-btn.primary {
            width: 100% !important;
            padding: 13px 20px !important;
            border-radius: 12px !important;
            background: #111827 !important;
            color: #FFFFFF !important;
            font-size: 14px !important;
            font-weight: 600 !important;
            border: none !important;
            cursor: pointer !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            gap: 8px !important;
            margin-top: 20px !important;
            transition: all 0.2s ease !important;
            box-shadow: 0 4px 12px rgba(17, 24, 39, 0.12) !important;
            -webkit-text-fill-color: #FFFFFF !important;
        }

        #app-lock-screen .saas-btn.primary:hover {
            background: #1F2937 !important;
            box-shadow: 0 6px 16px rgba(17, 24, 39, 0.18) !important;
        }

        #app-lock-screen .saas-lock-footer {
            margin-top: 16px !important;
            text-align: center !important;
        }

        #app-lock-screen .saas-lock-footer-brand {
            color: #4B5563 !important;
            font-size: 10px !important;
            font-weight: 700 !important;
            letter-spacing: 1.5px !important;
            -webkit-text-fill-color: #4B5563 !important;
        }

        #app-lock-screen .gateway-node-tag {
            display: inline !important;
        }

        #app-lock-screen .saas-lock-footer-copyright {
            color: #9CA3AF !important;
            font-size: 10px !important;
            margin-top: 4px !important;
            -webkit-text-fill-color: #9CA3AF !important;
        }

        #app-lock-screen a.fusion-forge-link {
            color: #4B5563 !important;
            -webkit-text-fill-color: #4B5563 !important;
            text-decoration: none !important;
            border-bottom: none !important;
            outline: none !important;
            box-shadow: none !important;
            font-weight: 600 !important;
            transition: color 0.2s ease !important;
            cursor: pointer !important;
            pointer-events: auto !important;
            position: relative !important;
            z-index: 10 !important;
        }

        #app-lock-screen a.fusion-forge-link:hover,
        #app-lock-screen a.fusion-forge-link:focus,
        #app-lock-screen a.fusion-forge-link:active {
            color: #111827 !important;
            -webkit-text-fill-color: #111827 !important;
            text-decoration: underline !important;
            border-bottom: none !important;
            outline: none !important;
            box-shadow: none !important;
        }

        /* --- RESPONSIVE ADJUSTMENTS FOR SMALL HEIGHT / SMALL DISPLAY --- */
        @media screen and (max-height: 720px),
        screen and (max-width: 342px) {
            #app-lock-screen {
                justify-content: flex-start !important;
                padding: 16px 12px !important;
                overflow-y: auto !important;
                -webkit-overflow-scrolling: touch !important;
            }

            #app-lock-screen .saas-premium-card {
                padding: 24px 20px !important;
                border-radius: 20px !important;
                max-width: 340px !important;
                margin: auto !important;
            }

            #app-lock-screen .saas-icon-wrapper {
                width: 46px !important;
                height: 46px !important;
                border-radius: 14px !important;
                margin-bottom: 7mm !important;
            }

            #app-lock-screen .saas-icon-wrapper span {
                font-size: 22px !important;
            }

            #app-lock-screen .saas-title {
                font-size: 19px !important;
                margin-bottom: 8px !important;
            }

            #app-lock-screen .saas-subtitle {
                font-size: 11px !important;
                margin-bottom: 7mm !important;
            }

            #app-lock-screen .saas-power-tag {
                padding: 3px 10px !important;
                font-size: 8.5px !important;
                margin-bottom: 6mm !important;
            }

            #app-lock-screen .pin-display {
                gap: 10px !important;
                margin-bottom: 6mm !important;
            }

            #app-lock-screen .pin-dot {
                width: 12px !important;
                height: 12px !important;
            }

            #app-lock-screen .pin-keypad {
                gap: 8px !important;
                max-width: 240px !important;
                margin-bottom: 10px !important;
            }

            #app-lock-screen .pin-btn {
                width: 46px !important;
                height: 46px !important;
                font-size: 1.1rem !important;
            }

            #app-lock-screen .saas-lock-footer {
                margin-top: 10px !important;
            }

            #app-lock-screen [style*="margin-top: 28px"],
            #app-lock-screen [style*="margin-top: 20px"] {
                margin-top: 12px !important;
            }
        }

        @media screen and (max-width: 342px) {
            #app-lock-screen .gateway-node-tag {
                display: none !important;
            }
        }

        /* ULTRA SMALL SCREEN MODE (Height <= 560px, e.g. mobile landscape or short viewports) */
        @media screen and (max-height: 560px) {
            #app-lock-screen {
                padding: 8px !important;
            }

            #app-lock-screen .saas-premium-card {
                padding: 16px 16px !important;
                border-radius: 16px !important;
                max-width: 320px !important;
            }

            #app-lock-screen .saas-icon-wrapper {
                width: 38px !important;
                height: 38px !important;
                border-radius: 12px !important;
                margin-bottom: 4px !important;
            }

            #app-lock-screen .saas-icon-wrapper span {
                font-size: 18px !important;
            }

            #app-lock-screen .saas-title {
                font-size: 16px !important;
                margin-bottom: 0px !important;
            }

            #app-lock-screen .saas-subtitle {
                font-size: 10.5px !important;
                margin-bottom: 4px !important;
            }

            #app-lock-screen .saas-power-tag {
                display: none !important;
            }

            #app-lock-screen .pin-display {
                gap: 8px !important;
                margin-bottom: 8px !important;
            }

            #app-lock-screen .pin-dot {
                width: 10px !important;
                height: 10px !important;
            }

            #app-lock-screen .pin-keypad {
                gap: 6px !important;
                max-width: 210px !important;
                margin-bottom: 6px !important;
            }

            #app-lock-screen .pin-btn {
                width: 40px !important;
                height: 40px !important;
                font-size: 1rem !important;
            }

            #app-lock-screen .saas-lock-footer {
                margin-top: 6px !important;
            }

            #app-lock-screen [style*="margin-top: 28px"],
            #app-lock-screen [style*="margin-top: 20px"] {
                margin-top: 6px !important;
            }
        }

        .saas-input-container {
            position: relative;
        }

        .saas-input-container .input-lock-icon {
            position: absolute;
            left: 18px;
            top: 50%;
            transform: translateY(-50%);
            color: rgba(255, 255, 255, 0.25);
            font-size: 20px !important;
            pointer-events: none;
            transition: color 0.3s ease;
            z-index: 10;
        }

        .saas-input:focus~.input-lock-icon {
            color: #60a5fa;
        }

        .saas-input {
            padding-left: 52px !important;
        }

        .saas-input.password {
            letter-spacing: 8px !important;
            font-size: 1.4rem !important;
        }

        .saas-btn.primary {
            background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
            box-shadow: 0 0 20px rgba(59, 130, 246, 0.3), 0 8px 24px rgba(29, 78, 216, 0.35) !important;
            font-weight: 800;
        }

        .saas-btn.primary:hover {
            box-shadow: 0 0 30px rgba(59, 130, 246, 0.5), 0 8px 30px rgba(29, 78, 216, 0.5) !important;
            transform: translateY(-1px);
        }

        .saas-btn.secondary {
            background: rgba(255, 255, 255, 0.03) !important;
            border: 1px solid rgba(255, 255, 255, 0.08) !important;
            color: rgba(255, 255, 255, 0.8) !important;
            backdrop-filter: blur(10px);
        }

        .saas-btn.secondary:hover {
            background: rgba(255, 255, 255, 0.08) !important;
            border-color: rgba(255, 255, 255, 0.15) !important;
            color: #fff !important;
        }

        /* Shake Error Animation (Animista shake-top) */
        @-webkit-keyframes shake-top {

            0%,
            100% {
                -webkit-transform: rotate(0deg);
                transform: rotate(0deg);
                -webkit-transform-origin: 50% 0;
                transform-origin: 50% 0;
            }

            10% {
                -webkit-transform: rotate(2deg);
                transform: rotate(2deg);
            }

            20%,
            40%,
            60% {
                -webkit-transform: rotate(-4deg);
                transform: rotate(-4deg);
            }

            30%,
            50%,
            70% {
                -webkit-transform: rotate(4deg);
                transform: rotate(4deg);
            }

            80% {
                -webkit-transform: rotate(-2deg);
                transform: rotate(-2deg);
            }

            90% {
                -webkit-transform: rotate(2deg);
                transform: rotate(2deg);
            }
        }

        @keyframes shake-top {

            0%,
            100% {
                -webkit-transform: rotate(0deg);
                transform: rotate(0deg);
                -webkit-transform-origin: 50% 0;
                transform-origin: 50% 0;
            }

            10% {
                -webkit-transform: rotate(2deg);
                transform: rotate(2deg);
            }

            20%,
            40%,
            60% {
                -webkit-transform: rotate(-4deg);
                transform: rotate(-4deg);
            }

            30%,
            50%,
            70% {
                -webkit-transform: rotate(4deg);
                transform: rotate(4deg);
            }

            80% {
                -webkit-transform: rotate(-2deg);
                transform: rotate(-2deg);
            }

            90% {
                -webkit-transform: rotate(2deg);
                transform: rotate(2deg);
            }
        }

        .saas-shake-error {
            animation: shake-top 0.8s cubic-bezier(0.455, 0.030, 0.515, 0.955) both !important;
            border-color: rgba(239, 68, 68, 0.5) !important;
            box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37), 0 0 40px rgba(239, 68, 68, 0.25) !important;
            transition: none !important;
        }

        .saas-power-tag {
            font-family: 'Inter', sans-serif !important;
            font-size: 0.65rem !important;
            font-weight: 900 !important;
            text-transform: uppercase !important;
            letter-spacing: 4px !important;
            color: rgba(255, 255, 255, 0.22) !important;
            margin-bottom: 24px !important;
            margin-top: -8px !important;
            text-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
        }

        .saas-lock-footer {
            position: absolute;
            bottom: 30px;
            left: 0;
            right: 0;
            text-align: center;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
            pointer-events: none;
            z-index: 2;
            width: 100%;
        }

        .saas-lock-footer-brand {
            font-size: 0.72rem;
            font-weight: 800;
            color: rgba(255, 255, 255, 0.92);
            text-transform: uppercase;
            letter-spacing: 3.5px;
            display: block;
            width: 100%;
            text-align: center;
            white-space: nowrap;
            margin-bottom: 5px;
        }

        .saas-lock-footer-copyright {
            font-size: 0.68rem;
            font-weight: 400;
            color: rgba(255, 255, 255, 0.55);
            display: block;
            width: 100%;
            text-align: center;
            white-space: nowrap;
        }

        /* 🛡️ Google reCAPTCHA v3 & App Check Badge Stealth Mode */
        .grecaptcha-badge {
            visibility: hidden !important;
            opacity: 0 !important;
            pointer-events: none !important;
        }