/* ==========================================================================
   KheyalGhor V2 Clean Responsive Navigation Styles
   Universal responsive framework: PC dock, Tablet subbar, Mobile 5-tab app dock,
   and zero-blur slide-out drawer menu.
   ========================================================================== */

:root {
    --nav-border: #e2e8f0;
    --nav-bg: #ffffff;
    --nav-text: #334155;
    --nav-text-active: #0f172a;
    --nav-primary: #059669;
}

/* ==========================================================================
   Global Responsive Foundations & Overflow Prevention
   ========================================================================== */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

* {
    -webkit-tap-highlight-color: transparent;
}

img {
    max-width: 100%;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Smooth Touch Scrolling on Mobile */
.overflow-x-auto,
.overflow-y-auto {
    -webkit-overflow-scrolling: touch;
}

/* Top Announcement Bar Responsive Fix */
.v2-topbar {
    padding: 6px 14px !important;
}
.v2-topbar-inner {
    flex-wrap: wrap !important;
    gap: 6px 12px !important;
}
@media (max-width: 639px) {
    .v2-topbar {
        font-size: 11px !important;
        padding: 5px 10px !important;
    }
    .v2-topbar-inner {
        justify-content: center !important;
        text-align: center !important;
        gap: 4px 8px !important;
    }
    .v2-topbar-inner > div {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 6px !important;
    }
}

/* ==========================================================================
   Uniform Brand Logo Standard across all pages (Requirement 10)
   Ensures icon and brand text are always vertically centered and uniform.
   ========================================================================== */
.brand, a.brand, .brand-link, .header-brand {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    text-decoration: none !important;
    flex-shrink: 0 !important;
    line-height: normal !important;
}
.brand-mark, .brand-icon, .brand .w-10, .brand .w-9 {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    border-radius: 11px !important;
    background: linear-gradient(135deg, #059669, #0d9488) !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 17px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
}
.brand-mark i, .brand-icon i, .brand i {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
}
.brand-text, .brand > div:not(.brand-icon):not(.brand-mark), .brand > span:not(.brand-mark) {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    line-height: 1.15 !important;
}
.brand-name, .brand-text h1, .brand-text strong, .brand .text-xl, .brand .font-extrabold {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    line-height: 1.15 !important;
    margin: 0 !important;
    letter-spacing: -0.01em !important;
}
.brand-sub, .brand-text p, .brand-text small, .brand .tracking-widest {
    font-size: 10px !important;
    font-weight: 700 !important;
    color: #059669 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    margin-top: 1px !important;
    line-height: 1 !important;
}

/* Site Headers on Small Screens */
@media (max-width: 639px) {
    .header-inner, 
    .feature-page-header-inner {
        width: calc(100% - 20px) !important;
        min-height: 56px !important;
        gap: 8px !important;
    }
    .brand-name, .brand-text h1, .brand-text strong {
        font-size: 16px !important;
    }
    .brand-sub, .brand-text p, .brand-text small {
        font-size: 9.5px !important;
    }
    .brand-mark, .brand-icon, .feature-page-brand i {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        font-size: 15px !important;
    }
    .header-link, 
    .language-button, 
    .lang-toggle, 
    .btn-post-adoption {
        padding: 6px 10px !important;
        font-size: 11.5px !important;
        min-height: 34px !important;
    }
}

/* Header Burger Button: completely disabled because mobile uses bottom dock and tablet/PC uses top bar end button */
.site-header-burger {
    display: none !important;
}

/* ==========================================================================
   DESKTOP & TABLET NAVIGATION (>= 768px)
   Priority+ visible-length dock:
   - Only visible length area has icons
   - Last icon is always "See Full Menu"
   - As size decreases, items before "See Full Menu" move into the full menu drawer
   - ZERO horizontal sliding / scrollbars
   ========================================================================== */
@media (min-width: 768px) {
    .site-wide-nav {
        position: relative !important;
        inset: auto !important;
        display: flex !important;
        flex-wrap: nowrap !important;
        width: min(1280px, calc(100% - 24px)) !important;
        min-height: 44px !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 6px !important;
        margin: 0 auto !important;
        padding: 4px 0 !important;
        overflow: hidden !important; /* STRICT: NO SLIDING, NO SCROLLBAR */
        box-shadow: none !important;
        scrollbar-width: none !important;
        font-family: 'Hind Siliguri', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    }
    .site-wide-nav::-webkit-scrollbar {
        display: none !important;
    }

    .nav-priority-hidden,
    .site-nav-hidden,
    .tab-pill-hidden {
        display: none !important;
    }

    /* Icon button for each section */
    .site-nav-link:not(.nav-priority-hidden):not(.site-nav-hidden):not(.site-nav-active):not([aria-current="page"]) {
        flex: 0 0 auto !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        padding: 0 !important;
        border-radius: 10px !important;
        border: 1px solid var(--nav-border) !important;
        background: #ffffff !important;
        color: var(--item-color, #475569) !important;
        text-decoration: none !important;
        cursor: pointer !important;
        transition: all 0.15s ease !important;
        position: relative !important;
        box-sizing: border-box !important;
    }

    .site-nav-link i {
        font-size: 15px !important;
        color: var(--item-color, #475569) !important;
        transition: transform 0.15s ease !important;
    }

    .site-nav-link:hover {
        background: var(--item-bg, #f1f5f9) !important;
        border-color: var(--item-color, #cbd5e1) !important;
        transform: translateY(-1px) !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06) !important;
    }

    .site-nav-link:hover i {
        transform: scale(1.1) !important;
    }

    /* Active Page Icon Pill: shows icon + text label */
    .site-nav-link[aria-current="page"],
    .site-nav-link.site-nav-active {
        width: auto !important;
        min-width: fit-content !important;
        max-width: none !important;
        padding: 0 14px !important;
        gap: 7px !important;
        background: var(--item-bg, #ecfdf5) !important;
        border-color: var(--item-color, #059669) !important;
        color: var(--item-color, #047857) !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    }

    .site-nav-link[aria-current="page"] i,
    .site-nav-link.site-nav-active i {
        color: var(--item-color, #047857) !important;
    }

    .site-nav-link[aria-current="page"] .site-nav-desktop-label,
    .site-nav-link.site-nav-active .site-nav-desktop-label {
        display: inline-flex !important;
        align-items: center !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        color: var(--item-color, #047857) !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }

    /* Non-active item labels are hidden to keep clean icon format */
    .site-nav-link:not([aria-current="page"]):not(.site-nav-active) .site-nav-desktop-label {
        display: none !important;
    }

    .site-nav-mobile-label {
        display: none !important;
    }

    /* "See Full Menu" Button: ALWAYS the last icon in the visible row */
    .site-nav-hamburger,
    #desktopAllPagesBtn {
        flex: 0 0 auto !important;
        margin-left: auto !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        padding: 0 !important;
        border-radius: 10px !important;
        border: 1px solid var(--nav-border, #e2e8f0) !important;
        background: #ffffff !important;
        color: var(--nav-primary, #059669) !important;
        cursor: pointer !important;
        white-space: nowrap !important;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
        transition: all 0.15s ease !important;
    }

    .site-nav-hamburger:hover,
    #desktopAllPagesBtn:hover {
        background: #f8fafc !important;
        border-color: #cbd5e1 !important;
        color: var(--nav-primary, #059669) !important;
        transform: translateY(-1px) !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06) !important;
    }

    .site-nav-hamburger i,
    #desktopAllPagesBtn i {
        font-size: 15px !important;
        color: var(--nav-primary, #059669) !important;
    }

    .site-nav-hamburger .site-nav-desktop-label,
    #desktopAllPagesBtn span,
    #desktopAllPagesBtn .tab-label {
        display: none !important;
    }

    /* Support custom nav pills (#desktopTabNav) */
    #desktopTabNav {
        overflow: hidden !important;
        flex-wrap: nowrap !important;
    }

    #desktopTabNav .tab-pill:not(.nav-priority-hidden):not(.tab-pill-hidden):not(.active-pill) {
        flex: 0 0 auto !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        padding: 0 !important;
        border-radius: 10px !important;
        border: 1px solid var(--nav-border, #e2e8f0) !important;
        background: #ffffff !important;
        color: var(--tab-color, #475569) !important;
        cursor: pointer !important;
        transition: all 0.15s ease !important;
        white-space: nowrap !important;
        position: relative !important;
        box-sizing: border-box !important;
    }
    #desktopTabNav .tab-pill.nav-priority-hidden,
    #desktopTabNav .tab-pill.tab-pill-hidden {
        display: none !important;
    }

    #desktopTabNav .tab-pill i {
        font-size: 15px !important;
        color: var(--tab-color, #475569) !important;
        transition: transform 0.15s ease !important;
    }

    #desktopTabNav .tab-pill:hover {
        background: var(--tab-bg, #f1f5f9) !important;
        border-color: var(--tab-color, #cbd5e1) !important;
        transform: translateY(-1px) !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06) !important;
    }

    #desktopTabNav .tab-pill:hover i {
        transform: scale(1.1) !important;
    }

    #desktopTabNav .tab-pill:not(.active-pill) .tab-label,
    #desktopTabNav .tab-pill:not(.active-pill) span:not(.tab-label) {
        display: none !important;
    }

    #desktopTabNav .tab-pill.active-pill {
        width: auto !important;
        padding: 0 12px !important;
        gap: 6px !important;
        background: var(--tab-bg, #ecfdf5) !important;
        color: var(--tab-color, #047857) !important;
        border-color: var(--tab-color, #059669) !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    }

    #desktopTabNav .tab-pill.active-pill i {
        color: var(--tab-color, #047857) !important;
    }

    #desktopTabNav .tab-pill.active-pill .tab-label {
        display: inline-block !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        color: var(--tab-color, #047857) !important;
    }

    /* Desktop & Tablet Floating Sticky Header */
    header.site-header,
    header.header,
    header.feature-page-header {
        position: sticky !important;
        top: 0 !important;
        z-index: 1000 !important;
        background: rgba(255, 255, 255, 0.94) !important;
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
        border-bottom: 1px solid rgba(226, 232, 240, 0.85) !important;
        box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05) !important;
        transition: background 0.2s ease, box-shadow 0.2s ease !important;
    }

    .site-wide-nav-sticky {
        position: sticky !important;
        top: 0 !important;
        z-index: 999 !important;
        background: rgba(255, 255, 255, 0.94) !important;
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
        box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05) !important;
    }
}

/* ==========================================================================
   MOBILE FLOATING BOTTOM NAVIGATION BAR (< 768px)
   Modern rounded rectangular / pill-shaped container floating above bottom viewport.
   Subtle elevation shadow, safe-area inset preservation, 0 horizontal overflow.
   ========================================================================== */
@media (max-width: 767px) {
    header.site-header,
    header.header {
        background: #ffffff !important;
        border-bottom: 1px solid var(--nav-border) !important;
    }

    body.site-nav-enabled,
    body:has(nav[aria-label="Mobile Navigation"]),
    body:has(.site-floating-bottom-nav) {
        padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px)) !important;
    }

    /* Floating Pill Bottom Navigation Container */
    .site-wide-nav,
    nav[aria-label="Mobile Navigation"],
    .site-floating-bottom-nav {
        position: fixed !important;
        left: 12px !important;
        right: 12px !important;
        bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important;
        top: auto !important;
        inset: auto 12px calc(10px + env(safe-area-inset-bottom, 0px)) 12px !important;
        z-index: 9999 !important;
        display: flex !important;
        width: calc(100% - 24px) !important;
        max-width: 480px !important;
        margin: 0 auto !important;
        height: 60px !important;
        min-height: 60px !important;
        align-items: center !important;
        justify-content: space-around !important;
        gap: 3px !important;
        padding: 5px 8px !important;
        background: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(16px) !important;
        -webkit-backdrop-filter: blur(16px) !important;
        border: 1px solid rgba(226, 232, 240, 0.85) !important;
        border-radius: 26px !important;
        box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.12), 0 4px 6px -2px rgba(15, 23, 42, 0.05) !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Exactly 5 items in the mobile bottom bar */
    .site-nav-link,
    .site-nav-hamburger,
    nav[aria-label="Mobile Navigation"] > button,
    .site-floating-bottom-nav > button {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        max-width: 25% !important;
        height: 48px !important;
        min-height: 48px !important;
        padding: 4px 2px !important;
        border-radius: 18px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 2px !important;
        border: 1px solid transparent !important;
        background: transparent !important;
        box-shadow: none !important;
        transform: none !important;
        color: #64748b !important;
        transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
        text-decoration: none !important;
    }

    .site-nav-link i,
    .site-nav-hamburger i,
    nav[aria-label="Mobile Navigation"] > button i,
    .site-floating-bottom-nav > button i {
        font-size: 17px !important;
        line-height: 1 !important;
        transition: transform 0.18s ease !important;
    }

    .site-nav-link .site-nav-mobile-label,
    .site-nav-hamburger .site-nav-mobile-label,
    nav[aria-label="Mobile Navigation"] > button span,
    .site-floating-bottom-nav > button span {
        display: block !important;
        font-size: 10px !important;
        font-weight: 700 !important;
        line-height: 1.1 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 100% !important;
    }

    .site-nav-desktop-label {
        display: none !important;
    }

    /* Active Highlight on Mobile Floating Bar */
    .site-nav-link[aria-current="page"],
    .site-nav-link.site-nav-active,
    nav[aria-label="Mobile Navigation"] > button.text-brand-600,
    .site-floating-bottom-nav > button.text-brand-600 {
        background: var(--item-bg, #ecfdf5) !important;
        border-color: var(--item-color, rgba(16, 185, 129, 0.25)) !important;
        color: var(--item-color, #047857) !important;
        font-weight: 800 !important;
    }
    .site-nav-link[aria-current="page"] i,
    .site-nav-link.site-nav-active i,
    nav[aria-label="Mobile Navigation"] > button.text-brand-600 i,
    .site-floating-bottom-nav > button.text-brand-600 i {
        color: var(--item-color, #047857) !important;
        transform: scale(1.08) !important;
    }

    /* Floating WhatsApp / Chat buttons positioned comfortably above floating bar */
    .floating-whatsapp,
    .fixed.bottom-20,
    div.fixed.bottom-6.right-6 {
        bottom: calc(84px + env(safe-area-inset-bottom, 0px)) !important;
        right: 16px !important;
        width: 48px !important;
        height: 48px !important;
        font-size: 20px !important;
        z-index: 40 !important;
    }

    .toast,
    .toast-container,
    #toastContainer {
        bottom: calc(84px + env(safe-area-inset-bottom, 0px)) !important;
        max-width: calc(100% - 32px) !important;
    }
}

@media (min-width: 1024px) {
    .site-nav-mobile-label {
        display: none !important;
    }
}

/* ==========================================================================
   Slide-out Drawer Menu (Accessible from any screen size)
   ========================================================================== */
.site-mobile-drawer-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(2px);
    display: none;
    align-items: stretch;
    justify-content: flex-start;
    animation: drawerFadeIn 0.2s ease forwards;
}

.site-mobile-drawer-overlay.is-open {
    display: flex;
}

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

.site-mobile-drawer {
    width: min(340px, 86vw);
    height: 100%;
    background: #ffffff;
    border-right: 1px solid var(--nav-border);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 4px 0 25px rgba(0, 0, 0, 0.15);
    animation: drawerSlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes drawerSlideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

.drawer-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--nav-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
}

.drawer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #0f172a;
    text-decoration: none;
}

.drawer-brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #059669;
    color: #ffffff;
    display: grid;
    place-items: center;
    font-size: 1.1rem;
}

.drawer-brand strong {
    font-size: 1.05rem;
    display: block;
    line-height: 1.2;
}

.drawer-brand small {
    font-size: 10px;
    color: #64748b;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.drawer-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--nav-border);
    background: #ffffff;
    color: #475569;
    display: grid;
    place-items: center;
    cursor: pointer;
    font-size: 15px;
    transition: all .15s ease;
}

.drawer-close-btn:hover {
    color: #0f172a;
    background: #f1f5f9;
}

.drawer-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}

.drawer-group-title {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    margin-bottom: 6px;
    padding-left: 6px;
}

.drawer-links-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.drawer-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    text-decoration: none;
    color: #1e293b;
    font-size: 13.5px;
    font-weight: 600;
    transition: all .15s ease;
    border: 1px solid transparent;
}

.drawer-nav-item:hover {
    background: var(--item-bg, #f1f5f9);
    border-color: var(--nav-border);
}

.drawer-nav-item[aria-current="page"] {
    background: var(--item-bg, #ecfdf5);
    border-color: var(--item-color, #059669);
    color: var(--item-color, #047857);
    font-weight: 700;
}

.drawer-item-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-size: 14px;
    background: var(--item-bg, #f1f5f9);
    color: var(--item-color, #059669);
    flex-shrink: 0;
}

.drawer-footer {
    padding: 14px 16px;
    border-top: 1px solid var(--nav-border);
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: #64748b;
}

/* Light Green Oval Verified Badge (Requirement 7) */
.verified-oval-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    background-color: #d1fae5 !important;
    border: 1px solid #6ee7b7 !important;
    border-radius: 9999px !important;
    padding: 2px 7px !important;
    color: #065f46 !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    vertical-align: middle !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
}
.verified-oval-badge i {
    color: #047857 !important;
    font-size: 9px !important;
    font-weight: 900 !important;
}



/* ==========================================================================
   Universal User Profile Avatar, Session Indicator & Logout Component
   Appears seamlessly on desktop header, mobile drawer and mobile bottom bar
   ========================================================================== */

header, .site-header, .header-inner, .top-nav-bar, .header-actions {
    overflow: visible !important;
}

.site-user-auth-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 4px;
}

.site-user-auth-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px 4px 4px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.site-user-auth-chip:hover {
    border-color: #059669;
    background: #f8fafc;
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.12);
}

.user-chip-avatar-wrap {
    position: relative;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.user-chip-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-cover: cover;
    background: #e2e8f0;
    border: 1.5px solid #059669;
    display: block;
}

.user-chip-status-dot {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #10b981;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.user-chip-info {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.15;
}

.user-chip-name {
    font-size: 11.5px;
    font-weight: 700;
    color: #0f172a;
    max-width: 105px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-chip-role {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 1px 4px;
    border-radius: 4px;
    display: inline-block;
    width: fit-content;
    margin-top: 1px;
}

.user-chip-arrow {
    font-size: 9px;
    color: #94a3b8;
    margin-right: 2px;
    transition: transform 0.2s ease;
}

.site-user-auth-wrap.is-open .user-chip-arrow {
    transform: rotate(180deg);
}

/* Profile Popover Dropdown */
.site-user-popover {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 270px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    padding: 14px;
    display: none;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
    animation: siteNavPopoverFade 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-user-popover.is-active {
    display: flex;
}

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

.popover-user-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}

.popover-avatar-wrap {
    position: relative;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.popover-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #059669;
    background: #f1f5f9;
}

.popover-meta {
    flex: 1;
    min-width: 0;
}

.popover-name {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.popover-email {
    font-size: 11px;
    color: #64748b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.popover-role {
    display: inline-block;
    margin-top: 3px;
}

.popover-dashboard-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 8px 12px;
    background: #059669;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.15s ease;
}

.popover-dashboard-btn:hover {
    background: #047857;
}

.popover-links {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-top: 4px;
    border-top: 1px solid #f1f5f9;
}

.popover-link-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 8px;
    color: #334155;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
}

.popover-link-item i {
    width: 16px;
    color: #64748b;
    font-size: 12px;
}

.popover-link-item:hover {
    background: #f8fafc;
    color: #059669;
}

.popover-link-item:hover i {
    color: #059669;
}

/* Distinct Logout Button */
.popover-logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 9px 12px;
    background: #fff1f2;
    border: 1px solid #fecdd3;
    border-radius: 10px;
    color: #e11d48;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    margin-top: 2px;
}

.popover-logout-btn:hover {
    background: #e11d48;
    color: #ffffff;
    border-color: #e11d48;
}

/* Guest Login Button on Header */
.site-guest-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 9999px;
    color: #047857;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.15s ease;
}

.site-guest-login-btn:hover {
    background: #059669;
    color: #ffffff;
    border-color: #059669;
}

.guest-avatar-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #d1fae5;
    color: #059669;
    display: grid;
    place-items: center;
    font-size: 11px;
}

.site-guest-login-btn:hover .guest-avatar-icon {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* Role Badge Color Palette */
.badge-customer {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}
.badge-vendor {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
}
.badge-expert {
    background: #ffe4e6;
    color: #be123c;
    border: 1px solid #fecdd3;
}
.badge-admin {
    background: #e0e7ff;
    color: #4338ca;
    border: 1px solid #c7d2fe;
}
.badge-super_admin {
    background: #f3e8ff;
    color: #7e22ce;
    border: 1px solid #e9d5ff;
}

/* Mobile Drawer Auth Header Styles */
.drawer-auth-section {
    padding: 14px 16px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.drawer-user-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.drawer-user-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.drawer-user-avatar-wrap {
    position: relative;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.drawer-user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #059669;
    background: #e2e8f0;
}

.drawer-user-details {
    flex: 1;
    min-width: 0;
}

.drawer-user-name {
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.drawer-user-handle {
    font-size: 11px;
    color: #64748b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.drawer-user-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.drawer-dashboard-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 10px;
    background: #059669;
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
}

.drawer-logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 10px;
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #e11d48;
    font-size: 11.5px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.drawer-logout-btn:hover {
    background: #e11d48;
    color: #ffffff;
}

.drawer-guest-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.drawer-guest-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.drawer-guest-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #d1fae5;
    color: #059669;
    display: grid;
    place-items: center;
    font-size: 16px;
    flex-shrink: 0;
}

.drawer-guest-title {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
}

.drawer-guest-sub {
    font-size: 11px;
    color: #64748b;
}

.drawer-guest-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 12px;
    background: #059669;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
}

@media (max-width: 639px) {
    .site-user-auth-chip .user-chip-info {
        display: none !important;
    }
    .site-user-auth-chip {
        padding: 2px !important;
    }
    .user-chip-arrow {
        display: none !important;
    }
}


/* ==========================================================================
   Universal Profile Picture Edit & Camera Badges
   ========================================================================== */
.popover-avatar-wrap {
    position: relative;
    cursor: pointer;
}
.popover-avatar-edit-overlay {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.popover-avatar-wrap:hover .popover-avatar-edit-overlay {
    opacity: 1;
}

.popover-avatar-action-row {
    margin: -4px 0 10px 0;
}
.popover-change-avatar-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 7px 10px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #334155;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}
.popover-change-avatar-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
    border-color: #cbd5e1;
}

.drawer-avatar-edit-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #059669;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    border: 1.5px solid #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* ==========================================================================
   Site Universal Toast
   ========================================================================== */
.site-universal-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(30px);
    background: #0f172a;
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 9999px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 100000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}
.site-universal-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}
@media (max-width: 767px) {
    .site-universal-toast {
        bottom: calc(70px + env(safe-area-inset-bottom, 0px));
        max-width: calc(100vw - 32px);
        font-size: 12px;
    }
}

/* ==========================================================================
   Global Settings & Language Modal
   ========================================================================== */
.site-settings-overlay {
    position: fixed;
    inset: 0;
    z-index: 100001;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: settingsFadeIn 0.2s ease-out;
}
.site-settings-overlay.is-open {
    display: flex;
}

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

.site-settings-dialog {
    background: #ffffff;
    border-radius: 18px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.2);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: settingsScaleUp 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes settingsScaleUp {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.site-settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
}
.site-settings-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #ecfdf5;
    color: #059669;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
}
.site-settings-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
    margin: 0;
}
.site-settings-sub {
    font-size: 11px;
    color: #64748b;
    margin: 0;
}
.site-settings-close-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}
.site-settings-close-btn:hover {
    background: #fee2e2;
    color: #ef4444;
    border-color: #fca5a5;
}

