.nhp-wrap {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
}

.nhp-doors-wrapper {
    transition: opacity 0.4s ease;
}

.nhp-door-interface h1 {
    margin: 0 0 36px;
    font-size: clamp(2rem, 8vw, 4rem);
    letter-spacing: -0.03em;
    font-weight: 500;
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

.nhp-auth-shell {
    position: relative;
    width: min(100%, 420px);
}

.nhp-auth-stage {
    position: relative;
    min-height: 340px;
    padding: 30px 28px 24px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(9, 9, 11, 0.48);
    backdrop-filter: blur(22px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.nhp-auth-view {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding: 30px 28px 24px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(18px);
    transition: opacity 260ms ease, transform 260ms ease;
}

.nhp-auth-view.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.nhp-auth-kicker {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.72rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

.nhp-auth-copy {
    margin: 0 0 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.92rem;
    line-height: 1.7;
}

.nhp-auth-label {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.74rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.nhp-auth-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nhp-auth-input {
    width: 100%;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 0;
    background: transparent;
    color: #fff;
    padding: 10px 0 12px;
    font-size: 0.95rem;
    outline: 0;
    transition: border-color 220ms ease, color 220ms ease;
}

.nhp-auth-input::placeholder {
    color: rgba(255, 255, 255, 0.38);
}

.nhp-auth-input:focus {
    border-bottom-color: rgba(255, 255, 255, 0.92);
}

.nhp-auth-code-input {
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.nhp-auth-primary,
.nhp-auth-secondary {
    border: 0;
    background: none;
    color: #fff;
    cursor: pointer;
    font: inherit;
}

.nhp-auth-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    padding: 14px 18px;
    background: #fff;
    color: #09090b;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    transition: transform 220ms ease, background 220ms ease;
}

.nhp-auth-primary:hover {
    background: rgba(255, 255, 255, 0.88);
    transform: translateY(-1px);
}

.nhp-auth-secondary {
    padding: 4px 0 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.76rem;
    letter-spacing: 0.16em;
    text-align: left;
    text-transform: uppercase;
    transition: color 220ms ease;
}

.nhp-auth-secondary:hover {
    color: #fff;
}

.nhp-auth-feedback {
    min-height: 1.2em;
    margin: 4px 0 0;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
}

.nhp-auth-feedback[data-state="error"] {
    color: #fca5a5;
}

.nhp-auth-feedback[data-state="success"] {
    color: #a7f3d0;
}

.nhp-generated-code {
    margin: 6px 0 12px;
    color: #fff;
    font-size: clamp(2rem, 8vw, 2.8rem);
    font-weight: 600;
    letter-spacing: 0.32em;
    text-align: left;
    text-transform: uppercase;
}

.nhp-wrap.nhp-entered .nhp-door-interface {
    opacity: 0;
    transform: scale(0.95);
}

.nhp-wrap.nhp-entered .nhp-door-left {
    transform: translateX(-100%);
}

.nhp-wrap.nhp-entered .nhp-door-right {
    transform: translateX(100%);
}

.nhp-wrap.nhp-entered .nhp-bg-media {
    transform: scale(1);
}

.nhp-wrap.nhp-entered .nhp-content {
    opacity: 1;
    transform: translateY(0);
}

.nhp-wrap.nhp-entered .nhp-doors-wrapper {
    pointer-events: none;
}

.nhp-grain {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Password gate: critical layout + fields before Tailwind CDN runs (prevents flash of theme / wrong layout) */
.nhp-wrap.nhp-password-flow {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background-color: #09090b;
    color: #fafafa;
    overflow-x: hidden;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.nhp-password-flow .nhp-password-bg,
.nhp-password-flow .nhp-waitlist-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    transition: opacity 420ms ease, transform 420ms ease;
}

.nhp-password-flow .nhp-screen {
    transition: opacity 420ms ease, transform 420ms ease;
}

.nhp-password-flow .nhp-password-screen-inner {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 3rem 1.5rem 6rem;
    box-sizing: border-box;
    width: 100%;
}

.nhp-access-password-input {
    width: 100%;
    box-sizing: border-box;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(0, 0, 0, 0.35);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #fff !important;
    -webkit-text-fill-color: #fff;
    caret-color: #fff;
    outline: none;
}

.nhp-access-password-input::placeholder {
    color: rgba(255, 255, 255, 0.45);
    opacity: 1;
}

.nhp-access-password-input:focus {
    border-color: #fff !important;
}

.nhp-access-password-input:-webkit-autofill,
.nhp-access-password-input:-webkit-autofill:hover,
.nhp-access-password-input:-webkit-autofill:focus {
    -webkit-text-fill-color: #fff !important;
    caret-color: #fff;
    box-shadow: 0 0 0 1000px rgba(0, 0, 0, 0.55) inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

body.nhp-password-page-active header,
body.nhp-password-page-active #masthead,
body.nhp-password-page-active .site-header,
body.nhp-password-page-active #header,
body.nhp-password-page-active .elementor-location-header,
body.nhp-password-page-active .ast-above-header-wrap,
body.nhp-password-page-active .ast-primary-header-bar,
body.nhp-password-page-active .ast-header-break-point,
body.nhp-password-page-active #wpadminbar,
body.nhp-password-gate-home header,
body.nhp-password-gate-home #masthead,
body.nhp-password-gate-home .site-header,
body.nhp-password-gate-home #header,
body.nhp-password-gate-home .elementor-location-header,
body.nhp-password-gate-home .ast-above-header-wrap,
body.nhp-password-gate-home .ast-primary-header-bar,
body.nhp-password-gate-home .ast-header-break-point,
body.nhp-password-gate-home #wpadminbar {
    display: none !important;
}

html.nhp-password-gate-html,
html.nhp-password-gate-html body.nhp-password-gate-home {
    margin: 0 !important;
    padding: 0 !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
    background: #09090b !important;
    min-height: 100vh !important;
    height: auto !important;
    max-height: none !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
}

html.nhp-password-gate-html {
    /* Override the WP admin bar default 32px push */
}

body.nhp-password-gate-home {
    margin: 0 !important;
    padding: 0 !important;
    background: #09090b !important;
}

/* Force the gated section to take over the full viewport */
body.nhp-password-gate-home > *:not(.nhp-wrap):not(script):not(style):not(noscript) {
    display: none !important;
}

body.nhp-password-gate-home .nhp-wrap.nhp-password-flow {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    max-width: 100vw !important;
    min-height: 100vh !important;
    height: auto !important;
    z-index: 2147483646 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
}

body.nhp-password-page-active .nhp-wrap.nhp-password-flow {
    overflow: visible !important;
}

body.nhp-password-gate-home .nhp-password-flow .nhp-password-screen,
body.nhp-password-page-active .nhp-password-flow .nhp-password-screen {
    position: relative !important;
    inset: auto !important;
    min-height: 100vh !important;
    height: auto !important;
}

body.nhp-password-page-active,
body.nhp-password-page-active *,
body.nhp-password-gate-home,
body.nhp-password-gate-home * {
    cursor: default !important;
}

body.nhp-password-page-active input,
body.nhp-password-page-active textarea,
body.nhp-password-gate-home input,
body.nhp-password-gate-home textarea {
    cursor: text !important;
}

body.nhp-password-page-active button,
body.nhp-password-page-active a,
body.nhp-password-page-active label,
body.nhp-password-page-active [type="submit"],
body.nhp-password-page-active [type="button"],
body.nhp-password-gate-home button,
body.nhp-password-gate-home a,
body.nhp-password-gate-home label,
body.nhp-password-gate-home [type="submit"],
body.nhp-password-gate-home [type="button"] {
    cursor: pointer !important;
}

.nhp-password-flow .nhp-bg-password-image,
.nhp-password-flow .nhp-bg-password-video,
.nhp-password-flow .nhp-bg-waitlist-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nhp-password-logo {
    width: auto;
    max-width: min(240px, 60vw);
    max-height: 96px;
}

.nhp-password-flow .nhp-password-screen,
.nhp-password-flow .nhp-join-screen {
    position: absolute;
    inset: 0;
}

.nhp-password-flow.nhp-screen-password .nhp-password-bg,
.nhp-password-flow.nhp-screen-join .nhp-waitlist-bg {
    opacity: 1;
}

.nhp-password-flow.nhp-screen-password .nhp-waitlist-bg,
.nhp-password-flow.nhp-screen-join .nhp-password-bg {
    opacity: 0;
}

.nhp-password-flow.nhp-screen-password .nhp-password-screen,
.nhp-password-flow.nhp-screen-join .nhp-join-screen {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.nhp-password-flow.nhp-screen-password .nhp-join-screen,
.nhp-password-flow.nhp-screen-join .nhp-password-screen {
    opacity: 0;
    transform: translateY(24px);
    pointer-events: none;
}

@media (max-width: 640px) {
    .nhp-auth-stage,
    .nhp-auth-view {
        padding: 26px 22px 22px;
    }

    .nhp-auth-stage {
        min-height: 320px;
    }

    .nhp-generated-code {
        font-size: 1.8rem;
        letter-spacing: 0.24em;
    }
}

/* Subscription form on the password page */
.nhp-subscribe-block {
    color: #fff;
}

.nhp-subscribe-input {
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 200ms ease, background 200ms ease;
}

.nhp-subscribe-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.nhp-subscribe-input:focus {
    border-color: #fff !important;
    background: rgba(0, 0, 0, 0.5);
}

.nhp-subscribe-input:-webkit-autofill,
.nhp-subscribe-input:-webkit-autofill:hover,
.nhp-subscribe-input:-webkit-autofill:focus {
    -webkit-text-fill-color: #fff;
    -webkit-box-shadow: 0 0 0 1000px rgba(0, 0, 0, 0.6) inset;
    transition: background-color 5000s ease-in-out 0s;
}

.nhp-subscribe-button {
    cursor: pointer !important;
}

.nhp-subscribe-button:disabled {
    cursor: wait !important;
}

.nhp-subscribe-feedback:empty {
    display: none;
}

.nhp-subscribe-consent a {
    color: #fff;
    text-decoration: underline;
}

@media (max-width: 640px) {
    .nhp-subscribe-block {
        margin-top: 2.5rem;
        padding-top: 2rem;
    }
}

