/* ===== MOBILE NAVIGATION v3.0 ===== */
/* Hamburger drawer + user dropdown top bar */

/* ─── Desktop: hide mobile nav ─────────────────────────────────────── */
@media (min-width: 1025px) {
  .mobile-nav,
  .mobile-nav__subbar,
  .mobile-nav__drawer,
  .mobile-nav__overlay {
    display: none !important;
  }
}

/* ─── Mobile + Tablet ────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  /* Hide desktop navbar */
  .navbar {
    display: none !important;
  }

  /* Body offset */
  body {
    padding-top: 56px !important;
    padding-bottom: 0 !important;
  }

  /* ── Safe Area ───────────────────────────────────────────── */
  @supports (padding-top: env(safe-area-inset-top)) {
    body {
      padding-top: calc(56px + env(safe-area-inset-top)) !important;
    }
  }

  /* ── Maintenance banner ──────────────────────────────────── */
  body.has-maintenance-banner .mobile-nav {
    top: 48px;
  }
  body.has-maintenance-banner {
    padding-top: calc(56px + 48px) !important;
  }
  @supports (padding-top: env(safe-area-inset-top)) {
    body.has-maintenance-banner {
      padding-top: calc(56px + 48px + env(safe-area-inset-top)) !important;
    }
  }

  /* ── Nav Bar ─────────────────────────────────────────────── */
  .mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-primary, #0d0f18);
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
    z-index: 10001;
    padding: 0 0.75rem;
    touch-action: manipulation;
    gap: 0.5rem;
  }

  @supports (padding-top: env(safe-area-inset-top)) {
    .mobile-nav {
      height: calc(56px + env(safe-area-inset-top));
      padding-top: env(safe-area-inset-top);
      padding-left: max(0.75rem, env(safe-area-inset-left));
      padding-right: max(0.75rem, env(safe-area-inset-right));
    }
  }

  /* ── Hamburger ───────────────────────────────────────────── */
  .mobile-nav__hamburger {
    all: unset;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    cursor: pointer;
    flex-shrink: 0;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.2s;
  }
  .mobile-nav__hamburger:active {
    background: rgba(139, 92, 246, 0.15);
  }
  .mobile-nav__hamburger svg {
    width: 22px;
    height: 22px;
    stroke: rgba(255, 255, 255, 0.75);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
  }

  /* ── Page Search Button (page-specific, e.g. giveaways) ─── */
  .mobile-nav__page-search {
    all: unset;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 9px;
    cursor: pointer;
    flex-shrink: 0;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s, color 0.15s;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
  }
  .mobile-nav__page-search:active {
    background: rgba(139, 92, 246, 0.15);
  }
  .mobile-nav__page-search.active {
    color: #a78bfa;
  }

  /* ── Brand ───────────────────────────────────────────────── */
  .mobile-nav__brand {
    flex: 1;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-decoration: none;
    background: linear-gradient(90deg, #8b5cf6, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
  }

  /* ── Right actions ───────────────────────────────────────── */
  .mobile-nav__actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
  }

  /* ── Bell ────────────────────────────────────────────────── */
  .mobile-nav__bell {
    all: unset;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    cursor: pointer;
    position: relative;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.2s;
  }
  .mobile-nav__bell:active {
    background: rgba(239, 68, 68, 0.15);
  }
  .mobile-nav__bell svg {
    width: 20px;
    height: 20px;
    stroke: rgba(255, 255, 255, 0.65);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  /* ── Notification Badge ──────────────────────────────────── */
  .mobile-nav__badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 16px;
    height: 16px;
    padding: 0 3px;
    background: #ef4444;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    pointer-events: none;
  }
  .mobile-nav__badge.hidden {
    display: none;
  }

  /* ── User button wrapper ─────────────────────────────────── */
  .mobile-nav__user-wrap {
    /* no position:relative — sidebar (#mobileNavUserDropdown) is
       moved to <body> at runtime so it has a clean stacking context */
  }

  .mobile-nav__user-btn {
    all: unset;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.2s;
  }
  .mobile-nav__user-btn:active {
    background: rgba(6, 182, 212, 0.15);
  }
  .mobile-nav__user-btn svg {
    width: 20px;
    height: 20px;
    stroke: rgba(255, 255, 255, 0.65);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .mobile-nav__user-btn.is-guest svg {
    stroke: #fbbf24;
  }

  /* ── Nav button avatar + level badge (logged in) ────────── */
  .mobile-nav__avatar-wrap {
    position: relative;
    width: 32px;
    height: 32px;
  }
  .mobile-nav__avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid rgba(139, 92, 246, 0.5);
    background: rgba(139, 92, 246, 0.18);
    display: block;
  }
  .mobile-nav__lvl-badge {
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    color: #fff;
    font-size: 0.5rem;
    font-weight: 700;
    padding: 0.05rem 0.3rem;
    border-radius: 20px;
    white-space: nowrap;
    border: 1.5px solid #0d0f18;
    box-shadow: 0 1px 4px rgba(139, 92, 246, 0.45);
    line-height: 1.3;
    pointer-events: none;
  }

  /* ── User Sidebar (right panel) ─────────────────────────── */
  .mobile-nav__user-dropdown {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    max-width: 85vw;
    background: var(--bg-primary, #0d0f18);
    border-left: 1px solid rgba(139, 92, 246, 0.2);
    z-index: 10001;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
  }
  .mobile-nav__user-dropdown.hidden {
    display: none;
  }
  .mobile-nav__user-dropdown.open {
    transform: translateX(0);
  }

  /* Sidebar header — guest variant (no avatar, just title + close) */
  .mn-sidebar__header--guest {
    align-items: center;
  }
  .mn-sidebar__guest-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    flex: 1;
    min-width: 0;
  }
  .mn-sidebar__guest-title svg {
    stroke: rgba(139, 92, 246, 0.8);
    flex-shrink: 0;
  }

  /* Accent item (Login button) */
  .mn-sidebar__item--accent {
    color: #a78bfa !important;
    background: rgba(139, 92, 246, 0.1);
  }
  .mn-sidebar__item--accent svg {
    stroke: #a78bfa;
  }
  .mn-sidebar__item--accent:active {
    background: rgba(139, 92, 246, 0.22);
  }

  /* Sidebar header */
  .mn-sidebar__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1rem 1rem 0.9rem;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(139, 92, 246, 0.15);
    gap: 0.5rem;
  }
  @supports (padding-top: env(safe-area-inset-top)) {
    .mn-sidebar__header {
      padding-top: calc(env(safe-area-inset-top) + 0.75rem);
    }
  }
  .mn-sidebar__user-info {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    min-width: 0;
    flex: 1;
  }

  /* Avatar wrapper — position:relative so the level badge can sit on top */
  .mn-sidebar__avatar-wrap {
    position: relative;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
  }
  .mn-sidebar__avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(139, 92, 246, 0.5);
    background: rgba(139, 92, 246, 0.18);
    display: block;
  }

  /* Level badge — absolute, bottom-centru pe avatar (ca hero-level-badge) */
  .mn-sidebar__lvl-badge {
    position: absolute;
    bottom: -7px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.15rem 0.45rem;
    border-radius: 20px;
    white-space: nowrap;
    letter-spacing: 0.02em;
    border: 1.5px solid #0d0f18;
    box-shadow: 0 2px 6px rgba(139, 92, 246, 0.45);
  }

  /* User details: name + role + XP bar */
  .mn-sidebar__user-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
  }
  .mn-sidebar__name {
    font-size: 0.88rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .mn-sidebar__role {
    font-size: 0.65rem;
    color: rgba(139, 92, 246, 0.8);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }

  /* XP bar — inside header, below name+role */
  .mn-sidebar__xp-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-top: 0.4rem;
  }
  .mn-sidebar__xp-bar {
    height: 5px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
  }
  .mn-sidebar__xp-fill {
    height: 100%;
    background: linear-gradient(90deg, #8b5cf6, #06b6d4);
    border-radius: 3px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .mn-sidebar__xp-text {
    font-size: 0.62rem;
    color: rgba(255, 255, 255, 0.35);
    text-align: right;
    white-space: nowrap;
  }

  .mn-sidebar__close {
    all: unset;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    flex-shrink: 0;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s;
    margin-top: 0.1rem;
  }
  .mn-sidebar__close:active {
    background: rgba(255, 255, 255, 0.1);
  }
  .mn-sidebar__close svg {
    stroke: rgba(255, 255, 255, 0.6);
  }

  /* Sidebar nav */
  .mn-sidebar__nav {
    flex: 1;
    padding: 0.75rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .mn-sidebar__item {
    all: unset;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    width: 100%;
    box-sizing: border-box;
  }
  .mn-sidebar__item:active {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
  }
  .mn-sidebar__item svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
  }

  /* Sidebar footer */
  .mn-sidebar__footer {
    padding: 0.75rem;
    border-top: 1px solid rgba(139, 92, 246, 0.15);
    flex-shrink: 0;
  }
  .mn-sidebar__logout {
    color: #f87171 !important;
  }
  .mn-sidebar__logout svg {
    stroke: #f87171;
  }

  /* ── Overlay ─────────────────────────────────────────────── */
  .mobile-nav__overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    touch-action: none;
  }
  .mobile-nav__overlay.visible {
    display: block;
  }

  /* ── Drawer ──────────────────────────────────────────────── */
  .mobile-nav__drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    max-width: 85vw;
    background: var(--bg-primary, #0d0f18);
    border-right: 1px solid rgba(139, 92, 246, 0.2);
    z-index: 10001;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    touch-action: pan-y;
  }
  .mobile-nav__drawer.open {
    transform: translateX(0);
  }

  /* Drawer header */
  .mobile-nav__drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    height: 56px;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(139, 92, 246, 0.15);
  }
  @supports (padding-top: env(safe-area-inset-top)) {
    .mobile-nav__drawer-header {
      height: calc(56px + env(safe-area-inset-top));
      padding-top: env(safe-area-inset-top);
    }
  }

  .mobile-nav__drawer-brand {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    background: linear-gradient(90deg, #8b5cf6, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .mobile-nav__drawer-close {
    all: unset;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s;
  }
  .mobile-nav__drawer-close:active {
    background: rgba(255, 255, 255, 0.1);
  }
  .mobile-nav__drawer-close svg {
    width: 20px;
    height: 20px;
    stroke: rgba(255, 255, 255, 0.6);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
  }

  /* Drawer nav links */
  .mobile-nav__drawer-nav {
    flex: 1;
    padding: 0.75rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .mobile-nav__drawer-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  .mobile-nav__drawer-item:active {
    background: rgba(139, 92, 246, 0.15);
  }
  .mobile-nav__drawer-item.active {
    background: rgba(139, 92, 246, 0.18);
    color: #a78bfa;
  }
  .mobile-nav__drawer-item svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
  }

  /* Drawer footer */
  .mobile-nav__drawer-footer {
    padding: 0.75rem;
    border-top: 1px solid rgba(139, 92, 246, 0.15);
    flex-shrink: 0;
  }

  .mobile-nav__drawer-footer-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  /* Language toggle (single button showing other language) */
  .mobile-nav__lang-toggle {
    all: unset;
    flex: 1;
    text-align: center;
    padding: 0.5rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    box-sizing: border-box;
  }
  .mobile-nav__lang-toggle:active {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
    border-color: rgba(139, 92, 246, 0.35);
  }

  /* Theme toggle (icon only) */
  .mobile-nav__theme-toggle {
    all: unset;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.65rem;
    border-radius: 8px;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.15s;
    box-sizing: border-box;
    flex-shrink: 0;
  }
  .mobile-nav__theme-toggle:active {
    background: rgba(139, 92, 246, 0.15);
  }
  .mn-theme-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
  }
  .mn-theme-icon svg {
    width: 16px;
    height: 16px;
    stroke: rgba(255, 255, 255, 0.65);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  /* ── Mobile Notifications Modal (bottom sheet) ───────────── */
  .mobile-notif-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 10004;
    align-items: flex-end;
    touch-action: none;
  }
  .mobile-notif-modal.open {
    display: flex;
  }
  .mobile-notif-modal__sheet {
    width: 100%;
    max-height: 82vh;
    background: var(--bg-card, #14172b);
    border-radius: 18px 18px 0 0;
    border-top: 1px solid rgba(139, 92, 246, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: mnSheetUp 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  }
  @keyframes mnSheetUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
  }
  .mobile-notif-modal__handle {
    width: 36px;
    height: 4px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 2px;
    margin: 0.6rem auto 0;
    flex-shrink: 0;
  }
  .mobile-notif-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 1rem 0.65rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    flex-shrink: 0;
  }
  .mobile-notif-modal__title {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
  }
  .mobile-notif-modal__title svg {
    stroke: #a78bfa;
    flex-shrink: 0;
  }
  .mobile-notif-modal__close {
    all: unset;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s;
  }
  .mobile-notif-modal__close:active {
    background: rgba(255, 255, 255, 0.1);
  }
  .mobile-notif-modal__close svg {
    stroke: rgba(255, 255, 255, 0.55);
  }
  .mobile-notif-modal__push-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(139, 92, 246, 0.06);
    flex-shrink: 0;
    min-height: 44px;
  }
  .mobile-notif-modal__push-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
  }
  .mobile-notif-modal__push-label svg {
    stroke: #a78bfa;
    flex-shrink: 0;
  }
  .mobile-notif-modal__list {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .mobile-notif-modal__list .notification-dropdown-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0;
  }
  .mobile-notif-modal__loading {
    padding: 2rem 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.35);
  }
  .mobile-notif-modal__loading .mn-spin {
    animation: mnSpin 0.9s linear infinite;
    stroke: rgba(139, 92, 246, 0.7);
  }
  @keyframes mnSpin {
    to { transform: rotate(360deg); }
  }
  .mobile-notif-modal__empty {
    padding: 2.5rem 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.85rem;
  }
  .mobile-notif-modal__footer {
    padding: 0.75rem 1rem;
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom, 0.75rem));
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    justify-content: center;
    flex-shrink: 0;
  }
  .mobile-notif-modal__clear {
    all: unset;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.5rem;
    border-radius: 8px;
    font-size: 0.83rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.12);
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    box-sizing: border-box;
  }
  .mobile-notif-modal__clear:active {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
    border-color: rgba(139, 92, 246, 0.3);
  }
  .mobile-notif-modal__clear svg {
    stroke: currentColor;
    flex-shrink: 0;
  }

  /* ── Brand logo ────────────────────────────────────────── */
  .mobile-nav__brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    color: var(--text-primary);
    text-decoration: none;
  }
  .mobile-nav__brand-logo {
    width: 24px;
    height: 24px;
    border-radius: 6px;
  }
  .mnb-pts-icon {
    color: #f59e0b;
    font-size: 0.75rem;
  }
  .mnb-pts-text {
    color: var(--text-muted, rgba(255,255,255,0.45));
    font-size: 0.75rem;
  }
  .mnb-pts-val {
    font-weight: 700;
    color: var(--accent-primary, #8b5cf6);
    font-size: 0.82rem;
    text-shadow: 0 0 8px var(--accent-primary, rgba(139, 92, 246, 0.6));
  }

  /* ── Points sub-bar ────────────────────────────────────── */
  .mobile-nav__subbar {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    height: 28px;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: var(--bg-primary, #0d0f18);
    border-bottom: 1px solid rgba(139, 92, 246, 0.12);
    z-index: 10000;
    font-size: 0.78rem;
  }
  .mobile-nav__subbar.visible {
    display: flex;
  }
  .mobile-nav__subbar-icon {
    color: #f59e0b;
    font-size: 0.75rem;
  }
  .mobile-nav__subbar-value {
    font-weight: 700;
    color: var(--accent-primary, #8b5cf6);
  }
  .mobile-nav__subbar-label {
    color: var(--text-muted, rgba(255,255,255,0.4));
  }

  /* Sub-bar body padding */
  body.has-mobile-subbar {
    padding-top: 84px !important; /* 56px nav + 28px subbar */
  }

  /* Sub-bar + maintenance banner combo */
  body.has-maintenance-banner .mobile-nav__subbar {
    top: calc(56px + 48px);
  }
  body.has-maintenance-banner.has-mobile-subbar {
    padding-top: calc(84px + 48px) !important;
  }

  /* Safe area support */
  @supports (padding-top: env(safe-area-inset-top)) {
    .mobile-nav__subbar {
      top: calc(56px + env(safe-area-inset-top));
    }
    body.has-mobile-subbar {
      padding-top: calc(84px + env(safe-area-inset-top)) !important;
    }
    body.has-maintenance-banner .mobile-nav__subbar {
      top: calc(56px + 48px + env(safe-area-inset-top));
    }
    body.has-maintenance-banner.has-mobile-subbar {
      padding-top: calc(84px + 48px + env(safe-area-inset-top)) !important;
    }
  }
}

/* ── Light theme overrides ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  /* Nav bar icons */
  [data-theme="light"] .mobile-nav__page-search {
    color: rgba(26, 29, 46, 0.45);
  }
  [data-theme="light"] .mobile-nav__page-search.active {
    color: #7c3aed;
  }
  [data-theme="light"] .mobile-nav__hamburger svg {
    stroke: rgba(26, 29, 46, 0.7);
  }
  [data-theme="light"] .mobile-nav__bell svg {
    stroke: rgba(26, 29, 46, 0.6);
  }
  [data-theme="light"] .mobile-nav__hamburger:active,
  [data-theme="light"] .mobile-nav__bell:active {
    background: rgba(139, 92, 246, 0.1);
  }

  /* Left drawer items */
  [data-theme="light"] .mobile-nav__drawer-item {
    color: rgba(26, 29, 46, 0.75);
  }
  [data-theme="light"] .mobile-nav__drawer-item.active {
    background: rgba(139, 92, 246, 0.12);
    color: #7c3aed;
  }
  [data-theme="light"] .mobile-nav__drawer-close svg {
    stroke: rgba(26, 29, 46, 0.55);
  }
  [data-theme="light"] .mobile-nav__drawer-close:active {
    background: rgba(26, 29, 46, 0.08);
  }

  /* Drawer footer controls */
  [data-theme="light"] .mobile-nav__lang-toggle {
    color: rgba(26, 29, 46, 0.65);
    border-color: rgba(26, 29, 46, 0.15);
  }
  [data-theme="light"] .mobile-nav__theme-toggle {
    border-color: rgba(26, 29, 46, 0.12);
  }
  [data-theme="light"] .mn-theme-icon svg {
    stroke: rgba(26, 29, 46, 0.6);
  }

  /* Right sidebar (user dropdown) */
  [data-theme="light"] .mn-sidebar__name {
    color: rgba(26, 29, 46, 0.92);
  }
  [data-theme="light"] .mn-sidebar__xp-bar {
    background: rgba(26, 29, 46, 0.1);
  }
  [data-theme="light"] .mn-sidebar__xp-text {
    color: rgba(26, 29, 46, 0.4);
  }
  [data-theme="light"] .mn-sidebar__close svg {
    stroke: rgba(26, 29, 46, 0.55);
  }
  [data-theme="light"] .mn-sidebar__close:active {
    background: rgba(26, 29, 46, 0.08);
  }
  [data-theme="light"] .mn-sidebar__item {
    color: rgba(26, 29, 46, 0.75);
  }
  [data-theme="light"] .mn-sidebar__item:active {
    background: rgba(139, 92, 246, 0.1);
    color: #7c3aed;
  }
  [data-theme="light"] .mn-sidebar__guest-title {
    color: rgba(26, 29, 46, 0.9);
  }
  [data-theme="light"] .mn-sidebar__lvl-badge {
    border-color: var(--bg-primary, #f5f5f7);
  }

  /* Notification bottom sheet */
  [data-theme="light"] .mobile-notif-modal__handle {
    background: rgba(26, 29, 46, 0.15);
  }
  [data-theme="light"] .mobile-notif-modal__header {
    border-bottom-color: rgba(26, 29, 46, 0.08);
  }
  [data-theme="light"] .mobile-notif-modal__title {
    color: rgba(26, 29, 46, 0.9);
  }
}
