/* =========================================================================
   Menú móvil (≤768px) — panel lateral.
   Solo cambia el diseño en móvil; en escritorio el navbar queda igual.
   Usa #navbar-menu para ganar a los estilos antiguos (navbar.css y los
   estilos en línea de base.html) sin tener que tocarlos.
   ========================================================================= */

/* Elementos solo-móvil: ocultos en escritorio */
.nav-m-head, .nav-m-label, .nav-m-foot, .nav-m-backdrop { display: none; }

@media (max-width: 768px) {
  /* ---------- Fondo oscuro detrás del panel ---------- */
  .nav-m-backdrop {
    display: block;
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh; height: 100dvh;
    z-index: 104;
    background: rgba(2, 6, 23, .6);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s;
  }
  .nav-m-backdrop.is-active { opacity: 1; visibility: visible; }

  /* ---------- Panel ---------- */
  #navbar-menu {
    left: auto !important;
    right: 0;
    width: min(86vw, 380px) !important;
    height: 100vh !important;
    height: 100dvh !important;
    padding: 18px 16px calc(18px + env(safe-area-inset-bottom)) !important;
    gap: 6px !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    background:
      radial-gradient(120% 50% at 100% 0%, rgba(34, 197, 94, .14), transparent 60%),
      #0b1120 !important;
    border-left: 1px solid rgba(148, 163, 184, .14);
    box-shadow: -30px 0 80px -20px rgba(0, 0, 0, .8);
    /* Oculto recortándolo (no desplazándolo fuera): así no ensancha la página en móvil */
    clip-path: inset(0 0 0 100%);
    visibility: hidden;
    transition: clip-path .45s cubic-bezier(.16, 1, .3, 1), visibility 0s linear .45s !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain;
  }
  #navbar-menu.is-active {
    clip-path: inset(0 0 0 0);
    visibility: visible;
    transition: clip-path .45s cubic-bezier(.16, 1, .3, 1), visibility 0s !important;
  }

  /* ---------- Cabecera ---------- */
  #navbar-menu .nav-m-head {
    display: flex;
    align-items: center;
    min-height: 56px;
    padding-right: 52px;           /* espacio para la X */
    margin-bottom: 10px;
  }
  #navbar-menu .nav-m-user {
    display: flex !important;
    align-items: center;
    gap: 12px !important;
    width: 100% !important;
    padding: 10px 12px !important;
    border-radius: 18px !important;
    background: rgba(255, 255, 255, .04) !important;
    border: 1px solid rgba(148, 163, 184, .16) !important;
    font-size: 1rem !important;
  }
  #navbar-menu .nav-m-user::after { display: none !important; }
  .nav-m-avatar {
    width: 44px; height: 44px; flex: none;
    border-radius: 50%;
    display: grid; place-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #22c55e, #2dd4bf);
    color: #04130a; font-weight: 800; font-size: 1.1rem;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, .2);
  }
  .nav-m-avatar img { width: 100%; height: 100%; object-fit: cover; }
  .nav-m-who { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
  .nav-m-who b { color: #fff; font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .nav-m-who small { color: #86efac; font-size: .8rem; font-weight: 500; }
  .is-pro .nav-m-who small { color: #fcd34d; }
  .nav-m-hello { display: flex; flex-direction: column; line-height: 1.3; }
  .nav-m-hello b { color: #fff; font-size: 1.35rem; font-family: "Sora", "Inter", sans-serif; }
  .nav-m-hello small { color: #94a3b8; font-size: .9rem; }

  /* ---------- Etiquetas de sección ---------- */
  #navbar-menu .nav-m-label {
    display: block;
    margin: 12px 6px 4px;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #64748b;
  }

  /* ---------- Opciones ---------- */
  #navbar-menu > a,
  #navbar-menu .dropdown-trigger {
    display: flex !important;
    align-items: center;
    gap: 14px !important;
    width: 100% !important;
    min-height: 54px;
    padding: 8px 12px !important;
    border-radius: 16px !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    color: #e2e8f0 !important;
    font-size: 1rem !important;
    font-weight: 600;
    justify-content: flex-start !important;
    position: relative;
    transition: background .2s, border-color .2s, opacity .35s ease, transform .45s cubic-bezier(.16, 1, .3, 1) !important;
  }
  #navbar-menu > a:active,
  #navbar-menu .dropdown-trigger:active { transform: scale(.98); }
  #navbar-menu > a:hover,
  #navbar-menu .dropdown-trigger:hover {
    background: rgba(255, 255, 255, .05) !important;
    border-color: rgba(148, 163, 184, .14) !important;
  }
  /* Flecha a la derecha */
  #navbar-menu > a:not(.nav-cta-mobile):not(.nav-m-publish)::after {
    content: "";
    margin-left: auto;
    width: 8px; height: 8px;
    border-right: 2px solid #475569;
    border-top: 2px solid #475569;
    transform: rotate(45deg);
    flex: none;
  }
  #navbar-menu .dropdown-trigger .arrow {
    position: static !important;
    margin-left: auto !important;
    opacity: .5;
    font-size: 1rem !important;
    transition: transform .25s;
  }

  /* Icono dentro de un cuadrito de color */
  #navbar-menu > a > svg,
  #navbar-menu .dropdown-trigger > svg {
    width: 38px !important; height: 38px !important;
    min-width: 38px;
    padding: 9px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .06);
    color: #cbd5e1;
    stroke-width: 2;
    box-sizing: border-box;
  }
  #navbar-menu svg.lucide-store      { background: rgba(34, 197, 94, .14);  color: #4ade80; }
  #navbar-menu svg.lucide-compass    { background: rgba(56, 189, 248, .14); color: #38bdf8; }
  #navbar-menu svg.lucide-message-square { background: rgba(45, 212, 191, .14); color: #2dd4bf; }
  #navbar-menu svg.lucide-heart      { background: rgba(251, 113, 133, .14); color: #fb7185; }
  #navbar-menu svg.lucide-settings   { background: rgba(167, 139, 250, .14); color: #a78bfa; }
  #navbar-menu svg.lucide-log-in     { background: rgba(56, 189, 248, .14); color: #38bdf8; }
  #navbar-menu svg.lucide-plus-square { background: rgba(251, 191, 36, .14); color: #fbbf24; }

  /* Contador de mensajes sin leer */
  #navbar-menu .nav-unread-badge {
    position: static !important;
    margin-left: auto;
    margin-right: 6px;
    min-width: 22px; height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    display: inline-grid; place-items: center;
    font-size: .72rem !important;
  }
  #navbar-menu .nav-item-with-badge:has(.nav-unread-badge)::after { margin-left: 0; }

  /* ---------- Submenú "Configuraciones" ---------- */
  #navbar-menu .cmp-navbar-dropdown { width: 100%; }
  #navbar-menu .dropdown-menu {
    margin: 4px 0 6px 26px !important;
    padding: 4px 0 4px 14px !important;
    border: 0 !important;
    border-left: 2px solid rgba(148, 163, 184, .16) !important;
    border-radius: 0 !important;
    background: transparent !important;
    gap: 2px !important;
    align-items: stretch !important;
  }
  #navbar-menu .dropdown-menu.is-active { margin-top: 4px !important; }
  #navbar-menu .dropdown-menu a,
  #navbar-menu .dropdown-menu form button {
    padding: 11px 12px !important;
    border: 0 !important;
    border-radius: 12px !important;
    font-size: .95rem !important;
    color: #cbd5e1 !important;
    opacity: 1 !important;
    gap: 12px;
  }
  #navbar-menu .dropdown-menu a:hover,
  #navbar-menu .dropdown-menu form button:hover {
    background: rgba(255, 255, 255, .05) !important;
    color: #fff !important;
    padding-left: 12px !important;
  }
  #navbar-menu .dropdown-menu svg { width: 18px; height: 18px; opacity: .8; }
  #navbar-menu .dropdown-menu form button svg.lucide-log-out { color: #fb7185; }

  /* ---------- Botón principal abajo (Publicar / Registrarse) ---------- */
  #navbar-menu > a.nav-m-publish,
  #navbar-menu > a.nav-cta-mobile {
    order: 50;
    margin-top: auto;
    justify-content: center !important;
    min-height: 56px;
    border-radius: 18px !important;
    background: linear-gradient(135deg, #22c55e, #16a34a) !important;
    color: #04130a !important;
    font-weight: 800;
    font-size: 1.05rem !important;
    box-shadow: 0 14px 30px -12px rgba(34, 197, 94, .8);
    border: 0 !important;
  }
  #navbar-menu > a.nav-m-publish > svg,
  #navbar-menu > a.nav-cta-mobile > svg {
    width: 22px !important; height: 22px !important; min-width: 22px;
    padding: 0; background: none !important; color: inherit !important;
  }
  #navbar-menu.is-pro > a.nav-m-publish {
    background: linear-gradient(135deg, #fcd34d, #d4af37) !important;
    color: #2b1d00 !important;
    box-shadow: 0 14px 30px -12px rgba(212, 175, 55, .8);
  }
  /* Sin sesión: "Entrar" como secundario justo encima de "Registrarse" */
  #navbar-menu > a.nav-m-login { order: 49; margin-top: auto; }
  #navbar-menu > a.nav-m-login ~ a.nav-cta-mobile { margin-top: 0; }
  /* Si hay "Entrar", el auto-margin lo pone él; evitamos doble hueco */
  #navbar-menu:has(.nav-m-login) > a.nav-cta-mobile { margin-top: 0; }

  #navbar-menu .report-bug-trigger {
    order: 51;
    margin-top: 8px !important;
    justify-content: center !important;
    min-height: 46px;
    border-radius: 14px !important;
    font-size: .92rem !important;
    border: 1px solid rgba(251, 191, 36, .3) !important;
    background: rgba(251, 191, 36, .06) !important;
    color: #fcd34d !important;
  }

  /* ---------- Pie ---------- */
  #navbar-menu .nav-m-foot {
    order: 60;
    display: flex;
    justify-content: center;
    gap: 8px;
    padding-top: 14px;
    font-size: .8rem;
    color: #475569;
  }
  #navbar-menu .nav-m-foot a {
    display: inline !important;
    width: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: none !important;
    font-size: .8rem !important;
    font-weight: 500 !important;
    color: #64748b !important;
    opacity: 1 !important;
    transform: none !important;
  }
  #navbar-menu .nav-m-foot a::after { display: none !important; }
  #navbar-menu .nav-m-foot a:hover { color: #cbd5e1 !important; }

  /* ---------- Entrada escalonada ---------- */
  #navbar-menu > * {
    opacity: 0;
    transform: translateX(18px);
    transition: opacity .35s ease, transform .45s cubic-bezier(.16, 1, .3, 1);
  }
  #navbar-menu.is-active > * { opacity: 1; transform: none; }
  #navbar-menu.is-active > *:nth-child(1) { transition-delay: .06s; }
  #navbar-menu.is-active > *:nth-child(2) { transition-delay: .09s; }
  #navbar-menu.is-active > *:nth-child(3) { transition-delay: .12s; }
  #navbar-menu.is-active > *:nth-child(4) { transition-delay: .15s; }
  #navbar-menu.is-active > *:nth-child(5) { transition-delay: .18s; }
  #navbar-menu.is-active > *:nth-child(6) { transition-delay: .21s; }
  #navbar-menu.is-active > *:nth-child(7) { transition-delay: .24s; }
  #navbar-menu.is-active > *:nth-child(8) { transition-delay: .27s; }
  #navbar-menu.is-active > *:nth-child(n+9) { transition-delay: .3s; }

  /* La X por encima del panel */
  .cmp-navbar-toggle { position: relative; z-index: 110; }
}