.site-settings-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.site-settings-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.site-settings-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
}
.site-settings-hint {
    font-size: 11px;
    color: #64748b;
    margin: 0;
}

.site-lang-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 6px;
}
.site-lang-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    cursor: pointer;
    position: relative;
    text-align: left;
    transition: all 0.15s ease;
}
.site-lang-card:hover {
    border-color: #a7f3d0;
    background: #f0fdf4;
}
.site-lang-card.is-active {
    border-color: #059669;
    background: #ecfdf5;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.15);
}
.site-lang-flag {
    font-size: 22px;
    line-height: 1;
}
.site-lang-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.site-lang-text strong {
    font-size: 13.5px;
    color: #0f172a;
    font-weight: 700;
}
.site-lang-text small {
    font-size: 10.5px;
    color: #64748b;
}
.site-lang-check {
    font-size: 15px;
    color: #059669;
    opacity: 0;
    transition: opacity 0.15s ease;
}
.site-lang-card.is-active .site-lang-check {
    opacity: 1;
}

.site-settings-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 14px 20px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
}
.site-settings-done-btn {
    padding: 8px 18px;
    border-radius: 9px;
    background: #059669;
    color: #ffffff;
    font-size: 12.5px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: background 0.15s ease;
}
.site-settings-done-btn:hover {
    background: #047857;
}

/* Quick Settings Button inside Drawer */
.drawer-quick-settings-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.15s ease;
}
.drawer-quick-settings-btn:hover {
    background: #e2e8f0;
    color: #059669;
}

.drawer-settings-bottom-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: all 0.15s ease;
}
.drawer-settings-bottom-btn:hover {
    background: #ecfdf5;
    color: #059669;
    border-color: #6ee7b7;
}


/* Live Chat Drawer Overflow Prevention when closed */
#chatDrawer.translate-x-full {
    visibility: hidden !important;
    pointer-events: none !important;
}

/* User Auth Widget Bounding */
.site-user-auth-mount,
.site-user-auth-wrap {
    max-width: 100% !important;
}

@media (max-width: 480px) {
    header .site-user-auth-mount {
        display: none !important;
    }
}
