/* =========================
   RESET & VARIABLES
   ========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --secondary: #0ea5e9;
    --accent: #f59e0b;
    --success: #10b981;
    --error: #ef4444;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, .1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, .15);

    /* spacing scale */
    --space-xs: 6px;
    --space-sm: 8px;
    --space-md: 12px;
    --space-lg: 16px;
    --space-xl: 24px;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 12px;
}

html {
    scroll-behavior: smooth
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg-light);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================
   TOP NAVBAR
   ========================= */
.top-navbar {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.navbar-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    height: 45px;
    min-width: 150px;
    overflow: visible;
}

.logo img {
    height: 100%;
    width: auto;
    max-width: none;
    min-width: 150px;
    object-fit: contain;
    display: block;
}

.logo i {
    color: var(--secondary);
    font-size: 22px
}

.search-container {
    flex: 1;
    min-width: 200px
}

.search-form {
    display: flex;
    gap: 8px
}

.search-form input {
    flex: 1;
    padding: 10px 13px;
    border: 2px solid var(--border-color);
    border-radius: 7px;
    font-size: 13px;
    transition: all .25s ease;
}

.search-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .08)
}

.search-form button {
    padding: 10px 15px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 7px;
    cursor: pointer;
    font-weight: 600;
    transition: all .25s ease;
    font-size: 13px;
}

.search-form button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px)
}

.navbar-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
    justify-content: flex-end
}

.nav-btn {
    padding: 9px 13px;
    background: #fff;
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 7px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all .25s ease;
    font-size: 12px;
}

.nav-btn:hover {
    border-color: var(--primary);
    color: var(--primary)
}

.nav-btn.primary {
    background: var(--primary);
    color: white;
    border: none
}

.nav-btn.primary:hover {
    background: var(--primary-dark)
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px;
    width: 32px
}

.hamburger span {
    width: 24px;
    height: 2.5px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all .25s ease
}

/* =========================
   CATEGORIES BAR
   ========================= */
.categories-bar {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    padding: 6px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.categories-bar::-webkit-scrollbar {
    display: none
}

.categories-scroll {
    display: flex;
    gap: 0;
    padding: 0
}

.category-item-bar {
    flex-shrink: 0
}

.category-btn-main {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 12px;
    white-space: nowrap;
    transition: all .2s ease;
    text-decoration: none;
    border-radius: 0;
}

.category-btn-main:hover {
    background: rgba(37, 99, 235, .08);
    color: var(--primary)
}

.category-icon-small {
    font-size: 14px
}

/* =========================
   LOCATION BAR
   ========================= */
.location-bar {
    background: rgba(37, 99, 235, .03);
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.location-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap
}

.location-select {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 120px
}

.location-select select {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 12px;
    cursor: pointer;
    background: #fff;
    transition: all .2s ease;
}

.location-select select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .08)
}

.location-select i {
    color: var(--primary);
    font-size: 13px;
    flex-shrink: 0
}

.clear-filter {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    background: #fee2e2;
    color: #991b1b;
    border-radius: 5px;
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    transition: all .2s ease;
}

.clear-filter:hover {
    background: #fecaca
}

/* =========================
   FEATURED BANNERS
   ========================= */
.featured-banners {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 40px
}

.banner {
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all .35s ease;
}

.banner:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg)
}

.banner-image {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    transition: transform .35s ease;
    display: block
}

.banner:hover .banner-image {
    transform: scale(1.03)
}

.banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .8), transparent);
    padding: 20px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
}

.banner-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px
}

.banner-subtitle {
    font-size: 12px;
    opacity: .9
}

.banner-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
}

/* =========================
   SECTION LAYOUT
   ========================= */
.section {
    margin-bottom: 50px
}

.section-header {
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 15px
}

.section-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary)
}

.section-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px
}

.view-all {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all .25s ease;
    font-size: 13px
}

.view-all:hover {
    gap: 10px;
    color: var(--primary-dark)
}

/* =========================
   BUSINESS GRID
   ========================= */
.business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px
}

.business-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    transition: all .25s ease;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--border-color);
}

.business-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary)
}

.business-image {
    width: 100%;
    aspect-ratio: 1/1;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    overflow: hidden;
    position: relative;
}

.business-image img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.business-featured-badge {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.business-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(37, 99, 235, .95);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700
}

