/* imperialvalleypromotions.com - Imperial Glass Design System */

:root {
    --bg-base: #0A0C0E;
    --bg-surface: #0f150f;
    --bg-surface-elevated: #161f16;
    --glass-surface: rgba(255, 255, 255, 0.05);
    --glass-surface-hover: rgba(255, 255, 255, 0.09);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-border-emerald: rgba(80, 200, 120, 0.3);

    /* Theme Palette */
    --primary-emerald: #50c878;
    --primary-emerald-glow: rgba(80, 200, 120, 0.25);
    --primary-emerald-bright: #6ee591;
    --fiery-red: #FF2400;
    --fiery-red-glow: rgba(255, 36, 0, 0.3);
    --vibrant-orange: #FF8C00;
    --vibrant-orange-glow: rgba(255, 140, 0, 0.25);
    --gold-accent: #FFD700;
    --gold-glow: rgba(255, 215, 0, 0.3);

    --text-main: #dee4db;
    --text-muted: #94a3af;
    --text-bright: #ffffff;

    --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 8px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: var(--font-family);
    min-height: 100vh;
    line-height: 1.5;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(80, 200, 120, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(255, 140, 0, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(255, 36, 0, 0.04) 0%, transparent 60%);
    background-attachment: fixed;
    /* switched to scroll on mobile — see media query */
}

/* Glassmorphism Containers */
.glass-panel {
    background: var(--glass-surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.glass-card {
    background: rgba(22, 31, 22, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-4px);
    border-color: var(--glass-border-emerald);
    box-shadow: 0 12px 30px var(--primary-emerald-glow);
}

/* Header & Navigation */
header.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 12px 24px;
    background: rgba(10, 12, 14, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand-logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-bright);
}

.brand-logo-img {
    height: 52px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(80, 200, 120, 0.4));
    transition: var(--transition);
    mix-blend-mode: screen;
}

.brand-logo-img:hover {
    transform: scale(1.05);
}

.brand-title {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 0%, var(--primary-emerald-bright) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-subtitle {
    font-size: 0.75rem;
    color: var(--vibrant-orange);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Nav View Switcher */
.nav-view-switcher {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    padding: 4px;
    gap: 4px;
}

.nav-tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.88rem;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
}

.nav-tab-btn.active,
.nav-tab-btn:hover {
    background: var(--primary-emerald);
    color: #051d0d;
}

/* Buttons & CTAs */
.btn-primary-emerald {
    background: linear-gradient(135deg, var(--primary-emerald) 0%, #38a159 100%);
    color: #051d0d;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-full);
    padding: 10px 20px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px var(--primary-emerald-glow);
}

.btn-primary-emerald:hover {
    background: linear-gradient(135deg, var(--primary-emerald-bright) 0%, var(--primary-emerald) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(80, 200, 120, 0.4);
}

.btn-fiery-red {
    background: linear-gradient(135deg, var(--fiery-red) 0%, #cc1d00 100%);
    color: #ffffff;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-full);
    padding: 10px 20px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px var(--fiery-red-glow);
}

.btn-fiery-red:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(255, 36, 0, 0.5);
}

.btn-vibrant-orange {
    background: linear-gradient(135deg, var(--vibrant-orange) 0%, #d47400 100%);
    color: #ffffff;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-full);
    padding: 10px 20px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px var(--vibrant-orange-glow);
}

.btn-vibrant-orange:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(255, 140, 0, 0.45);
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold-accent) 0%, #d4ac0d 100%);
    color: #1a1500;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-full);
    padding: 10px 20px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px var(--gold-glow);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(255, 215, 0, 0.5);
}

.btn-ghost {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    padding: 8px 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-bright);
    border-color: var(--text-main);
}

/* User Avatar Logo Header Widget */
.user-avatar-widget {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 12px 4px 4px;
    background: var(--glass-surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
}

.user-avatar-widget:hover {
    border-color: var(--primary-emerald);
}

.avatar-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-emerald);
}

/* Hero Section */
.hero-section {
    max-width: 1280px;
    margin: 24px auto 28px;
    padding: 40px 24px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-bright);
    margin-bottom: 12px;
}

