.uip-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.uip-overlay.uip-active {
    opacity: 1;
    visibility: visible;
}

.uip-overlay.uip-active ~ * {
    pointer-events: none;
}

.uip-modal {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 400px;
    width: 90%;
    margin: 20px;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.uip-overlay.uip-active .uip-modal {
    transform: scale(1);
}

.uip-content {
    padding: 32px;
    text-align: center;
}

.uip-title {
    font-size: 2rem !important;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.uip-subtitle {
    font-size: 1.4rem !important;
    color: #666666;
    margin: 0 0 24px 0;
    line-height: 1.5;
}

.uip-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.uip-button {
    display: block;
    width: 100%;
    padding: 14px 20px;
    font-size: 1rem;
    font-weight: 500;
    color: #1a1a1a;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.uip-button:hover {
    background: #f5f5f5;
    border-color: #d4d4d4;
    transform: translateY(-1px);
}

.uip-button:active {
    transform: translateY(0);
}

.uip-button:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Prevent body scroll when popup is open */
body.uip-modal-open {
    overflow: hidden;
}

/* Mobile responsiveness */
@media (max-width: 480px) {
    .uip-content {
        padding: 24px;
    }
    
    .uip-title {
        font-size: 1.7rem !important;
    }
    
    .uip-subtitle {
        font-size: 1.2rem !important;
    }
    
    .uip-button {
        padding: 12px 16px;
        font-size: 0.9375rem;
    }
}
