/* ===================================
   CRECERÁPIDO - ULTRA PREMIUM FINTECH
   Professional Banking Design System
   =================================== */

/* === DESIGN TOKENS === */
:root {
    /* Premium Color Palette */
    --primary: #2563EB;
    --primary-dark: #1E40AF;
    --primary-light: #3B82F6;
    --accent: #60A5FA;
    --accent-bright: #93C5FD;

    /* Metallic Gradients */
    --gradient-primary: linear-gradient(135deg, #2563EB 0%, #1E40AF 100%);
    --gradient-accent: linear-gradient(135deg, #60A5FA 0%, #3B82F6 100%);
    --gradient-metallic: linear-gradient(135deg, #E0E7FF 0%, #C7D2FE 50%, #A5B4FC 100%);
    --gradient-dark: linear-gradient(180deg, #0F172A 0%, #1E293B 100%);

    /* Backgrounds */
    --bg-primary: #0A0F1E;
    --bg-secondary: #0F172A;
    --bg-tertiary: #1E293B;
    --bg-card: rgba(15, 23, 42, 0.7);
    --bg-glass: rgba(30, 41, 59, 0.5);
    --bg-glass-light: rgba(51, 65, 85, 0.3);

    /* Text Colors */
    --text-primary: #F8FAFC;
    --text-secondary: #E2E8F0;
    --text-muted: #94A3B8;
    --text-dim: #64748B;

    /* Borders & Dividers */
    --border-primary: rgba(148, 163, 184, 0.15);
    --border-accent: rgba(37, 99, 235, 0.3);
    --border-glow: rgba(37, 99, 235, 0.5);

    /* Shadows - Multi-layer */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2), 0 4px 8px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.3), 0 8px 16px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 40px rgba(37, 99, 235, 0.3), 0 0 80px rgba(37, 99, 235, 0.1);
    --shadow-glow-strong: 0 0 60px rgba(37, 99, 235, 0.5), 0 0 120px rgba(37, 99, 235, 0.2);

    /* Typography */
    --font-display: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'Space Grotesk', 'Courier New', monospace;

    /* Spacing System */
    --container-width: 1280px;
    --section-padding: 140px;
    --card-padding: 32px;

    /* Animation Curves */
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --ease-elastic: cubic-bezier(0.68, -0.6, 0.32, 1.6);

    /* Transitions */
    --transition-fast: 0.2s var(--ease-smooth);
    --transition-base: 0.3s var(--ease-smooth);
    --transition-slow: 0.5s var(--ease-smooth);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;
}

/* === RESET & BASE === */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 32px;
}

/* === ADVANCED BACKGROUND === */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(37, 99, 235, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 50% 50% at 20% 80%, rgba(29, 78, 216, 0.1) 0%, transparent 50%),
        linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.particles-container::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 25% 25%, rgba(37, 99, 235, 0.1) 0%, transparent 25%),
        radial-gradient(circle at 75% 75%, rgba(59, 130, 246, 0.08) 0%, transparent 25%),
        radial-gradient(circle at 50% 50%, rgba(96, 165, 250, 0.05) 0%, transparent 30%);
    animation: particlesFloat 25s ease-in-out infinite;
}

.particles-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(37, 99, 235, 0.03) 2px, rgba(37, 99, 235, 0.03) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(37, 99, 235, 0.03) 2px, rgba(37, 99, 235, 0.03) 4px);
    opacity: 0.3;
}

@keyframes particlesFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }

    33% {
        transform: translate(30px, -30px) scale(1.05);
        opacity: 0.8;
    }

    66% {
        transform: translate(-20px, 20px) scale(0.95);
        opacity: 0.9;
    }
}

/* === PREMIUM NAVIGATION === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 24px 0;
    background: rgba(10, 15, 30, 0.7);
    backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid var(--border-primary);
    transition: all var(--transition-base);
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-glow) 50%, transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.navbar.scrolled {
    padding: 16px 0;
    background: rgba(10, 15, 30, 0.95);
    box-shadow: var(--shadow-lg);
    border-bottom-color: var(--border-accent);
}

.navbar.scrolled::before {
    opacity: 1;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: transform var(--transition-base);
}

.logo-container:hover {
    transform: translateY(-2px);
}

.logo-icon {
    width: 44px;
    height: 44px;
    filter: drop-shadow(0 0 16px rgba(37, 99, 235, 0.6));
    animation: logoGlow 4s ease-in-out infinite;
    transition: transform var(--transition-base);
}

.logo-icon path {
    transition: all var(--transition-base);
}

.logo-container:hover .logo-icon path:first-child {
    transform: translateY(-2px) scale(1.05);
    filter: brightness(1.2);
}

.logo-container:hover .logo-icon path:last-child {
    transform: translate(-3px, 3px);
    opacity: 0.4;
}

@keyframes logoGlow {

    0%,
    100% {
        filter: drop-shadow(0 0 16px rgba(37, 99, 235, 0.6));
    }

    50% {
        filter: drop-shadow(0 0 28px rgba(37, 99, 235, 0.9));
    }
}

.logo-text {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    letter-spacing: -0.01em;
    transition: all var(--transition-base);
    position: relative;
    padding: 8px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: width var(--transition-base);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: var(--bg-glass);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    padding: 10px;
    transition: all var(--transition-base);
}

.mobile-menu-btn:hover {
    background: var(--bg-glass-light);
    border-color: var(--border-accent);
}

.mobile-menu-btn span {
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-base);
}

/* === PREMIUM BUTTONS === */
.btn-primary,
.btn-secondary,
.btn-primary-nav {
    padding: 14px 32px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: all var(--transition-base);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    position: relative;
    overflow: hidden;
}

.btn-primary,
.btn-primary-nav {
    background: var(--gradient-primary);
    color: white;
    box-shadow:
        0 4px 16px rgba(37, 99, 235, 0.4),
        0 2px 8px rgba(37, 99, 235, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-primary::before,
.btn-primary-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before,
.btn-primary-nav:hover::before {
    left: 100%;
}

.btn-primary:hover,
.btn-primary-nav:hover {
    transform: translateY(-3px);
    box-shadow:
        0 8px 28px rgba(37, 99, 235, 0.5),
        0 4px 12px rgba(37, 99, 235, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:active,
.btn-primary-nav:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-glass);
    color: var(--text-primary);
    border: 1px solid var(--border-primary);
    backdrop-filter: blur(12px);
}

.btn-secondary:hover {
    background: var(--bg-glass-light);
    border-color: var(--border-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-large {
    padding: 18px 40px;
    font-size: 16px;
    border-radius: var(--radius-lg);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* === HERO SECTION === */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 120px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: orbFloat 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.6) 0%, transparent 70%);
    top: -250px;
    right: -150px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.5) 0%, transparent 70%);
    bottom: -200px;
    left: -150px;
    animation-delay: 7s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.4) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    animation-delay: 14s;
}

