:root {
    --sidebar-width: 260px;
    --sidebar-width-mini: 76px;
    --topbar-height: 64px;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(0, 0, 0, 0.05);
    --color-primary: #2563eb;
    --color-primary-light: #eff6ff;
    --color-text-main: #0f172a;
    --color-text-secondary: #475569;
    --color-text-muted: #94a3b8;
    --color-border: #e2e8f0;
    --shadow-premium: 0 10px 40px rgba(0, 0, 0, 0.05);
}

/* GLOBAL PROFESSIONAL COMPONENTS */
/* BOOTSTRAP MODAL & OFFCANVAS Z-INDEX OVERRIDE */
.modal-backdrop, .offcanvas-backdrop {
    z-index: 10005 !important;
}
.modal, .offcanvas {
    z-index: 10010 !important;
}
.dr-avatar-circle {
    border-radius: 50% !important;
    object-fit: cover !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #eff6ff; /* Light clinical blue for fallback */
    color: #2563eb;
    aspect-ratio: 1 / 1 !important;
    flex-shrink: 0 !important;
}

.dr-avatar-circle img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.dr-verified-icon {
    color: var(--color-primary) !important; /* Standard Clinical Blue */
    margin-left: 6px;
    font-size: 0.95rem;
    vertical-align: middle;
}

* {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    overflow-y: auto;
}

body {
    background-color: #ffffff !important;
    font-family: 'Inter', sans-serif !important;
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: visible !important;
}

/* GLOBAL LAYOUT WRAPPER */
.layout-yt {
    display: flex;
    min-height: 100vh;
    overflow: visible;
}

/* TOP BAR - FIXED GLASSMORPHISM */
.top-bar-yt {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--topbar-height);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 2000;
    display: flex;
    align-items: center;
    padding: 0 24px;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 200px;
}

#sidebar-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid transparent;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-text-main);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.1rem;
}

#sidebar-toggle:hover {
    background: #fff;
    color: var(--color-primary) !important;
    border-color: #dbeafe;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
}

#sidebar-toggle:hover i {
    transform: rotate(-90deg) scale(1.1);
    color: var(--color-primary) !important;
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
}

.logo-circle-yt {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 8px 20px -5px rgba(37, 99, 235, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-text-yt {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--color-text-main);
    letter-spacing: -0.8px;
    line-height: 1;
}

.header-center {
    flex: 1;
    display: flex;
    justify-content: center;
    max-width: 720px;
    padding: 0 32px;
}

.premium-search-container {
    display: flex;
    width: 100%;
    max-width: 600px;
    height: 40px;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 40px;
    overflow: hidden;
    transition: 0.2s;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.premium-search-container:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 1px var(--color-primary), 0 4px 12px rgba(0, 0, 0, 0.05);
}

.search-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    position: relative;
    padding-right: 48px;
}

.yt-premium-input {
    width: 100%;
    height: 100%;
    padding: 0 16px;
    border: none;
    background: transparent;
    font-size: 15px;
    font-weight: 500;
    outline: none;
    color: var(--color-text-main);
}

.search-hint {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    pointer-events: none;
}

.yt-search-btn-premium {
    width: 64px;
    height: 100%;
    background: #ffffff;
    border: none;
    border-left: 1px solid #d1d5db;
    color: #4b5563;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.yt-search-btn-premium:hover {
    background: #f3f4f6;
    color: var(--color-primary);
}

.search-bar-wrapper-yt {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 640px;
    position: relative;
}

.yt-voice-btn-premium {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1px solid #d1d5db;
    background: #f8fafc;
    color: #4b5563;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.05rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.yt-voice-btn-premium:hover {
    background: #eff6ff;
    color: #2563eb;
    border-color: #93c5fd;
    transform: scale(1.06);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.yt-voice-btn-premium.active,
.yt-voice-btn-premium.listening,
.yt-voice-btn-premium.is-listening {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    color: #ffffff !important;
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.25), 0 4px 14px rgba(239, 68, 68, 0.35) !important;
    animation: pulse-voice-btn 1.4s infinite;
}

@keyframes pulse-voice-btn {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    70% { transform: scale(1.08); box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* ── Desktop Inline Voice Flyout (Solution 1: Mac Spotlight / Raycast) ── */
.desktop-voice-flyout {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 50px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1.5px solid #bfdbfe;
    border-radius: 18px;
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
    padding: 10px 16px;
    z-index: 9999;
    animation: desktopFlyoutDrop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.desktop-voice-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.desktop-voice-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.84rem;
    font-weight: 750;
    color: #1e40af;
    white-space: nowrap;
}

.desktop-voice-waves {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 22px;
}

.desktop-voice-lang-wrapper {
    position: relative;
}

.desktop-voice-lang-btn {
    font-size: 0.74rem;
    font-weight: 750;
    color: #2563eb;
    background: #ffffff;
    border: 1px solid #bfdbfe;
    padding: 4px 10px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.08);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.desktop-voice-lang-btn:hover {
    background: #eff6ff;
    border-color: #93c5fd;
}

.desktop-voice-lang-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 10001;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
    padding: 6px;
    min-width: 170px;
    max-height: 230px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 3px;
    animation: langMenuDrop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.desktop-lang-opt {
    display: flex;
    align-items: center;
    padding: 7px 10px;
    border-radius: 8px;
    border: none;
    background: transparent;
    font-size: 0.78rem;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
    text-align: left;
    width: 100%;
    transition: all 0.15s;
}

.desktop-lang-opt:hover, .desktop-lang-opt.active {
    background: #eff6ff;
    color: #1d4ed8;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 200px;
    justify-content: flex-end;
}

.quick-actions-yt {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-lang-form {
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    vertical-align: middle !important;
}

select.nav-lang-select,
.nav-lang-form select,
.nav-lang-select {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    font-size: 0.75rem !important;
    font-weight: 750 !important;
    letter-spacing: 0.02em !important;
    color: #334155 !important;
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    line-height: 30px !important;
    padding: 0 24px 0 10px !important;
    border-radius: 9px !important;
    border: 1.5px solid #e2e8f0 !important;
    background-color: #f8fafc !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 8px center !important;
    background-size: 11px 11px !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
    cursor: pointer !important;
    width: auto !important;
    min-width: 58px !important;
    box-sizing: border-box !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    vertical-align: middle !important;
}

select.nav-lang-select:hover,
.nav-lang-form select:hover,
.nav-lang-select:hover {
    border-color: #3b82f6 !important;
    background-color: #ffffff !important;
    color: #1d4ed8 !important;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.12) !important;
}

select.nav-lang-select:focus,
.nav-lang-form select:focus,
.nav-lang-select:focus {
    border-color: #2563eb !important;
    background-color: #ffffff !important;
    color: #1e40af !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18) !important;
    outline: none !important;
}

/* RTL Support for Language Switcher */
[dir="rtl"] select.nav-lang-select,
[dir="rtl"] .nav-lang-form select,
[dir="rtl"] .nav-lang-select {
    padding: 0 10px 0 24px !important;
    background-position: left 8px center !important;
    text-align: right !important;
}

.premium-btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid transparent;
    background: transparent;
    color: #374151;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    font-size: 1.2rem;
}

.premium-btn-icon i {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.premium-btn-icon:hover {
    background: #fff;
    color: var(--color-primary) !important;
    border-color: #dbeafe;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
}

.premium-btn-icon:hover i {
    transform: scale(1.15) rotate(8deg);
    color: var(--color-primary) !important;
}

.pulse-red {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid #fff;
}

.user-profile-premium {
    margin-left: 8px;
    cursor: pointer;
}

.nav-user-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--color-primary);
}

.user-avatar-stack {
    position: relative;
    display: flex;
}

.user-status-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background: #10b981;
    border: 2px solid #fff;
    border-radius: 50%;
    z-index: 10;
}

