/* ===================================
   CSS Variables & Base Styles
   =================================== */

:root {
    /* Colors */
    --navy-primary: #0A2463;
    --navy-dark: #051434;
    --navy-light: #1E3A8A;
    --white: #FFFFFF;
    --gray-100: #F8FAFC;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E0;
    --gray-600: #475569;
    --gray-800: #1E293B;
    --accent-gold: #D4AF37;
    --accent-teal: #14B8A6;
    
    /* Typography */
    --font-display: 'Playfair Display', serif;
    --font-body: 'Source Sans 3', sans-serif;
    
    /* Spacing */
    --section-padding: 100px;
    --container-width: 1280px;
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--gray-800);
    background-color: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===================================
   Typography
   =================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--navy-dark);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 24px;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 16px;
}

p {
    margin-bottom: 16px;
    font-size: 1.125rem;
}

a {
    text-decoration: none;
    color: var(--navy-primary);
    transition: var(--transition-smooth);
}

/* ===================================
   Cookie Banner
   =================================== */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 3px solid var(--navy-primary);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    padding: 24px;
    z-index: 10000;
    animation: slideUp 0.5s ease;
}

.cookie-banner.hidden {
    display: none;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
}

.cookie-text h4 {
    font-family: var(--font-body);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--navy-dark);
}

.cookie-text p {
    font-size: 0.95rem;
    margin: 0;
    color: var(--gray-600);
}

.cookie-text a {
    color: var(--navy-primary);
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

/* ===================================
   Buttons
   =================================== */

.btn-primary, .btn-secondary, .btn-nav {
    display: inline-block;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-family: var(--font-body);
    text-align: center;
}

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

.btn-primary:hover {
    background: var(--navy-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(10, 36, 99, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--navy-primary);
    border: 2px solid var(--navy-primary);
}

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

.btn-large {
    padding: 18px 40px;
    font-size: 1.125rem;
}

.btn-nav {
    background: var(--navy-primary);
    color: var(--white);
    padding: 10px 24px;
    font-size: 0.95rem;
}

/* ===================================
   Navigation
   =================================== */

.navbar {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 60px;
    width: auto;
    display: block;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 900;
    color: var(--navy-primary);
    letter-spacing: -1px;
}

.logo-tagline {
    font-size: 0.75rem;
    color: var(--gray-600);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-toggle span {
    width: 28px;
    height: 3px;
    background: var(--navy-primary);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-links a {
    color: var(--gray-800);
    font-weight: 600;
    font-size: 1rem;
    position: relative;
}

.nav-links a:not(.btn-nav):after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--navy-primary);
    transition: width 0.3s ease;
}

.nav-links a:not(.btn-nav):hover:after,
.nav-links a.active:after {
    width: 100%;
}

.nav-links a.active {
    color: var(--navy-primary);
}

/* ===================================
   Hero Section
   =================================== */

.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--white) 50%, var(--gray-100) 100%);
    z-index: -1;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(10, 36, 99, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

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

.hero-text h1 {
    line-height: 1.1;
    margin-bottom: 28px;
}

.highlight {
    color: var(--navy-primary);
    position: relative;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    gap: 48px;
    margin: 48px 0;
    padding: 32px 0;
    border-top: 2px solid var(--gray-200);
    border-bottom: 2px solid var(--gray-200);
}

.stat {
    text-align: left;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 900;
    color: var(--navy-primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--gray-600);
    margin-top: 8px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-visual {
    perspective: 1000px;
}

.visual-card {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-primary) 100%);
    padding: 48px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(10, 36, 99, 0.3);
    color: var(--white);
    transform: rotateY(-5deg);
    transition: transform 0.6s ease;
}

.visual-card:hover {
    transform: rotateY(0deg);
}

.visual-card h2 {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 12px;
}

.visual-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
}