.hero-title span.highlight-green {
    color: var(--primary-emerald);
}

.hero-title span.highlight-orange {
    color: var(--vibrant-orange);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 24px;
}

/* Search Bar */
.search-container {
    max-width: 680px;
    margin: 0 auto 24px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 16px 20px 16px 48px;
    background: rgba(15, 21, 15, 0.9);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    color: var(--text-bright);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

.search-input:focus {
    border-color: var(--primary-emerald);
    box-shadow: 0 0 0 3px var(--primary-emerald-glow);
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.2rem;
}

/* BI-WEEKLY VOTING / WINNER SHOWCASE BANNER BELOW SEARCH BAR */
.hero-voting-card {
    max-width: 760px;
    margin: 0 auto 10px;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.08) 0%, rgba(80, 200, 120, 0.08) 100%);
    border: 1px solid rgba(255, 215, 0, 0.35);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px rgba(255, 215, 0, 0.12);
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.hero-voting-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 215, 0, 0.15);
    color: var(--gold-accent);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 215, 0, 0.4);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-voting-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-bright);
    margin-bottom: 4px;
}

.hero-voting-sub {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.hero-voting-timer {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--vibrant-orange);
    font-weight: 600;
    margin-top: 8px;
}

.timer-box {
    background: rgba(255, 140, 0, 0.18);
    border: 1px solid rgba(255, 140, 0, 0.4);
    color: var(--vibrant-orange);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    font-weight: 800;
    font-size: 0.88rem;
    font-family: inherit;
    box-shadow: 0 2px 6px rgba(255, 140, 0, 0.15);
}

/* CITY FILTER WRAPPED RESPONSIVE CONTAINER (NON-SCROLLABLE) */
.city-filter-container {
    max-width: 1280px;
    margin: 0 auto 24px;
    padding: 0 24px;
}

.filter-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--vibrant-orange);
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.wrapped-pills-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
}

.city-pill {
    padding: 8px 16px;
    background: var(--glass-surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    color: var(--text-main);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.city-pill:hover,
.city-pill.active {
    background: var(--primary-emerald);
    color: #051d0d;
    border-color: var(--primary-emerald);
    transform: translateY(-1px);
}

/* Category Chips Grid */
.category-chips-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 1280px;
    margin: 0 auto 36px;
    padding: 0 24px;
}

.category-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.category-chip:hover,
.category-chip.active {
    background: rgba(255, 140, 0, 0.15);
    border-color: var(--vibrant-orange);
    color: var(--vibrant-orange);
}

/* Business Directory Grid */
.directory-section {
    max-width: 1280px;
    margin: 0 auto 60px;
    padding: 0 24px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-bright);
}

.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

/* Business Card Styling */
.biz-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    cursor: pointer;
}

.biz-banner-wrapper {
    position: relative;
    height: 160px;
    width: 100%;
    overflow: hidden;
}

.biz-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.biz-card:hover .biz-banner-img {
    transform: scale(1.05);
}

.city-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(10, 12, 14, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-emerald);
}

.deal-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, var(--fiery-red) 0%, var(--vibrant-orange) 100%);
    color: #ffffff;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 800;
    box-shadow: 0 2px 8px var(--fiery-red-glow);
    text-transform: uppercase;
}

.biz-logo-overlay {
    position: absolute;
    bottom: -24px;
    left: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 3px solid var(--bg-base);
    object-fit: cover;
    background: var(--bg-surface-elevated);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.biz-card-content {
    padding: 32px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.biz-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.biz-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-bright);
    text-decoration: none;
}

.verified-icon {
    color: var(--primary-emerald);
    font-size: 1rem;
}

.biz-category-tag {
    font-size: 0.8rem;
    color: var(--vibrant-orange);
    font-weight: 600;
    margin-bottom: 10px;
}