.user-status-dot.pulse {
    animation: status-pulse 2s infinite;
}

@keyframes status-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.v-divider {
    width: 1px;
    height: 24px;
    background: #e5e7eb;
    margin: 0 12px;
}

/* SIDEBAR - YT GLASSMORPHISM */
.sidebar-yt {
    position: fixed;
    top: var(--topbar-height);
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--glass-border);
    z-index: 10000;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.sidebar-header-mobile {
    display: none;
    /* Hidden on desktop */
}

/* Suppress transitions on load to prevent flickering */
.layout-init .sidebar-yt,
.layout-init .main-content-yt {
    transition: none !important;
}

.sidebar-yt {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    overflow-y: hidden;
    overflow-x: hidden;
}

.sidebar-yt::-webkit-scrollbar {
    display: none !important;
    width: 0px !important;
    background: transparent !important;
}

.sidebar-yt:hover::-webkit-scrollbar {
    display: none !important;
    width: 0px !important;
}

.sidebar-yt::-webkit-scrollbar-thumb {
    display: none !important;
}

@media (min-width: 769px) {
    .layout-collapsed .sidebar-yt {
        width: var(--sidebar-width-mini);
    }
}

.nav-links-yt {
    padding: 1rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-link-yt {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: 1.5px solid transparent;
    color: var(--color-text-main);
    text-decoration: none !important;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 48px;
    white-space: nowrap;
}

/* Normalize button elements used as nav links */
button.nav-link-yt {
    background: none;
    border-color: transparent;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 0.9rem;
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
}

.nav-link-yt.active {
    background: var(--color-primary);
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
    border-color: var(--color-primary);
}

.nav-link-yt:hover {
    background: rgba(255, 255, 255, 0.8) !important;
    color: #0f172a !important;
    border-color: rgba(0,0,0,0.05) !important;
    transform: translateX(5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.02);
}

.nav-link-yt:hover .nav-icon-yt,
.nav-link-yt:hover .nav-icon-yt i,
.nav-link-yt:hover .nav-text-yt {
    color: var(--color-primary) !important;
}

.nav-link-yt:hover .nav-icon-yt {
    transform: scale(1.1) rotate(5deg);
}

/* MINI NAV ADJUSTMENTS - Pixel Perfect YouTube Style */
@media (min-width: 769px) {
    .layout-collapsed .nav-link-yt {
        flex-direction: column;
        height: 56px;
        padding: 0;
        gap: 0;
        justify-content: center;
        margin: 4px 8px;
        border-radius: 12px;
        text-align: center;
        border: 1.5px solid transparent;
        overflow: hidden;
        position: relative;
    }

    .layout-collapsed .nav-link-yt:hover {
        background: #fff;
        color: var(--color-primary) !important;
        border-color: #dbeafe !important;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
    }

    .layout-collapsed .nav-link-yt:hover i {
        transform: scale(1.15) rotate(5deg);
        color: var(--color-primary) !important;
    }

    .layout-collapsed .nav-link-yt.active {
        background: transparent !important;
        color: var(--color-primary) !important;
        box-shadow: none !important;
    }
}

.nav-icon-yt {
    width: 24px;
    font-size: 1.25rem;
    margin-inline-end: 1.25rem;
    display: flex;
    justify-content: center;
    transition: 0.2s;
    color: var(--color-text-main);
}

.nav-link-yt.active .nav-icon-yt {
    color: inherit;
}

@media (min-width: 769px) {
    .layout-collapsed .nav-icon-yt {
        margin-inline-end: 0;
        margin-bottom: 2px;
        font-size: 1.4rem;
        width: auto;
    }

    .layout-collapsed .nav-text-yt {
        display: none !important;
    }
}

.nav-text-yt {
    font-weight: 600;
    transition: 0.2s;
}

@media (max-width: 768px) {
    .sidebar-open .nav-text-yt {
        display: block !important;
    }
}

@media (min-width: 769px) {

    .layout-collapsed .yt-section-divider,
    .layout-collapsed .sidebar-label {
        display: none;
    }

    .layout-collapsed .sidebar-yt::-webkit-scrollbar {
        display: none !important;
        width: 0px !important;
    }

    .layout-collapsed .sidebar-yt:hover::-webkit-scrollbar {
        display: none !important;
        width: 0px !important;
    }
}

@media (max-width: 768px) {

    .sidebar-open .yt-section-divider,
    .sidebar-open .sidebar-label {
        display: block !important;
    }
}

.yt-section-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.05);
    margin: 12px 1rem;
}

