        /* GATEKEEPER OVERLAY */
        #gatekeeper-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100vh;
            background-color: var(--bg-dark);
            z-index: 9999;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 1;
            visibility: visible;
            transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s;
        }

        .authorised #gatekeeper-overlay {
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
        }

        .gatekeeper-card {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 24px;
            padding: 48px;
            max-width: 480px;
            width: 90%;
            text-align: center;
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
            position: relative;
            overflow: hidden;
        }

        .gatekeeper-card::after {
            content: '';
            position: absolute;
            top: -50px;
            right: -50px;
            width: 180px;
            height: 180px;
            background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, transparent 70%);
            pointer-events: none;
        }

        .gatekeeper-logo {
            margin-bottom: 24px;
            display: inline-block;
        }

        .gatekeeper-logo img {
            height: 64px;
            width: 64px;
            margin: 0 auto;
            border-radius: 50%;
            box-shadow: 0 8px 24px rgba(16, 185, 129, 0.2);
        }

        .gatekeeper-card h1 {
            font-size: 2rem;
            margin-bottom: 4px;
            background: linear-gradient(135deg, var(--text-main) 0%, var(--text-muted) 100%);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .gatekeeper-card h2 {
            font-size: 1.1rem;
            color: var(--primary);
            margin-bottom: 16px;
            font-weight: 600;
        }

        .gatekeeper-card p {
            color: var(--text-muted);
            font-size: 0.95rem;
            line-height: 1.5;
            margin-bottom: 32px;
        }

        .gatekeeper-form {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        .gatekeeper-input-wrapper {
            position: relative;
        }

        .gatekeeper-input {
            width: 100%;
            background: rgba(11, 15, 25, 0.6);
            border: 1.5px solid var(--border-color);
            border-radius: 10px;
            padding: 14px 16px;
            color: var(--text-main);
            font-family: var(--font-body);
            font-size: 1rem;
            text-align: center;
            transition: var(--transition);
        }

        .gatekeeper-input:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 4px var(--primary-glow);
            background: rgba(11, 15, 25, 0.85);
        }

        .gatekeeper-btn {
            padding: 14px;
            background-color: var(--primary);
            color: var(--bg-dark);
            border-radius: 10px;
            font-size: 1rem;
            font-weight: 700;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
        }

        .gatekeeper-btn:hover {
            background-color: var(--primary-hover);
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
        }

        .gatekeeper-error {
            color: #ef4444;
            font-size: 0.85rem;
            font-weight: 500;
            opacity: 0;
            transition: var(--transition);
            margin-top: 4px;
            height: 18px;
        }

        .gatekeeper-error.visible {
            opacity: 1;
        }

        #main-site-content {
            opacity: 0;
            pointer-events: none;
            visibility: hidden;
            transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s;
        }

        .authorised #main-site-content {
            opacity: 1;
            pointer-events: auto;
            visibility: visible;
        }

        /* Shake animation for incorrect password */
        @keyframes shake {

            0%,
            100% {
                transform: translateX(0);
            }

            20%,
            60% {
                transform: translateX(-10px);
            }

            40%,
            80% {
                transform: translateX(10px);
            }
        }

        .shake {
            animation: shake 0.4s ease-in-out;
        }