.biz-desc {
    font-size: 0.88rem;
    color: var(--text-main);
    line-height: 1.5;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Rant vs Rave Stats Row on Cards */
.rant-rave-stats-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.rave-badge-sm {
    color: var(--primary-emerald-bright);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.rant-badge-sm {
    color: #ff6b6b;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* One-Tap Action Buttons Row */
.card-actions-row {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--glass-border);
}

.btn-action-icon {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-call {
    background: rgba(80, 200, 120, 0.15);
    color: var(--primary-emerald-bright);
    border: 1px solid rgba(80, 200, 120, 0.3);
}

.btn-call:hover {
    background: var(--primary-emerald);
    color: #051d0d;
}

.btn-whatsapp {
    background: rgba(37, 211, 102, 0.15);
    color: #25d366;
    border: 1px solid rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background: #25d366;
    color: #000;
}

.btn-directions {
    background: rgba(255, 140, 0, 0.15);
    color: var(--vibrant-orange);
    border: 1px solid rgba(255, 140, 0, 0.3);
}

.btn-directions:hover {
    background: var(--vibrant-orange);
    color: #fff;
}

.btn-vote-card {
    background: rgba(255, 215, 0, 0.12);
    color: var(--gold-accent);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.btn-vote-card:hover {
    background: var(--gold-accent);
    color: #1a1500;
}

/* Social Icon Buttons */
.social-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    text-decoration: none;
    font-size: 1rem;
    transition: var(--transition);
}

.social-icon-btn:hover {
    transform: translateY(-2px);
    background: var(--primary-emerald);
    color: #051d0d;
    border-color: var(--primary-emerald);
}

/* Events Grid & Event Cards */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    max-width: 1280px;
    margin: 0 auto 60px;
    padding: 0 24px;
}

.event-card {
    overflow: hidden;
}

.event-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.event-body {
    padding: 20px;
}

.event-date-tag {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--vibrant-orange);
    text-transform: uppercase;
    margin-bottom: 6px;
}

.event-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-bright);
    margin-bottom: 8px;
}

.event-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

/* Dashboard Views */
.dashboard-grid {
    max-width: 1280px;
    margin: 24px auto 60px;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
}

.dashboard-sidebar {
    padding: 24px;
    height: fit-content;
}

