/* ============================================
   WAKAO SALES INTELLIGENCE - FRESH LIGHT THEME
   White + Green (Jackfruit Green)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    /* ===== WAKAO BRAND COLORS ===== */
    --primary-green: #4CAF50;
    --primary-green-light: #66BB6A;
    --primary-green-dark: #388E3C;
    --primary-green-glow: rgba(76, 175, 80, 0.2);
    --primary-green-subtle: rgba(76, 175, 80, 0.08);

    --accent-gold: #FFB800;
    --accent-gold-light: #FFCC33;

    --secondary-gray: #64748B;

    /* ===== BACKGROUND SYSTEM (LIGHT) ===== */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8FAF8;
    --bg-tertiary: #F1F5F1;
    --bg-card: #FFFFFF;
    --bg-card-hover: #F8FAF8;
    --bg-hero: linear-gradient(135deg, #F0FFF0 0%, #FFFFFF 50%, #F5FFFA 100%);

    /* ===== BORDERS ===== */
    --border-color: #E2E8E2;
    --border-light: #EDF2ED;
    --border-green: rgba(76, 175, 80, 0.3);
    --border-green-strong: rgba(76, 175, 80, 0.5);

    /* ===== TEXT ===== */
    --text-primary: #1A1A1A;
    --text-secondary: #4A5568;
    --text-muted: #718096;
    --text-green: #2E7D32;

    /* ===== CATEGORY COLORS ===== */
    --category-a: #E53935;
    --category-a-bg: rgba(229, 57, 53, 0.1);
    --category-b: #FF9800;
    --category-b-bg: rgba(255, 152, 0, 0.1);
    --category-c: #4CAF50;
    --category-c-bg: rgba(76, 175, 80, 0.1);
    --category-d: #9C27B0;
    --category-d-bg: rgba(156, 39, 176, 0.1);

    /* ===== EFFECTS ===== */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.1);
    --shadow-green: 0 4px 14px rgba(76, 175, 80, 0.25);
    --shadow-green-lg: 0 8px 28px rgba(76, 175, 80, 0.3);

    /* ===== TYPOGRAPHY ===== */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Outfit', 'Inter', sans-serif;

    /* ===== SPACING & RADIUS ===== */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 100px;

    --transition-fast: all 0.15s ease;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* Make hero grow to fill space when results are hidden */
.hero {
    flex: 1 0 auto;
}

/* Results section also fills space when visible */
.results-section {
    flex: 1 0 auto;
}

/* Footer stays at bottom */
.footer {
    flex-shrink: 0;
    margin-top: auto;
}

/* ============================================
   HEADER
   ============================================ */

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    font-size: 1.75rem;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--primary-green);
}

.logo-img {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.logo-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
    padding-left: 0.75rem;
    border-left: 1px solid var(--border-color);
}

.header-stats {
    display: flex;
    gap: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 0.5rem 1.25rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.stat-value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green);
}

.stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    padding: 5rem 2rem 4rem;
    text-align: center;
    background: var(--bg-hero);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%234CAF50' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    letter-spacing: -1px;
    line-height: 1.2;
    color: var(--text-primary);
}

.hero .highlight {
    color: var(--primary-green);
    position: relative;
}

.tagline {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-weight: 400;
}

/* ===== SEARCH CONTAINER ===== */

.search-container {
    display: flex;
    gap: 0.75rem;
    max-width: 650px;
    margin: 0 auto;
}

.search-wrapper {
    flex: 1;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 1.25rem 1.75rem;
    font-size: 1.05rem;
    font-family: var(--font-family);
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 4px var(--primary-green-glow), var(--shadow-md);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    padding: 1.25rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-family);
    background: var(--primary-green);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    box-shadow: var(--shadow-green);
    position: relative;
    overflow: hidden;
}

.search-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition-slow);
}

.search-btn:hover {
    background: var(--primary-green-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-green-lg);
}

.search-btn:hover::before {
    left: 100%;
}

.search-btn:active {
    transform: translateY(0);
}

.search-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* ===== SUGGESTIONS DROPDOWN ===== */

