.wpoa-shell,
.wpoa-shell * {
    box-sizing: border-box;
}

.wpoa-shell {
    --wpoa-primary: #d6b870;
    --wpoa-on-primary: #111;
    --wpoa-bg: #0e0e0e;
    --wpoa-card: #181818;
    --wpoa-text: #f8f4e8;
    --wpoa-error: #dc2626;
    --wpoa-radius: 20px;
    display: grid;
    min-height: min(720px, calc(100vh - 120px));
    place-items: center;
    padding: clamp(24px, 6vw, 72px) 16px;
    color: var(--wpoa-text);
    background:
        radial-gradient(circle at 85% 12%, color-mix(in srgb, var(--wpoa-primary) 16%, transparent), transparent 34%),
        radial-gradient(circle at 12% 86%, color-mix(in srgb, var(--wpoa-primary) 9%, transparent), transparent 29%),
        var(--wpoa-bg);
    font-family: inherit;
    isolation: isolate;
}

.wpoa-card {
    position: relative;
    width: min(100%, 470px);
    overflow: hidden;
    padding: clamp(28px, 6vw, 44px);
    border: 1px solid color-mix(in srgb, var(--wpoa-primary) 22%, transparent);
    border-radius: var(--wpoa-radius);
    background: color-mix(in srgb, var(--wpoa-card) 97%, transparent);
    box-shadow: 0 32px 80px -32px #000, 0 0 45px -38px var(--wpoa-primary);
    backdrop-filter: blur(16px);
}

.wpoa-brand {
    display: grid;
    width: 48px;
    height: 48px;
    margin-bottom: 26px;
    place-items: center;
    border-radius: 15px;
    background: var(--wpoa-primary);
    box-shadow: 0 10px 24px -10px var(--wpoa-primary);
}

.wpoa-brand span,
.wpoa-brand span::after {
    display: block;
    width: 19px;
    height: 19px;
    border: 2px solid var(--wpoa-on-primary);
    border-radius: 7px;
    content: "";
}

.wpoa-brand span::after {
    width: 7px;
    height: 7px;
    margin: 4px;
    border-width: 0;
    background: var(--wpoa-on-primary);
}

.wpoa-progress {
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: color-mix(in srgb, var(--wpoa-primary) 12%, transparent);
}

.wpoa-progress span {
    display: block;
    width: 33.333%;
    height: 100%;
    background: var(--wpoa-primary);
    transition: width 400ms cubic-bezier(.22, 1, .36, 1);
}

.wpoa-step {
    animation: wpoa-enter 420ms cubic-bezier(.22, 1, .36, 1) both;
}

.wpoa-step[hidden] {
    display: none;
}

.wpoa-heading {
    margin-bottom: 28px;
}

.wpoa-heading h2 {
    margin: 4px 0 9px;
    color: var(--wpoa-text);
    font-size: clamp(1.55rem, 5vw, 2rem);
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -.035em;
}

.wpoa-heading p {
    margin: 0;
    color: color-mix(in srgb, var(--wpoa-text) 67%, transparent);
    font-size: .93rem;
    line-height: 1.9;
}

.wpoa-heading .wpoa-eyebrow {
    color: var(--wpoa-primary);
    font-size: .76rem;
    font-weight: 750;
    letter-spacing: .025em;
}

.wpoa-heading .wpoa-mobile-caption b {
    color: var(--wpoa-text);
    font-weight: 650;
}

.wpoa-mobile-caption button {
    display: inline;
    margin: 0 4px 0 0;
    padding: 2px 0;
    border: 0;
    border-bottom: 1px dashed color-mix(in srgb, var(--wpoa-primary) 45%, transparent);
    color: var(--wpoa-primary);
    background: none;
    cursor: pointer;
    font: inherit;
    font-size: .82rem;
    font-weight: 650;
}

.wpoa-mobile-caption button:hover {
    border-bottom-style: solid;
}

.wpoa-shell label {
    display: block;
    margin: 0 2px 8px;
    color: color-mix(in srgb, var(--wpoa-text) 84%, transparent);
    font-size: .84rem;
    font-weight: 650;
}

.wpoa-shell label small {
    font-weight: 400;
    opacity: .7;
}

.wpoa-shell input {
    width: 100%;
    min-height: 52px;
    margin: 0 0 18px;
    padding: 0 15px;
    border: 1px solid color-mix(in srgb, var(--wpoa-text) 14%, transparent);
    border-radius: calc(var(--wpoa-radius) * .55);
    outline: none;
    color: var(--wpoa-text);
    background: color-mix(in srgb, var(--wpoa-card) 88%, var(--wpoa-bg));
    box-shadow: none;
    font: inherit;
    transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.wpoa-shell input:focus {
    border-color: var(--wpoa-primary);
    background: var(--wpoa-card);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--wpoa-primary) 13%, transparent);
}

