/* Pay Later Enhanced UI Styles */

/* Progress Indicator Styles */
.pay-later-progress {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.progress-step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    border: 2px solid #e5e7eb;
    background: white;
    color: #6b7280;
}

.progress-step.active .progress-step-circle {
    background: #10b981;
    color: white;
    border-color: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.progress-step.completed .progress-step-circle {
    background: #10b981;
    color: white;
    border-color: #10b981;
}

.progress-step.completed .progress-step-circle::before {
    content: '✓';
    font-size: 16px;
    font-weight: bold;
}

.progress-step-label {
    font-size: 12px;
    color: #6b7280;
    text-align: center;
    font-weight: 500;
    max-width: 80px;
}

.progress-step.active .progress-step-label {
    color: #10b981;
    font-weight: 600;
}

.progress-connector {
    position: absolute;
    top: 20px;
    left: 50%;
    right: 50%;
    height: 2px;
    background: #e5e7eb;
    z-index: 1;
    transition: all 0.3s ease;
}

.progress-connector.completed {
    background: #10b981;
}

/* Enhanced Modal Styles */
.pay-later-modal-enhanced {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    position: relative;
}

.pay-later-modal-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #10b981, #3b82f6, #8b5cf6);
}

.modal-header-enhanced {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.modal-content-enhanced {
    background: white;
    padding: 2rem;
    min-height: 400px;
}

/* Enhanced Form Styles */
.form-group-enhanced {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-label-enhanced {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
}

.form-input-enhanced {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f9fafb;
    color: #111827;
}

.form-input-enhanced:focus {
    outline: none;
    border-color: #10b981;
    background: white;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
    transform: translateY(-1px);
}

.form-input-enhanced.error {
    border-color: #ef4444;
    background: #fef2f2;
}

.form-input-enhanced.success {
    border-color: #10b981;
    background: #f0fdf4;
}

/* Validation Icons */
.validation-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    opacity: 0;
    transition: all 0.3s ease;
}

.validation-icon.show {
    opacity: 1;
}

.validation-icon.success {
    color: #10b981;
}

.validation-icon.error {
    color: #ef4444;
}

/* Enhanced Button Styles */
.btn-primary-enhanced {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-primary-enhanced:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.btn-primary-enhanced:active {
    transform: translateY(0);
}

.btn-primary-enhanced:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary-enhanced {
    background: white;
    color: #6b7280;
    border: 2px solid #e5e7eb;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary-enhanced:hover {
    border-color: #10b981;
    color: #10b981;
    transform: translateY(-1px);
}

/* Loading States */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Enhanced Credit Display */
.credit-display-enhanced {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    color: white;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.credit-display-enhanced::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
}

.credit-amount-enhanced {
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.credit-label-enhanced {
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

/* Enhanced Topup Cards */
.topup-card-enhanced {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.topup-card-enhanced:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: #10b981;
}

.topup-card-enhanced.popular {
    border-color: #10b981;
    transform: scale(1.05);
}

.topup-card-enhanced.popular::before {
    content: 'MOST POPULAR';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: #10b981;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.topup-amount-enhanced {
    font-size: 2.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.topup-price-enhanced {
    font-size: 1.2rem;
    font-weight: 600;
    color: #10b981;
    margin-bottom: 1rem;
}

.topup-btn-enhanced {
    width: 100%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.topup-btn-enhanced:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

/* Notification Enhancements */
.notification-enhanced {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.1);
    text-align: center;
    max-width: 450px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.notification-enhanced.success {
    background: linear-gradient(45deg, rgba(5, 20, 44) 0%, rgba(76, 26, 114) 100%);
    background-size: 400% 400%;
    animation: gradientShift 35s ease-in-out infinite;
    border-left: 4px solid rgba(76, 26, 114, 0.8);
}

@keyframes gradientShift {
    0%, 100% {
        background: linear-gradient(45deg, rgba(5, 20, 44) 0%, rgba(76, 26, 114) 100%);
    }
    25% {
        background: linear-gradient(45deg, rgba(8, 25, 55) 0%, rgba(85, 30, 125) 100%);
    }
    50% {
        background: linear-gradient(45deg, rgba(12, 30, 65) 0%, rgba(95, 35, 140) 100%);
    }
    75% {
        background: linear-gradient(45deg, rgba(8, 25, 55) 0%, rgba(85, 30, 125) 100%);
    }
}

.notification-enhanced.error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 50%, #b91c1c 100%);
}

.notification-enhanced.warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #b45309 100%);
}

.notification-enhanced.info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%);
}

.notification-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.8));
    animation: shimmer 2s infinite;
}

.notification-enhanced::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

@keyframes float {
    0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
    33% { transform: translate(-30%, -60%) rotate(120deg); }
    66% { transform: translate(-70%, -40%) rotate(240deg); }
}

.notification-icon-enhanced {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: bounce 0.8s ease-in-out, glow 2s ease-in-out infinite alternate;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    position: relative;
    z-index: 2;
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% { transform: translate3d(0,0,0) scale(1); }
    40%, 43% { transform: translate3d(0, -20px, 0) scale(1.1); }
    70% { transform: translate3d(0, -10px, 0) scale(1.05); }
    90% { transform: translate3d(0, -4px, 0) scale(1.02); }
}

@keyframes glow {
    from { text-shadow: 0 0 10px rgba(255, 255, 255, 0.5); }
    to { text-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 0 30px rgba(255, 255, 255, 0.6); }
}

.notification-title-enhanced {
    font-size: 1.75rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.notification-message-enhanced {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
    font-weight: 500;
}

/* Fade-in Animation */
.fade-in {
    animation: fadeInScale 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .pay-later-progress {
        margin-bottom: 1.5rem;
    }
    
    .progress-step-circle {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .progress-step-label {
        font-size: 10px;
        max-width: 60px;
    }
    
    .modal-content-enhanced {
        padding: 1.5rem;
    }
    
    .credit-amount-enhanced {
        font-size: 2.5rem;
    }
    
    .topup-card-enhanced {
        padding: 1rem;
    }
    
    .topup-amount-enhanced {
        font-size: 2rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

.slide-up {
    animation: slideUp 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Success States */
.success-checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #10b981;
    position: relative;
    margin: 0 auto 1rem;
}

.success-checkmark::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 16px;
    height: 32px;
    border: 4px solid white;
    border-top: none;
    border-left: none;
    animation: checkmark 0.6s ease-in-out 0.3s both;
}

@keyframes checkmark {
    0% {
        width: 0;
        height: 0;
    }
    50% {
        width: 0;
        height: 32px;
    }
    100% {
        width: 16px;
        height: 32px;
    }
}

/* Enhanced Tooltips */
.tooltip-enhanced {
    position: relative;
    display: inline-block;
}

.tooltip-enhanced .tooltip-text {
    visibility: hidden;
    width: 200px;
    background: #111827;
    color: white;
    text-align: center;
    border-radius: 8px;
    padding: 8px 12px;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
    font-weight: 500;
}

.tooltip-enhanced .tooltip-text::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #111827 transparent transparent transparent;
}

.tooltip-enhanced:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}