/**
 * IOSVER-HEADER.CSS - Modern Glassmorphism Header Design
 * NEW TEST DESIGN - Header styles for home2 page
 * Maintains madb-header-module structure with new madb styling
 */

/* ==========================================================================
   HEADER CONTAINER
   ========================================================================== */

#wrapper {
    min-height: 6vh;
}

.madb-header-container {
    background-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    position: fixed;
    top: 32px;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: none;
    transition: all 0.3s ease;
}

.madb-header-container.scrolled {
    background-color: transparent;
    box-shadow: none;
}

.madb-header-inner {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 70px;
    position: relative;
}

/* Mobile Header Layout Container */
.madb-mobile-header-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 0.75rem;
    position: relative;
}

@media (min-width: 769px) {
    .madb-mobile-menu-toggle {
        display: none;
    }
}

/* ==========================================================================
   LOGO SECTION
   ========================================================================== */

.madb-header-logo-section {
    flex-shrink: 0;
}

.madb-header-logo {
    display: inline-block;
    transition: opacity 0.3s ease;
}

.madb-header-logo:hover {
    opacity: 0.8;
}

.madb-header-logo img {
    display: block;
    height: 50px;
    width: auto;
}

@media (max-width: 768px) {
    .madb-header-logo img {
        height: 40px;
    }
}

/* ==========================================================================
   NAVIGATION SECTION
   ========================================================================== */

.madb-header-nav-section {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
    justify-content: flex-end;
}

/* ==========================================================================
   CENTERED SEARCH BAR
   ========================================================================== */

.madb-header-search-center {
    position: absolute;
    top: -61px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 700px;
    display: flex;
    justify-content: center;
    z-index: 1001;
}

@media (max-width: 768px) {
    .madb-header-search-center {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        max-width: none;
        flex: 1;
        margin: 0;
    }
}

.madb-centered-search-form {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    background: rgb(50 50 50 / 26%);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    padding: 0.5rem 1rem 0.5rem 0.5rem;
    gap: 0.75rem;
}

.madb-centered-search-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: rgba(255, 255, 255, 0.6);
    pointer-events: none;
    margin-left: 0.5rem;
}

.madb-centered-search-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.875rem 1.5rem 0.875rem 0;
    color: #ffffff;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.madb-centered-search-input:focus {
    outline: none;
}

.madb-centered-search-form:focus-within {
    background: rgb(50 50 50 / 35%);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.madb-centered-search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   MOBILE NAV — full-screen drill-down panels
   ========================================================================== */

.madb-mobile-menu-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    background: rgba(18, 18, 18, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 1002;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1), visibility 0.32s;
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
    overflow: hidden;
}

.madb-mobile-menu-overlay.active {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
}

.madb-mobile-menu-overlay[hidden] {
    display: none;
}

.madb-mobile-menu-overlay.active[hidden] {
    display: flex;
}

.madb-mobile-menu-close {
    position: absolute;
    top: calc(0.75rem + env(safe-area-inset-top));
    right: calc(0.75rem + env(safe-area-inset-right));
    z-index: 1004;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.95);
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.madb-mobile-menu-close:hover,
.madb-mobile-menu-close:focus-visible {
    background: rgba(229, 9, 20, 0.35);
    outline: none;
}

.madb-mobile-menu-close svg {
    width: 22px;
    height: 22px;
}

/* Panel stack */
.madb-mnav {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    width: 100%;
    color: rgba(255, 255, 255, 0.92);
}