.suggestions-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    max-height: 280px;
    overflow-y: auto;
    z-index: 50;
    display: none;
    box-shadow: var(--shadow-lg);
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.suggestions-dropdown.show {
    display: block;
}

.suggestion-item {
    padding: 0.875rem 1.25rem;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid var(--border-light);
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover,
.suggestion-item.active {
    background: var(--primary-green-subtle);
}

.suggestion-item .city-name {
    color: var(--text-primary);
    font-weight: 500;
}

.suggestion-item .city-state {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.suggestion-item .cached-badge {
    margin-left: auto;
    background: var(--primary-green-subtle);
    color: var(--primary-green);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
}

/* ===== CACHE NOTICE ===== */

.cache-notice {
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    display: inline-flex;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid var(--border-color);
}

.cache-notice .cache-icon {
    font-size: 1rem;
}

/* ============================================
   RESULTS SECTION
   ============================================ */

.results-section {
    padding: 3rem 2rem;
    max-width: 1500px;
    margin: 0 auto;
    background: var(--bg-secondary);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
}

.fire-icon {
    font-size: 1.5rem;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.download-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: var(--font-family);
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.download-btn:hover {
    background: var(--primary-green);
    border-color: var(--primary-green);
    color: white;
    box-shadow: var(--shadow-green);
}

/* ============================================
   GOLDEN TOP 10 CARDS
   ============================================ */

.top-leads {
    margin-bottom: 4rem;
}

.leads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}

.lead-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.lead-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: transparent;
    transition: var(--transition);
}

.lead-card:hover {
    border-color: var(--primary-green);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.lead-card:hover::before {
    background: var(--primary-green);
}

/* Golden card special styling */
.lead-card.golden {
    border-color: var(--accent-gold);
    background: linear-gradient(135deg, #FFFEF5 0%, #FFFFFF 100%);
}

.lead-card.golden::before {
    height: 4px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-gold-light), var(--accent-gold));
}

.lead-card.golden:hover {
    border-color: var(--accent-gold);
    box-shadow: 0 8px 28px rgba(255, 184, 0, 0.2);
}

.lead-rank {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light));
    color: #1A1A1A;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.8rem;
    box-shadow: 0 2px 8px rgba(255, 184, 0, 0.3);
}

.lead-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    padding-right: 2.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-primary);
}

.lead-cuisine {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lead-meta {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 1rem;
}

.meta-item {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.meta-item strong {
    color: var(--text-primary);
    font-weight: 600;
}

.lead-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.lead-score {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-green);
}

.lead-category {
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid transparent;
}

.lead-category.cat-A {
    background: var(--category-a-bg);
    color: var(--category-a);
    border-color: rgba(229, 57, 53, 0.2);
}

.lead-category.cat-B {
    background: var(--category-b-bg);
    color: #E65100;
    border-color: rgba(255, 152, 0, 0.2);
}

.lead-category.cat-C {
    background: var(--category-c-bg);
    color: var(--primary-green-dark);
    border-color: rgba(76, 175, 80, 0.2);
}

.lead-category.cat-D {
    background: var(--category-d-bg);
    color: var(--category-d);
    border-color: rgba(156, 39, 176, 0.2);
}

/* ============================================
   CATEGORY TABS
   ============================================ */

.category-section {
    margin-bottom: 3rem;
}

.category-tabs {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.875rem 1.5rem;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-family: var(--font-family);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
}

.tab-btn:hover {
    border-color: var(--primary-green);
    color: var(--primary-green);
    background: var(--primary-green-subtle);
}

.tab-btn.active {
    background: var(--primary-green);
    border-color: var(--primary-green);
    color: white;
    box-shadow: var(--shadow-green);
}

.tab-icon {
    font-size: 1.1rem;
}

.tab-label {
    font-weight: 500;
}

.tab-count {
    background: rgba(0, 0, 0, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.tab-btn.active .tab-count {
    background: rgba(255, 255, 255, 0.25);
}

.category-info {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary-green);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.category-info h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--primary-green);
}

.category-info p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

/* ============================================
   TABLE
   ============================================ */

.table-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.leads-table {
    width: 100%;
    border-collapse: collapse;
}

.leads-table th {
    padding: 1.25rem 1.25rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.75px;
    color: var(--text-muted);
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}

.leads-table td {
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition-fast);
}

