/* X -> x402 verification screen */
#xVerificationScreen {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    width: 100%;
    height: 100dvh;
    min-height: 100svh;
    padding: 18px;
    align-items: flex-start;
    justify-content: center;
    overflow-x: hidden;
    overflow-y: auto;
    background-color: #020806;
    background-image:
        linear-gradient(180deg, rgba(0, 8, 5, 0.08), rgba(0, 5, 3, 0.26)),
        url("fon/fonverif.webp");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

#xVerificationScreen.active {
    opacity: 1;
    pointer-events: all;
}

#xVerificationScreen::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 40%, rgba(40, 255, 144, 0.055), transparent 38%),
        linear-gradient(180deg, transparent 65%, rgba(0, 5, 3, 0.3));
}

#xVerificationScreen .x-verification-content {
    position: relative;
    z-index: 1;
    display: flex;
    width: min(660px, calc(100vw - 36px));
    min-height: calc(100dvh - 36px);
    max-width: none;
    margin: 0 auto;
    padding: 14px 24px 18px;
    flex-direction: column;
    text-align: center;
}

#xVerificationScreen .x-logo-container {
    position: relative;
    width: 82px;
    height: 82px;
    margin: 0 auto 3px;
}

#xVerificationScreen .x-logo-container.loading {
    animation: xVerifierPulse 1.3s ease-in-out infinite !important;
}

@keyframes xVerifierPulse {
    0%, 100% {
        transform: scale(0.96);
        filter: brightness(0.86);
    }
    50% {
        transform: scale(1.04);
        filter: brightness(1.16);
    }
}

#xVerificationScreen .x-logo {
    width: 82px !important;
    height: 82px !important;
    fill: #c7ffdc;
    filter: drop-shadow(0 0 24px rgba(70, 255, 151, 0.26));
    transition: fill 500ms ease, filter 500ms ease;
}

#xVerificationScreen .x-logo.safe {
    fill: #72f7aa;
    filter:
        drop-shadow(0 0 18px rgba(87, 255, 158, 0.42))
        drop-shadow(0 0 42px rgba(37, 229, 123, 0.2));
}

#xVerificationScreen .x-logo-check {
    position: absolute;
    right: -3px;
    bottom: 8px;
    display: grid;
    width: 23px;
    height: 23px;
    color: #04150c;
    border: 2px solid rgba(188, 255, 216, 0.92);
    border-radius: 50%;
    background: #66f5a3;
    box-shadow: 0 0 18px rgba(73, 245, 148, 0.55);
    opacity: 0;
    place-items: center;
    transform: scale(0.5);
    transition: opacity 350ms ease, transform 350ms ease;
}

#xVerificationScreen .x-logo.safe + .x-logo-check {
    opacity: 1;
    transform: scale(1);
}

#xVerificationScreen .x-logo-check svg,
#xVerificationScreen .x-account-check svg,
#xVerificationScreen .x-result-check svg {
    width: 70%;
    height: 70%;
    fill: none;
    stroke: currentColor;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

#xVerificationScreen .x-verification-title {
    margin: 0;
    color: #fff;
    font-size: clamp(1.8rem, 4vw, 2.25rem);
    font-weight: 850;
    line-height: 1.08;
    letter-spacing: -0.045em;
    text-shadow: 0 4px 26px rgba(0, 0, 0, 0.66);
}

#xVerificationScreen .x-loading-text.x-verification-subtitle {
    max-height: none;
    margin: 7px 0 0;
    color: rgba(215, 227, 219, 0.62);
    font-size: 0.82rem;
    line-height: 1.4;
    opacity: 1;
    visibility: visible;
}

#xVerificationScreen .x-safe-content {
    display: grid;
    width: 100%;
    min-height: 0;
    flex: 1;
    grid-template-rows:
        auto
        minmax(8px, 1fr)
        auto
        minmax(8px, 1fr)
        auto
        minmax(4px, 0.5fr)
        auto;
    align-items: center;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 650ms ease, transform 650ms ease;
}