@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
  #navbar-menu, #navbar-menu > *, .nav-m-backdrop { transition: none !important; }
}

/* =========================================================================
   Desplegable "Configuraciones" (escritorio)
   ========================================================================= */
.dd-user, .dd-sep { display: none; }

@media (min-width: 769px) {
  #config-submenu {
    width: 272px !important;
    padding: 8px !important;
    border-radius: 18px !important;
    background: rgba(11, 17, 32, .96) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(148, 163, 184, .18) !important;
    box-shadow: 0 24px 60px -16px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .02) inset !important;
    gap: 2px !important;
    right: 0;
    left: auto !important;
    transform-origin: top right;
  }
  #config-submenu.is-active { animation: dd-pop .18s cubic-bezier(.2, .8, .2, 1); }
  @keyframes dd-pop { from { opacity: 0; transform: translateY(-6px) scale(.97); } }

  #config-submenu .dd-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 10px 14px;
    margin-bottom: 6px;
    border-bottom: 1px solid rgba(148, 163, 184, .14);
  }
  #config-submenu .nav-m-avatar {
    width: 40px; height: 40px; flex: none; border-radius: 50%;
    display: grid; place-items: center; overflow: hidden;
    background: linear-gradient(135deg, #22c55e, #2dd4bf);
    color: #04130a; font-weight: 800; font-size: 1rem;
  }
  #config-submenu .nav-m-avatar img { width: 100%; height: 100%; object-fit: cover; }
  .dd-user-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
  .dd-user-txt b { color: #fff; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dd-user-txt small { color: #64748b; font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  #config-submenu a,
  #config-submenu form button {
    display: flex !important;
    align-items: center;
    gap: 12px !important;
    width: 100% !important;
    padding: 10px 10px !important;
    border-radius: 12px !important;
    font-size: .92rem !important;
    font-weight: 500 !important;
    white-space: nowrap;
    color: #cbd5e1 !important;
    background: transparent !important;
    border: 0 !important;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    transition: background .15s, color .15s;
  }
  #config-submenu a:hover,
  #config-submenu form button:hover {
    background: rgba(255, 255, 255, .06) !important;
    color: #fff !important;
    padding-left: 10px !important;
  }
  #config-submenu a > svg,
  #config-submenu form button > svg {
    width: 32px !important; height: 32px !important; min-width: 32px;
    padding: 7px; box-sizing: border-box;
    border-radius: 10px;
    background: rgba(255, 255, 255, .05);
    color: #94a3b8;
  }
  #config-submenu svg.lucide-user    { background: rgba(34, 197, 94, .14);  color: #4ade80; }
  #config-submenu svg.lucide-package { background: rgba(56, 189, 248, .14); color: #38bdf8; }
  #config-submenu svg.lucide-edit-3, #config-submenu svg.lucide-pen-line { background: rgba(167, 139, 250, .14); color: #a78bfa; }
  #config-submenu svg.lucide-key     { background: rgba(251, 191, 36, .14); color: #fbbf24; }
  #config-submenu .dd-sep { display: block; height: 1px; margin: 6px 4px; background: rgba(148, 163, 184, .14); }
  #config-submenu .dd-logout { border: 0 !important; }
  #config-submenu .dd-logout button { color: #fda4af !important; }
  #config-submenu .dd-logout button > svg { background: rgba(251, 113, 133, .12); color: #fb7185; }
  #config-submenu .dd-logout button:hover { background: rgba(251, 113, 133, .1) !important; color: #fecdd3 !important; }
  .cmp-navbar-menu.is-pro #config-submenu .dd-user-txt small { color: #d4af37; }
}