@keyframes orbFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(40px, -40px) scale(1.1);
    }

    66% {
        transform: translate(-30px, 30px) scale(0.9);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: var(--bg-glass);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 28px;
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-sm);
    letter-spacing: -0.01em;
}

.label-icon {
    font-size: 18px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 72px;
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 28px;
    letter-spacing: -0.03em;
}

.gradient-text {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
    text-shadow: 0 0 80px rgba(37, 99, 235, 0.3);
}

.hero-subtitle {
    font-size: 19px;
    color: var(--text-secondary);
    margin-bottom: 44px;
    line-height: 1.7;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.hero-cta {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

/* === 3D CREDIT CARD PREMIUM === */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.credit-card-3d {
    position: relative;
    perspective: 1200px;
    animation: cardFloat 8s ease-in-out infinite;
}

@keyframes cardFloat {

    0%,
    100% {
        transform: translateY(0) rotateY(-8deg) rotateX(2deg);
    }

    50% {
        transform: translateY(-25px) rotateY(8deg) rotateX(-2deg);
    }
}

.card-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 130%;
    height: 130%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.5) 0%, transparent 70%);
    filter: blur(60px);
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.9;
        transform: translate(-50%, -50%) scale(1.15);
    }
}

.credit-card {
    position: relative;
    width: 420px;
    height: 260px;
    background: linear-gradient(135deg,
            rgba(37, 99, 235, 0.25) 0%,
            rgba(29, 78, 216, 0.35) 100%);
    border-radius: 24px;
    padding: 36px;
    backdrop-filter: blur(32px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.5),
        0 10px 25px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

.card-chip {
    width: 54px;
    height: 42px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border-radius: 10px;
    margin-bottom: 44px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(255, 165, 0, 0.4);
}

.card-chip::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    bottom: 6px;
    background: linear-gradient(135deg, #FFF 0%, #FFD700 100%);
    border-radius: 6px;
}

.card-chip::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 70%;
    background:
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 0, 0, 0.1) 2px, rgba(0, 0, 0, 0.1) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0, 0, 0, 0.1) 2px, rgba(0, 0, 0, 0.1) 4px);
}

.card-number {
    font-size: 26px;
    font-weight: 600;
    letter-spacing: 5px;
    margin-bottom: 34px;
    font-family: var(--font-mono);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.card-holder,
.card-expiry {
    display: inline-block;
    margin-right: 48px;
}

.card-label {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 6px;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.card-name,
.card-date {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.card-logo {
    position: absolute;
    bottom: 36px;
    right: 36px;
    width: 64px;
    height: 64px;
    filter: drop-shadow(0 4px 12px rgba(37, 99, 235, 0.4));
}

/* === TRUST METRICS === */
.trust-metrics {
    position: relative;
    z-index: 2;
    margin-top: 100px;
    padding: 50px 0;
    border-top: 1px solid var(--border-primary);
    background: linear-gradient(180deg, transparent 0%, rgba(37, 99, 235, 0.02) 100%);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
}

.metric-item {
    text-align: center;
    padding: 24px;
    border-radius: var(--radius-lg);
    background: var(--bg-glass);
    border: 1px solid var(--border-primary);
    backdrop-filter: blur(12px);
    transition: all var(--transition-base);
}

.metric-item:hover {
    transform: translateY(-4px);
    border-color: var(--border-accent);
    box-shadow: var(--shadow-md);
}

.metric-icon {
    font-size: 36px;
    margin-bottom: 16px;
    filter: drop-shadow(0 4px 12px rgba(37, 99, 235, 0.3));
}

.metric-value {
    font-size: 42px;
    font-weight: 800;
    font-family: var(--font-display);
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.metric-label {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: -0.01em;
}

/* === SECTION HEADERS === */
.section-header {
    text-align: center;
    margin-bottom: 90px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.section-subtitle {
    font-size: 19px;
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* === SERVICES SECTION === */
.services {
    position: relative;
    padding: var(--section-padding) 0;
    z-index: 2;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
}

.service-card {
    perspective: 1200px;
    height: 420px;
    cursor: pointer;
}

.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.7s var(--ease-smooth);
    transform-style: preserve-3d;
}

.service-card:hover .service-card-inner {
    transform: rotateY(180deg);
}

.service-front,
.service-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: var(--radius-lg);
    padding: 44px;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    backdrop-filter: blur(24px);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.service-card:hover .service-front,
.service-card:hover .service-back {
    box-shadow: var(--shadow-lg);
}

.service-front {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.service-back {
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-icon-bg {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    box-shadow: var(--shadow-glow);
    position: relative;
}

.service-icon-bg::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: var(--gradient-accent);
    opacity: 0.3;
    filter: blur(12px);
}

.service-icon {
    font-size: 52px;
    position: relative;
    z-index: 1;
}

.service-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 14px;
    font-family: var(--font-display);
    letter-spacing: -0.02em;
}

.service-preview {
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 500;
}

.service-title-back {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 18px;
    font-family: var(--font-display);
    color: var(--primary);
    letter-spacing: -0.02em;
}

.service-description {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 24px;
    font-weight: 400;
}

.service-benefits {
    list-style: none;
    margin-bottom: 24px;
}

.service-benefits li {
    padding: 10px 0;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
}

.service-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    padding: 8px 16px;
    background: rgba(37, 99, 235, 0.15);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: -0.01em;
}

/* === SIMULATOR SECTION === */
.simulator {
    position: relative;
    padding: var(--section-padding) 0;
    z-index: 2;
}

.simulator-container {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    padding: 70px;
    backdrop-filter: blur(32px);
    box-shadow: var(--shadow-xl);
    position: relative;
}

.simulator-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-glow) 50%, transparent);
}

.simulator-header {
    text-align: center;
    margin-bottom: 70px;
}

.simulator-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.input-group {
    margin-bottom: 36px;
}

.input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 14px;
    color: var(--text-primary);
    font-size: 15px;
    letter-spacing: -0.01em;
}

.input-wrapper {
    position: relative;
}

.input-prefix {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-weight: 700;
    z-index: 2;
    font-size: 16px;
}

input[type="range"] {
    width: 100%;
    height: 8px;
    background: var(--bg-glass);
    border-radius: var(--radius-full);
    outline: none;
    margin-bottom: 14px;
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid var(--border-primary);
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: var(--gradient-primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow:
        0 4px 12px rgba(37, 99, 235, 0.5),
        0 0 0 4px rgba(37, 99, 235, 0.1);
    transition: all var(--transition-base);
}

input[type="range"]::-webkit-slider-thumb:hover {
    box-shadow:
        0 6px 16px rgba(37, 99, 235, 0.6),
        0 0 0 6px rgba(37, 99, 235, 0.15);
}

input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: var(--gradient-primary);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow:
        0 4px 12px rgba(37, 99, 235, 0.5),
        0 0 0 4px rgba(37, 99, 235, 0.1);
}

