/* ============================================================
   LIFE FREE - Design System / Theme
   Fintech + AI Investment Platform

   Paleta extraida del logo oficial:
   - Phoenix/bird: gradiente teal oscuro → turquesa → aqua claro
   - Tipografia: navy profundo (#0A2540)
   - Tagline: teal medio
   - Nodos circuito: turquesa brillante con puntos aqua
   ============================================================ */

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

/* ============================================================
   1. CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================================ */
:root {
    /* --- Primary: Navy (del texto "LIFE FREE" en el logo) --- */
    --lf-primary:          #0A2540;    /* Navy profundo - texto principal */
    --lf-primary-light:    #0F3460;    /* Navy medio - fondos oscuros secundarios */
    --lf-primary-medium:   #163B64;    /* Navy claro - bordes, hover oscuro */

    /* --- Secondary: Deep Teal (del cuerpo del ave) --- */
    --lf-secondary:        #0C7B7F;    /* Teal profundo - botones sec, links */
    --lf-secondary-hover:  #0A6568;    /* Teal oscuro hover */
    --lf-secondary-light:  #0E9AA0;    /* Teal medio */

    /* --- Accent: Turquesa/Aqua (del ave y nodos de circuito) --- */
    --lf-accent:           #14B8A6;    /* Turquesa vibrante - CTAs, iconos */
    --lf-accent-hover:     #0D9488;    /* Turquesa hover */
    --lf-accent-light:     #2DD4BF;    /* Turquesa brillante - highlights */
    --lf-accent-soft:      #5EEAD4;    /* Aqua suave - badges, fondos claros */
    --lf-accent-glow:      rgba(20, 184, 166, 0.3);

    /* --- Success / Warning / Danger --- */
    --lf-success:          #10B981;
    --lf-success-light:    #D1FAE5;
    --lf-warning:          #F59E0B;
    --lf-warning-light:    #FEF3C7;
    --lf-danger:           #EF4444;
    --lf-danger-light:     #FEE2E2;

    /* --- Neutrals (con tono azulado para coherencia con navy) --- */
    --lf-white:            #FFFFFF;
    --lf-gray-50:          #F0F5FA;    /* Fondo general - toque azulado */
    --lf-gray-100:         #E8EDF4;
    --lf-gray-200:         #D5DDE8;
    --lf-gray-300:         #B8C4D3;
    --lf-gray-400:         #8D9DB2;
    --lf-gray-500:         #64748B;
    --lf-gray-600:         #475569;
    --lf-gray-700:         #334155;
    --lf-gray-800:         #1E293B;
    --lf-gray-900:         #0F172A;

    /* --- Gradients (fieles al degradado del ave fenix) --- */
    --lf-gradient-primary: linear-gradient(135deg, #0A2540 0%, #0C7B7F 50%, #14B8A6 100%);
    --lf-gradient-accent:  linear-gradient(135deg, #0C7B7F 0%, #14B8A6 50%, #2DD4BF 100%);
    --lf-gradient-brand:   linear-gradient(135deg, #0A2540 0%, #0C7B7F 100%);
    --lf-gradient-card:    linear-gradient(135deg, rgba(12, 123, 127, 0.04) 0%, rgba(20, 184, 166, 0.04) 100%);
    --lf-gradient-glow:    linear-gradient(135deg, rgba(12, 123, 127, 0.12) 0%, rgba(20, 184, 166, 0.12) 100%);
    --lf-gradient-dark:    linear-gradient(180deg, #0A2540 0%, #0F3460 100%);
    --lf-gradient-hero:    linear-gradient(135deg, #0A2540 0%, #0F3460 35%, #0C7B7F 70%, #0A2540 100%);
    --lf-gradient-mesh:    linear-gradient(135deg, #0A2540 0%, #0B3550 25%, #0C7B7F 50%, #0B3550 75%, #0A2540 100%);

    /* --- Typography --- */
    --lf-font-family:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --lf-font-size-xs:     0.75rem;    /* 12px */
    --lf-font-size-sm:     0.8125rem;  /* 13px */
    --lf-font-size-base:   0.875rem;   /* 14px */
    --lf-font-size-md:     1rem;       /* 16px */
    --lf-font-size-lg:     1.125rem;   /* 18px */
    --lf-font-size-xl:     1.25rem;    /* 20px */
    --lf-font-size-2xl:    1.5rem;     /* 24px */
    --lf-font-size-3xl:    1.875rem;   /* 30px */
    --lf-font-size-4xl:    2.25rem;    /* 36px */

    /* --- Spacing --- */
    --lf-space-xs:         0.25rem;
    --lf-space-sm:         0.5rem;
    --lf-space-md:         1rem;
    --lf-space-lg:         1.5rem;
    --lf-space-xl:         2rem;
    --lf-space-2xl:        3rem;
    --lf-space-3xl:        4rem;

    /* --- Borders --- */
    --lf-radius-sm:        0.375rem;   /* 6px */
    --lf-radius-md:        0.5rem;     /* 8px */
    --lf-radius-lg:        0.75rem;    /* 12px */
    --lf-radius-xl:        1rem;       /* 16px */
    --lf-radius-2xl:       1.5rem;     /* 24px */
    --lf-radius-full:      9999px;

    /* --- Shadows (con tinte teal) --- */
    --lf-shadow-sm:        0 1px 2px rgba(10, 37, 64, 0.05);
    --lf-shadow-md:        0 4px 6px -1px rgba(10, 37, 64, 0.07), 0 2px 4px -2px rgba(10, 37, 64, 0.04);
    --lf-shadow-lg:        0 10px 15px -3px rgba(10, 37, 64, 0.08), 0 4px 6px -4px rgba(10, 37, 64, 0.04);
    --lf-shadow-xl:        0 20px 25px -5px rgba(10, 37, 64, 0.1), 0 8px 10px -6px rgba(10, 37, 64, 0.04);
    --lf-shadow-glow:      0 0 20px rgba(20, 184, 166, 0.2), 0 0 40px rgba(12, 123, 127, 0.1);
    --lf-shadow-card:      0 1px 3px rgba(10, 37, 64, 0.06), 0 6px 16px rgba(10, 37, 64, 0.04);
    --lf-shadow-btn:       0 2px 8px rgba(20, 184, 166, 0.3);
    --lf-shadow-btn-hover: 0 4px 16px rgba(20, 184, 166, 0.4);

    /* --- Transitions --- */
    --lf-transition-fast:  150ms ease;
    --lf-transition:       250ms ease;
    --lf-transition-slow:  400ms ease;

    /* --- Z-Index Scale --- */
    --lf-z-dropdown:       1000;
    --lf-z-sticky:         1020;
    --lf-z-fixed:          1030;
    --lf-z-modal-backdrop: 1040;
    --lf-z-modal:          1050;
    --lf-z-tooltip:        1070;
}

/* ============================================================
   2. BASE RESETS & TYPOGRAPHY
   ============================================================ */
html, body {
    font-family: var(--lf-font-family);
    font-size: var(--lf-font-size-base);
    color: var(--lf-gray-800);
    background-color: var(--lf-gray-50);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--lf-gray-900);
    line-height: 1.3;
}

a {
    color: var(--lf-secondary);
    transition: color var(--lf-transition);
}

a:hover {
    color: var(--lf-accent);
}

/* ============================================================
   3. BUTTONS
   ============================================================ */

/* Primary CTA - Gradiente teal del ave */
.btn-lf-primary {
    background: var(--lf-gradient-accent);
    color: var(--lf-white);
    border: none;
    padding: 0.625rem 1.5rem;
    border-radius: var(--lf-radius-md);
    font-weight: 600;
    font-size: var(--lf-font-size-base);
    transition: all var(--lf-transition);
    box-shadow: var(--lf-shadow-btn);
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
}

.btn-lf-primary::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;
}

.btn-lf-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--lf-shadow-btn-hover);
    color: var(--lf-white);
    filter: brightness(1.08);
}

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

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

/* Secondary - Borde teal */
.btn-lf-secondary {
    background: transparent;
    color: var(--lf-secondary);
    border: 1.5px solid var(--lf-secondary);
    padding: 0.625rem 1.5rem;
    border-radius: var(--lf-radius-md);
    font-weight: 600;
    font-size: var(--lf-font-size-base);
    transition: all var(--lf-transition);
}

.btn-lf-secondary:hover {
    background: rgba(12, 123, 127, 0.08);
    color: var(--lf-secondary-hover);
    border-color: var(--lf-secondary-hover);
}

/* Accent - Turquesa solido */
.btn-lf-accent {
    background: var(--lf-accent);
    color: var(--lf-white);
    border: none;
    padding: 0.625rem 1.5rem;
    border-radius: var(--lf-radius-md);
    font-weight: 600;
    transition: all var(--lf-transition);
    box-shadow: var(--lf-shadow-btn);
}

.btn-lf-accent:hover {
    background: var(--lf-accent-hover);
    color: var(--lf-white);
    transform: translateY(-1px);
    box-shadow: var(--lf-shadow-btn-hover);
}

/* Danger - Red */
.btn-lf-danger {
    background: var(--lf-danger);
    color: var(--lf-white);
    border: none;
    padding: 0.625rem 1.5rem;
    border-radius: var(--lf-radius-md);
    font-weight: 600;
    transition: all var(--lf-transition);
    box-shadow: var(--lf-shadow-btn);
}

.btn-lf-danger:hover {
    background: #DC2626;
    color: var(--lf-white);
    transform: translateY(-1px);
    box-shadow: var(--lf-shadow-btn-hover);
}

/* Dark - Navy profundo */
.btn-lf-dark {
    background: var(--lf-primary);
    color: var(--lf-white);
    border: none;
    padding: 0.625rem 1.5rem;
    border-radius: var(--lf-radius-md);
    font-weight: 600;
    transition: all var(--lf-transition);
}

.btn-lf-dark:hover {
    background: var(--lf-primary-light);
    color: var(--lf-white);
    transform: translateY(-1px);
}

.btn-lf-lg {
    padding: 0.8rem 2rem;
    font-size: var(--lf-font-size-md);
    border-radius: var(--lf-radius-lg);
}

/* ============================================================
   4. CARDS
   ============================================================ */
.card-lf {
    background: var(--lf-white);
    border: 1px solid var(--lf-gray-200);
    border-radius: var(--lf-radius-xl);
    box-shadow: var(--lf-shadow-card);
    transition: all var(--lf-transition);
    overflow: hidden;
}

.card-lf:hover {
    box-shadow: var(--lf-shadow-lg);
}

.card-lf-glass {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--lf-radius-xl);
    box-shadow: var(--lf-shadow-lg);
}

.card-lf-dark {
    background: var(--lf-primary-light);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--lf-radius-xl);
    color: var(--lf-white);
}