#xVerificationScreen .x-safe-content.visible {
    opacity: 1;
    transform: translateY(0);
}

#xVerificationScreen .x-verification-badges {
    display: grid;
    width: min(100%, 570px);
    margin: 14px auto 0;
    grid-row: 1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}

#xVerificationScreen .x-badge,
#xVerificationScreen .x-badge.verified,
#xVerificationScreen .x-badge.safe {
    display: inline-flex;
    min-width: 0;
    min-height: 34px;
    padding: 7px 10px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #9ffac4;
    font-size: 0.66rem;
    font-weight: 700;
    line-height: 1.15;
    white-space: nowrap;
    border: 1px solid rgba(83, 235, 148, 0.34);
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(53, 164, 103, 0.13), rgba(16, 54, 34, 0.1)),
        rgba(3, 15, 9, 0.48);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 0 18px rgba(50, 221, 126, 0.08);
    opacity: 1 !important;
    animation: none !important;
    backdrop-filter: blur(10px);
}

#xVerificationScreen .x-badge svg {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

#xVerificationScreen .x-verification-card {
    display: flex;
    width: min(100%, 590px);
    min-height: 225px;
    margin: 0 auto;
    padding: 23px 24px 20px;
    flex-direction: column;
    grid-row: 3;
    justify-content: space-between;
    align-self: center;
    border: 1px solid rgba(139, 247, 186, 0.3);
    border-radius: 22px;
    background:
        radial-gradient(circle at 50% 0%, rgba(61, 219, 130, 0.1), transparent 48%),
        linear-gradient(150deg, rgba(9, 26, 18, 0.9), rgba(3, 13, 8, 0.82));
    box-shadow:
        0 24px 65px rgba(0, 0, 0, 0.36),
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 0 38px rgba(40, 221, 121, 0.07);
    backdrop-filter: blur(16px) saturate(120%);
}

#xVerificationScreen .x-account-flow {
    display: grid;
    grid-template-columns: 1fr 112px 1fr;
    align-items: center;
}

#xVerificationScreen .x-account {
    display: flex;
    min-width: 0;
    align-items: center;
    flex-direction: column;
}

#xVerificationScreen .x-account-logo {
    position: relative;
    display: grid;
    width: 70px;
    height: 70px;
    margin-bottom: 8px;
    border: 1px solid rgba(160, 255, 202, 0.25);
    border-radius: 15px;
    background:
        radial-gradient(circle at 50% 20%, rgba(86, 255, 159, 0.12), transparent 66%),
        rgba(3, 13, 9, 0.72);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.055),
        0 0 24px rgba(65, 237, 139, 0.08);
    place-items: center;
}

#xVerificationScreen .x-account-logo-x > svg {
    width: 39px;
    height: 39px;
    fill: #fff;
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.18));
}

#xVerificationScreen .x-account-logo-partner img {
    display: block;
    width: 64px;
    height: auto;
    max-height: 46px;
    object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(134, 74, 255, 0.35));
    transform: none;
}

#xVerificationScreen .x-account-check {
    position: absolute;
    right: -7px;
    bottom: -6px;
    display: grid;
    width: 23px;
    height: 23px;
    color: #05140c;
    border: 2px solid #0b2015;
    border-radius: 50%;
    background: #67f3a2;
    box-shadow: 0 0 14px rgba(80, 245, 150, 0.38);
    place-items: center;
}

#xVerificationScreen .x-account strong {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.77rem;
    line-height: 1.2;
}

#xVerificationScreen .x-account small {
    margin-top: 3px;
    color: rgba(201, 219, 208, 0.5);
    font-size: 0.61rem;
    line-height: 1.2;
}

#xVerificationScreen .x-account-connector {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

#xVerificationScreen .x-account-connector span {
    width: 100%;
    border-top: 2px dashed rgba(91, 239, 153, 0.46);
    filter: drop-shadow(0 0 5px rgba(74, 239, 143, 0.26));
}