.visual-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-badge {
    background: rgba(255, 255, 255, 0.15);
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--gray-600);
    font-size: 0.9rem;
    font-weight: 600;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ===================================
   Animations
   =================================== */

.fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

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

/* ===================================
   Section Styles
   =================================== */

section {
    padding: var(--section-padding) 0;
}

.section-header {
    margin-bottom: 64px;
}

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

.section-label {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--navy-primary);
    margin-bottom: 16px;
}

.section-intro {
    font-size: 1.2rem;
    color: var(--gray-600);
    max-width: 800px;
    margin: 0 auto;
}

/* ===================================
   Value Proposition
   =================================== */

.value-prop {
    background: var(--gray-100);
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.value-card {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: var(--transition-smooth);
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(10, 36, 99, 0.15);
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 24px;
}

.value-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--navy-primary);
}

.value-card p {
    color: var(--gray-600);
    font-size: 1rem;
    line-height: 1.7;
}

/* ===================================
   Services Preview
   =================================== */

.services-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-bottom: 48px;
}

.service-preview-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    padding: 40px;
    position: relative;
    transition: var(--transition-smooth);
}

.service-preview-card:hover {
    border-color: var(--navy-primary);
    box-shadow: 0 12px 40px rgba(10, 36, 99, 0.12);
}

.service-preview-card.featured {
    border-color: var(--navy-primary);
    background: linear-gradient(135deg, rgba(10, 36, 99, 0.02) 0%, var(--white) 100%);
}

.featured-badge {
    position: absolute;
    top: -12px;
    right: 32px;
    background: var(--accent-gold);
    color: var(--navy-dark);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 900;
    color: var(--gray-200);
    line-height: 1;
    margin-bottom: 16px;
}

.service-preview-card h3 {
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.service-duration {
    color: var(--accent-teal);
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.service-includes {
    list-style: none;
    margin: 24px 0;
    padding: 0;
}

.service-includes li {
    padding: 8px 0;
    padding-left: 28px;
    position: relative;
    color: var(--gray-600);
}

.service-includes li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-teal);
    font-weight: 700;
}

.service-link {
    color: var(--navy-primary);
    font-weight: 700;
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
}

.service-link:hover {
    gap: 12px;
}

.services-cta {
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ===================================
   Partnerships
   =================================== */

.partnerships {
    background: var(--navy-dark);
    color: var(--white);
}

.partnerships .section-label {
    color: var(--accent-gold);
}

.partnerships h2 {
    color: var(--white);
}

.partnerships .section-intro {
    color: rgba(255, 255, 255, 0.8);
}

.partner-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.partner-logo {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
}

.partner-logo:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-gold);
    transform: translateY(-4px);
}

.partner-name {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}

.partner-logo p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

/* ===================================
   Newsletter
   =================================== */

.newsletter {
    background: var(--navy-primary);
    color: var(--white);
}

.newsletter-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 48px;
}

.newsletter-text h2 {
    color: var(--white);
    margin-bottom: 12px;
}

.newsletter-text p {
    color: rgba(255, 255, 255, 0.9);
}

.newsletter-form {
    display: flex;
    gap: 12px;
    min-width: 400px;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 1rem;
    font-family: var(--font-body);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--accent-gold);
    background: rgba(255, 255, 255, 0.15);
}

/* ===================================
   Chatbot
   =================================== */

.chatbot-placeholder {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
}

