/* ========================================
   CSS Variables & Reset - PREMIUM EDITION
   ======================================== */
:root {
    /* Premium Color Palette */
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --accent: #ec4899;
    --cyan: #06b6d4;
    --success: #10b981;
    --warning: #f59e0b;

    /* Light Theme (Default) */
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-dark: #111827;
    --border: #e5e7eb;
    --navbar-bg: rgba(255, 255, 255, 0.8);
    --card-bg: rgba(255, 255, 255, 0.7);
    --shadow-color: rgba(0, 0, 0, 0.1);

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);

    /* Shadows */
    --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
    --shadow-neon: 0 0 20px rgba(99, 102, 241, 0.5);
}

/* Dark Theme */
[data-theme="dark"] {
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --text-light: #9ca3af;
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-dark: #020617;
    --border: #334155;
    --navbar-bg: rgba(15, 23, 42, 0.9);
    --card-bg: rgba(30, 41, 59, 0.7);
    --shadow-color: rgba(0, 0, 0, 0.3);
    --glass-bg: rgba(30, 41, 59, 0.3);
    --glass-border: rgba(100, 116, 139, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    background: var(--bg-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   Scroll Progress Indicator
   ======================================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    z-index: 9999;
    transition: width 0.1s ease-out;
}

/* ========================================
   Navigation - ENHANCED
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--navbar-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.75rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

/* ========================================
   Generic Scroll Animations
   ======================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays */
.reveal.delay-100 {
    transition-delay: 0.1s;
}

.reveal.delay-200 {
    transition-delay: 0.2s;
}

.reveal.delay-300 {
    transition-delay: 0.3s;
}

.reveal.delay-400 {
    transition-delay: 0.4s;
}

.reveal.delay-500 {
    transition-delay: 0.5s;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 32px;
    max-width: 350px;
    max-height: 650px;
}

.logo-image {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(99, 102, 241, 0.3));
    transition: filter 0.3s ease;
}

.logo:hover .logo-image {
    filter: drop-shadow(0 4px 12px rgba(99, 102, 241, 0.5));
}

.logo-icon {
    font-size: 2rem;
    filter: drop-shadow(0 2px 8px rgba(99, 102, 241, 0.3));
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Theme Toggle Button */
.theme-toggle {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.theme-toggle:hover {
    transform: rotate(180deg) scale(1.1);
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.web-app-link,
.admin-link {
    padding: 0.6rem 1.5rem !important;
    background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
    color: white !important;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.admin-link {
    display: none;
}

.web-app-link:hover,
.admin-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(99, 102, 241, 0.5);
}

.web-app-link::after,
.admin-link::after {
    display: none;
}

/* ========================================
   Hero Section - PREMIUM
   ======================================== */
.hero {
    position: relative;
    padding: 100px 0 60px;
    overflow: hidden;
    min-height: 70vh;
    display: block;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

/* ========================================
   3D Grid Particle Background
   ======================================== */
.hero-3d-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Brought forward to be visible */
    opacity: 1;
    /* Ensure full visibility */
    pointer-events: none;
    /* Let clicks pass through to text/buttons if needed */
}

.hero-3d-background canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Animated Particle Background Canvas */
#particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    /* Keep behind particles */
    overflow: hidden;
}

.gradient-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: float 25s ease-in-out infinite;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    top: -300px;
    right: -300px;
    animation-duration: 20s;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #ec4899, #06b6d4);
    bottom: -250px;
    left: -250px;
    animation-delay: -7s;
    animation-duration: 25s;
}

.blob-3 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #06b6d4, #10b981);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
    animation-duration: 30s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    25% {
        transform: translate(100px, 100px) rotate(90deg) scale(1.1);
    }

    50% {
        transform: translate(0, 200px) rotate(180deg) scale(0.9);
    }

    75% {
        transform: translate(-100px, 100px) rotate(270deg) scale(1.05);
    }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    position: relative;
    z-index: 10;
    /* Ensure content is always on top */
    min-height: 50vh;
    margin: auto 0;
}

.hero-text {
    position: relative;
    z-index: 10;
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% center;
    }

    50% {
        background-position: 100% center;
    }
}

