/* Design System Variables */
:root {
    --bg-dark: #0d1117;
    --bg-card: rgba(22, 27, 34, 0.7);
    --border-color: rgba(240, 246, 252, 0.1);
    
    /* Branding: Engnz colors (Engnz matches with gold, dark grey, white) */
    --accent-gold: #c5a059;
    --accent-gold-hover: #b08d4b;
    --accent-blue: #58a6ff;
    --text-primary: #f0f6fc;
    --text-muted: #8b949e;
    --success-green: #3fb950;
    --danger-red: #f85149;
    
    --shadow-premium: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

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

body {
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-dark);
    background-image: radial-gradient(circle at 10% 20%, rgba(90, 68, 28, 0.15) 0%, rgba(0, 0, 0, 0) 90%);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    line-height: 1.5;
}

/* Main Container Layout */
main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
}

/* Glassmorphic Container */
.checkout-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 480px;
    box-shadow: var(--shadow-premium);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.checkout-card:hover {
    box-shadow: 0 12px 40px 0 rgba(197, 160, 89, 0.15);
}

/* Header & Typography */
.brand-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.brand-logo svg {
    height: 48px;
    fill: var(--accent-gold);
}

.title {
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 0.95rem;
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Order Details Block */
.order-summary {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(240, 246, 252, 0.05);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.summary-row:last-child {
    margin-bottom: 0;
    padding-top: 1rem;
    border-top: 1px solid rgba(240, 246, 252, 0.1);
}

.summary-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.summary-value {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
}

.amount-large {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--accent-gold);
}

.currency-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-right: 4px;
}

/* Buttons and Interactions */
.btn {
    display: block;
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--accent-gold);
    color: #000;
}

.btn-primary:hover {
    background-color: var(--accent-gold-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-muted);
    border: 1px solid rgba(240, 246, 252, 0.15);
    margin-top: 1rem;
}

.btn-secondary:hover {
    color: var(--text-primary);
    background-color: rgba(240, 246, 252, 0.05);
}

/* Footer branding */
footer {
    padding: 1.5rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
}

/* Loading animation for Checkout Redirect */
.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(240, 246, 252, 0.1);
    border-top: 4px solid var(--accent-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 2rem;
}

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

/* Status Receipts */
.receipt-header {
    text-align: center;
    margin-bottom: 2rem;
}

.icon-wrapper {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.icon-success {
    background-color: rgba(63, 185, 80, 0.15);
    color: var(--success-green);
    border: 2px solid var(--success-green);
}

.icon-failure {
    background-color: rgba(248, 81, 73, 0.15);
    color: var(--danger-red);
    border: 2px solid var(--danger-red);
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .checkout-card {
        padding: 1.5rem 1.25rem;
        border-radius: 12px;
    }
}
