/* =========================================================
   LocalBazar - Ultra Minimalist Corporate Portal
   Designed with clarity, precision and elegance
   ========================================================= */

:root {
    --brand-blue: #1d4ed8;
    --brand-blue-hover: #1e40af;
    --brand-blue-soft: #eff6ff;
    
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-600: #475569;
    --slate-400: #94a3b8;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
    
    --font-heading: 'Plus Jakarta Sans', -apple-system, sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    
    --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: var(--font-body);
    color: var(--slate-900);
    background-color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ---------------- Header ---------------- */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: relative;
    z-index: 1000;
    gap: 1.25rem;
}

.header-left {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.header-right {
    display: flex;
    align-items: center;
    position: relative;
    flex-shrink: 0;
    margin-left: auto;
}

.header-ticker-bar {
    width: 100%;
    overflow: hidden;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    white-space: nowrap;
    position: relative;
    cursor: default;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    height: 38px;
}

.header-ticker-bar .lb-ticker-track {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: lbTickerScroll 24s linear infinite;
    will-change: transform;
    line-height: 38px;
}

.header-ticker-bar .lb-ticker-text-item {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--slate-800, #1e293b);
    line-height: 38px;
    display: inline-block;
    vertical-align: middle;
    padding: 0 1rem;
}

.header-ticker-bar .lb-ticker-sep {
    color: #94a3b8;
    font-size: 0.75rem;
    line-height: 38px;
    display: inline-block;
    vertical-align: middle;
}

.user-avatar-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--slate-100);
    border: 1px solid var(--slate-200);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--slate-600);
    transition: var(--transition);
}

.user-avatar-btn:hover {
    border-color: var(--brand-blue);
    color: var(--brand-blue);
}

/* ================= MULTI-NATIONAL USER PROFILE WIDGET ================= */
.user-profile-widget {
    position: relative;
}

.user-profile-trigger {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    outline: none;
}

.header-user-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s, box-shadow 0.2s;
}

.user-profile-trigger:hover .header-user-img {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.25);
}

.user-status-indicator {
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 10px;
    height: 10px;
    background: #10b981;
    border: 2px solid #ffffff;
    border-radius: 50%;
}

/* Enterprise Floating Card */
.profile-dropdown-card {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 320px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.22), 0 0 1px 1px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(226, 232, 240, 0.9);
    overflow: hidden;
    display: none;
    animation: profileCardPop 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1100;
}

.profile-dropdown-card.active {
    display: block;
}

@keyframes profileCardPop {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.profile-card-hero {
    background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
    padding: 1.5rem 1.25rem 1.1rem 1.25rem;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

.profile-avatar-large-wrap {
    position: relative;
    width: 72px;
    height: 72px;
    margin: 0 auto 0.75rem auto;
}

.profile-avatar-large {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.provider-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.profile-primary-info h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--slate-900);
    margin: 0 0 0.3rem 0;
}

.profile-role-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #0369a1;
    background: #e0f2fe;
    padding: 0.2rem 0.65rem;
    border-radius: 20px;
}

.profile-role-pill i {
    font-size: 0.72rem;
}

/* Details List */
.profile-details-list {
    padding: 0.85rem 1.25rem;
}

.profile-detail-row {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.45rem 0;
}

.profile-detail-row i {
    font-size: 0.92rem;
    color: #64748b;
    margin-top: 3px;
    width: 16px;
    text-align: center;
}

.profile-detail-row label {
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.profile-detail-row span {
    display: block;
    font-size: 0.82rem;
    color: var(--slate-800);
    font-weight: 500;
}

/* Stats Bar */
.profile-stats-bar {
    display: flex;
    align-items: center;
    justify-content: space-around;
    background: #f8fafc;
    margin: 0.25rem 1.25rem 0.75rem 1.25rem;
    padding: 0.65rem 0.75rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.stat-cell {
    text-align: center;
}

.stat-cell strong {
    display: block;
    font-size: 1.05rem;
    color: var(--brand-blue);
    font-weight: 700;
}

.stat-cell span {
    font-size: 0.72rem;
    color: #64748b;
}

.stat-divider {
    width: 1px;
    height: 24px;
    background: #cbd5e1;
}

/* Footer: Logout */
.profile-card-footer {
    padding: 0.65rem 1.25rem 1.1rem 1.25rem;
    border-top: 1px solid #f1f5f9;
}

.btn-user-logout {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.7rem;
    border-radius: 12px;
    border: 1px solid #fee2e2;
    background: #fef2f2;
    color: #ef4444;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-user-logout:hover {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fca5a5;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.15);
}

/* ---------------- Center Stage ---------------- */
.center-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    flex-grow: 1;
}

.stage-container {
    width: 100%;
    max-width: 800px;
    text-align: center;
    margin-top: -4vh; /* Aesthetic slight lift */
}

/* Brand Display */
.brand-hero {
    margin-bottom: 2.25rem;
}

.brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    font-size: 1.35rem;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
    margin-bottom: 0.85rem;
}

