/* Mobile Navigation — extracted from nav_mobile.php */

/* Mobile header + dashboard pane overrides (loaded with common.css) */
.mobile-nav-wrapper .mobile-header {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-evenly !important;
    gap: 0 !important;
    padding: 0 0.35rem !important;
    overflow: visible !important;
}
.mobile-nav-wrapper .mobile-header .header-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 0;
    min-width: 0;
    line-height: 0;
    margin: 0 !important;
}
.mobile-nav-wrapper .mobile-header .header-logo img {
    height: 2.15rem !important;
    max-height: 2.15rem !important;
    width: auto !important;
    max-width: 2.35rem !important;
    object-fit: contain;
}
.mobile-nav-wrapper .mobile-header .header-logo .js-logo-dark { display: none; }
.mobile-nav-wrapper .mobile-header .header-logo .js-logo-light { display: block; }
html[data-bs-theme="dark"] .mobile-nav-wrapper .mobile-header .header-logo .js-logo-light { display: none; }
html[data-bs-theme="dark"] .mobile-nav-wrapper .mobile-header .header-logo .js-logo-dark { display: block; }
.mobile-nav-wrapper .mobile-header .header-btn {
    width: auto !important;
    height: 2.5rem !important;
    flex: 1 1 0;
    min-width: 0;
    padding: 0;
    margin: 0;
    line-height: 0;
    text-decoration: none;
    background: transparent;
    border: none;
    color: var(--text-main);
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}
.mobile-nav-wrapper .mh-bell {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.375rem;
    height: 1.375rem;
    line-height: 0;
}
.mobile-nav-wrapper .mh-bell-count {
    position: absolute;
    top: -0.35rem;
    right: -0.45rem;
    z-index: 2;
    min-width: 1rem;
    height: 1rem;
    padding: 0 0.2rem;
    border-radius: 999px;
    background: #dc3545 !important;
    color: #fff !important;
    font-size: 0.58rem;
    font-weight: 700;
    line-height: 1rem;
    text-align: center;
    border: 1.5px solid var(--bg-surface, #fff);
    box-sizing: border-box;
}
.mobile-nav-wrapper .mh-dropdown {
    flex: 1 1 0;
    min-width: 0;
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mobile-nav-wrapper .mh-dropdown > .header-btn,
.mobile-nav-wrapper .mh-dropdown > .header-avatar {
    flex: 1 1 auto;
    width: 100%;
}
.mobile-nav-wrapper .header-avatar {
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: 2.5rem;
    border-radius: 0 !important;
    overflow: visible !important;
    border: none !important;
    line-height: 0;
    text-decoration: none;
    background: transparent;
    padding: 0;
    position: relative;
}
.mobile-nav-wrapper .header-avatar .nav-avatar-wrap {
    position: relative;
    display: inline-flex;
    line-height: 0;
}
.mobile-nav-wrapper .header-avatar img {
    width: 2rem !important;
    height: 2rem !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    display: block;
    border: 1px solid var(--border-color, #e5e5e5);
}
.mobile-nav-wrapper .nav-pro-badge {
    position: absolute;
    right: -0.35rem;
    bottom: -0.2rem;
    z-index: 2;
    padding: 0.05rem 0.28rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #0d9488 0%, #047857 100%);
    color: #fff !important;
    font-size: 0.5rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.2;
    text-transform: uppercase;
    border: 1.5px solid var(--bg-surface, #fff);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    pointer-events: none;
}
.mobile-nav-wrapper .mh-pane {
    position: absolute !important;
    top: calc(100% + 0.4rem) !important;
    left: 0.65rem !important;
    right: 0.65rem !important;
    width: auto !important;
    max-width: none !important;
    max-height: min(70vh, 26rem);
    overflow-x: hidden;
    overflow-y: auto;
    margin: 0 !important;
    padding: 0.4rem !important;
    border: 1px solid var(--border-color, #e8e8e8) !important;
    border-radius: 0.75rem !important;
    background: var(--bg-surface, #fff) !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14) !important;
    z-index: 1055 !important;
    list-style: none;
}
.mobile-nav-wrapper .mh-pane .mh-pane-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.55rem 0.65rem;
    border-bottom: 1px solid var(--border-color, #e8e8e8);
    margin-bottom: 0.25rem;
}
.mobile-nav-wrapper .mh-pane .mh-pane-head strong {
    font-size: 0.9rem;
    color: var(--text-main);
}
.mobile-nav-wrapper .mh-pane .mh-pane-label {
    padding: 0.45rem 0.65rem 0.2rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted, #6b7280);
}
.mobile-nav-wrapper .mh-pane .dropdown-item,
.mobile-nav-wrapper .mh-pane .list-group-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    border-radius: 0.5rem !important;
    padding: 0.65rem 0.7rem !important;
    color: var(--text-main) !important;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none !important;
    border: none;
    background: transparent;
}
.mobile-nav-wrapper .mh-pane .dropdown-item .icon {
    width: 1.35rem;
    height: 1.35rem;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted, #6b7280);
}
.mobile-nav-wrapper .mh-pane .dropdown-item .icon svg {
    width: 1.2rem;
    height: 1.2rem;
}
.mobile-nav-wrapper .mh-pane .dropdown-item:active,
.mobile-nav-wrapper .mh-pane .dropdown-item:hover {
    background: var(--bg-subtle, #f3f4f6) !important;
}

/* Dashboard quick-links: 2-col tiles, outline Keenicons, soft separation */
.mobile-nav-wrapper .mh-dash-pane {
    min-width: min(18.5rem, calc(100vw - 1.5rem)) !important;
    box-shadow: none !important;
    border: 1px solid var(--border-color, #e8e8e8) !important;
}
.mobile-nav-wrapper .mh-dash-pane.show {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
    padding: 0.7rem !important;
}
.mobile-nav-wrapper .mh-dash-pane > li {
    list-style: none;
    margin: 0;
    padding: 0;
}
.mobile-nav-wrapper .mh-dash-pane .mh-dash-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    min-height: 5.1rem;
    padding: 0.85rem 0.55rem !important;
    border-radius: 0.75rem !important;
    text-align: center;
    text-decoration: none !important;
    color: var(--text-main) !important;
    background: color-mix(in srgb, var(--vr-theme-color, #0d9488) 5%, #fff) !important;
    border: none !important;
    box-shadow: none !important;
    transition: background-color 0.15s ease;
}
.mobile-nav-wrapper .mh-dash-pane .mh-dash-tile:hover,
.mobile-nav-wrapper .mh-dash-pane .mh-dash-tile:active,
.mobile-nav-wrapper .mh-dash-pane .mh-dash-tile:focus {
    background: color-mix(in srgb, var(--vr-theme-color, #0d9488) 11%, #fff) !important;
    box-shadow: none !important;
}
.mobile-nav-wrapper .mh-dash-pane .mh-dash-tile .ki-outline {
    font-size: 1.75rem;
    line-height: 1;
    color: var(--vr-theme-color, #0d9488);
    -webkit-text-stroke: 0.4px currentColor;
    paint-order: stroke fill;
}
.mobile-nav-wrapper .mh-dash-pane .mh-dash-label {
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--text-muted, #6b7280);
    text-align: center;
}
html[data-bs-theme="dark"] .mobile-nav-wrapper .mh-dash-pane .mh-dash-tile {
    background: color-mix(in srgb, var(--vr-theme-color, #0d9488) 12%, transparent) !important;
}
html[data-bs-theme="dark"] .mobile-nav-wrapper .mh-dash-pane .mh-dash-tile:hover,
html[data-bs-theme="dark"] .mobile-nav-wrapper .mh-dash-pane .mh-dash-tile:active {
    background: color-mix(in srgb, var(--vr-theme-color, #0d9488) 20%, transparent) !important;
}
html[data-bs-theme="dark"] .mobile-nav-wrapper .mh-dash-pane .mh-dash-label {
    color: #cbd5e1;
}

.mobile-nav-wrapper .mh-pane .mh-pane-foot {
    border-top: 1px solid var(--border-color, #e8e8e8);
    margin-top: 0.25rem;
    padding: 0.55rem 0.65rem;
    text-align: center;
}
.mobile-nav-wrapper .mh-pane .mh-pane-foot a {
    font-size: 0.8125rem;
    color: var(--text-muted, #6b7280);
    text-decoration: none;
}
.mobile-nav-wrapper .mh-pane .js-mh-notif-item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    border-radius: 0.5rem !important;
    padding: 0.7rem 0.7rem !important;
    text-decoration: none !important;
    border: none;
    margin-bottom: 0.15rem;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.mobile-nav-wrapper .mh-pane .js-mh-notif-item.is-unread {
    background: color-mix(in srgb, var(--vr-theme-color, #0d9488) 12%, #fff) !important;
}
.mobile-nav-wrapper .mh-pane .js-mh-notif-item.is-read {
    background: transparent !important;
}
.mobile-nav-wrapper .mh-pane .js-mh-notif-item:hover,
.mobile-nav-wrapper .mh-pane .js-mh-notif-item:active {
    background: color-mix(in srgb, var(--vr-theme-color, #0d9488) 18%, #fff) !important;
}
.mobile-nav-wrapper .mh-pane .js-mh-notif-item.is-read:hover,
.mobile-nav-wrapper .mh-pane .js-mh-notif-item.is-read:active {
    background: var(--bg-subtle, #f3f4f6) !important;
}
.mobile-nav-wrapper .mh-pane .mh-notif-dot {
    width: 0.5rem;
    height: 0.5rem;
    margin-top: 0.35rem;
    border-radius: 50%;
    flex: 0 0 auto;
    background: var(--vr-theme-color, #0d9488);
}
.mobile-nav-wrapper .mh-pane .js-mh-notif-item.is-read .mh-notif-dot {
    background: transparent;
    box-shadow: inset 0 0 0 1.5px var(--border-color, #d1d5db);
}
.mobile-nav-wrapper .mh-pane .js-mh-notif-item .mh-note-title {
    font-size: 0.84rem;
    line-height: 1.3;
    color: var(--text-main, #111);
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.mobile-nav-wrapper .mh-pane .js-mh-notif-item.is-unread .mh-note-title {
    font-weight: 700;
    color: #0f172a;
}
.mobile-nav-wrapper .mh-pane .js-mh-notif-item.is-read .mh-note-title {
    font-weight: 500;
    color: var(--text-muted, #6b7280);
}
.mobile-nav-wrapper .mh-pane .js-mh-notif-item .mh-note-body {
    font-size: 0.75rem;
    line-height: 1.4;
    margin-top: 0.15rem;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}
.mobile-nav-wrapper .mh-pane .js-mh-notif-item.is-unread .mh-note-body {
    color: #334155;
    font-weight: 500;
}
.mobile-nav-wrapper .mh-pane .js-mh-notif-item.is-read .mh-note-body {
    color: var(--text-muted, #9ca3af);
    font-weight: 400;
}
html[data-bs-theme="dark"] .mobile-nav-wrapper .mh-pane .js-mh-notif-item.is-unread {
    background: color-mix(in srgb, var(--vr-theme-color, #0d9488) 22%, transparent) !important;
}
html[data-bs-theme="dark"] .mobile-nav-wrapper .mh-pane .js-mh-notif-item.is-unread .mh-note-title {
    color: #f8fafc;
}
html[data-bs-theme="dark"] .mobile-nav-wrapper .mh-pane .js-mh-notif-item.is-unread .mh-note-body {
    color: #cbd5e1;
}
html[data-bs-theme="dark"] .mobile-nav-wrapper .mh-pane .js-mh-notif-item.is-read .mh-note-title,
html[data-bs-theme="dark"] .mobile-nav-wrapper .mh-pane .js-mh-notif-item.is-read .mh-note-body {
    color: #94a3b8;
}
@keyframes navBellRing {
    0%, 100% { transform: rotate(0); }
    15% { transform: rotate(12deg); }
    30% { transform: rotate(-10deg); }
    45% { transform: rotate(8deg); }
    60% { transform: rotate(-4deg); }
    75% { transform: rotate(2deg); }
}
.mobile-nav-wrapper .nav-bell-icon.has-unread {
    transform-origin: top center;
    animation: navBellRing 1.8s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
    .mobile-nav-wrapper .nav-bell-icon.has-unread { animation: none; }
}
.mobile-nav-wrapper .mh-guest-auth {
    flex: 1.35 1 0;
    min-width: 0;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.28rem;
    padding: 0 0.1rem;
}
.mobile-nav-wrapper .mh-guest-auth .mh-auth-btn {
    flex: 1 1 0;
    min-width: 0;
    height: 1.85rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.01em;
    text-decoration: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
}
.mobile-nav-wrapper .mh-guest-auth .mh-auth-login {
    color: var(--text-main);
    background: color-mix(in srgb, var(--text-main) 6%, transparent);
    border-color: color-mix(in srgb, var(--text-main) 14%, transparent);
}
.mobile-nav-wrapper .mh-guest-auth .mh-auth-signup {
    color: #fff;
    background: var(--vr-primary, #0d9488);
    border-color: var(--vr-primary, #0d9488);
}
html[data-bs-theme="dark"] .mobile-nav-wrapper .mh-guest-auth .mh-auth-login {
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.14);
}
@media (max-width: 360px) {
    .mobile-nav-wrapper .mh-guest-auth .mh-auth-btn {
        font-size: 0.56rem;
        padding: 0 0.28rem;
    }
}