/* Card con borde accent sutil */
.card-lf-accent {
    background: var(--lf-white);
    border: 1px solid rgba(20, 184, 166, 0.2);
    border-radius: var(--lf-radius-xl);
    box-shadow: var(--lf-shadow-card);
    transition: all var(--lf-transition);
}

.card-lf-accent:hover {
    border-color: rgba(20, 184, 166, 0.4);
    box-shadow: var(--lf-shadow-glow);
}

/* ============================================================
   5. FORM CONTROLS
   ============================================================ */
.form-control-lf {
    background-color: var(--lf-gray-50);
    border: 1.5px solid var(--lf-gray-200);
    border-radius: var(--lf-radius-md);
    padding: 0.65rem 1rem;
    font-size: var(--lf-font-size-base);
    color: var(--lf-gray-800);
    transition: all var(--lf-transition);
}

.form-control-lf:focus {
    background-color: var(--lf-white);
    border-color: var(--lf-accent);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.12);
    outline: none;
}

.form-control-lf::placeholder {
    color: var(--lf-gray-400);
}

.form-control-lf.is-invalid,
.form-control-lf.invalid {
    border-color: var(--lf-danger);
}

.form-control-lf.is-invalid:focus,
.form-control-lf.invalid:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.form-label-lf {
    font-weight: 500;
    color: var(--lf-gray-700);
    font-size: var(--lf-font-size-sm);
    margin-bottom: 0.375rem;
}