.brand-title {
    font-family: var(--font-heading);
    font-size: 3.25rem;
    font-weight: 800;
    color: var(--slate-900);
    letter-spacing: -1.2px;
    line-height: 1;
}

.brand-title span {
    color: var(--brand-blue);
}

.brand-tagline {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--slate-400);
    margin-top: 0.65rem;
    letter-spacing: 0.5px;
}

/* Omni Search Bar */
.omni-search-bar {
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 9999px;
    padding: 0.45rem 0.55rem 0.45rem 1.25rem;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
    transition: var(--transition);
}

.omni-search-bar:hover {
    border-color: #94a3b8;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.09);
}

.omni-search-bar:focus-within {
    border-color: var(--brand-blue);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.14);
}

.omni-segment {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.segment-icon {
    font-size: 0.9rem;
    color: var(--slate-400);
}

.omni-segment input {
    background: transparent;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--slate-900);
}

.omni-segment input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.location-segment {
    flex: 0.9;
}

.location-segment input {
    width: 100%;
}

.omni-separator {
    width: 1px;
    height: 26px;
    background: var(--slate-200);
    margin: 0 0.85rem;
    flex-shrink: 0;
}

.query-segment {
    flex: 2.1;
}

.query-segment input {
    width: 100%;
}

.omni-submit-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--brand-blue);
    color: #fff;
    border: none;
    outline: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    margin-left: 0.5rem;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.omni-submit-btn:hover {
    background: var(--brand-blue-hover);
    transform: scale(1.04);
}

/* ---------------- Home Omni Search Autocomplete Popover ---------------- */
.omni-suggestions-popover {
    display: none;
    position: absolute;
    top: calc(100% + 14px);
    left: 0;
    width: 100%;
    min-width: 270px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 16px 36px -4px rgba(15, 23, 42, 0.18), 0 0 1px 1px rgba(0, 0, 0, 0.05);
    z-index: 2000;
    max-height: 280px;
    overflow-y: auto;
    padding: 0.45rem;
    animation: omniPopSlide 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.omni-suggestions-popover.open {
    display: block;
}

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

.omni-sugg-item {
    padding: 0.65rem 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 10px;
    transition: all 0.15s ease;
    margin-bottom: 2px;
}

.omni-sugg-item:last-child {
    margin-bottom: 0;
}

.omni-sugg-item:hover {
    background: #eff6ff;
}

.omni-sugg-main {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    text-align: left;
}

.omni-sugg-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--slate-900);
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.omni-sugg-meta {
    font-size: 0.75rem;
    color: var(--slate-500);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.omni-sugg-badge {
    background: #f1f5f9;
    color: #475569;
    font-weight: 600;
    padding: 0.1rem 0.45rem;
    border-radius: 4px;
    font-size: 0.72rem;
}

.omni-sugg-icon-city {
    color: #ef4444;
}

.omni-sugg-icon-cat {
    color: #2563eb;
}

.omni-sugg-icon-listing {
    color: #10b981;
}

.omni-sugg-action-arrow {
    font-size: 0.76rem;
    color: #94a3b8;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.omni-sugg-item:hover .omni-sugg-action-arrow {
    opacity: 1;
    color: var(--brand-blue);
}

/* Quick Pills Under Search */
.quick-pills {
    margin-top: 1.75rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.6rem;
}

/* Validation Visual Cue & MNC Style Floating Error Tips */
.omni-input-error-tip {
    display: none;
    position: absolute;
    bottom: -28px;
    left: 28px;
    background: #dc2626;
    color: #ffffff;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 0.2rem 0.65rem;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none;
    animation: tipFadeSlide 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.omni-input-error-tip::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 14px;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid #dc2626;
}

.omni-input-error-tip.show {
    display: block;
}

.input-require-shake {
    animation: inputShake 0.4s ease-in-out;
    color: #dc2626 !important;
}

.input-require-shake::placeholder {
    color: #ef4444 !important;
    font-weight: 700 !important;
}

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

@keyframes inputShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

.pill-btn {
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: 9999px;
    padding: 0.45rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--slate-600);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: var(--transition);
}