.dash-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.dash-menu-item:hover,
.dash-menu-item.active {
    background: var(--primary-emerald);
    color: #051d0d;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    background: rgba(5, 8, 10, 0.88);
    backdrop-filter: blur(12px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: #0f150f;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 520px;
    padding: 32px;
    position: relative;
    max-height: calc(100dvh - 32px);
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85);
    margin: auto;
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close-btn:hover {
    color: var(--text-bright);
}

/* ============================================================
   MOBILE-FIRST RESPONSIVE OVERHAUL — All Breakpoints
   ============================================================ */

/* Prevent horizontal overflow globally */
html {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Mobile-only logout button — hidden on desktop */
.mobile-logout-btn {
    display: none;
}



body {
    overflow-x: hidden;
}

/* ---- TABLET / LARGE MOBILE (≤ 900px) ---- */
@media (max-width: 900px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .listings-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .events-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

/* ---- MOBILE (≤ 768px) ---- */
@media (max-width: 768px) {

    /* iOS Safari fix: background-attachment:fixed causes rendering issues on mobile */
    body {
        background-attachment: scroll;
    }

    /* ---- HEADER ---- */
    header.app-header {
        padding: 10px 14px;
    }

    .header-container {
        gap: 10px;
    }

    .brand-logo-img {
        height: 38px;
    }

    .brand-title {
        font-size: 0.9rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 160px;
    }

    .brand-subtitle {
        font-size: 0.62rem;
    }

    /* Hide desktop nav — mobile uses bottom dock */
    .nav-view-switcher {
        display: none !important;
    }

    /* ---- HERO ---- */
    .hero-section {
        padding: 20px 16px 12px;
        margin: 12px auto 16px;
    }

    .hero-title {
        font-size: 1.65rem;
        letter-spacing: -0.02em;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 16px;
    }

    /* ---- VOTING BANNER ---- */
    .hero-voting-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 16px;
        text-align: left;
    }

    .hero-voting-card>div:last-child {
        width: 100%;
        flex-direction: row;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .hero-voting-title {
        font-size: 1rem;
    }

    .hero-voting-sub {
        font-size: 0.82rem;
    }

    /* ---- SEARCH BAR ---- */
    .search-container {
        margin: 0 auto 16px;
    }

    .search-input {
        font-size: 0.9rem;
        padding: 13px 16px 13px 42px;
    }

    /* ---- CITY PILLS & CATEGORY CHIPS ---- */
    .city-filter-container {
        padding: 0 14px;
        margin-bottom: 16px;
    }

    .category-chips-row {
        padding: 0 14px;
        margin-bottom: 20px;
    }

    .city-pill {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .category-chip {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .wrapped-pills-row {
        justify-content: flex-start;
    }

    /* ---- DIRECTORY / EVENTS GRID ---- */
    .directory-section {
        padding: 0 14px;
        margin-bottom: 40px;
    }

    .listings-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .events-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 14px;
        margin-bottom: 40px;
    }

    .section-header {
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 16px;
    }

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

    /* ---- BUSINESS CARDS ---- */
    .biz-card-content {
        padding: 28px 16px 16px;
    }

    .biz-name {
        font-size: 1.05rem;
    }

    .card-actions-row {
        gap: 6px;
    }

    .btn-action-icon {
        font-size: 0.75rem;
        padding: 7px 4px;
    }

    /* ---- EVENT CARDS ---- */
    .event-img {
        height: 150px;
    }

    .event-body {
        padding: 14px;
    }

    .event-title {
        font-size: 1rem;
    }

    /* ---- DASHBOARD ---- */
    .dashboard-grid {
        grid-template-columns: 1fr;
        padding: 0 14px;
        gap: 14px;
        margin: 14px auto 40px;
    }

    .dashboard-sidebar {
        padding: 16px;
    }

    /* Collapse sidebar menu into horizontal scroll bar on mobile */
    #dash-sidebar-nav {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 6px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 6px;
    }

    #dash-sidebar-nav::-webkit-scrollbar {
        display: none;
    }

    .dash-menu-item {
        flex-shrink: 0;
        padding: 8px 14px;
        font-size: 0.8rem;
        gap: 6px;
        border-radius: var(--radius-full);
        white-space: nowrap;
        margin-bottom: 0;
    }

    /* ---- MODALS ---- */
    .modal-overlay {
        padding: 12px;
        align-items: flex-start;
        padding-top: max(16px, env(safe-area-inset-top));
        padding-bottom: max(16px, env(safe-area-inset-bottom));
    }

    .modal-content {
        padding: 20px 16px;
        border-radius: var(--radius-lg);
        max-height: calc(100dvh - 32px);
        max-height: calc(100vh - 32px);
        max-width: 100%;
        margin: auto 0;
    }

    /* ---- ADMIN PANEL ---- */
    .glass-tab-bar {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        border-radius: var(--radius-md);
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .glass-tab-bar::-webkit-scrollbar {
        display: none;
    }

    .glass-tab-btn {
        flex-shrink: 0;
        font-size: 0.78rem;
        padding: 6px 12px;
    }

    /* ---- MOBILE BOTTOM NAV DOCK ---- */
    .mobile-bottom-nav {
        display: flex !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 66px !important;
        background: rgba(14, 18, 22, 0.98) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
        z-index: 100000 !important;
        justify-content: space-around !important;
        align-items: center !important;
        box-shadow: 0 -6px 25px rgba(0, 0, 0, 0.6) !important;
        pointer-events: auto !important;
    }

    .mobile-nav-item {
        cursor: pointer !important;
        -webkit-tap-highlight-color: transparent !important;
        user-select: none !important;
        padding: 6px 0 !important;
    }

    /* ---- BODY CLEARANCE ---- */
    body {
        padding-bottom: 84px !important;
    }

    /* ---- ANNOUNCEMENT BANNER ---- */
    .modern-announcement-content {
        flex-wrap: wrap;
        gap: 10px;
    }

    .modern-global-announcement {
        padding: 8px 14px;
    }

    /* ============================================
       DASHBOARD — FULL MOBILE OVERHAUL
       ============================================ */

    /* Outer dashboard section padding */
    #dashboard-view {
        padding: 0 !important;
    }

    /* Dashboard grid: stack sidebar above content */
    .dashboard-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        padding: 0 !important;
        margin: 0 auto !important;
    }

    /* Sidebar: compact strip with horizontal scrolling nav */
    .dashboard-sidebar {
        border-radius: 0 !important;
        padding: 12px 14px 10px !important;
        position: sticky;
        top: 62px;
        /* below the app header */
        z-index: 50;
        background: rgba(10, 12, 14, 0.97) !important;
        backdrop-filter: blur(16px) !important;
        -webkit-backdrop-filter: blur(16px) !important;
        border-bottom: 1px solid var(--glass-border) !important;
        border-top: none !important;
        border-left: none !important;
        border-right: none !important;
    }

    /* User profile row: compact single line */
    .dashboard-sidebar>div:first-child {
        margin-bottom: 10px !important;
        padding-bottom: 10px !important;
        gap: 10px !important;
    }

    /* Sidebar user avatar — smaller on mobile */
    .dashboard-sidebar .avatar-img {
        width: 38px !important;
        height: 38px !important;
    }

    /* Upgrade button in sidebar */
    #dash-upgrade-account-btn {
        font-size: 0.65rem !important;
        padding: 3px 6px !important;
        margin-top: 4px !important;
    }

    /* Sidebar nav: horizontal scrolling pill row */
    #dash-sidebar-nav {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        gap: 6px !important;
        padding-bottom: 4px !important;
    }

    #dash-sidebar-nav::-webkit-scrollbar {
        display: none !important;
    }

    .dash-menu-item {
        flex-shrink: 0 !important;
        white-space: nowrap !important;
        padding: 7px 12px !important;
        font-size: 0.78rem !important;
        border-radius: var(--radius-full) !important;
        gap: 5px !important;
        margin-bottom: 0 !important;
    }

    /* Hide the logout button section in the sidebar — it would push content down */
    .dashboard-sidebar>div:last-child {
        display: none !important;
    }

    /* Dashboard content area */
    .dashboard-content {
        padding: 14px !important;
    }

    /* All glass-panel padding inside dashboard */
    #dashboard-view .glass-panel {
        padding: 16px !important;
    }

    /* Dashboard stats grid: 1 column on small, 3-col auto on mid */
    #dashboard-view .glass-panel>div[style*="grid-template-columns: repeat(auto-fit"] {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) !important;
        gap: 10px !important;
    }

    /* Business form container: 2 col → 1 col */
    #biz-form-container {
        grid-template-columns: 1fr !important;
        display: flex !important;
        flex-direction: column !important;
    }

    /* All inline 2-col & 3-col grids inside dashboard → 1 col */
    #dashboard-view [style*="grid-template-columns: 1fr 1fr"],
    #dashboard-view [style*="grid-template-columns: 1fr 2fr"],
    #dashboard-view [style*="grid-template-columns: 1.2fr 1fr"],
    #dashboard-view [style*="grid-template-columns: 1fr 1fr 1fr"],
    #dashboard-view [style*="grid-template-columns: 1fr 1fr; "] {
        grid-template-columns: 1fr !important;
    }

    /* Verification steps: 2-col → 1 col */
    #dashboard-view [style*="grid-template-columns: 1fr 1fr; gap: 20px"] {
        grid-template-columns: 1fr !important;
    }

    /* Section headers inside panels that have flex space-between — allow wrapping */
    #dashboard-view .glass-panel>div[style*="justify-content: space-between"] {
        flex-wrap: wrap !important;
        gap: 10px !important;
    }

    /* Section panel headings */
    #dashboard-view h2,
    #dashboard-view h3 {
        font-size: 1.1rem !important;
    }

    /* Show mobile-only logout button */
    .mobile-logout-btn {
        display: inline-flex !important;
    }
}



