html.hys-register-popup-open,
body.hys-register-popup-open {
    overflow: hidden !important;
}

.hys-register-popup {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.hys-register-popup.is-open {
    display: flex;
}

.hys-register-popup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.66);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.hys-register-popup__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, var(--hys-register-popup-width, 560px));
    max-height: min(86vh, 820px);
    overflow: auto;
    box-sizing: border-box;
    border-radius: 16px;
    background: #fff;
    color: #1f2937;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
    outline: none;
    animation: hys-register-popup-in 0.2s ease-out;
}

.hys-register-popup__x {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 2;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #6b7280;
    font-size: 30px;
    line-height: 32px;
    cursor: pointer;
}

.hys-register-popup__x:hover,
.hys-register-popup__x:focus {
    background: #f3f4f6;
    color: #111827;
}

.hys-register-popup__title {
    padding: 24px 58px 16px 24px;
    border-bottom: 1px solid #eef0f3;
    font-size: 20px;
    line-height: 1.4;
    font-weight: 700;
}

.hys-register-popup__content {
    padding: 24px;
    font-size: 16px;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.hys-register-popup__content img,
.hys-register-popup__content video,
.hys-register-popup__content iframe {
    max-width: 100%;
    height: auto;
}

.hys-register-popup__content > :first-child {
    margin-top: 0;
}

.hys-register-popup__content > :last-child {
    margin-bottom: 0;
}

.hys-register-popup__footer {
    display: flex;
    justify-content: flex-end;
    padding: 0 24px 24px;
}

.hys-register-popup__close-button {
    min-width: 112px;
    min-height: 42px;
    padding: 10px 22px;
    border: 0;
    border-radius: 9px;
    background: #2563eb;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
}

.hys-register-popup__close-button:hover,
.hys-register-popup__close-button:focus {
    filter: brightness(0.94);
}

@keyframes hys-register-popup-in {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 600px) {
    .hys-register-popup {
        padding: 14px;
    }

    .hys-register-popup__dialog {
        border-radius: 13px;
        max-height: 90vh;
    }

    .hys-register-popup__title {
        padding: 20px 52px 14px 18px;
        font-size: 18px;
    }

    .hys-register-popup__content {
        padding: 20px 18px;
        font-size: 15px;
    }

    .hys-register-popup__footer {
        padding: 0 18px 18px;
    }

    .hys-register-popup__close-button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hys-register-popup__dialog {
        animation: none;
    }
}
