/* ==========================================
   MUSIZI — Design System & Styles
   Mobile-first, premium aesthetic
   ========================================== */

/* --- CSS Variables --- */
:root {
    /* Brand colors — earthy greens with warm accents */
    --green-50: #f0fdf4;
    --green-100: #dcfce7;
    --green-200: #bbf7d0;
    --green-300: #86efac;
    --green-400: #4ade80;
    --green-500: #22c55e;
    --green-600: #16a34a;
    --green-700: #15803d;
    --green-800: #166534;
    --green-900: #14532d;

    --earth-50: #fefce8;
    --earth-100: #fef9c3;
    --earth-400: #facc15;
    --earth-600: #ca8a04;

    --warm-50: #fff7ed;
    --warm-400: #fb923c;
    --warm-600: #ea580c;

    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    --primary: var(--green-600);
    --primary-dark: var(--green-800);
    --accent: var(--earth-400);

    /* Semantic theme tokens (light defaults) */
    --bg: #ffffff;
    --bg-secondary: var(--gray-50);
    --bg-card: #ffffff;
    --bg-muted: var(--green-50);
    --bg-elevated: #ffffff;
    --text-primary: var(--gray-900);
    --text-secondary: var(--gray-800);
    --text-muted: var(--gray-500);
    --text-faint: var(--gray-400);
    --border-color: var(--gray-200);
    --border-light: var(--gray-100);
    --header-bg: rgba(255, 255, 255, 0.9);
    --header-border: rgba(0, 0, 0, 0.06);
    --footer-bg: var(--gray-900);
    --footer-text: var(--gray-300);

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    /* Borders */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 0 40px rgba(22, 163, 74, 0.15);

    /* Transitions */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Dark Mode --- */
[data-theme="dark"] {
    --bg: #0f1117;
    --bg-secondary: #181a20;
    --bg-card: #1c1e26;
    --bg-muted: #1e2a22;
    --bg-elevated: #22242c;
    --text-primary: #f1f3f5;
    --text-secondary: #dee2e6;
    --text-muted: #868e96;
    --text-faint: #5c636e;
    --border-color: #2c2e36;
    --border-light: #23252d;
    --header-bg: rgba(15, 17, 23, 0.92);
    --header-border: rgba(255, 255, 255, 0.06);
    --footer-bg: #0a0b0f;
    --footer-text: #868e96;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -4px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 40px rgba(22, 163, 74, 0.1);
    --green-50: #1e2a22;
    --green-100: #1a3a24;
    --gray-50: #181a20;
    --gray-100: #1c1e26;
    --gray-800: #dee2e6;
    --gray-900: #f1f3f5;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s var(--ease);
}

a:hover {
    color: var(--primary-dark);
}

/* --- Layout --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.section {
    padding: var(--space-3xl) 0;
}

.section-alt {
    background: var(--bg-secondary);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
    gap: var(--space-md);
}

.section-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    margin-top: var(--space-xs);
}

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--header-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--header-border);
    transition: all 0.3s var(--ease);
}

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

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
}

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

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

.nav {
    display: flex;
    gap: var(--space-xs);
}

.nav-link {
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-600);
    transition: all 0.2s var(--ease);
}

.nav-link:hover,
.nav-link.active {
    color: var(--green-700);
    background: var(--green-50);
}

.nav-admin {
    color: var(--gray-400);
    border-left: 1.5px solid var(--gray-200);
    margin-left: var(--space-sm);
    padding-left: var(--space-md);
    font-size: 0.8125rem;
}

.nav-admin:hover {
    color: var(--green-600);
    background: var(--green-50);
}

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

.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--gray-700);
    border-radius: 2px;
    transition: all 0.3s var(--ease);
}

/* --- Hero --- */
.hero {
    position: relative;
    padding-top: calc(64px + var(--space-3xl));
    padding-bottom: var(--space-3xl);
    overflow: hidden;
    min-height: 520px;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: var(--bg-secondary);
    z-index: -2;
}

.hero-bg::before {
    display: none;
}

.hero-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
}

.hero-title .highlight {
    color: var(--green-500);
    -webkit-text-fill-color: var(--green-500);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: var(--space-xl);
    line-height: 1.7;
}

/* --- Search Box --- */
.search-box {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 6px 6px 6px 20px;
    max-width: 540px;
    margin: 0 auto var(--space-xl);
    box-shadow: var(--shadow-lg);
    transition: all 0.3s var(--ease);
}

.search-box:focus-within {
    border-color: var(--green-400);
    box-shadow: var(--shadow-glow);
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    font-family: var(--font-sans);
    color: var(--text-secondary);
    background: transparent;
}

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