.hero-subtitle {
    font-size: 1.35rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 3.5rem;
    flex-wrap: wrap;
}

/* Premium Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.2rem 2.5rem;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 50px rgba(99, 102, 241, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 50px rgba(99, 102, 241, 0.4);
}

/* Animated Stats */
.hero-stats {
    display: flex;
    gap: 4rem;
    position: relative;
    z-index: 10;
    animation: fadeInUp 0.8s ease 0.4s forwards;
}

.stat {
    text-align: center;
    position: relative;
}

.stat::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 10px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 0.25rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Phone Mockup with 3D Effect */
.hero-image {
    position: relative;
    z-index: 10;
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

.phone-mockup {
    perspective: 1500px;
    animation: float-phone 8s ease-in-out infinite;
    position: relative;
}

@keyframes float-phone {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.phone-screen {
    background: transparent;
    border-radius: 32px;
    padding: 0;
    position: relative;
    display: inline-block;
    box-shadow:
        0 30px 90px rgba(99, 102, 241, 0.3),
        0 0 0 2px transparent;
    transition: transform 0.6s ease, box-shadow 0.4s ease;
}

.phone-screen::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 32px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899, #06b6d4);
    z-index: -1;
    opacity: 0.8;
    transition: opacity 0.4s ease;
}

.phone-mockup:hover .phone-screen::before {
    opacity: 1;
}

.phone-mockup:hover .phone-screen {
    transform: translateY(-10px) scale(1.03);
    box-shadow:
        0 40px 120px rgba(99, 102, 241, 0.4),
        0 0 30px rgba(139, 92, 246, 0.3);
}

.phone-screen img {
    width: 100%;
    border-radius: 30px;
    display: block;
}

/* ========================================
   Features Section - GLASSMORPHISM
   ======================================== */
.features {
    padding: 2px 0;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    position: relative;
}

.features .section-header {
    margin-bottom: 0.5rem;
}

.features .section-title {
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
}

.features .section-subtitle {
    font-size: 0.8rem;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.35rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

/* Glassmorphism Feature Cards */
.feature-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 0.8rem;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    transform-style: preserve-3d;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.5), transparent);
    transition: left 0.8s;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow:
        0 20px 60px rgba(99, 102, 241, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    border-color: rgba(99, 102, 241, 0.2);
}

.feature-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: inline-block;
    filter: drop-shadow(0 4px 12px rgba(99, 102, 241, 0.3));
    transition: transform 0.4s ease;
    transform: translateZ(30px);
}

.feature-card:hover .feature-icon {
    transform: scale(1.15) rotate(5deg);
}

.feature-title {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 0.2rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.2;
    font-size: 0.8rem;
}

/* Testimonials Section */
.testimonials {
    padding: 2px 0;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.testimonials .section-header {
    position: relative;
    z-index: 1;
    margin-bottom: 0.5rem;
}

.testimonials .section-title {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
}

.testimonials .section-subtitle {
    color: white;
    font-size: 0.8rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.8rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.5), transparent);
    transition: left 0.8s;
}

.testimonial-card:hover::before {
    left: 100%;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.testimonial-rating {
    color: #fbbf24;
    font-size: 1rem;
    margin-bottom: 0.4rem;
    transform: translateZ(20px);
}

.testimonial-text {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0.8rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ec4899, #06b6d4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
}

.author-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.author-info p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ========================================
   Download Section - ENHANCED
   ======================================== */
/* Download Section - ENHANCED */
.download {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-dark));
    position: relative;
    overflow: hidden;
}

.download::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15), transparent);
    border-radius: 50%;
}

.download-content {
    text-align: center;
    color: white;
    position: relative;
    z-index: 1;
}

.download-title {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.download-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.download-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 1100px;
    margin: 0 auto;
}

.download-button {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 40px var(--shadow-color);
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.download-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.6), transparent);
    transition: left 0.8s;
}

.download-button:hover::before {
    left: 100%;
}

.download-button:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.4);
    background: var(--bg-primary);
}

.download-icon {
    font-size: 2rem;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 16px;
    color: white;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
    transform: translateZ(30px);
}

.download-icon svg {
    width: 70%;
    height: 70%;
}

.download-text {
    text-align: left;
    flex: 1;
}