/* Input group with icon */
.input-group-lf {
    position: relative;
}

.input-group-lf .input-icon {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--lf-gray-400);
    font-size: 1rem;
    z-index: 4;
    pointer-events: none;
    transition: color var(--lf-transition);
}

.input-group-lf .form-control-lf {
    padding-left: 2.75rem;
}

.input-group-lf:focus-within .input-icon {
    color: var(--lf-accent);
}

/* ============================================================
   6. BADGES
   ============================================================ */
.badge-lf {
    display: inline-block;
    font-size: var(--lf-font-size-xs);
    font-weight: 600;
    padding: 0.25rem 0.625rem;
    border-radius: var(--lf-radius-full);
    letter-spacing: 0.02em;
    white-space: nowrap;
    line-height: 1.2;
}

.badge-lf-success {
    background: var(--lf-success-light);
    color: var(--lf-success);
}

.badge-lf-warning {
    background: var(--lf-warning-light);
    color: var(--lf-warning);
}

.badge-lf-danger {
    background: var(--lf-danger-light);
    color: var(--lf-danger);
}

.badge-lf-accent {
    background: rgba(20, 184, 166, 0.12);
    color: var(--lf-accent-hover);
}

.badge-lf-primary {
    background: rgba(12, 123, 127, 0.12);
    color: var(--lf-secondary);
}

