:root {
    --primary-color: #0066cc;
    --primary-dark: #0052a3;
    --secondary-color: #00cc66;
    --error-color: #dc3545;
    --error-light: #f8d7da;
    --error-dark: #c82333;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --success-color: #00cc66;
    --info-color: #3498db;
    --warning-color: #ffc107;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-large: 0 10px 40px rgba(0,0,0,0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #b4b5bb 0%, #ffffff 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.payment-processing-container {
    width: 100%;
    max-width: 700px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.processing-card {
    background: var(--bg-white);
    border-radius: 20px;
    box-shadow: var(--shadow-large);
    padding: 3rem 2rem;
    text-align: center;
    animation: slideUp 0.6s ease-out;
}

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

.error-icon-wrapper {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.error-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--error-light);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: errorPulse 2s ease-in-out infinite;
}

.error-icon svg {
    color: var(--error-color);
}

@keyframes errorPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(220, 53, 69, 0);
    }
}

.processing-content h1 {
    font-size: 2rem;
    color: var(--error-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.error-message {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.error-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    text-align: left;
}

.error-box,
.action-box {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    border-left: 4px solid var(--error-color);
}

.action-box {
    border-left-color: var(--info-color);
    background: rgba(52, 152, 219, 0.05);
}

.error-box svg,
.action-box svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.error-box svg {
    color: var(--error-color);
}

.action-box svg {
    color: var(--info-color);
}

.error-box strong,
.action-box strong {
    display: block;
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.error-box p,
.action-box p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.error-reasons {
    list-style: none;
    margin-top: 1rem;
    padding-left: 0;
}

.error-reasons li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.error-reasons li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--error-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.payment-retry-button,
.payment-cancel-button {
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.payment-retry-button {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.payment-retry-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
}

.payment-retry-button:active {
    transform: translateY(0);
}

.payment-cancel-button {
    background: white;
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
}

.payment-cancel-button:hover {
    background: var(--bg-light);
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

.info-box {
    background: rgba(52, 152, 219, 0.1);
    border: 2px solid var(--info-color);
    border-radius: 10px;
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    text-align: left;
}

.info-box svg {
    flex-shrink: 0;
    color: var(--info-color);
    margin-top: 2px;
}

.info-box strong {
    display: block;
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.info-box p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.support-info {
    text-align: center;
    color: rgba(0, 0, 0, 0.95);
    font-size: 0.95rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.support-info a {
    color: blue;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.support-info a:hover {
    border-bottom-color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .processing-card {
        padding: 2rem 1.5rem;
    }
    
    .processing-content h1 {
        font-size: 1.5rem;
    }
    
    .error-message {
        font-size: 1rem;
    }
    
    .error-icon {
        width: 80px;
        height: 80px;
    }
    
    .error-icon svg {
        width: 60px;
        height: 60px;
    }
    
    .error-details {
        gap: 1rem;
    }
    
    .error-box,
    .action-box {
        padding: 1rem;
    }
    
    .error-box strong,
    .action-box strong {
        font-size: 1rem;
    }
    
    .button-group {
        gap: 0.75rem;
    }
    
    .payment-retry-button,
    .payment-cancel-button {
        padding: 12px 20px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .processing-card {
        padding: 1.5rem 1rem;
    }
    
    .processing-content h1 {
        font-size: 1.3rem;
    }
    
    .error-icon {
        width: 70px;
        height: 70px;
    }
    
    .error-icon svg {
        width: 50px;
        height: 50px;
    }
    
    .error-box,
    .action-box {
        flex-direction: column;
        text-align: center;
    }
    
    .error-box svg,
    .action-box svg {
        margin: 0 auto;
    }
    
    .error-reasons li {
        font-size: 0.85rem;
    }
    
    .support-info {
        font-size: 0.85rem;
    }
}