input[type="text"] {
    width: 100%;
    padding: 18px 20px;
    padding-left: 44px;
    background: var(--bg-glass);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 17px;
    font-weight: 700;
    font-family: var(--font-body);
    transition: all var(--transition-base);
}

input[type="text"]:focus {
    outline: none;
    border-color: var(--border-accent);
    background: rgba(37, 99, 235, 0.05);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.result-card {
    background: linear-gradient(135deg,
            rgba(37, 99, 235, 0.12) 0%,
            rgba(29, 78, 216, 0.08) 100%);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-lg);
    padding: 48px;
    text-align: center;
    box-shadow: var(--shadow-glow);
    position: relative;
    overflow: hidden;
}

.result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3) 50%, transparent);
}

.result-label {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
}

.result-value {
    font-size: 64px;
    font-weight: 800;
    font-family: var(--font-display);
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 36px;
    letter-spacing: -0.03em;
    line-height: 1;
}

.result-details {
    margin-bottom: 36px;
    padding-top: 28px;
    border-top: 1px solid var(--border-primary);
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
}

.detail-label {
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
}

.detail-value {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 17px;
}

/* === FIXED RATE DISPLAY === */
.fixed-rate {
    background: linear-gradient(135deg,
            rgba(37, 99, 235, 0.12) 0%,
            rgba(29, 78, 216, 0.08) 100%);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-glow);
}

.fixed-rate-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.rate-value {
    font-size: 38px;
    font-weight: 800;
    font-family: var(--font-display);
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.rate-label {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
}

/* === TESTIMONIALS === */
.testimonials {
    position: relative;
    padding: var(--section-padding) 0;
    z-index: 2;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: 40px;
    backdrop-filter: blur(24px);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
}

.testimonial-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-accent);
    box-shadow: var(--shadow-xl);
}

.testimonial-rating {
    font-size: 22px;
    margin-bottom: 20px;
    filter: drop-shadow(0 2px 8px rgba(255, 193, 7, 0.3));
}

.testimonial-text {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 28px;
    font-style: italic;
    font-weight: 400;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 18px;
}

.author-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 17px;
    box-shadow: var(--shadow-glow);
}

.author-name {
    font-weight: 700;
    margin-bottom: 6px;
    font-size: 16px;
}

.author-title {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

/* === ABOUT SECTION === */
.about {
    position: relative;
    padding: var(--section-padding) 0;
    z-index: 2;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 90px;
    align-items: center;
}

.about-description {
    font-size: 19px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 44px;
    font-weight: 400;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.feature-item {
    display: flex;
    gap: 24px;
    padding: 24px;
    background: var(--bg-glass);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    backdrop-filter: blur(12px);
    transition: all var(--transition-base);
}

.feature-item:hover {
    transform: translateX(8px);
    border-color: var(--border-accent);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 36px;
    flex-shrink: 0;
    filter: drop-shadow(0 4px 12px rgba(37, 99, 235, 0.3));
}

.feature-content h4 {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 10px;
    font-family: var(--font-display);
    letter-spacing: -0.01em;
}

.feature-content p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
    font-weight: 400;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.stat-box {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    backdrop-filter: blur(24px);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
}

.stat-box:hover {
    transform: translateY(-6px);
    border-color: var(--border-accent);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    font-family: var(--font-display);
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* === CTA SECTION === */
.cta-section {
    position: relative;
    padding: 140px 0;
    z-index: 2;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-family: var(--font-display);
    font-size: 64px;
    font-weight: 800;
    margin-bottom: 28px;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.cta-subtitle {
    font-size: 21px;
    color: var(--text-secondary);
    margin-bottom: 48px;
    font-weight: 400;
}

/* === FOOTER === */
.footer {
    position: relative;
    padding: 90px 0 50px;
    border-top: 1px solid var(--border-primary);
    background: var(--bg-secondary);
    z-index: 2;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 70px;
    margin-bottom: 70px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.footer-description {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.7;
    font-weight: 400;
}

.footer-title {
    font-weight: 700;
    margin-bottom: 24px;
    font-size: 17px;
    font-family: var(--font-display);
    letter-spacing: -0.01em;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 14px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 15px;
    transition: all var(--transition-base);
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.footer-bottom {
    padding-top: 48px;
    border-top: 1px solid var(--border-primary);
    text-align: center;
}

.footer-legal {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

.footer-copyright {
    font-size: 14px;
    color: var(--text-dim);
    font-weight: 500;
}

/* === REGISTRATION MODAL PREMIUM === */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(16px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    position: relative;
    /* Clave para posicionar evaluation-screen dentro */
    background: rgba(10, 15, 30, 0.95);
    /* Deeper, richer glass base */
    border: 1px solid rgba(37, 99, 235, 0.3);
    /* Electric blue subtle border */
    border-radius: var(--radius-xl);
    max-width: 750px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    backdrop-filter: blur(48px) saturate(150%);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    animation: modalSlideIn 0.5s var(--ease-smooth);
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-60px) scale(0.95);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 48px;
    border-bottom: 1px solid var(--border-primary);
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.05) 0%, transparent 100%);
}

.modal-title {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.modal-close {
    background: var(--bg-glass);
    border: 1px solid var(--border-primary);
    color: var(--text-muted);
    cursor: pointer;
    padding: 10px;
    transition: all var(--transition-base);
    border-radius: var(--radius-sm);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--bg-glass-light);
    color: var(--text-primary);
    border-color: var(--border-accent);
    transform: rotate(90deg);
}

/* === REGISTRATION FORM === */
.registration-form {
    padding: 48px;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.4s var(--ease-smooth);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.form-step-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 36px;
    color: var(--primary);
    font-family: var(--font-display);
    letter-spacing: -0.02em;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 28px;
}

.form-group {
    margin-bottom: 28px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
    font-size: 15px;
    letter-spacing: -0.01em;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group input[type="number"],
.form-group select {
    width: 100%;
    padding: 16px 18px;
    background: var(--bg-glass);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 16px;
    font-family: var(--font-body);
    transition: all var(--transition-base);
    font-weight: 500;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--border-accent);
    background: rgba(37, 99, 235, 0.05);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='14' height='9' viewBox='0 0 14 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L7 7L13 1' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    padding-right: 48px;
}

.form-hint {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 5px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary);
}

.checkbox-label span {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    font-weight: 400;
}

.link-primary {
    color: var(--primary);
    text-decoration: none;
    transition: all var(--transition-base);
    font-weight: 600;
}

.link-primary:hover {
    text-decoration: underline;
    color: var(--accent);
}

/* === LOAN SUMMARY === */
.loan-summary {
    background: linear-gradient(135deg,
            rgba(37, 99, 235, 0.12) 0%,
            rgba(29, 78, 216, 0.08) 100%);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 28px;
    box-shadow: var(--shadow-glow);
}

.loan-summary h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary);
    font-family: var(--font-display);
    letter-spacing: -0.01em;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-primary);
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item.highlight {
    padding-top: 20px;
    margin-top: 12px;
    border-top: 2px solid var(--border-accent);
}

.summary-item span {
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
}

.summary-item strong {
    color: var(--text-primary);
    font-size: 17px;
    font-weight: 700;
}

.summary-item.highlight strong {
    font-size: 24px;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: var(--font-display);
}

/* === FORM NAVIGATION === */
.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-primary);
}

