/* ============================================
   LynFinanzas - Design System
   Premium Vibrant Light Theme
   ============================================ */

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

/* ============================================
   CSS Custom Properties
   ============================================ */
:root {
    /* Core Palette - Vibrant Indigo & Violet */
    --bg-primary: #fafbff;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f0f2f9;
    --bg-card: #ffffff;
    --bg-card-hover: #f8f9fe;
    --bg-input: #f5f6fb;
    --bg-input-focus: #ffffff;
    
    /* Vibrant Accent Colors */
    --accent-primary: #6c5ce7;
    --accent-secondary: #00cec9;
    --accent-tertiary: #fd79a8;
    --accent-gradient: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 50%, #00cec9 100%);
    --accent-gradient-hover: linear-gradient(135deg, #00cec9, #6c5ce7);
    --accent-gradient-warm: linear-gradient(135deg, #fd79a8, #e17055, #fdcb6e);
    --accent-gradient-hero: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 30%, #74b9ff 60%, #00cec9 100%);
    --accent-glow: 0 4px 20px rgba(108, 92, 231, 0.25);
    --accent-glow-strong: 0 8px 32px rgba(108, 92, 231, 0.35);
    
    /* Semantic Colors */
    --danger: #ff6b6b;
    --danger-bg: #fff5f5;
    --warning: #feca57;
    --warning-bg: #fffdf0;
    --success: #00b894;
    --success-bg: #f0faf7;
    --info: #0984e3;
    --info-bg: #f0f7ff;

    /* Text */
    --text-primary: #2d3436;
    --text-secondary: #636e72;
    --text-muted: #b2bec3;
    --text-accent: #6c5ce7;
    --text-on-gradient: #ffffff;
    
    /* Borders */
    --border-color: #e8ecf4;
    --border-hover: #d1d8e8;
    --border-accent: rgba(108, 92, 231, 0.3);

    /* Typography */
    --font-display: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 96px;
    
    /* Radius */
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;
    
    /* Shadows - Modern layered */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 2px 8px rgba(108,92,231,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.05), 0 4px 20px rgba(108,92,231,0.06);
    --shadow-lg: 0 8px 28px rgba(0,0,0,0.08), 0 8px 32px rgba(108,92,231,0.08);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.1), 0 12px 40px rgba(108,92,231,0.12);
    --shadow-glow: 0 4px 20px rgba(108, 92, 231, 0.2);
    --shadow-card: 0 2px 12px rgba(0,0,0,0.04), 0 0 0 1px rgba(108,92,231,0.03);
    
    /* Glass */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(108, 92, 231, 0.08);
    --glass-blur: blur(20px);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
    --transition-spring: 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================
   Reset & Base
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Decorative gradient mesh background */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    right: -30%;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    bottom: -30%;
    left: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 206, 201, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}
a:hover {
    color: var(--accent-secondary);
}

img {
    max-width: 100%;
    display: block;
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }

.text-gradient {
    background: var(--accent-gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-accent { color: var(--accent-primary); }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-center { text-align: center; }
.text-right { text-align: right; }

.money {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--accent-primary);
}

.money-lg {
    font-size: 2rem;
}

/* ============================================
   Layout
   ============================================ */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.container-sm { max-width: 480px; }
.container-md { max-width: 720px; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-xs { gap: var(--space-xs); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

.grid {
    display: grid;
    gap: var(--space-lg);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Glass Card - Premium elevated design
   ============================================ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-card);
    transition: all var(--transition-base);
}

.card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border-hover);
}

.card-glow:hover {
    box-shadow: var(--shadow-glow);
    border-color: var(--border-accent);
    transform: translateY(-4px);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border-color);
}

.card-title {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
}

/* ============================================
   Buttons - Vibrant with micro-animations
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 12px 28px;
    font-family: var(--font-body);
    font-size: 0.938rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    text-decoration: none;
    line-height: 1.4;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.btn:hover::before {
    opacity: 1;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: var(--accent-gradient);
    color: var(--text-on-gradient);
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.35);
}

.btn-primary:hover {
    box-shadow: 0 8px 30px rgba(108, 92, 231, 0.45);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1.5px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    box-shadow: var(--shadow-sm);
}

.btn-danger {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.btn-danger:hover {
    background: var(--danger);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    padding: 8px 16px;
}

.btn-ghost:hover {
    color: var(--accent-primary);
    background: rgba(108, 92, 231, 0.06);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.813rem;
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.063rem;
    border-radius: var(--radius-lg);
}

.btn-block {
    width: 100%;
}

.btn:disabled,
.btn.loading {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.btn.loading::after {
    content: '';
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* ============================================
   Forms - Clean and modern
   ============================================ */
