/* --- Premium Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@400;600;700&display=swap');

/*
==============================================
TABLE OF CONTENTS
==============================================
1.  CSS Variables
2.  Global & Typography Styles
3.  Layout & Container Styles
4.  Header & Navigation
5.  Mobile Navigation
6.  Buttons & CTA
7.  Hero Section
8.  Page & Section Styles
    - Page Header (Contact, Policy, TOS)
    - Content Wrapper (Contact, Policy, TOS)
    - Trust Bar
    - Cards Grid (Use Cases)
    - Steps Section
    - Testimonials
    - FAQ Section
9.  App & Authentication Styles
    - Auth Container & Forms
    - App Dashboard & Search
    - Results Table
    - Loader & Modals
10. Footer
11. Animations & Keyframes
12. Responsive Media Queries
==============================================
*/

/* 1. CSS Variables
-------------------------------------------------- */
:root {
    /* Primary & Gradients */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --dark-gradient: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%); /* Alias for app */
    --gradient-accent: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-success: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    
    /* Brand & State Colors */
    --primary-color: #667eea;
    --primary-dark: #004494;
    --primary-light: #E8F2FF;
    --primary-hover: #5a6fd8;
    --accent-color: #FF6B6B;
    --success-color: #10B981;
    --warning-color: #F59E0B;
    --error-color: #EF4444;
    
    /* Text Colors */
    --text-dark: #2c3e50;
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --text-light: #6c7b7f;
    --text-muted: #9CA3AF;
    --text-inverse: #FFFFFF;
    
    /* Background & Surface Colors */
    --bg-section: #fafbfc;
    --surface-color: #FFFFFF;
    --background-primary: #F9FAFB;
    --background-secondary: #F3F4F6;
    --border-color: #E5E7EB;
    --border-light: #F3F4F6;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --premium-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --hover-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    
    /* Spacing & Radius */
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    
    /* Transitions */
    --transition-base: 0.3s ease-out;
}

/* 2. Global & Typography Styles
-------------------------------------------------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.app-body {
    background: white;
    color: var(--text-primary);
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}



/* Override container background for app page */
body.app-body .container {
    background: transparent;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
    margin-bottom: 4rem;
}

p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

.hidden {
    display: none !important;
}

/* 3. Layout & Container Styles
-------------------------------------------------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 6rem 0;
}

/* 4. Header & Navigation
-------------------------------------------------- */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
    min-height: 70px;
}

header.scrolled {
    box-shadow: var(--card-shadow);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
}

.logo img {
    height: 50px;
    width: auto;
}

.desktop-nav {
    display: flex;
    gap: 2rem;
}

.desktop-nav a {
    color: var(--text-dark);
    font-weight: 500;
    position: relative;
}

.desktop-nav a:hover {
    color: var(--primary-color);
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: var(--primary-gradient);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.desktop-nav a:hover::after {
    width: 100%;
}

.header-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* 5. Mobile Navigation
-------------------------------------------------- */
.mobile-header-layout {
    display: none;
}

.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 1002;
    position: relative;
}

.mobile-nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    position: absolute;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-toggle span:nth-child(1) { top: 8px; }
.mobile-nav-toggle span:nth-child(2) { top: 14px; }
.mobile-nav-toggle span:nth-child(3) { top: 20px; }

.mobile-nav-open .mobile-nav-toggle span:nth-child(1) {
    top: 14px;
    transform: rotate(45deg);
}

.mobile-nav-open .mobile-nav-toggle span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.mobile-nav-open .mobile-nav-toggle span:nth-child(3) {
    top: 14px;
    transform: rotate(-45deg);
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.mobile-nav-open .mobile-nav-overlay {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-overlay nav {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
}

.mobile-nav-overlay nav a {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.mobile-nav-close {
    position: absolute;
    top: 2rem;
    left: 2rem;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 1003;
}

.mobile-nav-close::before,
.mobile-nav-close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    transform: translate(-50%, -50%) rotate(45deg);
}

.mobile-nav-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* 6. Buttons & CTA
-------------------------------------------------- */
.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--card-shadow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--hover-shadow);
    color: white;
}

