/* NammaSpot Custom Design System - Discover Local. Connect Direct. Grow Local. */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@500;600;700;800&display=swap');

/* Fast Tap & Smooth Scroll Performance */
html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    overflow-x: clip;
}

*, *::before, *::after {
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
}

button, a, input, select, textarea, label, [role="button"], .btn {
    touch-action: manipulation;
}

:root {
    --brand-teal: #0d9488;
    --brand-teal-dark: #0f766e;
    --brand-teal-hover: #0f766e;
    --brand-teal-light: #f0fdfa;
    --brand-teal-surface: #ccfbf1;
    --brand-teal-border: #99f6e4;
    --brand-amber: #f59e0b;
    --brand-amber-dark: #d97706;
    --brand-amber-light: #fffbeb;
    --brand-dark: #0f172a;
    --brand-slate: #1e293b;
    --brand-muted: #64748b;
    --brand-bg: #f8fafc;
    --brand-card: #ffffff;
    --brand-border: #e2e8f0;
    --brand-border-light: #f1f5f9;
    --whatsapp-green: #25D366;
    --whatsapp-dark: #128C7E;
    
    /* Modern Multi-Layer Elevation Shadows */
    --shadow-xs: 0 1px 2px 0 rgb(15 23 42 / 0.05);
    --shadow-sm: 0 2px 4px 0 rgb(15 23 42 / 0.06);
    --shadow-md: 0 4px 8px -1px rgb(15 23 42 / 0.08), 0 2px 4px -2px rgb(15 23 42 / 0.04);
    --shadow-lg: 0 12px 24px -4px rgb(15 23 42 / 0.08), 0 4px 6px -2px rgb(15 23 42 / 0.03);
    --shadow-hover: 0 20px 30px -6px rgb(13 148 136 / 0.15), 0 8px 12px -4px rgb(15 23 42 / 0.06);
    --shadow-card: 0 2px 8px -1px rgb(15 23 42 / 0.06), 0 1px 3px -1px rgb(15 23 42 / 0.04);
    --shadow-card-hover: 0 16px 28px -4px rgb(15 23 42 / 0.09), 0 6px 12px -2px rgb(13 148 136 / 0.07);
    --shadow-glow-teal: 0 0 0 3px rgba(13, 148, 136, 0.18);

    --radius-xs: 6px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 22px;
    --radius-full: 9999px;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--brand-bg);
    color: var(--brand-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, .brand-font {
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    color: var(--brand-dark);
    letter-spacing: -0.025em;
}

/* Brand Theme Color Utility Classes */
.text-teal { color: var(--brand-teal) !important; }
.text-teal-dark { color: var(--brand-teal-dark) !important; }
.bg-teal { background-color: var(--brand-teal) !important; color: #ffffff !important; }
.bg-teal-subtle { background-color: #ccfbf1 !important; color: #0f766e !important; }
.border-teal { border-color: var(--brand-teal) !important; }
.border-teal-subtle { border-color: #99f6e4 !important; }

.text-amber { color: var(--brand-amber-dark) !important; }
.bg-amber { background-color: var(--brand-amber) !important; color: #ffffff !important; }
.bg-amber-subtle { background-color: #fef3c7 !important; color: #92400e !important; }
.border-amber-subtle { border-color: #fde68a !important; }

/* Ensure Headings inherit text-white in dark containers */
.text-white h1, .text-white h2, .text-white h3, .text-white h4, .text-white h5, .text-white h6,
h1.text-white, h2.text-white, h3.text-white, h4.text-white, h5.text-white, h6.text-white,
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4, .bg-dark h5, .bg-dark h6,
[data-bs-theme="dark"] h1, [data-bs-theme="dark"] h2, [data-bs-theme="dark"] h3,
[data-bs-theme="dark"] h4, [data-bs-theme="dark"] h5, [data-bs-theme="dark"] h6 {
    color: #ffffff !important;
}

/* Header & Navigation */
.navbar-nammaspot {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--brand-border);
    transition: all 0.3s ease;
    padding: 0.65rem 0;
}

/* Brand Logo & Favicon Mark Alignment & Sizing */
.navbar-brand.brand-logo,
.brand-logo {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--brand-dark);
    text-decoration: none;
    line-height: 1;
    padding: 0 !important;
    margin: 0 !important;
}

.brand-logo-img {
    height: 48px;
    max-height: 52px;
    width: auto;
    max-width: 230px;
    object-fit: contain;
    vertical-align: middle;
    display: block;
    transition: transform 0.2s ease;
}

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

@media (max-width: 991.98px) {
    .brand-logo-img {
        height: 40px;
        max-height: 44px;
        max-width: 190px;
    }
}

@media (max-width: 575.98px) {
    .brand-logo-img {
        height: 36px;
        max-height: 38px;
        max-width: 160px;
    }
}

.brand-favicon-mark {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 10px;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
    box-shadow: 0 4px 10px rgba(13, 148, 136, 0.18);
    transition: transform 0.2s ease;
}

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

.brand-icon-box {
    width: 38px;
    height: 38px;
    min-width: 38px;
    background: linear-gradient(135deg, var(--brand-teal) 0%, var(--brand-teal-dark) 100%);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(13, 148, 136, 0.3);
    font-size: 1.15rem;
    flex-shrink: 0;
    vertical-align: middle;
}

.brand-title {
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 1.45rem;
    letter-spacing: -0.02em;
    color: var(--brand-dark);
    display: inline-flex;
    align-items: baseline;
    line-height: 1;
}

.brand-dot {
    color: var(--brand-amber);
    font-weight: 900;
}

.admin-sidebar .brand-logo-img {
    height: 36px;
    max-height: 38px;
    max-width: 150px;
    object-fit: contain;
}

/* ==========================================================================
   Enhanced Navbar & Header Design System
   ========================================================================== */
.navbar-nammaspot {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1020;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}

.nav-link-nammaspot {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--brand-slate) !important;
    padding: 0.5rem 0.95rem !important;
    border-radius: 10px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    position: relative;
}

.nav-link-nammaspot:hover {
    color: var(--brand-teal) !important;
    background-color: #f0fdfa;
    transform: translateY(-1px);
}

.nav-link-nammaspot.active {
    color: var(--brand-teal) !important;
    background-color: #f0fdfa;
    font-weight: 700;
}

.nav-link-nammaspot.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--brand-teal);
    border-radius: 4px;
}

/* User Profile Trigger Button */
.user-menu-pill-btn {
    background: #ffffff;
    border: 1px solid var(--brand-border);
    border-radius: 50rem;
    padding: 3px 12px 3px 4px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
}

.user-menu-pill-btn:hover, .user-menu-pill-btn[aria-expanded="true"] {
    background: #f8fafc;
    border-color: var(--brand-teal);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.15);
}

.user-menu-pill-btn .avatar-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Enhanced User Profile Dropdown Menu */
.user-dropdown-menu {
    width: 300px;
    max-width: 92vw;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 18px !important;
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.15), 0 0 1px 1px rgba(0, 0, 0, 0.04);
    padding: 0 !important;
    overflow: hidden;
    margin-top: 8px !important;
    animation: userDropdownFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes userDropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.user-dropdown-header {
    background: linear-gradient(145deg, #f8fafc 0%, #f0fdfa 100%);
    padding: 1rem 1.15rem;
    border-bottom: 1px solid var(--brand-border);
}

.user-dropdown-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.user-dropdown-balance-bar {
    background: #ffffff;
    border: 1px solid rgba(13, 148, 136, 0.2);
    border-radius: 12px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.user-dropdown-section-title {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand-muted);
    padding: 8px 16px 4px 16px;
    margin-bottom: 0;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--brand-slate);
    text-decoration: none;
    transition: all 0.15s ease;
}

.user-dropdown-item:hover {
    background-color: #f8fafc;
    color: var(--brand-teal);
    padding-left: 20px;
}

.user-dropdown-item .icon-box {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.user-dropdown-item:hover .icon-box {
    transform: scale(1.08);
}

.user-dropdown-footer {
    padding: 6px;
    background: #f8fafc;
    border-top: 1px solid var(--brand-border);
}

.user-dropdown-footer .logout-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    border: none;
    background: transparent;
    color: #ef4444;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.18s ease;
}

.user-dropdown-footer .logout-btn:hover {
    background: #fee2e2;
    color: #dc2626;
}

/* ==========================================================================
   Responsive Offcanvas Mobile Drawer Styling
   ========================================================================== */
@media (max-width: 991.98px) {
    .offcanvas-lg.offcanvas-end {
        width: 330px !important;
        max-width: 86vw !important;
        border-left: 1px solid rgba(226, 232, 240, 0.9);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    }

    .offcanvas-header {
        padding: 1.15rem 1.25rem;
        background: #ffffff;
        border-bottom: 1px solid var(--brand-border);
    }

    .offcanvas-body {
        padding: 1.15rem;
        background: #f8fafc;
        overflow-y: auto;
    }

    .mobile-drawer-profile-card {
        background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
        border-radius: 16px;
        padding: 1.15rem;
        color: #ffffff;
        box-shadow: 0 8px 20px -4px rgba(13, 148, 136, 0.35);
        margin-bottom: 1rem;
    }

    .mobile-drawer-guest-card {
        background: #ffffff;
        border: 1px solid var(--brand-border);
        border-radius: 16px;
        padding: 1.15rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
        margin-bottom: 1rem;
    }

    .mobile-nav-link-card {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 11px 14px;
        background: #ffffff;
        border: 1px solid var(--brand-border);
        border-radius: 12px;
        color: var(--brand-dark);
        font-weight: 600;
        font-size: 0.92rem;
        text-decoration: none;
        margin-bottom: 7px;
        transition: all 0.2s ease;
    }

    .mobile-nav-link-card:active, .mobile-nav-link-card.active {
        background: #f0fdfa;
        border-color: var(--brand-teal);
        color: var(--brand-teal);
        font-weight: 700;
    }

    .mobile-nav-link-card .icon-wrap {
        width: 34px;
        height: 34px;
        border-radius: 9px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
        flex-shrink: 0;
    }
}

.btn-primary-namma {
    background: linear-gradient(135deg, var(--brand-teal) 0%, var(--brand-teal-dark) 100%);
    color: #ffffff;
    border: none;
    font-weight: 600;
    padding: 0.65rem 1.4rem;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.22);
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary-namma:hover {
    background: linear-gradient(135deg, #0f766e 0%, #115e59 100%);
    color: #ffffff;
    transform: translateY(-1.5px);
    box-shadow: 0 8px 18px rgba(13, 148, 136, 0.32);
}

.btn-primary-namma:active {
    transform: scale(0.98);
}

.btn-secondary-namma {
    background: linear-gradient(135deg, var(--brand-amber) 0%, var(--brand-amber-dark) 100%);
    color: #ffffff;
    border: none;
    font-weight: 600;
    padding: 0.65rem 1.4rem;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    text-decoration: none;
}

.btn-secondary-namma:hover {
    color: #ffffff;
    transform: translateY(-1.5px);
    box-shadow: 0 8px 18px rgba(245, 158, 11, 0.35);
}

.btn-secondary-namma:active {
    transform: scale(0.98);
}

.btn-outline-namma {
    background: #ffffff;
    color: var(--brand-teal);
    border: 1.5px solid var(--brand-teal);
    font-weight: 600;
    padding: 0.55rem 1.3rem;
    border-radius: var(--radius-full);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-outline-namma:hover {
    background-color: var(--brand-teal);
    color: #ffffff;
    border-color: var(--brand-teal);
    transform: translateY(-1.5px);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.2);
}

.btn-outline-teal {
    background: #ffffff;
    color: var(--brand-teal) !important;
    border: 1.5px solid var(--brand-teal) !important;
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-outline-teal:hover, .btn-outline-teal:active, .btn-outline-teal:focus {
    background-color: var(--brand-teal) !important;
    color: #ffffff !important;
    border-color: var(--brand-teal) !important;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25);
}

.btn-teal {
    background: linear-gradient(135deg, var(--brand-teal) 0%, var(--brand-teal-dark) 100%) !important;
    color: #ffffff !important;
    border: none !important;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.22);
    transition: all 0.2s ease;
}

.btn-teal:hover {
    background: linear-gradient(135deg, #0f766e 0%, #115e59 100%) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(13, 148, 136, 0.3);
}

.btn-whatsapp {
    background: linear-gradient(135deg, var(--whatsapp-green) 0%, #1ea952 100%);
    color: #ffffff;
    border: none;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    box-shadow: 0 3px 8px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp:hover {
    background: linear-gradient(135deg, #1ea952 0%, var(--whatsapp-dark) 100%);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(37, 211, 102, 0.35);
}

/* Hero Section — Modern High-End Directory Experience */
.hero-wrapper {
    position: relative;
    background: radial-gradient(120% 90% at 50% 0%, #ecfdf5 0%, #f0fdfa 35%, #ffffff 90%);
    padding: 4.5rem 0 3.75rem 0;
    overflow: hidden;
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
}

.hero-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(13, 148, 136, 0.08) 1.5px, transparent 1.5px);
    background-size: 28px 28px;
    pointer-events: none;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85) 0%, transparent 92%);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 1.25rem;
    border-radius: 9999px;
    background: #ffffff;
    border: 1px solid var(--brand-teal-border);
    color: var(--brand-teal-dark);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.12);
}

.hero-title {
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    font-size: 3.4rem;
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.035em;
    color: var(--brand-dark);
    margin-bottom: 1.25rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.68;
    color: var(--brand-slate);
    max-width: 620px;
    margin-bottom: 2rem;
}

/* Floating Master Search Console */
.hero-search-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 1.35rem;
    padding: 0.85rem;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(15, 23, 42, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.95);
    margin-top: 1.5rem;
}