@media (min-width: 769px) {
    .sidebar-label {
        padding: 0.5rem 1.5rem;
        font-size: 0.7rem;
        font-weight: 800;
        color: var(--color-text-muted);
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    .layout-collapsed .sidebar-label {
        display: none;
    }
}

@media (min-width: 769px) {
    .main-content-yt {
        width: calc(100% - var(--sidebar-width));
        margin-left: var(--sidebar-width);
        padding-top: var(--topbar-height);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        min-height: auto;
        position: relative;
        overflow: visible;
    }

    html.layout-collapsed .main-content-yt,
    .layout-collapsed .main-content-yt {
        margin-left: var(--sidebar-width-mini);
        width: calc(100% - var(--sidebar-width-mini));
    }
}

/* Prevent layout jump and transition animations on initial page load */
.layout-init,
.layout-init *,
.layout-init .main-content-yt,
.layout-init .sidebar-yt {
    transition: none !important;
}

@media (max-width: 768px) {
    .main-content-yt {
        width: 100%;
        margin-left: 0;
        padding-top: var(--topbar-height);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        min-height: auto;
        position: relative;
        overflow: visible;
    }
}

.page-container-yt {
    padding: 0 2rem 2rem 2rem;
    max-width: 1600px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .page-container-yt {
        padding: 0 1rem 1rem 1rem;
    }
}



/* GLOBAL FOOTER PARITY */
.app-global-footer {
    background: #fff;
    border-top: 1px solid #e2e8f0;
    padding: 4rem 2rem 2rem;
    margin-top: 4rem;
}

.footer-bottom {
    border-top: 1px solid #ffffff;
    padding-top: 2rem;
    text-align: center;
    margin-top: 3rem;
}

/* UTILS HOOKS */
.v-divider {
    width: 1px;
    height: 32px;
    background: #e2e8f0;
}

/* Responsive fixes */
@media (max-width: 1024px) {
    .header-center {
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .header-center {
        display: none;
    }

    .main-content-yt {
        margin-left: 0;
        width: 100%;
        padding-bottom: 120px !important;
        /* Space for bottom nav */
    }

    .sidebar-yt {
        top: 0;
        /* Full height on mobile */
        transform: translateX(-100%);
        box-shadow: none;
    }

    .sidebar-header-mobile {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 24px 20px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        background: #fff;
    }

    .sidebar-close-btn {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        border: none;
        background: #f8fafc;
        color: #64748b;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.1rem;
        cursor: pointer;
    }

    .sidebar-open .sidebar-yt {
        transform: translateX(0) !important;
        width: 300px;
        box-shadow: 24px 0 80px rgba(0, 0, 0, 0.2);
        background: #ffffff !important;
        z-index: 10000 !important;
    }

    #sidebar-toggle {
        display: none !important;
        /* Hide burger in header on mobile */
    }

    .sidebar-open .nav-link-yt {
        padding: 0.8rem 1.5rem;
        height: 52px;
        font-size: 0.95rem;
        font-weight: 700;
    }

    .sidebar-open .nav-icon-yt {
        font-size: 1.3rem;
        margin-inline-end: 1.25rem;
    }

    .sidebar-open .main-content-yt {
        margin-left: 0;
    }

    /* Header Mobile Refinement */
    .top-bar-yt {
        padding: 0 12px;
        height: 56px;
    }

    .top-bar-inner {
        gap: 8px;
    }

    .header-left {
        min-width: auto;
        display: flex;
        align-items: center;
        gap: 8px;
        margin-inline-end: auto;
        flex-shrink: 0;
    }

    .logo-circle-yt {
        width: 34px;
        height: 34px;
        border-radius: 10px;
        font-size: 1rem;
    }

    .brand-text-yt {
        display: inline-block !important;
        font-size: 1.15rem;
        font-weight: 800;
        letter-spacing: -0.5px;
        color: var(--color-text-main, #0f172a);
    }

    .header-right {
        min-width: auto;
        display: flex;
        align-items: center;
        gap: 4px;
        flex-shrink: 0;
        justify-content: flex-end;
    }

    .quick-actions-yt {
        display: flex;
        align-items: center;
        gap: 3px !important;
    }

    .nav-lang-form {
        margin: 0;
        display: inline-flex;
        align-items: center;
        flex-shrink: 0;
        margin-inline-end: 2px;
    }

    select.nav-lang-select,
    .nav-lang-form select,
    .nav-lang-select {
        font-size: 0.72rem !important;
        font-weight: 750 !important;
        height: 28px !important;
        min-height: 28px !important;
        max-height: 28px !important;
        line-height: 26px !important;
        padding: 0 18px 0 7px !important;
        border-radius: 8px !important;
        border: 1.5px solid #e2e8f0 !important;
        width: auto !important;
        min-width: 48px !important;
        max-width: 56px !important;
        background-color: #f8fafc !important;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") !important;
        background-repeat: no-repeat !important;
        background-position: right 5px center !important;
        background-size: 10px 10px !important;
        cursor: pointer;
        color: #334155 !important;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
        box-sizing: border-box !important;
    }

    [dir="rtl"] select.nav-lang-select,
    [dir="rtl"] .nav-lang-form select,
    [dir="rtl"] .nav-lang-select {
        padding: 0 7px 0 18px !important;
        background-position: left 5px center !important;
        text-align: right !important;
    }

    .premium-btn-icon {
        width: 30px !important;
        height: 30px !important;
        font-size: 0.88rem !important;
        border-radius: 8px !important;
        flex-shrink: 0;
        padding: 0 !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    .premium-btn-icon i {
        font-size: 0.88rem !important;
    }

    .wishlist-btn-yt i {
        color: #e11d48 !important;
    }

    .wishlist-btn-yt:hover i {
        color: #be123c !important;
    }

    .mobile-marketplace-only {
        display: none !important;
    }

    .notification-badge-count {
        min-width: 14px !important;
        height: 14px !important;
        font-size: 0.6rem !important;
        line-height: 14px !important;
        padding: 0 3px !important;
        top: -2px !important;
        right: -2px;
    }

    .v-divider {
        height: 18px;
        margin: 0 2px;
        background-color: #e2e8f0;
    }

    .nav-user-img {
        width: 28px !important;
        height: 28px !important;
    }

    .user-avatar-stack {
        width: 28px !important;
        height: 28px !important;
    }

    .user-status-dot {
        width: 6px !important;
        height: 6px !important;
    }

    /* Un-hide Wishlist (heart icon) alongside orders, cart, notif on mobile */
    .premium-btn-icon:not(.sidebar-toggle):not(#notif-bell):not(.cart-btn-yt):not(.orders-btn-yt):not(.wishlist-btn-yt) {
        display: none !important;
    }

    .sidebar-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(15, 23, 42, 0.5);
        backdrop-filter: blur(2px);
        z-index: 1500;
        animation: fadeIn 0.3s ease;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* --- MOBILE BOTTOM NAV --- */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 3000;
    justify-content: space-around;
    align-items: center;
    padding: 0 10px;
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
    }
}

.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #64748b;
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 700;
    gap: 4px;
    width: 20%;
    transition: all 0.2s;
}

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

.mobile-bottom-nav .nav-item.active {
    color: var(--color-primary);
}

.mobile-bottom-nav .nav-item-center {
    width: 20%;
    display: flex;
    justify-content: center;
    position: relative;
    top: -15px;
}

.mobile-bottom-nav .center-icon {
    width: 48px;
    height: 48px;
    background: var(--color-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
    border: 3px solid #fff;
    transition: all 0.2s;
}

.mobile-bottom-nav .nav-item-center:active .center-icon {
    transform: scale(0.9);
}

/* ════════════════════════════════════════════════════════════════
   MOBILE CLINICAL SEARCH OVERLAY & BOTTOM SHEET (Apple / Doctolib UX)
   ════════════════════════════════════════════════════════════════ */
.mobile-search-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: none;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-search-overlay.active {
    opacity: 1;
}

.mobile-search-sheet {
    width: 100%;
    max-width: 600px;
    background: #ffffff;
    border-radius: 28px 28px 0 0;
    padding: 16px 20px 28px;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 90vh;
    overflow-y: auto;
    scrollbar-width: none;
}
.mobile-search-sheet::-webkit-scrollbar {
    display: none;
}

.mobile-search-overlay.active .mobile-search-sheet {
    transform: translateY(0);
}

.mobile-sheet-drag-handle {
    width: 40px;
    height: 4px;
    background: #e2e8f0;
    border-radius: 9999px;
    margin: 0 auto 14px;
}

.mobile-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.mobile-sheet-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-sheet-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.mobile-sheet-title-wrap h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    line-height: 1.25;
}

.mobile-sheet-title-wrap p {
    font-size: 0.78rem;
    color: #64748b;
    margin: 0;
    font-weight: 500;
}

.mobile-sheet-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
}
.mobile-sheet-close-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.mobile-sheet-search-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.mobile-sheet-input-box {
    position: relative;
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 16px;
    padding: 6px 10px 6px 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.mobile-sheet-input-box:focus-within {
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.mobile-input-search-icon {
    color: #94a3b8;
    font-size: 1rem;
    margin-right: 10px;
}

.mobile-sheet-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f172a;
    outline: none;
    padding: 6px 0;
}
.mobile-sheet-input::placeholder {
    color: #94a3b8;
    font-weight: 500;
}

.mobile-sheet-mic-btn {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    transition: transform 0.2s;
    flex-shrink: 0;
}
.mobile-sheet-mic-btn:active {
    transform: scale(0.92);
}

.mobile-mic-pulse {
    position: absolute;
    inset: -3px;
    border-radius: 14px;
    border: 2px solid rgba(37, 99, 235, 0.5);
    animation: micPulseRing 2s infinite;
    pointer-events: none;
}
@keyframes micPulseRing {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.15); opacity: 0; }
    100% { transform: scale(1); opacity: 0; }
}

