/* ============================================
   AFYA MARKET - COMPLETE STYLESHEET
   Version: 8.0 - Fixed Hero Section Gap
   ============================================ */

:root {
    --primary-color: #006B3A;
    --primary-dark: #004D28;
    --primary-darker: #003518;
    --primary-light: #2E8B57;
    --primary-lighter: #50C878;
    --secondary-color: #FFA000;
    --accent-color: #FF5722;
    --text-dark: #003518;
    --text-light: #1B5E3F;
    --background-light: #EBF5F0;
    --background-white: #FFFFFF;
    --shadow: 0 4px 20px rgba(0, 107, 58, 0.15);
    --shadow-hover: 0 8px 30px rgba(0, 107, 58, 0.25);
    --border-radius: 14px;
    --nav-height: 76px;
    --sidebar-width: 280px;
    --sidebar-collapsed-width: 80px;
    
    /* Button Colors */
    --btn-view: #00BCD4;
    --btn-view-dark: #0097A7;
    --btn-call: #2196F3;
    --btn-call-dark: #1976D2;
    --btn-favorite: #ff6b6b;
    --btn-favorite-dark: #ff4757;
    --btn-directions: #9C27B0;
    --btn-directions-dark: #7B1FA2;
    --btn-primary: #006B3A;
    --btn-primary-dark: #004D28;
    --btn-danger: #f44336;
    --btn-danger-dark: #d32f2f;
    --btn-success: #4caf50;
    --btn-success-dark: #388e3c;
    --btn-warning: #ff9800;
    --btn-warning-dark: #f57c00;
}

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

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ============================================
   FIX: MAIN - NO MARGIN TOP (FIXES HERO GAP)
   ============================================ */
main {
    flex: 1;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

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

/* ============================================
   NAVIGATION - FIXED POSITIONING
   ============================================ */
.navbar {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 50%, var(--primary-darker) 100%);
    box-shadow: var(--shadow);
    height: var(--nav-height);
}

.nav-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--nav-height);
}

.logo {
    background: transparent;
    padding: 0;
    margin: 0;
    position: relative;
    display: inline-block;
    z-index: 2;
    height: var(--nav-height);
    line-height: var(--nav-height);
}

.logo-text {
    background: white;
    display: inline-flex;
    align-items: center;
    position: relative;
    z-index: 1;
    height: var(--nav-height);
    padding: 0 0 0 32px;
    margin-left: -32px;
    clip-path: polygon(0% 0%, 100% 0%, 100% 70%, 96% 85%, 88% 100%, 0% 100%);
}

.logo h1 {
    color: #1A365D;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin: 0;
    white-space: nowrap;
    padding-right: 75px;
}

/* Desktop Navigation */
.nav-links {
    display: flex;
    gap: 2.5rem;
    background: transparent;
}

.nav-links a {
    text-decoration: none;
    color: rgba(255,255,255,0.92);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.25s ease;
    cursor: pointer;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #FFFFFF, rgba(255,255,255,0.5));
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-toggle i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 260px;
    border-radius: 12px;
    box-shadow: var(--shadow-hover);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--text-dark);
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
    text-decoration: none;
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu a:hover {
    background: var(--background-light);
    padding-left: 25px;
    color: var(--primary-color);
}

/* Navigation Icons */
.nav-icons {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.cart-btn, .favorite-btn, .user-btn {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    padding: 0.6rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    position: relative;
}

.cart-btn:hover, .favorite-btn:hover, .user-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-1px);
}

.cart-count, .favorite-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #FFFFFF;
    color: var(--primary-color);
    border-radius: 20px;
    padding: 2px 7px;
    font-size: 0.65rem;
    font-weight: 800;
    min-width: 20px;
    text-align: center;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    padding: 0.6rem;
    border-radius: 10px;
    cursor: pointer;
    color: white;
    font-size: 1.3rem;
}

/* Mobile Sidebar */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100%;
    background: white;
    box-shadow: 2px 0 20px rgba(0,0,0,0.15);
    z-index: 1004;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.mobile-sidebar.open {
    left: 0;
}

.mobile-sidebar-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-mobile-menu {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-nav-links {
    flex: 1;
    padding: 1rem 0;
}

.mobile-nav-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1rem 1.5rem;
    color: var(--text-dark);
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
}

.mobile-nav-links a:hover {
    background: var(--background-light);
    color: var(--primary-color);
}

.mobile-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    cursor: pointer;
}