/* ---- SMALL PHONES (≤ 480px) ---- */
@media (max-width: 480px) {

    header.app-header {
        padding: 8px 12px;
    }

    .brand-logo-img {
        height: 32px;
    }

    .brand-title {
        font-size: 0.78rem;
        max-width: 130px;
    }

    .brand-subtitle {
        display: none;
    }

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

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

    .hero-voting-title {
        font-size: 0.95rem;
    }

    .hero-voting-card {
        padding: 14px 12px;
    }

    .search-input {
        font-size: 0.85rem;
        padding: 11px 14px 11px 38px;
    }

    .listings-grid,
    .events-grid {
        gap: 12px;
    }

    .biz-banner-wrapper {
        height: 130px;
    }

    .event-img {
        height: 130px;
    }

    .btn-action-icon {
        font-size: 0.7rem;
        padding: 6px 2px;
    }

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

    /* Cards should fill width on very small phones */
    .glass-card,
    .biz-card {
        border-radius: var(--radius-sm);
    }

    .modal-content {
        padding: 18px 14px;
    }

    .dash-menu-item {
        font-size: 0.75rem;
        padding: 7px 10px;
    }
}

/* ---- VERY SMALL PHONES (≤ 380px) ---- */
@media (max-width: 380px) {

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

    .brand-title {
        font-size: 0.72rem;
        max-width: 110px;
    }

    .mobile-bottom-nav {
        height: 60px !important;
    }

    .mobile-nav-item {
        font-size: 0.62rem !important;
    }

    .mobile-nav-item i {
        font-size: 1.1rem !important;
    }

    body {
        padding-bottom: 78px !important;
    }
}