.btn-secondary {
    background: white;
    color: var(--text-dark);
    border: 2px solid #e1e8ed;
    box-shadow: var(--card-shadow);
}

.btn-secondary:hover {
    background: var(--bg-section);
    transform: translateY(-2px);
    color: var(--text-dark);
}

/* Header Button Animations */
.header-buttons .btn {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 0.6rem 1.4rem;
    font-size: 0.85rem;
}

.header-buttons .btn-primary {
    animation: subtle-pulse 4s ease-in-out infinite;
}

.header-buttons .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.header-buttons .btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3), 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: none;
}

.header-buttons .btn:hover::before {
    left: 100%;
}

.header-buttons .btn-secondary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
}

.header-buttons .btn-secondary:hover::before {
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.2), transparent);
}

.header-buttons .btn:active {
    transform: translateY(-1px) scale(1.01);
}

.mobile-buttons .btn {
    animation: subtle-pulse 4s ease-in-out infinite;
}

.mobile-buttons .btn:hover {
    animation: none;
}

/* CTA Section */
.cta-section {
    background: var(--dark-gradient);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 6rem 0;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    opacity: 0.1;
}

.cta-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out both;
}

.cta-section h2 {
    color: white;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 3rem;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.cta-section .btn {
    background: white;
    color: var(--text-dark);
    font-size: 1.1rem;
    padding: 1.2rem 3rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2), 0 4px 10px rgba(0, 0, 0, 0.1);
    animation: pulse-glow 3s ease-in-out infinite, float 6s ease-in-out infinite;
    will-change: transform;
}

.cta-section .btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 8px 20px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    animation: none;
}

.cta-btn .btn-text,
.cta-btn .btn-hover-text {
    display: block;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
}

.cta-btn .btn-hover-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 150%);
    opacity: 0;
    white-space: nowrap;
}

.cta-btn:hover .btn-text {
    transform: translateY(-150%);
    opacity: 0;
}

.cta-btn:hover .btn-hover-text {
    transform: translate(-50%, -50%);
    opacity: 1;
}

/* 7. Hero Section
-------------------------------------------------- */
.hero {
    background: var(--primary-gradient);
    color: white;
    text-align: center;
    padding: 12rem 2rem 8rem;
    position: relative;
    overflow: hidden;
    margin-top: 70px; /* Adjust for fixed header */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" preserveAspectRatio="none"><polygon fill="rgba(255,255,255,0.1)" points="1000,100 1000,0 0,0 0,100"/></svg>');
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    color: white;
    margin-bottom: 2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero .btn {
    font-size: 1.2rem;
    padding: 1.2rem 3rem;
    background: white;
    color: var(--primary-color);
    margin-top: 1rem;
}

/* Hero Button Animations */
.hero-btn {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15), 0 4px 10px rgba(0, 0, 0, 0.1);
    animation: hero-pulse-glow 3s ease-in-out infinite, hero-float 6s ease-in-out infinite;
}

.hero-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.3), transparent);
    transition: left 0.6s ease;
}

.hero-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
    border-radius: 50%;
}

.hero-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), 0 8px 20px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #ffffff 0%, #f0f4ff 100%);
    color: var(--primary-color);
    animation: none;
}

.hero-btn:hover::before { left: 100%; }
.hero-btn:hover::after { width: 300px; height: 300px; }

.hero-btn:active {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15), 0 4px 10px rgba(0, 0, 0, 0.08);
}

.hero-btn .btn-text,
.hero-btn .btn-hover-text {
    display: block;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
}

.hero-btn .btn-hover-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 150%);
    opacity: 0;
    white-space: nowrap;
}

.hero-btn:hover .btn-text {
    transform: translateY(-150%);
    opacity: 0;
}