.form-group {
    margin-bottom: var(--space-md);
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 0.938rem;
    background: var(--bg-input);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    outline: none;
    transition: all var(--transition-base);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--accent-primary);
    background: var(--bg-input-focus);
    box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.1);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Phone input */
.phone-input-wrapper {
    display: flex;
    align-items: stretch;
    gap: 0;
}

.phone-prefix {
    display: flex;
    align-items: center;
    padding: 0 16px;
    background: var(--bg-tertiary);
    border: 1.5px solid var(--border-color);
    border-right: none;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    font-weight: 600;
    color: var(--accent-primary);
    font-size: 0.938rem;
}

.phone-input-wrapper .form-input {
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* OTP Input */
.otp-container {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: var(--space-xl) 0;
}

.otp-input {
    width: 52px;
    height: 64px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-display);
    background: var(--bg-input);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--accent-primary);
    outline: none;
    transition: all var(--transition-base);
}

.otp-input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.1);
    transform: scale(1.05);
}

.otp-input.filled {
    border-color: var(--accent-primary);
    background: rgba(108, 92, 231, 0.06);
}

/* ============================================
   Stepper
   ============================================ */
.stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: var(--space-2xl);
    padding: 0 var(--space-md);
}

.step {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    font-family: var(--font-display);
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    color: var(--text-muted);
    transition: all var(--transition-base);
    flex-shrink: 0;
}

.step-label {
    font-size: 0.813rem;
    color: var(--text-muted);
    white-space: nowrap;
    transition: color var(--transition-base);
}

.step-line {
    width: 40px;
    height: 2px;
    background: var(--border-color);
    margin: 0 var(--space-sm);
    transition: background var(--transition-base);
    flex-shrink: 0;
}

.step.active .step-number {
    background: var(--accent-gradient);
    color: var(--text-on-gradient);
    border-color: transparent;
    box-shadow: var(--accent-glow);
}

.step.active .step-label {
    color: var(--accent-primary);
    font-weight: 600;
}

.step.completed .step-number {
    background: rgba(108, 92, 231, 0.1);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.step.completed .step-label {
    color: var(--text-secondary);
}

.step-line.completed {
    background: var(--accent-primary);
}

@media (max-width: 600px) {
    .step-label { display: none; }
    .step-line { width: 24px; }
}

/* ============================================
   Badges & Tags
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid rgba(0, 184, 148, 0.15);
}

.badge-warning {
    background: var(--warning-bg);
    color: #e17055;
    border: 1px solid rgba(254, 202, 87, 0.3);
}

.badge-danger {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid rgba(255, 107, 107, 0.15);
}

.badge-info {
    background: var(--info-bg);
    color: var(--info);
    border: 1px solid rgba(9, 132, 227, 0.15);
}

.badge-neutral {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

/* ============================================
   Level Badge - Gradient pill
   ============================================ */
.level-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 18px;
    border-radius: var(--radius-full);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.875rem;
    background: var(--accent-gradient);
    color: var(--text-on-gradient);
    box-shadow: var(--accent-glow);
}

.level-badge svg {
    width: 16px;
    height: 16px;
}

/* ============================================
   Progress Bar
   ============================================ */
.progress {
    width: 100%;
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: var(--radius-full);
    transition: width var(--transition-slow);
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2s infinite;
}

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

/* ============================================
   Alerts / Notifications
   ============================================ */
.alert {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    font-size: 0.875rem;
    line-height: 1.5;
    border: 1px solid;
}

.alert-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 2px;
}

.alert-success {
    background: var(--success-bg);
    border-color: rgba(0, 184, 148, 0.2);
    color: #00b894;
}

.alert-warning {
    background: var(--warning-bg);
    border-color: rgba(254, 202, 87, 0.4);
    color: #e17055;
}