.business-info {
    padding: 14px
}

.business-name {
    font-weight: 700;
    margin-bottom: 4px;
    font-size: 14px;
    line-height: 1.3
}

.business-type {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 10px
}

.business-stats {
    display: flex;
    gap: 8px;
    font-size: 11px;
    color: var(--text-secondary);
    padding-top: 10px;
    border-top: 1px solid var(--border-color)
}

.stat {
    display: flex;
    align-items: center;
    gap: 4px
}

.stat i {
    color: var(--primary);
    font-size: 12px
}

/* =========================
   CAMPAIGNS GRID (PROFESSIONAL, 16:9)
   ========================= */
.campaigns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--space-lg);
}

/* CARD SHELL */
.campaign-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all .25s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* hover */
.campaign-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary)
}

/* IMAGE (16:9) */
.campaign-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    flex-shrink: 0;
}

.campaign-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease
}

.campaign-card:hover .campaign-image-wrapper img {
    transform: scale(1.04)
}

/* badges */
.campaign-hot-badge {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 10;
}

.campaign-urgency {
    position: absolute;
    bottom: var(--space-md);
    left: var(--space-md);
    background: rgba(255, 255, 255, .95);
    color: var(--error);
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 10;
}

.campaign-urgency.last-day {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    animation: pulse-urgency 2s infinite;
}

@keyframes pulse-urgency {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.02);
    }
}

.campaign-gradient-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 38%;
    background: linear-gradient(to top, rgba(0, 0, 0, .45), transparent);
    z-index: 5;
}

/* CONTENT (compact and readable) */
.campaign-content {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

/* business row */
.campaign-business {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border-color);
}

.campaign-business-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    flex-shrink: 0;
}

.campaign-business-name {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 600
}

/* title & desc */
.campaign-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.campaign-description {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 6px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* date/info compact */
.campaign-date-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 6px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin: 6px 0;
    font-size: 11px;
}

.date-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary)
}

.date-item i {
    font-size: 12px;
    min-width: 12px
}

.date-item strong {
    color: var(--text-primary);
    font-weight: 600
}

/* footer (cta) */
.campaign-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    margin-top: auto;
}

.campaign-cta {
    background: var(--primary);
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all .2s ease;
}

.campaign-card:hover .campaign-cta {
    background: var(--primary-dark);
    gap: 8px
}

/* small helper date text */
.campaign-date-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 6px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin: 6px 0;
    font-size: 11px
}

.date-text-item {
    display: flex;
    align-items: center;
    gap: 6px
}

.date-text-item i {
    font-size: 12px;
    color: var(--primary);
    min-width: 12px
}

.date-text-item span {
    font-weight: 500;
    color: var(--text-primary)
}

/* =========================
   FEATURES & CTA & FOOTER (kept but polished)
   ========================= */
.features-section {
    background: rgba(37, 99, 235, .03);
    padding: 40px 0;
    margin-bottom: 50px;
    border-radius: 12px
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px
}

.feature-card {
    text-align: center;
    padding: 20px
}

.feature-icon {
    font-size: 36px;
    margin-bottom: 12px;
    color: var(--primary)
}

.feature-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px
}

.feature-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5
}

.cta-section {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 40px 0;
    margin-bottom: 50px;
    border-radius: 12px;
    text-align: center;
    color: #fff
}

.cta-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.2
}

.cta-subtitle {
    font-size: 15px;
    margin-bottom: 25px;
    opacity: .95;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto
}

.cta-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap
}

.cta-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px
}

.cta-btn-primary {
    background: #fff;
    color: var(--primary)
}

.cta-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .12)
}

.cta-btn-secondary {
    background: rgba(255, 255, 255, .15);
    color: #fff;
    border: 2px solid #fff
}

.cta-btn-secondary:hover {
    background: rgba(255, 255, 255, .25)
}

/* footer */
.footer {
    background: linear-gradient(135deg, #1f2937, #111827);
    color: #d1d5db;
    padding: 50px 0 20px;
    margin-top: 60px
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px
}

.footer-column {
    display: flex;
    flex-direction: column
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px
}

.footer-logo i {
    color: var(--primary);
    font-size: 24px
}

.footer-logo h3 {
    font-size: 18px;
    color: #fff;
    font-weight: 700
}

.footer-desc {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 12px;
    color: #9ca3af
}

.footer-desc-small {
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 10px
}

.social-links {
    display: flex;
    gap: 10px
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(37, 99, 235, .1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    text-decoration: none;
    transition: all .2s ease
}

.social-link:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px)
}