.mobile-sheet-submit-btn {
    width: 100%;
    padding: 12px;
    border-radius: 14px;
    border: none;
    background: #0f172a;
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 750;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.15);
    transition: background 0.2s, transform 0.2s;
}
.mobile-sheet-submit-btn:hover {
    background: #1e293b;
}
.mobile-sheet-submit-btn:active {
    transform: scale(0.98);
}

/* Inline Voice Panel inside Mobile Sheet (Solution 1) */
.mobile-sheet-voice-panel {
    display: none;
    background: linear-gradient(135deg, #f0fdf4 0%, #eff6ff 100%);
    border: 1.5px solid #bfdbfe;
    border-radius: 18px;
    padding: 14px 18px;
    margin-bottom: 14px;
    animation: voicePanelSlide 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-sheet-voice-panel.active {
    display: block;
}

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

.voice-panel-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.voice-live-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 800;
    color: #1e40af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.voice-live-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #ef4444;
    animation: liveDotPulse 1.4s infinite;
}
@keyframes liveDotPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.6; }
}

/* Language Picker Dropdown in Inline Voice Panel */
.voice-lang-picker-wrapper {
    position: relative;
    z-index: 10;
}

.voice-lang-pill-btn {
    font-size: 0.74rem;
    font-weight: 750;
    color: #2563eb;
    background: #ffffff;
    border: 1px solid #bfdbfe;
    padding: 3px 10px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.08);
    transition: all 0.2s ease;
}
.voice-lang-pill-btn:hover, .voice-lang-pill-btn:active {
    background: #eff6ff;
    border-color: #93c5fd;
    transform: translateY(-1px);
}

.voice-lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 100000;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
    padding: 6px;
    min-width: 170px;
    max-height: 230px;
    overflow-y: auto;
    display: none;
    flex-direction: column;
    gap: 3px;
    animation: langMenuDrop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes langMenuDrop {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.voice-lang-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 7px 10px;
    border-radius: 8px;
    border: none;
    background: transparent;
    font-size: 0.78rem;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
    text-align: left;
    width: 100%;
    transition: all 0.15s;
}
.voice-lang-item:hover, .voice-lang-item.active {
    background: #eff6ff;
    color: #1d4ed8;
}
.voice-lang-item.active {
    font-weight: 800;
}

/* Sound Wave Bars */
.voice-wave-bars {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 32px;
    margin: 8px 0;
}

.wave-bar {
    width: 4px;
    height: 8px;
    background: #2563eb;
    border-radius: 9999px;
    animation: waveBounce 1.2s ease-in-out infinite alternate;
}
.wave-bar:nth-child(1) { animation-delay: 0.1s; height: 12px; }
.wave-bar:nth-child(2) { animation-delay: 0.25s; height: 22px; background: #3b82f6; }
.wave-bar:nth-child(3) { animation-delay: 0.4s; height: 28px; background: #1d4ed8; }
.wave-bar:nth-child(4) { animation-delay: 0.15s; height: 18px; background: #3b82f6; }
.wave-bar:nth-child(5) { animation-delay: 0.3s; height: 10px; }

@keyframes waveBounce {
    0% { transform: scaleY(0.4); }
    100% { transform: scaleY(1.4); }
}

.voice-panel-hint {
    font-size: 0.78rem;
    color: #64748b;
    text-align: center;
    margin: 0;
    font-weight: 500;
}

/* Mic button active listening state */
.mobile-sheet-mic-btn.is-listening {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.45) !important;
}
.mobile-sheet-mic-btn.is-listening .mobile-mic-pulse {
    border-color: rgba(239, 68, 68, 0.6) !important;
}

/* Quick Categories */
.mobile-quick-categories {
    border-top: 1px solid #f1f5f9;
    padding-top: 14px;
}

.quick-cat-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.74rem;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

.quick-cat-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.quick-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 9999px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-size: 0.78rem;
    font-weight: 700;
    color: #334155;
    text-decoration: none;
    transition: all 0.2s;
}
.quick-chip:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #0f172a;
    transform: translateY(-1px);
}