.search-input-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    border-radius: 0.85rem;
    background-color: #f8fafc;
    border: 1px solid var(--brand-border);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-input-group:focus-within {
    background-color: #ffffff;
    border-color: var(--brand-teal);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.18);
}

.search-input-group input, .search-input-group select {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--brand-dark);
}

.search-input-group i {
    font-size: 1.15rem;
    color: var(--brand-muted);
}

/* Category Cards — Compact, Elegant & Scannable */
.category-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: var(--radius-lg);
    padding: 1.15rem 0.85rem;
    text-align: center;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    display: block;
    height: 100%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.category-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15%;
    right: 15%;
    height: 2px;
    background: var(--brand-teal);
    opacity: 0;
    transform: scaleX(0.5);
    transition: all 0.25s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: var(--brand-teal);
    box-shadow: 0 12px 24px -4px rgba(13, 148, 136, 0.14);
}

.category-card:hover::after {
    opacity: 1;
    transform: scaleX(1);
}

.category-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
    color: var(--brand-teal);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 0.65rem;
    border: 1px solid rgba(13, 148, 136, 0.15);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-card:hover .category-icon-wrapper {
    background: linear-gradient(135deg, var(--brand-teal) 0%, var(--brand-teal-dark) 100%);
    color: #ffffff;
    transform: scale(1.08) rotate(-3deg);
    box-shadow: 0 6px 14px rgba(13, 148, 136, 0.25);
}

