/* Backdrop */
.cs-popup-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cs-popup-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* Modal */
.cs-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    background: #0a0a0a;
    border: 1px solid #333;
    border-radius: 16px;
    max-width: 520px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.cs-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
    animation: csSlideInUp 0.4s ease;
}

@keyframes csSlideInUp {
    from {
        opacity: 0;
        transform: translate(-50%, -40%) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Modal Header */
.cs-modal-header {
    padding: 24px 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.cs-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.cs-modal-subtitle {
    font-size: 14px;
    color: #888;
    margin-top: 8px;
}

.cs-modal-close {
    background: #1a1a1a;
    border: 1px solid #333;
    color: #888;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.cs-modal-close:hover {
    background: #2EC4B6;
    color: #0a0a0a;
}

/* Modal Body */
.cs-modal-body {
    padding: 24px;
}

/* Form elements */
.cs-popup-input {
    width: 100%;
    padding: 14px 16px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    margin-bottom: 12px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.cs-popup-input:focus {
    outline: none;
    border-color: #2EC4B6;
}

.cs-popup-btn {
    width: 100%;
    padding: 14px;
    background: #2EC4B6;
    color: #0a0a0a;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.cs-popup-btn:hover {
    background: #25b0a3;
}

/* Chips for options */
.cs-popup-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
}

.cs-popup-chip {
    padding: 8px 16px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 20px;
    color: #ccc;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.cs-popup-chip:hover {
    border-color: #2EC4B6;
    color: #2EC4B6;
}

.cs-popup-chip.selected {
    background: #2EC4B6;
    border-color: #2EC4B6;
    color: #0a0a0a;
}

/* Gift icon */
.cs-popup-gift {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #2EC4B6 0%, #1a8f84 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.cs-popup-gift svg {
    width: 32px;
    height: 32px;
    color: #0a0a0a;
}

/* WhatsApp Banner */
.cs-whatsapp-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #0a0a0a;
    border-top: 1px solid #333;
    padding: 16px 20px;
    z-index: 9997;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cs-whatsapp-banner.active {
    transform: translateY(0);
}

.cs-whatsapp-icon {
    width: 48px;
    height: 48px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cs-whatsapp-icon svg {
    width: 28px;
    height: 28px;
    color: #fff;
}

.cs-whatsapp-content {
    flex: 1;
    max-width: 400px;
}

.cs-whatsapp-text {
    font-size: 14px;
    color: #fff;
    font-weight: 600;
}

.cs-whatsapp-subtext {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}

.cs-whatsapp-btn {
    padding: 10px 20px;
    background: #25D366;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
}

.cs-whatsapp-btn:hover {
    background: #1ea855;
}

.cs-whatsapp-close {
    font-size: 12px;
    color: #888;
    text-decoration: underline;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px 8px;
}

.cs-whatsapp-close:hover {
    color: #ccc;
}

/* Responsive */
@media (max-width: 640px) {
    .cs-modal {
        width: 95%;
        max-height: 85vh;
    }
    
    .cs-modal-title {
        font-size: 18px;
    }
    
    .cs-whatsapp-banner {
        flex-direction: column;
        padding: 12px 16px;
        text-align: center;
    }
    
    .cs-whatsapp-content {
        max-width: 100%;
    }
    
    .cs-popup-chips {
        justify-content: center;
    }
}