.pill-btn i {
    font-size: 0.8rem;
    color: var(--slate-400);
}

.pill-btn:hover {
    background: #ffffff;
    border-color: var(--brand-blue);
    color: var(--brand-blue);
    transform: translateY(-1px);
}

.pill-btn:hover i {
    color: var(--brand-blue);
}

/* ---------------- Mobile Experience ---------------- */
@media (max-width: 768px) {
    .app-header {
        padding: 0.85rem 1rem;
        gap: 0.75rem;
    }

    .center-stage {
        padding: 1.25rem 1rem 2rem 1rem;
        align-items: flex-start; /* Keeps content naturally in upper half on mobile */
    }

    .stage-container {
        margin-top: 1.5rem; /* Exactly upper-third placement like top modern apps */
    }

    .brand-hero {
        margin-bottom: 1.5rem;
    }

    .brand-icon {
        width: 42px;
        height: 42px;
        font-size: 1.2rem;
        margin-bottom: 0.65rem;
    }

    .brand-title {
        font-size: 2.2rem;
    }

    .brand-tagline {
        font-size: 0.82rem;
        margin-top: 0.4rem;
    }

    .omni-search-bar {
        padding: 0.35rem 0.45rem 0.35rem 0.9rem;
    }

    .location-segment {
        flex: 1;
        min-width: 85px;
    }

    .location-segment input {
        font-size: 0.85rem;
    }

    .omni-separator {
        margin: 0 0.45rem;
        height: 22px;
    }

    .query-segment {
        flex: 1.4;
        min-width: 100px;
    }

    .query-segment input {
        font-size: 0.85rem;
    }

    .segment-icon {
        font-size: 0.8rem;
    }

    .omni-submit-btn {
        width: 38px;
        height: 38px;
        min-width: 38px;
        font-size: 0.9rem;
        margin-left: 0.25rem;
    }

    .quick-pills {
        margin-top: 1.25rem;
        display: flex;
        flex-wrap: nowrap; /* Forces exact single line */
        justify-content: flex-start;
        overflow-x: auto; /* Smooth horizontal swipe */
        -webkit-overflow-scrolling: touch;
        padding: 0.25rem 0.5rem 0.65rem 0.5rem;
        gap: 0.5rem;
        scrollbar-width: none; /* Hide scrollbar Firefox */
    }

    .quick-pills::-webkit-scrollbar {
        display: none; /* Hide scrollbar Chrome/Safari */
    }

    .pill-btn {
        flex-shrink: 0; /* Prevents pill compression */
        white-space: nowrap;
        font-size: 0.8rem;
        padding: 0.4rem 0.85rem;
    }
}

/* ========================================================
   PREMIUM RUNNING TICKER / TEXT AD (RIGHT-TO-LEFT SCROLL)
   ======================================================== */
.lb-ticker-bar {
    width: 100%;
    overflow: hidden;
    background: transparent;
    border-top: 1px solid rgba(226, 232, 240, 0.7);
    border-bottom: 1px solid rgba(226, 232, 240, 0.7);
    padding: 0.6rem 0;
    margin: 0.5rem 0 1rem 0;
    white-space: nowrap;
    position: relative;
    cursor: default;
    box-sizing: border-box;
    z-index: 100;
}

.home-ticker-bar {
    border-top: none;
    background: rgba(248, 250, 252, 0.75);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    margin: 0;
}

.lb-ticker-track {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: lbTickerScroll 24s linear infinite;
    will-change: transform;
}

/* Ticker NEVER pauses or stands still on hover, click, active, or focus */
.lb-ticker-bar,
.lb-ticker-bar:hover,
.lb-ticker-bar:active,
.lb-ticker-bar:focus,
.lb-ticker-track,
.lb-ticker-track:hover,
.lb-ticker-track:active,
.lb-ticker-track:focus,
.lb-ticker-text-item,
.lb-ticker-text-item:hover,
.lb-ticker-text-item:active,
.lb-ticker-text-item:focus {
    animation-play-state: running !important;
}

.lb-ticker-no-link {
    cursor: default !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    pointer-events: none !important;
}

@keyframes lbTickerScroll {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-100%, 0, 0);
    }
}