.category-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 0.25rem;
    letter-spacing: -0.01em;
}

.category-count {
    font-size: 0.74rem;
    color: var(--brand-muted);
    font-weight: 600;
    display: inline-block;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 9999px;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

/* Business Card — Modern Directory Listing Card */
.business-card {
    background: var(--brand-card);
    border-radius: 1rem;
    border: 1px solid rgba(226, 232, 240, 0.9);
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 14px -2px rgba(15, 23, 42, 0.05), 0 2px 4px -1px rgba(15, 23, 42, 0.03);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.business-card:hover {
    transform: translateY(-5px);
    border-color: rgba(13, 148, 136, 0.45);
    box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(13, 148, 136, 0.08);
}

.business-card-img-wrap {
    position: relative;
    height: 165px;
    overflow: hidden;
    background-color: #f1f5f9;
}

.business-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.business-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.45) 0%, rgba(15, 23, 42, 0) 45%, rgba(15, 23, 42, 0.55) 100%);
    pointer-events: none;
}

/* Badges on Compact Card */
.badge-featured-compact {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.badge-verified-compact {
    background: #0284c7;
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.badge-status-open-compact {
    background: rgba(16, 185, 129, 0.92);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.18rem 0.5rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.badge-status-closed-compact {
    background: rgba(100, 116, 139, 0.88);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.18rem 0.5rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    backdrop-filter: blur(4px);
}

.status-pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #ffffff;
    display: inline-block;
    animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

.btn-favourite-compact {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #ef4444;
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.btn-favourite-compact:hover {
    transform: scale(1.15);
    background: #ffffff;
}

.btn-favourite-compact.active {
    color: #dc2626;
}

/* Compact Card Body */
.business-card-body {
    padding: 0.75rem 0.85rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-category-tag {
    font-weight: 600;
    font-size: 0.72rem;
    color: var(--brand-teal);
    background: var(--brand-teal-light);
    padding: 2px 6px;
    border-radius: 4px;
    max-width: 55%;
}

.card-location-tag {
    font-weight: 500;
    font-size: 0.75rem;
    color: var(--brand-slate);
    max-width: 45%;
}

.business-logo-compact {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
    background: #ffffff;
}

.business-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
}

.business-card-title a {
    color: var(--brand-dark);
    text-decoration: none;
    transition: color 0.15s ease;
}

.business-card-title a:hover {
    color: var(--brand-teal);
}

/* Modern Card Footer Actions */
.business-card-footer {
    padding: 0.65rem 0.95rem;
    background-color: #ffffff;
    border-top: 1px solid rgba(226, 232, 240, 0.7);
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.btn-card-call {
    background: #f8fafc;
    border: 1px solid var(--brand-border);
    color: var(--brand-dark);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.4rem 0.65rem;
    border-radius: 50rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-card-call:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.btn-card-call i {
    color: #16a34a;
    font-size: 0.8rem;
}

.btn-card-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #1da851 100%);
    color: #ffffff;
    border: none;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.4rem 0.75rem;
    border-radius: 50rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(37, 211, 102, 0.25);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-card-whatsapp:hover {
    background: linear-gradient(135deg, #1da851 0%, #128C7E 100%);
    color: #ffffff;
    transform: translateY(-1.5px);
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.35);
}

.btn-card-view {
    background: linear-gradient(135deg, var(--brand-teal) 0%, var(--brand-teal-dark) 100%);
    color: #ffffff;
    border: none;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.4rem 0.75rem;
    border-radius: 50rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(13, 148, 136, 0.25);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-card-view:hover {
    background: linear-gradient(135deg, var(--brand-teal-dark) 0%, #115e59 100%);
    color: #ffffff;
    transform: translateY(-1.5px);
    box-shadow: 0 4px 10px rgba(13, 148, 136, 0.35);
}

/* Active Context Filter Chips */
.filter-chips-wrapper {
    background: #ffffff;
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-md);
    padding: 0.65rem 0.9rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
    text-decoration: none;
    transition: all 0.15s ease;
}

.filter-chip:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.filter-chip.chip-category {
    background: #f0fdfa;
    color: #0f766e;
    border-color: #99f6e4;
}

.filter-chip.chip-location {
    background: #fff1f2;
    color: #be123c;
    border-color: #fecdd3;
}

.filter-chip.chip-keyword {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.filter-chip.chip-rating {
    background: #fffbeb;
    color: #b45309;
    border-color: #fde68a;
}

.filter-chip.chip-open {
    background: #f0fdf4;
    color: #15803d;
    border-color: #bbf7d0;
}

.filter-chip-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.12);
    font-size: 0.65rem;
    line-height: 1;
}

.filter-chip:hover .filter-chip-remove {
    background: rgba(0, 0, 0, 0.25);
}

/* Detail Page Specifics */
.business-hero {
    position: relative;
    height: 380px;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
}

.business-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.2) 0%, rgba(15, 23, 42, 0.85) 100%);
    display: flex;
    align-items: flex-end;
    padding: 2.5rem;
    color: #ffffff;
}

.business-hero-logo {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-md);
    object-fit: cover;
    border: 4px solid #ffffff;
    box-shadow: var(--shadow-lg);
    background-color: #ffffff;
}

/* Refer & Earn Banner / Cards */
.refer-card {
    background: linear-gradient(135deg, #064e3b 0%, #0d9488 50%, #0f766e 100%);
    border-radius: var(--radius-xl);
    color: #ffffff;
    padding: 3.5rem 3rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 24px 48px -12px rgba(13, 148, 136, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.refer-card::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
}

.referral-code-box {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    border: 2px dashed rgba(255, 255, 255, 0.45);
    border-radius: var(--radius-md);
    padding: 1.15rem 1.65rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 1.5rem 0;
}

.referral-code-text {
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: 2.5px;
    font-family: monospace;
    color: #fef08a;
}

/* Stat Cards — Clean Enterprise Elevation */
.stat-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid rgba(226, 232, 240, 0.85);
    box-shadow: var(--shadow-card);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(13, 148, 136, 0.3);
}

.stat-icon {
    width: 58px;
    height: 58px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.65rem;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.stat-card:hover .stat-icon {
    transform: scale(1.08);
}

/* Admin Dashboard Specific */
.admin-sidebar {
    background: #0f172a;
    min-height: 100vh;
    color: #94a3b8;
    padding: 1.5rem 1rem;
}

.admin-sidebar a {
    color: #94a3b8;
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-bottom: 0.3rem;
}

.admin-sidebar a:hover, .admin-sidebar a.active {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.admin-sidebar a.active {
    background: var(--brand-teal);
    color: #ffffff;
}

/* Toast container */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-wrapper {
        padding: 2.5rem 0 2rem 0;
    }
    .business-hero {
        height: 280px;
    }
    .business-hero-overlay {
        padding: 1.25rem;
    }
}

/* Live Geolocation & Proximity Animation */
.btn-gps-trigger {
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
}
.btn-gps-trigger:hover {
    transform: translateY(-50%) scale(1.15) !important;
    color: var(--brand-teal-hover) !important;
}

.location-pulse-wrap {
    position: relative;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(13, 148, 136, 0.1);
    border-radius: 50%;
    flex-shrink: 0;
}

.location-pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--brand-teal);
    animation: locationPulse 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
    pointer-events: none;
}

@keyframes locationPulse {
    0% {
        transform: scale(0.85);
        opacity: 0.9;
    }
    70% {
        transform: scale(1.6);
        opacity: 0;
    }
    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

#navLocationPill {
    font-size: 0.82rem;
    transition: all 0.2s ease;
    border-color: rgba(0, 0, 0, 0.12) !important;
}
#navLocationPill:hover {
    background-color: #f1f5f9;
    border-color: var(--brand-teal) !important;
}

/* ============================================================
   Mobile Bottom App Bar (Smartphones & Small Tablets)
   ============================================================ */
.mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    transform: translateZ(0); /* Hardware accelerated */
}

