@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --bg-main: #0a0e1a;
    --bg-card: rgba(16, 22, 40, 0.85);
    --bg-card-border: rgba(99, 102, 241, 0.12);
    --bg-input: rgba(30, 38, 65, 0.6);
    --bg-input-focus: rgba(40, 50, 80, 0.8);
    --border-color: rgba(99, 102, 241, 0.15);
    --border-focus: rgba(99, 102, 241, 0.5);
    --text-primary: #f1f5f9;
    --text-secondary: #8b95b0;
    --text-label: #a1adc4;
    --accent: #6366f1;
    --accent-light: #818cf8;
    --accent-glow: rgba(99, 102, 241, 0.25);
    --success: #10b981;
    --success-glow: rgba(16, 185, 129, 0.25);
    --danger: #ef4444;
    --warning: #f59e0b;
    --warning-bg: rgba(245, 158, 11, 0.08);
    --warning-border: rgba(245, 158, 11, 0.2);
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a78bfa 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    --gradient-bg: radial-gradient(ellipse at top, #1a1f3a 0%, #0a0e1a 60%);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(99, 102, 241, 0.08);
    --shadow-input: 0 2px 8px rgba(0, 0, 0, 0.15);
    --shadow-button: 0 4px 20px rgba(99, 102, 241, 0.35);
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 24px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-main);
    background-image: var(--gradient-bg);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Animated background particles */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.03) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

/* ─── LOADER ─────────────────────────── */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-main);
    background-image: var(--gradient-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-content {
    text-align: center;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(99, 102, 241, 0.15);
    border-top: 3px solid var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 20px auto;
}

.loader-content p {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ─── CONTAINER ──────────────────────── */
.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 24px 16px 40px;
    position: relative;
    z-index: 1;
}

/* ─── HEADER / BRANDING ──────────────── */
.brand-header {
    text-align: center;
    margin-bottom: 20px;
    padding: 20px 0 8px;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.brand-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.brand-icon svg {
    width: 22px;
    height: 22px;
    color: white;
}

.brand-name {
    font-size: 22px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.brand-tagline {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ─── TIMER ──────────────────────────── */
.timer-container {
    margin-bottom: 16px;
    animation: slideDown 0.4s ease-out;
}

.timer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(139, 92, 246, 0.08) 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.timer-icon {
    color: var(--accent-light);
    flex-shrink: 0;
}

.timer-text {
    color: var(--accent-light);
    font-size: 16px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: 1px;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ─── AMOUNT DISPLAY ─────────────────── */
.amount-display {
    text-align: center;
    margin-bottom: 16px;
    padding: 24px 20px;
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-card);
    animation: fadeInUp 0.5s ease-out;
}

.amount-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    margin-bottom: 8px;
}

.amount-value {
    font-size: 36px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
    line-height: 1.2;
}

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

/* ─── CARDS ──────────────────────────── */
.card {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-card);
    margin-bottom: 16px;
    overflow: hidden;
    animation: fadeInUp 0.5s ease-out;
}

.card:nth-child(2) { animation-delay: 0.1s; }
.card:nth-child(3) { animation-delay: 0.2s; }

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

.card-header {
    padding: 18px 22px 0;
}

.card-header h2 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-header h2::before {
    content: '';
    width: 3px;
    height: 18px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* ─── BANK DETAILS ───────────────────── */
.bank-details {
    padding: 16px 22px 20px;
}

.detail-row {
    margin-bottom: 14px;
}

.detail-row:last-child {
    margin-bottom: 0;
}

.label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-label);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.value-box {
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.value-box .value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.value-with-copy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 12px 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.value-with-copy:hover {
    border-color: var(--border-focus);
    background: var(--bg-input-focus);
}

.value-with-copy .value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.value.monospace {
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.value.highlight {
    color: var(--accent-light);
}

.copy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    color: var(--accent-light);
}

.copy-btn:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.4);
    transform: scale(1.05);
}

.copy-btn:active {
    transform: scale(0.95);
}

.copy-btn.copied {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--success);
}

/* ─── ALERT BOX ──────────────────────── */
.alert-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    margin: 0 22px 18px;
    background: var(--warning-bg);
    border: 1px solid var(--warning-border);
    border-radius: var(--radius-sm);
}

.alert-box svg {
    color: var(--warning);
    flex-shrink: 0;
    margin-top: 1px;
}

.alert-box p {
    font-size: 12px;
    color: var(--warning);
    line-height: 1.5;
    font-weight: 500;
}

/* ─── FORM ───────────────────────────── */
.form-card {
    padding-bottom: 4px;
}

.form-card form {
    padding: 16px 22px 22px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-label);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    padding: 13px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: all 0.25s ease;
}

.form-group input:focus {
    border-color: var(--border-focus);
    background: var(--bg-input-focus);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group input::placeholder {
    color: rgba(139, 149, 176, 0.5);
    font-weight: 400;
}

.form-group input[readonly] {
    color: var(--accent-light);
    font-weight: 700;
    font-size: 16px;
    cursor: default;
}

.input-with-icon {
    position: relative;
}

/* ─── BONUS BADGE ────────────────────── */
.bonus-badge {
    padding: 10px 16px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(139, 92, 246, 0.08) 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-sm);
    color: var(--accent-light);
    font-size: 13px;
    font-weight: 600;
}

/* ─── SUBMIT BUTTON ──────────────────── */
.submit-btn {
    width: 100%;
    padding: 15px 24px;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-button);
    position: relative;
    overflow: hidden;
    letter-spacing: -0.2px;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.45);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.submit-btn.success {
    background: var(--gradient-success);
    box-shadow: 0 4px 20px var(--success-glow);
}

.btn-icon {
    transition: transform 0.3s ease;
}

.submit-btn:hover .btn-icon {
    transform: translateX(4px);
}

/* ─── FOOTER ─────────────────────────── */
.payment-footer {
    text-align: center;
    padding: 20px 0 10px;
}

.payment-footer p {
    font-size: 11px;
    color: rgba(139, 149, 176, 0.4);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.payment-footer p::before {
    content: '🔒';
    font-size: 10px;
}

/* ─── RESPONSIVE ─────────────────────── */
@media (max-width: 520px) {
    .container {
        padding: 16px 12px 32px;
    }
    
    .card {
        border-radius: var(--radius-md);
    }
    
    .amount-value {
        font-size: 30px;
    }
    
    .brand-name {
        font-size: 20px;
    }
}

@media (min-width: 768px) {
    .container {
        padding: 40px 20px 60px;
    }
    
    .amount-value {
        font-size: 42px;
    }
}