.alert-danger {
    background: var(--danger-bg);
    border-color: rgba(255, 107, 107, 0.2);
    color: var(--danger);
}

.alert-info {
    background: var(--info-bg);
    border-color: rgba(9, 132, 227, 0.2);
    color: var(--info);
}

/* Toast notifications */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.toast {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 14px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 300px;
    max-width: 420px;
    animation: toastIn 0.3s ease-out;
}

.toast.toast-out {
    animation: toastOut 0.3s ease-in forwards;
}

.toast-success { border-left: 3px solid var(--success); }
.toast-error { border-left: 3px solid var(--danger); }
.toast-warning { border-left: 3px solid var(--warning); }
.toast-info { border-left: 3px solid var(--info); }

@keyframes toastIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes toastOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* ============================================
   Modal
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(45, 52, 54, 0.5);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5000;
    padding: var(--space-lg);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    padding: var(--space-xl);
    box-shadow: var(--shadow-xl);
    transform: scale(0.9) translateY(20px);
    transition: transform var(--transition-spring);
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
}

.modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    color: var(--danger);
    border-color: var(--danger);
    background: var(--danger-bg);
}

/* ============================================
   Navigation / Header - Frosted glass
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-md) 0;
    background: rgba(250, 251, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(108, 92, 231, 0.06);
    transition: all var(--transition-base);
}

.navbar.scrolled {
    padding: var(--space-sm) 0;
    background: rgba(250, 251, 255, 0.95);
    box-shadow: 0 2px 20px rgba(108, 92, 231, 0.06);
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
}

.navbar-brand .brand-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    color: white;
    box-shadow: var(--accent-glow);
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    list-style: none;
}

.navbar-nav a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.938rem;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.navbar-nav a:hover,
.navbar-nav a.active {
    color: var(--accent-primary);
    background: rgba(108, 92, 231, 0.06);
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
    font-size: 1.25rem;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    .navbar-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--border-color);
        flex-direction: column;
        padding: var(--space-lg);
        box-shadow: var(--shadow-lg);
    }
    .navbar-nav.open {
        display: flex;
    }
}

/* ============================================
   Sections
   ============================================ */
.section {
    padding: var(--space-4xl) 0;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    max-width: 600px;
    margin: var(--space-md) auto 0;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-on-gradient);
    background: var(--accent-gradient);
    padding: 5px 16px;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-md);
}

/* ============================================
   Hero Section - Stunning gradient hero
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-4xl) var(--space-lg);
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #f0edff 0%, #fafbff 40%, #edf8f7 100%);
}

.hero::before {
    content: '';
    position: absolute;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.12), rgba(0, 206, 201, 0.06), transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse-glow 6s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(253, 121, 168, 0.08), transparent 70%);
    bottom: 10%;
    right: 5%;
    animation: pulse-glow 8s ease-in-out infinite reverse;
}

@keyframes pulse-glow {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
    50% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.hero h1 {
    margin-bottom: var(--space-lg);
    letter-spacing: -0.5px;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-2xl);
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-2xl);
    margin-top: var(--space-2xl);
}

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    background: var(--accent-gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ============================================
   Feature Cards (How it works) - Colorful icons
   ============================================ */
.feature-card {
    text-align: center;
    padding: var(--space-xl);
}

.feature-icon {
    width: 68px;
    height: 68px;
    border-radius: var(--radius-lg);
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
    font-size: 1.75rem;
    color: white;
    box-shadow: var(--accent-glow);
}

.feature-number {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-primary);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: var(--space-sm);
}

.feature-card h3 {
    margin-bottom: var(--space-sm);
    font-size: 1.125rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.938rem;
}

/* Give each feature card icon a unique gradient */
.feature-card:nth-child(1) .feature-icon {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
}
.feature-card:nth-child(2) .feature-icon {
    background: linear-gradient(135deg, #fd79a8, #e17055);
}
.feature-card:nth-child(3) .feature-icon {
    background: linear-gradient(135deg, #00cec9, #55efc4);
}

/* ============================================
   Credit Level Cards
   ============================================ */
.level-card {
    position: relative;
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.level-card.current {
    border-color: var(--accent-primary);
    box-shadow: var(--accent-glow);
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.03), rgba(0, 206, 201, 0.02));
}

.level-card.locked {
    opacity: 0.45;
}

.level-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
}