.mobile-bottom-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-around;
    height: 60px;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 6px;
}

.mobile-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #64748b;
    text-decoration: none;
    font-size: 0.68rem;
    font-weight: 600;
    transition: color 0.15s ease, transform 0.1s ease;
    position: relative;
    user-select: none;
}

.mobile-nav-item:active {
    transform: scale(0.92);
}

.mobile-nav-item.active {
    color: var(--brand-teal);
}

.mobile-nav-item.active .mobile-nav-icon-wrap {
    color: var(--brand-teal);
    transform: translateY(-1px);
}

.mobile-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    width: 16px;
    height: 3px;
    background: var(--brand-teal);
    border-radius: 4px;
}

.mobile-nav-icon-wrap {
    font-size: 1.25rem;
    line-height: 1;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    transition: transform 0.15s ease;
}

.mobile-nav-hot-dot {
    position: absolute;
    top: -2px;
    right: -4px;
    width: 7px;
    height: 7px;
    background: #ef4444;
    border-radius: 50%;
    border: 1.5px solid #ffffff;
}

.mobile-nav-admin-dot {
    position: absolute;
    top: -2px;
    right: -4px;
    width: 8px;
    height: 8px;
    background: #dc2626;
    border-radius: 50%;
    border: 1.5px solid #ffffff;
}

