:root {
    --primary: #0066FF;
    --primary-glow: rgba(0, 102, 255, 0.4);
    --bg-dark: #05070A;
    --surface: rgba(13, 17, 23, 0.7);
    --text-main: #FFFFFF;
    --text-muted: #A0AEC0;
    --glass-border: rgba(255, 255, 255, 0.1);
    --accent-glow: radial-gradient(circle, rgba(0, 102, 255, 0.15) 0%, rgba(5, 7, 10, 0) 70%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(5, 7, 10, 0.6);
    border-bottom: 1px solid var(--glass-border);
}

nav {
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 400;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-main);
}

.nav-links a.active {
    position: relative;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 20px;
    height: 2px;
    background: var(--primary);
}

.nav-auth {
    display: flex;
    align-items: center;
    gap: 20px;
}

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-text {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 14px;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-glow);
}

.mobile-menu-btn {
    display: none;
}

/* Hero Section */
.hero {
    padding-top: 160px;
    padding-bottom: 100px;
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-glow {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.1) 0%, rgba(5, 7, 10, 0) 70%);
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
}

.badge {
    background: rgba(0, 102, 255, 0.1);
    border: 1px solid rgba(0, 102, 255, 0.2);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 24px;
}

.hero-text-side h1 {
    font-size: 72px;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 24px;
}

.hero-text-side h1 span {
    color: var(--primary);
}

.hero-text-side p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 480px;
    margin-bottom: 40px;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    padding: 18px 36px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 60px;
}

.btn-hero svg {
    width: 20px;
    height: 20px;
}

.hero-features {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.h-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 14px;
}

.h-feature svg {
    width: 18px;
    height: 18px;
    color: var(--primary);
}

/* Hero Visual Side */
.hero-visual-side {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-car {
    max-width: 140%;
    position: absolute;
    right: -100px;
    opacity: 0.6;
    z-index: 1;
    mask-image: linear-gradient(to left, black 60%, transparent);
}

.phone-container {
    position: relative;
    z-index: 2;
    animation: float 6s ease-in-out infinite;
    mix-blend-mode: screen; /* This hides the black background of the image */
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.phone-mockup {
    width: 320px;
    filter: brightness(1.1) contrast(1.1);
}

/* Partners */
.partners {
    padding: 60px 0;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    background: rgba(13, 17, 23, 0.3);
}

.partners-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
}

.partners-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.partners-logos {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
}

.partner-item {
    font-weight: 700;
    font-size: 16px;
    color: var(--text-muted);
    opacity: 0.6;
    transition: opacity 0.3s;
    cursor: default;
    text-transform: uppercase;
}

.partner-item:hover {
    opacity: 1;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 80px 40px;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 20px;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 102, 255, 0.4);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.f-icon-box {
    width: 50px;
    height: 50px;
    background: rgba(0, 102, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.f-icon-box svg {
    color: var(--primary);
    width: 24px;
    height: 24px;
}

.feature-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-muted);
}

/* Main Footer */
.main-footer {
    padding: 100px 0 40px;
    background: rgba(13, 17, 23, 0.5);
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 80px;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 20px;
    font-size: 14px;
    max-width: 280px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 24px;
}

.social-links a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.footer-links-group h4 {
    margin-bottom: 24px;
    font-size: 16px;
}

.footer-links-group ul {
    list-style: none;
}

.footer-links-group li {
    margin-bottom: 12px;
}

.footer-links-group a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links-group a:hover {
    color: var(--primary);
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-muted);
}

.contact-list i {
    width: 16px;
    height: 16px;
    color: var(--primary);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted);
}

.footer-web {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
}

/* Sections Common */
.section-header {
    margin-bottom: 60px;
}

.section-header.align-center {
    text-align: center;
}

.section-header h2 {
    font-size: 48px;
    line-height: 1.2;
    margin-top: 10px;
}

.section-header h2 span {
    color: var(--primary);
}

.section-header p {
    color: var(--text-muted);
    font-size: 18px;
    margin-top: 16px;
}

