:root {
    --primary: #10b981; /* Payment Green */
    --primary-hover: #059669;
    --bg-light: #f3f4f6; /* Slight Gray Background */
    --card-bg: #ffffff;  /* Whitish Card */
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --accent: #10b981;
    --error: #ef4444;
    --card-border: #e5e7eb;
}

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

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    overflow-x: hidden;
}

/* Dynamic Background */
.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    filter: blur(80px);
    animation: move 20s infinite alternate cubic-bezier(0.45, 0, 0.55, 1);
}

.blob-1 { top: -100px; left: -100px; }
.blob-2 { bottom: -100px; right: -100px; background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, rgba(0, 0, 0, 0) 70%); }

@keyframes move {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(50px, 100px) scale(1.1); }
}

/* Container & Card */
.gateway-container {
    width: 100%;
    max-width: 420px;
    animation: fadeIn 0.8s ease-out;
}

.gateway-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 10px 25px -4px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Header */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 12px;
}

h1 {
    font-size: 1.25rem;
    font-weight: 600;
}

.status-badge {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.pulse {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Payment Details */
.payment-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.value {
    font-weight: 500;
}

.highlight {
    color: var(--primary);
    font-family: monospace;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.divider {
    border: none;
    border-top: 1px solid var(--card-border);
    margin: 4px 0;
}

.amount-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
}

.amount-value {
    font-size: 2rem;
    font-weight: 700;
}

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

/* Payment Methods */
.payment-methods {
    text-align: center;
}

.method-title {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.upi-icons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.upi-logo {
    height: 40px;
    opacity: 1;
}

.app-badges {
    display: flex;
    gap: 8px;
}

.badge {
    font-size: 0.7rem;
    padding: 2px 8px;
    background: #f9fafb;
    border: 1px solid var(--card-border);
    border-radius: 4px;
    color: var(--text-muted);
}

/* Buttons */
.pay-btn {
    width: 100%;
    padding: 16px;
    border-radius: 16px;
    border: none;
    background: var(--primary);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.2);
}

.pay-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.3);
    background: var(--primary-hover);
}

.pay-btn:active:not(:disabled) {
    transform: translateY(0);
}

.pay-btn:disabled {
    background: #475569;
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.7;
}

.chevron-icon {
    width: 20px;
    height: 20px;
}

.helper-text {
    margin-top: 12px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Footer */
.card-footer {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--card-border);
}

.security-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.lock-icon {
    width: 14px;
    height: 14px;
}

/* Utilities */
.hidden {
    display: none;
}

.error-toast {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--error);
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 500;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
    z-index: 100;
}

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

/* Mobile Adjustments */
@media (max-width: 480px) {
    .gateway-card {
        padding: 24px;
    }
    
    .amount-value {
        font-size: 1.75rem;
    }
}
