
.home-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.62);
    box-sizing: border-box;
}

.home-popup {
    position: relative;
    width: min(620px, 100%);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: #fff;
    border-radius: 18px;
    padding: 34px 30px 30px;
    box-sizing: border-box;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
    animation: homePopupIn 0.22s ease-out;
}

.home-popup-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #555;
    font-size: 30px;
    line-height: 38px;
    cursor: pointer;
}

.home-popup-close:hover {
    background: #f1f1f1;
}

.home-popup-title {
    margin: 0 42px 14px 0;
    font-size: 26px;
    line-height: 1.3;
    color: #1f2937;
}

.home-popup-message {
    color: #4b5563;
    font-size: 16px;
    line-height: 1.7;
    white-space: pre-line;
}

.home-popup-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.home-popup-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 9px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.home-popup-button:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}

.home-popup-button.primary {
    background: #0d6efd;
    color: #fff;
}

.home-popup-button.secondary {
    background: #6c757d;
    color: #fff;
}


.home-popup-button.success {
    background: #198754;
    color: #fff;
}

.home-popup-button.warning {
    background: #ffc107;
    color: #111;
}

.home-popup-button.danger {
    background: #dc3545;
    color: #fff;
}

.home-popup-button.dark {
    background: #212529;
    color: #fff;
}

.home-popup-button.light {
    background: #e9ecef;
    color: #212529;
}

@keyframes homePopupIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 600px) {
    .home-popup-overlay {
        padding: 12px;
    }

    .home-popup {
        max-height: calc(100vh - 24px);
        padding: 30px 20px 22px;
        border-radius: 14px;
    }

    .home-popup-title {
        font-size: 22px;
    }

    .home-popup-message {
        font-size: 15px;
    }

    .home-popup-buttons {
        flex-direction: column;
    }

    .home-popup-button {
        width: 100%;
    }
}
