/* ============================================
   LOCALBITES - MOBILE-FIRST RESPONSIVE CSS
   Complete redesign for perfect mobile experience
============================================ */

:root {
    --primary: #22C55E;
    --primary-dark: #16A34A;
    --primary-light: #DCFCE7;
    --secondary: #0F172A;
    --accent: #0D9488;          /* Changed from orange #F97316 to teal - LocalBites brand */
    --accent-light: #CCFBF1;    /* Light teal */
    --purple: #8B5CF6;
    --purple-light: #EDE9FE;
    --pink: #EC4899;
    --cyan: #06B6D4;
    --cyan-light: #CFFAFE;
    --blue: #3B82F6;
    --blue-light: #DBEAFE;
    --red: #EF4444;
    --red-light: #FEE2E2;
    --yellow: #F59E0B;
    --yellow-light: #FEF3C7;
    --cream: #FEF7ED;
    --background: #F8FAFC;
    --surface: #FFFFFF;
    --text: #1E293B;
    --text-light: #64748B;
    --text-muted: #94A3B8;
    --border: #E2E8F0;
    
    --gradient-green: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
    --gradient-hero: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    --gradient-warm: linear-gradient(135deg, #FEF7ED 0%, #FDF4E7 100%);
    --gradient-ai: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --shadow-xl: 0 25px 50px rgba(0,0,0,0.15);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    
    --sidebar-width: 280px;
    --header-height: 70px;

    /* Z-index scale - use these variables for consistent layering */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-overlay: 400;
    --z-modal: 500;
    --z-toast: 600;
    --z-max: 9999;
}

/* Flag Animation */
@keyframes flagWave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(10deg); }
    75% { transform: rotate(-5deg); }
}
.logo-flag {
    font-size: 1.5rem;
    animation: flagWave 2s ease-in-out infinite;
    transform-origin: bottom left;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

/* ============================================
   TYPOGRAPHY
============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

.text-primary { color: var(--primary); }

/* ============================================
   CONTAINER
============================================ */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 768px) {
    .container { padding: 0 32px; }
}

/* ============================================
   BUTTONS
============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.3);
}

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

.btn-secondary:hover {
    background: #1e293b;
    transform: translateY(-2px);
}

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

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

.btn-ghost {
    background: transparent;
    color: var(--text);
}

.btn-ghost:hover {
    background: var(--background);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
    border-radius: var(--radius-lg);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-full {
    width: 100%;
}

/* ============================================
   FORMS
============================================ */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 16px; /* Prevents zoom on iOS */
    transition: all 0.2s;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

/* ============================================
   HEADER
============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-fixed);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    overflow: hidden;
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 16px;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.header-container::-webkit-scrollbar {
    display: none;
}

@media (min-width: 768px) {
    .header-container { padding: 0 32px; }
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    z-index: calc(var(--z-fixed) + 1);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-green);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--secondary);
}

.logo-text span {
    color: var(--primary);
}

@media (min-width: 768px) {
    .logo-icon { width: 48px; height: 48px; font-size: 1.5rem; }
    .logo-text { font-size: 1.5rem; }
}

/* Navigation */
.nav {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: white;
    flex-direction: column;
    padding: 100px 24px 40px;
    transition: right 0.3s ease;
    z-index: calc(var(--z-fixed) - 1);
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    overflow-y: auto;
}

.nav.mobile-open {
    display: flex;
    right: 0;
}

.nav-link {
    padding: 16px 0;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--border);
    display: block;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-divider {
    display: none;
}

.mobile-auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.mobile-auth-buttons .btn {
    width: 100%;
    justify-content: center;
}

@media (min-width: 1024px) {
    .nav {
        display: flex;
        position: static;
        flex-direction: row;
        width: auto;
        height: auto;
        background: transparent;
        padding: 0;
        box-shadow: none;
        gap: 4px;
        align-items: center;
        overflow: hidden;
        flex-shrink: 1;
    }
    
    .nav-link {
        padding: 8px 10px;
        font-size: 0.85rem;
        border-bottom: none;
        border-radius: var(--radius-md);
        white-space: nowrap;
    }
    
    .nav-divider {
        display: none;
    }
    
    .mobile-auth-buttons {
        display: none;
    }
    
    .mobile-only {
        display: none;
    }
}