.mobile-dropdown-menu {
    display: none;
    background: #f9f9f9;
    padding: 0.5rem 0;
}

.mobile-dropdown.open .mobile-dropdown-menu {
    display: block;
}

.mobile-dropdown-menu a {
    padding: 0.75rem 1.5rem 0.75rem 3.5rem;
}

.mobile-sidebar-footer {
    padding: 1rem;
    border-top: 1px solid #eee;
}

.mobile-sidebar-footer a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.8rem 0;
    color: var(--text-dark);
    text-decoration: none;
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1003;
    display: none;
}

.mobile-overlay.show {
    display: block;
}

/* User Menu */
.user-menu {
    position: fixed;
    top: 76px;
    right: 20px;
    background: white;
    min-width: 240px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    z-index: 1001;
    display: none;
}

.user-menu.show {
    display: block;
}

.user-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--text-dark);
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
}

.user-menu a:last-child {
    border-bottom: none;
}

.user-menu a:hover {
    background: var(--background-light);
    color: var(--primary-color);
}

/* ============================================
   HERO SECTION - FIXED NO GAP
   ============================================ */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 50%, var(--primary-darker) 100%);
    padding: 20px 2rem 120px;
    color: white;
    overflow: hidden;
    text-align: center;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0 !important;
    padding-top: 20px !important;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 800;
    text-shadow: 0 2px 20px rgba(0,0,0,0.2);
    letter-spacing: -0.5px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    font-weight: 300;
    letter-spacing: 0.3px;
}

/* Hero Waves */
.waves-container {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 100px;
    overflow: hidden;
    z-index: 1;
}

.waves-container svg {
    width: 100%;
    height: 100%;
    display: block;
}

.waves-container .wave1 {
    animation: waveMove 8s ease-in-out infinite;
}

.waves-container .wave2 {
    animation: waveMove 12s ease-in-out infinite reverse;
}

.waves-container .wave3 {
    animation: waveMove 15s ease-in-out infinite;
}

@keyframes waveMove {
    0% { transform: translateX(0); }
    50% { transform: translateX(-50px); }
    100% { transform: translateX(0); }
}

/* Hero CTA Buttons */
.hero-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: nowrap;
    margin-top: 2rem;
}

.btn-hero-get-started {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #ffffff;
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: none;
    cursor: pointer;
}

.btn-hero-get-started:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255,255,255,0.3);
}

.btn-hero-secondary {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 2px solid rgba(255,255,255,0.3);
    cursor: pointer;
    flex: 0 1 auto;
    white-space: nowrap;
    background: rgba(255,255,255,0.15);
    color: #ffffff;
    backdrop-filter: blur(10px);
}

.btn-hero-secondary:hover {
    transform: translateY(-3px);
    background: rgba(255,255,255,0.25);
    box-shadow: 0 10px 30px rgba(255,255,255,0.2);
}

/* ============================================
   BUTTON STYLES
   ============================================ */
.btn-primary {
    background: linear-gradient(135deg, var(--btn-primary), var(--btn-primary-dark));
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 107, 58, 0.3);
}

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

.btn-secondary {
    background: #f5f5f5;
    color: #555;
    border: 1px solid #ddd;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

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

.btn-view {
    background: linear-gradient(135deg, var(--btn-view), var(--btn-view-dark));
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-view:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 188, 212, 0.3);
}

.btn-call {
    background: linear-gradient(135deg, var(--btn-call), var(--btn-call-dark));
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-call:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.btn-favorite {
    background: linear-gradient(135deg, var(--btn-favorite), var(--btn-favorite-dark));
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-favorite:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.3);
}

