.mobile-account-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    max-width: 48%;
    min-height: 2.75rem;
    padding: .65rem .9rem;
    border-radius: .9rem;
    font-size: .95rem;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(37, 99, 235, .2);
}

.mobile-account-trigger i {
    flex: 0 0 auto;
    font-size: 1.2rem;
}

.mobile-account-trigger span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 575.98px) {
    .navbar .container {
        min-height: 4.25rem;
        gap: .75rem;
    }

    .navbar-brand {
        flex: 0 0 auto;
        font-size: 1.35rem;
        line-height: 1;
    }

    .mobile-account-trigger {
        max-width: 56%;
        min-height: 2.65rem;
        padding: .6rem .8rem;
        font-size: .9rem;
        border-radius: .85rem;
    }
}

@media (max-width: 374.98px) {
    .navbar-brand {
        font-size: 1.2rem;
    }

    .mobile-account-trigger {
        max-width: 58%;
        padding-inline: .65rem;
        font-size: .84rem;
    }
}

/* V1.6 — menu mobile aligné sur la sidebar desktop */
.mobile-dashboard-menu {
    --mobile-menu-bg: #061d39;
    --mobile-menu-bg-2: #07284f;
    width: min(92vw, 390px) !important;
    border-left: 0;
    background: linear-gradient(180deg, var(--mobile-menu-bg-2) 0%, var(--mobile-menu-bg) 100%);
    color: #fff;
}

.mobile-dashboard-menu__header {
    padding: 1rem;
    border-bottom: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.025);
}

.mobile-dashboard-menu__identity {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-width: 0;
}

.mobile-dashboard-menu__avatar {
    display: grid;
    place-items: center;
    flex: 0 0 2.65rem;
    width: 2.65rem;
    height: 2.65rem;
    border-radius: .8rem;
    background: rgba(255,255,255,.1);
    font-size: 1.1rem;
}

.mobile-dashboard-menu__identity-copy {
    min-width: 0;
}

.mobile-dashboard-menu__identity-copy h2,
.mobile-dashboard-menu__identity-copy span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-dashboard-menu__identity-copy h2 {
    margin: 0;
    color: #fff;
    font-size: 1rem;
    font-weight: 850;
}

.mobile-dashboard-menu__identity-copy span {
    margin-top: .12rem;
    color: #b9c9db;
    font-size: .78rem;
}

.mobile-dashboard-menu__body {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: .85rem !important;
}

.mobile-dashboard-availability {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .7rem;
    margin: 0 0 .8rem;
    padding: .75rem;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: .9rem;
    background: rgba(255,255,255,.055);
}

.mobile-dashboard-availability__copy {
    min-width: 0;
}

.mobile-dashboard-availability strong,
.mobile-dashboard-availability small,
.mobile-dashboard-availability__copy > span {
    display: block;
}

.mobile-dashboard-availability strong {
    font-size: .84rem;
}

.mobile-dashboard-availability small {
    margin-top: .1rem;
    color: #a9bdd2;
    font-size: .7rem;
}

.mobile-dashboard-availability__copy > span {
    margin-top: .2rem;
    color: #8fa8c2;
    font-size: .62rem;
}

.mobile-dashboard-nav {
    display: flex;
    flex-direction: column;
    gap: .22rem;
}

.mobile-dashboard-nav a,
.mobile-dashboard-logout {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-height: 3.05rem;
    padding: .72rem .8rem;
    border: 1px solid transparent;
    border-radius: .8rem;
    color: #e7eef8;
    font-size: .93rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}

.mobile-dashboard-nav a:hover,
.mobile-dashboard-nav a:focus-visible,
.mobile-dashboard-nav a.active {
    border-color: rgba(255,255,255,.08);
    background: linear-gradient(90deg,#1559a8,#1266d6);
    color: #fff;
}

.mobile-dashboard-nav a > i,
.mobile-dashboard-logout > i {
    flex: 0 0 1.25rem;
    width: 1.25rem;
    text-align: center;
    font-size: 1.05rem;
}

.mobile-dashboard-nav a > span,
.mobile-dashboard-logout > span {
    flex: 1;
    min-width: 0;
}

.mobile-dashboard-nav a > b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 2rem;
    height: 2rem;
    padding: 0 .6rem;
    border: 2px solid rgba(255,255,255,.85);
    border-radius: 999px;
    background: #dc3545;
    color: #fff;
    box-shadow: 0 3px 10px rgba(220,53,69,.3);
    font-size: .7rem;
    font-weight: 900;
}

.mobile-dashboard-nav__section {
    margin: .75rem .8rem .28rem;
    color: #93a6bd;
    font-size: .67rem;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.mobile-dashboard-logout {
    margin-top: auto;
    border-color: rgba(239,68,68,.42);
    background: rgba(239,68,68,.1);
    color: #ff7878;
}

.mobile-dashboard-logout:hover,
.mobile-dashboard-logout:focus-visible {
    border-color: #dc3545;
    background: #dc3545;
    color: #fff;
}

@media (max-width: 374.98px) {
    .mobile-dashboard-menu {
        width: 94vw !important;
    }

    .mobile-dashboard-nav a,
    .mobile-dashboard-logout {
        font-size: .88rem;
    }
}


/* Badge fondateur dans le vrai menu mobile (offcanvas). */
.mobile-dashboard-menu__identity-copy .mobile-founder-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    gap: .35rem;
    margin-top: .42rem;
    padding: .25rem .52rem;
    border: 1px solid rgba(250, 204, 21, .48);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: #f8fafc;
    font-size: .68rem;
    font-weight: 800;
    line-height: 1.1;
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
}
.mobile-dashboard-menu__identity-copy .mobile-founder-badge i {
    color: #facc15;
    font-size: .72rem;
}
.mobile-dashboard-menu__identity-copy .mobile-founder-badge.is-premium {
    border-color: rgba(251, 191, 36, .72);
    background: rgba(245, 158, 11, .14);
}