.madb-mnav-viewport {
    position: relative;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.madb-mnav-panel {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    background: transparent;
    z-index: 1;
    visibility: hidden;
    pointer-events: none;
}

.madb-mnav-panel.is-active {
    transform: translateX(0);
    z-index: 3;
    visibility: visible;
    pointer-events: auto;
}

.madb-mnav-panel.is-prev {
    transform: translateX(-30%);
    z-index: 2;
    visibility: visible;
    pointer-events: none;
}

.madb-mnav-panel[hidden]:not(.is-active):not(.is-prev) {
    display: none;
}

.madb-mnav-panel.is-active[hidden],
.madb-mnav-panel.is-prev[hidden] {
    display: flex;
}

.madb-mnav-panel-header {
    display: grid;
    grid-template-columns: minmax(72px, 1fr) auto minmax(72px, 1fr);
    align-items: center;
    min-height: 56px;
    padding: 0.5rem 1rem;
    padding-right: 3.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
    background: rgba(18, 18, 18, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.madb-mnav-back {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    justify-self: start;
    padding: 0.4rem 0.35rem;
    margin: 0;
    border: none;
    background: transparent;
    color: #e50914;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
}

.madb-mnav-back:hover,
.madb-mnav-back:focus-visible {
    background: rgba(229, 9, 20, 0.12);
    outline: none;
}

.madb-mnav-back--spacer,
.madb-mnav-header-spacer {
    min-height: 1px;
}

.madb-mnav-panel-title {
    margin: 0;
    padding: 0;
    font-size: 1.0625rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #fff;
    text-align: center;
    grid-column: 2;
}

.madb-mnav-panel-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 0.35rem 0 1.5rem;
}

.madb-mnav-section-label {
    padding: 1rem 1.25rem 0.4rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

.madb-mnav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    min-height: 52px;
    padding: 0.75rem 1.25rem;
    margin: 0;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: transparent;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1rem;
    font-weight: 500;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    font-family: inherit;
}

.madb-mnav-row:hover,
.madb-mnav-row:focus-visible {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    outline: none;
}

.madb-mnav-row--emphasis {
    font-weight: 700;
    color: #fff;
}

.madb-mnav-row--cta {
    margin-top: 0.5rem;
    border-bottom: none;
    color: #e50914;
    font-weight: 700;
}

.madb-mnav-row-label {
    flex: 1;
    min-width: 0;
    line-height: 1.35;
}

.madb-mnav-chevron {
    flex-shrink: 0;
    opacity: 0.45;
    color: rgba(255, 255, 255, 0.85);
}

.madb-mnav-footer {
    flex-shrink: 0;
    padding: 0.85rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(12, 12, 12, 0.6);
}

.madb-mnav-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.madb-mnav-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.25);
    background: transparent;
}

.madb-mnav-user-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

body.madb-mnav-open {
    overflow: hidden;
    touch-action: none;
}

/* Mobile menu backdrop */
.madb-mobile-menu-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.55);
    z-index: 1001;
}

.madb-mobile-menu-backdrop.active {
    display: block;
}

@media (min-width: 769px) {
    .madb-mobile-menu-overlay,
    .madb-mobile-menu-backdrop {
        display: none !important;
    }
}

.madb-header-nav-wrapper {
    display: none;
}

.madb-main-nav {
    display: none;
}

.madb-nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.madb-nav-item {
    position: relative;
}

.madb-nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 10px;
}

.madb-nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.madb-nav-item.active .madb-nav-link {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
}

.madb-menu-item {
    position: relative;
}

.madb-menu-link {
    color: #e5e5e5;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.madb-menu-link:hover {
    color: #ffffff;
}