#xVerificationScreen .x-account-connector svg {
    position: absolute;
    right: -1px;
    width: 22px;
    height: 22px;
    padding: 3px;
    fill: none;
    stroke: #8dffc0;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    border-radius: 50%;
    background: #0a2115;
}

#xVerificationScreen .x-verification-result {
    display: flex;
    min-height: 56px;
    margin-top: 20px;
    padding: 10px 14px;
    align-items: center;
    gap: 11px;
    text-align: left;
    border: 1px solid rgba(77, 229, 139, 0.28);
    border-radius: 13px;
    background:
        linear-gradient(100deg, rgba(51, 191, 111, 0.18), rgba(26, 99, 60, 0.13)),
        rgba(7, 29, 18, 0.72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

#xVerificationScreen .x-result-check {
    display: grid;
    width: 31px;
    height: 31px;
    flex: 0 0 31px;
    color: #06160d;
    border-radius: 50%;
    background: #65f2a0;
    box-shadow: 0 0 16px rgba(71, 237, 142, 0.28);
    place-items: center;
}

#xVerificationScreen .x-verification-result > span:last-child {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

#xVerificationScreen .x-verification-result strong {
    color: #9ffac3;
    font-size: 0.71rem;
    line-height: 1.25;
}

#xVerificationScreen .x-verification-result small {
    margin-top: 2px;
    color: rgba(210, 226, 216, 0.62);
    font-size: 0.59rem;
    line-height: 1.3;
}

#xVerificationScreen .x-progress-bar {
    width: min(100%, 560px);
    max-width: none;
    height: 7px;
    margin: 0 auto 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: 999px;
    background: rgba(204, 230, 215, 0.13);
}

#xVerificationScreen .x-progress-fill {
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #75ffb2, #46e58b);
    box-shadow: 0 0 16px rgba(83, 243, 152, 0.55);
    transition: width 5s linear;
}

#xVerificationScreen .x-redirect-text {
    display: flex;
    margin: 0;
    align-items: center;
    flex-direction: column;
    color: rgba(214, 227, 219, 0.56);
    font-size: 0.62rem;
    line-height: 1.45;
}

#xVerificationScreen .x-redirect-text strong {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.76rem;
}

#xVerificationScreen .x-redirect-status {
    width: min(100%, 560px);
    margin: 0 auto;
    grid-row: 5;
}

#xVerificationScreen .x-verification-footer {
    display: grid;
    width: min(100%, 600px);
    margin: 0 auto;
    grid-row: 7;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}

#xVerificationScreen .x-verification-footer span {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: rgba(205, 221, 212, 0.52);
    font-size: 0.56rem;
    white-space: nowrap;
}

#xVerificationScreen .x-verification-footer span + span {
    border-left: 1px solid rgba(255, 255, 255, 0.13);
}