.mobile-nav-avatar {
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--brand-teal);
}

body.has-mobile-nav {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 992px) {
    body.has-mobile-nav {
        padding-bottom: 0 !important;
    }
}

/* ============================================================
   Enhanced Responsive Polish for Mobile & Tablet
   ============================================================ */

/* Tablet & Mobile Breakpoints (<= 991px) */
@media (max-width: 991.98px) {
    /* Touch target scaling */
    .btn, .nav-link, .dropdown-item {
        min-height: 40px;
        display: inline-flex;
        align-items: center;
    }

    .navbar-collapse {
        background: #ffffff;
        border-radius: 16px;
        padding: 1.25rem;
        margin-top: 0.75rem;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        border: 1px solid var(--brand-border);
    }

    /* Hero Search Bar on Tablets */
    .hero-search-card {
        padding: 1.25rem;
    }

    .hero-search-card .search-input-group input,
    .hero-search-card .search-input-group select {
        height: 48px;
        font-size: 16px !important; /* Prevents auto-zoom on iOS Safari */
    }

    .business-card-img-wrap {
        aspect-ratio: 16/9;
        height: auto;
    }
}

/* Mobile Devices (<= 767px) */
@media (max-width: 767.98px) {
    .hero-wrapper {
        padding: 1.5rem 0 2rem 0;
    }
    .hero-title {
        font-size: 1.85rem;
        line-height: 1.25;
    }
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    .hero-search-card {
        padding: 1rem;
        border-radius: 16px;
    }
    .hero-search-card button[type="submit"] {
        height: 48px;
        border-radius: 12px;
        font-weight: 700;
        font-size: 1rem;
    }
    
    /* Quick tags horizontal swipe */
    .popular-tags-scroll {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        gap: 0.5rem;
        padding-bottom: 4px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .popular-tags-scroll::-webkit-scrollbar {
        display: none;
    }

    /* Details page action bar pinned to bottom above mobile nav */
    .mobile-business-actions {
        position: fixed;
        bottom: calc(60px + env(safe-area-inset-bottom, 0px));
        left: 0;
        right: 0;
        z-index: 1025;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(12px);
        padding: 10px 16px;
        border-top: 1px solid var(--brand-border);
        box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.05);
    }

    /* Form controls touch optimization */
    input[type="text"], input[type="email"], input[type="tel"], 
    input[type="password"], input[type="number"], select, textarea {
        font-size: 16px !important; /* Prevents auto zoom */
    }

    /* Modal adjustments for small screens */
    .modal-dialog {
        margin: 0.75rem;
    }
    .modal-content {
        border-radius: 20px;
    }
}