.hero-btn:hover .btn-hover-text {
    transform: translate(-50%, -50%);
    opacity: 1;
}

/* 8. Page & Section Styles
-------------------------------------------------- */
.page-header {
    background: var(--primary-gradient);
    padding: 8rem 2rem 4rem;
    text-align: center;
    color: #fff;
    margin-top: 70px;
}

.page-header h1 {
    color: #fff;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
}

.page-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.page-content {
    padding: 6rem 0;
    background-color: #fff;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 4rem 3rem;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
}

.content-wrapper h2 {
    text-align: left;
    font-size: 1.75rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    border-bottom: 2px solid var(--bg-section);
    padding-bottom: 0.5rem;
}

.content-wrapper p, .content-wrapper li {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.content-wrapper ul {
    padding-left: 20px;
    color: var(--text-light);
}

.content-wrapper a {
    color: var(--primary-color);
    font-weight: 500;
}
.content-wrapper a:hover {
    text-decoration: underline;
}

.content-wrapper .email-link {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    padding: 1rem 2rem;
    background: var(--bg-section);
    border-radius: 50px;
    display: inline-block;
    transition: all 0.3s ease;
    margin-top: 1rem;
    word-break: break-all;
}

.content-wrapper .email-link:hover {
    background: var(--primary-gradient);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--hover-shadow);
    text-decoration: none;
}

/* Trust Bar */
.trust-bar {
    background: var(--bg-section);
    padding: 3rem 0;
    border-bottom: 1px solid #e1e8ed;
}

.trust-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.95rem;
}

.trust-separator {
    width: 4px;
    height: 4px;
    background: #e1e8ed;
    border-radius: 50%;
}

/* Cards Grid (Use Cases) */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.premium-card {
    background: white;
    border-radius: 20px;
    padding: 3rem 2.5rem;
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.premium-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

.premium-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
}

.premium-card h3 {
    color: var(--text-dark);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
}

/* Steps Section */
.steps-section {
    background: var(--bg-section);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.step-card {
    text-align: center;
    position: relative;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    box-shadow: var(--card-shadow);
}

.step-card h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.testimonial-card {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 2rem;
    font-size: 4rem;
    color: #e1e8ed;
    font-family: serif;
}

.testimonial-text {
    font-style: italic;
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.author-info .author-name {
    font-weight: 600;
    color: var(--text-dark);
}

.author-info .author-title {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 4rem auto 0;
}

.faq-item {
    background: white;
    border-radius: 15px;
    margin-bottom: 1rem;
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.faq-question {
    padding: 2rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: var(--bg-section);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 300;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: var(--bg-section);
}

.faq-answer p {
    padding: 0 2rem 2rem;
    margin: 0;
}

.faq-item.active .faq-answer {
    max-height: 200px; /* Adjust as needed */
}

/* 9. App & Authentication Styles
-------------------------------------------------- */
#auth-section {
    max-width: 450px;
    margin: 5rem auto;
    padding: 2rem 0;
    background: transparent;
    position: relative;
}

.auth-container {
    background: var(--surface-color);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    padding: var(--spacing-2xl);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
}

.auth-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.auth-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 400;
}

.auth-form { 
    display: block;
    animation: fadeSlideIn 0.5s ease-out forwards;
}

.auth-form.hidden { 
    display: none; 
}

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeSlideOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-10px); }
}

.form-group {
    margin-bottom: var(--spacing-lg);
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: color var(--transition-base);
}

.input-wrapper {
    position: relative;
}

.auth-form input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--surface-color);
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 400;
    transition: all var(--transition-base);
    outline: none;
    box-shadow: var(--shadow-sm);
}

.auth-form input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1), var(--shadow-md);
    transform: translateY(-1px);
}

.auth-form input:hover:not(:focus) {
    border-color: #d1d5db;
}