/* GLOBAL FOOTER STYLES */
.app-global-footer {
    background: #fff;
    border-top: 1px solid var(--color-border);
    padding: 5rem 2rem 2rem;
    margin-top: 4rem;
}

.footer-seo-container {
    max-width: 1200px;
    margin: 0 auto;
}

.f-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 4rem;
}

.f-col h5 {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--color-text-main);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.f-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.f-col ul li a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: 0.2s;
}

.f-col ul li a:hover {
    color: var(--color-primary);
    padding-left: 4px;
}

.f-col-brand {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.f-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--color-text-main);
}

.f-brand i {
    color: var(--color-primary);
}

.f-col-brand p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin: 0;
}

.f-socials {
    display: flex;
    gap: 12px;
}

.f-socials a {
    width: 36px;
    height: 36px;
    background: var(--color-bg-body);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
    transition: 0.2s;
    font-size: 0.9rem;
}

.f-socials a:hover {
    background: var(--color-primary);
    color: #fff;
    transform: translateY(-2px);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    font-weight: 600;
}

.footer-bottom a {
    color: var(--color-text-main);
    text-decoration: none;
    margin: 0 4px;
}

@media (max-width: 1024px) {
    .f-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .f-grid {
        grid-template-columns: 1fr;
    }
}

/* AUTH BUTTONS RESPONSIVENESS */
.auth-buttons {
    display: flex;
    gap: 8px;
}

.btn-auth-premium {
    border-radius: 10px;
    font-weight: 700;
    padding: 6px 16px;
    background: #0f172a;
    border: none;
    color: white !important;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    text-decoration: none !important;
}

.btn-auth-premium:hover {
    background: #1e293b;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

@media (max-width: 768px) {
    .auth-buttons {
        gap: 6px;
    }
    .btn-auth-premium {
        padding: 4px 10px;
        font-size: 0.75rem;
        border-radius: 8px;
    }
}

/* --- CREATION HUB BOTTOM SHEET --- */
.creation-hub-sheet {
    background: #fff;
    border-radius: 24px 24px 0 0;
    padding: 24px;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15);
    animation: sheetUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 10005;
}

@keyframes sheetUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.sheet-handle {
    width: 40px;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    margin: -12px auto 20px;
}

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

.sheet-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-text-main);
}

.sheet-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f8fafc;
    border: none;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.creation-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.creation-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 16px;
    text-decoration: none !important;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.creation-option:active {
    background: #f1f5f9;
    transform: scale(0.98);
}

.option-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.option-text {
    display: flex;
    flex-direction: column;
}

.option-text strong {
    color: var(--color-text-main);
    font-size: 1rem;
    font-weight: 700;
}

.option-text span {
    color: var(--color-text-muted);
    font-size: 0.8rem;
}

/* Global Creation Button Visibility */
.desktop-create-btn {
    display: flex !important;
}