.chatbot-icon {
    width: 60px;
    height: 60px;
    background: var(--navy-primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(10, 36, 99, 0.3);
    transition: var(--transition-smooth);
}

.chatbot-icon:hover {
    background: var(--navy-dark);
    transform: scale(1.1);
}

.chatbot-popup {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
    display: none;
}

.chatbot-popup.active {
    display: block;
    animation: fadeInUp 0.3s ease;
}

.chatbot-header {
    background: var(--navy-primary);
    color: var(--white);
    padding: 16px 20px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header h4 {
    color: var(--white);
    font-size: 1.125rem;
    margin: 0;
}

.chatbot-header button {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-body {
    padding: 24px;
}

.chatbot-body p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===================================
   Footer
   =================================== */

.footer {
    background: var(--navy-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 80px 0 32px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.footer-logo-img {
    height: 50px;
    width: auto;
    display: block;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-section h4 {
    color: var(--white);
    font-family: var(--font-body);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-section p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 24px;
}

.footer-section ul {
    list-style: none;
}

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

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-gold);
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.social-links a:hover {
    background: var(--accent-gold);
    transform: translateY(-4px);
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 32px;
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
    }
    
    .hero-visual {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        gap: 0;
        padding: 24px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        display: none;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        width: 100%;
        text-align: center;
        padding: 12px 0;
        border-bottom: 1px solid var(--gray-200);
    }
    
    .hero {
        padding: 80px 0 60px;
        min-height: auto;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-cta .btn-large {
        width: 100%;
    }
    
    .services-cards {
        grid-template-columns: 1fr;
    }
    
    .partner-logos {
        grid-template-columns: 1fr;
    }
    
    .newsletter-content {
        flex-direction: column;
        text-align: center;
    }
    
    .newsletter-form {
        flex-direction: column;
        width: 100%;
        min-width: auto;
    }
    
    .cookie-content {
        flex-direction: column;
        gap: 16px;
    }
    
    .cookie-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .cookie-actions button {
        width: 100%;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1.5rem;
    }
    
    .value-grid {
        grid-template-columns: 1fr;
    }
}
/* ===================================
   Navigation Auth Items
   =================================== */

.btn-nav-signin {
    background: var(--accent-gold);
    color: var(--navy-dark) !important;
    padding: 10px 22px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.btn-nav-signin:hover {
    background: #c49b28;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.4);
}

.nav-user-menu {
    position: relative;
}

.nav-user-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 50px;
    border: 2px solid rgba(255,255,255,0.3);
    transition: var(--transition-smooth);
    cursor: pointer;
}

.nav-user-trigger:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.6);
}

.nav-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-gold);
    color: var(--navy-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    flex-shrink: 0;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.18);
    border: 1px solid var(--gray-200);
    min-width: 200px;
    padding: 8px 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: var(--transition-smooth);
    z-index: 999;
}

.user-dropdown.open {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 10px 20px;
    font-size: 0.95rem;
    color: var(--gray-800);
    font-weight: 500;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background: var(--gray-100);
    color: var(--navy-primary);
}

.dropdown-divider {
    border: none;
    border-top: 1px solid var(--gray-200);
    margin: 6px 0;
}

.dropdown-signout {
    color: #e53e3e !important;
}

.dropdown-signout:hover {
    background: #fff5f5 !important;
}

/* ===================================
   Auth Modal Overlay
   =================================== */

.auth-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 20, 52, 0.75);
    backdrop-filter: blur(4px);
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.auth-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.auth-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -48%) scale(0.96);
    background: var(--white);
    border-radius: 20px;
    width: 90%;
    max-width: 480px;
    max-height: 92vh;
    overflow-y: auto;
    z-index: 10001;
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 30px 80px rgba(5, 20, 52, 0.35);
}

.auth-modal.active {
    opacity: 1;
    pointer-events: all;
    transform: translate(-50%, -50%) scale(1);
}

.auth-modal-close {
    position: absolute;
    top: 16px;
    right: 18px;
    background: var(--gray-100);
    border: none;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    color: var(--gray-600);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    z-index: 1;
}

.auth-modal-close:hover {
    background: var(--gray-200);
    color: var(--gray-800);
}

/* ===================================
   Auth Tabs
   =================================== */

.auth-tabs {
    display: flex;
    border-bottom: 2px solid var(--gray-200);
    padding: 24px 32px 0;
    gap: 4px;
}