.step-indicators {
    display: flex;
    gap: 14px;
}

.step-indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bg-glass);
    border: 2px solid var(--border-primary);
    transition: all var(--transition-base);
}

.step-indicator.active {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 16px rgba(37, 99, 235, 0.6);
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 70px;
    }

    .hero-visual {
        order: -1;
    }

    .credit-card {
        width: 380px;
        height: 240px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .simulator-content {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 90px;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-title {
        font-size: 48px;
    }

    .section-title {
        font-size: 40px;
    }

    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }

    .services-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        height: 380px;
    }

    .simulator-container {
        padding: 48px 32px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .credit-card {
        width: 320px;
        height: 200px;
        padding: 24px;
    }

    .card-number {
        font-size: 20px;
    }

    .stats-container {
        grid-template-columns: 1fr;
    }

    .modal-container {
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .modal-header {
        padding: 28px;
    }

    .modal-title {
        font-size: 26px;
    }

    .registration-form {
        padding: 28px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-navigation {
        flex-wrap: wrap;
        gap: 18px;
    }

    .form-navigation .btn-primary,
    .form-navigation .btn-secondary {
        flex: 1;
        min-width: 130px;
    }

    .step-indicators {
        order: -1;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 36px;
    }

    .section-title {
        font-size: 32px;
    }

    .cta-title {
        font-size: 40px;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn-large {
        width: 100%;
    }

    .result-value {
        font-size: 48px;
    }
}

/* ===================================
   CHATBOT DE AYUDA - PREMIUM FINTECH
   =================================== */

.chatbot-container {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9998;
}

/* === BOTÓN FLOTANTE === */
.chatbot-toggle {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border: none;
    cursor: pointer;
    box-shadow:
        0 8px 24px rgba(37, 211, 102, 0.4),
        0 4px 12px rgba(37, 211, 102, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.chatbot-toggle:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow:
        0 12px 32px rgba(37, 211, 102, 0.5),
        0 6px 16px rgba(37, 211, 102, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.chatbot-toggle:active {
    transform: translateY(-2px) scale(1.02);
}

.chatbot-icon,
.chatbot-close-icon {
    position: absolute;
    transition: all var(--transition-base);
}

.chatbot-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.chatbot-close-icon {
    opacity: 0;
    transform: rotate(90deg) scale(0.8);
}

.chatbot-toggle.active .chatbot-icon {
    opacity: 0;
    transform: rotate(-90deg) scale(0.8);
}

.chatbot-toggle.active .chatbot-close-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.chatbot-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 24px;
    height: 24px;
    background: #EF4444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: white;
    border: 3px solid var(--bg-primary);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* === VENTANA DEL CHAT === */
.chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 400px;
    height: 600px;
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(32px) saturate(180%);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all var(--transition-base);
}

.chatbot-window.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* === HEADER DEL CHAT === */
.chatbot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-primary);
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.08) 0%, transparent 100%);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.chatbot-header-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.chatbot-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.chatbot-header-text h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
    font-family: var(--font-display);
    letter-spacing: -0.01em;
}

.chatbot-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10B981;
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.chatbot-minimize {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--bg-glass);
    border: 1px solid var(--border-primary);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.chatbot-minimize:hover {
    background: var(--bg-glass-light);
    color: var(--text-primary);
    border-color: var(--border-accent);
}

/* === MENSAJES === */
.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
    background: var(--bg-glass);
    border-radius: 3px;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: var(--border-accent);
    border-radius: 3px;
}

.chatbot-messages::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

.message {
    display: flex;
    gap: 12px;
    animation: messageSlideIn 0.3s var(--ease-smooth);
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.message-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.message-bubble {
    background: var(--bg-glass);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    backdrop-filter: blur(12px);
    font-weight: 400;
}

.bot-message .message-bubble {
    background: linear-gradient(135deg,
            rgba(37, 99, 235, 0.12) 0%,
            rgba(29, 78, 216, 0.08) 100%);
    border-color: var(--border-accent);
}

.user-message {
    flex-direction: row-reverse;
}

.user-message .message-content {
    align-items: flex-end;
}

.user-message .message-bubble {
    background: var(--gradient-primary);
    border-color: var(--primary);
    color: white;
}

.user-message .message-avatar {
    background: var(--bg-glass);
    color: var(--text-primary);
}

.message-time {
    font-size: 12px;
    color: var(--text-dim);
    padding: 0 4px;
    font-weight: 500;
}

/* === OPCIONES DEL BOT === */
.chatbot-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: optionsSlideIn 0.4s var(--ease-smooth);
}

@keyframes optionsSlideIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chatbot-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--bg-glass);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    font-family: var(--font-body);
    text-align: left;
}

.chatbot-option:hover {
    background: var(--bg-glass-light);
    border-color: var(--border-accent);
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.chatbot-option svg {
    flex-shrink: 0;
    color: var(--primary);
}

/* === BOTÓN DE ACCIÓN === */
.chatbot-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    margin: 12px auto 0;
    /* Centrado horizontal */
}

.chatbot-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.chatbot-action-btn svg {
    width: 16px;
    height: 16px;
}

/* === FOOTER DEL CHAT === */
.chatbot-footer {
    display: flex;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid var(--border-primary);
    background: linear-gradient(0deg, rgba(37, 99, 235, 0.03) 0%, transparent 100%);
}

.chatbot-input {
    flex: 1;
    padding: 12px 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 15px;
    font-family: var(--font-body);
    transition: all var(--transition-base);
    font-weight: 500;
}

