/* Popup Overlay */
.kbs-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    animation: kbsFadeIn 0.3s ease-in-out;
}

.kbs-popup-overlay.kbs-show {
    display: flex;
}

/* Popup Container */
.kbs-popup {
    background: linear-gradient(135deg, #ff834a 0%, #ff6b35 100%);
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    padding: 40px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: kbsSlideUp 0.4s ease-out;
}

/* Close Button */
.kbs-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.kbs-popup-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Popup Content */
.kbs-popup-content {
    text-align: center;
    color: white;
}

.kbs-popup-emoji {
    font-size: 60px;
    margin-bottom: 20px;
    animation: kbsBounce 1s infinite;
}

.kbs-popup h2 {
    margin: 0 0 15px 0;
    font-size: 28px;
    font-weight: 700;
    color: white;
}

.kbs-popup p {
    margin: 0 0 25px 0;
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.95;
}

/* Form */
.kbs-popup-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.kbs-popup-input {
    padding: 15px 20px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.kbs-popup-input:focus {
    outline: 3px solid rgba(255, 255, 255, 0.3);
}

.kbs-popup-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.kbs-popup-btn-primary {
    background: white;
    color: #ff834a;
}

.kbs-popup-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.kbs-popup-btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.kbs-popup-btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.kbs-popup-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Message */
.kbs-popup-message {
    display: none;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
}

.kbs-popup-message.kbs-success {
    background: rgba(46, 204, 113, 0.2);
    border: 1px solid rgba(46, 204, 113, 0.5);
}

.kbs-popup-message.kbs-error {
    background: rgba(231, 76, 60, 0.2);
    border: 1px solid rgba(231, 76, 60, 0.5);
}

/* Animations */
@keyframes kbsFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes kbsSlideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes kbsBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .kbs-popup {
        padding: 30px 20px;
        width: 95%;
    }
    
    .kbs-popup h2 {
        font-size: 24px;
    }
    
    .kbs-popup p {
        font-size: 14px;
    }
}