.auth-tab {
    flex: 1;
    background: none;
    border: none;
    padding: 12px 16px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-body);
    color: var(--gray-600);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: var(--transition-smooth);
    border-radius: 6px 6px 0 0;
}

.auth-tab:hover {
    color: var(--navy-primary);
    background: var(--gray-100);
}

.auth-tab.active {
    color: var(--navy-primary);
    border-bottom-color: var(--navy-primary);
    background: transparent;
}

/* ===================================
   Auth Panel & Form
   =================================== */

.auth-panel {
    padding: 28px 32px 0;
}

.auth-header {
    text-align: center;
    margin-bottom: 24px;
}

.auth-logo {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--navy-primary);
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.auth-header h2 {
    font-size: 1.6rem;
    margin-bottom: 8px;
    color: var(--navy-dark);
}

.auth-header p {
    color: var(--gray-600);
    font-size: 0.95rem;
    margin: 0;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.auth-field label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-800);
}

.auth-field input[type="text"],
.auth-field input[type="email"],
.auth-field input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-body);
    color: var(--gray-800);
    background: var(--gray-100);
    transition: var(--transition-smooth);
    outline: none;
}

.auth-field input:focus {
    border-color: var(--navy-primary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(10, 36, 99, 0.1);
}

.auth-field input.input-error {
    border-color: #e53e3e;
    background: #fff5f5;
}

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

.optional {
    font-weight: 400;
    color: var(--gray-600);
    font-size: 0.8rem;
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 48px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    opacity: 0.5;
    transition: opacity 0.2s;
    padding: 4px;
}

.password-toggle:hover { opacity: 1; }

.password-strength-bar {
    height: 4px;
    background: var(--gray-200);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 6px;
}

#password-strength-fill {
    height: 100%;
    border-radius: 2px;
    width: 0%;
    transition: all 0.4s ease;
}

.password-strength-label {
    font-size: 0.78rem;
    font-weight: 600;
    margin-top: 4px;
}

.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--gray-600);
    cursor: pointer;
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--navy-primary);
    width: 16px;
    height: 16px;
}

.auth-link {
    color: var(--navy-primary);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.auth-link:hover { color: var(--navy-dark); }

.auth-submit {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
}

.btn-spinner {
    animation: spin 0.8s linear infinite;
    font-size: 1.2rem;
}

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

.auth-switch {
    text-align: center;
    font-size: 0.875rem;
    color: var(--gray-600);
    margin: 0;
    padding-bottom: 4px;
}

/* Auth Messages */
.auth-message {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.auth-error {
    background: #fff5f5;
    border: 1px solid #feb2b2;
    color: #c53030;
}

.auth-success {
    background: #f0fff4;
    border: 1px solid #9ae6b4;
    color: #276749;
}

/* Benefits Bar */
.auth-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    padding: 16px 24px 20px;
    border-top: 1px solid var(--gray-200);
    margin-top: 20px;
    background: var(--gray-100);
    border-radius: 0 0 20px 20px;
}

.auth-benefits span {
    font-size: 0.75rem;
    color: var(--gray-600);
    font-weight: 500;
}

.auth-benefits span:first-child {
    font-weight: 700;
    color: var(--navy-primary);
}

/* ===================================
   Scrollbar for auth modal
   =================================== */

.auth-modal::-webkit-scrollbar { width: 5px; }
.auth-modal::-webkit-scrollbar-track { background: transparent; }
.auth-modal::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 10px; }

/* ===================================
   Responsive Auth
   =================================== */

@media (max-width: 480px) {
    .auth-modal {
        width: 96%;
        max-height: 96vh;
        border-radius: 16px;
    }

    .auth-tabs,
    .auth-panel {
        padding-left: 20px;
        padding-right: 20px;
    }

    .auth-field-row {
        grid-template-columns: 1fr;
    }

    .auth-options {
        flex-direction: column;
        align-items: flex-start;
    }
}