/* Products Section */
.products-section {
    padding: 100px 40px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.glass-card {
    background: rgba(13, 17, 23, 0.4);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.glass-card:hover {
    border-color: rgba(0, 102, 255, 0.3);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.product-card .product-image {
    height: 240px;
}

.product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 30px;
}

.product-info h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.product-info p {
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 25px;
}

.btn-secondary {
    display: inline-block;
    padding: 12px 24px;
    border: 1px solid var(--primary);
    color: var(--primary);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
}

/* How Section */
.how-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(0, 102, 255, 0.05) 50%, var(--bg-dark) 100%);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
}

.step-item {
    position: relative;
    padding-top: 40px;
}

.step-number {
    font-size: 72px;
    font-weight: 800;
    color: rgba(0, 102, 255, 0.25);
    position: absolute;
    top: -10px;
    left: -5px;
    transition: all 0.3s;
    line-height: 1;
}

.step-item:hover .step-number {
    color: var(--primary);
    opacity: 0.4;
    transform: scale(1.1);
}

.step-item h3 {
    font-size: 20px;
    margin-bottom: 12px;
    position: relative;
}

.step-item p {
    color: var(--text-muted);
    font-size: 15px;
    position: relative;
}

.step-divider {
    position: absolute;
    top: 60px;
    left: -40px;
    width: 30px;
    border-top: 2px dashed rgba(255,255,255,0.1);
}

/* App CTA */
.app-cta {
    padding: 80px 40px 120px;
}

.app-cta-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    padding: 60px;
    gap: 40px;
}

.app-cta-text h2 {
    font-size: 42px;
    margin-bottom: 20px;
}

.app-cta-text h2 span {
    color: var(--primary);
}

.app-cta-text p {
    color: var(--text-muted);
    font-size: 18px;
    margin-bottom: 40px;
}

.app-buttons {
    display: flex;
    gap: 20px;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    color: black;
    padding: 10px 20px;
    border-radius: 12px;
    text-decoration: none;
    transition: transform 0.2s;
}

.store-btn:hover {
    transform: translateY(-3px);
}

.store-btn i {
    width: 24px;
    height: 24px;
}

.store-btn small {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    opacity: 0.6;
}

.store-btn span {
    font-weight: 700;
    font-size: 16px;
}

.app-cta-visual {
    display: flex;
    justify-content: center;
}

.floating-phone {
    width: 280px;
    animation: float 6s ease-in-out infinite;
}

/* Responsive */
@media (max-width: 1024px) {
    .nav-links { 
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--bg-dark);
        padding: 40px;
        transition: left 0.3s ease;
        z-index: 999;
    }
    .nav-links.active {
        left: 0;
    }
    .mobile-menu-btn {
        display: block;
        cursor: pointer;
    }
    .nav-auth { display: none; }
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-text-side { display: flex; flex-direction: column; align-items: center; }
    .hero-car { display: none; }
    .phone-mockup { width: 280px; }
    .hero-text-side h1 { font-size: 52px; }
    .partners-wrapper { flex-direction: column; text-align: center; }
    .partners-logos { flex-wrap: wrap; justify-content: center; gap: 30px; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    
    .products-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .app-cta-content { grid-template-columns: 1fr; text-align: center; }
    .app-buttons { justify-content: center; }
    .steps-grid { grid-template-columns: 1fr; gap: 60px; }
    .step-divider { display: none; }
    .section-header h2 { font-size: 38px; }
}

@media (max-width: 640px) {
    .features-grid { grid-template-columns: 1fr; }
    .hero-text-side h1 { font-size: 42px; }
    .container { padding: 0 20px; }
    .footer-grid { grid-template-columns: 1fr; }
    .app-buttons { flex-direction: column; }
    .app-cta-content { padding: 40px 20px; }
}

/* Brand Logos - High-end Monochromatic to Color Transition */
.partners-logos {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
    width: 100%;
    align-items: center;
}