.chatbot-input:focus {
    outline: none;
    border-color: var(--border-accent);
    background: rgba(37, 99, 235, 0.05);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.chatbot-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.chatbot-input::placeholder {
    color: var(--text-dim);
}

.chatbot-send {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--gradient-primary);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.chatbot-send:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.chatbot-send:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* === TYPING INDICATOR === */
.typing-indicator {
    display: flex;
    gap: 6px;
    padding: 14px 16px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    animation: typingBounce 1.4s ease-in-out infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingBounce {

    0%,
    60%,
    100% {
        transform: translateY(0);
    }

    30% {
        transform: translateY(-8px);
    }
}

/* === RESPONSIVE CHATBOT === */
@media (max-width: 768px) {
    .chatbot-container {
        bottom: 20px;
        right: 20px;
        z-index: 10000;
        /* Ensure it's on top */
    }

    .chatbot-toggle {
        width: 60px;
        height: 60px;
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }

    .chatbot-window {
        width: 360px;
        height: 600px;
        max-height: calc(100vh - 120px);
        bottom: 80px;
        right: 0;
    }

    /* Prevent zoom on inputs */
    .chatbot-input {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .chatbot-container {
        bottom: 16px;
        right: 16px;
    }

    .chatbot-window {
        position: fixed;
        /* Break out of container positioning */
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 85vh;
        /* Use viewport height */
        height: 85dvh;
        /* Dynamic viewport height if supported */
        border-radius: 24px 24px 0 0;
        margin: 0;
        transform: translateY(100%);
        /* Start off-screen */
    }

    .chatbot-window.active {
        transform: translateY(0);
    }

    .chatbot-header {
        padding: 16px 20px;
    }

    .chatbot-messages {
        padding: 16px;
    }

    .chatbot-toggle {
        width: 56px;
        height: 56px;
    }

    .chatbot-badge {
        width: 20px;
        height: 20px;
        font-size: 11px;
        top: 0;
        right: 0;
    }

    /* Adjust message bubbles for small screens */
    .message-bubble {
        font-size: 14px;
        padding: 12px 14px;
    }

    .chatbot-option {
        padding: 12px 14px;
        font-size: 14px;
    }
}

/* ==================================
   About Section Styles
   ================================== */
.about-section {
    padding: 100px 0;
    background-color: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

@media (max-width: 992px) {
    .about-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-visual {
        order: -1;
        /* Image first on mobile */
    }
}

.about-visual {
    position: relative;
}

.image-frame {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.about-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-frame:hover .about-img {
    transform: scale(1.05);
}

.experience-badge {
    position: absolute;
    bottom: 30px;
    right: -20px;
    background: rgba(30, 41, 59, 0.9);
    /* Dark background */
    padding: 20px 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 2;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.image-frame:hover .experience-badge {
    transform: translateY(-5px);
}

@media (max-width: 768px) {
    .experience-badge {
        right: 10px;
        bottom: 10px;
        padding: 15px 20px;
    }
}

.exp-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #10B981 0%, #3B82F6 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 5px;
}

.exp-text {
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-label {
    font-size: 0.85rem;
    color: #10B981;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 15px;
    display: inline-block;
    padding: 6px 14px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 30px;
}

.about-description {
    font-size: 1.1rem;
    color: #cbd5e1;
    line-height: 1.8;
    margin-bottom: 40px;
}

.features-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    /* Alineación centrada para orden visual */
    gap: 24px;
    padding: 24px;
    background-color: rgba(255, 255, 255, 0.03);
    /* Fondo sutil de tarjeta */
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Borde definitorio */
    border-radius: 16px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background-color: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
    border-color: rgba(16, 185, 129, 0.2);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: #10B981;
    flex-shrink: 0;
    border: 1px solid rgba(16, 185, 129, 0.1);
}

.feature-text {
    flex: 1;
}

.feature-text strong {
    display: block;
    color: #f1f5f9;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 4px;
}

/* ==================================
   Corporate Gallery Styles
   ================================== */
.corporate-gallery {
    padding: 80px 0;
    background-color: var(--bg-primary);
}

.gallery-header {
    text-align: center;
    margin-bottom: 50px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

.gallery-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 250px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    cursor: default;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 20px;
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-content h3 {
    font-size: 1.1rem;
    color: white;
    margin-bottom: 5px;
    font-weight: 600;
}

.gallery-content p {
    font-size: 0.9rem;
    color: #10B981;
    margin: 0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}


/* ==================================
   Evaluation Screen Styles (Modal)
   ================================== */
.evaluation-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-secondary);
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    /* Match modal */
    flex-direction: column;
}

.evaluation-content {
    width: 100%;
    max-width: 480px;
    /* Un poco más ancho para mejor lectura */
    padding: 40px;
    text-align: center;
    margin: 0 auto;
    /* Asegurar centrado horizontal */
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Centrar items hijos (icono, barra) */
}

.eval-icon-container {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #10B981;
    animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
    opacity: 0.5;
}

@keyframes ping {

    75%,
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.eval-icon {
    color: #10B981;
    z-index: 2;
    background: var(--bg-secondary);
    border-radius: 50%;
    padding: 10px;
    width: 60px;
    height: 60px;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.eval-title {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 30px;
    font-weight: 700;
}

.progress-container {
    margin-bottom: 20px;
}

.progress-bar-bg {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #10B981, #3B82F6);
    border-radius: 4px;
    transition: width 0.3s linear;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.progress-info {
    display: flex;
    justify-content: flex-end;
}

#evalPercentage {
    color: #10B981;
    font-weight: 700;
    font-family: monospace;
    font-size: 1.1rem;
}

.eval-status {
    color: #94a3b8;
    font-size: 0.95rem;
    min-height: 24px;
    animation: fadeInOut 2s infinite ease-in-out;
}

@keyframes fadeInOut {

    0%,
    100% {
        opacity: 0.7;
    }

    50% {
        opacity: 1;
    }
}

.eval-success {
    margin-top: 20px;
    animation: slideUp 0.5s ease;
}

.success-check {
    width: 50px;
    height: 50px;
    background: #10B981;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 15px;
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.4);
}

.eval-success p {
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.eval-success small {
    color: #94a3b8;
    display: block;
    margin-bottom: 0;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   FINTECH HERO VISUAL
   =================================== */
.fintech-visual {
    position: relative;
    width: 420px;
    height: 320px;
    perspective: 1000px;
}

.glass-card {
    position: relative;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    backdrop-filter: blur(20px);
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    padding: 30px;
    z-index: 10;
    transform: rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
    display: flex;
    flex-direction: column;
}

.fintech-visual:hover .glass-card {
    transform: rotateY(0) rotateX(0);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 14px;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: white;
}

.user-status {
    font-size: 11px;
    color: #10B981;
}

.status-badge {
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.balance-label {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.balance-amount {
    font-size: 36px;
    font-weight: 700;
    color: white;
    margin-bottom: 30px;
    font-family: var(--font-display);
    letter-spacing: -1px;
}

.chart-area {
    display: flex;
    align-items: flex-end;
    gap: 15px;
    height: 80px;
    /* Altura de la gráfica visual */
    margin-top: auto;
}

.chart-bar {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    transition: height 1s ease;
}

.chart-bar.active {
    background: linear-gradient(to top, #3B82F6, #60A5FA);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

/* Floating Elements */
.floating-element {
    position: absolute;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    backdrop-filter: blur(16px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    z-index: 20;
    animation: float 6s ease-in-out infinite;
}

.success-badge {
    top: -20px;
    right: -30px;
    animation-delay: 0s;
}

.rate-badge {
    bottom: -20px;
    left: -20px;
    animation-delay: 3s;
}

.icon-check {
    width: 32px;
    height: 32px;
    background: #10B981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
}

.rate-icon {
    width: 32px;
    height: 32px;
    background: #3B82F6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
}

.badge-text {
    display: flex;
    flex-direction: column;
}

.badge-text span {
    font-size: 11px;
    color: #94a3b8;
}

.badge-text strong {
    font-size: 14px;
    color: white;
    font-weight: 700;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.glow-effect {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: 1;
    opacity: 0.6;
}

.glow-1 {
    width: 200px;
    height: 200px;
    background: #3B82F6;
    top: -50px;
    right: -50px;
}

.glow-2 {
    width: 150px;
    height: 150px;
    background: #10B981;
    bottom: -30px;
    left: -30px;
}

@media (max-width: 768px) {
    .fintech-visual {
        width: 100%;
        max-width: 360px;
        height: 280px;
        margin: 0 auto;
    }
}

/* === CHATBOT AVATAR === */
.message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* === TESTIMONIAL AVATAR === */
.author-avatar {
    overflow: hidden;
    /* Ensure image stays within circle */
    background: transparent;
    /* Remove default background when image is present */
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* === SERVICE ICONS === */
.service-icon-bg {
    overflow: hidden;
    /* Ensure image stays within circle */
}

.service-icon-bg::before {
    display: none;
    /* Remove gradient overlay for clear images */
}

.service-icon {
    width: 100%;
    height: 100%;
    font-size: 0;
    /* Remove potential text spacing */
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-icon img {
    transform: scale(1.1);
}

/* ===================================
   REGISTRATION MODAL FORM STYLES
   Mobile-First Responsive Design
   =================================== */

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Container */
.modal-container {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 41, 59, 0.98) 100%);
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    position: relative;
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

/* Mobile Scrollbar Styling */
.modal-container::-webkit-scrollbar {
    width: 8px;
}

.modal-container::-webkit-scrollbar-track {
    background: rgba(30, 41, 59, 0.3);
    border-radius: 4px;
}

.modal-container::-webkit-scrollbar-thumb {
    background: rgba(96, 165, 250, 0.5);
    border-radius: 4px;
}

/* Modal Header */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid rgba(96, 165, 250, 0.1);
    position: sticky;
    top: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    z-index: 10;
}

.modal-title {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin: 0;
}

.modal-close {
    background: rgba(96, 165, 250, 0.1);
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: 12px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: rgba(148, 163, 184, 1);
}

.modal-close:hover {
    background: rgba(96, 165, 250, 0.2);
    border-color: rgba(96, 165, 250, 0.5);
    transform: rotate(90deg);
}

/* Form Styles */
.registration-form {
    padding: 24px;
}

.form-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-step-title {
    font-size: 20px;
    font-weight: 600;
    color: white;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: rgba(148, 163, 184, 1);
}

.form-group input,
.form-group select {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 16px;
    color: white;
    transition: all 0.3s ease;
    font-family: inherit;
    min-height: 48px;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: rgba(96, 165, 250, 0.6);
    background: rgba(30, 41, 59, 0.8);
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

.form-group input::placeholder {
    color: rgba(148, 163, 184, 0.5);
}

.form-hint {
    font-size: 12px;
    color: rgba(148, 163, 184, 0.7);
    margin-top: 4px;
}

/* Loan Summary */
.loan-summary {
    background: rgba(96, 165, 250, 0.05);
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 16px;
    padding: 20px;
    margin: 24px 0;
}

.loan-summary h4 {
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(96, 165, 250, 0.1);
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item span {
    color: rgba(148, 163, 184, 1);
    font-size: 14px;
}

.summary-item strong {
    color: white;
    font-size: 16px;
    font-weight: 600;
}

.summary-item.highlight {
    background: rgba(96, 165, 250, 0.1);
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 8px;
}

.summary-item.highlight strong {
    color: #60A5FA;
    font-size: 18px;
}

/* Checkbox */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    margin-top: 16px;
}

.checkbox-label input[type="checkbox"] {
    min-width: 20px;
    min-height: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #3B82F6;
}

.checkbox-label span {
    font-size: 14px;
    color: rgba(148, 163, 184, 1);
    line-height: 1.6;
}

.link-primary {
    color: #60A5FA;
    text-decoration: none;
    transition: color 0.3s ease;
}

.link-primary:hover {
    color: #93C5FD;
    text-decoration: underline;
}

/* Form Navigation */
.form-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(96, 165, 250, 0.1);
}

.step-indicators {
    display: flex;
    gap: 8px;
    flex: 1;
    justify-content: center;
}

.step-indicator {
    width: 32px;
    height: 6px;
    background: rgba(96, 165, 250, 0.2);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.step-indicator.active {
    background: linear-gradient(90deg, #3B82F6, #60A5FA);
    width: 48px;
}

/* Buttons */
.btn-secondary,
.btn-primary {
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    font-family: inherit;
}

.btn-secondary {
    background: rgba(96, 165, 250, 0.1);
    color: #60A5FA;
    border: 1px solid rgba(96, 165, 250, 0.3);
}

.btn-secondary:hover {
    background: rgba(96, 165, 250, 0.2);
}

.btn-primary {
    background: linear-gradient(135deg, #3B82F6, #2563EB);
    color: white;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Evaluation Screen */
.evaluation-screen {
    padding: 48px 24px;
    text-align: center;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.eval-icon-container {
    position: relative;
    width: 80px;
    height: 80px;
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid #60A5FA;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.3);
        opacity: 0;
    }
}

.eval-icon {
    position: relative;
    z-index: 1;
    color: #60A5FA;
}

.eval-title {
    font-size: 24px;
    font-weight: 600;
    color: white;
    margin: 0;
}

.progress-container {
    width: 100%;
    max-width: 400px;
}

.progress-bar-bg {
    width: 100%;
    height: 8px;
    background: rgba(96, 165, 250, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #3B82F6, #60A5FA);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-info {
    text-align: center;
    margin-top: 12px;
    font-size: 18px;
    font-weight: 600;
    color: #60A5FA;
}

.eval-status {
    font-size: 14px;
    color: rgba(148, 163, 184, 1);
}

.eval-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.success-check {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #10B981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

.eval-success p {
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin: 0;
}

.eval-success small {
    font-size: 14px;
    color: rgba(148, 163, 184, 1);
}

.form-section-title {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: white;
    font-weight: 600;
}

/* ===================================
   MOBILE RESPONSIVE STYLES
   =================================== */

@media (max-width: 768px) {
    .modal-overlay {
        padding: 0;
        align-items: flex-end;
    }

    .modal-container {
        max-width: 100%;
        max-height: 95vh;
        border-radius: 24px 24px 0 0;
        margin: 0;
    }

    .modal-header {
        padding: 20px;
    }

    .modal-title {
        font-size: 20px;
    }

    .modal-close {
        width: 36px;
        height: 36px;
    }

    .registration-form {
        padding: 20px;
    }

    .form-step-title {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .form-row {
        gap: 12px;
        margin-bottom: 12px;
    }

    .form-group input,
    .form-group select {
        padding: 12px 14px;
        font-size: 16px;
        /* Prevent zoom on iOS */
    }

    .loan-summary {
        padding: 16px;
        margin: 20px 0;
    }

    .summary-item {
        padding: 10px 0;
    }

    .summary-item span {
        font-size: 13px;
    }

    .summary-item strong {
        font-size: 15px;
    }

    .summary-item.highlight strong {
        font-size: 17px;
    }

    .form-navigation {
        margin-top: 24px;
        padding-top: 20px;
        flex-wrap: wrap;
    }

    .btn-secondary,
    .btn-primary {
        padding: 12px 20px;
        font-size: 15px;
        flex: 1;
        justify-content: center;
    }

    .step-indicators {
        order: -1;
        width: 100%;
        margin-bottom: 16px;
    }

    .evaluation-screen {
        padding: 32px 20px;
    }

    .eval-title {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .modal-container {
        max-height: 100vh;
        border-radius: 0;
    }

    .modal-header {
        padding: 16px;
    }

    .modal-title {
        font-size: 18px;
    }

    .registration-form {
        padding: 16px;
    }

    .form-step-title {
        font-size: 17px;
    }

    .loan-summary {
        padding: 14px;
    }

    .btn-secondary,
    .btn-primary {
        padding: 12px 16px;
        font-size: 14px;
    }
}

/* Landscape Mobile Optimization */
@media (max-width: 768px) and (orientation: landscape) {
    .modal-container {
        max-height: 100vh;
        border-radius: 0;
    }

    .modal-header {
        position: sticky;
        top: 0;
    }
}

/* Desktop: Two-column layout for form rows */
@media (min-width: 769px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

/* === EVALUATION SCREEN (PREMIUM FIX) === */
.evaluation-screen {
    position: relative;
    width: 100%;
    min-height: 450px;
    /* Force minimum height to prevent collapse */
    /* height: 100%;  Removed to allow content to dictate height if needed */
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-radius: inherit;
    overflow-y: auto;
    /* Allow scrolling if content is tall */
}

/* Ensure content can scroll on small screens */
@media (max-height: 700px) {
    .evaluation-screen {
        justify-content: flex-start;
        padding-top: 40px;
    }
}

.evaluation-content {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 24px;
    width: 100%;
    max-width: 420px;
    text-align: center;
    box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.5);
    animation: scaleIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.eval-icon-container {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(37, 99, 235, 0.2) 0%, transparent 70%);
}

.eval-icon {
    width: 48px;
    height: 48px;
    color: var(--primary);
    filter: drop-shadow(0 0 15px rgba(37, 99, 235, 0.6));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--primary);
    opacity: 0;
    animation: pulseRing 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulseRing {
    0% {
        transform: scale(0.7);
        opacity: 0.8;
        border-width: 2px;
    }

    100% {
        transform: scale(2);
        opacity: 0;
        border-width: 0px;
    }
}

.eval-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

/* Modern Progress Bar */
.progress-container {
    position: relative;
    margin-bottom: 24px;
    width: 100%;
}

.progress-bar-bg {
    height: 16px;
    /* Premium height */
    background: rgba(15, 23, 42, 0.6);
    /* Dark/Glassy track */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    /* Pill shape */
    overflow: hidden;
    margin-bottom: 14px;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #3B82F6 0%, #6366f1 50%, #3B82F6 100%);
    background-size: 200% 100%;
    width: 0%;
    border-radius: 100px;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    animation: gradientMove 1.5s linear infinite;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.6);
}

/* Shine effect */
.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.3) 0%, transparent 60%);
    border-radius: 100px;
}

@keyframes gradientMove {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: -100% 0;
    }
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
}

#evalPercentage {
    color: var(--primary);
    background: rgba(37, 99, 235, 0.1);
    padding: 2px 8px;
    border-radius: 6px;
}

.eval-status {
    color: var(--text-muted);
    font-size: 14px;
    min-height: 20px;
    margin-top: 5px;
    transition: opacity 0.3s ease;
}

/* Success State */
.eval-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeIn 0.5s ease;
}

.success-check {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    margin-bottom: 20px;
    box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.5);
    animation: popIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#evalSuccessMessage p {
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin-bottom: 6px;
}

#evalSuccessMessage small {
    color: var(--text-muted);
    display: block;
    margin-bottom: 20px;
    font-size: 14px;
}

/* Mobile Adjustments */
@media (max-width: 480px) {
    .evaluation-screen {
        padding: 16px;
    }

    .evaluation-content {
        padding: 24px;
        border-radius: 16px;
    }

    .eval-title {
        font-size: 20px;
    }
}

/* === CHATBOT UPGRADES (Professional) === */
.chatbot-security {
    background: rgba(10, 15, 30, 0.95);
    padding: 12px 16px;
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-top: 1px solid var(--border-primary);
    border-radius: 0 0 16px 16px;
    /* Match chatbot window radius */
    backdrop-filter: blur(10px);
    letter-spacing: 0.02em;
    margin-top: auto;
    /* Push to bottom if flex container expands */
}

.chatbot-security svg {
    color: #10B981;
    /* Green-500 for security */
}

/* Star Rating Options */
.chatbot-option.star-option {
    border-color: rgba(250, 204, 21, 0.3);
    color: var(--text-secondary);
    justify-content: flex-start;
    /* Align neatly */
}

.chatbot-option.star-option svg {
    color: #FACC15;
    /* Yellow-400 */
    fill: rgba(250, 204, 21, 0.2);
    margin-right: 8px;
}

.chatbot-option.star-option:hover {
    background: rgba(250, 204, 21, 0.1);
    border-color: #FACC15;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(250, 204, 21, 0.15);
}

/* Ticket Info Message Styling */
.message strong {
    color: var(--accent);
    font-weight: 700;
}

/* === HOW IT WORKS SECTION === */
.how-it-works {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.steps-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 60px;
    gap: 20px;
    position: relative;
}

.step-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    z-index: 2;
}

.step-icon-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 24px;
}

.step-icon {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.1);
}

.step-card:hover .step-icon {
    transform: translateY(-5px) scale(1.05);
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.3);
    color: white;
    background: var(--primary);
}

.step-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 28px;
    height: 28px;
    background: var(--accent);
    color: black;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    z-index: 2;
    border: 2px solid var(--app-bg);
}

.step-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.step-card p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    max-width: 280px;
}

/* Connectors */
.step-connector {
    flex: 1;
    height: 80px;
    /* Aligns with icon height */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 -30px;
    /* Pull connector closer */
    z-index: 1;
    opacity: 0.3;
}

.connector-line {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    position: relative;
}

.connector-line::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    transform: translateY(-50%);
    animation: connectorFlow 2s infinite linear;
}

@keyframes connectorFlow {
    0% {
        left: 0;
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        left: 100%;
        opacity: 0;
    }
}

/* === LIVE TICKER === */
.live-ticker {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    pointer-events: none;
    /* Let clicks pass through */
}

.ticker-content {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: translateY(100px);
    /* Start hidden */
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.live-ticker.active .ticker-content {
    transform: translateY(0);
    opacity: 1;
}

.ticker-icon {
    font-size: 14px;
    animation: pulse 2s infinite;
}

@media (max-width: 768px) {
    .live-ticker {
        bottom: 110px;
        /* CLEAR of chatbot button (28px + 64px + margin) */
        left: 50%;
        transform: translateX(-50%);
        width: auto;
        max-width: 92%;
        display: flex;
        justify-content: center;
    }

    .ticker-content {
        padding: 8px 16px;
        /* Smaller padding */
        font-size: 12px;
        /* Smaller font */
        gap: 8px;
        white-space: nowrap;
        /* Prevent wrapping if possible */
        overflow: hidden;
        text-overflow: ellipsis;
        background: rgba(15, 23, 42, 0.95);
        /* More opaque for readability */
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
        border: 1px solid rgba(255, 255, 255, 0.15);
    }

    /* Allow wrapping for very long names if needed, but preferably truncate or scroll */
    /* For now, let's keep it simple. If it's too long, it might scale down or wrap. */
}

@media (max-width: 768px) {
    .steps-container {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .step-connector {
        display: none;
        /* Hide horizontal connectors on mobile */
    }

    .step-card {
        width: 100%;
        max-width: 320px;
    }
}

/* === FAQ SECTION === */
.faq-section {
    padding: 80px 0;
    background: var(--bg-secondary, rgba(10, 15, 30, 0.95));
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
}

.faq-item.active {
    border-color: var(--accent);
    background: rgba(37, 99, 235, 0.05);
}

.faq-question {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    font-size: 16px;
    color: var(--text-primary);
}

.faq-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
    color: var(--accent);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
    padding: 0 20px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    /* Enough for longer answers */
    padding-bottom: 20px;
    transition: max-height 0.4s ease-in-out;
}

@media (max-width: 768px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

/* Iframe Visibility for Captcha/Success */
#hidden_iframe {
    width: 100%;
    height: 100%;
    border: none;
    min-height: 480px;
    border-radius: 0 0 16px 16px;
    background: white;
    /* Ensure white background for FormSubmit page */
}

/* === ULTRA-PREMIUM FINTECH FORM DESIGN === */

/* Overriding the basic modal container for a premium look */
#registrationModal .modal-container {
    background: rgba(10, 15, 30, 0.85);
    /* Deep Navy Glass */
    backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--border-accent);
    /* Premium Border */
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(37, 99, 235, 0.15);
    border-radius: 24px;
    padding: 40px;
    color: #F8FAFC;
    max-width: 500px;
}

#registrationModal .modal-title {
    color: #F8FAFC;
    font-size: 2rem;
    font-weight: 800;
}

#registrationModal .modal-close {
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    padding: 8px;
    transition: all 0.3s ease;
}

#registrationModal .modal-close:hover {
    color: #fff;
    background: rgba(37, 99, 235, 0.2);
    transform: rotate(90deg);
}

.form-step {
    display: none;
    animation: premiumFadeInStep 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.form-step.active {
    display: block;
}

@keyframes premiumFadeInStep {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.form-step-title {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-accent);
    padding-bottom: 12px;
    font-family: var(--font-display);
    letter-spacing: -0.02em;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: #cbd5e1;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

/* Premium Inputs */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    font-size: 1.05rem;
    color: #F8FAFC;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(15, 23, 42, 0.6);
    font-family: var(--font-body);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.15), inset 0 0 10px rgba(0, 0, 0, 0.5);
    background: rgba(15, 23, 42, 0.9);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233B82F6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

/* Range Slider Styling */
.form-group input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    background: transparent;
    padding: 10px 0;
}

.form-group input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 28px;
    width: 28px;
    border-radius: 50%;
    background: var(--gradient-primary);
    cursor: pointer;
    margin-top: -10px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
    border: 2px solid #fff;
    transition: transform 0.2s ease;
}

