/* =============================
   SITE POPUP
============================= */
.site-popup {
    position: fixed;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(5, 11, 24, 0.88);
    backdrop-filter: blur(7px);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;

    z-index: 99999;
}

.site-popup.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* =============================
   POPUP CONTENT
============================= */
.site-popup-content {
    width: min(460px, 100%);

    padding: 40px 35px;

    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;

    background: #10192f;

    text-align: center;

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.55),
        0 0 35px rgba(255, 140, 66, 0.08);

    transform: translateY(18px) scale(0.97);

    transition: transform 0.25s ease;
}

.site-popup.active .site-popup-content {
    transform: translateY(0) scale(1);
}

/* =============================
   POPUP ICON
============================= */
.popup-icon {
    width: 78px;
    height: 78px;

    margin: 0 auto 24px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    font-size: 34px;

    color: #ffffff;
}

.popup-icon.success {
    background: linear-gradient(
        135deg,
        #f5c542,
        #ff8c42
    );

    box-shadow:
        0 12px 30px rgba(255, 140, 66, 0.3);
}

.popup-icon.error {
    background: linear-gradient(
        135deg,
        #ff5f6d,
        #d7263d
    );

    box-shadow:
        0 12px 30px rgba(215, 38, 61, 0.3);
}

/* =============================
   POPUP TEXT
============================= */
.popup-title {
    margin: 0 0 14px;

    color: #f5f7fc;

    font-size: 28px;
    font-weight: 700;
}

.popup-message {
    margin: 0 0 30px;

    color: rgba(245, 247, 252, 0.82);

    font-size: 15px;
    line-height: 1.7;
}

/* =============================
   POPUP BUTTON
============================= */
.popup-btn {
    width: 100%;

    padding: 14px 20px;

    border: none;
    border-radius: 10px;

    background: linear-gradient(
        135deg,
        #f5c542,
        #ff8c42
    );

    color: #ffffff;

    font-size: 16px;
    font-weight: 700;

    cursor: pointer;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.popup-btn:hover {
    transform: translateY(-2px);

    box-shadow:
        0 12px 28px rgba(255, 140, 66, 0.32);
}

.popup-btn:focus-visible {
    outline: 3px solid rgba(245, 197, 66, 0.4);
    outline-offset: 3px;
}

body.popup-open {
    overflow: hidden;
}