/* Extra Small Phones (<= 480px) */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.65rem;
    }
    .category-card {
        padding: 0.75rem 0.5rem;
        border-radius: 12px;
    }
    .category-icon-wrapper {
        width: 42px;
        height: 42px;
        font-size: 1.15rem;
        margin-bottom: 0.35rem;
    }
    .category-title {
        font-size: 0.78rem;
    }
    .category-count {
        font-size: 0.68rem;
    }
    .business-card-body {
        padding: 0.85rem;
    }
    .btn-card-call, .btn-card-whatsapp {
        min-height: 42px;
        font-size: 0.82rem;
    }
}

/* ==========================================================================
   Pagination Styling & SVG Size Safeguards
   ========================================================================== */
.pagination {
    display: flex;
    padding-left: 0;
    list-style: none;
    border-radius: var(--radius-md);
    gap: 5px;
    margin-bottom: 0;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination .page-item .page-link {
    color: var(--brand-slate);
    background-color: #ffffff;
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-sm) !important;
    padding: 0.45rem 0.85rem;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    text-decoration: none;
}

.pagination .page-item.active .page-link {
    background-color: var(--brand-teal) !important;
    border-color: var(--brand-teal) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(13, 148, 136, 0.25);
}

.pagination .page-item .page-link:hover:not(.disabled) {
    background-color: var(--brand-teal-light);
    border-color: var(--brand-teal);
    color: var(--brand-teal-dark);
    transform: translateY(-1px);
}