#xVerificationScreen .x-verification-footer svg {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    fill: none;
    stroke: rgba(210, 231, 219, 0.78);
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 700px) {
    #xVerificationScreen {
        --x-mobile-heading-shift: clamp(68px, 12svh, 112px);
        padding: 12px;
        align-items: stretch;
        background-image:
            linear-gradient(180deg, rgba(0, 8, 5, 0.05), rgba(0, 5, 3, 0.2)),
            url("fon/fonverifmobile.webp");
        background-position: center;
    }

    #xVerificationScreen .x-verification-content {
        width: min(100%, 440px);
        min-height: calc(100dvh - 24px);
        margin: 0 auto;
        padding: 14px 7px 16px;
    }

    #xVerificationScreen .x-verification-heading,
    #xVerificationScreen .x-verification-badges {
        transform: translateY(var(--x-mobile-heading-shift));
    }

    #xVerificationScreen .x-logo-container {
        width: 68px;
        height: 68px;
        margin-bottom: 2px;
    }

    #xVerificationScreen .x-logo {
        width: 68px !important;
        height: 68px !important;
    }

    #xVerificationScreen .x-logo-check {
        right: -2px;
        bottom: 6px;
        width: 20px;
        height: 20px;
    }

    #xVerificationScreen .x-verification-title {
        font-size: clamp(1.55rem, 8vw, 1.9rem);
    }

    #xVerificationScreen .x-loading-text.x-verification-subtitle {
        margin-top: 5px;
        font-size: 0.7rem;
    }

    #xVerificationScreen .x-verification-badges {
        margin: 12px auto 11px;
        gap: 5px;
    }

    #xVerificationScreen .x-badge,
    #xVerificationScreen .x-badge.verified,
    #xVerificationScreen .x-badge.safe {
        min-height: 31px;
        padding: 6px 4px;
        gap: 4px;
        font-size: clamp(0.5rem, 2.2vw, 0.59rem);
    }

    #xVerificationScreen .x-badge svg {
        width: 13px;
        height: 13px;
        flex-basis: 13px;
    }

    #xVerificationScreen .x-verification-card {
        min-height: 220px;
        padding: 19px 14px 17px;
        margin-bottom: 0;
        border-radius: 18px;
    }

    #xVerificationScreen .x-account-flow {
        grid-template-columns: 1fr 52px 1fr;
    }

    #xVerificationScreen .x-account-logo {
        width: 58px;
        height: 58px;
        margin-bottom: 7px;
        border-radius: 13px;
    }

    #xVerificationScreen .x-account-logo-x > svg {
        width: 32px;
        height: 32px;
    }

    #xVerificationScreen .x-account-logo-partner img {
        width: 54px;
        height: auto;
        max-height: 40px;
        transform: none;
    }

    #xVerificationScreen .x-account-check {
        right: -6px;
        bottom: -5px;
        width: 20px;
        height: 20px;
    }

    #xVerificationScreen .x-account strong {
        font-size: 0.7rem;
    }

    #xVerificationScreen .x-account small {
        font-size: 0.55rem;
    }

    #xVerificationScreen .x-account-connector svg {
        width: 19px;
        height: 19px;
    }

    #xVerificationScreen .x-verification-result {
        min-height: 53px;
        margin-top: 18px;
        padding: 9px 10px;
        gap: 9px;
    }

    #xVerificationScreen .x-result-check {
        width: 28px;
        height: 28px;
        flex-basis: 28px;
    }

    #xVerificationScreen .x-verification-result strong {
        font-size: 0.65rem;
    }

    #xVerificationScreen .x-verification-result small {
        font-size: 0.53rem;
    }

    #xVerificationScreen .x-progress-bar {
        height: 6px;
        margin-top: 0;
        margin-bottom: 7px;
    }

    #xVerificationScreen .x-verification-footer {
        margin-top: 0;
        gap: 4px;
    }

    #xVerificationScreen .x-verification-footer span {
        gap: 4px;
        font-size: clamp(0.43rem, 1.8vw, 0.51rem);
        white-space: normal;
    }

    #xVerificationScreen .x-verification-footer svg {
        width: 12px;
        height: 12px;
        flex-basis: 12px;
    }
}

@media (max-height: 690px) {
    #xVerificationScreen .x-verification-content {
        margin-top: 0;
        padding-top: 5px;
        padding-bottom: 5px;
    }

    #xVerificationScreen .x-logo-container {
        width: 64px;
        height: 64px;
    }

    #xVerificationScreen .x-logo {
        width: 64px !important;
        height: 64px !important;
    }

    #xVerificationScreen .x-verification-title {
        font-size: 1.65rem;
    }

    #xVerificationScreen .x-verification-badges {
        margin-top: 9px;
        margin-bottom: 9px;
    }

    #xVerificationScreen .x-verification-card {
        min-height: 182px;
        padding-top: 12px;
        padding-bottom: 11px;
    }

    #xVerificationScreen .x-account-logo {
        width: 56px;
        height: 56px;
    }

    #xVerificationScreen .x-account-logo-partner img {
        width: 52px;
        height: auto;
        max-height: 38px;
    }

    #xVerificationScreen .x-verification-result {
        margin-top: 12px;
    }
}