/* En el panel móvil la cabecera de usuario ya está arriba */
@media (max-width: 768px) {
  #navbar-menu .dd-sep { display: block; height: 1px; margin: 4px 12px; background: rgba(148, 163, 184, .12); }
}

/* =========================================================================
   Ventana "Ayudanos a mejorar" (sugerencias / reporte de fallos)
   ========================================================================= */
#bug-modal {
  background: rgba(2, 6, 23, .72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 20px;
  overflow-y: auto;
  z-index: 10001;
}
#bug-modal.is-active { display: flex; }
.bm-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: auto;
  padding: 26px;
  border-radius: 26px;
  background:
    radial-gradient(90% 60% at 100% 0%, rgba(251, 191, 36, .10), transparent 60%),
    radial-gradient(80% 60% at 0% 100%, rgba(34, 197, 94, .08), transparent 60%),
    #0b1120;
  border: 1px solid rgba(148, 163, 184, .18);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .9);
  font-family: "Inter", system-ui, sans-serif;
  color: #e2e8f0;
  animation: bm-in .32s cubic-bezier(.16, 1, .3, 1);
}
@keyframes bm-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.bm-card *, .bm-card *::before, .bm-card *::after { box-sizing: border-box; }
.bm-close {
  position: absolute; top: 16px; right: 16px;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(148, 163, 184, .18);
  color: #cbd5e1; cursor: pointer; transition: background .2s, transform .2s;
}
.bm-close:hover { background: rgba(255, 255, 255, .1); transform: rotate(90deg); }
.bm-close svg { width: 18px; height: 18px; }