.pagination .page-item.disabled .page-link {
    color: var(--brand-muted);
    background-color: #f8fafc;
    border-color: var(--brand-border);
    opacity: 0.6;
    cursor: not-allowed;
}

/* Hard guard against any unstyled pagination SVG vectors */
nav svg,
.pagination svg,
[aria-label*="Pagination"] svg {
    width: 1.1rem !important;
    height: 1.1rem !important;
    max-width: 20px !important;
    max-height: 20px !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

/* ==========================================================================
   Professional Footer Design System
   ========================================================================== */
.footer-nammaspot {
    background: #090f1d;
    color: #94a3b8;
    padding: 4.5rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.footer-nammaspot::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(13, 148, 136, 0.6), transparent);
}

.footer-nammaspot h5 {
    color: #ffffff;
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
}

.footer-nammaspot a {
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-block;
}

.footer-nammaspot a:hover {
    color: #2dd4bf !important;
    transform: translateX(3px);
}

.footer-nammaspot .btn-outline-secondary {
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: #cbd5e1 !important;
    border-radius: 50rem;
    padding: 0.3rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.footer-nammaspot .btn-outline-secondary:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

/* ============================================================
   Mobile Navigation Drawer & Responsive User Menu
   ============================================================ */
#navbarOffcanvas,
.offcanvas.offcanvas-lg {
    z-index: 1065 !important;
    width: 320px !important;
    max-width: 86vw !important;
    background: #ffffff !important;
    box-shadow: -10px 0 35px rgba(15, 23, 42, 0.22) !important;
}

#navbarOffcanvas .offcanvas-body,
.offcanvas.offcanvas-lg .offcanvas-body {
    padding: 1.25rem 1rem calc(5.5rem + env(safe-area-inset-bottom, 0px)) 1rem !important; /* safe area above mobile bottom nav */
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
}

.offcanvas-backdrop {
    z-index: 1060 !important;
}

@media (max-width: 991.98px) {
    .footer-nammaspot {
        padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px)) !important;
    }
}


.mobile-drawer-profile-card {
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
    border-radius: 16px;
    padding: 1.15rem;
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(13, 148, 136, 0.22);
    margin-bottom: 0.85rem;
}

.mobile-drawer-guest-card {
    background: linear-gradient(135deg, #f0fdfa 0%, #f8fafc 100%);
    border: 1px solid rgba(13, 148, 136, 0.2);
    border-radius: 16px;
    padding: 1.15rem;
    margin-bottom: 0.85rem;
}

.mobile-nav-link-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.88rem;
    color: #1e293b;
    text-decoration: none;
    background: #ffffff;
    border: 1px solid #f1f5f9;
    transition: all 0.18s ease;
}

.mobile-nav-link-card:hover,
.mobile-nav-link-card:focus {
    background: #f0fdfa;
    border-color: rgba(13, 148, 136, 0.35);
    color: var(--brand-teal);
    transform: translateX(3px);
}

.mobile-nav-link-card.active {
    background: #f0fdfa;
    border-color: var(--brand-teal);
    color: var(--brand-teal);
    font-weight: 700;
}