.download-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.download-store {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-top: 0.25rem;
}

/* ========================================
   Footer - PREMIUM REDESIGN
   ======================================== */
.footer {
    background: linear-gradient(180deg, #0a0a1a 0%, #0f0f2d 100%);
    color: white;
    padding: 6rem 0 2rem;
    position: relative;
    overflow: hidden;
}

/* Footer Background Blobs */
.footer-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.footer-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
}

.footer-blob-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    top: -200px;
    right: -100px;
}

.footer-blob-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #ec4899, #06b6d4);
    bottom: -150px;
    left: -100px;
}

/* Footer Main Grid */
.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

/* Brand Column */
.footer-brand {
    max-width: 320px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.footer-logo-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(99, 102, 241, 0.4));
}

.footer-logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Social Links */
.footer-social {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-color: transparent;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

/* Footer Links Columns */
.footer-links {
    display: flex;
    flex-direction: column;
}

.footer-links h4 {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 2px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

/* Newsletter Section */
.footer-newsletter {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
}

.footer-newsletter h4 {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.75rem;
}

.footer-newsletter p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.newsletter-form {
    margin-bottom: 0.75rem;
}

.newsletter-input-wrapper {
    display: flex;
    gap: 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.newsletter-input-wrapper:focus-within {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.newsletter-input-wrapper input {
    flex: 1;
    padding: 0.85rem 1rem;
    background: transparent;
    border: none;
    color: white;
    font-size: 0.9rem;
    outline: none;
}

.newsletter-input-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.newsletter-input-wrapper button {
    padding: 0.85rem 1rem;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-input-wrapper button:hover {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
}

.newsletter-note {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem !important;
    margin: 0 !important;
}

/* Footer Badges */
.footer-badges {
    display: flex;
    justify-content: center;
    gap: 3rem;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 1;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
}

.badge-item svg {
    color: #6366f1;
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    position: relative;
    z-index: 1;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.footer-bottom p a {
    color: #6366f1;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-bottom p a:hover {
    color: #8b5cf6;
}

.footer-bottom-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s;
}

.footer-bottom-links a:hover {
    color: white;
}

.footer-bottom-links span {
    color: rgba(255, 255, 255, 0.3);
}

/* Footer Responsive */
@media (max-width: 1024px) {
    .footer-main {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
        max-width: 100%;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-newsletter {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 4rem 0 2rem;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-badges {
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer-main {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-badges {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ========================================
   Animations & Utilities
   ======================================== */
.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.slide-in-left {
    animation: slideInLeft 0.8s ease forwards;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.8s ease forwards;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .hero-content {
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
        font-size: 0.85rem;
    }

    .web-app-link,
    .admin-link {
        padding: 0.5rem 1rem !important;
        font-size: 0.85rem;
    }

    .hero {
        padding: 140px 0 60px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.15rem;
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .hero-stats {
        justify-content: center;
        gap: 2.5rem;
    }

    .phone-mockup {
        max-width: 320px;
        margin: 0 auto;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .section-subtitle {
        font-size: 1.1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .download-title {
        font-size: 2.5rem;
    }

    .download-options {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========================================
   Auth Buttons & Modals
   ======================================== */

/* Auth Buttons in Navbar */
.auth-buttons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.btn-login {
    padding: 0.6rem 1.5rem;
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--primary);
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-signup {
    padding: 0.6rem 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-signup:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(99, 102, 241, 0.5);
}

/* Logged in user display */
.user-email {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.btn-logout {
    padding: 0.5rem 1rem;
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background: var(--accent);
    color: white;
}

/* ========================================
   PREMIUM AUTH MODAL STYLES
   ======================================== */

/* Auth Buttons in Navbar */
.auth-buttons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-login {
    padding: 0.6rem 1.25rem;
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border);
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-login:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.btn-signup {
    padding: 0.6rem 1.25rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-signup:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(99, 102, 241, 0.5);
}

.btn-logout {
    padding: 0.5rem 1rem;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background: #ef4444;
    color: white;
}

.user-email {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Auth Modal Overlay */
.auth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-y: auto;
}

.auth-modal-container {
    position: relative;
    width: 100%;
    max-width: 460px;
}

/* Animated Background */
.auth-modal-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    overflow: hidden;
}

.auth-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: authBlobFloat 20s ease-in-out infinite;
}

.auth-blob-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    top: -150px;
    right: -150px;
    animation-delay: 0s;
}

.auth-blob-2 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #ec4899, #f43f5e);
    bottom: -100px;
    left: -100px;
    animation-delay: -7s;
}

.auth-blob-3 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #06b6d4, #10b981);
    top: 40%;
    left: 30%;
    animation-delay: -14s;
}

@keyframes authBlobFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }

    25% {
        transform: translate(50px, -50px) scale(1.1) rotate(90deg);
    }

    50% {
        transform: translate(-30px, 30px) scale(0.95) rotate(180deg);
    }

    75% {
        transform: translate(30px, 50px) scale(1.05) rotate(270deg);
    }
}

/* Glass Effect Modal */
.auth-modal-content.glass-effect {
    position: relative;
    background: var(--bg-primary);
    background: linear-gradient(145deg,
            rgba(255, 255, 255, 0.95) 0%,
            rgba(255, 255, 255, 0.9) 100%);
    border-radius: 28px;
    padding: 2.5rem;
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: modalSlideUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

/* Responsive Height: "Slightly smaller than full screen" */
.auth-modal-content.signup-modal,
.auth-modal-content.login-modal {
    max-height: 85vh !important;
    /* Desktop: Good clearance */
    overflow-y: auto !important;
}

/* Mobile: Almost full screen */
@media (max-width: 768px) {

    .auth-modal-content.signup-modal,
    .auth-modal-content.login-modal {
        max-height: 95vh !important;
        /* Mobile: Maximize space */
        width: 95% !important;
        /* Ensure width is also maximized */
        padding: 1.5rem !important;
        /* Slightly less padding on mobile */
    }
}

[data-theme="dark"] .auth-modal-content.glass-effect {
    background: linear-gradient(145deg,
            rgba(30, 41, 59, 0.98) 0%,
            rgba(15, 23, 42, 0.95) 100%);
    border: 1px solid rgba(100, 116, 139, 0.2);
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Close Button */
.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    width: 42px;
    height: 42px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 10;
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
    transform: rotate(90deg) scale(1.1);
}

/* Logo Animation */
.auth-logo-container {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.auth-logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.4), rgba(139, 92, 246, 0.4));
    border-radius: 50%;
    transform: translate(-50%, -50%);
    filter: blur(20px);
    animation: logoPulse 2s ease-in-out infinite;
}

.signup-glow {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.4), rgba(139, 92, 246, 0.4));
}

@keyframes logoPulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }
}

.auth-logo-icon {
    position: relative;
    z-index: 1;
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* Header */
.auth-modal-header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.auth-modal-header h2 {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: gradientShift 3s ease infinite;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.auth-modal-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 400;
}

/* Social Login */
.social-login-section {
    margin-bottom: 1.25rem;
}

.social-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.9rem 1.5rem;
    border-radius: 14px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid var(--border);
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

[data-theme="dark"] .social-btn {
    background: rgba(30, 41, 59, 0.5);
    border-color: var(--border);
}

/* Divider */
.auth-divider {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.auth-divider::before {
    left: 0;
}

.auth-divider::after {
    right: 0;
}

.auth-divider span {
    background: var(--bg-primary);
    padding: 0 1rem;
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 500;
    position: relative;
}

[data-theme="dark"] .auth-divider span {
    background: rgb(23, 33, 50);
}

/* Form Styles */
.auth-form {
    margin-bottom: 1rem;
}

.form-group.floating-label {
    position: relative;
    margin-bottom: 1.25rem;
}

.input-icon-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    transition: all 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.form-group.floating-label .input-icon-wrapper input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid var(--border);
    border-radius: 14px;
    font-size: 1rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: all 0.3s ease;
    outline: none;
}

.form-group.floating-label .input-icon-wrapper input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    background: var(--bg-primary);
}

.form-group.floating-label .input-icon-wrapper input:focus+label,
.form-group.floating-label .input-icon-wrapper input:not(:placeholder-shown)+label {
    transform: translateY(-150%) translateX(-0.5rem) scale(0.85);
    color: var(--primary);
    background: var(--bg-primary);
    padding: 0 0.5rem;
}

.form-group.floating-label .input-icon-wrapper input:focus~.input-icon {
    color: var(--primary);
}

.form-group.floating-label .input-icon-wrapper label {
    position: absolute;
    left: 3rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 500;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: transparent;
}

/* Password Toggle */
.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
    z-index: 2;
}

.password-toggle:hover {
    color: var(--primary);
}

/* Form Row */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Password Strength */
.password-strength {
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.strength-bar {
    flex: 1;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
}

.strength-bar span {
    display: block;
    height: 100%;
    width: 0%;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.strength-bar.weak span {
    width: 33%;
    background: #ef4444;
}

.strength-bar.medium span {
    width: 66%;
    background: #f59e0b;
}

.strength-bar.strong span {
    width: 100%;
    background: #10b981;
}

.strength-text {
    font-size: 0.75rem;
    color: var(--text-light);
    white-space: nowrap;
}

/* Form Options */
.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.remember-me,
.terms-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
    user-select: none;
}

.remember-me input,
.terms-checkbox input {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.remember-me input:checked+.checkmark,
.terms-checkbox input:checked+.checkmark {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: var(--primary);
}

.remember-me input:checked+.checkmark::after,
.terms-checkbox input:checked+.checkmark::after {
    content: '';
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-bottom: 2px;
}

.forgot-password {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: var(--secondary);
}

.terms-checkbox a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.terms-checkbox a:hover {
    text-decoration: underline;
}

/* Submit Button */
.btn-auth-submit {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.btn-auth-submit::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;
}

.btn-auth-submit:hover::before {
    left: 100%;
}

.btn-auth-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
}

.btn-auth-submit:active {
    transform: translateY(-1px);
}

.btn-auth-submit.signup-btn {
    background: linear-gradient(135deg, #06b6d4, var(--secondary), var(--accent));
    background-size: 200% auto;
    animation: gradientShift 3s ease infinite;
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.3);
}

.btn-auth-submit.signup-btn:hover {
    box-shadow: 0 15px 40px rgba(6, 182, 212, 0.4);
}

.btn-loader {
    display: none;
}

.btn-auth-submit:disabled .btn-text,
.btn-auth-submit:disabled .btn-arrow {
    display: none;
}

.btn-auth-submit:disabled .btn-loader {
    display: flex;
}

.btn-auth-submit:disabled {
    opacity: 0.85;
    cursor: wait;
    transform: none !important;
}

.spinner {
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.btn-arrow {
    transition: transform 0.3s ease;
}

.btn-auth-submit:hover .btn-arrow {
    transform: translateX(4px);
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.auth-footer p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    position: relative;
}

.auth-footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.3s ease;
}

.auth-footer a:hover::after {
    width: 100%;
}

/* Error Box */
.auth-error {
    display: none;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    animation: errorShake 0.5s ease;
}

@keyframes errorShake {

    0%,
    100% {
        transform: translateX(0);
    }

    20%,
    60% {
        transform: translateX(-5px);
    }

    40%,
    80% {
        transform: translateX(5px);
    }
}

/* Trust Badges */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
}

.trust-badges .badge {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--text-light);
    font-size: 0.8rem;
    font-weight: 500;
}

.trust-badges .badge svg {
    color: var(--success);
}

/* Signup Features */
.signup-features {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    flex-wrap: wrap;
}

.signup-features .feature-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
}

.signup-features .feature-item svg {
    color: var(--success);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .auth-buttons {
        gap: 0.5rem;
    }

    .btn-login,
    .btn-signup {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .auth-modal-content.glass-effect {
        padding: 1.75rem;
        margin: 10px;
        border-radius: 24px;
    }

    .auth-modal-header h2 {
        font-size: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
    }

    .trust-badges,
    .signup-features {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .signup-modal {
        max-height: 90vh;
        overflow-y: auto;
    }
}

@media (max-width: 480px) {
    .auth-modal-content.glass-effect {
        padding: 1.5rem;
    }

    .social-btn {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }

    .btn-auth-submit {
        padding: 0.9rem 1.5rem;
    }
}