/* Hide nav items on medium screens to prevent overflow */
@media (min-width: 1024px) and (max-width: 1200px) {
    .nav-link[href="/faq.html"],
    .nav-link[href*="faq"],
    .nav-link[href*="partner"],
    .nav-link[href*="driver"] {
        display: none;
    }
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: calc(var(--z-fixed) + 1);
    padding: 10px;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s ease;
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (min-width: 1024px) {
    .mobile-menu-btn { display: none; }
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: var(--z-overlay);
}

.mobile-menu-overlay.active {
    display: block;
}

@media (min-width: 1024px) {
    .mobile-menu-overlay { display: none !important; }
}

/* Auth Buttons (Desktop) */
.auth-buttons {
    display: none;
    gap: 12px;
}

@media (min-width: 1024px) {
    .auth-buttons { display: flex; }
}

/* User Menu */
.user-menu { position: relative; }
.user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient-green);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    cursor: pointer;
}
.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    padding: 8px;
    display: none;
    z-index: 100;
}
.user-dropdown.show { display: block; }
.user-dropdown-item {
    display: block;
    padding: 12px 16px;
    color: var(--text);
    text-decoration: none;
    border-radius: 8px;
}
.user-dropdown-item:hover { background: var(--background); }
.user-dropdown-divider { height: 1px; background: var(--border); margin: 8px 0; }