.partner-item {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.partner-svg {
    width: 100%;
    max-width: 150px;
    height: auto;
    color: rgba(255, 255, 255, 0.28);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.partner-item:hover .partner-svg {
    transform: scale(1.08);
}

.brand-sura:hover .partner-svg {
    color: #00A3E0 !important;
    filter: drop-shadow(0 0 12px rgba(0, 163, 224, 0.4));
}

.brand-mundial:hover .partner-svg {
    color: #0066FF !important;
    filter: drop-shadow(0 0 12px rgba(0, 102, 255, 0.4));
}

.brand-equidad:hover .partner-svg {
    color: #00A859 !important;
    filter: drop-shadow(0 0 12px rgba(0, 168, 89, 0.4));
}

.brand-bolivar:hover .partner-svg {
    color: #E31D1A !important;
    filter: drop-shadow(0 0 12px rgba(227, 29, 26, 0.4));
}

.brand-hdi:hover .partner-svg {
    color: #55B322 !important;
    filter: drop-shadow(0 0 12px rgba(85, 179, 34, 0.4));
}

.brand-sbs:hover .partner-svg {
    color: #002D62 !important;
    filter: drop-shadow(0 0 12px rgba(0, 45, 98, 0.5));
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    width: 100%;
    max-width: 450px;
    padding: 40px;
    position: relative;
    animation: modalAppear 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.modal-header h2 {
    font-size: 28px;
    font-weight: 700;
}

.close-modal {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--text-main);
}

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

.form-group label {
    display: block;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.form-group select {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: white;
    font-family: inherit;
    font-size: 15px;
    transition: all 0.3s;
    appearance: none;
    cursor: pointer;
}

.form-group select option {
    background: #1a1a2e;
    color: white;
}

.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

.form-group input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: white;
    font-family: inherit;
    font-size: 15px;
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

.full-width {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    margin-top: 10px;
    border: none;
    cursor: pointer;
}

.modal-footer-text {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-muted);
}

.modal-footer-text a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.modal-footer-text a:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .modal-content {
        padding: 30px 20px;
    }
}

/* User Profile Navbar Dropdown styling */
.user-profile {
    position: relative;
    cursor: pointer;
}

.user-avatar {
    width: 42px;
    height: 42px;
    background: rgba(0, 102, 255, 0.15);
    border: 2px solid rgba(0, 102, 255, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 15px;
    color: white;
    position: relative;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.user-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 102, 255, 0.3);
}

.user-status-dot {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    background: #00C853;
    border: 2px solid var(--bg-dark);
    border-radius: 50%;
}

.user-dropdown {
    position: absolute;
    top: 55px;
    right: 0;
    width: 240px;
    background: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: none;
    flex-direction: column;
    z-index: 1001;
    animation: dropdownReveal 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.user-dropdown.active {
    display: flex;
}

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

.dropdown-header {
    padding: 8px 12px 12px;
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    font-size: 15px;
    color: white;
}

.user-email {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
    word-break: break-all;
}

.dropdown-divider {
    height: 1px;
    background: var(--glass-border);
    margin: 8px 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    border-radius: 8px;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.dropdown-item svg {
    width: 16px;
    height: 16px;
}

.dropdown-item.text-danger {
    color: #FF3D00;
}

.dropdown-item.text-danger:hover {
    background: rgba(255, 61, 0, 0.1);
    color: #FF3D00;
}

/* Toast Notifications Container & Design */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    width: 340px;
    padding: 16px 20px;
    background: rgba(13, 17, 23, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 16px;
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
}

.toast-success::before {
    background: #00C853;
}

.toast-error::before {
    background: #FF3D00;
}

.toast-info::before {
    background: var(--primary);
}

.toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-icon.success {
    color: #00C853;
}

.toast-icon.error {
    color: #FF3D00;
}

.toast-icon.info {
    color: var(--primary);
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
}

.toast-message {
    font-size: 13px;
    color: var(--text-muted);
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.toast-close:hover {
    color: white;
}

/* Shake animation for input errors */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

.shake {
    animation: shake 0.4s ease-in-out;
}

.input-error {
    border-color: #FF3D00 !important;
    background: rgba(255, 61, 0, 0.05) !important;
}

.form-error-text {
    font-size: 12px;
    color: #FF3D00;
    margin-top: 6px;
    display: none;
}

/* ============================================================
   AUTH MODALS — Professional insurance portal design
   ============================================================ */
.auth-modal {
    display: flex;
    width: 95vw;
    max-width: 780px;
    padding: 0;
    overflow: hidden;
    background: none;
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
    animation: modalAppear 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.auth-modal-lg { max-width: 900px; }

/* Left brand panel */
.auth-brand-panel {
    width: 260px;
    min-width: 260px;
    background: linear-gradient(160deg, #003ecc 0%, #0055ee 50%, #0044bb 100%);
    padding: 44px 28px;
    display: flex;
    flex-direction: column;
    color: white;
    position: relative;
    overflow: hidden;
}
.auth-brand-panel::before {
    content: '';
    position: absolute;
    width: 200px; height: 200px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
    top: -60px; right: -60px;
}
.auth-brand-panel::after {
    content: '';
    position: absolute;
    width: 150px; height: 150px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
    bottom: 30px; left: -50px;
}
.auth-logo {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 32px;
    position: relative;
}
.auth-brand-panel h2 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 10px;
    position: relative;
}
.auth-brand-panel > p {
    font-size: 13px;
    opacity: 0.75;
    line-height: 1.6;
    margin-bottom: 32px;
    position: relative;
}
.auth-benefits {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
    position: relative;
}
.auth-benefits li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    opacity: 0.88;
}
.auth-benefits li i { width: 16px; height: 16px; flex-shrink: 0; }
.auth-brand-footer {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 10px;
    opacity: 0.55;
    margin-top: 28px;
    position: relative;
}
.auth-brand-footer i { width: 13px; height: 13px; }

/* Right form panel */
.auth-form-panel {
    flex: 1;
    background: #0b0f18;
    padding: 40px 36px 32px;
    overflow-y: auto;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
}
.auth-form-panel h3 {
    font-size: 22px;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
}
.auth-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* Fields */
.auth-field {
    margin-bottom: 16px;
}
.auth-field > label:not(.check-label),
.auth-field-row .auth-field > label:not(.check-label) {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 7px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}
.field-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.field-icon-wrap > i:first-child {
    position: absolute;
    left: 13px;
    width: 16px; height: 16px;
    color: var(--text-muted);
    pointer-events: none;
    flex-shrink: 0;
}
.field-icon-wrap input {
    width: 100%;
    padding: 12px 12px 12px 40px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 10px;
    color: white;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.25s, background 0.25s;
}
.field-icon-wrap input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0,102,255,0.07);
}
.field-icon-wrap input.input-error {
    border-color: #ef4444 !important;
    background: rgba(239,68,68,0.06) !important;
}
.toggle-pw {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 0;
    display: flex;
    align-items: center;
    line-height: 1;
}
.toggle-pw i { width: 16px; height: 16px; }
.toggle-pw:hover { color: white; }

.auth-field select {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 10px;
    color: white;
    font-size: 14px;
    font-family: inherit;
    appearance: none;
    cursor: pointer;
    transition: border-color 0.25s;
}
.auth-field select:focus {
    outline: none;
    border-color: var(--primary);
}
.auth-field select option { background: #0b0f18; color: white; }

.auth-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Row: remember + forgot */
.auth-options-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    margin-top: -4px;
}
.check-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    cursor: pointer;
}
.check-label input[type="checkbox"] { accent-color: var(--primary); }
.forgot-link {
    font-size: 12px;
    color: var(--primary);
    text-decoration: none;
}
.forgot-link:hover { text-decoration: underline; }

/* Terms label */
.terms-label {
    margin-bottom: 0;
    font-size: 12px;
    line-height: 1.5;
    align-items: flex-start;
}
.terms-label a { color: var(--primary); }

/* Submit button */
.auth-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 10px;
    padding: 13px;
    font-size: 15px;
}
.auth-submit i { width: 16px; height: 16px; }