.badge-lf-gray {
    background: rgba(100, 116, 139, 0.12);
    color: var(--lf-gray-600, #475569);
}

.badge-lf-teal {
    background: rgba(20, 184, 166, 0.1);
    color: var(--lf-accent);
}

.badge-lf-info {
    background: rgba(59, 130, 246, 0.12);
    color: #3B82F6;
}

/* ============================================================
   7. AUTH LAYOUT (Login / Register)
   ============================================================ */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    background: var(--lf-gradient-hero);
    position: relative;
    overflow: hidden;
}

/* Mesh background pattern (nodos de circuito del ave) */
.auth-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(20, 184, 166, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(12, 123, 127, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 60% 20%, rgba(45, 212, 191, 0.08) 0%, transparent 40%);
    animation: meshFloat 12s ease-in-out infinite;
}

/* Orb decorativo turquesa (como el ave) */
.auth-wrapper::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.08) 0%, transparent 70%);
    top: -150px;
    right: -100px;
    animation: float 10s ease-in-out infinite;
}

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

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50%      { transform: translateY(-30px) scale(1.05); }
}

/* Particulas flotantes (simula nodos del circuito del ave) */
.auth-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.auth-particles .particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--lf-accent-soft);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 6s ease-in-out infinite;
}

.auth-particles .particle:nth-child(1) { left: 15%; top: 20%; animation-delay: 0s; }
.auth-particles .particle:nth-child(2) { left: 35%; top: 60%; animation-delay: 1.5s; }
.auth-particles .particle:nth-child(3) { left: 55%; top: 30%; animation-delay: 3s; }
.auth-particles .particle:nth-child(4) { left: 75%; top: 70%; animation-delay: 4.5s; }
.auth-particles .particle:nth-child(5) { left: 25%; top: 80%; animation-delay: 2s; }
.auth-particles .particle:nth-child(6) { left: 65%; top: 15%; animation-delay: 3.5s; }

@keyframes particleFloat {
    0%, 100% { opacity: 0; transform: translateY(0) scale(0.5); }
    50%      { opacity: 0.6; transform: translateY(-20px) scale(1); }
}

/* Left branding panel */
.auth-brand-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: var(--lf-space-3xl);
    color: var(--lf-white);
    position: relative;
    z-index: 1;
}

.auth-brand-panel .brand-content {
    max-width: 480px;
    text-align: center;
}

.auth-brand-panel .brand-logo {
    width: 200px;
    height: auto;
    margin-bottom: var(--lf-space-lg);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.auth-brand-panel h1 {
    font-size: var(--lf-font-size-4xl);
    font-weight: 800;
    color: var(--lf-white);
    margin-bottom: 0.25rem;
    letter-spacing: 0.08em;
}

.auth-brand-panel h1 span {
    background: linear-gradient(135deg, #14B8A6 0%, #2DD4BF 50%, #5EEAD4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-brand-panel .brand-subtitle {
    font-size: var(--lf-font-size-sm);
    color: var(--lf-accent-light);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: var(--lf-space-lg);
}

.auth-brand-panel .brand-tagline {
    font-size: var(--lf-font-size-md);
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
    margin-bottom: var(--lf-space-2xl);
}

.auth-brand-features {
    display: flex;
    flex-direction: column;
    gap: var(--lf-space-md);
    text-align: left;
}

.auth-brand-features .feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--lf-font-size-base);
    padding: 0.5rem 0.75rem;
    border-radius: var(--lf-radius-md);
    transition: all var(--lf-transition);
}