#auth-message-area {
    text-align: center;
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.9rem;
    margin-top: 1rem;
    display: none;
}

#auth-message-area.show {
    display: block;
    animation: fadeInUp 0.5s ease-out;
}

#auth-message-area.success {
    background-color: var(--primary-light);
    color: var(--primary-dark);
}

#auth-message-area.error {
    background-color: #FEE2E2;
    color: #991B1B;
}

.toggle-form {
    text-align: center;
    margin-top: var(--spacing-lg);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.toggle-form a {
    color: var(--primary-color);
    cursor: pointer;
    font-weight: 600;
    text-decoration: underline;
}

.auth-form button {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: var(--radius-lg);
    background: var(--gradient-primary);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
    position: relative;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-form button:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.auth-form button:active {
    transform: translateY(0);
}

.auth-form button.loading {
    cursor: wait;
}

.auth-form button.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
}

/* App Dashboard */
#app-view {
    padding-top: 80px;
}

/* App Page Header */
body.app-body header {
    justify-content: center;
    position: relative;
    padding: 1.5rem 0;
    background: white;
    box-shadow: none;
    border: none;
    min-height: 100px;
}

body.app-body .header-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 100%;
}

body.app-body header .logo {
    position: static;
    transform: none;
}

body.app-body header .logo img {
    height: 80px;
    width: auto;
}

body.app-body header .header-buttons {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

body.app-body header .mobile-nav-toggle {
    position: absolute;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

.main-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

#input-section, #results-section, #disclaimer-section {
    background: var(--surface-color);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
}

#input-section h2, #results-section h2, #disclaimer-section h3 {
    text-align: left;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

#input-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    align-items: end;
}

#input-section .form-group label {
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
}
#input-section .form-group input,
#input-section .form-group select {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    font-size: 1rem;
}

#search-button {
    background: var(--primary-gradient);
    color: white;
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    grid-column: 1 / -1;
}

#results-section {
    display: none;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

#progress-container {
    width: 100%;
    background-color: var(--border-color);
    border-radius: 20px;
    margin: 1.5rem 0;
    overflow: hidden;
    display: none;
}

#progress-bar {
    width: 0%;
    background: var(--gradient-success);
    color: white;
    text-align: center;
    padding: 0.2rem 0;
    font-weight: 600;
    transition: width 0.4s ease;
}

.table-container {
    overflow-x: auto;
    overflow-y: hidden;
    cursor: grab;
    user-select: none;
    position: relative;
    margin: 1rem 0;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    background: white;
    width: 100%;
    max-width: 100%;
    contain: layout style;
}

.table-container:active {
    cursor: grabbing;
}

.table-container.dragging {
    cursor: grabbing !important;
}

.table-container::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome, Safari */
}

.table-container {
    -ms-overflow-style: none; /* Hide scrollbar for IE/Edge */
    scrollbar-width: none; /* Hide scrollbar for Firefox */
}

/* Add subtle gradient indicators when table is scrollable */
.table-container::before,
.table-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 20px;
    pointer-events: none;
    z-index: 2;
    transition: opacity 0.3s ease;
}

.table-container::before {
    left: 0;
    background: linear-gradient(to right, rgba(255,255,255,0.8), transparent);
    opacity: 0;
}

.table-container::after {
    right: 0;
    background: linear-gradient(to left, rgba(255,255,255,0.8), transparent);
    opacity: 1;
}

.table-container.scrolled-left::before {
    opacity: 1;
}

.table-container.scrolled-right::after {
    opacity: 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px; /* Reduced minimum width for better mobile experience */
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
    min-width: 120px; /* Reduced minimum width for mobile compatibility */
}

th:first-child, td:first-child {
    min-width: 150px; /* Reduced width for business names column */
}

th:nth-child(2), td:nth-child(2) {
    min-width: 180px; /* Reduced width for address column */
}