.madb-menu-item-cta .madb-menu-link {
    background: rgba(255, 255, 255, 0.95);
    color: #000000;
    padding: 0.625rem 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.madb-menu-item-cta .madb-menu-link:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.madb-menu-item-login .madb-menu-link {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    padding: 0.625rem 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.madb-menu-item-login .madb-menu-link:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

/* ==========================================================================
   MOBILE MENU
   ========================================================================== */

.madb-mobile-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 28px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
}

.madb-mobile-menu-toggle:hover {
    opacity: 0.95;
    background: rgba(229, 9, 20, 0.35);
    border-color: rgba(229, 9, 20, 0.5);
    transform: translateY(-1px);
}

.madb-mobile-menu-toggle svg,
.madb-mobile-menu-toggle-icon {
    width: 20px;
    height: 20px;
}

.madb-mobile-menu-toggle-icon--close {
    display: none;
}

body.madb-mnav-open .madb-mobile-menu-toggle-icon--open {
    display: none;
}

body.madb-mnav-open .madb-mobile-menu-toggle-icon--close {
    display: block;
}

body.madb-mnav-open .madb-mobile-menu-toggle {
    background: rgba(229, 9, 20, 0.4);
    border-color: rgba(229, 9, 20, 0.55);
}

@media (max-width: 768px) {
    .madb-mobile-menu-toggle {
        display: flex;
    }
}

@media (min-width: 769px) {
    .madb-mobile-menu-toggle {
        display: none;
    }
}

/* Legacy drawer styles for .madb-header-actions (unused by new mnav) */
@media (max-width: 768px) {
    .madb-header-actions {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: rgba(30, 30, 30, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 5rem 2rem 2rem;
        transition: right 0.3s ease;
        overflow-y: auto;
        box-shadow: -4px 0 24px rgba(0, 0, 0, 0.5);
        border-left: 1px solid rgba(255, 255, 255, 0.08);
        z-index: 1000;
    }

    .madb-header-actions.active {
        right: 0;
    }

    .madb-header-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .madb-menu-link {
        display: block;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .madb-menu-item-cta .madb-menu-link,
    .madb-menu-item-login .madb-menu-link {
        margin-top: 1rem;
        border-bottom: none;
    }

    .madb-header-search-center {
        display: flex;
        max-width: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }
    
    .madb-centered-search-input {
        width: 100%;
    }
}

/* ==========================================================================
   POPUPS
   ========================================================================== */

.madb-header-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 3rem 2rem;
    max-width: 600px;
    width: 90%;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.madb-header-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.madb-popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: opacity 0.3s ease;
}

.madb-popup-close:hover {
    opacity: 0.7;
}

.madb-popup-title {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-align: center;
}

.madb-popup-subtitle {
    font-size: 1.125rem;
    color: #b3b3b3;
    margin-bottom: 2rem;
    text-align: center;
}

.madb-popup-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.madb-popup-option a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.madb-popup-option a:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.madb-option-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 14px;
}

.madb-option-info {
    flex: 1;
}

.madb-option-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.madb-option-subtitle {
    font-size: 0.875rem;
    color: #b3b3b3;
    line-height: 1.4;
}

.madb-popup-bottom {
    text-align: center;
    color: #b3b3b3;
    font-size: 0.95rem;
}

.madb-signin-link {
    color: #e50914;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.madb-signin-link:hover {
    color: #f40612;
    text-decoration: underline;
}

/* ==========================================================================
   LOGIN FORM
   ========================================================================== */

.madb-login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.madb-login-overlay.active {
    opacity: 1;
    visibility: visible;
}

.madb-login-form {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    max-width: 450px;
    width: 90%;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.madb-login-form.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.madb-login-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-align: center;
}

.madb-login-subtitle {
    font-size: 1rem;
    color: #b3b3b3;
    margin-bottom: 2rem;
    text-align: center;
}

.madb-text-accent {
    color: #8b5cf6;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.madb-text-accent:hover {
    color: #6366f1;
    text-decoration: underline;
}

.madb-form-group {
    margin-bottom: 1.5rem;
}

.madb-label {
    display: block;
    color: #e5e5e5;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.madb-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    color: #ffffff;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.madb-input:focus {
    outline: none;
    border-color: #8b5cf6;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.madb-form-links {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.madb-form-links li {
    margin-bottom: 0.5rem;
}

.madb-form-submit {
    margin-bottom: 1rem;
}

.madb-btn-submit {
    width: 100%;
    justify-content: center;
    font-size: 1rem;
    padding: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.madb-login-exclusive {
    font-size: 0.875rem;
    color: #b3b3b3;
    text-align: center;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
    .madb-header-container {
        /* top padding = 8px gap; side gutters match .madb-main-wrapper / content-container */
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100%;
        box-sizing: border-box;
        padding: calc(8px + env(safe-area-inset-top, 0px)) 6px 0;
    }

    .madb-header-inner {
        height: 40px;
        padding: 0;
        justify-content: space-between;
        align-items: center;
        overflow: visible;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    .madb-mobile-header-layout {
        width: 100%;
        height: 40px;
        margin: 0;
        gap: 0.5rem;
        align-items: center;
        box-sizing: border-box;
    }

    .madb-header-search-center {
        flex: 1;
        min-width: 0;
        display: flex;
        align-items: center;
        margin: 0 !important;
        padding: 0 !important;
        position: relative !important;
        top: 0 !important;
        left: auto !important;
        transform: none !important;
        max-width: none !important;
    }

    .madb-centered-search-form {
        padding: 0 0.5rem 0 0.375rem;
        height: 40px;
        display: flex;
        align-items: center;
        width: 100%;
        margin: 0;
        box-sizing: border-box;
    }

    .madb-centered-search-icon {
        margin-left: 0;
        flex-shrink: 0;
    }

    .madb-centered-search-input {
        padding: 0;
        height: auto;
        font-size: 0.875rem;
        line-height: 1.5;
    }

    .madb-centered-search-input::placeholder {
        font-size: 0.875rem;
    }

    .madb-mobile-menu-toggle {
        width: 40px;
        height: 40px;
        padding: 0;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 !important;
    }

    .madb-mobile-menu-toggle svg {
        width: 20px;
        height: 20px;
    }

    .madb-header-logo img {
        height: 36px;
    }

    .madb-popup-title {
        font-size: 1.5rem;
    }

    .madb-popup-subtitle {
        font-size: 1rem;
    }

    .madb-login-title {
        font-size: 1.5rem;
    }
}

/* ==========================================================================
   LIVE USER COUNTER
   ========================================================================== */

.madb-hero-section .madb-live-users-counter {
    position: relative;
    bottom: auto;
    right: auto;
    left: auto;
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 2;
}

.madb-live-users-avatars {
    display: flex;
    align-items: center;
    position: relative;
    height: 60px;
}

#madb-live-users-avatar-container {
    display: flex;
    align-items: center;
}

.madb-live-user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #000;
    object-fit: cover;
    margin-left: -12px;
    display: block;
}

.madb-live-user-avatar:first-child {
    margin-left: 0;
}

.madb-live-users-text {
    display: flex;
    flex-direction: column;
    white-space: nowrap;
}

.madb-live-users-count {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
}

.madb-live-users-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .madb-hero-section .madb-live-users-counter {
        margin-top: 1.25rem;
        gap: 8px;
        max-width: 100%;
        flex-wrap: wrap;
    }
    
    .madb-live-users-avatars {
        height: 40px;
        max-width: 200px;
        overflow: hidden;
    }
    
    #madb-live-users-avatar-container {
        overflow: hidden;
    }
    
    .madb-live-user-avatar {
        width: 40px;
        height: 40px;
    }
    
    .madb-live-users-count {
        font-size: 12px;
    }
    
    .madb-live-users-label {
        font-size: 10px;
    }
}