.auth-brand-features .feature-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--lf-white);
}

.auth-brand-features .feature-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--lf-radius-md);
    background: rgba(20, 184, 166, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.auth-brand-features .feature-icon i {
    color: var(--lf-accent-light);
    font-size: 1rem;
}

/* Right form panel */
.auth-form-panel {
    width: 520px;
    min-width: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--lf-space-2xl);
    position: relative;
    z-index: 1;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: var(--lf-radius-2xl);
    padding: 2.5rem;
    box-shadow: 0 25px 60px rgba(10, 37, 64, 0.25), 0 0 40px rgba(20, 184, 166, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.auth-card .auth-header {
    text-align: center;
    margin-bottom: var(--lf-space-xl);
}

.auth-card .auth-header h2 {
    font-size: var(--lf-font-size-2xl);
    font-weight: 700;
    color: var(--lf-primary);
    margin-bottom: 0.25rem;
}

.auth-card .auth-header p {
    color: var(--lf-gray-500);
    font-size: var(--lf-font-size-base);
    margin-bottom: 0;
}

.auth-card .auth-form .form-group {
    margin-bottom: var(--lf-space-lg);
}

.auth-card .auth-divider {
    display: flex;
    align-items: center;
    gap: var(--lf-space-md);
    margin: var(--lf-space-lg) 0;
    color: var(--lf-gray-400);
    font-size: var(--lf-font-size-sm);
}

.auth-card .auth-divider::before,
.auth-card .auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--lf-gray-200);
}

.auth-card .auth-footer {
    text-align: center;
    margin-top: var(--lf-space-lg);
    font-size: var(--lf-font-size-base);
    color: var(--lf-gray-500);
}

.auth-card .auth-footer a {
    color: var(--lf-accent);
    font-weight: 600;
    text-decoration: none;
    transition: color var(--lf-transition);
}

.auth-card .auth-footer a:hover {
    color: var(--lf-accent-hover);
    text-decoration: underline;
}

/* Password toggle */
.password-toggle {
    position: absolute;
    right: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--lf-gray-400);
    cursor: pointer;
    padding: 0.25rem;
    z-index: 4;
    transition: color var(--lf-transition);
}

.password-toggle:hover {
    color: var(--lf-accent);
}

/* ============================================================
   8. UTILITY CLASSES
   ============================================================ */
.text-lf-primary   { color: var(--lf-primary) !important; }
.text-lf-secondary { color: var(--lf-secondary) !important; }
.text-lf-accent    { color: var(--lf-accent) !important; }
.text-lf-success   { color: var(--lf-success) !important; }
.text-lf-warning   { color: var(--lf-warning) !important; }
.text-lf-danger    { color: var(--lf-danger) !important; }
.text-lf-muted     { color: var(--lf-gray-500) !important; }

.bg-lf-primary     { background-color: var(--lf-primary) !important; }
.bg-lf-secondary   { background-color: var(--lf-secondary) !important; }
.bg-lf-accent      { background-color: var(--lf-accent) !important; }
.bg-lf-gray-50     { background-color: var(--lf-gray-50) !important; }
.bg-lf-gray-100    { background-color: var(--lf-gray-100) !important; }

.rounded-lf        { border-radius: var(--lf-radius-lg) !important; }
.rounded-lf-xl     { border-radius: var(--lf-radius-xl) !important; }
.shadow-lf         { box-shadow: var(--lf-shadow-card) !important; }
.shadow-lf-lg      { box-shadow: var(--lf-shadow-lg) !important; }
.shadow-lf-glow    { box-shadow: var(--lf-shadow-glow) !important; }

/* ============================================================
   9. RESPONSIVE AUTH LAYOUT
   ============================================================ */
@media (max-width: 991.98px) {
    .auth-brand-panel {
        display: none;
    }

    .auth-form-panel {
        width: 100%;
        min-width: unset;
        min-height: 100vh;
        background: var(--lf-gradient-hero);
    }

    .auth-card {
        max-width: 420px;
    }
}