.lb-ticker-text-item {
    display: inline-block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    text-decoration: none;
    letter-spacing: 0.2px;
    padding: 0 1.25rem;
    vertical-align: middle;
}

a.lb-ticker-text-item {
    cursor: pointer;
    transition: opacity 0.15s ease, text-decoration 0.15s ease;
}

a.lb-ticker-text-item:hover {
    text-decoration: underline;
    opacity: 0.82;
}

.lb-ticker-sep {
    display: inline-block;
    color: #94a3b8;
    font-size: 0.75rem;
    margin: 0 0.5rem;
    vertical-align: middle;
    opacity: 0.7;
}

/* Home Banner Carousel Styles */
.home-banner-carousel-wrap {
    width: 100%;
    max-width: 860px;
    margin: 1.15rem auto 0.5rem auto;
    position: relative;
    overflow: hidden;
}

.home-banner-track {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.15rem 0;
}

.home-banner-track::-webkit-scrollbar {
    display: none;
}

.home-banner-slide {
    flex: 0 0 calc((100% - 1.5rem) / 3);
    min-width: 0;
    scroll-snap-align: start;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .home-banner-slide {
        flex: 0 0 calc((100% - 0.75rem) / 2);
    }
}

@media (max-width: 540px) {
    .home-banner-slide {
        flex: 0 0 100%;
    }
}

.home-ad-banner-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: #0f172a;
    border: 1px solid var(--border);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-ad-banner-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.home-ad-banner-card.ratio-16-9 {
    aspect-ratio: 16 / 9;
    width: 100%;
    max-height: 240px;
}

.home-ad-banner-card.ratio-1-1 {
    aspect-ratio: 1 / 1;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
}

.home-ad-banner-card.ratio-9-16 {
    aspect-ratio: 9 / 16;
    width: 100%;
    max-width: 240px;
    max-height: 420px;
    margin: 0 auto;
}

.home-ad-banner-card.ratio-4-1 {
    aspect-ratio: 4 / 1;
    width: 100%;
    max-height: 110px;
}

.home-ad-banner-card .home-ad-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.home-ad-banner-card .home-ad-sponsor-pill {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(6px);
    color: #ffffff;
    padding: 0.2rem 0.55rem;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    z-index: 2;
}

.home-ad-banner-card .home-ad-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    z-index: 3;
    transition: background 0.15s;
}

.home-ad-banner-card .home-ad-close:hover {
    background: rgba(239, 68, 68, 0.9);
}

/* ================= DYNAMIC PROMOTIONAL ADS & NOTICES ================= */
.lb-dynamic-ad {
    width: 100%;
    z-index: 999;
    transition: all 0.25s ease;
    animation: adFadeDown 0.3s ease;
}

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

.lb-ad-inner-box {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.65rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    gap: 1rem;
    text-align: center;
}

.lb-ad-text-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: center;
}

.lb-ad-title {
    font-weight: 700;
    font-size: 0.95rem;
}

.lb-ad-body {
    font-size: 0.85rem;
    opacity: 0.92;
}

.lb-ad-img {
    max-height: 90px;
    width: auto;
    max-width: 100%;
    border-radius: 8px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.lb-ad-close {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.15);
    border: none;
    color: inherit;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.lb-ad-close:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* Placement Styles */
.lb-dynamic-ad.ad-placement-top-bar {
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.lb-dynamic-ad.ad-placement-above-search {
    margin: 1rem 0;
    border-radius: 12px;
    overflow: hidden;
}

.lb-dynamic-ad.ad-placement-below-search {
    margin: 1.25rem 0 0.5rem 0;
    border-radius: 12px;
    overflow: hidden;
}

.lb-dynamic-ad.ad-placement-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.1);
}

.lb-dynamic-ad.ad-placement-floating-corner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: auto;
    max-width: 360px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

/* Size Variants */
.lb-dynamic-ad.ad-size-compact .lb-ad-inner-box {
    padding: 0.4rem 1rem;
}
.lb-dynamic-ad.ad-size-compact .lb-ad-img {
    max-height: 50px;
}

.lb-dynamic-ad.ad-size-hero .lb-ad-inner-box {
    padding: 1.25rem 1.5rem;
}
.lb-dynamic-ad.ad-size-hero .lb-ad-img {
    max-height: 200px;
}