/* Floating Admin Notification Counter Badges & Toasts */
.nav-user-container-rel {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.avatar-container-rel {
    position: relative;
    display: inline-block;
}

.floating-notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: linear-gradient(135deg, #ff4757, #ff6b81);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    min-width: 20px;
    height: 20px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    box-shadow: 0 0 10px rgba(255, 71, 87, 0.8), 0 2px 5px rgba(0, 0, 0, 0.5);
    border: 2px solid #0A0C0E;
    animation: badgePulse 2s infinite;
    z-index: 10;
}

@keyframes badgePulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 8px rgba(255, 71, 87, 0.8);
    }

    50% {
        transform: scale(1.15);
        box-shadow: 0 0 16px rgba(255, 71, 87, 1);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 8px rgba(255, 71, 87, 0.8);
    }
}

/* Admin Screen Toast Notification */
.admin-toast-notification {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: rgba(22, 31, 22, 0.95);
    border: 1px solid var(--gold-accent);
    border-radius: var(--radius-md);
    padding: 14px 20px;
    color: var(--text-bright);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 15px var(--gold-glow);
    backdrop-filter: blur(16px);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: toastSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes toastSlideIn {
    from {
        transform: translateY(100px);
        opacity: 0;
    }

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

/* Universal Header Notification Badge Positioning */
.nav-user-container-rel {
    position: relative;
    display: inline-block;
}

.floating-notification-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: linear-gradient(135deg, var(--fiery-red) 0%, #ff6b6b 100%);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: var(--radius-full);
    box-shadow: 0 0 12px var(--fiery-red-glow);
    border: 2px solid var(--bg-base);
    animation: badgePulse 2s infinite;
    cursor: pointer;
    z-index: 10;
}

@keyframes badgePulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.7);
    }

    70% {
        transform: scale(1.08);
        box-shadow: 0 0 0 8px rgba(255, 71, 87, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 71, 87, 0);
    }
}