@media (max-width: 575.98px) {
    .auth-form-panel {
        padding: var(--lf-space-md);
        align-items: flex-start;
        padding-top: var(--lf-space-2xl);
    }

    .auth-card {
        padding: var(--lf-space-lg);
        border-radius: var(--lf-radius-xl);
    }

    .auth-card .auth-header h2 {
        font-size: var(--lf-font-size-xl);
    }
}

/* ============================================================
   10. ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

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

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

.animate-slide-in-right {
    animation: slideInRight 0.5s ease-out forwards;
}

.animate-delay-1 { animation-delay: 0.1s; opacity: 0; }
.animate-delay-2 { animation-delay: 0.2s; opacity: 0; }
.animate-delay-3 { animation-delay: 0.3s; opacity: 0; }
.animate-delay-4 { animation-delay: 0.4s; opacity: 0; }
.animate-delay-5 { animation-delay: 0.5s; opacity: 0; }

/* ============================================================
   11. CHECKBOX / TOGGLE CUSTOM
   ============================================================ */
.form-check-lf .form-check-input {
    border-color: var(--lf-gray-300);
    border-radius: var(--lf-radius-sm);
    width: 1.1rem;
    height: 1.1rem;
}

.form-check-lf .form-check-input:checked {
    background-color: var(--lf-accent);
    border-color: var(--lf-accent);
}

.form-check-lf .form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}

.form-check-lf .form-check-label {
    font-size: var(--lf-font-size-sm);
    color: var(--lf-gray-600);
}

/* ============================================================
   12. SCROLLBAR CUSTOM
   ============================================================ */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--lf-gray-300);
    border-radius: var(--lf-radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--lf-gray-400);
}

/* ============================================================
   13. LINK STYLES FOR AUTH
   ============================================================ */
.link-lf-accent {
    color: var(--lf-accent);
    font-weight: 500;
    text-decoration: none;
    font-size: var(--lf-font-size-sm);
    transition: color var(--lf-transition);
}

.link-lf-accent:hover {
    color: var(--lf-accent-hover);
    text-decoration: underline;
}

/* ============================================================
   14. REGISTER: STEP INDICATOR
   ============================================================ */
.register-steps {
    padding: 0 1rem;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.step-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--lf-gray-100);
    border: 2px solid var(--lf-gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--lf-font-size-sm);
    font-weight: 600;
    color: var(--lf-gray-400);
    transition: all var(--lf-transition);
    flex-shrink: 0;
}

.step-dot.active {
    background: var(--lf-accent);
    border-color: var(--lf-accent);
    color: var(--lf-white);
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.15);
}

.step-dot.completed {
    background: var(--lf-accent);
    border-color: var(--lf-accent);
    color: var(--lf-white);
}

.step-line {
    flex: 1;
    height: 2px;
    background: var(--lf-gray-200);
    border-radius: 1px;
    transition: all var(--lf-transition);
    max-width: 80px;
}

.step-line.active {
    background: var(--lf-accent);
}

.step-label {
    font-size: var(--lf-font-size-xs);
    color: var(--lf-gray-400);
    font-weight: 500;
    transition: color var(--lf-transition);
}

.step-label.active {
    color: var(--lf-accent);
}

/* ============================================================
   15. REGISTER: PASSWORD STRENGTH INDICATOR
   ============================================================ */
.password-strength {
    padding: 0 0.125rem;
}

.strength-bar {
    height: 3px;
    flex: 1;
    border-radius: 2px;
    background: var(--lf-gray-200);
    transition: all var(--lf-transition);
}

.strength-bar.strength-weak {
    background: var(--lf-danger);
}

.strength-bar.strength-fair {
    background: var(--lf-warning);
}

.strength-bar.strength-good {
    background: var(--lf-accent);
}

.strength-bar.strength-strong {
    background: var(--lf-success);
}

.strength-text {
    font-size: var(--lf-font-size-xs);
    font-weight: 600;
}

.strength-text.strength-weak {
    color: var(--lf-danger);
}

.strength-text.strength-fair {
    color: var(--lf-warning);
}

.strength-text.strength-good {
    color: var(--lf-accent);
}

.strength-text.strength-strong {
    color: var(--lf-success);
}

