.tko-popup-3[hidden] {
    display: none !important;
}

.tko-popup-3 {
    position: fixed;
    inset: 0;
    z-index: 1999999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    opacity: 0;
    transition: opacity .35s ease;
}

.tko-popup-3.is-open {
    opacity: 1;
}

.tko-popup-3__overlay {
    position: absolute;
    inset: 0;
    background: rgba(2, 5, 15, .82);
    backdrop-filter: blur(4px);
}

.tko-popup-3__dialog {
    box-sizing: border-box;
    position: relative;
    width: min(1120px, calc(100vw - 64px));
    height: auto;
    max-height: calc(100dvh - 64px);
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-gutter: stable;
    padding: 28px;
    border: 1px solid rgba(255, 184, 56, .24);
    border-radius: 24px;
    background:
        radial-gradient(circle at 50% 0, rgba(255, 184, 56, .09), transparent 34%),
        linear-gradient(180deg, #0b1328 0%, #070d1d 100%);
    box-shadow: 0 28px 80px rgba(0, 0, 0, .68);
    color: #fff;
    outline: 0;
}

.tko-popup-3__dialog::-webkit-scrollbar {
    width: 8px;
}

.tko-popup-3__dialog::-webkit-scrollbar-track {
    background: transparent;
}

.tko-popup-3__dialog::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(255, 184, 56, .42);
}

.tko-popup-3__content {
    min-height: 0;
}

.tko-popup-3__close {
    position: sticky;
    z-index: 3;
    top: 0;
    display: block;
    width: 42px;
    height: 42px;
    margin: 0 0 -42px auto;
    padding: 0;
    border: 1px solid rgba(255, 184, 56, .34);
    border-radius: 50%;
    background: #101a33;
    color: #ffb838;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .35);
    font: 400 22px/40px Arial, sans-serif;
    text-align: center;
    cursor: pointer;
}

.tko-popup-3__close:hover,
.tko-popup-3__close:focus-visible {
    border-color: rgba(255, 184, 56, .7);
    background: #192641;
    color: #ffd36a;
    outline: 2px solid #ffb838;
    outline-offset: 2px;
}

.tko-popup-3 .tcm-wrap {
    max-width: none;
    padding: 0;
}

.tko-popup-3 .tcm-title {
    padding-inline: 54px;
}

body.tko-popup-3-open {
    overflow: hidden;
}

@media (max-width: 1100px) {
    .tko-popup-3 {
        padding: 20px;
    }

    .tko-popup-3__dialog {
        width: min(780px, calc(100vw - 40px));
        max-height: calc(100dvh - 40px);
        padding: 24px;
    }
}

@media (max-width: 700px) {
    .tko-popup-3 {
        padding: 12px;
    }

    .tko-popup-3__overlay {
        backdrop-filter: blur(2px);
    }

    .tko-popup-3__dialog {
        width: min(420px, calc(100vw - 24px));
        max-height: calc(100dvh - 24px);
        padding: 16px 14px 18px;
        border-radius: 18px;
        scrollbar-gutter: auto;
    }

    .tko-popup-3__close {
        top: 0;
        width: 40px;
        height: 40px;
        margin-bottom: -40px;
        font-size: 21px;
        line-height: 38px;
    }

    .tko-popup-3 .tcm-title {
        max-width: 240px;
        margin: 4px auto 18px;
        padding: 0;
        font-size: 17px;
        line-height: 1.25;
    }

    .tko-popup-3 .tcm-grid {
        gap: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tko-popup-3 {
        transition: none;
    }
}