@media (max-width: 768px) {
    .header-right .desktop-create-btn {
        display: flex !important;
        margin-right: 0;
    }
    .mobile-bottom-nav {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* Global Cart, Orders & Wishlist Drawer Styles */
.cart-drawer {
    position: fixed;
    top: 0;
    right: -480px;
    width: 100%;
    max-width: 480px;
    height: 100vh;
    height: 100dvh;
    background: #ffffff;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border-radius: 0 !important;
    z-index: 100030 !important;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.cart-drawer.open {
    right: 0;
}

html[dir="rtl"] .cart-drawer {
    right: auto;
    left: -480px;
    border-radius: 0 !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

html[dir="rtl"] .cart-drawer.open {
    left: 0;
    right: auto;
}

.drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 100020 !important;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.4s ease-out, visibility 0.4s ease-out;
}

.drawer-backdrop.active {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

.cart-drawer-header {
    padding: 24px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-drawer-header h3 {
    margin: 0;
    font-weight: 800;
    color: #0f172a;
    font-size: 1.25rem;
}

.close-cart {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f172a;
    border: none;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.close-cart:hover {
    background: #ef4444;
    transform: rotate(90deg) scale(1.1);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.close-cart i {
    font-size: 1.1rem;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cart-item {
    display: flex;
    gap: 12px;
    align-items: center;
    background: #f8fafc;
    padding: 12px;
    border-radius: 12px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-weight: 700;
    color: #1e293b;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.cart-item-price {
    color: #64748b;
    font-weight: 600;
    font-size: 0.9rem;
}

.cart-drawer-footer {
    padding: 20px 24px calc(24px + env(safe-area-inset-bottom));
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-weight: 800;
    font-size: 1.25rem;
    color: #0f172a;
    margin-bottom: 16px;
}

.checkout-btn {
    width: 100%;
    padding: 16px;
    background: #0f172a;
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.checkout-btn:hover {
    background: #1e293b;
    transform: translateY(-2px);
}

/* WISHLIST DRAWER & ITEM STYLES */
.wishlist-item-card {
    display: flex;
    gap: 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 14px;
    border-radius: 14px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.wishlist-item-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.wishlist-item-img-box {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.wishlist-item-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wishlist-item-emoji {
    font-size: 1.8rem;
}

.wishlist-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.wishlist-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
}

.wishlist-item-vendor {
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.wishlist-item-remove-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.2s ease;
    line-height: 1;
}

.wishlist-item-remove-btn:hover {
    color: #ef4444;
    background: #fee2e2;
}

.wishlist-item-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: #0f172a;
    text-decoration: none;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    transition: color 0.15s;
}

.wishlist-item-title:hover {
    color: var(--color-primary);
}

.wishlist-item-pricing {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.wishlist-item-price {
    font-weight: 800;
    font-size: 0.95rem;
    color: #0f172a;
}

.wishlist-item-orig-price {
    font-size: 0.8rem;
    color: #94a3b8;
    text-decoration: line-through;
}

.wishlist-item-actions {
    margin-top: auto;
}

.wishlist-item-cart-btn {
    width: 100%;
    padding: 7px 12px;
    background: #0f172a;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.78rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.wishlist-item-cart-btn:hover {
    background: var(--color-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

.wishlist-item-cart-btn.disabled {
    background: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.drawer-empty-state {
    text-align: center;
    color: #94a3b8;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.drawer-empty-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    color: #cbd5e1;
}

.drawer-empty-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
    margin: 0;
}

/* Detail Page Wishlist Button States */
.wishlist-detail-btn.active {
    border-color: #fecdd3 !important;
    background: #fff1f2 !important;
    color: #e11d48 !important;
}

.wishlist-detail-btn.active i {
    color: #e11d48 !important;
}

@media (max-width: 480px) {
    .cart-drawer {
        width: 100%;
        right: -100%;
    }
    html[dir="rtl"] .cart-drawer {
        right: auto;
        left: -100%;
    }
    html[dir="rtl"] .cart-drawer.open {
        left: 0;
        right: auto;
    }
}

/* ═══════════════════════════════════════════════════
   Extracted from: Views/Shared\_Layout.cshtml
═══════════════════════════════════════════════════ */
.user-profile-dropdown .dropdown-toggle::after { display: none; }
        .user-profile-dropdown .dropdown-menu {
            border-radius: 16px;
            padding: 8px;
            border: 1px solid rgba(0,0,0,0.05);
            box-shadow: 0 10px 40px rgba(0,0,0,0.1);
            margin-top: 10px;
        }
        .user-profile-dropdown .dropdown-item {
            border-radius: 8px;
            padding: 10px 16px;
            font-weight: 600;
            font-size: 0.9rem;
            display: flex;
            align-items: center;
            gap: 10px;
            color: #475569;
        }
        .user-profile-dropdown .dropdown-item:hover {
            background: #ffffff;
            color: #2563eb;
        }
        .user-profile-dropdown .dropdown-item.text-danger:hover {
            background: #fef2f2;
            color: #ef4444;
        }

        /* Standard Modal Container Global */
        .standard-modal-container {
            background: #ffffff;
            width: 100%;
            max-width: 580px;
            max-height: 92vh;
            display: flex;
            flex-direction: column;
            border-radius: 28px;
            box-shadow: 0 40px 100px -20px rgba(15, 23, 42, 0.25);
            overflow: hidden;
            margin: auto;
            animation: modalScaleIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        }

        /* Login Interstitial Styles */
        .interstitial-modal {
            width: 100%;
            max-width: 440px !important;
            background: rgba(255, 255, 255, 0.96) !important;
            backdrop-filter: blur(24px) !important;
            -webkit-backdrop-filter: blur(24px) !important;
            border: 1px solid rgba(255, 255, 255, 0.8) !important;
            border-radius: 28px !important;
            box-shadow: 0 30px 80px -15px rgba(15, 23, 42, 0.3) !important;
            margin: auto !important;
            overflow: hidden;
            animation: modalScaleIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        }
        @keyframes modalScaleIn {
            from {
                opacity: 0;
                transform: scale(0.95);
            }
            to {
                opacity: 1;
                transform: scale(1);
            }
        }
        .interstitial-body {
            text-align: center;
            padding: 40px 30px !important;
        }
        .interstitial-icon-box {
            width: 80px;
            height: 80px;
            background: linear-gradient(135deg, #2563eb, #1e40af);
            color: white;
            border-radius: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2.2rem;
            margin: 0 auto 24px;
            box-shadow: 0 12px 24px rgba(37, 99, 235, 0.2);
        }
        .interstitial-title {
            font-family: 'Outfit', sans-serif;
            font-weight: 800;
            font-size: 1.5rem;
            color: #0f172a;
            margin-bottom: 12px;
        }
        .interstitial-text {
            font-size: 0.95rem;
            color: #64748b;
            line-height: 1.6;
            margin-bottom: 30px;
        }
        .interstitial-actions {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }
        .btn-interstitial-primary {
            background: #0f172a;
            color: white;
            padding: 14px;
            border-radius: 14px;
            font-weight: 700;
            text-decoration: none;
            transition: 0.2s;
        }
        .btn-interstitial-primary:hover {
            background: #000;
            transform: translateY(-2px);
            color: white;
        }
        .btn-interstitial-secondary {
            background: white;
            color: #475569;
            padding: 14px;
            border-radius: 14px;
            font-weight: 700;
            text-decoration: none;
            border: 1px solid #e2e8f0;
            transition: 0.2s;
        }
        .btn-interstitial-secondary:hover {
            background: #f8fafc;
            color: #1e293b;
        }

/* ═══════════════════════════════════════════════════
   Extracted from: Views/Shared\_LayoutPublic.cshtml
═══════════════════════════════════════════════════ */
:root {
            --pulse-bg: #ffffff;
            --pulse-card: #ffffff;
            --pulse-accent: #2563eb;
            --pulse-text: #0f172a;
            --pulse-muted: #64748b;
            --font-main: 'Inter', sans-serif;
        }

        body {
            background-color: var(--pulse-bg) !important;
            color: var(--pulse-text) !important;
            font-family: var(--font-main) !important;
            margin: 0;
            overflow-x: hidden;
        }

        /* Shared Navigation System */
        .landing-nav {
            position: fixed;
            top: 0;
            width: 100%;
            height: 80px;
            z-index: 1000;
            background: rgba(255, 255, 255, 1) !important;
            backdrop-filter: blur(12px) !important;
            border-bottom: 1px solid rgba(0,0,0,0.06) !important;
            display: flex;
            align-items: center;
            transition: all 0.3s ease;
        }
        
        .nav-wrapper { 
            display: flex; 
            align-items: center; 
            justify-content: space-between; 
            max-width: 1440px;
            margin: 0 auto;
            width: 100%;
            padding: 0 40px;
        }

        .nav-brand { text-decoration: none !important; display: flex; align-items: center; gap: 12px; }
        .brand-icon { 
            width: 40px; height: 40px; background: var(--pulse-accent); color: #fff; 
            border-radius: 12px; display: flex; align-items: center; justify-content: center;
            font-size: 1.1rem;
            box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
        }
        .brand-name { font-size: 1.4rem; font-weight: 800; color: var(--pulse-text) !important; letter-spacing: -0.02em; }

        .nav-links-desktop { 
            display: flex; 
            gap: 40px; 
            align-items: center;
        }
        
        .nav-link {
            color: var(--pulse-muted) !important;
            font-weight: 600 !important;
            font-size: 0.95rem !important;
            text-decoration: none !important;
            transition: 0.2s !important;
        }
        .nav-link:hover { color: var(--pulse-accent) !important; }

        .btn-signup {
            background: var(--pulse-accent) !important;
            color: #fff !important;
            padding: 12px 28px !important;
            border-radius: 14px !important;
            font-weight: 700 !important;
            font-size: 0.95rem !important;
            text-decoration: none !important;
            transition: 0.3s !important;
            box-shadow: 0 4px 15px rgba(37, 99, 235, 0.15) !important;
        }
        .btn-signup:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(37, 99, 235, 0.25) !important; }

        .main-content {
            padding-top: 80px !important;
            max-width: 1440px !important;
            margin: 0 auto !important;
            padding-left: 40px !important;
            padding-right: 40px !important;
            padding-bottom: 80px !important;
        }

        @media (max-width: 768px) {
            .main-content {
                padding-left: 20px !important;
                padding-right: 20px !important;
                padding-bottom: 115px !important;
            }
            .nav-links-desktop { display: none; }
        }

/* RTL Specific Styles for Arabic Layout */
html[dir="rtl"] .sidebar-yt {
    left: auto;
    right: 0;
    border-right: none;
    border-left: 1px solid var(--glass-border);
}

@media (min-width: 769px) {
    html[dir="rtl"] .main-content-yt {
        margin-left: 0;
        margin-right: var(--sidebar-width);
    }
    html[dir="rtl"].layout-collapsed .main-content-yt,
    html[dir="rtl"] .layout-collapsed .main-content-yt {
        margin-left: 0;
        margin-right: var(--sidebar-width-mini);
    }
}

@media (max-width: 768px) {
    html[dir="rtl"] .sidebar-yt {
        transform: translateX(100%);
    }
    html[dir="rtl"] .sidebar-open .sidebar-yt {
        transform: translateX(0) !important;
        box-shadow: -24px 0 80px rgba(0, 0, 0, 0.2);
    }
}

/* Ensure modal overlays always cover the sidebar and topbar navigation */
.modal-overlay,
.modal-overlay-premium,
.ccb-modal-overlay {
    z-index: 999999 !important;
}

#loginInterstitialModal.modal-overlay {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    display: none;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
    box-sizing: border-box !important;
}

/* ==========================================================================
   CENTRALIZED CLINICAL CATEGORIES / SPECIALTIES EXPLORER MODAL & BOTTOM SHEET
   ========================================================================== */
#categoryExplorerModal.modal-overlay {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(15, 23, 42, 0.5) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    z-index: 999999 !important;
    display: none;
    box-sizing: border-box !important;
}

/* Mobile: Elegant iOS/Android Bottom Sheet (Never cut off from top!) */
@media (max-width: 768px) {
    #categoryExplorerModal.modal-overlay {
        align-items: flex-end !important;
        justify-content: center !important;
        padding: 0 !important;
        overflow: hidden !important;
    }

    #categoryExplorerModal .category-explorer-modal {
        background: #ffffff !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        border-radius: 28px 28px 0 0 !important;
        max-height: 82vh !important;
        display: flex !important;
        flex-direction: column !important;
        box-shadow: 0 -16px 48px rgba(15, 23, 42, 0.28) !important;
        border: 1px solid rgba(226, 232, 240, 0.9) !important;
        border-bottom: none !important;
        animation: categorySheetSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
        overflow: hidden !important;
        padding-bottom: env(safe-area-inset-bottom, 16px) !important;
    }

    .category-sheet-handle {
        width: 44px;
        height: 5px;
        background: #cbd5e1;
        border-radius: 9999px;
        margin: 10px auto 4px;
        flex-shrink: 0;
    }

    #categoryExplorerModal .category-explorer-header {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 12px 18px 14px !important;
        border-bottom: 1px solid #f1f5f9 !important;
        flex-shrink: 0 !important;
        background: #ffffff !important;
    }

    #categoryExplorerModal .category-grid-explorer {
        flex: 1 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        padding: 14px 16px 36px !important;
        max-height: calc(82vh - 85px) !important;
    }

    #categoryExplorerModal .cat-explore-item {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 10px !important;
        padding: 12px 14px !important;
        min-height: 48px !important;
        border-radius: 14px !important;
        border: 1px solid #e2e8f0 !important;
        background: #f8fafc !important;
        color: #1e293b !important;
        text-decoration: none !important;
        transition: all 0.2s ease !important;
    }

    #categoryExplorerModal .cat-explore-item i {
        font-size: 1.15rem !important;
        width: 24px !important;
        text-align: center !important;
        flex-shrink: 0 !important;
    }

    #categoryExplorerModal .cat-explore-item span {
        font-size: 0.82rem !important;
        font-weight: 700 !important;
        color: #1e293b !important;
        text-align: left !important;
        line-height: 1.25 !important;
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    #categoryExplorerModal .cat-explore-item:hover,
    #categoryExplorerModal .cat-explore-item:active {
        background: #eff6ff !important;
        border-color: #93c5fd !important;
        color: #1d4ed8 !important;
    }
}

/* Desktop: Sophisticated Floating Centered Dialog */
@media (min-width: 769px) {
    #categoryExplorerModal.modal-overlay {
        align-items: center !important;
        justify-content: center !important;
        padding: 30px 20px !important;
        overflow-y: auto !important;
    }

    #categoryExplorerModal .category-explorer-modal {
        background: #ffffff !important;
        width: 100% !important;
        max-width: 760px !important;
        border-radius: 24px !important;
        box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.25) !important;
        border: 1px solid rgba(226, 232, 240, 0.9) !important;
        overflow: hidden !important;
        animation: categoryModalZoom 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }

    .category-sheet-handle {
        display: none !important;
    }

    #categoryExplorerModal .category-explorer-header {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 20px 28px !important;
        border-bottom: 1px solid #f1f5f9 !important;
    }

    #categoryExplorerModal .category-grid-explorer {
        display: grid !important;
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
        gap: 14px !important;
        padding: 24px 28px !important;
        max-height: 65vh !important;
        overflow-y: auto !important;
    }

    #categoryExplorerModal .cat-explore-item {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 12px !important;
        padding: 14px 18px !important;
        border-radius: 12px !important;
        border: 1px solid #f1f5f9 !important;
        background: #ffffff !important;
        color: #1e293b !important;
        font-weight: 600 !important;
        font-size: 0.9rem !important;
        text-decoration: none !important;
        transition: all 0.2s ease !important;
    }

    #categoryExplorerModal .cat-explore-item span {
        font-size: 0.88rem !important;
        font-weight: 700 !important;
        color: #1e293b !important;
        text-align: left !important;
    }

    #categoryExplorerModal .cat-explore-item:hover {
        background: #eff6ff !important;
        border-color: #bfdbfe !important;
        color: #1d4ed8 !important;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
    }
}