.mobile-nav-link-card .icon-wrap {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

/* Dashboard Sidebar Collapsible Navigation on Mobile */
@media (max-width: 991.98px) {
    .dashboard-sidebar-card {
        margin-bottom: 1.25rem;
    }
}

/* User Menu Pill Caret Clean Up */
.user-menu-pill-btn.dropdown-toggle::after {
    display: none !important;
}

/* ============================================================
   Universal Design System Utilities: Colors, Badges, Buttons
   ============================================================ */

/* Teal Theme System */
.text-teal {
    color: var(--brand-teal) !important;
}

.text-teal-dark {
    color: var(--brand-teal-dark) !important;
}

.hover-teal {
    transition: color 0.15s ease;
}

.hover-teal:hover {
    color: var(--brand-teal) !important;
}

.bg-teal {
    background-color: var(--brand-teal) !important;
    color: #ffffff !important;
}

.bg-teal-subtle {
    background-color: var(--brand-teal-light, #f0fdfa) !important;
    color: var(--brand-teal-dark, #0f766e) !important;
    border: 1px solid rgba(13, 148, 136, 0.2) !important;
}

.border-teal {
    border-color: var(--brand-teal) !important;
}

.border-teal-subtle {
    border-color: rgba(13, 148, 136, 0.25) !important;
}

.btn-teal {
    background: var(--brand-teal) !important;
    color: #ffffff !important;
    border: 1px solid var(--brand-teal) !important;
    border-radius: 50rem;
    font-weight: 600;
    padding: 0.45rem 1.15rem;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(13, 148, 136, 0.2);
}

.btn-teal:hover, .btn-teal:focus {
    background: var(--brand-teal-dark, #0f766e) !important;
    color: #ffffff !important;
    border-color: var(--brand-teal-dark, #0f766e) !important;
    transform: translateY(-1.5px);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

.btn-outline-teal {
    background: transparent !important;
    color: var(--brand-teal) !important;
    border: 1.5px solid var(--brand-teal) !important;
    border-radius: 50rem;
    font-weight: 600;
    padding: 0.45rem 1.15rem;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
}

.btn-outline-teal:hover, .btn-outline-teal:focus {
    background: var(--brand-teal) !important;
    color: #ffffff !important;
    border-color: var(--brand-teal) !important;
    transform: translateY(-1.5px);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25);
}

.badge-teal {
    background-color: var(--brand-teal-light, #f0fdfa);
    color: var(--brand-teal-dark, #0f766e);
    border: 1px solid rgba(13, 148, 136, 0.25);
}

/* Purple Palette Utilities */
.text-purple {
    color: #7c3aed !important;
}

.bg-purple {
    background-color: #7c3aed !important;
    color: #ffffff !important;
}

.bg-purple-subtle {
    background-color: #f5f3ff !important;
    color: #6d28d9 !important;
    border: 1px solid rgba(124, 58, 237, 0.18) !important;
}

/* Amber Palette Utilities */
.text-amber-dark {
    color: #b45309 !important;
}

.bg-amber-subtle {
    background-color: #fffbeb !important;
    color: #92400e !important;
    border: 1px solid rgba(245, 158, 11, 0.2) !important;
}

/* Elevation Shadows Utilities */
.shadow-xs {
    box-shadow: var(--shadow-xs) !important;
}

.shadow-card {
    box-shadow: var(--shadow-card) !important;
}

.shadow-hover {
    box-shadow: var(--shadow-hover) !important;
}

.shadow-card-hover {
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.shadow-glow-teal {
    box-shadow: var(--shadow-glow-teal) !important;
}

/* Auth Cards & Input Elements */
.auth-card {
    border-radius: 1.25rem !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-nav-tabs .nav-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    border-radius: 50rem;
    padding: 0.5rem 1rem;
    border: none;
    transition: all 0.2s ease;
}

.auth-nav-tabs .nav-link.active {
    background-color: var(--brand-teal, #0d9488) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25);
}

.password-toggle-btn {
    border-top-right-radius: 0.5rem !important;
    border-bottom-right-radius: 0.5rem !important;
}

.otp-input-box {
    letter-spacing: 0.35rem;
    font-size: 1.2rem;
    font-family: monospace;
    font-weight: 700;
    text-align: center;
}

/* ==========================================================================
   Geolocation & Voice Search Animation System (UI/UX Pro Max)
   ========================================================================== */
@keyframes radarPulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 12px rgba(13, 148, 136, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(13, 148, 136, 0);
    }
}

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

.locating-active {
    animation: radarPulse 1.4s infinite ease-in-out !important;
    color: var(--brand-teal) !important;
}

.locating-spin {
    display: inline-block !important;
    animation: spinSlow 0.9s linear infinite !important;
}

/* Floating Location Status Toast */
.location-fetching-pill {
    position: fixed;
    top: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1090;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #ffffff;
    padding: 0.6rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    gap: 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    animation: fadeInDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translate(-50%, -15px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

/* Voice Search Equalizer Audio Wave Animations */
@keyframes soundWave {
    0%, 100% { height: 6px; }
    50% { height: 22px; }
}

.voice-wave-container {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    height: 24px;
    vertical-align: middle;
}

.voice-wave-bar {
    width: 3px;
    height: 6px;
    background-color: #ef4444;
    border-radius: 2px;
    animation: soundWave 0.75s ease-in-out infinite;
}
.voice-wave-bar:nth-child(2) { animation-delay: 0.15s; }
.voice-wave-bar:nth-child(3) { animation-delay: 0.3s; }
.voice-wave-bar:nth-child(4) { animation-delay: 0.45s; }

/* Responsive Invoice Theme Switcher */
.invoice-theme-switcher {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}
@media (max-width: 576px) {
    .invoice-theme-switcher {
        width: 100%;
    }
    .invoice-theme-switcher .btn {
        flex: 1 1 calc(50% - 0.35rem);
        font-size: 0.75rem;
        padding: 0.4rem 0.5rem;
        text-align: center;
    }
}