/* ============================================================
   14. THEME TOGGLE BUTTON
   ============================================================ */
.theme-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
}

.theme-toggle-track {
    width: 48px;
    height: 26px;
    border-radius: 9999px;
    background: var(--lf-gray-200);
    position: relative;
    transition: background var(--lf-transition);
    border: 1px solid var(--lf-gray-300);
}

.theme-toggle-track.dark {
    background: var(--lf-primary-medium);
    border-color: rgba(45, 212, 191, 0.3);
}

.theme-toggle-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--lf-white);
    position: absolute;
    top: 2px;
    left: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.theme-toggle-track.dark .theme-toggle-thumb {
    transform: translateX(22px);
    background: var(--lf-primary);
}

.theme-toggle-thumb i {
    font-size: 0.65rem;
    color: var(--lf-warning);
}

.theme-toggle-track.dark .theme-toggle-thumb i {
    color: var(--lf-accent-light);
}

/* ============================================================
   15. DARK MODE THEME
   ============================================================ */
.theme-dark {
    --lf-white:            #0F172A;
    --lf-gray-50:          #0B1120;
    --lf-gray-100:         #131D33;
    --lf-gray-200:         #1C2A45;
    --lf-gray-300:         #2A3B5C;
    --lf-gray-400:         #64748B;
    --lf-gray-500:         #94A3B8;
    --lf-gray-600:         #CBD5E1;
    --lf-gray-700:         #E2E8F0;
    --lf-gray-800:         #F1F5F9;
    --lf-gray-900:         #F8FAFC;

    --lf-shadow-sm:        0 1px 2px rgba(0, 0, 0, 0.3);
    --lf-shadow-md:        0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.2);
    --lf-shadow-lg:        0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.2);
    --lf-shadow-xl:        0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.25);
    --lf-shadow-card:      0 1px 3px rgba(0, 0, 0, 0.3), 0 6px 16px rgba(0, 0, 0, 0.2);

    --lf-gradient-card:    linear-gradient(135deg, rgba(20, 184, 166, 0.06) 0%, rgba(12, 123, 127, 0.04) 100%);
    --lf-gradient-glow:    linear-gradient(135deg, rgba(20, 184, 166, 0.15) 0%, rgba(12, 123, 127, 0.1) 100%);
}

/* Dark mode overrides for specific elements */
.theme-dark .app-topbar,
.theme-dark .admin-topbar {
    background: rgba(11, 17, 32, 0.85);
    backdrop-filter: blur(20px);
    border-bottom-color: rgba(28, 42, 69, 0.6);
}

.theme-dark .topbar-search {
    background: var(--lf-gray-100);
    border-color: var(--lf-gray-200);
}

.theme-dark .topbar-search input {
    color: var(--lf-gray-700);
}

.theme-dark .topbar-search input::placeholder {
    color: var(--lf-gray-400);
}

.theme-dark .topbar-avatar {
    border-color: rgba(45, 212, 191, 0.3);
}