/* Mobile responsive table adjustments */
@media (max-width: 768px) {
    table {
        min-width: 500px; /* Even smaller for mobile */
    }
    
    th, td {
        padding: 0.75rem 0.5rem;
        min-width: 100px;
        font-size: 0.9rem;
    }
    
    th:first-child, td:first-child {
        min-width: 120px;
    }
    
    th:nth-child(2), td:nth-child(2) {
        min-width: 140px;
    }
}

@media (max-width: 480px) {
    table {
        min-width: 400px; /* Minimal width for very small screens */
    }
    
    th, td {
        padding: 0.5rem 0.25rem;
        min-width: 80px;
        font-size: 0.85rem;
    }
    
    th:first-child, td:first-child {
        min-width: 100px;
    }
    
    th:nth-child(2), td:nth-child(2) {
        min-width: 120px;
    }
}

thead th {
    background: var(--background-secondary);
}

tbody tr:hover {
    background-color: var(--background-secondary);
}

#export-button {
    background: var(--gradient-success);
    color: var(--text-inverse);
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-base);
    box-shadow: var(--shadow-sm);
    margin-top: 1.5rem;
    float: left;
}

#export-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

#export-button:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

#export-button:disabled {
    background: var(--border-color);
    color: var(--text-muted);
    cursor: not-allowed;
    box-shadow: none;
}

#disclaimer-section p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* 10. Footer
-------------------------------------------------- */
footer {
    background: #1a1a1a;
    color: #888;
    padding: 4rem 0 2rem;
    text-align: center;
}

/* Footer on App page */
body.app-body footer {
    background: white;
    color: var(--text-secondary);
    padding: 2rem 0;
    text-align: center;
    border: none;
}
body.app-body footer a {
    color: var(--primary-color);
    margin: 0 1rem;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}
body.app-body footer a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}
body.app-body footer p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}
body.app-body footer .footer-logo img {
    filter: none;
}


.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-logo {
    margin-bottom: 2rem;
}

.footer-logo img {
    height: 35px;
    filter: brightness(0) invert(1);
    opacity: 0.7;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #888;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.copyright {
    color: #666;
    font-size: 0.9rem;
    border-top: 1px solid #333;
    padding-top: 2rem;
    margin-top: 2rem;
}

body.app-body footer .copyright {
    border-top-color: var(--border-color);
}

/* 11. Animations & Keyframes
-------------------------------------------------- */
@keyframes subtle-pulse {
    50% { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 0 0 3px rgba(102, 126, 234, 0.1); }
}

@keyframes hero-pulse-glow {
    50% { box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2), 0 6px 15px rgba(0, 0, 0, 0.12), 0 0 0 8px rgba(255, 255, 255, 0.2); }
}

@keyframes float {
    50% { transform: translateY(-3px); }
}
@keyframes hero-float {
    50% { transform: translateY(-3px); }
}

@keyframes pulse-glow {
    50% { box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25), 0 6px 15px rgba(0, 0, 0, 0.15), 0 0 0 10px rgba(255, 255, 255, 0.1); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
    }
    
.animate-on-scroll {
    animation: fadeInUp 0.8s ease-out;
    }
    
/* 12. Responsive Media Queries
-------------------------------------------------- */
@media (max-width: 1024px) and (min-width: 769px) {
    .header-container {
        padding: 0 1.5rem;
    }
    
    .desktop-nav {
        gap: 1.5rem;
    }
    
    .desktop-nav a {
        font-size: 0.9rem;
    }
    
    .header-buttons .btn {
        padding: 0.5rem 1.2rem;
        font-size: 0.8rem;
    }
    
    .logo img {
        height: 45px;
    }
}