.btn-favorite.active {
    background: linear-gradient(135deg, #ff4757, #e84118);
}

.btn-directions {
    background: linear-gradient(135deg, var(--btn-directions), var(--btn-directions-dark));
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-directions:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(156, 39, 176, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, var(--btn-danger), var(--btn-danger-dark));
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, var(--btn-success), var(--btn-success-dark));
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.btn-warning {
    background: linear-gradient(135deg, var(--btn-warning), var(--btn-warning-dark));
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

.btn-cart {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.75rem;
    font-weight: 600;
}

.btn-cart:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-small {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

/* ============================================
   CART SIDEBAR
   ============================================ */
.cart-sidebar {
    position: fixed;
    right: -400px;
    top: 0;
    width: 400px;
    height: 100%;
    background: white;
    box-shadow: -2px 0 20px rgba(0,0,0,0.15);
    transition: right 0.3s ease;
    z-index: 1002;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.close-cart {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.cart-footer {
    padding: 1rem;
    border-top: 1px solid #e0e0e0;
    background: white;
}

.empty-cart {
    text-align: center;
    padding: 2rem;
    color: #999;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem;
    border-bottom: 1px solid #eee;
    background: white;
}

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

.cart-item button {
    transition: all 0.2s ease;
}

.cart-item button:hover {
    transform: scale(1.05);
}

/* ============================================
   STATUS BADGES
   ============================================ */
.status-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

.status-approved { background: #c8e6c9; color: #2e7d32; }
.status-pending { background: #fff3e0; color: #ef6c00; }
.status-rejected { background: #ffebee; color: #c62828; }
.status-processing { background: #e3f2fd; color: #1565c0; }
.status-completed { background: #c8e6c9; color: #2e7d32; }
.status-cancelled { background: #ffebee; color: #c62828; }
.status-confirmed { background: #c8e6c9; color: #2e7d32; }
.status-active { background: #c8e6c9; color: #2e7d32; }

/* ============================================
   BUSINESS NATURE BADGES
   ============================================ */
.business-nature-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

.nature-retail { background: #e3f2fd; color: #1565c0; }
.nature-wholesale { background: #fff3e0; color: #ef6c00; }
.nature-retail_wholesale { background: #e8f5e9; color: #2e7d32; }
.nature-healthcare { background: #fce4ec; color: #c2185b; }
.nature-wellness { background: #e8eaf6; color: #3949ab; }

/* Delivery Badge */
.delivery-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
    font-size: 0.6rem;
    font-weight: 600;
    margin-left: 0.5rem;
}
.delivery-yes { background: #c8e6c9; color: #2e7d32; }
.delivery-no { background: #ffebee; color: #c62828; }

/* ============================================
   CATEGORY CARDS
   ============================================ */
.category-card-icon {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 1px solid #e0e0e0;
}

.category-card-icon:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.category-card-icon i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.category-card-icon h3 {
    font-size: 1rem;
    margin: 0 0 0.5rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* ============================================
   PRODUCT CARDS
   ============================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-image {
    height: 160px;
    background: linear-gradient(135deg, #f8f9fa, #e0e0e0);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-details {
    padding: 0.8rem;
}

.product-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-dark);
    margin-bottom: 0.3rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-category {
    font-size: 0.7rem;
    color: #666;
    margin-bottom: 0.3rem;
}

.product-price {
    font-size: 1rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 0.3rem 0;
}

.product-stock {
    font-size: 0.65rem;
    margin: 0.2rem 0;
}

.stock-good { color: #4caf50; font-weight: bold; }
.stock-low { color: #ff9800; font-weight: bold; }
.stock-out { color: #f44336; font-weight: bold; }

.prescription-badge {
    display: inline-block;
    background: #ff9800;
    color: white;
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    font-size: 0.6rem;
    margin-top: 0.3rem;
}

.product-meta {
    font-size: 0.7rem;
    color: #666;
    margin: 0.2rem 0;
}

/* ============================================
   BUSINESS CARDS
   ============================================ */
.businesses-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.2rem;
    margin-top: 1rem;
}

.business-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    position: relative;
}

.business-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.business-card-image {
    width: 100%;
    height: 150px;
    background: #fafafa;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.business-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.business-card:hover .business-card-image img {
    transform: scale(1.05);
}

.business-card-info {
    padding: 0.8rem;
}

.business-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 0.3rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}

.business-name:hover {
    color: var(--primary-color);
}

.business-nature-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    font-size: 0.6rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.nature-retail { background: #e3f2fd; color: #1565c0; }
.nature-wholesale { background: #fff3e0; color: #ef6c00; }
.nature-retail_wholesale { background: #e8f5e9; color: #2e7d32; }
.nature-healthcare { background: #fce4ec; color: #c2185b; }
.nature-wellness { background: #e8eaf6; color: #3949ab; }

.business-location {
    font-size: 0.65rem;
    color: #888;
    margin: 0.3rem 0;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.business-actions {
    display: flex;
    gap: 0.4rem;
    margin-top: 0.6rem;
    flex-wrap: wrap;
}

.business-actions button {
    flex: 1;
    padding: 0.3rem 0.2rem;
    font-size: 0.6rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    min-width: 40px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
}

.business-actions button i {
    font-size: 0.55rem;
}

.btn-view-shop {
    background: var(--primary-color);
    color: white;
}

.btn-view-shop:hover {
    background: var(--primary-dark);
}

.btn-call-shop {
    background: #2196F3;
    color: white;
}

.btn-call-shop:hover {
    background: #1976D2;
}

.btn-save-shop {
    background: #f5f5f5;
    color: #666;
    flex: 0.6;
}

.btn-save-shop:hover {
    background: #e8e8e8;
}

.btn-save-shop.active {
    background: var(--primary-color);
    color: white;
}

.btn-book-now, .btn-visit-now {
    background: var(--btn-warning);
    color: white;
}

.btn-book-now:hover, .btn-visit-now:hover {
    background: var(--btn-warning-dark);
}

/* ============================================
   ORDERS & APPOINTMENTS CARDS
   ============================================ */
.orders-grid, .appointments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 1.2rem;
    margin-top: 1rem;
}

.order-card, .appointment-card {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid #e0e0e0;
    transition: transform 0.3s ease;
}

.order-card:hover, .appointment-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.order-header, .appointment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.order-id, .appointment-title {
    font-weight: bold;
    color: var(--primary-dark);
}

.order-details, .appointment-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    flex-wrap: wrap;
}

.detail-item i {
    width: 18px;
    color: var(--primary-color);
    font-size: 0.7rem;
}

.order-items {
    background: #f8f9fa;
    padding: 0.5rem;
    border-radius: 8px;
    margin: 0.5rem 0;
    font-size: 0.7rem;
    max-height: 100px;
    overflow-y: auto;
}

.order-items ul {
    margin: 0.2rem 0 0 1rem;
    padding-left: 0;
}

.order-items li {
    margin: 0.1rem 0;
}

/* ============================================
   ACTION BUTTONS
   ============================================ */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.6rem;
    padding-top: 0.5rem;
    border-top: 1px solid #f0f0f0;
    flex-wrap: wrap;
}

.action-buttons button {
    flex: 1;
    padding: 0.3rem;
    font-size: 0.65rem;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

/* ============================================
   FILTER BAR
   ============================================ */
.filter-bar {
    background: white;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.filter-bar select, .filter-bar input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    min-width: 140px;
    font-size: 0.85rem;
}

.filter-bar button {
    background: #4caf50;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
}

.filter-bar button.clear-btn {
    background: #f44336;
}

/* Searchable Select */
.searchable-select {
    position: relative;
    flex: 1;
    min-width: 180px;
}

.searchable-select input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    background: white;
}

.searchable-select input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.searchable-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 200px;
    overflow-y: auto;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-top: 2px;
    z-index: 100;
    display: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.searchable-select-dropdown.show {
    display: block;
}

.searchable-select-option {
    padding: 0.5rem;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background 0.2s;
}

.searchable-select-option:hover {
    background: #f0f0f0;
}

.searchable-select-option.selected {
    background: var(--background-light);
    color: var(--primary-color);
    font-weight: 500;
}

/* Results Header */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
}

.view-btn {
    padding: 0.5rem;
    border: 1px solid #ddd;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.view-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* ============================================
   BACK BUTTON
   ============================================ */
.back-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.4rem 0;
}

.back-btn:hover {
    color: var(--primary-dark);
}

/* ============================================
   TAB BUTTONS
   ============================================ */
.tab-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.tab-btn {
    background: none;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    cursor: pointer;
    color: #666;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

/* ============================================
   DASHBOARD LAYOUT
   ============================================ */
.dashboard-layout {
    display: flex;
    min-height: calc(100vh - var(--nav-height) - 300px);
    margin-top: 0 !important;
    background: var(--background-light);
}

.dashboard-sidebar {
    width: var(--sidebar-width);
    background: white;
    box-shadow: 2px 0 10px rgba(0,0,0,0.05);
    position: fixed;
    top: var(--nav-height);
    bottom: 0;
    overflow-y: auto;
    transition: width 0.3s ease;
    z-index: 99;
}

.dashboard-sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-header h3 {
    font-size: 1.1rem;
    color: var(--primary-dark);
    white-space: nowrap;
}

.sidebar-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.sidebar-menu {
    padding: 1rem 0;
}

.sidebar-menu-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1.5rem;
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border-left: 3px solid transparent;
    white-space: nowrap;
}

.sidebar-menu-item:hover {
    background: var(--background-light);
    color: var(--primary-color);
}

.sidebar-menu-item.active {
    background: var(--background-light);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.sidebar-menu-item i {
    width: 24px;
    font-size: 1.1rem;
}

.sidebar-menu-item span {
    font-size: 0.9rem;
    font-weight: 500;
}

.dashboard-sidebar.collapsed .sidebar-menu-item span,
.dashboard-sidebar.collapsed .sidebar-header h3 {
    display: none;
}

.dashboard-sidebar.collapsed .sidebar-menu-item {
    justify-content: center;
    padding: 0.9rem;
}

.dashboard-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 2rem;
    transition: margin-left 0.3s ease;
}

.dashboard-content.expanded {
    margin-left: var(--sidebar-collapsed-width);
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.stat-icon {
    width: 55px;
    height: 55px;
    background: var(--background-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.stat-info h4 {
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 0.3rem;
}

.stat-number {
    font-size: 1.6rem;
    font-weight: bold;
    color: var(--primary-dark);
}

.stat-trend {
    font-size: 0.7rem;
    margin-top: 0.2rem;
}

.trend-up { color: #4caf50; }
.trend-down { color: #f44336; }

/* Year Filter */
.year-filter {
    background: white;
    border-radius: 16px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.year-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.year-selector label {
    font-weight: 600;
    color: var(--primary-dark);
}

.year-selector select {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.9rem;
    background: white;
    cursor: pointer;
}

.year-selector button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
}

.print-btn {
    background: #045f41;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Charts Container */
.charts-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.chart-card {
    background: white;
    border-radius: 16px;
    padding: 1.2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.chart-card h3 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.chart-canvas {
    max-height: 280px;
    width: 100%;
}

/* Growth Table */
.growth-table {
    background: white;
    border-radius: 16px;
    padding: 1.2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.growth-table h3 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-size: 1rem;
}

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

.growth-table th, .growth-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.growth-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: var(--primary-dark);
}

.growth-table tr:hover {
    background: #f8f9fa;
}

/* ============================================
   MODAL STYLES
   ============================================ */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
}

.modal-large {
    max-width: 800px;
}

.modal-header {
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: 16px 16px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-modal {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-body {
    padding: 1.5rem;
}

/* ============================================
   FORM STYLES
   ============================================ */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.9rem;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 107, 58, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.image-preview {
    margin-top: 0.5rem;
    max-width: 150px;
    border-radius: 8px;
    overflow: hidden;
}

.image-preview img {
    width: 100%;
    height: auto;
}

/* ============================================
   TOAST NOTIFICATION
   ============================================ */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    display: none;
    z-index: 1003;
    animation: slideIn 0.3s ease;
}

.toast.show {
    display: block;
}

.toast.error {
    background: linear-gradient(135deg, #f44336, #d32f2f);
}

.toast.success {
    background: linear-gradient(135deg, #4caf50, #388e3c);
}

.toast.warning {
    background: linear-gradient(135deg, #ff9800, #f57c00);
}

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

/* ============================================
   LOADING SPINNER
   ============================================ */
.loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary-darker) 100%);
    color: white;
    padding: 3rem 2rem 1.5rem;
    margin-top: auto;
    width: 100%;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.footer-section h3, .footer-section h4 {
    color: white;
    margin-bottom: 1.2rem;
}

.footer-section p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 0.5rem;
}

.footer-section a {
    display: block;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    margin-bottom: 0.7rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.footer-section a:hover {
    color: white;
    transform: translateX(6px);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 35px;
    height: 35px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
}

/* ============================================
   RATING STARS
   ============================================ */
.rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.3rem 0;
}

.stars {
    color: #ffc107;
    font-size: 0.75rem;
}

/* ============================================
   AUDIT LOG
   ============================================ */
.audit-date-group {
    margin-bottom: 1.5rem;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.audit-date-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 0.8rem 1.2rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.audit-date-header:hover {
    opacity: 0.95;
}

.audit-date-header i {
    transition: transform 0.3s ease;
}

.audit-date-header.collapsed i {
    transform: rotate(-90deg);
}

.audit-items {
    transition: all 0.3s ease;
}

.audit-items.collapsed {
    display: none;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1.2rem;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.3s;
}

.activity-item:hover {
    background: #f8f9fa;
}

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

.activity-icon {
    width: 40px;
    height: 40px;
    background: var(--background-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.activity-icon i {
    font-size: 1.2rem;
}

.activity-detail {
    flex: 1;
}

.activity-detail p {
    margin: 0;
    font-size: 0.9rem;
}

.activity-detail small {
    font-size: 0.7rem;
    color: #999;
}

.audit-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    padding: 0.8rem;
    background: white;
    border-radius: 12px;
}

.audit-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1400px) {
    .businesses-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 1200px) {
    .businesses-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 1024px) {
    .charts-container {
        grid-template-columns: 1fr;
    }
    .businesses-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 68px;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .logo h1 {
        font-size: 1.3rem;
        padding-right: 55px;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-section {
        padding: 10px 1rem 80px;
        min-height: 280px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-cta-buttons {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 0.5rem;
        margin-top: 1.5rem;
    }
    
    .btn-hero-get-started,
    .btn-hero-secondary {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
        white-space: nowrap;
        flex: 1 1 auto;
        min-width: 0;
        max-width: 50%;
        border-radius: 30px;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    
    .businesses-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .dashboard-sidebar {
        transform: translateX(-100%);
        position: fixed;
        z-index: 100;
    }
    
    .dashboard-sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .dashboard-content {
        margin-left: 0;
        padding: 1rem;
    }
    
    .dashboard-content.expanded {
        margin-left: 0;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .orders-grid, .appointments-grid {
        grid-template-columns: 1fr;
    }
    
    .order-details, .appointment-details {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .filter-bar {
        flex-direction: column;
    }
    
    .filter-bar select, .filter-bar input {
        width: 100%;
    }
    
    .results-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cart-sidebar {
        width: 100%;
        max-width: 380px;
    }
    
    .year-filter {
        flex-direction: column;
        align-items: stretch;
    }
    
    .year-selector {
        justify-content: space-between;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons button {
        width: 100%;
    }
    
    .tab-buttons {
        justify-content: center;
    }
    
    .waves-container {
        height: 50px;
    }
    
    @keyframes waveMove {
        0% { transform: translateX(0); }
        50% { transform: translateX(-30px); }
        100% { transform: translateX(0); }
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1rem;
        padding-right: 40px;
    }
    
    .hero-section {
        padding: 5px 0.5rem 70px;
        min-height: 220px;
    }
    
    .hero-content h1 {
        font-size: 1.4rem;
    }
    
    .hero-content p {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }
    
    .btn-hero-get-started,
    .btn-hero-secondary {
        padding: 0.4rem 0.6rem;
        font-size: 0.65rem;
        border-radius: 25px;
    }
    
    .stat-number {
        font-size: 1.3rem;
    }
    
    .businesses-grid {
        grid-template-columns: 1fr;
    }
    
    .waves-container {
        height: 35px;
    }
}

/* Tablet Landscape */
@media (min-width: 769px) and (max-width: 1024px) {
    .businesses-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Large Desktop */
@media (min-width: 1400px) {
    .container {
        max-width: 1600px;
    }
    
    .businesses-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* ============================================
   UTILITIES
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.hidden { display: none; }
.visible { display: block; }

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--background-light);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-darker));
}

/* Selection */
::selection {
    background: var(--primary-color);
    color: white;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* ============================================
   FIX: FORCE WHITE HEADER ON BUSINESS MODAL
   ============================================ */
#businessModal .business-modal-header,
#businessModal .business-modal-header *,
#businessModal .business-modal-header h3,
#businessModal .business-modal-header h3 i,
#businessModal .business-modal-header h3 span,
#businessModal .business-modal-header .close-modal {
    color: #ffffff !important;
}

#businessModal .business-modal-header {
    background: linear-gradient(135deg, #006B3A 0%, #004d29 100%) !important;
    padding: 1.2rem 1.5rem !important;
    border-radius: 14px 14px 0 0 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 10 !important;
}

#businessModal .business-modal-header h3 {
    color: #ffffff !important;
    margin: 0 !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.6rem !important;
}

#businessModal .business-modal-header h3 i {
    color: #ffffff !important;
}

#businessModal .business-modal-header .close-modal {
    background: rgba(255,255,255,0.2) !important;
    border: none !important;
    color: #ffffff !important;
    font-size: 1.6rem !important;
    cursor: pointer !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    line-height: 1 !important;
}

#businessModal .business-modal-header .close-modal:hover {
    background: rgba(255,255,255,0.3) !important;
    transform: rotate(90deg) !important;
}

/* Also target if it's inside a modal with .modal-header */
.modal .business-modal-header,
.modal .business-modal-header * {
    color: #ffffff !important;
}

.modal .business-modal-header h3 {
    color: #ffffff !important;
}

.modal .business-modal-header h3 i {
    color: #ffffff !important;
}

.modal .business-modal-header .close-modal {
    color: #ffffff !important;
}