

.payment-popup {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: 20px;
    padding: 0;
    max-width: 320px;
    width: 85%;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transform: scale(0.8) translateY(50px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.payment-popup-overlay.active .payment-popup {
    transform: scale(1) translateY(0);
}

.popup-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 16px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.popup-header::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); }
}

.popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s ease;
    z-index: 2;
}

.popup-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.popup-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 20px;
    color: white;
    position: relative;
    z-index: 2;
    animation: pulse-icon 2s ease-in-out infinite;
}

@keyframes pulse-icon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.popup-title {
    color: white;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 6px;
    position: relative;
    z-index: 2;
}

.popup-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    margin: 0;
    position: relative;
    z-index: 2;
}

.popup-body {
    padding: 20px 16px 16px;
}

.customer-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-radius: 12px;
    margin-bottom: 16px;
    border: 1px solid rgba(99, 102, 241, 0.1);
    position: relative;
    overflow: hidden;
}

.customer-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.customer-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
    box-shadow: 0 3px 8px rgba(102, 126, 234, 0.3);
}

.customer-details h4 {
    margin: 0 0 3px;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

.customer-location {
    margin: 0;
    font-size: 11px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 3px;
}

.service-details {
    background: #f8fafc;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 16px;
    border: 1px solid #e2e8f0;
}

.service-name {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.service-name i {
    color: #667eea;
}

.service-price {
    font-size: 18px;
    font-weight: 800;
    color: #059669;
    margin: 0;
    display: flex;
    align-items: baseline;
    gap: 3px;
}

.currency {
    font-size: 14px;
    font-weight: 600;
}

.payment-method {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: white;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    margin-bottom: 16px;
    transition: all 0.2s ease;
}

.payment-method:hover {
    border-color: #667eea;
    box-shadow: 0 3px 8px rgba(102, 126, 234, 0.1);
}

.payment-logo {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: contain;
    background: #f8fafc;
    padding: 3px;
}

.payment-info h5 {
    margin: 0 0 2px;
    font-size: 12px;
    font-weight: 600;
    color: #1e293b;
}

.payment-info p {
    margin: 0;
    font-size: 10px;
    color: #64748b;
}

.payment-status {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    border-radius: 10px;
    border: 1px solid #86efac;
    margin-bottom: 16px;
}

.status-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #059669;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 10px;
    animation: success-pulse 1.5s ease-in-out infinite;
}

@keyframes success-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 6px rgba(5, 150, 105, 0); }
}

.status-text {
    font-size: 12px;
    font-weight: 600;
    color: #059669;
    margin: 0;
}

.popup-actions {
    display: flex;
    gap: 8px;
    margin-top: 6px;
}

.popup-btn {
    flex: 1;
    padding: 10px 14px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.popup-btn.primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 3px 8px rgba(102, 126, 234, 0.3);
}

.popup-btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.popup-btn.secondary {
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.popup-btn.secondary:hover {
    background: #e2e8f0;
    color: #475569;
}

.popup-timer {
    text-align: center;
    margin-top: 12px;
    padding: 8px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.timer-text {
    font-size: 10px;
    color: #dc2626;
    margin: 0 0 3px;
    font-weight: 500;
}

.timer-countdown {
    font-size: 12px;
    font-weight: 700;
    color: #dc2626;
    margin: 0;
    font-family: 'Courier New', monospace;
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    .payment-popup {
        max-width: 300px;
        width: 90%;
        margin: 10px;
    }
    
    .popup-header {
        padding: 12px;
    }
    
    .popup-title {
        font-size: 14px;
    }
    
    .popup-subtitle {
        font-size: 11px;
    }
    
    .popup-body {
        padding: 16px 12px 12px;
    }
    
    .customer-info {
        padding: 10px;
        gap: 8px;
    }
    
    .customer-avatar {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    .customer-details h4 {
        font-size: 12px;
    }
    
    .customer-location {
        font-size: 10px;
    }
    
    .service-details {
        padding: 10px;
    }
    
    .service-name {
        font-size: 12px;
    }
    
    .service-price {
        font-size: 16px;
    }
    
    .currency {
        font-size: 12px;
    }
    
    .payment-method {
        padding: 8px;
        gap: 8px;
    }
    
    .payment-logo {
        width: 28px;
        height: 28px;
    }
    
    .payment-info h5 {
        font-size: 11px;
    }
    
    .payment-info p {
        font-size: 9px;
    }
    
    .popup-actions {
        flex-direction: column;
        gap: 6px;
    }
    
    .popup-btn {
        padding: 8px 12px;
        font-size: 11px;
    }
    
    .popup-timer {
        margin-top: 8px;
        padding: 6px;
    }
    
    .timer-text {
        font-size: 9px;
    }
    
    .timer-countdown {
        font-size: 11px;
    }
}

/* Animation for popup entrance */
@keyframes slideInUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.payment-popup-overlay.active .payment-popup {
    animation: slideInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Success animation */
.success-checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: block;
    stroke-width: 2;
    stroke: #059669;
    stroke-miterlimit: 10;
    margin: 10px auto;
    box-shadow: inset 0px 0px 0px #059669;
    animation: fill 0.4s ease-in-out 0.4s forwards, scale 0.3s ease-in-out 0.9s both;
}

.success-checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: #059669;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.success-checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes scale {
    0%, 100% {
        transform: none;
    }
    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

@keyframes fill {
    100% {
        box-shadow: inset 0px 0px 0px 30px #059669;
    }
}