.footer-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 13px;
    transition: all .2s ease
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(3px)
}

.newsletter-form {
    display: flex;
    gap: 6px;
    background: rgba(255, 255, 255, .1);
    border-radius: 6px;
    padding: 3px;
    border: 1px solid rgba(37, 99, 235, .3)
}

.newsletter-form input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    padding: 8px;
    font-size: 12px;
    outline: none
}

.newsletter-form input::placeholder {
    color: #6b7280
}

.newsletter-form button {
    background: var(--primary);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s ease
}

.newsletter-form button:hover {
    background: var(--primary-dark)
}

.footer-divider {
    height: 1px;
    background: rgba(37, 99, 235, .2);
    margin: 20px 0
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .1)
}

.footer-copyright {
    font-size: 12px;
    color: #9ca3af
}

.footer-copyright strong {
    color: var(--primary)
}

.footer-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: rgba(37, 99, 235, .1);
    border-radius: 20px;
    font-size: 11px;
    color: var(--primary);
    border: 1px solid rgba(37, 99, 235, .2)
}

/* =========================
   MOBILE SIDEBAR & BOTTOM NAV
   ========================= */
.mobile-sidebar {
    display: none;
    position: fixed;
    left: -100%;
    top: 0;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: #fff;
    z-index: 200;
    transition: left .25s ease;
    overflow-y: auto;
    box-shadow: 4px 0 20px rgba(0, 0, 0, .2)
}

.mobile-sidebar.open {
    left: 0
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 700
}

.sidebar-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 24px;
    color: var(--text-primary)
}

.sidebar-menu {
    list-style: none;
    padding: 0
}

.sidebar-menu li {
    border-bottom: 1px solid var(--border-color)
}

.sidebar-category {
    padding: 14px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    transition: all .2s ease
}

.sidebar-category:hover {
    background: rgba(37, 99, 235, .05);
    color: var(--primary)
}

.sidebar-subcategories {
    background: rgba(37, 99, 235, .02);
    max-height: 500px;
    overflow: hidden;
    transition: all .25s ease
}

.sidebar-subcategories a {
    display: block;
    padding: 10px 20px 10px 40px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    transition: all .2s ease
}

.sidebar-subcategories a:hover {
    background: rgba(37, 99, 235, .08);
    color: var(--primary);
    padding-left: 44px
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, .5);
    z-index: 150
}

.overlay.active {
    display: block
}

/* bottom nav (mobile) - unified with user panel */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: #fff;
    border-top: 1px solid #e2e8f0;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, .1);
    display: none;
}

.bottom-nav.show {
    display: flex;
}

.nav-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    height: 60px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex: 1;
    height: 100%;
    text-decoration: none;
    color: #6b7280;
    transition: all .3s ease;
    font-size: 11px;
    font-weight: 500;
    border-top: 3px solid transparent;
    cursor: pointer;
}

.nav-item:hover {
    color: #2563eb;
    background: rgba(37, 99, 235, .05);
}

.nav-item.active {
    color: #2563eb;
    border-top: 3px solid #2563eb;
}

.nav-item i {
    font-size: 20px;
}

.nav-item span {
    font-weight: 500;
    font-size: 11px;
}

@media (max-width:768px) {
    body {
        padding-bottom: 70px!important;
    }

    .bottom-nav {
        display: flex!important;
    }
}

.nav-item:hover,
.nav-item.active {
    color: var(--primary);
    background: rgba(37, 99, 235, .05)
}

.nav-item i {
    font-size: 20px
}

/* =========================
   RESPONSIVE QUERIES
   Keep breakpoints consistent and lean
   ========================= */

/* Large tablets / small laptops */
@media (max-width:1024px) {
    .search-container {
        flex: .8;
        max-width: 300px;
        margin: 0 10px
    }

    .container {
        padding: 0 16px
    }

    .featured-banners {
        grid-template-columns: 1fr 1fr
    }

    .business-grid {
        grid-template-columns: repeat(3, 1fr)
    }

    .campaigns-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .section-title {
        font-size: 24px
    }

    .cta-title {
        font-size: 28px
    }
}

