.gatekeeper-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background: radial-gradient(circle at 50% 10%, rgba(0, 131, 255, 0.1), transparent 50%), var(--color-slate-900);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    padding: 2rem;
    font-family: inherit;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.gatekeeper-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.gatekeeper-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 3rem;
    text-align: center;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.gatekeeper-box .badge {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 2rem;
    display: inline-block;
}

.gatekeeper-box h1 {
    font-size: 2.2rem;
    margin: 0 0 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.gatekeeper-box p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.15rem;
    margin: 0 0 2rem;
    line-height: 1.5;
}

.gatekeeper-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.gatekeeper-form input {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    font: inherit;
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    text-align: center;
}

.gatekeeper-form input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 131, 255, 0.3);
}

.gatekeeper-form input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.gatekeeper-form button {
    width: 100%;
}

.gatekeeper-error {
    color: #ef4444;
    font-size: 0.95rem;
    margin-top: 1rem;
    display: none;
}

.gatekeeper-error.show {
    display: block;
}

/* Light placeholder styles */
.gatekeeper-placeholder {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 1rem;
    background: radial-gradient(circle at 50% 10%, rgba(0, 131, 255, 0.05), transparent 60%), var(--color-bg);
}

.gatekeeper-placeholder .container {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.gatekeeper-placeholder h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin: 1rem 0;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.gatekeeper-placeholder p {
    color: var(--color-muted);
    font-size: 1.15rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.gatekeeper-access-btn {
    background: transparent;
    border: none;
    color: var(--color-muted);
    font-size: 0.85rem;
    text-decoration: underline;
    cursor: pointer;
    opacity: 0.6;
    padding: 0.5rem;
    transition: opacity 0.2s, color 0.2s;
}

.gatekeeper-access-btn:hover {
    opacity: 1;
    color: var(--color-text);
}

/* Hide main content when locked */
body.locked main {
    display: none !important;
}