/* ======================= Payment Pages Styling ============================= */


/* Payment Form Styling */
body .payment-form {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    min-height: 100vh !important;
    padding: 80px 0 !important;
}

body .payment-card {
    border: none !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1) !important;
    overflow: hidden !important;
    background: white !important;
    transition: all 0.3s ease !important;
}

.payment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15);
}

body .payment-card .card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border: none !important;
    padding: 2rem !important;
    position: relative !important;
    overflow: hidden !important;
}

.payment-card .card-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -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;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.payment-logo {
    position: relative;
    z-index: 2;
}

.logo-circle {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.payment-card .card-body {
    padding: 2.5rem;
}

/* Loading Animation */
.loading-container {
    padding: 2rem 0;
}

.loading-spinner {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid transparent;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

.spinner-ring:nth-child(2) {
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    border-top-color: #764ba2;
    animation-delay: 0.5s;
}

.spinner-ring:nth-child(3) {
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
    border-top-color: #f093fb;
    animation-delay: 1s;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text h4 {
    color: #2d3748;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.loading-text p {
    color: #718096;
    font-size: 1.1rem;
}

/* Progress Bar */
.progress-container {
    margin: 2rem 0;
}

.progress {
    height: 12px;
    border-radius: 15px;
    background: linear-gradient(90deg, #e2e8f0 0%, #cbd5e0 100%);
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Security Features */
.security-features {
    margin: 2rem 0;
}

.feature-item {
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item i {
    margin-bottom: 1rem;
    display: block;
}

.feature-item p {
    font-weight: 500;
    color: #4a5568;
}

/* Buttons */
body .btn-main {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: none !important;
    border-radius: 15px !important;
    padding: 1rem 2rem !important;
    font-weight: 600 !important;
    color: white !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4) !important;
}

.btn-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
    color: white;
}

.btn-warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border: none;
    border-radius: 15px;
    padding: 1rem 2rem;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(240, 147, 251, 0.4);
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(240, 147, 251, 0.6);
    color: white;
}

/* Alerts */
.alert {
    border-radius: 15px;
    border: none;
    padding: 1.5rem;
    margin: 1rem 0;
}

.alert-info {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    color: #2d3748;
}

.alert-warning {
    background: linear-gradient(135deg, rgba(240, 147, 251, 0.1) 0%, rgba(245, 87, 108, 0.1) 100%);
    color: #2d3748;
}

/* Payment Status Pages */
body .payment-success,
body .payment-cancel,
body .payment-error,
body .payment-result-pending,
body .payment-result-failed,
body .payment-result-success,
body .payment-result-unknown {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    min-height: 100vh !important;
    padding: 80px 0 !important;
}

/* Success Page */
.success-animation {
    position: relative;
}

.success-circle {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(72, 187, 120, 0.4);
    animation: successPulse 2s ease-in-out infinite;
}

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

.success-title {
    color: #2d3748;
    font-weight: 700;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.success-subtitle {
    color: #718096;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Cancel Page */
.cancel-animation {
    position: relative;
}

.cancel-circle {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(237, 137, 54, 0.4);
    animation: cancelPulse 2s ease-in-out infinite;
}

@keyframes cancelPulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(5deg); }
}

.cancel-title {
    color: #2d3748;
    font-weight: 700;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cancel-subtitle {
    color: #718096;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Pending Page */
.pending-animation {
    position: relative;
}

.pending-circle {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(245, 158, 11, 0.4);
    animation: pendingPulse 2s ease-in-out infinite;
}

@keyframes pendingPulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(180deg); }
}

.pending-title {
    color: #2d3748;
    font-weight: 700;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.pending-subtitle {
    color: #718096;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Failed Page */
.failed-animation {
    position: relative;
}

.failed-circle {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(239, 68, 68, 0.4);
    animation: failedShake 2s ease-in-out infinite;
}

@keyframes failedShake {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    25% { transform: translateX(-5px) rotate(-2deg); }
    75% { transform: translateX(5px) rotate(2deg); }
}

.failed-title {
    color: #2d3748;
    font-weight: 700;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.failed-subtitle {
    color: #718096;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Unknown Page */
.unknown-animation {
    position: relative;
}

.unknown-circle {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(245, 158, 11, 0.4);
    animation: unknownPulse 2s ease-in-out infinite;
}

@keyframes unknownPulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(5deg); }
}

.unknown-title {
    color: #2d3748;
    font-weight: 700;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.unknown-subtitle {
    color: #718096;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Error Page */
.error-animation {
    position: relative;
}

.error-circle {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(245, 101, 101, 0.4);
    animation: errorShake 2s ease-in-out infinite;
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.error-title {
    color: #2d3748;
    font-weight: 700;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.error-subtitle {
    color: #718096;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Order Details Card */
.order-details-card,
.payment-details-card {
    margin-bottom: 3rem;
}

.order-details-card .card,
.payment-details-card .card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

body .bg-gradient-success {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%) !important;
}

body .bg-gradient-warning {
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%) !important;
}

body .bg-gradient-danger {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%) !important;
}

.card-header {
    padding: 1.5rem;
}

.card-header h4 {
    margin: 0;
    font-weight: 600;
}

.badge {
    border-radius: 25px;
    padding: 0.5rem 1rem;
    font-weight: 500;
}

/* Info Boxes */
body .info-box {
    display: flex !important;
    align-items: center !important;
    padding: 1.5rem !important;
    background: #f8f9fa !important;
    border-radius: 15px !important;
    margin-bottom: 1rem !important;
    transition: all 0.3s ease !important;
}

.info-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.info-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.bg-primary-light {
    background: rgba(102, 126, 234, 0.1);
}

.bg-success-light {
    background: rgba(72, 187, 120, 0.1);
}

.bg-info-light {
    background: rgba(66, 153, 225, 0.1);
}

.bg-warning-light {
    background: rgba(237, 137, 54, 0.1);
}

.bg-danger-light {
    background: rgba(245, 101, 101, 0.1);
}

.bg-secondary-light {
    background: rgba(113, 128, 150, 0.1);
}

.info-content {
    flex: 1;
}

.info-label {
    color: #4a5568;
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    color: #2d3748;
    font-weight: 700;
    margin: 0;
    font-size: 1.1rem;
}

/* Action Buttons */
.action-buttons {
    text-align: center;
    margin-top: 3rem;
}

.btn-outline-main {
    background: transparent;
    border: 2px solid #667eea;
    color: #667eea;
    border-radius: 15px;
    padding: 1rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 0 0.5rem;
}

.btn-outline-main:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.btn-outline-success {
    background: transparent;
    border: 2px solid #48bb78;
    color: #48bb78;
    border-radius: 15px;
    padding: 1rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 0 0.5rem;
}

.btn-outline-success:hover {
    background: #48bb78;
    color: white;
    transform: translateY(-2px);
}

.btn-info {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%) !important;
    border: none !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(66, 153, 225, 0.4) !important;
}

.btn-info:hover {
    background: linear-gradient(135deg, #3182ce 0%, #2c5aa0 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(66, 153, 225, 0.6) !important;
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%) !important;
    border: none !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.4) !important;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #5a6268 0%, #495057 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(108, 117, 125, 0.6) !important;
}

/* Step Numbers */
.step-number {
    font-size: 0.875rem;
    font-weight: 600;
}

/* Order Items */
body .order-items-section {
    margin-top: 2rem !important;
}

body .section-title {
    color: #2d3748 !important;
    font-weight: 600 !important;
    border-bottom: 2px solid #e9ecef !important;
    padding-bottom: 0.5rem !important;
}

.order-items-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

body .order-item {
    display: flex !important;
    align-items: center !important;
    padding: 1rem !important;
    background: #f8f9fa !important;
    border-radius: 0.75rem !important;
    transition: all 0.3s ease !important;
}

body .order-item:hover {
    background: #e9ecef !important;
    transform: translateX(5px) !important;
}

.item-image {
    width: 60px;
    height: 60px;
    margin-right: 1rem;
    flex-shrink: 0;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.5rem;
}

.item-details {
    flex: 1;
}

.item-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

/* Order Summary */
.order-summary-sidebar {
    height: 100%;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.summary-item:last-child {
    border-bottom: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .payment-form,
    .payment-success,
    .payment-cancel,
    .payment-error,
    .payment-result-pending,
    .payment-result-failed,
    .payment-result-success,
    .payment-result-unknown {
        padding: 40px 0;
    }
    
    .payment-card .card-body {
        padding: 1.5rem;
    }
    
    .success-title,
    .cancel-title,
    .error-title,
    .pending-title,
    .failed-title,
    .unknown-title {
        font-size: 2rem;
    }
    
    .success-subtitle,
    .cancel-subtitle,
    .error-subtitle,
    .pending-subtitle,
    .failed-subtitle,
    .unknown-subtitle {
        font-size: 1rem;
    }
    
    .logo-circle {
        width: 60px;
        height: 60px;
    }
    
    .loading-spinner {
        width: 80px;
        height: 80px;
    }
    
    .action-buttons .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
}

/* Loading States */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.loading-overlay .spinner-border {
    width: 3rem;
    height: 3rem;
    color: #667eea;
}

/* Smooth Transitions */
* {
    transition: all 0.3s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

/* Additional utility classes for payment pages */
.bg-warning-light { background-color: rgba(255, 193, 7, 0.1) !important; }
.bg-info-light { background-color: rgba(13, 202, 240, 0.1) !important; }
.bg-primary-light { background-color: rgba(13, 110, 253, 0.1) !important; }

.text-warning { color: #ffc107 !important; }
.text-info { color: #0dcaf0 !important; }
.text-primary { color: #0d6efd !important; }

.bg-light { background-color: #f8f9fa !important; }
.shadow-sm { box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important; }
.shadow-lg { box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important; }
.h-100 { height: 100% !important; }
.text-center { text-align: center !important; }
.text-md-end { text-align: right !important; }
.text-muted { color: #6c757d !important; }
.border-0 { border: 0 !important; }
.rounded-circle { border-radius: 50% !important; }
.d-inline-flex { display: inline-flex !important; }
.align-items-center { align-items: center !important; }
.justify-content-center { justify-content: center !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.me-2 { margin-right: 0.5rem !important; }
.me-3 { margin-right: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.py-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.py-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
.fs-6 { font-size: 1rem !important; }
.px-3 { padding-left: 1rem !important; padding-right: 1rem !important; }
.py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