.theme-dark .topbar-dropdown {
    background: #131D33;
    border-color: var(--lf-gray-200);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.theme-dark .topbar-dropdown-item {
    color: var(--lf-gray-600);
}

.theme-dark .topbar-dropdown-item:hover {
    background: var(--lf-gray-100);
}

.theme-dark .topbar-dropdown-divider {
    border-color: var(--lf-gray-200);
}

.theme-dark .card-lf,
.theme-dark .card-lf-accent {
    background: #131D33;
    border-color: var(--lf-gray-200);
}

/* Dark mode: form controls */
.theme-dark .form-control-lf {
    background-color: var(--lf-gray-100);
    border-color: var(--lf-gray-200);
    color: var(--lf-gray-700);
}

.theme-dark .form-control-lf:focus {
    background-color: var(--lf-gray-50);
    border-color: var(--lf-accent);
}

/* Dark mode badges */
.theme-dark .badge-lf {
    border-color: transparent;
}

/* Dark mode page background */
.theme-dark .app-content,
.theme-dark .admin-content {
    background: var(--lf-gray-50);
}

/* ============================================================
   16. ADMIN PAGE ENTER ANIMATIONS (stagger)
   ============================================================ */
@keyframes adminCardEnter {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.admin-content .admin-kpi-card,
.admin-content .admin-card,
.admin-content .admin-alerts-bar,
.admin-content .admin-deposit-alert {
    animation: adminCardEnter 0.45s ease-out both;
}

.admin-content .admin-alerts-bar,
.admin-content .admin-deposit-alert {
    animation-delay: 0.05s;
}

.admin-content .row > .col-12:nth-child(1) > .admin-kpi-card,
.admin-content .row > .col-12:nth-child(1) > .admin-card {
    animation-delay: 0.08s;
}

.admin-content .row > .col-12:nth-child(2) > .admin-kpi-card,
.admin-content .row > .col-12:nth-child(2) > .admin-card {
    animation-delay: 0.14s;
}

.admin-content .row > .col-12:nth-child(3) > .admin-kpi-card,
.admin-content .row > .col-12:nth-child(3) > .admin-card {
    animation-delay: 0.20s;
}

.admin-content .row > .col-12:nth-child(4) > .admin-kpi-card,
.admin-content .row > .col-12:nth-child(4) > .admin-card {
    animation-delay: 0.26s;
}

/* ============================================================
   17. SIDEBAR BADGE PULSE ANIMATION
   ============================================================ */
@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

@keyframes badgeGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    50% { box-shadow: 0 0 0 4px rgba(239, 68, 68, 0); }
}

@keyframes badgeGlowAccent {
    0%, 100% { box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.4); }
    50% { box-shadow: 0 0 0 4px rgba(20, 184, 166, 0); }
}

.sidebar-badge {
    animation: badgePulse 2s ease-in-out infinite, badgeGlow 2s ease-in-out infinite;
}

.sidebar-badge.accent {
    animation: badgePulse 2s ease-in-out infinite, badgeGlowAccent 2s ease-in-out infinite;
}

/* Topbar badges too */
.topbar-badge {
    animation: badgePulse 2.5s ease-in-out infinite;
}

/* ============================================================
   18. USER PAGE CONTENT ANIMATIONS
   ============================================================ */
@keyframes contentFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.app-content > * {
    animation: contentFadeIn 0.4s ease-out both;
}

.app-content > :nth-child(1) { animation-delay: 0.03s; }
.app-content > :nth-child(2) { animation-delay: 0.08s; }
.app-content > :nth-child(3) { animation-delay: 0.13s; }
.app-content > :nth-child(4) { animation-delay: 0.18s; }
.app-content > :nth-child(5) { animation-delay: 0.23s; }
.app-content > :nth-child(6) { animation-delay: 0.28s; }

/* ============================================================
   19. RIPPLE EFFECT (micro-interaction)
   ============================================================ */
@keyframes lfRippleAnim {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0.5;
    }
    100% {
        transform: translate(-50%, -50%) scale(4);
        opacity: 0;
    }
}

.lf-ripple {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    pointer-events: none;
    animation: lfRippleAnim 0.6s ease-out forwards;
    z-index: 1;
}

.btn-lf-secondary .lf-ripple {
    background: rgba(20, 184, 166, 0.18);
}

.btn-lf-outline .lf-ripple {
    background: rgba(20, 184, 166, 0.15);
}

.quick-action-item .lf-ripple {
    background: rgba(20, 184, 166, 0.12);
}

/* ============================================================
   20. CHART.JS CONTAINER
   ============================================================ */
.chart-canvas-wrapper {
    position: relative;
    height: 280px;
    width: 100%;
}

.chart-canvas-wrapper canvas {
    width: 100% !important;
    height: 100% !important;
}

.doughnut-canvas-wrapper {
    position: relative;
    height: 260px;
    width: 100%;
    margin-bottom: 0.5rem;
}

.doughnut-center-label {
    position: absolute;
    top: 42%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
}

.doughnut-center-value {
    display: block;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--lf-gray-800);
    line-height: 1.1;
}

.doughnut-center-label-text {
    display: block;
    font-size: var(--lf-font-size-xs);
    color: var(--lf-gray-400);
    font-weight: 500;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .admin-content .admin-kpi-card,
    .admin-content .admin-card,
    .admin-content .admin-alerts-bar,
    .admin-content .admin-deposit-alert,
    .app-content > *,
    .sidebar-badge,
    .topbar-badge,
    .lf-ripple {
        animation: none !important;
    }
}
