.prg-gate-active,
.prg-gate-active body,
body.prg-gate-active {
    margin: 0 !important;
    padding: 0 !important;
    background: #17191d !important;
}

body.prg-gate-active {
    overflow: hidden !important;
}

body.prg-gate-active > *:not(.prg-page):not(.prg-success-page) {
    display: none !important;
}

.prg-page {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.18), transparent 28%),
        radial-gradient(circle at 18% 16%, rgba(136, 146, 160, 0.18), transparent 34%),
        linear-gradient(145deg, #25282d 0%, #17191d 48%, #0f1114 100%);
    box-sizing: border-box;
}

.prg-success-page {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.18), transparent 28%),
        radial-gradient(circle at 18% 16%, rgba(136, 146, 160, 0.18), transparent 34%),
        linear-gradient(145deg, #25282d 0%, #17191d 48%, #0f1114 100%);
    box-sizing: border-box;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
}

.prg-success-page::before,
.prg-success-page::after {
    content: "";
    position: absolute;
    width: 46vw;
    height: 46vw;
    min-width: 520px;
    min-height: 520px;
    border-radius: 999px;
    pointer-events: none;
    filter: blur(54px);
    opacity: 0.34;
}

.prg-success-page::before {
    top: -12%;
    left: 10%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.34), rgba(148, 163, 184, 0.05) 58%, transparent 70%);
    animation: prgFogDrift 12s ease-in-out infinite alternate;
}

.prg-success-page::after {
    right: 4%;
    bottom: -18%;
    background: radial-gradient(circle, rgba(210, 214, 220, 0.28), rgba(91, 99, 112, 0.08) 58%, transparent 72%);
    animation: prgFogDriftAlt 14s ease-in-out infinite alternate;
}

.prg-success-panel {
    position: relative;
    z-index: 1;
    width: min(92vw, 720px);
    padding: 62px 56px 54px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 34px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.07));
    box-shadow:
        0 42px 120px rgba(0, 0, 0, 0.48),
        0 18px 44px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
    text-align: center;
    overflow: hidden;
    backdrop-filter: blur(28px) saturate(135%);
    -webkit-backdrop-filter: blur(28px) saturate(135%);
}

.prg-success-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.18) 42%, transparent 66%),
        radial-gradient(circle at top, rgba(255, 255, 255, 0.18), transparent 42%);
    opacity: 0;
    transform: translateX(-42%);
    animation: prgPanelSheen 2800ms ease-out 520ms forwards;
}

.prg-success-mark {
    position: relative;
    z-index: 1;
    display: inline-grid;
    place-items: center;
    width: 62px;
    height: 62px;
    margin: 0 auto 28px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow:
        0 20px 46px rgba(0, 0, 0, 0.34),
        0 0 46px rgba(255, 255, 255, 0.12);
    opacity: 0;
    transform: translateY(12px) scale(0.92);
    animation: prgSuccessReveal 1100ms cubic-bezier(0.2, 0.8, 0.2, 1) 120ms forwards;
}

.prg-success-mark::before {
    content: "";
    width: 25px;
    height: 14px;
    border-left: 4px solid #17191d;
    border-bottom: 4px solid #17191d;
    transform: translateY(-2px) rotate(-45deg);
}

.prg-success-message {
    color: #ffffff;
    font-size: clamp(34px, 5vw, 76px);
    font-weight: 760;
    line-height: 1.05;
    text-align: center;
    letter-spacing: 0;
    margin: 0;
    text-shadow:
        0 18px 52px rgba(0, 0, 0, 0.44),
        0 0 34px rgba(255, 255, 255, 0.16);
    opacity: 0;
    transform: translateY(18px) scale(0.98);
    animation: prgSuccessReveal 1800ms ease-out 220ms forwards;
}

.prg-success-lead,
.prg-success-status {
    position: relative;
    z-index: 1;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    letter-spacing: 0;
    opacity: 0;
    transform: translateY(14px);
    text-shadow: 0 12px 34px rgba(0, 0, 0, 0.36);
}

.prg-success-lead {
    max-width: 540px;
    margin: 0 auto;
    font-size: clamp(24px, 3vw, 38px);
    font-weight: 720;
    line-height: 1.45;
    animation: prgTextReveal 1300ms ease-out 760ms forwards;
}

.prg-success-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    margin-top: 24px;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 650;
    line-height: 1;
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);
    animation: prgTextReveal 1300ms ease-out 1120ms forwards;
}

.prg-page * {
    box-sizing: border-box;
}

.prg-success-page * {
    box-sizing: border-box;
}

.prg-card {
    width: min(100%, 420px);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding: 42px 38px 38px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 26px;
    background: linear-gradient(180deg, #ffffff 0%, #f5f6f8 100%);
    box-shadow:
        0 34px 90px rgba(0, 0, 0, 0.48),
        0 14px 34px rgba(0, 0, 0, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.prg-logo {
    display: block;
    width: auto;
    max-width: 188px;
    max-height: 98px;
    margin: 0 auto 10px;
    object-fit: contain;
}

.prg-input {
    width: 100%;
    min-height: 52px;
    padding: 0 16px;
    border: 1px solid #cfd4dc;
    border-radius: 16px;
    background: #ffffff;
    color: #182230;
    font-size: 16px;
    line-height: 1.2;
    outline: none;
    box-shadow: 0 10px 24px rgba(18, 24, 31, 0.06);
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.prg-input::placeholder {
    color: #8390a2;
}

.prg-input:focus {
    border-color: #535b66;
    background: #ffffff;
    box-shadow:
        0 0 0 4px rgba(83, 91, 102, 0.13),
        0 12px 28px rgba(18, 24, 31, 0.1);
}

.prg-button {
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, #1d2025 0%, #3a4049 100%);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    box-shadow:
        0 18px 34px rgba(0, 0, 0, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);
    transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.prg-button:hover,
.prg-button:focus {
    filter: brightness(1.08);
    box-shadow:
        0 22px 42px rgba(0, 0, 0, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

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

.prg-page--failed .prg-card,
.prg-card.is-hidden {
    pointer-events: none;
    opacity: 0;
    transform: translateY(10px) scale(0.98);
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 480px) {
    .prg-page {
        padding: 18px;
    }

    .prg-card {
        gap: 16px;
        padding: 28px 22px;
        border-radius: 18px;
    }

    .prg-logo {
        max-width: 148px;
        max-height: 78px;
    }

    .prg-success-panel {
        padding: 46px 24px 40px;
        border-radius: 26px;
    }

    .prg-success-mark {
        width: 54px;
        height: 54px;
        margin-bottom: 20px;
    }
}

@keyframes prgSuccessReveal {
    0% {
        opacity: 0;
        transform: translateY(18px) scale(0.98);
        filter: blur(8px);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes prgTextReveal {
    0% {
        opacity: 0;
        transform: translateY(14px);
        filter: blur(6px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes prgFogDrift {
    0% {
        transform: translate3d(-3%, -2%, 0) scale(1);
    }

    100% {
        transform: translate3d(8%, 6%, 0) scale(1.08);
    }
}

@keyframes prgFogDriftAlt {
    0% {
        transform: translate3d(5%, 3%, 0) scale(1);
    }

    100% {
        transform: translate3d(-7%, -6%, 0) scale(1.12);
    }
}

@keyframes prgPanelSheen {
    0% {
        opacity: 0;
        transform: translateX(-42%);
    }

    45% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateX(42%);
    }
}
