/* ============================================
   NAVBAR SHARED STYLES
   Single source of truth for nav1b and nav2b.
   ============================================ */
/* Navbar base variables are provided by aurora-core.css */

    /* ============================================
       NAV 1B: MAIN NAVIGATION - Aurora Neon
       (Copiado exactamente de index.html)
       ============================================ */
    .nav1b {
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: 78px;
      padding: 0 24px;
      background: linear-gradient(135deg, rgba(7,10,16,0.98) 0%, rgba(13,17,23,0.95) 100%);
      border: 1px solid rgba(0,212,255,0.15);
      border-radius: 16px;
      backdrop-filter: blur(24px);
      position: relative;
      z-index: 220;
      overflow: visible;
      box-shadow: 0 0 30px rgba(0,212,255,0.05), inset 0 1px 0 rgba(0,212,255,0.1);
    }
    .nav1b::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 50%;
      height: 1px;
      background: linear-gradient(90deg, transparent, var(--cyan), transparent);
      animation: scanline 4s ease-in-out infinite;
    }
    @keyframes scanline {
      0% { left: -50%; }
      100% { left: 150%; }
    }
    .nav1b-left {
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .nav1b-logo {
      min-width: 140px;
      height: 55px;
      padding: 0;
      border-radius: 0;
      background: transparent;
      border: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      box-shadow: none;
      position: relative;
      overflow: visible;
    }
    .nav1b-logo::after {
      content: none;
    }
    @keyframes shimmer {
      0%, 100% { transform: translateX(-100%); }
      50% { transform: translateX(100%); }
    }
    .nav1b-logo img {
      width: 140px;
      max-width: 100%;
      height: auto;
      max-height: 55px;
      object-fit: contain;
      /* TASK-0248: canonical Aurora radius for the brand image; the TASK-0246
         override below repeats the same value, so the effective radius is 10px
         at every width. */
      border-radius: 10px;
      position: relative;
      z-index: 1;
      filter: drop-shadow(0 0 12px rgba(0, 212, 255, 0.22));
    }
    .nav1b-link {
      padding: 10px 18px;
      border-radius: 10px;
      color: var(--text-muted);
      font-family: 'JetBrains Mono', monospace;
      font-size: 12px;
      font-weight: 500;
      letter-spacing: 0.5px;
      text-decoration: none;
      transition: all 0.25s ease;
      border: 1px solid transparent;
      cursor: pointer;
      background: none;
      position: relative;
      white-space: nowrap;
    }
    .nav1b-link:hover {
      color: var(--cyan);
      background: rgba(0,212,255,0.08);
      border-color: rgba(0,212,255,0.2);
      box-shadow: 0 0 15px rgba(0,212,255,0.1);
      text-shadow: 0 0 8px rgba(0,212,255,0.3);
    }
    .nav1b-link.active {
      color: var(--cyan);
      background: rgba(0,212,255,0.12);
      border-color: rgba(0,212,255,0.3);
      box-shadow: 0 0 20px rgba(0,212,255,0.15), inset 0 0 10px rgba(0,212,255,0.05);
      text-shadow: 0 0 10px rgba(0,212,255,0.4);
    }
    .nav1b-right {
      display: flex;
      align-items: center;
      gap: 14px;
      position: relative;
      z-index: 130;
    }
    .nav1b-lang-switch {
      display: inline-flex;
      align-items: center;
      gap: 2px;
      padding: 3px;
      border-radius: 8px;
      border: 1px solid rgba(255, 255, 255, 0.1);
      background: rgba(255, 255, 255, 0.03);
    }
    .nav1b-lang-option {
      position: relative;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 30px;
      height: 24px;
      padding: 0 9px;
      border-radius: 6px;
      border: 1px solid transparent;
      font-family: 'JetBrains Mono', monospace;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.06em;
      line-height: 1;
      text-decoration: none;
      color: var(--text-muted);
      background: transparent;
      transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    }
    .nav1b-lang-option:hover {
      color: var(--cyan);
      background: rgba(0, 212, 255, 0.08);
      border-color: rgba(0, 212, 255, 0.2);
    }
    .nav1b-lang-option.active,
    .nav1b-lang-option.active:hover {
      color: var(--bg);
      background: var(--cyan);
      border-color: var(--cyan);
      box-shadow: 0 0 14px rgba(0, 212, 255, 0.35);
    }
    .nav1b-logout-form {
      margin: 0;
      display: inline-flex;
    }
    .nav1b-btn-admin,
    .nav1b-btn-logout {
      height: 40px;
      padding: 0 18px;
      border-radius: 12px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      text-decoration: none;
      font-family: 'JetBrains Mono', monospace;
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0.5px;
      white-space: nowrap;
      transition: all 0.28s ease;
      border: 1px solid transparent;
    }
    .nav1b-alertmenu {
      position: relative;
      display: inline-flex;
      align-items: center;
      z-index: 140;
    }
    .nav1b-alertmenu summary {
      list-style: none;
    }
    .nav1b-alertmenu summary::marker {
      content: "";
    }
    .nav1b-alertmenu summary::-webkit-details-marker {
      display: none;
    }
    .nav1b-alert-btn {
      position: relative;
      width: 46px;
      height: 46px;
      padding: 0;
      border-radius: 999px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      appearance: none;
      -webkit-appearance: none;
      color: #cfe7ff;
      background:
        radial-gradient(circle at 30% 25%, rgba(255,255,255,0.14), transparent 38%),
        linear-gradient(180deg, rgba(21, 33, 50, 0.96), rgba(10, 17, 28, 0.98));
      border: 1px solid rgba(86, 144, 255, 0.24);
      box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.26),
        inset 0 1px 0 rgba(255,255,255,0.08),
        inset 0 -10px 18px rgba(0,0,0,0.12);
      transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease, color 0.24s ease, background 0.24s ease;
    }
    .nav1b-alert-btn::before {
      content: "";
      position: absolute;
      inset: 1px;
      border-radius: inherit;
      border: 1px solid rgba(255,255,255,0.04);
      pointer-events: none;
    }
    .nav1b-alert-btn:hover,
    .nav1b-alertmenu[open] .nav1b-alert-btn {
      color: #ffffff;
      background:
        radial-gradient(circle at 30% 25%, rgba(255,255,255,0.16), transparent 38%),
        linear-gradient(180deg, rgba(30, 54, 86, 0.98), rgba(11, 22, 38, 0.98));
      border-color: rgba(96,165,250,0.52);
      box-shadow:
        0 16px 32px rgba(0,0,0,0.32),
        0 0 24px rgba(78,115,223,0.16),
        inset 0 1px 0 rgba(255,255,255,0.12);
      transform: translateY(-1px) scale(1.02);
    }
    .nav1b-alert-btn.has-critical {
      color: #ffffff;
      border-color: rgba(255, 107, 107, 0.4);
      box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.26),
        0 0 18px rgba(239,68,68,0.12),
        inset 0 1px 0 rgba(255,255,255,0.08);
    }
    .nav1b-alert-btn.has-alerts {
      border-color: rgba(78,115,223,0.42);
    }
    .nav1b-bell-icon {
      width: 18px;
      height: 18px;
      stroke-width: 2.15;
      filter: drop-shadow(0 0 10px rgba(130, 190, 255, 0.14));
    }
    .nav1b-alert-count {
      position: absolute;
      top: -5px;
      right: -4px;
      min-width: 20px;
      height: 20px;
      padding: 0 5px;
      border-radius: 999px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-family: 'JetBrains Mono', monospace;
      font-size: 10px;
      font-weight: 700;
      color: #fff;
      background: linear-gradient(135deg, #ff6b6b, #ff3d6e);
      border: 2px solid #0d1117;
      box-shadow: 0 8px 18px rgba(255, 61, 110, 0.36);
    }
    .nav1b-alert-dropdown {
      position: absolute;
      top: calc(100% + 14px);
      right: 0;
      width: 380px;
      max-width: min(380px, calc(100vw - 32px));
      padding: 0;
      border-radius: 22px;
      background:
        radial-gradient(circle at top right, rgba(80, 145, 255, 0.18), transparent 32%),
        linear-gradient(180deg, rgba(12, 18, 30, 0.98), rgba(8, 13, 22, 0.98));
      border: 1px solid rgba(125, 170, 255, 0.18);
      box-shadow:
        0 30px 60px rgba(0,0,0,0.38),
        0 0 0 1px rgba(255,255,255,0.03),
        inset 0 1px 0 rgba(255,255,255,0.06);
      opacity: 0;
      visibility: hidden;
      transform: translateY(10px) scale(0.98);
      transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
      overflow: hidden;
      z-index: 160;
      backdrop-filter: blur(20px);
    }
    .nav1b-alertmenu[open] .nav1b-alert-dropdown {
      opacity: 1;
      visibility: visible;
      transform: translateY(0) scale(1);
    }
    .nav1b-alert-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 18px 20px 14px;
      color: #eef6ff;
      font-family: 'JetBrains Mono', monospace;
      font-size: 12px;
      font-weight: 700;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      border-bottom: 1px solid rgba(125, 170, 255, 0.14);
      background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
    }
    .nav1b-alert-list {
      display: flex;
      flex-direction: column;
      max-height: 380px;
      overflow-y: auto;
      background: transparent;
    }
    .nav1b-alert-item,
    .nav1b-alert-empty {
      padding: 16px 20px;
      display: flex;
      align-items: flex-start;
      gap: 14px;
      text-decoration: none;
      background: transparent;
      border-bottom: 1px solid rgba(255,255,255,0.06);
      transition: background 0.2s ease, transform 0.2s ease;
    }
    .nav1b-alert-item:hover {
      background: rgba(255,255,255,0.03);
      transform: translateX(2px);
    }
    .nav1b-alert-icon {
      width: 42px;
      height: 42px;
      border-radius: 14px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      color: #fff;
      border: 1px solid rgba(255,255,255,0.06);
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
    }
    .nav1b-alert-icon.primary {
      background: linear-gradient(135deg, rgba(78,115,223,0.34), rgba(87,143,255,0.18));
    }
    .nav1b-alert-icon.success {
      background: linear-gradient(135deg, rgba(16,185,129,0.34), rgba(52,211,153,0.18));
    }
    .nav1b-alert-icon.warning {
      background: linear-gradient(135deg, rgba(245,158,11,0.38), rgba(251,191,36,0.18));
    }
    .nav1b-alert-copy {
      display: flex;
      flex-direction: column;
      gap: 6px;
      min-width: 0;
      flex: 1;
    }
    .nav1b-alert-date {
      color: #7f95b3;
      font-size: 11px;
      line-height: 1.1;
      font-family: 'JetBrains Mono', monospace;
      letter-spacing: 0.04em;
      text-transform: uppercase;
    }
    .nav1b-alert-text,
    .nav1b-alert-empty {
      color: #b8c6d9;
      font-size: 14px;
      line-height: 1.5;
    }
    .nav1b-alert-text-strong {
      display: block;
      color: #f5f9ff;
      font-weight: 700;
      margin-bottom: 1px;
      font-size: 15px;
    }
    .nav1b-alert-footer {
      border-top: 1px solid rgba(255,255,255,0.06);
      display: flex;
      justify-content: center;
      background: rgba(255,255,255,0.02);
    }
    .nav1b-alert-footer-link {
      display: block;
      width: 100%;
      padding: 15px 18px;
      color: #d8e8ff;
      text-decoration: none;
      font-family: 'JetBrains Mono', monospace;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-align: center;
      text-transform: uppercase;
      transition: background 0.2s ease, color 0.2s ease, letter-spacing 0.2s ease;
    }
    .nav1b-alert-footer-link:hover {
      background: rgba(255,255,255,0.03);
      color: #ffffff;
      letter-spacing: 0.12em;
    }
    .nav1b-alert-mark-all,
    .nav1b-alert-read,
    .nav1b-alert-retry {
      border: 0;
      color: #9defff;
      background: transparent;
      font: 700 9px 'JetBrains Mono', monospace;
      letter-spacing: .04em;
      cursor: pointer;
    }
    .nav1b-alert-mark-all:hover,
    .nav1b-alert-read:hover,
    .nav1b-alert-retry:hover { color: #fff; text-decoration: underline; }
    .nav1b-alert-meta { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
    .nav1b-alert-state { color: #80d8b8; font: 700 9px 'JetBrains Mono', monospace; text-transform: uppercase; }
    .nav1b-alert-action { align-self: flex-start; margin-top: 3px; color: #aeeeff; font: 700 10px 'JetBrains Mono', monospace; text-decoration: none; }
    .nav1b-alert-action:hover { color: #fff; text-decoration: underline; }
    .nav1b-alert-read { align-self: flex-start; padding: 0; margin-top: 3px; }
    .nav1b-alert-item.is-unread { background: linear-gradient(90deg, rgba(0,212,255,.08), transparent 52%); }
    .nav1b-alert-icon-symbol { font: 800 16px/1 'JetBrains Mono', monospace; }
    .nav1b-alert-btn.has-error { border-color: rgba(245,158,11,.48); color: #ffd27d; }
    .nav1b-btn-admin {
      color: #9fe7ff;
      background: linear-gradient(135deg, rgba(0,212,255,0.14), rgba(44,108,255,0.14));
      border-color: rgba(0,212,255,0.28);
      box-shadow: 0 0 18px rgba(0,212,255,0.08), inset 0 1px 0 rgba(255,255,255,0.04);
    }
    .nav1b-btn-admin:hover,
    .nav1b-btn-admin.active {
      color: #d9f8ff;
      border-color: rgba(0,212,255,0.55);
      background: linear-gradient(135deg, rgba(0,212,255,0.22), rgba(44,108,255,0.2));
      box-shadow: 0 0 24px rgba(0,212,255,0.18), 0 0 48px rgba(44,108,255,0.1);
      transform: translateY(-1px);
    }
    .nav1b-btn-icon {
      flex-shrink: 0;
      opacity: 0.95;
    }
    .nav1b-bell-icon {
      display: block;
    }
    .nav1b-btn-logout {
      appearance: none;
      cursor: pointer;
      color: #ff8c98;
      background: rgba(239,68,68,0.1);
      border-color: rgba(239,68,68,0.22);
      box-shadow: 0 0 14px rgba(239,68,68,0.06);
    }
    .nav1b-btn-logout:hover {
      color: #ffd1d7;
      border-color: rgba(239,68,68,0.45);
      background: rgba(239,68,68,0.18);
      box-shadow: 0 0 22px rgba(239,68,68,0.14);
      transform: translateY(-1px);
    }
    .nav1b-search {
      position: relative;
    }
    .nav1b-search input {
      width: 260px;
      height: 40px;
      padding: 0 44px 0 16px;
      background: rgba(10,14,20,0.9);
      border: 1px solid rgba(0,212,255,0.12);
      border-radius: 12px;
      color: var(--text);
      font-family: 'JetBrains Mono', monospace;
      font-size: 12px;
      outline: none;
      transition: all 0.25s ease;
    }
    .nav1b-search input:focus {
      border-color: var(--cyan);
      box-shadow: 0 0 20px rgba(0,212,255,0.15), 0 0 0 3px rgba(0,212,255,0.08);
    }
    .nav1b-search input::placeholder { color: var(--text-dim); }
    .nav1b-shortcut {
      position: absolute;
      right: 10px;
      top: 50%;
      transform: translateY(-50%);
      padding: 3px 8px;
      background: rgba(0,212,255,0.08);
      border: 1px solid rgba(0,212,255,0.15);
      border-radius: 6px;
      font-family: 'JetBrains Mono', monospace;
      font-size: 9px;
      color: var(--cyan);
    }
    .nav1b-btn-cats {
      height: 40px;
      padding: 0 22px;
      background: linear-gradient(135deg, rgba(0,212,255,0.15), rgba(139,92,246,0.15));
      border: 1px solid rgba(0,212,255,0.25);
      border-radius: 12px;
      color: var(--cyan);
      font-family: 'JetBrains Mono', monospace;
      font-size: 11px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
      position: relative;
      overflow: hidden;
      white-space: nowrap;
      letter-spacing: 0.5px;
    }
    .nav1b-btn-cats:hover {
      background: linear-gradient(135deg, rgba(0,212,255,0.25), rgba(139,92,246,0.25));
      border-color: var(--cyan);
      box-shadow: 0 0 30px rgba(0,212,255,0.2), 0 0 60px rgba(139,92,246,0.1);
      transform: translateY(-2px);
      text-shadow: 0 0 10px rgba(0,212,255,0.5);
    }


    /* ============================================
       NAV 2B: USER NAVIGATION - Aurora Neon
       (Copiado exactamente de index.html)
       ============================================ */
    .nav2b {
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: 56px;
      padding: 0 24px;
      background: linear-gradient(135deg, rgba(7,10,16,0.95) 0%, rgba(13,17,23,0.92) 100%);
      border: 1px solid rgba(255,45,85,0.1);
      border-radius: 16px;
      backdrop-filter: blur(24px);
      position: relative;
      overflow: visible;
      box-shadow: 0 0 25px rgba(255,45,85,0.04), inset 0 1px 0 rgba(255,45,85,0.08);
      z-index: 110;
    }
    .nav2b-left {
      display: flex;
      align-items: center;
      gap: 16px;
    }
    .nav2b-usermenu {
      position: relative;
      display: flex;
      align-items: center;
      z-index: 170;
    }
    .nav2b-usermenu summary {
      list-style: none;
    }
    .nav2b-usermenu summary::-webkit-details-marker {
      display: none;
    }
    .nav2b-avatar {
        --user-avatar-size: 42px;
        --user-avatar-font-size: 16px;
        --user-avatar-ring-width: 1.2px;
        flex-shrink: 0;
      }
    .nav2b-username {
      /* TASK-0045: a display font for the username; 'JetBrains Mono',
         monospace stays as the explicit fallback if Google Fonts fails to
         load. TASK-0114: replaced UnifrakturCook (blackletter) with Cinzel
         (bold serif display, "fancy text" style) — only weight 700 is
         requested (see app/Layout/header.php), matching the bold
         declaration below; no italic is requested or declared. */
      font-family: 'Cinzel', 'JetBrains Mono', monospace;
      font-size: 14px;
      font-weight: bold;
      color: var(--rank-color, var(--sysop));
      text-decoration: none;
      text-shadow: 0 0 10px var(--rank-glow, rgba(255,45,85,0.3));
    }
    .nav2b-badge {
      padding: 4px 12px;
      background: var(--rank-soft, rgba(255,45,85,0.12));
      border: 1px solid var(--rank-border, rgba(255,45,85,0.25));
      border-radius: 8px;
      font-family: 'JetBrains Mono', monospace;
      font-size: 9px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.8px;
      color: var(--rank-color, var(--sysop));
      box-shadow: 0 0 8px color-mix(in srgb, var(--rank-color, #ff2d55) 20%, transparent);
    }
    .nav2b-user-trigger {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      min-height: 36px;
      padding: 6px 10px;
      border: 1px solid transparent;
      border-radius: 12px;
      background: transparent;
      color: inherit;
      cursor: pointer;
      transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    }
    .nav2b-user-trigger:hover,
    .nav2b-usermenu[open] .nav2b-user-trigger {
      background: rgba(12,23,35,0.96);
      border-color: var(--rank-border, rgba(0,212,255,0.2));
      box-shadow: 0 10px 24px rgba(0,0,0,0.24), 0 0 18px color-mix(in srgb, var(--rank-color, #00d4ff) 16%, transparent);
    }
    .nav2b-user-trigger:focus-visible {
      outline: none;
      border-color: var(--rank-color, var(--cyan));
      box-shadow: 0 0 0 2px color-mix(in srgb, var(--rank-color, #00d4ff) 24%, transparent);
    }
    .nav2b-user-caret {
      width: 12px;
      height: 12px;
      color: var(--text-muted);
      transition: transform 0.2s ease, color 0.2s ease;
    }
    .nav2b-usermenu[open] .nav2b-user-caret {
      transform: rotate(180deg);
      color: var(--rank-color, var(--cyan));
    }
    .nav2b-user-dropdown {
      display: none;
      position: absolute;
      top: calc(100% + 12px);
      left: 0;
      min-width: 240px;
      padding: 14px;
      border-radius: 16px;
      border: 1px solid rgba(0,212,255,0.12);
      background: linear-gradient(180deg, rgba(18,28,40,0.98), rgba(10,16,25,0.98));
      box-shadow: 0 22px 48px rgba(0,0,0,0.38), inset 0 1px 0 rgba(255,255,255,0.04);
      z-index: 190;
    }
    .nav2b-usermenu[open] .nav2b-user-dropdown {
      display: block;
    }
    .nav2b-user-dropdown-title {
      font-family: 'JetBrains Mono', monospace;
      font-size: 11px;
      line-height: 1.5;
      font-weight: 600;
      color: var(--rank-color, var(--cyan));
      letter-spacing: 0.04em;
    }
    .nav2b-user-dropdown-separator {
      height: 1px;
      margin: 12px 0 10px;
      background: linear-gradient(90deg, rgba(0,212,255,0.22), rgba(255,255,255,0.06));
    }
    .nav2b-user-dropdown-link {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 10px 12px;
      border-radius: 10px;
      color: var(--text);
      text-decoration: none;
      font-family: 'JetBrains Mono', monospace;
      font-size: 11px;
      transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    }
    .nav2b-user-dropdown-link:hover {
      background: rgba(0,212,255,0.08);
      color: var(--cyan);
      transform: translateX(2px);
    }
    /* TASK-0122: aligns the static "Mi perfil" icon with its label text,
       matching the stroke-icon convention already used elsewhere in the
       navbar (see .nav1b-btn-icon). */
    .nav2b-user-dropdown-icon {
      flex-shrink: 0;
      margin-right: 6px;
      vertical-align: -2px;
    }
    .nav2b-link {
      color: var(--text-muted);
      font-family: 'JetBrains Mono', monospace;
      font-size: 11px;
      font-weight: 400;
      text-decoration: none;
      transition: all 0.2s ease;
      padding: 6px 10px;
      border-radius: 8px;
      white-space: nowrap;
    }
    .nav2b-link:hover {
      color: var(--cyan);
      background: rgba(0,212,255,0.06);
      text-shadow: 0 0 8px rgba(0,212,255,0.3);
    }
    .nav2b-support-link {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      min-height: 34px;
      padding: 0 11px;
      border: 1px solid rgba(52,211,153,0.2);
      border-radius: 4px 11px;
      color: #8fc9b7;
      background: linear-gradient(135deg, rgba(16,185,129,0.08), rgba(5,18,24,0.44));
      font-family: 'JetBrains Mono', monospace;
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 0.04em;
      text-decoration: none;
      text-transform: uppercase;
      white-space: nowrap;
      transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    }
    .nav2b-support-link > svg {
      width: 16px;
      height: 16px;
      fill: none;
      stroke: currentColor;
      stroke-linecap: round;
      stroke-linejoin: round;
      stroke-width: 1.6;
    }
    .nav2b-support-link:hover,
    .nav2b-support-link.active {
      color: #7ce8c5;
      border-color: rgba(52,211,153,0.48);
      box-shadow: 0 0 22px rgba(16,185,129,0.12);
      transform: translateY(-1px);
    }
    .nav2b-support-badge {
      display: grid;
      place-items: center;
      min-width: 20px;
      height: 20px;
      padding: 0 5px;
      border-radius: 7px;
      color: #05251c;
      background: #48dfb1;
      box-shadow: 0 0 12px rgba(52,211,153,0.35);
      font-size: 9px;
    }
    .nav2b-btn {
      height: 34px;
      padding: 0 16px;
      border-radius: 10px;
      font-family: 'JetBrains Mono', monospace;
      font-size: 10px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.25s ease;
      border: 1px solid transparent;
      letter-spacing: 0.5px;
      white-space: nowrap;
    }
    .nav2b-btn-admin {
      background: rgba(139,92,246,0.12);
      border-color: rgba(139,92,246,0.25);
      color: var(--purple);
      box-shadow: 0 0 10px rgba(139,92,246,0.08);
    }
    .nav2b-btn-admin:hover {
      background: rgba(139,92,246,0.22);
      border-color: var(--purple);
      box-shadow: 0 0 20px rgba(139,92,246,0.15);
      transform: translateY(-1px);
      text-shadow: 0 0 8px rgba(139,92,246,0.4);
    }
    .nav2b-btn-logout {
      background: rgba(239,68,68,0.1);
      border-color: rgba(239,68,68,0.2);
      color: var(--red);
      box-shadow: 0 0 10px rgba(239,68,68,0.05);
    }
    .nav2b-btn-logout:hover {
      background: rgba(239,68,68,0.2);
      border-color: var(--red);
      box-shadow: 0 0 20px rgba(239,68,68,0.12);
      transform: translateY(-1px);
      text-shadow: 0 0 8px rgba(239,68,68,0.3);
    }
    /* TASK-0044: .nav2b-right / .nav2b-stat / .nav2b-stat-label /
       .nav2b-stat-value base rules retired from this historical block — a
       single canonical contract for the four navbar stats now lives under
       "GLOBAL NAVIGATION 2026" below (search .nav2b-right there), including
       the .ratio/.sub/.des/.sem color modifiers that used to live here. This
       avoids two competing base declarations for the same selectors. */


    /* Heart icon for donate */
    .heart-icon { display: inline-flex; margin-right: 4px; vertical-align: middle; }
    .heart-icon svg { vertical-align: middle; }

@media (max-width: 768px) {
      .nav1b, .nav2b {
        flex-wrap: wrap;
        height: auto;
        padding: 12px;
        gap: 8px;
      }
      .nav1b-right {
        width: 100%;
      }
      /* TASK-0044: the .nav2b-right override that used to sit here
         (justify-content/flex-wrap/gap) and the .nav2b-stat padding override
         right after it are retired — both are superseded by the single
         canonical .nav2b-right/.nav2b-stat responsive contract under
         "GLOBAL NAVIGATION 2026" (1180px/960px/620px breakpoints below),
         which this 768px breakpoint overlapped and contradicted. */
      .nav1b-alert-dropdown {
        right: auto;
        left: 0;
      }
      .nav1b-search input {
        width: 100%;
      }
      .nav2b-usermenu {
        width: 100%;
      }
      .nav2b-user-trigger {
        width: 100%;
        justify-content: space-between;
      }
      .nav2b-user-dropdown {
        left: 0;
        right: auto;
        width: min(280px, calc(100vw - 48px));
      }
}

/* =========================================================
   AJUSTES DE PRODUCCION: enlaces como botones y estado alfa
   ========================================================= */
.nav1b-btn-cats {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

a.nav2b-btn {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

/* Compact private-message notice */
.pm-inbox-notice {
  position: relative;
  z-index: 35;
  width: min(calc(100% - 32px), 680px);
  min-height: 62px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto 34px;
  align-items: center;
  gap: 12px;
  margin: 14px auto 0;
  padding: 8px 9px 8px 10px;
  overflow: hidden;
  border: 1px solid rgba(0, 212, 255, .22);
  border-radius: 18px 6px 18px 6px;
  background: linear-gradient(108deg, rgba(13, 21, 34, .96), rgba(8, 14, 23, .94));
  box-shadow: 0 15px 38px rgba(0, 0, 0, .28), 0 0 24px rgba(0, 212, 255, .055), inset 0 1px rgba(255, 255, 255, .035);
  backdrop-filter: blur(14px);
  animation: pm-notice-enter .36s cubic-bezier(.16, 1, .3, 1) both;
}

.pm-inbox-notice::before {
  content: "";
  position: absolute;
  width: 82px;
  height: 2px;
  top: 0;
  left: 20px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  box-shadow: 0 0 14px rgba(0, 212, 255, .65);
}

.pm-inbox-notice__signal {
  position: relative;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #73e9ff;
  border: 1px solid rgba(0, 212, 255, .2);
  border-radius: 13px 4px 13px 4px;
  background: rgba(0, 212, 255, .085);
}

.pm-inbox-notice__signal svg { width: 21px; height: 21px; }

.pm-inbox-notice__signal span {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  color: #061018;
  border: 2px solid #0c1522;
  border-radius: 999px;
  background: var(--cyan);
  font: 800 8px/1 'JetBrains Mono', monospace;
}

.pm-inbox-notice__copy { min-width: 0; }
.pm-inbox-notice__copy strong { display: block; overflow: hidden; color: #edfaff; font-size: 13px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.pm-inbox-notice__copy span { display: block; margin-top: 4px; overflow: hidden; color: var(--text-muted); font-size: 10px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }

.pm-inbox-notice__action {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 13px;
  color: #07151d;
  border-radius: 10px 3px 10px 3px;
  background: linear-gradient(135deg, #57eaff, #00bce7);
  box-shadow: 0 9px 20px rgba(0, 212, 255, .14);
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease;
}

.pm-inbox-notice__action svg { width: 14px; height: 14px; }
.pm-inbox-notice__action:hover { color: #07151d; text-decoration: none; transform: translateY(-1px); box-shadow: 0 12px 24px rgba(0, 212, 255, .22); }
.pm-inbox-notice__action:focus-visible,
.pm-inbox-notice__close:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

.pm-inbox-notice__close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--text-dim);
  border: 0;
  border-radius: 9px;
  background: transparent;
  cursor: pointer;
  transition: color .2s ease, background .2s ease;
}

.pm-inbox-notice__close svg { width: 16px; height: 16px; }
.pm-inbox-notice__close:hover { color: #f4fbff; background: rgba(255, 255, 255, .055); }
.pm-inbox-notice.is-leaving { animation: pm-notice-leave .22s ease forwards; }

@keyframes pm-notice-enter { from { opacity: 0; transform: translateY(-10px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes pm-notice-leave { to { opacity: 0; transform: translateY(-7px) scale(.985); } }

@media (max-width: 620px) {
  .pm-inbox-notice { grid-template-columns: 42px minmax(0, 1fr) 32px; width: min(calc(100% - 24px), 500px); padding: 8px; }
  .pm-inbox-notice__action { grid-column: 2 / 3; min-height: 34px; justify-self: start; margin-top: -2px; }
  .pm-inbox-notice__close { grid-column: 3; grid-row: 1; }
  .pm-inbox-notice__copy span { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  .pm-inbox-notice,
  .pm-inbox-notice.is-leaving { animation: none; }
  .pm-inbox-notice__action,
  .pm-inbox-notice__close { transition: none; }
}

/* =========================================================
   GLOBAL NAVIGATION 2026 - unified Aurora command deck
   ========================================================= */
.navbars-wrapper {
  /* TASK-0246: the approved Aurora Command deck joins both bars into one
     rounded surface; each bar keeps its own outer corners below. */
  gap: 0;
}

.navbars-wrapper::before {
  content: '';
  position: absolute;
  top: var(--shell-nav-padding-top);
  left: calc(var(--shell-padding-x) + 28px);
  width: 180px;
  height: 1px;
  z-index: 225;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.72), transparent);
  box-shadow: 0 0 18px rgba(0, 212, 255, 0.45);
}

.nav1b,
.nav2b {
  isolation: isolate;
  backdrop-filter: blur(28px) saturate(1.15);
}

.nav1b {
  min-height: 70px;
  height: auto;
  gap: 18px;
  padding: 12px 20px;
  border-color: rgba(0, 212, 255, 0.15);
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(105deg, rgba(11, 32, 42, 0.97), rgba(8, 15, 23, 0.97) 60%);
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* A context that renders the primary bar alone (no user nav) keeps a closed,
   fully rounded surface instead of the deck's open bottom edge. */
.nav1b:last-child {
  border-bottom: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: 16px;
}

.nav1b::before {
  top: auto;
  bottom: 0;
  left: 18px;
  width: 34%;
  height: 1px;
  opacity: 0.7;
  animation: none;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}

.nav1b::after {
  content: '';
  position: absolute;
  right: 10%;
  bottom: -45px;
  width: 220px;
  height: 80px;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
  background: rgba(52, 111, 255, 0.13);
  filter: blur(50px);
}

.nav1b-left {
  flex: 1 1 auto;
  min-width: 0;
  gap: 18px;
}

.nav1b-logo {
  width: 140px;
  min-width: 140px;
  height: 50px;
  padding-right: 0;
  border-right: 0;
}

.nav1b-logo img {
  width: 140px;
  max-height: 50px;
  /* TASK-0248: 5px read as square at this size; 10px is visibly rounded and is
     the radius the responsive blocks below inherit unchanged. */
  border-radius: 10px;
  filter: drop-shadow(0 0 14px rgba(0, 212, 255, 0.18));
}

.nav1b-links {
  display: flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.nav1b-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 9px;
  color: #b9c9dc;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: color 0.22s ease, background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.nav1b-link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0;
  transform: translateX(-50%) scale(0.5);
  box-shadow: 0 0 10px currentColor;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.nav1b-link:hover {
  color: var(--cyan);
  border-color: transparent;
  background: rgba(0, 212, 255, 0.07);
  box-shadow: none;
  text-shadow: none;
}

.nav1b-link.active {
  color: #e7faff;
  border-color: transparent;
  background: rgba(0, 212, 255, 0.07);
  box-shadow: inset 0 0 0 1px rgba(0, 212, 255, 0.25), 0 0 18px rgba(0, 212, 255, 0.04);
  text-shadow: none;
}

.nav1b-link.active::after {
  opacity: 0;
}

.nav1b-support-link { gap: 7px; }
.nav1b-support-link svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.nav1b-support-badge {
    display: inline-grid;
    place-items: center;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #ef476f;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
}
.nav2b-seed-bonus-score { color: #f7d980; font-variant-numeric: tabular-nums; }
@media (max-width: 620px) { .nav2b-seed-bonus-score { font-size: 9px; } }

/* TASK-0246: Tienda sits with the other tools on the right of the first bar,
   in the approved gold treatment, keeping its own route and permission gate. */
.nav1b-store-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid rgba(229, 193, 106, 0.28);
  border-radius: 10px;
  background: rgba(216, 180, 86, 0.07);
  color: #e5c16a;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.nav1b-store-link::before {
  content: '';
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border: 1px solid rgba(229, 193, 106, 0.75);
  border-radius: 3px;
  transform: rotate(45deg);
}

.nav1b-store-link > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav1b-store-link:hover,
.nav1b-store-link.active {
  color: #f4d689;
  border-color: rgba(229, 193, 106, 0.55);
  background: rgba(216, 180, 86, 0.13);
  text-shadow: none;
}

.nav1b-right {
  flex: 0 0 auto;
  gap: 9px;
  min-height: 40px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.nav1b-lang-switch {
  gap: 2px;
  padding: 2px;
}

.nav1b-alert-btn {
  width: 40px;
  height: 40px;
  border-color: rgba(0, 212, 255, 0.18);
  background: rgba(8, 15, 23, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.nav1b-alert-count {
  top: -6px;
  right: -5px;
}

.nav1b-btn-admin,
.nav1b-btn-logout {
  height: 40px;
  padding: 0 13px;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: none;
}

.nav1b-btn-admin {
  border-color: rgba(0, 212, 255, 0.22);
  background: rgba(0, 212, 255, 0.06);
  color: var(--cyan);
}

/* TASK-0246: compact-width disclosure for the primary links. It is shown
   only once aurora.js marks the bar as enhanced, so with JS disabled the
   links keep their own always-visible row. */
.nav1b-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(0, 212, 255, 0.18);
  border-radius: 10px;
  background: rgba(8, 15, 23, 0.7);
  color: var(--text-secondary);
  cursor: pointer;
}

.nav1b-menu-toggle:hover {
  color: var(--cyan);
  border-color: rgba(0, 212, 255, 0.4);
}

.nav2b {
  /* Page styles such as Bootstrap must not change the shared navbar's type. */
  font-family: 'Inter', sans-serif;
  min-height: 62px;
  height: auto;
  gap: 18px;
  padding: 11px 20px;
  border-color: rgba(0, 212, 255, 0.15);
  border-top: 0;
  border-radius: 0 0 16px 16px;
  background: rgba(8, 13, 20, 0.97);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.22);
}

.nav2b::before {
  content: '';
  position: absolute;
  top: 0;
  right: 22px;
  width: 28%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.28), transparent);
}

.nav2b-left {
  flex: 0 1 auto;
  min-width: 0;
  gap: 22px;
}

.nav2b-identity {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.nav2b-avatar {
  --user-avatar-size: 40px;
  --user-avatar-font-size: 15px;
}

.nav2b-user-trigger {
  min-height: 38px;
  gap: 8px;
  padding: 5px 7px;
  border-radius: 10px;
}

.nav2b-username {
  /* TASK-0045-FIX-02: this later rule is the one that actually wins the
     cascade over the canonical rule's own font-size (both same
     specificity, this one comes later in the file) — 17px is the real,
     effective size of the username, a deliberate 4px increase over the
     13px it was rendering at before this FIX. TASK-0122: nudged back down
     to 15px, a smaller effective size while staying above the pre-FIX
     13px; no other property in this rule changes. */
  max-width: 150px;
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav2b-badge {
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 9px;
  letter-spacing: 0.9px;
}

.nav2b-quicklinks {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.nav2b-link,
.nav2b-support-link {
  min-height: 36px;
  border-radius: 10px;
}

.nav2b-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px 0 30px;
  border: 1px solid rgba(229, 193, 106, 0.22);
  background: rgba(216, 180, 86, 0.07);
  color: #e5c16a;
  font-size: 12px;
}

.nav2b-link::before {
  content: '';
  position: absolute;
  left: 11px;
  width: 8px;
  height: 8px;
  border: 1px solid rgba(255, 204, 82, 0.62);
  border-radius: 50%;
  box-shadow: inset 0 0 5px rgba(255, 204, 82, 0.3), 0 0 8px rgba(255, 204, 82, 0.14);
}

.nav2b-link:hover {
  color: #f4d689;
  border-color: rgba(229, 193, 106, 0.48);
  background: rgba(216, 180, 86, 0.13);
}

.nav2b-support-link {
  padding: 0 12px;
  border-radius: 10px 3px 10px 3px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.09), rgba(5, 18, 24, 0.38));
}

/* TASK-0044: single canonical contract for the second navbar's four
   stats (RATIO | SUB | DES | SEEDERS/LEECHERS), self-contained — the
   historical "NAV 2B" block above no longer declares .nav2b-right/
   .nav2b-stat/.nav2b-stat-label/.nav2b-stat-value at all, so this is the
   only base declaration for any of them (verified by
   tests/Application/Navigation/NavbarUserStatsPresentationContractTest.php).
   Desktop: a compact four-column panel with vertical divider lines between
   stats, each stat's label stacked above its value. Breakpoints below
   (1180px/960px/620px) convert this deterministically down to four fluid
   columns, then a tighter single-row layout, without dropping any metric or
   introducing horizontal overflow. */
.nav2b-right {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  justify-content: flex-end;
  gap: 0;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.nav2b-stat {
  position: relative;
  display: flex;
  min-width: 92px;
  min-height: 42px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  padding: 2px 0 2px 22px;
  margin-left: 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-family: 'JetBrains Mono', monospace;
}

.nav2b-stat::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: rgba(0, 212, 255, 0.15);
}

.nav2b-stat-label {
  max-width: 100%;
  overflow: hidden;
  color: #a1b1c5;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav2b-stat-value {
  /* JetBrains Mono is loaded by the shared shell on every authenticated page. */
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
}

.nav2b-stat-value.ratio { color: var(--green); text-shadow: 0 0 8px rgba(16, 185, 129, 0.3); }
.nav2b-stat-value.sub { color: var(--cyan); text-shadow: 0 0 8px rgba(0, 212, 255, 0.3); }
.nav2b-stat-value.des { color: var(--orange); text-shadow: 0 0 8px rgba(245, 158, 11, 0.3); }
.nav2b-stat-value.sem {
  color: #a7b7ca;
}

/* TASK-0246: the logout row closes the user menu. It is the same POST form
   the first bar used to render, only relocated — never a link. */
.nav2b-user-dropdown-logout {
  margin: 6px 0 0;
  padding-top: 6px;
  border-top: 1px solid rgba(0, 212, 255, 0.12);
}

.nav2b-user-dropdown-logout button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #ed7792;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav2b-user-dropdown-logout button:hover {
  background: rgba(237, 119, 146, 0.1);
  color: #ff9db3;
}

.nav1b-link:focus-visible,
.nav1b-store-link:focus-visible,
.nav1b-lang-option:focus-visible,
.nav1b-btn-admin:focus-visible,
.nav1b-btn-logout:focus-visible,
.nav1b-menu-toggle:focus-visible,
.nav2b-link:focus-visible,
.nav2b-support-link:focus-visible,
.nav2b-user-dropdown-logout button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

@media (max-width: 1180px) {
  .nav1b {
    padding-right: 12px;
  }

  .nav1b-left {
    gap: 9px;
  }

  .nav1b-logo {
    width: 112px;
    min-width: 112px;
    padding-right: 9px;
  }

  .nav1b-logo img {
    width: 104px;
  }

  .nav1b-link {
    padding-left: 11px;
    padding-right: 11px;
  }

  .nav1b-right {
    gap: 5px;
  }

  .nav1b-btn-admin,
  .nav1b-btn-logout,
  .nav1b-store-link {
    padding: 0 10px;
  }

  .nav2b-stat {
    min-width: 74px;
    margin-left: 8px;
    padding-left: 14px;
  }

  .nav2b-stat-value {
    font-size: 13px;
  }
}

@media (max-width: 960px) {
  .nav1b {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    height: auto;
    min-height: 0;
    padding: 9px;
  }

  .nav1b-left {
    display: contents;
  }

  .nav1b-logo {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    border-right: 0;
  }

  .nav1b-right {
    grid-column: 2;
    grid-row: 1;
    width: auto;
    justify-self: end;
  }

  .nav1b-links {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }

  .nav1b-links::-webkit-scrollbar {
    display: none;
  }

  .nav1b-link {
    flex: 0 0 auto;
  }

  /* TASK-0246: with JS the links live behind the toggle; without it they
     keep the scrollable row above, so every destination stays reachable. */
  .nav1b.has-nav-toggle .nav1b-menu-toggle {
    display: inline-flex;
  }

  .nav1b.has-nav-toggle .nav1b-links {
    display: none;
  }

  .nav1b.has-nav-toggle.is-menu-open .nav1b-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow: visible;
  }

  .nav1b.has-nav-toggle.is-menu-open .nav1b-link {
    justify-content: flex-start;
  }

  .nav2b-stat {
    margin-left: 0;
    padding-left: 12px;
  }

  .nav2b {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    height: auto;
    min-height: 0;
    padding: 9px;
  }

  .nav2b-left,
  .nav2b-right {
    width: 100%;
  }

  .nav2b-left {
    justify-content: space-between;
  }

  .nav2b-right {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .nav2b-stat {
    min-width: 0;
  }
}

@media (max-width: 620px) {
  .navbars-wrapper {
    gap: 6px;
  }

  .navbars-wrapper::before {
    left: 28px;
    width: 105px;
  }

  .nav1b {
    padding: 10px 12px;
  }

  .nav1b-logo {
    width: 104px;
    min-width: 0;
    max-width: 104px;
    height: 44px;
  }

  .nav1b-logo img {
    width: 100px;
    max-height: 43px;
  }

  .nav1b-right {
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
    min-height: 40px;
    padding: 0;
  }

  /* Tienda, idioma y Admin siguen accesibles en la barra: Tienda se compacta
     al icono con su etiqueta accesible, igual que Admin y el logout. */
  .nav1b-store-link {
    width: 34px;
    min-width: 34px;
    min-height: 34px;
    justify-content: center;
    padding: 0;
  }

  .nav1b-store-link > span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .nav1b-lang-switch {
    gap: 2px;
    padding: 2px;
  }

  .nav1b-lang-option {
    min-width: 26px;
    height: 22px;
    padding: 0 6px;
    font-size: 10px;
  }

  .nav1b-alert-btn,
  .nav1b-btn-admin,
  .nav1b-btn-logout,
  .nav1b-menu-toggle {
    width: 34px;
    min-width: 34px;
    height: 34px;
    padding: 0;
  }

  .nav1b-btn-admin > span,
  .nav1b-btn-logout > span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .nav1b-alert-dropdown {
    position: fixed;
    top: 72px;
    right: 12px;
    left: 12px;
    width: auto;
    max-width: none;
  }

  .nav1b-link {
    min-height: 38px;
    padding: 0 12px;
    font-size: 13px;
  }

  .nav2b {
    padding: 10px 12px;
  }

  .nav2b-left {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
  }

  .nav2b-identity {
    width: 100%;
  }

  .nav2b-usermenu {
    min-width: 0;
    width: auto;
    flex: 1 1 auto;
  }

  .nav2b-user-trigger {
    width: 100%;
    justify-content: flex-start;
  }

  .nav2b-quicklinks {
    width: 100%;
  }

  .nav2b-link,
  .nav2b-support-link {
    flex: 1 1 auto;
    justify-content: center;
  }

  .nav2b-right {
    gap: 0;
    padding: 3px;
  }

  .nav2b-stat {
    min-width: 0;
    min-height: 40px;
    margin-left: 0;
    padding: 4px 0 4px 8px;
  }

  .nav2b-stat-label {
    font-size: 8px;
    letter-spacing: 0.55px;
  }

  .nav2b-stat-value {
    max-width: 100%;
    overflow: hidden;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav2b-user-dropdown {
    width: min(280px, calc(100vw - 48px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav1b-link,
  .nav1b-link::after,
  .nav1b-lang-option,
  .nav1b-alert-btn,
  .nav1b-btn-admin,
  .nav1b-btn-logout,
  .nav1b-menu-toggle,
  .nav2b-user-trigger,
  .nav2b-user-dropdown-logout button,
  .nav2b-link,
  .nav2b-support-link {
    transition: none;
  }
}