/* Community Post Cards & Business Glow Styling */
.community-post-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 20px;
    backdrop-filter: blur(12px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.community-post-card:hover {
    border-color: rgba(112, 161, 255, 0.4);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.community-post-card.business-announcement-card {
    border: 1px solid rgba(236, 204, 104, 0.5);
    background: linear-gradient(135deg, rgba(236, 204, 104, 0.05) 0%, rgba(20, 24, 28, 0.85) 100%);
    box-shadow: 0 0 20px rgba(236, 204, 104, 0.15);
}

.business-announcement-badge {
    background: linear-gradient(135deg, var(--gold-accent) 0%, #f39c12 100%);
    color: #000000;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Feedback Status Badges */
.feedback-status-badge {
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.73rem;
    font-weight: 700;
    display: inline-block;
}

.feedback-status-badge.new {
    background: rgba(255, 71, 87, 0.15);
    color: #ff4757;
    border: 1px solid rgba(255, 71, 87, 0.3);
}

.feedback-status-badge.review {
    background: rgba(236, 204, 104, 0.15);
    color: #eccc68;
    border: 1px solid rgba(236, 204, 104, 0.3);
}

/* Glass Tab Bar Styling (Admin Panel & Community Hub) */
.glass-tab-bar {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    border-radius: var(--radius-full);
    padding: 6px;
    flex-wrap: wrap;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Admin Panel specific sharp/slightly-rounded rectangular tabs */
#admin-subtabs-container {
    border-radius: var(--radius-sm);
}

#admin-subtabs-container .glass-tab-btn {
    border-radius: var(--radius-sm);
}

.glass-tab-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.glass-tab-btn:hover {
    color: var(--text-bright);
    background: rgba(255, 255, 255, 0.06);
}

.glass-tab-btn.active {
    background: linear-gradient(135deg, rgba(236, 204, 104, 0.22) 0%, rgba(20, 24, 28, 0.95) 100%);
    border-color: rgba(236, 204, 104, 0.6);
    color: var(--gold-accent);
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(236, 204, 104, 0.2);
}

.glass-tab-btn.community-tab.active {
    background: linear-gradient(135deg, rgba(112, 161, 255, 0.22) 0%, rgba(20, 24, 28, 0.95) 100%);
    border-color: rgba(112, 161, 255, 0.6);
    color: #70a1ff;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(112, 161, 255, 0.22);
}

.glass-tab-badge {
    background: #ff4757;
    color: #ffffff;
    padding: 2px 7px;
    border-radius: var(--radius-sm);
    font-size: 0.68rem;
    font-weight: 800;
    margin-left: 2px;
}

/* Ultra-Modern Glassmorphic Global Announcement Banner */
.modern-global-announcement {
    display: none;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 10000;
    background: rgba(14, 18, 22, 0.88);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 10px 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.modern-announcement-content {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.announcement-tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.73rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.announcement-tag-pill.gold {
    background: linear-gradient(135deg, rgba(236, 204, 104, 0.25) 0%, rgba(255, 127, 80, 0.25) 100%);
    color: var(--gold-accent);
    border: 1px solid rgba(236, 204, 104, 0.5);
}

.announcement-tag-pill.emerald {
    background: linear-gradient(135deg, rgba(0, 230, 153, 0.25) 0%, rgba(80, 200, 120, 0.25) 100%);
    color: var(--primary-emerald-bright);
    border: 1px solid rgba(0, 230, 153, 0.5);
}

.announcement-tag-pill.red {
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.25) 0%, rgba(255, 107, 129, 0.25) 100%);
    color: #ff4757;
    border: 1px solid rgba(255, 71, 87, 0.5);
}

.announcement-close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.announcement-close-btn:hover {
    color: var(--text-bright);
    background: rgba(255, 255, 255, 0.1);
}

/* Event Moderation Status Badges & Featured Glow */
.event-featured-card {
    border: 2px solid var(--gold-accent) !important;
    box-shadow: 0 0 25px rgba(236, 204, 104, 0.25) !important;
    position: relative;
}

.event-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.event-status-badge.pending {
    background: rgba(236, 204, 104, 0.15);
    color: var(--gold-accent);
    border: 1px solid rgba(236, 204, 104, 0.4);
}

.event-status-badge.approved {
    background: rgba(0, 230, 153, 0.15);
    color: var(--primary-emerald-bright);
    border: 1px solid rgba(0, 230, 153, 0.4);
}

.event-cohost-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(236, 204, 104, 0.12);
    color: var(--gold-accent);
    border: 1px solid rgba(236, 204, 104, 0.3);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.76rem;
    font-weight: 700;
    margin-top: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.event-cohost-badge:hover {
    background: rgba(236, 204, 104, 0.25);
    color: #ffffff;
}

/* Mobile-First Bottom Navigation Dock (Hidden on Desktop, Visible on Mobile < 768px) */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(14, 18, 22, 0.92);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    z-index: 9999;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 600;
    gap: 3px;
    transition: all 0.2s ease;
    flex: 1;
    height: 100%;
}

.mobile-nav-item i {
    font-size: 1.25rem;
}

.mobile-nav-item.active {
    color: var(--primary-emerald-bright);
    font-weight: 700;
}

/* Enlarge Dropdown Option Item Text */
select.search-input option {
    background-color: #12181d;
    color: var(--text-bright);
    font-size: 1rem;
    padding: 10px;
}