.search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    border: none;
    background: linear-gradient(135deg, var(--green-600), var(--green-500));
    color: white;
    cursor: pointer;
    transition: all 0.2s var(--ease);
    flex-shrink: 0;
}

.search-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

/* --- Category Pills --- */
.category-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.pill {
    padding: 8px 16px;
    border-radius: var(--radius-full);
    border: 1.5px solid var(--border-color);
    background: white;
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.2s var(--ease);
    white-space: nowrap;
}

.pill:hover {
    border-color: var(--green-300);
    color: var(--green-700);
    background: var(--green-50);
}

.pill.active {
    border-color: var(--green-500);
    background: var(--green-600);
    color: white;
}

/* --- Indigenous Toggle --- */
.indigenous-toggle {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.indigenous-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--green-600);
    cursor: pointer;
}

/* --- Plants Grid --- */
.plants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--space-lg);
}

/* --- Plant Card --- */
.plant-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s var(--ease);
    position: relative;
}

.plant-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--green-200);
}

.plant-card-image {
    height: 180px;
    background: var(--bg-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    position: relative;
    overflow: hidden;
}

.plant-card-image::after {
    display: none;
}

.plant-card-body {
    padding: var(--space-md) var(--space-lg) var(--space-lg);
}

.plant-card-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.plant-card-scientific {
    font-size: 0.8125rem;
    font-style: italic;
    color: var(--text-faint);
    margin-bottom: var(--space-sm);
}

.plant-card-local {
    font-size: 0.8125rem;
    color: var(--green-700);
    font-weight: 500;
    margin-bottom: var(--space-sm);
}

.plant-card-meta {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-category {
    background: var(--bg-muted);
    color: var(--green-600);
}

.badge-indigenous {
    background: var(--earth-100);
    color: var(--earth-600);
}

/* --- Nurseries Grid --- */
.nurseries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-lg);
}

/* --- Nursery Card --- */
.nursery-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s var(--ease);
}

.nursery-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--green-200);
}

.nursery-card-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.nursery-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    font-weight: 700;
    flex-shrink: 0;
}

.nursery-name {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-primary);
}

.nursery-speciality {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.nursery-verified {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: var(--green-600);
    font-weight: 600;
}

.nursery-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.nursery-detail {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.875rem;
    color: var(--gray-600);
}

.nursery-detail-icon {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.nursery-distance {
    font-size: 0.8125rem;
    color: var(--warm-600);
    font-weight: 500;
}

.nursery-actions {
    display: flex;
    gap: var(--space-sm);
}

/* --- Bundles Grid --- */
.bundles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-xl);
}

/* --- Bundle Card --- */
.bundle-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all 0.3s var(--ease);
}

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

.bundle-card-image {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    position: relative;
}

.bundle-card-image.home {
    background: var(--bg-muted);
}

.bundle-card-image.business {
    background: #e0e7ff;
}

.bundle-card-image.school {
    background: var(--earth-50);
}

.bundle-card-body {
    padding: var(--space-xl);
}

.bundle-card-target {
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-sm);
}

.bundle-card-target.home {
    background: var(--green-100);
    color: var(--green-700);
}

.bundle-card-target.business {
    background: #e0e7ff;
    color: #4338ca;
}

.bundle-card-target.school {
    background: var(--earth-100);
    color: var(--earth-600);
}

.bundle-card-name {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.bundle-card-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

.bundle-card-items {
    list-style: none;
    margin-bottom: var(--space-lg);
}

.bundle-card-items li {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    padding: 4px 0;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.bundle-card-items li::before {
    content: '✓';
    color: var(--green-500);
    font-weight: 700;
}

.bundle-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bundle-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
}

.bundle-price small {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-muted);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s var(--ease);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.25);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(22, 163, 74, 0.35);
    color: white;
}

.btn-outline {
    background: var(--bg-card);
    color: var(--green-700);
    border: 1.5px solid var(--green-200);
}

.btn-outline:hover {
    background: var(--green-50);
    border-color: var(--green-400);
    color: var(--green-700);
}

.btn-whatsapp {
    background: #25D366;
    color: white;
}

.btn-whatsapp:hover {
    background: #20bd5a;
    color: white;
    transform: translateY(-1px);
}

.btn-sm {
    padding: 7px 14px;
    font-size: 0.8125rem;
}

.btn-icon {
    padding: 8px;
    border-radius: var(--radius-md);
}