.form-group input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.form-group input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 8px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Legal Checkbox Premium */
#verificationSuccess .form-group {
    background: rgba(37, 99, 235, 0.05) !important;
    border: 1px solid var(--border-accent) !important;
}

#legalCheckbox {
    accent-color: var(--primary);
    width: 18px;
    height: 18px;
}

/* Spinner for Step 3 */
.verification-spinner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
    text-align: center;
}

.eval-status-text {
    font-size: 1.2rem;
    color: #e2e8f0;
    font-weight: 500;
    margin-bottom: 30px;
    text-align: center;
    line-height: 1.5;
}

.fintech-spinner {
    width: 70px;
    height: 70px;
    border: 4px solid rgba(37, 99, 235, 0.1);
    border-left-color: var(--primary-light);
    border-right-color: var(--primary);
    border-radius: 50%;
    animation: fintechSpin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    filter: drop-shadow(0 0 10px rgba(37, 99, 235, 0.3));
}

@keyframes fintechSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Success Container */
.verification-success-container {
    text-align: center;
    padding: 30px 10px;
    animation: premiumFadeInStep 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.success-title {
    background: linear-gradient(135deg, #10B981 0%, #34D399 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 25px;
    font-family: var(--font-display);
    text-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

/* WhatsApp Button */
.btn-whatsapp-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    padding: 20px 24px;
    font-size: 1.15rem;
    font-weight: 800;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--font-body);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.btn-whatsapp-large::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to bottom right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0) 100%);
    transform: rotate(45deg) translateY(100%);
    transition: transform 0.6s ease;
}

.btn-whatsapp-large:hover::after {
    transform: rotate(45deg) translateY(-100%);
}

.btn-whatsapp-large:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    filter: brightness(1.05);
}

.btn-whatsapp-large:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

/* Form Navigation UI */
.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.step-indicators {
    display: flex;
    gap: 8px;
}

.step-indicator {
    width: 40px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    transition: all 0.4s ease;
}

.step-indicator.active {
    background: var(--gradient-primary);
    box-shadow: 0 0 12px rgba(37, 99, 235, 0.4);
}

/* === MOBILE OPTIMIZATION === */
@media (max-width: 480px) {
    #registrationModal .modal-container {
        padding: 24px 20px;
        margin: 15px;
        max-width: calc(100% - 30px);
    }

    #registrationModal .modal-title {
        font-size: 1.6rem;
    }

    .form-step-title {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }

    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="tel"],
    .form-group input[type="number"],
    .form-group input[type="date"],
    .form-group select,
    .btn-whatsapp-large {
        /* Minimum touch target 44px for mobile accessibility */
        padding: 16px 14px;
    }

    .form-navigation {
        flex-direction: column-reverse;
        gap: 20px;
    }

    .form-navigation button {
        width: 100%;
        padding: 16px;
    }
}