.wpoa-input-wrap {
    display: flex;
    align-items: center;
    min-height: 54px;
    margin-bottom: 18px;
    border: 1px solid color-mix(in srgb, var(--wpoa-text) 14%, transparent);
    border-radius: calc(var(--wpoa-radius) * .55);
    background: color-mix(in srgb, var(--wpoa-card) 88%, var(--wpoa-bg));
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.wpoa-input-wrap:focus-within {
    border-color: var(--wpoa-primary);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--wpoa-primary) 13%, transparent);
}

.wpoa-input-wrap span {
    padding: 0 14px;
    border-right: 1px solid color-mix(in srgb, var(--wpoa-text) 10%, transparent);
    color: color-mix(in srgb, var(--wpoa-text) 62%, transparent);
    font-size: .92rem;
}

.wpoa-input-wrap input {
    min-width: 0;
    margin: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    letter-spacing: .06em;
}

.wpoa-input-wrap input:focus {
    background: transparent;
    box-shadow: none;
}

.wpoa-otp-input {
    height: 66px;
    text-align: center;
    font-size: 1.55rem !important;
    font-weight: 750 !important;
    letter-spacing: .42em;
}

.wpoa-button {
    position: relative;
    display: flex;
    width: 100%;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    margin-top: 7px;
    padding: 0 20px;
    border: 0;
    border-radius: calc(var(--wpoa-radius) * .55);
    color: var(--wpoa-on-primary);
    background: var(--wpoa-primary);
    box-shadow: 0 16px 34px -17px var(--wpoa-primary);
    cursor: pointer;
    font: inherit;
    font-weight: 750;
    transition: transform 180ms ease, filter 180ms ease, opacity 180ms ease;
}

.wpoa-button:hover {
    filter: brightness(.94);
    transform: translateY(-1px);
}

.wpoa-button:active {
    transform: translateY(0);
}

.wpoa-button:focus-visible,
.wpoa-mobile-caption button:focus-visible,
.wpoa-resend button:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--wpoa-primary) 30%, transparent);
    outline-offset: 3px;
}

.wpoa-button[disabled] {
    cursor: wait;
    filter: saturate(.7);
    opacity: .72;
    transform: none;
}

.wpoa-button i {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid color-mix(in srgb, var(--wpoa-on-primary) 40%, transparent);
    border-top-color: var(--wpoa-on-primary);
    border-radius: 50%;
    animation: wpoa-spin .7s linear infinite;
}

.wpoa-button[disabled] span {
    display: none;
}

.wpoa-button[disabled] i {
    display: block;
}

.wpoa-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.wpoa-live {
    display: none;
    margin: 0 0 18px;
    padding: 11px 13px;
    border-radius: 10px;
    color: var(--wpoa-error);
    background: color-mix(in srgb, var(--wpoa-error) 8%, transparent);
    font-size: .82rem;
    line-height: 1.65;
}

.wpoa-live.is-visible {
    display: block;
    animation: wpoa-enter 220ms ease both;
}

.wpoa-live.is-success {
    color: #f2d994;
    background: color-mix(in srgb, var(--wpoa-primary) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--wpoa-primary) 24%, transparent);
}

.wpoa-resend {
    min-height: 28px;
    margin-top: 18px;
    text-align: center;
    color: color-mix(in srgb, var(--wpoa-text) 58%, transparent);
    font-size: .82rem;
}

.wpoa-resend button {
    padding: 3px;
    border: 0;
    color: var(--wpoa-primary);
    background: none;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

.wpoa-privacy {
    margin: 15px 5px 0;
    color: color-mix(in srgb, var(--wpoa-text) 52%, transparent);
    font-size: .72rem;
    line-height: 1.7;
    text-align: center;
}

.wpoa-notice {
    margin: 30px auto;
    padding: 18px;
    border: 1px solid color-mix(in srgb, var(--wpoa-primary, #d6b870) 24%, transparent);
    border-radius: 12px;
    background: #181818;
    color: #d6b870;
    text-align: center;
}

@keyframes wpoa-enter {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes wpoa-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 520px) {
    .wpoa-shell { min-height: 0; padding: 14px; }
    .wpoa-card { padding: 30px 22px; }
    .wpoa-grid { grid-template-columns: 1fr; gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .wpoa-shell *,
    .wpoa-shell *::before,
    .wpoa-shell *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

body.wpoa-fullscreen-page {
    min-height: 100vh;
    min-height: 100svh;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
    background: #0e0e0e;
}

.wpoa-fullscreen-main,
.wpoa-fullscreen-page .wpoa-shell {
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    margin: 0;
}