.lb-dynamic-ad.ad-size-boxed {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

/* Background Themes */
.lb-dynamic-ad.ad-theme-gradient-blue {
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    color: #ffffff;
}

.lb-dynamic-ad.ad-theme-gradient-amber {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
}

.lb-dynamic-ad.ad-theme-gradient-dark {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #ffffff;
}

.lb-dynamic-ad.ad-theme-light-glass {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #0f172a;
}

.lb-dynamic-ad.ad-theme-gradient-emerald {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    color: #ffffff;
}

/* Aspect Ratio Modifiers for Banner Ads */
.lb-ad-img.ratio-16-9 {
    aspect-ratio: 16 / 9;
    width: 100%;
    max-height: 280px;
    object-fit: cover;
    border-radius: 12px;
}

.lb-ad-img.ratio-1-1 {
    aspect-ratio: 1 / 1;
    width: 100%;
    max-width: 380px;
    max-height: 380px;
    margin: 0 auto;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.lb-ad-img.ratio-9-16 {
    aspect-ratio: 9 / 16;
    width: 100%;
    max-width: 260px;
    max-height: 440px;
    margin: 0 auto;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.lb-ad-img.ratio-4-1 {
    aspect-ratio: 4 / 1;
    width: 100%;
    max-height: 120px;
    object-fit: cover;
    border-radius: 10px;
}

/* ========================================================
   PROFESSIONAL DESKTOP & WIDE SCREEN STYLING FOR HOME (INDEX)
   (Strictly @media min-width: 992px to preserve 100% mobile view)
======================================================== */
@media (min-width: 992px) {
    .stage-container {
        max-width: 860px;
        margin-top: -3vh;
    }

    .brand-hero {
        margin-bottom: 2.5rem;
    }

    .brand-title {
        font-size: 3.25rem;
        letter-spacing: -0.5px;
    }

    .brand-tagline {
        font-size: 1.15rem;
    }

    .search-card-wrapper {
        border-radius: 28px;
        box-shadow: 0 15px 40px rgba(15, 23, 42, 0.08);
        border: 1px solid #e2e8f0;
    }

    .popular-tags-tray {
        gap: 0.65rem;
        margin-top: 1.5rem;
    }

    .pop-tag-pill {
        padding: 0.5rem 1.1rem;
        font-size: 0.88rem;
    }
}

/* ================= HOME SQUARE PRODUCT PROMOTIONS SHOWCASE ================= */
.home-products-showcase-wrap {
    width: 100%;
    max-width: 860px;
    margin: 1.15rem auto 1.5rem auto;
    position: relative;
    padding: 0 0.5rem;
    box-sizing: border-box;
}

.home-products-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding: 0 0.25rem;
}

.home-products-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-dark, #1e293b);
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.home-products-subtext {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    background: #f1f5f9;
    padding: 0.2rem 0.55rem;
    border-radius: 12px;
}

.home-products-track {
    display: flex;
    gap: 0.85rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.25rem 0.15rem 0.65rem 0.15rem;
}

.home-products-track::-webkit-scrollbar {
    display: none;
}

.home-product-card {
    flex: 0 0 calc((100% - 2.55rem) / 4);
    min-width: 165px;
    max-width: 220px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    color: inherit;
    position: relative;
    box-sizing: border-box;
}

.home-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

@media (max-width: 768px) {
    .home-product-card {
        flex: 0 0 calc((100% - 1.7rem) / 3);
        min-width: 145px;
    }
}

@media (max-width: 480px) {
    .home-product-card {
        flex: 0 0 calc((100% - 0.85rem) / 2);
        min-width: 135px;
    }
}

.home-product-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f8fafc;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

.home-product-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(217, 119, 6, 0.3);
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.home-product-info {
    padding: 0.65rem 0.75rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

.home-product-name {
    font-size: 0.84rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.25;
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-product-store {
    font-size: 0.72rem;
    color: #64748b;
    margin-bottom: 0.35rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.home-product-price-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.35rem;
    margin-top: auto;
}

.home-product-price {
    font-size: 0.95rem;
    font-weight: 800;
    color: #059669;
}

.home-product-action-btn {
    font-size: 0.72rem;
    font-weight: 700;
    color: #2563eb;
    background: #eff6ff;
    padding: 0.2rem 0.45rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}

/* LocalBazar PWA 1-Click Install Banner Styling */
.lb-pwa-install-bar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    z-index: 999999;
    width: calc(100% - 32px);
    max-width: 480px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18), 0 2px 6px rgba(15, 23, 42, 0.08);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    animation: lbPwaSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: transform 0.3s ease, opacity 0.3s ease;
    box-sizing: border-box;
}

.lb-pwa-install-bar.hide {
    transform: translateX(-50%) translateY(120%);
    opacity: 0;
    pointer-events: none;
}

@keyframes lbPwaSlideUp {
    from {
        transform: translateX(-50%) translateY(120%);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

.lb-pwa-install-content {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.lb-pwa-icon-box {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

.lb-pwa-thumb {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.lb-pwa-text-group {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.lb-pwa-app-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
    margin-bottom: 2px;
}

.lb-pwa-app-desc {
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lb-pwa-action-group {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.btn-pwa-install {
    background: #2563eb;
    color: #ffffff;
    border: none;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    transition: all 0.2s ease;
}

.btn-pwa-install:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.btn-pwa-dismiss {
    background: #f1f5f9;
    border: none;
    color: #64748b;
    font-size: 1.2rem;
    line-height: 1;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-pwa-dismiss:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* ========================================================
   PROFESSIONAL SEARCH LOGIN GATE MODAL
   ======================================================== */
.lb-auth-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    box-sizing: border-box;
    animation: lbFadeIn 0.25s ease forwards;
}

@keyframes lbFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lb-auth-modal-card {
    position: relative;
    width: 100%;
    max-width: 440px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.35);
    padding: 2.25rem 2rem 1.75rem;
    box-sizing: border-box;
    animation: lbModalZoomIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    border: 1px solid #f1f5f9;
}

@keyframes lbModalZoomIn {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(14px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.lb-auth-modal-close {
    position: absolute;
    top: 16px;
    right: 18px;
    background: #f1f5f9;
    border: none;
    font-size: 1.35rem;
    line-height: 1;
    color: #64748b;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.lb-auth-modal-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.lb-auth-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.lb-auth-brand-badge {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lb-brand-icon-box {
    width: 34px;
    height: 34px;
    background: #2563eb;
    color: #ffffff;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.lb-brand-title {
    font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
    font-size: 1.2rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.5px;
}

.lb-brand-title span {
    color: #2563eb;
}

.lb-auth-lock-shield {
    width: 36px;
    height: 36px;
    background: #eff6ff;
    color: #2563eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.lb-auth-modal-title {
    font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
    font-size: 1.28rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
    margin-bottom: 0.55rem;
}

.lb-auth-modal-desc {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.45;
    margin-bottom: 1.15rem;
}

.target-search-chip {
    color: #1e40af;
    background: #dbeafe;
    padding: 0.15rem 0.45rem;
    border-radius: 6px;
    font-weight: 700;
}

.lb-auth-perks-list {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.perk-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #334155;
}

.perk-item i {
    color: #10b981;
    font-size: 0.8rem;
}

.btn-modal-google-login {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
    color: #0f172a;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    transition: all 0.2s ease;
}

.btn-modal-google-login:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
}

.lb-auth-modal-footer {
    margin-top: 1.25rem;
    padding-top: 0.95rem;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.75rem;
    color: #94a3b8;
}

/* =========================================================
   IOS / SAFARI INSTALLATION GUIDE POPUP
   ========================================================= */
.lb-ios-install-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999999;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    box-sizing: border-box;
    animation: lbFadeIn 0.25s ease forwards;
}

.lb-ios-install-card {
    position: relative;
    width: 100%;
    max-width: 400px;
    background: #ffffff;
    border-radius: 22px;
    padding: 2rem 1.75rem 1.5rem;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.35);
    box-sizing: border-box;
    text-align: center;
    animation: lbModalZoomIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.lb-ios-close-btn {
    position: absolute;
    top: 14px;
    right: 16px;
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.25rem;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lb-ios-icon-box {
    width: 56px;
    height: 56px;
    margin: 0 auto 0.85rem;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-radius: 14px;
    padding: 8px;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.lb-ios-icon-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.lb-ios-install-card h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.35rem;
}

.lb-ios-install-card p {
    font-size: 0.84rem;
    color: #64748b;
    line-height: 1.45;
    margin-bottom: 1.25rem;
}

.lb-ios-steps {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 0.85rem 1rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.ios-step-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.ios-step-num {
    width: 22px;
    height: 22px;
    background: #2563eb;
    color: #ffffff;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.ios-step-text {
    font-size: 0.82rem;
    color: #334155;
    line-height: 1.35;
}

.btn-ios-done {
    width: 100%;
    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-ios-done:hover {
    background: #1d4ed8;
}