/* ============================================
   HERO SECTION
============================================ */
.hero {
    min-height: 100vh;
    background: var(--gradient-hero);
    padding: 100px 20px 60px;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.hero-content {
    color: white;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ADE80;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.hero-stat {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-stat-icon {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.hero-stat-text {
    text-align: left;
}

.hero-stat-text strong {
    display: block;
    font-size: 1rem;
}

.hero-stat-text span {
    font-size: 0.8rem;
    opacity: 0.8;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hero-buttons .btn {
    width: 100%;
}

.hero-image {
    display: none;
}

@media (min-width: 768px) {
    .hero {
        padding: 120px 32px 80px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.15rem;
    }
    
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
    
    .hero-buttons .btn {
        width: auto;
    }
}

@media (min-width: 1024px) {
    .hero-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 60px;
        align-items: center;
    }
    
    .hero-content {
        text-align: left;
    }
    
    .hero-stats {
        justify-content: flex-start;
    }
    
    .hero-buttons {
        justify-content: flex-start;
    }
    
    .hero-title {
        font-size: clamp(2.5rem, 5vw, 4rem);
    }
    
    .hero-image {
        display: block;
        position: relative;
    }
    
    .hero-image img {
        width: 100%;
        max-width: 600px;
        border-radius: 32px;
        box-shadow: var(--shadow-xl);
    }
    
    .hero-floating-card {
        position: absolute;
        background: white;
        border-radius: 20px;
        padding: 16px 20px;
        box-shadow: var(--shadow-lg);
        display: flex;
        align-items: center;
        gap: 12px;
    }
    
    .hero-card-rating {
        top: 20%;
        right: -20px;
    }
    
    .hero-card-delivery {
        bottom: 20%;
        left: -20px;
    }
    
    .floating-icon {
        width: 44px;
        height: 44px;
        background: var(--primary-light);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .floating-text strong {
        display: block;
        color: var(--text);
    }
    
    .floating-text span {
        font-size: 0.85rem;
        color: var(--text-light);
    }
}

/* ============================================
   SEARCH SECTION
============================================ */
.search-section {
    padding: 40px 20px;
    background: white;
    margin-top: -40px;
    position: relative;
    z-index: 10;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
}

.search-container {
    width: 100%;
}

.search-bar {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.search-input {
    flex: 1;
    padding: 16px 16px 16px 48px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 16px center;
}

.search-icon {
    display: none;
}

.search-btn {
    width: 100%;
}

.cuisine-tags {
    display: flex;
    gap: 8px;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.cuisine-tag {
    padding: 10px 16px;
    background: var(--background);
    border: none;
    border-radius: 50px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.cuisine-tag:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
}

@media (min-width: 768px) {
    .search-section {
        padding: 60px 32px;
        margin-top: -60px;
        border-radius: 32px;
    }
    
    .search-bar {
        flex-direction: row;
    }
    
    .search-btn {
        width: auto;
    }
}

/* ============================================
   SECTIONS
============================================ */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-badge {
    display: inline-block;
    background: var(--accent-light);
    color: var(--accent);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.section-badge.badge-green {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.section-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.section-title-light {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 48px;
    text-align: center;
    color: white;
}

.section-subtitle {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.section-header-flex {
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .section-header { margin-bottom: 60px; }
    .section-title { font-size: clamp(2rem, 4vw, 3rem); }
    .section-title-light { font-size: clamp(2rem, 4vw, 3rem); }
    
    .section-header-flex {
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
    }
}

/* ============================================
   FEATURED SECTION
============================================ */
.featured-section {
    padding: 60px 0;
    background: var(--gradient-warm);
}

.featured-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.featured-image {
    position: relative;
    height: 250px;
}

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

.featured-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
}

.featured-anniversary {
    display: inline-block;
    padding: 8px 16px;
    background: var(--accent);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.featured-name {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.featured-cuisine {
    opacity: 0.9;
    font-size: 0.9rem;
}

.featured-content {
    padding: 24px;
}

.featured-owner {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.owner-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-light);
}

.owner-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
}

.owner-info p {
    color: var(--text-light);
    font-size: 0.85rem;
}

.featured-quote {
    padding-left: 20px;
    border-left: 3px solid var(--primary);
    margin-bottom: 24px;
    font-size: 1rem;
    line-height: 1.7;
    font-style: italic;
    color: var(--text);
}

.featured-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.featured-stat {
    text-align: center;
    padding: 16px 8px;
    background: var(--background);
    border-radius: 12px;
}

.stat-emoji {
    display: block;
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.featured-stat strong {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
}

.featured-stat span {
    font-size: 0.75rem;
    color: var(--text-light);
}

.featured-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media (min-width: 768px) {
    .featured-section { padding: 100px 0; }
    
    .featured-buttons {
        flex-direction: row;
    }
}

@media (min-width: 1024px) {
    .featured-card {
        display: grid;
        grid-template-columns: 1.2fr 1fr;
        border-radius: 32px;
    }
    
    .featured-image {
        height: auto;
        min-height: 500px;
    }
    
    .featured-content {
        padding: 48px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .featured-quote {
        font-size: 1.1rem;
    }
}

/* ============================================
   RESTAURANTS SECTION
============================================ */
.restaurants-section {
    padding: 60px 0;
}

.restaurants-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 640px) {
    .restaurants-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .restaurants-section { padding: 100px 0; }
    
    .restaurants-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }
}

/* Restaurant Cards */
.restaurant-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    cursor: pointer;
}

.restaurant-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.restaurant-image-container {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.restaurant-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.restaurant-card:hover .restaurant-image {
    transform: scale(1.08);
}

.restaurant-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 8px;
}

.restaurant-badge {
    padding: 6px 12px;
    background: white;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.restaurant-badge.featured {
    background: var(--accent);
    color: white;
}

.restaurant-rating {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: white;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.restaurant-rating .star {
    color: #FBBF24;
}

.restaurant-body {
    padding: 20px;
}

.restaurant-card-name {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--secondary);
}

.restaurant-card-cuisine {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.restaurant-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.restaurant-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.restaurant-owner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: var(--background);
    border-radius: 8px;
    margin-top: 16px;
}

.restaurant-owner img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.restaurant-owner strong {
    display: block;
    font-size: 0.85rem;
    color: var(--text);
}

.restaurant-owner span {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* ============================================
   HOW IT WORKS SECTION
============================================ */
.how-it-works-section {
    padding: 60px 0;
    background: var(--secondary);
    color: white;
}

.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

.step {
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto 20px;
}

.step h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
}

.step p {
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
}

@media (min-width: 768px) {
    .how-it-works-section { padding: 100px 0; }
    
    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 48px;
    }
    
    .step-number {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .step h3 {
        font-size: 1.25rem;
    }
}

/* ============================================
   ABOUT SECTION
============================================ */
.about-section {
    padding: 60px 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.benefit-card {
    background: white;
    padding: 32px 24px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}

.benefit-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 20px;
}

.benefit-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.benefit-card p {
    color: var(--text-light);
    line-height: 1.7;
}

@media (min-width: 768px) {
    .about-section { padding: 100px 0; }
    
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }
    
    .benefit-card {
        padding: 40px;
    }
    
    .benefit-icon {
        width: 72px;
        height: 72px;
        font-size: 2rem;
    }
}

/* ============================================
   PARTNER CTA SECTION
============================================ */
.partner-cta-section {
    padding: 60px 0;
    background: var(--gradient-green);
    text-align: center;
    color: white;
}

.partner-cta-section h2 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.cta-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.cta-stat strong {
    display: block;
    font-size: 2rem;
    font-weight: 900;
}

.cta-stat span {
    font-size: 0.85rem;
    opacity: 0.9;
}

@media (min-width: 768px) {
    .partner-cta-section { padding: 100px 0; }
    .partner-cta-section h2 { font-size: clamp(2rem, 4vw, 3rem); }
    .cta-subtitle { font-size: 1.25rem; }
    .cta-stats { gap: 60px; }
    .cta-stat strong { font-size: 3rem; }
}

/* ============================================
   WHATSAPP FLOAT BUTTON
============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

/* ============================================
   FOOTER
============================================ */
.footer {
    background: var(--secondary);
    color: white;
    padding: 60px 0 32px;
}

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

.footer-brand .logo-text {
    color: white;
}

.footer-brand p {
    color: rgba(255,255,255,0.7);
    margin-top: 16px;
    line-height: 1.7;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.social-link {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s;
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

/* Footer Links */
.footer-links h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    color: rgba(255,255,255,0.5);
}

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

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

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.footer-legal {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.footer-legal a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-legal a:hover {
    color: white;
}

@media (min-width: 768px) {
    .footer { padding: 80px 0 32px; }
    
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
        gap: 60px;
    }
    
    .footer-bottom {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
    
    .footer-bottom p {
        margin-bottom: 0;
    }
}

/* ============================================
   MODALS
============================================ */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: var(--z-modal);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.show {
    display: flex;
}

.modal {
    background: white;
    border-radius: 24px;
    max-width: 440px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlide 0.3s ease;
    position: relative;
}

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

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: var(--background);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: all 0.2s;
}

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

.modal-header {
    padding: 32px 32px 0;
    text-align: center;
}

.modal-logo {
    width: 64px;
    height: 64px;
    background: var(--gradient-green);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 20px;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.modal-subtitle {
    color: var(--text-light);
    font-size: 0.95rem;
}

.modal-body {
    padding: 32px;
}

.modal-tabs {
    display: flex;
    margin-bottom: 24px;
    background: var(--background);
    border-radius: var(--radius-md);
    padding: 4px;
}

.modal-tab {
    flex: 1;
    padding: 12px;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.modal-tab.active {
    background: white;
    box-shadow: var(--shadow-sm);
}

.modal-footer {
    padding: 0 32px 32px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-light);
}

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

/* ============================================
   TOAST NOTIFICATIONS
============================================ */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 16px 24px;
    background: var(--secondary);
    color: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: var(--z-toast);
    animation: slideIn 0.3s ease;
}

.toast.success { background: var(--primary); }
.toast.error { background: var(--red); }

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ============================================
   UTILITY CLASSES
============================================ */
.hide-mobile {
    display: none;
}

.show-mobile {
    display: block;
}

@media (min-width: 768px) {
    .hide-mobile { display: block; }
    .show-mobile { display: none; }
}

/* ============================================
   SIDEBAR (Partner Portal)
============================================ */
.sidebar {
    width: var(--sidebar-width);
    background: var(--gradient-hero);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
}

.sidebar-header {
    padding: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.main-wrapper {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
}

@media (max-width: 768px) {
    .main-wrapper { margin-left: 0; }
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99;
}

.sidebar-overlay.active { display: block; }

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 32px;
}

@media (min-width: 640px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

.stat-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

/* Cards */
.card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-body {
    padding: 24px;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-primary {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.badge-accent {
    background: var(--accent-light);
    color: var(--accent);
}