@media (max-width: 992px) {
    .cards-grid, .steps-grid, .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .header-container {
        padding: 0 1rem;
    }
    
    .desktop-nav {
        gap: 1rem;
    }
    
    .desktop-nav a {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    h1 { font-size: clamp(2.2rem, 7vw, 2.8rem); }
    h2 { font-size: clamp(1.8rem, 6vw, 2.2rem); margin-bottom: 3rem; }
    section { padding: 4rem 0; }
    


    .desktop-nav { display: none; }
    .header-container > .header-buttons:not(#user-info-container) { display: none; }
    .mobile-header-layout, .mobile-nav-toggle { display: flex; }

    .header-container {
        justify-content: space-between;
        padding: 0 1rem;
    }

    .logo:not(.mobile-logo) {
        display: none;
    }

    .mobile-header-layout {
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .mobile-logo {
        display: block;
        height: 50px;
    }

    .mobile-nav-toggle {
        margin-left: auto;
    }

    .mobile-buttons {
        display: flex;
        gap: 0.75rem;
        align-items: center;
    }

    .mobile-buttons .btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .hero { padding: 8rem 1rem 6rem; }

    .trust-content { flex-direction: column; gap: 1.5rem; }
    .trust-separator { display: none; }

    .premium-card, .testimonial-card { padding: 2rem 1.5rem; }

    .content-wrapper .email-link { font-size: 1.1rem; }

    /* App-specific mobile styles for logged-in users */
    body.app-body .header-container > .header-buttons {
        display: flex !important;
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
        gap: 0.5rem;
        align-items: center;
    }
    
    .user-welcome {
        display: none; /* Hide welcome text on mobile to save space */
    }
    
    .header-buttons .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .container { padding: 0 1rem; }
    .hero { padding: 6rem 1rem 4rem; }
    .premium-card, .testimonial-card { padding: 1.5rem 1rem; }
    .content-wrapper .email-link { font-size: 1rem; }
    
    .header-container {
        padding: 0 1rem;
    }
    
    .mobile-buttons .btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* App page mobile adjustments */
@media (max-width: 768px) {
    body.app-body header {
        padding: 1rem 0 !important;
        min-height: 70px !important;
        background: white !important;
        position: relative !important;
    }
    
    body.app-body .header-container {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        position: relative !important;
        height: 100% !important;
        width: 100% !important;
        padding: 0 1rem !important;
    }
    
    body.app-body header .logo {
        position: static !important;
        transform: none !important;
        display: block !important;
        order: 0 !important;
    }
    
    body.app-body header .logo img {
        height: 60px !important;
        width: auto !important;
        display: block !important;
        max-width: none !important;
    }
    
    body.app-body header .header-buttons {
        position: static !important;
        display: flex !important;
        align-items: center !important;
        gap: 0.5rem !important;
        order: 1 !important;
    }
    
    /* Hide any desktop-only elements */
    body.app-body .desktop-nav {
        display: none !important;
    }
    
    /* Footer responsive for app page */
    body.app-body footer {
        padding: 1.5rem 1rem;
    }
    
    body.app-body footer a {
        display: inline-block;
        margin: 0.3rem 0.8rem;
        padding: 0.5rem;
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    body.app-body footer p {
        font-size: 0.85rem;
        margin-bottom: 1rem;
        line-height: 1.5;
    }
}

/* User info styling for logged-in users */
.user-welcome {
    color: var(--text-primary);
    font-size: 0.9rem;
    margin-right: 1rem;
    white-space: nowrap;
}

.header-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}



/* On mobile, make the header buttons always visible when logged in */
@media (max-width: 768px) {
    body.app-body #user-info-container {
        display: flex !important;
        align-items: center !important;
        gap: 0.5rem !important;
    }
    
    body.app-body .user-welcome {
        display: none !important; /* Hide welcome text on mobile to save space */
    }
    
    body.app-body .header-buttons .btn,
    body.app-body #logout-button {
        display: block !important;
        padding: 0.4rem 0.8rem !important;
        font-size: 0.75rem !important;
        white-space: nowrap !important;
        min-width: auto !important;
        background: var(--primary-color) !important;
        color: white !important;
        border: none !important;
        border-radius: var(--radius-md) !important;
    }
} 