/* ==========================================================================
   USER SECTION
   ========================================================================== */

.madb-user-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

.madb-user-section > div {
    position: relative;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.madb-user-section > div:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(139, 92, 246, 0.15) 100%) !important;
    transform: scale(1.1);
}

.madb-user-section svg {
    width: 24px;
    height: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.madb-user-section svg[style*="color"] {
    color: rgba(255, 255, 255, 0.8) !important;
    stroke: rgba(255, 255, 255, 0.8) !important;
}

.madb-user-section > div:hover svg {
    color: #8b5cf6 !important;
    stroke: #8b5cf6 !important;
    fill: #8b5cf6 !important;
}

.madb-user-section > div:hover svg path {
    stroke: #8b5cf6 !important;
    fill: #8b5cf6 !important;
}

/* Notification badge */
.madb-user-section > div span[style*="position: absolute"] {
    border-color: #8b5cf6 !important;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
}

.madb-user-section > div:hover span[style*="position: absolute"] {
    border-color: #8b5cf6 !important;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.5) !important;
}

/* User Profile Section */
.madb-user-section > div:last-child {
    border-radius: 12px;
    padding: 6px 10px;
    gap: 10px;
}

.madb-user-section > div:last-child:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(139, 92, 246, 0.15) 100%) !important;
    transform: scale(1.05);
}

.madb-user-section img[style*="border"] {
    border: 2px solid rgba(139, 92, 246, 0.4) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.madb-user-section > div:last-child:hover img {
    border-color: #8b5cf6 !important;
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.4) !important;
}

.madb-user-section > div:last-child span {
    transition: color 0.3s ease;
}

.madb-user-section > div:last-child:hover span:first-child {
    color: #8b5cf6 !important;
}