.leads-table tbody tr {
    cursor: pointer;
    transition: var(--transition-fast);
}

.leads-table tbody tr:hover {
    background: var(--primary-green-subtle);
}

.leads-table tbody tr:last-child td {
    border-bottom: none;
}

.table-name {
    font-weight: 500;
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-primary);
}

.table-cuisine {
    color: var(--text-secondary);
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.table-rating {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.table-rating .star {
    color: var(--accent-gold);
    font-size: 0.9rem;
}

.table-score {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary-green);
}

.table-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.table-btn:hover {
    background: var(--primary-green);
    border-color: var(--primary-green);
    color: white;
}

/* ============================================
   MODAL
   ============================================ */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 2rem;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    max-width: 640px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-lg);
    animation: modalSlide 0.3s ease;
}

@keyframes modalSlide {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 36px;
    height: 36px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--primary-green);
    border-color: var(--primary-green);
    color: white;
}

.modal-content {
    padding: 2rem;
}

.modal-header {
    margin-bottom: 1.75rem;
    padding-right: 3rem;
}

.modal-header h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: var(--text-primary);
}

.modal-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.modal-section {
    margin-bottom: 1.75rem;
}

.modal-section h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.modal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.modal-stat {
    background: var(--bg-tertiary);
    padding: 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}

.modal-stat-value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.modal-pitch {
    background: var(--primary-green-subtle);
    border: 1px solid var(--border-green);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.modal-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 2rem;
}

.modal-btn {
    flex: 1;
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font-family);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-btn-primary {
    background: var(--primary-green);
    border: none;
    color: white;
    box-shadow: var(--shadow-green);
}

.modal-btn-primary:hover {
    background: var(--primary-green-dark);
    box-shadow: var(--shadow-green-lg);
    transform: translateY(-2px);
}

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

.modal-btn-secondary:hover {
    border-color: var(--primary-green);
    color: var(--primary-green);
    background: var(--primary-green-subtle);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.25rem 2rem;
    background: var(--bg-tertiary);
    border-top: 1px solid var(--border-color);
    font-size: 0.875rem;
    color: var(--text-muted);
    flex-shrink: 0;
    margin-top: auto;
}

.footer-logo {
    font-size: 1.1rem;
}

.footer-logo-img {
    height: 28px;
    width: auto;
    object-fit: contain;
}

.footer strong {
    color: var(--primary-green);
    font-weight: 600;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .header-stats {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .stat-item {
        padding: 0.4rem 0.75rem;
    }

    .stat-value {
        font-size: 1.25rem;
    }

    .hero {
        padding: 3rem 1.5rem 2.5rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .search-container {
        flex-direction: column;
    }

    .search-input,
    .search-btn {
        width: 100%;
    }

    .results-section {
        padding: 2rem 1rem;
    }

    .section-header {
        flex-direction: column;
        gap: 1rem;
    }

    .leads-grid {
        grid-template-columns: 1fr;
    }

    .category-tabs {
        gap: 0.5rem;
    }

    .tab-btn {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }

    .modal {
        margin: 1rem;
        max-height: calc(100vh - 2rem);
    }

    .modal-content {
        padding: 1.5rem;
    }

    .modal-grid {
        grid-template-columns: 1fr;
    }

    .modal-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.75rem;
    }

    .logo-text {
        font-size: 1.5rem;
    }

    .logo-sub {
        display: none;
    }

    .leads-table th,
    .leads-table td {
        padding: 0.75rem 0.75rem;
        font-size: 0.8rem;
    }
}

/* ============================================
   LOADING STATE
   ============================================ */

.loading {
    text-align: center;
    padding: 4rem;
    color: var(--text-muted);
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-green);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    animation: spin 0.8s linear infinite;
}

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

/* ============================================
   SCROLLBAR
   ============================================ */

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 5px;
    border: 2px solid var(--bg-secondary);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Smooth focus states for accessibility */
*:focus-visible {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
}