/* Popup Overlay */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 62, 80, 0.85);
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.popup-overlay.active {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Popup Container */
.popup-container {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 550px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
}

/* Popup Header */
.popup-header {
    padding: 30px 30px 20px;
    border-bottom: 2px solid #f0f0f0;
    position: relative;
}

.popup-title {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f8f9fa;
    border: none;
    font-size: 24px;
    color: #6c757d;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
    line-height: 1;
}

.popup-close:hover {
    background: #ff4444;
    color: white;
    transform: rotate(90deg);
}

/* Popup Body */
.popup-body {
    padding: 30px;
}

.popup-body h3 {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.4;
}

.popup-body p {
    color: #6c757d;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 15px;
}

.popup-body ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.popup-body ul li {
    padding: 12px 0;
    color: #495057;
    font-size: 15px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.popup-body ul li:last-child {
    border-bottom: none;
}

/* Highlight Box */
.popup-highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    margin: 20px 0;
}

.popup-highlight h4 {
    font-size: 18px;
    margin-bottom: 8px;
}

.popup-highlight p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-size: 14px;
}

/* Popup Footer */
.popup-footer {
    padding: 20px 30px 30px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.popup-btn {
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    min-width: 120px;
}

.popup-btn-primary {
    background: linear-gradient(135deg, #4285f4 0%, #1a73e8 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
}

.popup-btn-primary:hover {
    background: linear-gradient(135deg, #1a73e8 0%, #1557b0 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(66, 133, 244, 0.4);
}

.popup-btn-primary:active {
    transform: translateY(0);
}

.popup-btn-secondary {
    background: #f8f9fa;
    color: #495057;
    border: 2px solid #e9ecef;
}

.popup-btn-secondary:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

/* Special Popup Styles */
.popup-welcome {
    text-align: center;
}

.popup-welcome-icon {
    font-size: 72px;
    margin-bottom: 20px;
    animation: bounce 1s infinite;
}

.popup-welcome-text {
    font-size: 16px;
    color: #6c757d;
    line-height: 1.8;
    margin-bottom: 25px;
}

/* Promo Code Box */
.popup-promo-code {
    background: linear-gradient(135deg, #fff3cd 0%, #ffe8a1 100%);
    border: 2px dashed #ffc107;
    padding: 20px;
    border-radius: 12px;
    margin: 25px 0;
    text-align: center;
}

.popup-promo-label {
    font-size: 13px;
    color: #856404;
    margin-bottom: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.popup-promo-code-text {
    font-size: 28px;
    font-weight: bold;
    color: #856404;
    margin: 0;
    letter-spacing: 2px;
    font-family: 'Courier New', monospace;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Loading Animation */
@keyframes spin {
    0% { 
        transform: rotate(0deg); 
    }
    100% { 
        transform: rotate(360deg); 
    }
}

/* Scrollbar */
.popup-container::-webkit-scrollbar {
    width: 8px;
}

.popup-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.popup-container::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 10px;
}

.popup-container::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

/* Info Icons */
.popup-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 14px;
    flex-shrink: 0;
}

.popup-icon-success {
    background: #d4edda;
    color: #155724;
}

.popup-icon-info {
    background: #d1ecf1;
    color: #0c5460;
}

.popup-icon-warning {
    background: #fff3cd;
    color: #856404;
}

/* Responsive */
@media (max-width: 768px) {
    .popup-container {
        width: 95%;
        max-width: none;
        border-radius: 12px;
    }
    
    .popup-header {
        padding: 20px 20px 15px;
    }
    
    .popup-title {
        font-size: 20px;
    }
    
    .popup-close {
        top: 15px;
        right: 15px;
        width: 32px;
        height: 32px;
        font-size: 20px;
    }
    
    .popup-body {
        padding: 20px;
    }
    
    .popup-body h3 {
        font-size: 18px;
    }
    
    .popup-footer {
        padding: 15px 20px 20px;
        flex-direction: column;
    }
    
    .popup-btn {
        width: 100%;
        padding: 12px 20px;
    }
    
    .popup-promo-code-text {
        font-size: 22px;
    }
}
/*
/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    .popup-container {
        background: #2c3e50;
    }
    
    .popup-title {
        color: white;
    }
    
    .popup-body h3 {
        color: white;
    }
    
    .popup-body p {
        color: #cbd5e0;
    }
    
    .popup-body ul li {
        color: #cbd5e0;
        border-bottom-color: #4a5568;
    }
}

/* Custom Checkbox/Radio for forms */
.popup-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
}

.popup-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.popup-checkbox label {
    cursor: pointer;
    font-size: 14px;
    color: #495057;
}