.bm-head { display: flex; gap: 14px; align-items: flex-start; padding-right: 44px; margin-bottom: 20px; }
.bm-badge {
  width: 48px; height: 48px; flex: none; border-radius: 16px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(251, 191, 36, .25), rgba(251, 191, 36, .08));
  border: 1px solid rgba(251, 191, 36, .35); color: #fcd34d;
}
.bm-badge svg { width: 24px; height: 24px; }
.bm-head h3 { margin: 2px 0 4px; font-family: "Sora", "Inter", sans-serif; font-size: 1.35rem; letter-spacing: -.02em; color: #fff; }
.bm-head p { margin: 0; color: #94a3b8; font-size: .92rem; line-height: 1.5; }

.bm-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 18px; }
.bm-types label { cursor: pointer; }
.bm-types input { position: absolute; opacity: 0; pointer-events: none; }
.bm-types span {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 6px; border-radius: 14px; text-align: center;
  font-size: .84rem; font-weight: 600; color: #94a3b8;
  background: rgba(255, 255, 255, .03); border: 1px solid rgba(148, 163, 184, .16);
  transition: .2s;
}
.bm-types span svg { width: 20px; height: 20px; }
.bm-types label:hover span { border-color: rgba(148, 163, 184, .35); color: #e2e8f0; }
.bm-types input:checked + span { color: #fff; background: rgba(34, 197, 94, .12); border-color: rgba(74, 222, 128, .55); box-shadow: 0 0 0 3px rgba(34, 197, 94, .12); }
.bm-types input:checked + span svg { color: #4ade80; }
.bm-types input[value="fallo"]:checked + span { background: rgba(251, 113, 133, .12); border-color: rgba(251, 113, 133, .55); box-shadow: 0 0 0 3px rgba(251, 113, 133, .12); }
.bm-types input[value="fallo"]:checked + span svg { color: #fb7185; }
.bm-types input:focus-visible + span { outline: 2px solid #4ade80; outline-offset: 2px; }

.bm-field { margin-bottom: 16px; position: relative; }
.bm-field > label { display: block; margin-bottom: 8px; font-size: .86rem; font-weight: 600; color: #cbd5e1; text-transform: none; letter-spacing: 0; }
.bm-field > label em { font-style: normal; color: #64748b; font-weight: 500; }
#bug-modal textarea {
  width: 100%; min-height: 120px; resize: vertical;
  padding: 14px; border-radius: 14px;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(148, 163, 184, .18);
  color: #fff; font: inherit; font-size: 16px; line-height: 1.5; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
#bug-modal textarea::placeholder { color: #64748b; }
#bug-modal textarea:focus { border-color: rgba(74, 222, 128, .6); box-shadow: 0 0 0 3px rgba(34, 197, 94, .14); }
.bm-count { position: absolute; right: 12px; bottom: 10px; font-size: .72rem; color: #475569; pointer-events: none; }

.bm-drop { position: relative; }
.bm-drop input[type=file] { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.bm-drop-label {
  display: flex !important; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: 14px;
  border: 1.5px dashed rgba(148, 163, 184, .3); background: rgba(255, 255, 255, .02);
  color: #94a3b8 !important; font-size: .92rem !important; font-weight: 500 !important;
  text-transform: none !important; letter-spacing: 0 !important; cursor: pointer; transition: .2s;
}
.bm-drop-label svg { width: 22px; height: 22px; color: #64748b; flex: none; }
.bm-drop:hover .bm-drop-label { border-color: rgba(74, 222, 128, .5); background: rgba(34, 197, 94, .05); color: #e2e8f0 !important; }
.bm-drop.has-file .bm-drop-label { border-style: solid; border-color: rgba(74, 222, 128, .55); color: #86efac !important; background: rgba(34, 197, 94, .08); }
.bm-drop.has-file .bm-drop-label svg { color: #4ade80; }
#bug-file-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

#bug-modal .bm-capture {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 10px; padding: 8px 14px; width: auto;
  border-radius: 999px; border: 1px solid rgba(148, 163, 184, .2);
  background: transparent; color: #94a3b8; font: inherit; font-size: .84rem; font-weight: 600;
  cursor: pointer; transition: .2s;
}
#bug-modal .bm-capture:hover { color: #fff; border-color: rgba(148, 163, 184, .4); background: rgba(255, 255, 255, .04); }
#bug-modal .bm-capture svg { width: 16px; height: 16px; }
.bm-preview { margin-top: 10px; }
.bm-preview img { width: 100%; max-height: 180px; object-fit: cover; border-radius: 12px; border: 1px solid rgba(148, 163, 184, .2); }
.bm-preview .bug-preview-note { margin: 6px 0 0; font-size: .8rem; color: #86efac; }

.bm-captcha {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 6px 6px 14px; border-radius: 14px;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(148, 163, 184, .18);
  transition: border-color .2s, box-shadow .2s;
}
.bm-captcha:focus-within { border-color: rgba(74, 222, 128, .6); box-shadow: 0 0 0 3px rgba(34, 197, 94, .14); }
.bm-captcha-q { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: #fff; font-size: .95rem; white-space: nowrap; flex: 1; min-width: 0; }
.bm-captcha-q svg { width: 18px; height: 18px; color: #4ade80; flex: none; }
.bm-captcha input {
  width: 110px; flex: none; height: 42px; padding: 0 12px;
  border-radius: 10px; border: 1px solid rgba(148, 163, 184, .2);
  background: rgba(2, 6, 23, .5); color: #fff; font: inherit; font-size: 16px; text-align: center; outline: none;
}
.bm-captcha input:focus { border-color: rgba(74, 222, 128, .6); }

.bm-actions { display: flex; gap: 10px; margin-top: 22px; }
.bm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding: 0 20px; border-radius: 14px; border: 0;
  font: inherit; font-weight: 700; font-size: .98rem; cursor: pointer; transition: .2s;
}
.bm-btn svg { width: 18px; height: 18px; }
.bm-btn-ghost { background: rgba(255, 255, 255, .05); color: #cbd5e1; border: 1px solid rgba(148, 163, 184, .2); }
.bm-btn-ghost:hover { background: rgba(255, 255, 255, .09); color: #fff; }
.bm-btn-primary { flex: 1; background: linear-gradient(135deg, #22c55e, #16a34a); color: #04130a; box-shadow: 0 14px 30px -12px rgba(34, 197, 94, .8); }
.bm-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 18px 34px -12px rgba(34, 197, 94, .9); }

/* Móvil: hoja que sube desde abajo */
@media (max-width: 640px) {
  #bug-modal { padding: 0; align-items: flex-end !important; }
  .bm-card {
    max-width: none; margin: auto 0 0;
    border-radius: 26px 26px 0 0;
    padding: 22px 18px calc(18px + env(safe-area-inset-bottom));
    max-height: 92vh; max-height: 92dvh; overflow-y: auto;
    animation: bm-sheet .35s cubic-bezier(.16, 1, .3, 1);
  }
  .bm-card::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 4px; background: rgba(148, 163, 184, .35); margin: -8px auto 14px; }
  @keyframes bm-sheet { from { transform: translateY(100%); } }
  .bm-head h3 { font-size: 1.2rem; }
  .bm-actions { position: sticky; bottom: -18px; padding: 12px 0 4px; margin-bottom: -4px; background: linear-gradient(transparent, #0b1120 30%); }
}
@media (prefers-reduced-motion: reduce) { .bm-card, #config-submenu.is-active { animation: none; } }

/* Mis fichas en el menú */
#navbar-menu .dd-credits { color: #fde68a !important; }
#navbar-menu .dd-spark { width: 18px; display: inline-grid; place-items: center; color: #fbbf24; font-size: 1rem; }
#navbar-menu .dd-credits em { margin-left: auto; padding: 1px 8px; border-radius: 999px; background: rgba(251, 191, 36, .16); color: #fcd34d; font-style: normal; font-size: .78rem; font-weight: 800; }

/* Campana de avisos */
@media (min-width: 1025px) { #navbar-menu .nav-bell .nav-bell-txt { display: none; } }