/* Outline button */
.btn-outline {
    padding: 12px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    color: var(--text-muted);
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.25s, color 0.25s;
    text-align: center;
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

/* Divider */
.auth-divider {
    text-align: center;
    position: relative;
    margin: 16px 0;
}
.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%; left: 0; right: 0;
    height: 1px;
    background: rgba(255,255,255,0.08);
}
.auth-divider span {
    position: relative;
    background: #0b0f18;
    padding: 0 12px;
    font-size: 12px;
    color: var(--text-muted);
}

/* Password strength */
.pw-strength-wrap {
    margin-bottom: 14px;
    margin-top: -4px;
}
.pw-bar {
    display: flex;
    gap: 4px;
    margin-bottom: 5px;
}
.pw-seg {
    flex: 1;
    height: 3px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    transition: background 0.3s;
}
.pw-label {
    font-size: 11px;
    color: var(--text-muted);
}

/* Security badge */
.auth-security-badge {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.07);
    color: var(--text-muted);
    font-size: 11px;
    margin-top: 20px;
}
.auth-security-badge i { width: 13px; height: 13px; color: #4ade80; flex-shrink: 0; }

/* Close button for auth modals */
.auth-close {
    position: absolute;
    top: 14px; right: 14px;
    z-index: 10;
    background: rgba(255,255,255,0.08);
    border: none;
    border-radius: 50%;
    width: 30px; height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: background 0.25s;
}
.auth-close:hover { background: rgba(255,255,255,0.18); }
.auth-close i { width: 15px; height: 15px; }

/* Loading state */
.auth-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Responsive */
@media (max-width: 600px) {
    .auth-brand-panel { display: none; }
    .auth-modal, .auth-modal-lg { max-width: 100%; }
    .auth-form-panel { padding: 32px 22px 24px; }
    .auth-field-row { grid-template-columns: 1fr; }
}

/* --- Form row (two columns) --- */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* --- Custom cursor --- */
*, *::before, *::after {
    cursor: none !important;
}

@media (hover: none) {
    *, *::before, *::after { cursor: auto !important; }
    .cursor-dot, .cursor-ring { display: none; }
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: transform 0.15s, width 0.25s, height 0.25s, background 0.25s;
    box-shadow: 0 0 10px var(--primary), 0 0 20px var(--primary-glow);
}

.cursor-dot.hovered {
    width: 0;
    height: 0;
}

.cursor-ring {
    width: 38px;
    height: 38px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    transition: width 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                height 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                border-color 0.3s, opacity 0.3s;
    opacity: 0.7;
}

.cursor-ring.hovered {
    width: 58px;
    height: 58px;
    border-color: #00d4ff;
    opacity: 1;
}

/* ============================================================
   SOAT MODAL — 2-step plate lookup
   ============================================================ */
.soat-modal-content {
    width: 95vw;
    max-width: 520px;
    padding: 0;
    background: #0b0f18;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.07);
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
    animation: modalAppear 0.4s cubic-bezier(0.4,0,0.2,1);
    position: relative;
}

.soat-step {
    padding: 36px 36px 32px;
}

.soat-step-header {
    text-align: center;
    margin-bottom: 28px;
}
.soat-brand-icon {
    width: 52px; height: 52px;
    background: rgba(0,102,255,0.15);
    border: 1px solid rgba(0,102,255,0.3);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
    color: var(--primary);
}
.soat-brand-icon i { width: 26px; height: 26px; }
.soat-step-header h2 { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.soat-step-header p  { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* ── Colombian plate visual ── */
.plate-lookup-wrap { display: flex; flex-direction: column; align-items: center; gap: 18px; }

.co-plate-card {
    width: 280px;
    background: #f5f0dc;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.5), inset 0 0 0 3px #c8b560;
    border: 4px solid #d4a017;
}
.co-plate-top {
    background: linear-gradient(90deg, #003087 0%, #002266 50%, #003087 100%);
    padding: 5px 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.co-plate-flag { font-size: 14px; }
.co-plate-country {
    font-size: 10px;
    font-weight: 700;
    color: #ffd700;
    letter-spacing: 3px;
    flex: 1;
    text-align: center;
}
.co-plate-input {
    display: block;
    width: 100%;
    padding: 14px 16px 10px;
    background: transparent;
    border: none;
    font-size: 40px;
    font-weight: 800;
    color: #1a1a1a;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 8px;
    font-family: 'Outfit', monospace;
    outline: none;
    cursor: text;
}
.co-plate-input::placeholder { color: #aaa; letter-spacing: 4px; font-size: 32px; }
.co-plate-bottom {
    background: #e8ddb0;
    padding: 4px 10px;
    text-align: center;
    border-top: 1px solid #c8b560;
}
.co-plate-hint { font-size: 9px; color: #555; letter-spacing: 0.5px; }

/* Plate error */
.plate-error-msg {
    width: 100%;
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.3);
    border-radius: 10px;
    padding: 10px 14px;
    color: #fca5a5;
    font-size: 13px;
    text-align: center;
}

.soat-lookup-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 12px;
    padding: 13px;
    font-size: 15px;
}
.soat-lookup-btn i { width: 18px; height: 18px; }

.plate-info-note {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
}
.plate-info-note i { width: 13px; height: 13px; flex-shrink: 0; }

/* ── Step 2 vehicle card ── */
.vehicle-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 20px;
}
.vehicle-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}
.vehicle-found-badge {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    color: #4ade80;
}
.vehicle-found-badge.not-found { color: #fbbf24; }
.vehicle-found-badge i { width: 16px; height: 16px; }

.plate-back-btn {
    background: none;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 12px;
    padding: 5px 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.25s;
    font-family: inherit;
}
.plate-back-btn:hover { border-color: var(--primary); color: var(--primary); }
.plate-back-btn i { width: 13px; height: 13px; }

.vehicle-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.vehicle-info-item {}
.vehicle-info-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-muted);
    margin-bottom: 2px;
}
.vehicle-info-value {
    font-size: 14px;
    font-weight: 600;
    color: white;
}
.vehicle-plate-big {
    grid-column: span 2;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    margin-bottom: 4px;
}
.vehicle-plate-tag {
    background: #f5f0dc;
    border: 2px solid #d4a017;
    border-radius: 6px;
    padding: 4px 12px;
    font-size: 18px;
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: 4px;
    font-family: monospace;
}
.vehicle-plate-type {
    font-size: 13px;
    color: var(--text-muted);
}

.soat-quote-form {}
.soat-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 480px) {
    .soat-step { padding: 24px 20px; }
    .soat-form-row { grid-template-columns: 1fr; }
    .vehicle-info-grid { grid-template-columns: 1fr; }
    .vehicle-plate-big { grid-column: span 1; }
    .co-plate-input { font-size: 32px; letter-spacing: 6px; }
}

/* ============================================================
   PLATE CHECK MODAL — standalone popup
   ============================================================ */
.plate-modal-content {
    width: 95vw;
    max-width: 480px;
    background: #0b0f18;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.07);
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
    padding: 36px 32px 28px;
    animation: modalAppear 0.4s cubic-bezier(0.4,0,0.2,1);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

/* Header */
.pm-header { text-align: center; margin-bottom: 24px; }
.pm-icon {
    width: 52px; height: 52px;
    background: rgba(0,102,255,0.12);
    border: 1px solid rgba(0,102,255,0.25);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 14px;
    color: var(--primary);
}
.pm-icon i { width: 26px; height: 26px; }
.pm-header h2 { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.pm-header p  { font-size: 13px; color: var(--text-muted); }

/* Result header */
.pm-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

/* Quotes section */
.pm-quotes-section {
    margin-top: 18px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 14px;
    overflow: hidden;
}
.pm-quotes-title {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.02);
}
.pm-quotes-title i { width: 14px; height: 14px; }

.pm-quotes-list { display: flex; flex-direction: column; }

.pm-quote-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.2s;
    gap: 12px;
}
.pm-quote-row:last-child { border-bottom: none; }
.pm-quote-row:hover { background: rgba(255,255,255,0.03); }
.pm-quote-row.best-price { background: rgba(0,102,255,0.06); }

.pm-quote-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}
.pm-quote-badge-best {
    font-size: 9px;
    font-weight: 700;
    background: var(--primary);
    color: white;
    border-radius: 4px;
    padding: 2px 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
}
.pm-quote-name {
    font-size: 14px;
    font-weight: 500;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pm-quote-price {
    font-size: 16px;
    font-weight: 700;
    color: white;
    white-space: nowrap;
}
.pm-quote-row.best-price .pm-quote-price { color: #60a5fa; }

/* Hero button for plate check */
.hero-cta-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}
.btn-plate-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.14);
    color: white;
    padding: 16px 28px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.25s, border-color 0.25s;
}
.btn-plate-check:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.25);
}
.btn-plate-check i { width: 18px; height: 18px; }

/* Remove old margin from btn-hero since it's now in a row */
.hero-cta-row .btn-hero { margin-bottom: 0; }