@keyframes categorySheetSlideUp {
    from { transform: translateY(100%); opacity: 0.6; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes categoryModalZoom {
    from { transform: scale(0.96); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ==========================================================================
   AI CLINICAL VOICE SEARCH MODAL (Maghreb Darija, Arabic, French, English)
   ========================================================================== */
.ai-voice-modal-backdrop {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    animation: voiceFadeIn 0.2s ease-out;
}

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

.ai-voice-modal-card {
    background: #ffffff;
    width: 100%;
    max-width: 600px;
    border-radius: 24px;
    box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    padding: 28px 24px;
    position: relative;
    overflow: hidden;
    animation: voiceCardPop 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

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

.ai-voice-close-btn {
    position: absolute;
    top: 16px;
    right: 18px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: #f1f5f9;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.95rem;
    transition: 0.2s;
    z-index: 10;
}

.ai-voice-close-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.ai-voice-modal-header {
    text-align: center;
    padding-bottom: 4px;
}

.ai-voice-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ai-voice-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    margin: 10px 0 4px;
}

.ai-voice-subtitle {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
    font-weight: 500;
}

/* Dialect Selector Chips */
.ai-voice-dialects {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 16px 0 12px;
}

.dialect-chip {
    padding: 4px 11px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.dialect-chip:hover {
    border-color: #cbd5e1;
    background: #f1f5f9;
}

.dialect-chip.active {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

/* Real-time Voice Status Pill */
.voice-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    transition: all 0.25s ease;
    user-select: none;
}

.voice-status-pill.listening {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fca5a5;
    box-shadow: 0 2px 10px rgba(239, 68, 68, 0.2);
}

.voice-status-pill.error {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #f87171;
}

.voice-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #94a3b8;
    transition: all 0.2s;
}

.voice-status-pill.listening .voice-status-dot {
    background: #ef4444;
    animation: blinkDot 1s infinite alternate;
}

@@keyframes blinkDot {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0.3; transform: scale(1.3); }
}

/* Pulsing Voice Orb Visualizer */
.ai-voice-orb-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px 0 14px;
    position: relative;
    height: 96px;
}

.ai-voice-orb {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    border: none;
    outline: none;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    position: relative;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
    transition: transform 0.2s, background 0.3s;
}

.ai-voice-orb:hover {
    transform: scale(1.05);
}

.ai-voice-orb:active {
    transform: scale(0.96);
}

.ai-voice-orb.listening {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.4);
}

.voice-wave {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(37, 99, 235, 0.4);
    inset: -10px;
    pointer-events: none;
    opacity: 0;
}

.ai-voice-orb.listening .wave-1 {
    animation: orbRipple 2s infinite ease-out;
}

.ai-voice-orb.listening .wave-2 {
    animation: orbRipple 2s infinite ease-out 0.6s;
}

.ai-voice-orb.listening .wave-3 {
    animation: orbRipple 2s infinite ease-out 1.2s;
}

@@keyframes orbRipple {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(2.2); opacity: 0; }
}