/* Tablets & mobile landscape */
@media (max-width:768px) {
    .search-container {
        flex: 1;
        max-width: none;
        margin: 0 8px
    }

    .search-form {
        gap: 6px
    }

    .hamburger {
        display: flex
    }

    .nav-btn:not(.primary) {
        display: inline-flex
    }

    .navbar-actions.auth-buttons {
        display: none
    }

    .logo {
        height: 42px;
        min-width: 130px;
    }

    .logo img {
        max-width: none;
        min-width: 130px;
    }

    .top-navbar {
        height: 60px
    }

    .categories-bar {
        height: 45px
    }

    .featured-banners {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 30px
    }

    .banner {
        height: 160px
    }

    .section {
        margin-bottom: 40px
    }

    .section-header {
        margin-bottom: 18px;
        gap: 10px
    }

    .section-title {
        font-size: 20px
    }

    .section-subtitle {
        font-size: 12px
    }

    .business-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px
    }

    .campaigns-grid {
        grid-template-columns: 1fr;
        gap: 14px
    }

    /* make campaign card horizontal for small screens for compactness */
    .campaign-card {
        display: flex;
        flex-direction: column;
    }

    .campaign-image-wrapper {
        width: 100%;
        aspect-ratio: 16/9;
    }

    .campaign-content {
        padding: 12px;
    }

    .campaign-description {
        display: none
    }

    .campaign-date-info {
        display: none
    }

    .campaign-footer {
        padding-top: 8px;
        border-top: 1px solid var(--border-color)
    }

    .bottom-nav {
        display: block
    }

    .container {
        margin-bottom: 70px
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center
    }

    .footer-badges {
        justify-content: center
    }

    .social-links {
        justify-content: center
    }
}

/* Narrow mobile */
@media (max-width:600px) {
    .search-container {
        flex: .6;
        max-width: 180px;
        margin: 0 6px
    }

    .container {
        padding: 0 14px
    }

    .featured-banners {
        gap: 10px;
        margin-bottom: 25px
    }

    .banner {
        height: 140px
    }

    .business-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px
    }

    .campaigns-grid {
        gap: 10px
    }

    .campaign-card {
        grid-template-columns: 150px 1fr;
        padding: 10px;
        border-radius: 10px
    }

    .campaign-image-wrapper {
        aspect-ratio: 16/9;
        border-radius: 8px
    }

    .campaign-title {
        font-size: 13px
    }

    .campaign-cta {
        padding: 7px 14px;
        font-size: 12px
    }

    .cta-title {
        font-size: 20px
    }

    .cta-subtitle {
        font-size: 12px
    }
}

/* very small phones */
@media (max-width:480px) {
    .search-container {
        flex: .5;
        max-width: 140px;
        margin: 0 4px
    }

    .campaign-image-wrapper {
        min-width: 100px
    }

    .search-form input {
        padding: 6px 8px;
        font-size: 10px
    }

    .nav-btn {
        padding: 6px 8px;
        font-size: 10px
    }

    .section-title {
        font-size: 18px
    }

    .banner {
        height: 120px
    }

    .campaign-card {
        grid-template-columns: 140px 1fr
    }

    .campaign-title {
        font-size: 12px
    }

    .campaign-cta {
        padding: 6px 12px;
        font-size: 12px
    }
}

/* smallest */
@media (max-width:380px) {
    .search-container {
        flex: .4;
        max-width: 110px;
        margin: 0 3px
    }

    .search-form input {
        padding: 6px 6px;
        font-size: 9px
    }

    .search-form button {
        padding: 6px 6px;
        font-size: 8px
    }

    .container {
        padding: 0 12px
    }

    .logo {
        height: 35px;
        min-width: 100px;
    }

    .logo img {
        max-width: none;
        min-width: 100px;
    }

    .campaign-card {
        grid-template-columns: 130px 1fr;
        padding: 8px;
        border-radius: 8px
    }

    .campaign-image-wrapper {
        border-radius: 6px
    }

    .banner {
        height: 110px
    }
}

/* UTILITY */
.hidden-mobile {
    display: none !important
}

@media (min-width:769px) {
    .hidden-mobile {
        display: block !important
    }

    .hidden-desktop {
        display: none !important
    }
}