.level-amount {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--accent-gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.level-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.level-detail {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--border-color);
}

.level-detail:last-child {
    border-bottom: none;
}

.level-detail-label {
    color: var(--text-secondary);
}

.level-detail-value {
    font-weight: 600;
    color: var(--text-primary);
}

/* ============================================
   Waiting Animation
   ============================================ */
.waiting-container {
    text-align: center;
    padding: var(--space-3xl) var(--space-lg);
}

.waiting-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto var(--space-xl);
    position: relative;
}

.waiting-icon::before {
    content: '⏳';
    font-size: 3rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: waiting-bounce 2s ease-in-out infinite;
}

.waiting-icon::after {
    content: '';
    position: absolute;
    inset: -10px;
    border: 2px dashed var(--accent-primary);
    border-radius: 50%;
    animation: waiting-rotate 10s linear infinite;
}

@keyframes waiting-bounce {
    0%, 100% { transform: translate(-50%, -50%); }
    50% { transform: translate(-50%, -60%); }
}

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

.waiting-position {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    background: var(--accent-gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: var(--space-sm);
}

/* ============================================
   Payment Section
   ============================================ */
.clabe-display {
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.04), rgba(0, 206, 201, 0.03));
    border: 2px dashed var(--border-accent);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    margin: var(--space-lg) 0;
}

.clabe-label {
    font-size: 0.813rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-sm);
}

.clabe-number {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    letter-spacing: 2px;
    word-break: break-all;
}

.clabe-copy {
    margin-top: var(--space-md);
}

/* ============================================
   Empty State
   ============================================ */
.empty-state {
    text-align: center;
    padding: var(--space-3xl) var(--space-lg);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: var(--space-lg);
    opacity: 0.5;
}

.empty-state h3 {
    margin-bottom: var(--space-sm);
    color: var(--text-secondary);
}

.empty-state p {
    color: var(--text-muted);
    max-width: 400px;
    margin: 0 auto var(--space-lg);
}

/* ============================================
   Loading
   ============================================ */
.loading-screen {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loader {
    width: 44px;
    height: 44px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loader-sm {
    width: 20px;
    height: 20px;
    border-width: 2px;
}

/* Skeleton loader */
.skeleton {
    background: linear-gradient(90deg, var(--bg-tertiary) 25%, #e8ecf4 50%, var(--bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================================
   Footer
   ============================================ */
.footer {
    padding: var(--space-2xl) 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    position: relative;
    z-index: 1;
    background: var(--bg-secondary);
}

/* ============================================
   Page Specific - App
   ============================================ */
.app-container {
    min-height: 100vh;
    padding-top: 80px;
}

.app-content {
    max-width: 600px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-lg);
}

.app-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.app-header h2 {
    margin-bottom: var(--space-sm);
}

.app-header p {
    color: var(--text-secondary);
}

/* Dashboard stats */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.stat-card {
    padding: var(--space-lg);
    text-align: center;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.04), rgba(0, 206, 201, 0.02));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.stat-value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Credit status card */
.credit-status-card {
    border-left: 3px solid var(--accent-primary);
}

.credit-status-card.overdue {
    border-left-color: var(--danger);
}

.credit-due-date {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-md);
    font-size: 0.875rem;
}

.credit-due-date.urgent {
    color: var(--danger);
}

/* ============================================
   Utilities
   ============================================ */
.hidden { display: none !important; }
.visible { display: block !important; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.w-full { width: 100%; }

.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-out;
}

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

.slide-up {
    animation: slideUp 0.6s ease-out both;
}

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

/* Mobile warning */
.mobile-required {
    display: none;
}

@media (min-width: 769px) {
    .mobile-only-content {
        display: none;
    }
    .mobile-required {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: var(--space-3xl);
    }
    .mobile-required-icon {
        font-size: 4rem;
        margin-bottom: var(--space-lg);
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 480px) {
    :root {
        --space-xl: 24px;
        --space-2xl: 36px;
        --space-3xl: 48px;
        --space-4xl: 64px;
    }
    
    .card {
        padding: var(--space-lg);
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--space-lg);
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
}