.ai-voice-orb.analyzing {
    background: linear-gradient(135deg, #7c3aed, #6366f1);
    animation: orbSpin 2s infinite linear;
}

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

/* Live Speech Transcript Box */
.ai-voice-transcript-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 14px 16px;
    min-height: 58px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.ai-voice-transcript-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.5;
    word-break: break-word;
}

.transcript-placeholder {
    color: #94a3b8;
    font-weight: 500;
    font-size: 0.85rem;
    font-style: italic;
}

.ai-voice-manual-input-box {
    width: 100%;
    display: flex;
    gap: 8px;
    margin-top: 6px;
}

.voice-manual-input {
    flex: 1;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 0.9rem;
    outline: none;
    background: #fff;
}

.voice-manual-input:focus {
    border-color: #2563eb;
}

.voice-manual-send-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #2563eb;
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.voice-manual-send-btn:hover {
    background: #1d4ed8;
}

/* Results Container */
.ai-voice-results-container {
    max-height: 280px;
    overflow-y: auto;
    margin-top: 14px;
    padding: 4px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ai-voice-results-container::-webkit-scrollbar {
    width: 6px;
}

.ai-voice-results-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

/* Clinical Summary Badge */
.ai-voice-clinical-badge {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 10px 14px;
    color: #166534;
    font-size: 0.82rem;
    font-weight: 600;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
}

/* Emergency Alert */
.ai-voice-emergency-alert {
    background: #fef2f2;
    border: 1.5px solid #ef4444;
    border-radius: 12px;
    padding: 12px 14px;
    color: #991b1b;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: alertPulse 1.6s infinite;
}

@@keyframes alertPulse {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.3); }
    70% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Doctors & Labs mini cards */
.ai-voice-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 10px;
}

.ai-voice-card-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    cursor: pointer;
}

.ai-voice-card-item:hover {
    border-color: #93c5fd;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
    transform: translateY(-1px);
}

.ai-voice-card-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: #f1f5f9;
}

.ai-voice-card-details {
    flex: 1;
    min-width: 0;
}

.ai-voice-card-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

.ai-voice-card-spec {
    font-size: 0.75rem;
    font-weight: 600;
    color: #2563eb;
    margin-top: 2px;
}

.ai-voice-card-loc {
    font-size: 0.72rem;
    color: #64748b;
    margin-top: 1px;
}

/* OPTION 2 FALLBACK CARD (0 specialists found -> Direct Q&A route) */
.ai-voice-fallback-card {
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
    border: 1.5px dashed #93c5fd;
    border-radius: 16px;
    padding: 20px 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.ai-voice-fallback-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #dbeafe;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.ai-voice-fallback-title {
    font-size: 1rem;
    font-weight: 800;
    color: #1e3a8a;
    margin: 0;
}

.ai-voice-fallback-msg {
    font-size: 0.82rem;
    color: #475569;
    margin: 0;
    max-width: 420px;
    line-height: 1.45;
}

.ai-voice-fallback-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 6px;
    width: 100%;
}

.btn-fallback-qa {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #2563eb;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 10px;
    text-decoration: none;
    transition: 0.2s;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

.btn-fallback-qa:hover {
    background: #1d4ed8;
    color: #ffffff;
}

.btn-fallback-gen {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 10px;
    text-decoration: none;
    transition: 0.2s;
}

.btn-fallback-gen:hover {
    background: #f1f5f9;
    color: #0f172a;
}

/* Modal Footer */
.ai-voice-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}

.btn-voice-footer {
    border: none;
    background: none;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    transition: 0.2s;
}

.btn-voice-toggle {
    color: #64748b;
}

.btn-voice-toggle:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.btn-voice-action {
    background: #2563eb;
    color: #ffffff;
}

.btn-voice-action:hover {
    background: #1d4ed8;
}