/* --- Modal --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    animation: fadeIn 0.2s var(--ease);
}

.modal {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    max-width: 600px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.3s var(--ease);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    border: none;
    background: var(--gray-100);
    color: var(--gray-600);
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s var(--ease);
    z-index: 10;
}

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

.modal-body {
    padding: var(--space-xl);
}

.modal-plant-image {
    height: 200px;
    background: var(--bg-muted);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    margin-bottom: var(--space-xl);
}

.modal-plant-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.modal-plant-scientific {
    font-style: italic;
    color: var(--text-faint);
    font-size: 0.9375rem;
    margin-bottom: var(--space-sm);
}

.modal-plant-local {
    color: var(--green-700);
    font-weight: 600;
    font-size: 0.9375rem;
    margin-bottom: var(--space-lg);
}

.modal-plant-desc {
    color: var(--gray-600);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: var(--space-xl);
}

.care-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.care-item {
    background: var(--gray-50);
    padding: var(--space-md);
    border-radius: var(--radius-md);
}

.care-item-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-400);
    margin-bottom: 4px;
}

.care-item-value {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.availability-section {
    margin-top: var(--space-xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--gray-200);
}

.availability-title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.availability-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md);
    background: var(--gray-50);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
}

.availability-nursery {
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.availability-price {
    font-weight: 700;
    color: var(--green-700);
}

.availability-age {
    font-size: 0.75rem;
    color: var(--gray-400);
}

/* --- Map --- */
.map-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
}

/* --- Loading & Empty State --- */
.loading {
    text-align: center;
    padding: var(--space-3xl);
    color: var(--gray-400);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--green-500);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto var(--space-md);
}

.empty-state {
    text-align: center;
    padding: var(--space-3xl);
}

.empty-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: var(--space-md);
}

.empty-state h3 {
    font-size: 1.125rem;
    color: var(--gray-700);
    margin-bottom: var(--space-sm);
}

.empty-state p {
    color: var(--gray-400);
    font-size: 0.9375rem;
}

.results-count {
    font-size: 0.875rem;
    color: var(--gray-400);
    font-weight: 500;
}

/* --- Footer --- */
.footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

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

.footer-tagline {
    font-size: 0.875rem;
    color: var(--gray-400);
    margin-top: var(--space-sm);
}

.footer-links {
    display: flex;
    gap: var(--space-3xl);
}

.footer-col h4 {
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.footer-col a {
    display: block;
    color: var(--gray-400);
    font-size: 0.875rem;
    padding: 4px 0;
    transition: color 0.2s var(--ease);
}

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

.footer-bottom {
    padding-top: var(--space-xl);
    border-top: 1px solid var(--gray-800);
    font-size: 0.8125rem;
    color: var(--text-faint);
}

/* --- Animations --- */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

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

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

/* --- Responsive --- */
@media (max-width: 768px) {
    .header-inner {
        height: 56px;
    }

    .nav {
        display: none;
        position: absolute;
        top: 56px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: var(--space-md);
        box-shadow: var(--shadow-lg);
        border-bottom: 1px solid var(--gray-200);
    }

    .nav.open {
        display: flex;
    }

    .mobile-menu-btn {
        display: flex;
    }

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

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero {
        padding-top: calc(56px + var(--space-xl));
        min-height: auto;
    }

    .section {
        padding: var(--space-xl) 0;
    }

    .section-title {
        font-size: 1.35rem;
    }

    .plants-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: var(--space-md);
    }

    .plant-card-image {
        height: 130px;
        font-size: 2.5rem;
    }

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

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

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

    .footer-links {
        flex-direction: column;
        gap: var(--space-xl);
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .modal {
        max-height: 95vh;
        margin: var(--space-sm);
    }

    #map {
        height: 300px !important;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .plants-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero-title {
        font-size: 2.5rem;
    }
}

@media (min-width: 1025px) {
    .footer-inner {
        grid-template-columns: 1.5fr 1fr;
    }
}

/* --- Theme Toggle --- */
.theme-toggle-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    transition: all 0.2s var(--ease);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle-btn:hover {
    background: var(--bg-secondary);
    color: var(--primary);
}

/* --- Contribution Section --- */
.contribution-section {
    text-align: center;
    background: var(--bg-card);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.contribution-counter {
    font-family: var(--font-display);
    font-size: 5rem;
    font-weight: 800;
    color: var(--green-600);
    line-height: 1;
    margin: var(--space-lg) 0;
    display: inline-block;
    background: linear-gradient(135deg, var(--green-800), var(--green-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="dark"] .contribution-counter {
    background: linear-gradient(135deg, var(--green-400), var(--green-300));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contribution-text {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.125rem;
    color: var(--text-secondary);
}