﻿:root {
  --bg0: #091012;
  --bg1: #0e1718;
  --bg2: rgba(31, 38, 39, 0.92);
  --bg3: rgba(42, 50, 51, 0.96);
  --bg4: #586360;
  --border: rgba(91, 168, 208, 0.24);
  --border2: rgba(77, 154, 194, 0.18);
  --cyan: #00fbfb;
  --cyan2: #4f9fc8;
  --green: #5ba8d0;
  --purple: #ff51fa;
  --red: #ff7351;
  --orange: #ffb05e;
  --yellow: #ffd479;
  --text: #eef5ee;
  --text2: #b4c4bb;
  --text3: #87958d;
  --glow: 0 0 20px rgba(24, 212, 218, 0.14);
  --glow-g: 0 0 22px rgba(91, 168, 208, 0.18);
  --r: 18px;
  --font: "Plus Jakarta Sans", "Exo 2", sans-serif;
  --font-h: "Rajdhani", sans-serif;
  --font-m: "Press Start 2P", "Share Tech Mono", monospace;
  --hud-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
}

@media (max-width: 900px) {
  body.retro-forum.messenger-open .mobile-hud-nav,
  body.retro-forum.messenger-open .mobile-hud-fab,
  body.retro-forum.messenger-open .mobile-hud-backdrop,
  body.retro-forum.messenger-open .mobile-hud-drawer,
  body.retro-forum.messenger-open #notif-bell-wrap,
  body.retro-forum.messenger-open #notif-panel,
  body.retro-forum.messenger-open .chat-float,
  body.retro-forum.messenger-open .float-chat-panel,
  body.retro-forum.messenger-open .float-chat-backdrop {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  body.retro-forum.messenger-open .chat-col {
    z-index: 420 !important;
  }
}

body.retro-forum .msn-folder.has-unread > .msn-folder-head {
  background: linear-gradient(90deg, rgba(226, 44, 64, 0.18), rgba(215, 237, 249, 0.76)) !important;
  box-shadow: inset 4px 0 0 #e22c40, 0 8px 18px rgba(226, 44, 64, 0.08) !important;
}

body.retro-forum .msn-folder.has-unread > .msn-folder-head .msn-folder-title {
  color: #19384f !important;
}

body.retro-forum .msn-folder-count.has-unread {
  background: #e22c40 !important;
  color: #fff !important;
  box-shadow: 0 5px 12px rgba(226, 44, 64, 0.28) !important;
}

body.retro-forum .msn-group-chat-item {
  display: grid !important;
  grid-template-columns: 12px 34px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: 48px !important;
  padding: 7px 8px !important;
}

body.retro-forum .msn-group-chat-item.has-unread {
  background: linear-gradient(90deg, rgba(226, 44, 64, 0.12), rgba(91, 177, 226, 0.16)) !important;
  box-shadow: none !important;
}

body.retro-forum .msn-group-chat-item .msn-group-avatar-icon,
body.retro-forum .msn-group-chat-item .msn-group-folder-icon {
  width: 34px !important;
  height: 34px !important;
  flex: 0 0 34px !important;
  border-radius: 9px !important;
}

body.retro-forum .msn-group-chat-item .msn-contact-copy {
  min-width: 0 !important;
}

body.retro-forum .msn-group-chat-item .msn-contact-status {
  display: block !important;
}

/* Messenger single-chat mode */
body.retro-forum .msn-chat-tabs,
body.retro-forum .msn-open-bubbles {
  display: none !important;
}

/* Marketplace publish modal refresh */
.pub-product-modal-wrap .modal {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.pub-product-modal-wrap .pub-product-modal {
  width: min(640px, calc(100vw - 28px)) !important;
  max-height: min(90vh, 820px) !important;
  overflow: hidden auto !important;
  border: 1px solid rgba(116, 220, 255, .28) !important;
  border-radius: 28px !important;
  background:
    radial-gradient(circle at 14% 0%, rgba(100, 210, 255, .22), transparent 34%),
    linear-gradient(145deg, rgba(232, 248, 255, .96), rgba(207, 232, 242, .94) 54%, rgba(186, 219, 235, .96)) !important;
  color: #09202d !important;
  box-shadow: 0 34px 90px rgba(0, 0, 0, .52), 0 0 0 1px rgba(255, 255, 255, .72) inset !important;
  backdrop-filter: blur(24px) saturate(135%);
  scrollbar-width: thin;
  scrollbar-color: rgba(27, 120, 158, .55) transparent;
  animation: pubProductEnter .28s ease-out both;
}

.pub-product-modal-wrap .pub-product-header {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 24px 26px 20px !important;
  align-items: flex-start !important;
  gap: 18px !important;
  border-bottom: 1px solid rgba(9, 32, 45, .13) !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .78), rgba(213, 238, 248, .84)),
    radial-gradient(circle at 85% 18%, rgba(40, 200, 255, .2), transparent 35%) !important;
}

.pub-product-modal-wrap .pub-product-header h3 {
  margin: 0 !important;
  display: grid;
  gap: 6px;
  color: #071a24 !important;
  font-family: var(--font-h, inherit);
  font-size: clamp(1.18rem, 2.6vw, 1.65rem) !important;
  line-height: 1.08;
  letter-spacing: .02em;
}

.pub-product-modal-wrap .pub-product-header h3::before {
  content: "MARKETPLACE";
  width: max-content;
  padding: 5px 10px;
  border: 1px solid rgba(11, 128, 170, .24);
  border-radius: 999px;
  background: rgba(255, 255, 255, .68);
  color: #087aa4;
  font-family: var(--font-m, monospace);
  font-size: .64rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.pub-product-modal-wrap .pub-product-header h3::after {
  content: "Subi fotos, precio y contacto para que tu producto se vea claro.";
  max-width: 390px;
  color: #47606b;
  font-family: inherit;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.45;
}

.pub-product-modal-wrap .modal-close-btn {
  width: 42px !important;
  height: 42px !important;
  flex: 0 0 auto;
  border: 1px solid rgba(8, 30, 42, .16) !important;
  border-radius: 16px !important;
  background: linear-gradient(145deg, rgba(255, 255, 255, .92), rgba(199, 226, 238, .9)) !important;
  color: #102735 !important;
  box-shadow: 0 12px 28px rgba(39, 87, 110, .22), 0 0 0 1px rgba(255, 255, 255, .7) inset !important;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease !important;
}

.pub-product-modal-wrap .modal-close-btn:hover {
  transform: translateY(-2px) rotate(8deg);
  color: #000 !important;
  background: linear-gradient(145deg, #fff3a0, #ffd84a) !important;
  box-shadow: 0 16px 34px rgba(214, 157, 20, .34), 0 0 0 1px rgba(255, 255, 255, .82) inset !important;
}

.pub-product-modal-wrap .pub-product-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 14px;
  padding: 22px 26px 26px !important;
}

.pub-product-modal-wrap .form-row {
  margin: 0 !important;
}

.pub-product-modal-wrap .form-row:first-child,
.pub-product-modal-wrap .form-row:nth-child(4),
.pub-product-modal-wrap .form-row:nth-child(5),
.pub-product-modal-wrap .form-row:nth-child(6),
.pub-product-modal-wrap #prod-error,
.pub-product-modal-wrap .pub-product-body > div:last-child {
  grid-column: 1 / -1;
}

.pub-product-modal-wrap .form-row[style*="grid"] {
  display: contents !important;
}

.pub-product-modal-wrap .form-row[style*="grid"] > div {
  display: grid;
  gap: 8px;
}

.pub-product-modal-wrap .form-row label,
.pub-product-modal-wrap .form-row[style*="grid"] label {
  margin: 0 0 8px !important;
  color: #102c3c !important;
  font-family: var(--font-m, monospace);
  font-size: .76rem !important;
  font-weight: 800 !important;
  letter-spacing: .045em;
}

.pub-product-modal-wrap .form-row input,
.pub-product-modal-wrap .form-row select,
.pub-product-modal-wrap .form-row textarea {
  width: 100% !important;
  min-height: 48px !important;
  padding: 12px 14px !important;
  border: 1px solid rgba(33, 88, 111, .22) !important;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, .76) !important;
  color: #061822 !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 10px 26px rgba(24, 72, 95, .08) !important;
  font-size: .94rem !important;
  outline: none !important;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease !important;
}

.pub-product-modal-wrap .form-row textarea {
  min-height: 104px !important;
  resize: vertical !important;
}

.pub-product-modal-wrap .form-row input::placeholder,
.pub-product-modal-wrap .form-row textarea::placeholder {
  color: rgba(9, 32, 45, .44) !important;
}

.pub-product-modal-wrap .form-row input:focus,
.pub-product-modal-wrap .form-row select:focus,
.pub-product-modal-wrap .form-row textarea:focus {
  transform: translateY(-1px);
  border-color: rgba(0, 198, 230, .78) !important;
  background: rgba(255, 255, 255, .96) !important;
  box-shadow: 0 0 0 4px rgba(0, 205, 230, .16), 0 15px 30px rgba(19, 103, 139, .16) !important;
}

.pub-product-modal-wrap .form-row small {
  margin-top: 8px !important;
  color: #54707b !important;
  font-size: .76rem !important;
  line-height: 1.4;
}

.pub-product-modal-wrap .form-row small strong {
  color: #0b536f !important;
}

.pub-product-modal-wrap .form-row > div[style*="display:flex"] {
  min-height: 48px;
  border: 1px solid rgba(33, 88, 111, .22) !important;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, .76) !important;
  box-shadow: 0 10px 26px rgba(24, 72, 95, .08) !important;
}

.pub-product-modal-wrap .form-row > div[style*="display:flex"] > span {
  color: #0b6f47 !important;
  border-right-color: rgba(33, 88, 111, .18) !important;
  font-weight: 900;
}

.pub-product-modal-wrap #prod-imgs {
  cursor: pointer;
  border-style: dashed !important;
  background: rgba(255, 255, 255, .58) !important;
}

.pub-product-modal-wrap #prod-imgs::file-selector-button {
  margin-right: 12px;
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  background: linear-gradient(135deg, #102b3a, #0c4f6a);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.pub-product-modal-wrap .prod-img-preview-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.pub-product-modal-wrap .prod-img-preview-item {
  border-radius: 16px !important;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(20, 64, 83, .18);
}

.pub-product-modal-wrap #prod-error {
  display: none;
  margin: 0 !important;
  padding: 11px 13px;
  border: 1px solid rgba(220, 55, 70, .24);
  border-radius: 14px;
  background: rgba(255, 229, 232, .86);
  color: #a41325 !important;
  font-weight: 800;
}

.pub-product-modal-wrap .pub-product-body > div:last-child {
  display: flex !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  margin-top: 2px !important;
  padding-top: 16px;
  border-top: 1px solid rgba(9, 32, 45, .1);
}

.pub-product-modal-wrap .btn {
  min-height: 44px;
  border-radius: 15px !important;
  padding: 0 20px !important;
  font-weight: 900 !important;
  letter-spacing: .02em;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease !important;
}

.pub-product-modal-wrap .btn:hover {
  transform: translateY(-2px);
}

.pub-product-modal-wrap .btn-ghost {
  border: 1px solid rgba(9, 32, 45, .14) !important;
  background: rgba(255, 255, 255, .66) !important;
  color: #173241 !important;
}

.pub-product-modal-wrap .btn-primary {
  border: 0 !important;
  background: linear-gradient(135deg, #65d3ff, #2da4df 58%, #1679bd) !important;
  color: #03121a !important;
  box-shadow: 0 14px 32px rgba(30, 134, 190, .32), 0 0 0 1px rgba(255, 255, 255, .48) inset !important;
}

.pub-product-modal-wrap .btn-primary:hover {
  filter: saturate(1.12) brightness(1.04);
  box-shadow: 0 18px 40px rgba(30, 134, 190, .42), 0 0 0 1px rgba(255, 255, 255, .62) inset !important;
}

@keyframes pubProductEnter {
  from {
    opacity: 0;
    transform: translateY(18px) scale(.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 680px) {
  .pub-product-modal-wrap .modal-overlay,
  .pub-product-modal-wrap.modal-overlay {
    align-items: flex-end !important;
    padding: 0 !important;
  }

  .pub-product-modal-wrap .pub-product-modal {
    width: 100vw !important;
    max-height: 92vh !important;
    border-radius: 26px 26px 0 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-bottom: 0 !important;
  }

  .pub-product-modal-wrap .pub-product-header {
    padding: 20px 18px 16px !important;
  }

  .pub-product-modal-wrap .pub-product-body {
    grid-template-columns: 1fr;
    padding: 18px 18px 24px !important;
  }

  .pub-product-modal-wrap .form-row[style*="grid"] {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .pub-product-modal-wrap .pub-product-body > div:last-child {
    position: sticky;
    bottom: 0;
    margin: 0 -18px -24px !important;
    padding: 14px 18px 18px;
    background: rgba(213, 238, 248, .92);
    backdrop-filter: blur(16px);
  }

  .pub-product-modal-wrap .btn {
    flex: 1;
  }
}

body.retro-forum {
  background:
    radial-gradient(circle at 12% 10%, rgba(24, 212, 218, 0.06), transparent 26%),
    radial-gradient(circle at 88% 8%, rgba(255, 81, 250, 0.07), transparent 24%),
    radial-gradient(circle at 50% 110%, rgba(91, 168, 208, 0.07), transparent 30%),
    linear-gradient(180deg, #0b1214 0%, #060a0b 100%);
  color: var(--text);
}

body.retro-forum::before,
body.retro-forum::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

body.retro-forum::before {
  background:
    linear-gradient(rgba(18, 24, 24, 0) 50%, rgba(0, 0, 0, 0.14) 50%),
    linear-gradient(90deg, rgba(255, 0, 0, 0.016), rgba(0, 255, 0, 0.011), rgba(0, 0, 255, 0.016));
  background-size: 100% 4px, 3px 100%;
  opacity: 0.18;
}

body.retro-forum::after {
  background:
    radial-gradient(circle at center, transparent 56%, rgba(0, 0, 0, 0.18) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 22%, transparent 78%, rgba(0, 0, 0, 0.10));
}

body.retro-forum #app {
  position: relative;
  z-index: 2;
}

body.retro-forum .grid-bg {
  opacity: 0.62;
  background-image:
    linear-gradient(rgba(24, 212, 218, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 212, 218, 0.032) 1px, transparent 1px);
  background-size: 48px 48px;
}

body.retro-forum .grid-bg::after {
  background:
    radial-gradient(circle at 50% 0%, rgba(24, 212, 218, 0.08), transparent 34%),
    radial-gradient(circle at 85% 14%, rgba(255, 81, 250, 0.06), transparent 22%),
    radial-gradient(circle at 15% 12%, rgba(91, 168, 208, 0.07), transparent 24%);
}

body.retro-forum .navbar {
  background: rgba(18, 23, 24, 0.90);
  border-bottom: 2px solid rgba(91, 168, 208, 0.16);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding-left: max(14px, env(safe-area-inset-left));
  padding-right: max(14px, env(safe-area-inset-right));
  gap: 10px;
}

body.retro-forum .navbar--minimal {
  justify-content: flex-start;
  min-height: 72px;
  padding-top: calc(12px + env(safe-area-inset-top, 0px));
  padding-bottom: 12px;
}

body.retro-forum .logo {
  font-family: var(--font-h);
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-shadow: 0 0 20px rgba(91, 168, 208, 0.24);
  background: none;
  -webkit-text-fill-color: unset;
  color: var(--green);
}

body.retro-forum .logo span {
  color: var(--cyan);
}

body.retro-forum .navbar--minimal .logo {
  margin-right: auto;
}
body.retro-forum .site-header-logo {
  filter: drop-shadow(0 0 14px rgba(120, 210, 245, .22));
}

/* Hide mobile-only messenger close button on desktop */
body.retro-forum .msn-mobile-close {
  display: none;
}

/* ── Bell in desktop navbar ─────────────────────────────────────────────── */
body.retro-forum:not(.mobile-hud-active) .navbar--minimal .notif-bell-wrap {
  display: flex !important;
  align-items: center;
  position: relative;
  margin-left: 8px;
}

body.retro-forum:not(.mobile-hud-active) .navbar--minimal .notif-bell-wrap .nav-btn {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.10);
  color: var(--text2);
  cursor: pointer;
  position: relative;
  transition: background 0.15s, color 0.15s;
  flex-direction: column;
  gap: 0;
}

body.retro-forum:not(.mobile-hud-active) .navbar--minimal .notif-bell-wrap .nav-btn:hover {
  background: rgba(255,255,255,0.13);
  color: var(--text);
}

body.retro-forum:not(.mobile-hud-active) .navbar--minimal .notif-bell-wrap .nav-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

body.retro-forum:not(.mobile-hud-active) .navbar--minimal .notif-bell-wrap .nav-btn > span:not(#notif-count-badge) {
  display: none; /* hide "Alertas" text label on desktop */
}

body.retro-forum:not(.mobile-hud-active) .navbar--minimal #notif-count-badge {
  top: 4px !important;
  right: 4px !important;
  width: 16px !important;
  height: 16px !important;
  font-size: 0.52rem !important;
}

body.retro-forum .nav-legacy-hooks {
  display: none !important;
}

body.retro-forum .nav-badge,
body.retro-forum .role-badge,
body.retro-forum .post-time,
body.retro-forum .profile-since,
body.retro-forum .profile-stat-lbl,
body.retro-forum .txs.mono,
body.retro-forum .mono {
  font-family: var(--font-m);
}

body.retro-forum .nav-badge {
  color: var(--green);
  background: rgba(91, 168, 208, 0.10);
  border: 1px solid rgba(91, 168, 208, 0.34);
  box-shadow: var(--glow-g);
  padding: 4px 8px;
}

body.retro-forum .nav-urlbar {
  background: rgba(12, 16, 18, 0.92);
  border: 1px solid rgba(0, 251, 251, 0.18);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), var(--glow);
  min-height: 42px;
}

body.retro-forum .nav-urlbar-text strong {
  color: var(--cyan2);
  font-family: var(--font-m);
  font-size: 0.68rem;
}

body.retro-forum .nav-urlbar-lock,
body.retro-forum .nav-urlbar-reload {
  color: var(--cyan);
}

body.retro-forum .nav-user,
body.retro-forum .nav-guest-btns {
  gap: 8px;
}

body.retro-forum .nav-user {
  min-height: 46px;
  padding: 4px 8px 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(32, 39, 40, 0.96), rgba(20, 26, 27, 0.98));
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease;
}

body.retro-forum .nav-user:hover {
  transform: translateY(-1px);
  border-color: rgba(91, 168, 208, 0.3);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.24), var(--glow-g);
}

body.retro-forum .nav-user:active {
  transform: translateY(2px) scale(0.985);
}

body.retro-forum .nav-avatar,
body.retro-forum .post-avatar,
body.retro-forum .profile-av-img {
  background: #070909;
  box-shadow: 0 0 0 1px rgba(0, 251, 251, 0.14), 0 0 18px rgba(0, 251, 251, 0.12);
}

body.retro-forum .nav-avatar {
  width: 36px;
  height: 36px;
  border-width: 1px;
  border-color: rgba(91, 168, 208, 0.28);
  box-shadow: 0 0 0 1px rgba(91, 168, 208, 0.18), 0 0 18px rgba(91, 168, 208, 0.16);
}

body.retro-forum .nav-username {
  color: var(--green);
  font-family: var(--font-h);
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

body.retro-forum .role-badge {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 10px;
  letter-spacing: 0.08em;
  font-size: 0.5rem;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.18);
}

body.retro-forum .role-admin {
  background: linear-gradient(180deg, rgba(46, 24, 18, 0.92), rgba(24, 13, 10, 0.96));
  border-color: rgba(255, 115, 81, 0.42);
  color: var(--red);
}

body.retro-forum .role-mod {
  background: linear-gradient(180deg, rgba(34, 14, 34, 0.92), rgba(18, 9, 18, 0.96));
  border-color: rgba(255, 81, 250, 0.34);
  color: var(--purple);
}

body.retro-forum .role-user {
  background: rgba(91, 168, 208, 0.10);
  border-color: rgba(91, 168, 208, 0.22);
  color: var(--cyan2);
}

body.retro-forum .bookmarks-bar {
  display: none !important;
  background: rgba(9, 11, 12, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(91, 168, 208, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body.retro-forum .bookmark-btn,
body.retro-forum .nav-btn,
body.retro-forum .btn,
body.retro-forum .file-btn,
body.retro-forum .nav-guest-register,
body.retro-forum .nav-login-btn,
body.retro-forum .chat-send-btn,
body.retro-forum .chat-sticker-btn,
body.retro-forum .profile-av-edit-btn,
body.retro-forum .tab {
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  background: rgba(31, 37, 38, 0.92);
  color: var(--text);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    color 0.16s ease,
    background 0.16s ease;
}

body.retro-forum .bookmark-btn,
body.retro-forum .nav-btn,
body.retro-forum .nav-guest-register,
body.retro-forum .nav-login-btn {
  min-height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(31, 37, 38, 0.98), rgba(20, 25, 26, 0.98));
  font-family: var(--font-h);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

body.retro-forum .bookmark-btn:hover,
body.retro-forum .nav-btn:hover,
body.retro-forum .btn:hover,
body.retro-forum .file-btn:hover,
body.retro-forum .nav-guest-register:hover,
body.retro-forum .nav-login-btn:hover,
body.retro-forum .chat-send-btn:hover,
body.retro-forum .chat-sticker-btn:hover,
body.retro-forum .profile-av-edit-btn:hover,
body.retro-forum .tab:hover {
  transform: translateY(-1px);
  border-color: rgba(91, 168, 208, 0.28);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.22), var(--glow-g);
}

body.retro-forum .bookmark-btn:active,
body.retro-forum .nav-btn:active,
body.retro-forum .btn:active,
body.retro-forum .file-btn:active,
body.retro-forum .nav-guest-register:active,
body.retro-forum .nav-login-btn:active,
body.retro-forum .chat-send-btn:active,
body.retro-forum .chat-sticker-btn:active,
body.retro-forum .profile-av-edit-btn:active,
body.retro-forum .tab:active {
  transform: translateY(2px) scale(0.985);
}

body.retro-forum .nav-btn {
  min-width: 44px;
  min-height: 46px;
}

body.retro-forum .chat-sticker-btn,
body.retro-forum .chat-send-btn {
  min-width: 48px;
  min-height: 48px;
  border-radius: 18px;
}

body.retro-forum .nav-btn svg,
body.retro-forum .bookmark-btn svg {
  width: 16px;
  height: 16px;
}

body.retro-forum .nav-btn.active,
body.retro-forum .tab.active {
  background: linear-gradient(135deg, rgba(91, 168, 208, 0.20), rgba(24, 212, 218, 0.08));
  color: var(--cyan2);
  border-color: rgba(91, 168, 208, 0.34);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2), var(--glow-g);
}

body.retro-forum .btn-primary,
body.retro-forum .profile-av-edit-btn {
  background: linear-gradient(180deg, #73b9dd, #4f9fc8);
  border-color: rgba(91, 168, 208, 0.34);
  color: #081821;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(79, 159, 200, 0.24), inset 0 1px 0 rgba(255,255,255,0.22);
}

body.retro-forum .btn-ghost,
body.retro-forum .bookmark-btn,
body.retro-forum .nav-btn,
body.retro-forum .tab,
body.retro-forum .chat-sticker-btn {
  color: #69edf3;
}

body.retro-forum .chat-sticker-btn {
  background: linear-gradient(180deg, rgba(38,45,47,.96), rgba(28,34,35,.98));
  border-color: rgba(255,255,255,.07);
  box-shadow: 0 8px 18px rgba(0,0,0,.16), inset 0 1px 0 rgba(255,255,255,.04);
}

body.retro-forum .chat-send-btn {
  background: linear-gradient(180deg, rgba(36, 43, 44, 0.98), rgba(24, 30, 31, 0.98));
  border-color: rgba(91, 168, 208, 0.22);
  box-shadow: 0 8px 18px rgba(0,0,0,.16), inset 0 1px 0 rgba(255,255,255,.05);
  padding: 0;
}

body.retro-forum .chat-send-btn svg {
  width: 24px;
  height: 24px;
  display: block;
  overflow: visible;
}

body.retro-forum .chat-send-btn:hover {
  border-color: rgba(91, 168, 208, 0.34);
  box-shadow: 0 10px 20px rgba(0,0,0,.18), 0 0 14px rgba(79, 159, 200, 0.16);
}

body.retro-forum .btn-danger {
  background: rgba(255, 115, 81, 0.1);
  border-color: rgba(255, 115, 81, 0.26);
  color: var(--red);
}


body.retro-forum #notif-count-badge {
  top: -3px !important;
  right: -4px !important;
  width: 18px !important;
  height: 18px !important;
  border-radius: 999px !important;
  border: 2px solid #090b0c !important;
  box-shadow: 0 0 10px rgba(255, 115, 81, 0.35) !important;
}

body.retro-forum .bookmark-sep {
  background: linear-gradient(180deg, transparent, rgba(91, 168, 208, 0.26), transparent);
}

body.retro-forum .app-layout {
  gap: 18px;
  padding: 18px 16px 26px;
}

@media (min-width: 901px) {
  body.retro-forum .hud-mobile-menu {
    display: none !important;
  }

  body.retro-forum .mobile-hud-backdrop,
  body.retro-forum .mobile-hud-nav,
  body.retro-forum .mobile-hud-fab {
    display: none !important;
  }

  body.retro-forum .mobile-hud-drawer {
    display: block !important;
    position: fixed;
    top: calc(78px + env(safe-area-inset-top, 0px));
    left: 16px;
    bottom: 16px;
    width: 292px;
    padding: 18px 16px;
    border: 1px solid rgba(91, 168, 208, 0.18);
    border-radius: 28px;
    transform: none !important;
    overflow-y: auto;
    z-index: 120;
  }

  body.retro-forum .mobile-hud-drawer__head {
    display: none;
  }

  body.retro-forum .mobile-hud-close {
    display: none;
  }

  body.retro-forum .main-col {
    flex: 1 1 auto;
    width: auto;
    max-width: none;
    padding-left: 312px;
    padding-right: 0;
    padding-bottom: 120px;
  }

  body.retro-forum #page-wall,
  body.retro-forum #page-user-wall,
  body.retro-forum #page-marketplace,
  body.retro-forum #page-profile,
  body.retro-forum #page-admin {
    width: 100%;
    max-width: none;
  }

  body.retro-forum .panel,
  body.retro-forum .post-card,
  body.retro-forum .new-post-card {
    width: 100%;
    max-width: none;
  }

  body.retro-forum .chat-float,
  body.retro-forum .float-chat-panel {
    left: calc(50% + 146px);
  }

  body.retro-forum .float-chat-panel {
    width: min(680px, calc(100vw - 356px));
    max-width: calc(100vw - 356px);
  }
}

/* Messenger: presencia, carpetas, grupos y herramientas de chat */
body.retro-forum .msn-contact.offline{opacity:.72;filter:grayscale(.45)}
body.retro-forum .msn-contact.offline .msn-contact-presence{background:#9aa7ad;box-shadow:0 0 0 2px rgba(120,130,136,.16)}
body.retro-forum .msn-folder-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:8px 0}
body.retro-forum .msn-folder-actions button,
body.retro-forum .msn-add-participant,
body.retro-forum .msn-chat-menu-btn,
body.retro-forum .msn-tool-btn{border:1px solid rgba(23,112,173,.28);border-radius:999px;background:linear-gradient(180deg,#fff,#d7eefb);color:#1f5f91;font-weight:800;cursor:pointer}
body.retro-forum .msn-folder-icon-actions{display:flex;justify-content:end;gap:6px;margin:0}
body.retro-forum .msn-folder-actions button{width:32px;min-width:32px;height:32px;min-height:32px;padding:0;display:inline-flex;align-items:center;justify-content:center;box-shadow:0 8px 18px rgba(31,95,145,.12)}
body.retro-forum .msn-folder-actions svg,
body.retro-forum .msn-folder-head-actions svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
body.retro-forum .msn-friends-panel{display:flex;flex-direction:column;gap:7px;margin-top:6px}
body.retro-forum .msn-friends-toolbar{min-height:40px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 8px;border:1px solid rgba(91,145,190,.24);border-radius:12px;background:linear-gradient(180deg,rgba(255,255,255,.82),rgba(215,237,249,.66));box-sizing:border-box}
body.retro-forum .msn-friends-title{min-width:0;display:flex;align-items:center;gap:8px;color:#213d54;font-weight:950;text-transform:uppercase;font-size:.76rem;letter-spacing:.02em}
body.retro-forum .msn-friends-title > span:nth-child(2){min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.retro-forum .msn-friends-title b{min-width:22px;height:20px;padding:0 7px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;background:rgba(76,137,184,.16);color:#2f678d;font-size:.68rem}
body.retro-forum .msn-friends-meta{display:flex;justify-content:flex-start;gap:6px;padding:0 2px;color:#6a8799;font-size:.64rem;font-weight:850}
body.retro-forum .msn-friends-meta span{padding:3px 7px;border-radius:999px;background:rgba(255,255,255,.58)}
body.retro-forum .msn-friends-meta span{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.retro-forum .msn-contact-menu{position:fixed;z-index:99999;width:210px;padding:6px;border:1px solid rgba(73,123,160,.34);border-radius:14px;background:rgba(245,251,255,.98);box-shadow:0 18px 38px rgba(0,0,0,.24)}
body.retro-forum .msn-contact-menu button{display:block;width:100%;padding:8px 10px;border:0;border-radius:10px;background:transparent;color:#17314a;text-align:left;cursor:pointer}
body.retro-forum .msn-contact-menu button:hover{background:rgba(91,177,226,.2)}
body.retro-forum .msn-blocked-users{display:flex;flex-direction:column;gap:8px}
body.retro-forum .msn-blocked-user{display:grid;grid-template-columns:38px 1fr auto;align-items:center;gap:10px;padding:8px;border:1px solid rgba(91,145,190,.2);border-radius:12px;background:rgba(255,255,255,.5)}
body.retro-forum .msn-blocked-user img{width:38px;height:38px;border-radius:10px;object-fit:cover;border:1px solid rgba(255,255,255,.85)}
body.retro-forum .msn-blocked-user span{min-width:0;display:flex;flex-direction:column}
body.retro-forum .msn-blocked-user strong,
body.retro-forum .msn-blocked-user small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.retro-forum .msn-blocked-user strong{font-size:.82rem;color:#17314a}
body.retro-forum .msn-blocked-user small{font-size:.68rem;color:#6a8799}
body.retro-forum .msn-blocked-user button{border:1px solid rgba(23,112,173,.28);border-radius:999px;background:linear-gradient(180deg,#fff,#d7eefb);color:#1f5f91;font-size:.7rem;font-weight:900;padding:7px 10px;cursor:pointer}
body.retro-forum .msn-friend-folder{border:1px solid rgba(91,145,190,.16);border-radius:12px;padding:4px;background:rgba(255,255,255,.28);transition:background .16s ease,border-color .16s ease,box-shadow .16s ease}
body.retro-forum .msn-friend-folder.drag-over{border-color:rgba(40,240,255,.52);background:rgba(40,240,255,.12);box-shadow:inset 0 0 0 1px rgba(255,255,255,.28),0 10px 26px rgba(31,95,145,.14)}
body.retro-forum .msn-folder-drop-title{display:flex;align-items:center;justify-content:space-between;gap:8px}
body.retro-forum .msn-folder-drop-title span{font-size:.62rem;color:#6a8799;font-weight:800}
body.retro-forum .msn-folder-toggle{min-width:0;display:flex;align-items:center;gap:7px;border:0;background:transparent;color:#315d76;font:inherit;font-weight:950;cursor:pointer;text-align:left}
body.retro-forum .msn-folder-toggle span:last-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:inherit;font-size:.76rem}
body.retro-forum .msn-folder-chevron{width:14px;color:#1f5f91;font-family:var(--font-m);font-size:.72rem}
body.retro-forum .msn-folder-head-actions{display:inline-flex;align-items:center;gap:4px}
body.retro-forum .msn-folder-eye,
body.retro-forum .msn-folder-delete{width:28px;height:28px;display:inline-flex;align-items:center;justify-content:center;border:1px solid rgba(73,123,160,.2);border-radius:999px;background:rgba(255,255,255,.72);color:#315d76;cursor:pointer}
body.retro-forum .msn-folder-delete{color:#9f1d2c;border-color:rgba(180,35,50,.2);background:rgba(255,245,245,.88)}
body.retro-forum .msn-folder-empty-inline{padding:8px 10px;border:1px dashed rgba(73,123,160,.24);border-radius:12px;color:#6a8799;font-size:.72rem;background:rgba(255,255,255,.42)}
body.retro-forum .msn-group-picks{display:grid;gap:8px;max-height:300px;overflow:auto;padding-right:2px}
body.retro-forum .msn-group-pick{display:grid;grid-template-columns:20px 34px 1fr;align-items:center;gap:8px;padding:9px;border:1px solid rgba(73,123,160,.18);border-radius:14px;background:rgba(255,255,255,.7);color:#17314a}
body.retro-forum .msn-group-pick img{width:34px;height:34px;border-radius:9px;object-fit:cover}
body.retro-forum .msn-add-participant,
body.retro-forum .msn-chat-menu-btn{width:32px;height:32px;font-size:1.1rem;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}
body.retro-forum .msn-leave-group{height:32px;padding:0 10px;border:1px solid rgba(180,35,50,.28);border-radius:999px;background:linear-gradient(180deg,#fff5f5,#ffdede);color:#9f1d2c;font-size:.72rem;font-weight:900;cursor:pointer}
body.retro-forum .msn-leave-group:hover{background:linear-gradient(180deg,#ffe9e9,#ffc9c9)}
body.retro-forum .msn-delete-group{height:32px;padding:0 10px;border:1px solid rgba(116,49,190,.28);border-radius:999px;background:linear-gradient(180deg,#f4edff,#e3d2ff);color:#5b2a9f;font-size:.72rem;font-weight:900;cursor:pointer}
body.retro-forum .msn-delete-group:hover{background:linear-gradient(180deg,#eadcff,#d7bfff)}
body.retro-forum .msn-compose-tools{display:flex;align-items:center;gap:7px;width:100%;order:1;flex-wrap:wrap}
body.retro-forum .msn-tool-btn{position:relative;width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;font-size:0;line-height:1;flex-shrink:0;overflow:hidden;isolation:isolate;transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease,background .16s ease}
body.retro-forum .msn-tool-btn::before{content:"";width:18px;height:18px;display:block;background:currentColor;-webkit-mask:center/contain no-repeat;mask:center/contain no-repeat;transition:transform .18s cubic-bezier(.2,1.35,.35,1),filter .18s ease}
body.retro-forum .msn-tool-btn::after{content:"";position:absolute;inset:6px;border-radius:999px;background:rgba(255,255,255,.45);transform:scale(.2);opacity:0;z-index:-1;transition:transform .22s ease,opacity .22s ease}
body.retro-forum .msn-tool-btn:hover{transform:translateY(-2px);border-color:rgba(28,178,213,.45);box-shadow:0 9px 18px rgba(31,95,145,.16)}
body.retro-forum .msn-tool-btn:hover::before{transform:scale(1.12)}
body.retro-forum .msn-tool-btn:active{transform:scale(.9)}
body.retro-forum .msn-tool-btn:active::after{opacity:1;transform:scale(1.45)}
body.retro-forum .msn-tool-btn svg{display:none}
body.retro-forum .msn-compose-tools .msn-tool-btn:nth-child(1){color:#1688d8;background:linear-gradient(180deg,#f7fcff,#d8eefc)}
body.retro-forum .msn-compose-tools .msn-tool-btn:nth-child(1)::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8.5 12.5l4.8-4.8a3.1 3.1 0 014.4 4.4l-6.8 6.8a4.4 4.4 0 01-6.2-6.2l7.1-7.1a5.6 5.6 0 017.9 7.9l-6.9 6.9' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8.5 12.5l4.8-4.8a3.1 3.1 0 014.4 4.4l-6.8 6.8a4.4 4.4 0 01-6.2-6.2l7.1-7.1a5.6 5.6 0 017.9 7.9l-6.9 6.9' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
body.retro-forum .msn-compose-tools .msn-tool-btn:nth-child(2){color:#12a876;background:linear-gradient(180deg,#f3fff9,#d4f8e9)}
body.retro-forum .msn-compose-tools .msn-tool-btn:nth-child(2)::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 8.2A2.2 2.2 0 016.2 6h2.1l1.2-1.7h5L15.7 6h2.1A2.2 2.2 0 0120 8.2v8.6a2.2 2.2 0 01-2.2 2.2H6.2A2.2 2.2 0 014 16.8V8.2z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3Ccircle cx='12' cy='12.5' r='3.2' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 8.2A2.2 2.2 0 016.2 6h2.1l1.2-1.7h5L15.7 6h2.1A2.2 2.2 0 0120 8.2v8.6a2.2 2.2 0 01-2.2 2.2H6.2A2.2 2.2 0 014 16.8V8.2z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3Ccircle cx='12' cy='12.5' r='3.2' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E")}
body.retro-forum .msn-compose-tools .msn-tool-btn:nth-child(3){color:#f0a21c;background:linear-gradient(180deg,#fffaf0,#ffe8ba)}
body.retro-forum .msn-compose-tools .msn-tool-btn:nth-child(3)::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='12' cy='12' r='8.5' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M8.5 10h.01M15.5 10h.01M8.7 14.2c1.6 1.7 5 1.7 6.6 0' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='12' cy='12' r='8.5' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M8.5 10h.01M15.5 10h.01M8.7 14.2c1.6 1.7 5 1.7 6.6 0' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E")}
body.retro-forum .msn-compose-tools .msn-tool-btn:nth-child(4){color:#7c5cff;background:linear-gradient(180deg,#f7f3ff,#e3d9ff)}
body.retro-forum .msn-compose-tools .msn-tool-btn:nth-child(4)::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.5 4.5h8.8a3.2 3.2 0 013.2 3.2v5.1l-5.7 5.7H6.5a2 2 0 01-2-2v-10a2 2 0 012-2z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M13 18.5v-4.1a1.4 1.4 0 011.4-1.4h4.1' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.5 4.5h8.8a3.2 3.2 0 013.2 3.2v5.1l-5.7 5.7H6.5a2 2 0 01-2-2v-10a2 2 0 012-2z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M13 18.5v-4.1a1.4 1.4 0 011.4-1.4h4.1' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E")}
body.retro-forum .msn-audio-btn{color:#e8526f;background:linear-gradient(180deg,#fff4f7,#ffdce4)!important}
body.retro-forum .msn-audio-btn::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='9' y='3.5' width='6' height='11' rx='3' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M5.5 11.5a6.5 6.5 0 0013 0M12 18v2.5M8.7 20.5h6.6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='9' y='3.5' width='6' height='11' rx='3' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M5.5 11.5a6.5 6.5 0 0013 0M12 18v2.5M8.7 20.5h6.6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E")}
body.retro-forum .msn-mic-permission-btn{display:none!important}
body.retro-forum .msn-mic-permission-btn.granted{background:linear-gradient(180deg,#e7fff0,#bff3cf);color:#167044;border-color:rgba(22,112,68,.38)}
body.retro-forum .msn-mic-permission-btn.denied{background:linear-gradient(180deg,#fff1f1,#ffd5d5);color:#b42332;border-color:rgba(180,35,50,.38)}
body.retro-forum .msn-audio-btn{touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;-webkit-user-drag:none}
body.retro-forum .msn-audio-btn,
body.retro-forum .msn-audio-btn::before,
body.retro-forum .msn-audio-btn::after,
body.retro-forum .msn-audio-btn *{
  -webkit-user-select:none;
  user-select:none;
  -webkit-touch-callout:none;
  -webkit-user-drag:none;
}
body.retro-forum .msn-audio-btn.is-recording{background:linear-gradient(180deg,#fff2f2,#ffc7c7);color:#b42332;border-color:rgba(180,35,50,.42)}
body.retro-forum .msn-audio-btn.is-locked{background:linear-gradient(180deg,#e7fff0,#bff3cf);color:#167044;border-color:rgba(22,112,68,.42)}
body.retro-forum .msn-audio-state{display:flex;align-items:center;gap:6px;min-width:0;flex:1 1 190px;color:#1f7b6c;font-size:.72rem;font-weight:800}
body.retro-forum .msn-audio-timer{font-family:var(--font-m);min-width:38px;color:#17475a}
body.retro-forum .msn-audio-hint{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.retro-forum .msn-audio-timeline{height:6px;min-width:48px;flex:1 1 80px;border-radius:999px;background:rgba(23,112,173,.16);overflow:hidden}
body.retro-forum .msn-audio-timeline i{display:block;width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,#ff615c,#28f0ff)}
body.retro-forum .msn-audio-cancel{display:none;width:24px;height:24px;border:0;border-radius:999px;background:rgba(180,35,50,.12);color:#b42332;font-weight:900;cursor:pointer}
body.retro-forum .msn-audio-state.is-recording .msn-audio-cancel,
body.retro-forum .msn-audio-state.is-locked .msn-audio-cancel{display:inline-flex;align-items:center;justify-content:center}
body.retro-forum .msn-audio-state.is-locked .msn-audio-hint{color:#167044}
body.retro-forum .msn-upload-progress{width:100%;height:18px;align-items:center;gap:8px;color:#1f5f91;font-size:.68rem;font-weight:800;order:2}
body.retro-forum .msn-upload-progress span{display:block;height:7px;flex:1;border-radius:999px;background:linear-gradient(90deg,#59b7e2,#45c74e);box-shadow:inset 0 0 0 1px rgba(255,255,255,.35)}
body.retro-forum .msn-mini-picker{order:3;width:100%;grid-template-columns:repeat(8,1fr);gap:4px;padding:8px;border:1px solid rgba(73,123,160,.28);border-radius:14px;background:rgba(245,251,255,.98);box-shadow:0 8px 22px rgba(0,0,0,.12);z-index:20}
body.retro-forum .msn-mini-picker button{min-width:0;height:30px;border:0;border-radius:8px;background:rgba(91,177,226,.14);cursor:pointer}
body.retro-forum .msn-sticker-mini-picker img{width:26px;height:26px;object-fit:contain}
body.retro-forum .dm-media{max-width:220px;max-height:240px;display:block;border-radius:10px;margin-top:6px}
body.retro-forum .dm-audio{width:min(240px,100%);margin-top:6px}
body.retro-forum .dm-audio-player{width:min(244px,100%);display:flex;align-items:center;gap:7px;margin-top:7px;padding:7px 8px;border:1px solid rgba(73,123,160,.2);border-radius:15px;background:linear-gradient(180deg,rgba(255,255,255,.78),rgba(224,241,250,.72));box-shadow:inset 0 1px 0 rgba(255,255,255,.8)}
body.retro-forum .dm-audio-play{width:32px;height:32px;flex:0 0 32px;display:inline-flex;align-items:center;justify-content:center;border:1px solid rgba(16,190,208,.38);border-radius:999px;background:linear-gradient(180deg,#28f0ff,#10bed0);color:#042029;font-size:.78rem;font-weight:950;line-height:1;cursor:pointer;box-shadow:0 8px 18px rgba(16,190,208,.2)}
body.retro-forum .dm-audio-play.is-playing{background:linear-gradient(180deg,#e7fff0,#bff3cf);color:#167044;border-color:rgba(22,112,68,.38)}
body.retro-forum .msn-audio-pause{height:26px;align-items:center;justify-content:center;border:1px solid rgba(73,123,160,.24);border-radius:999px;background:rgba(255,255,255,.74);color:#315d76;font-size:.66rem;font-weight:900;padding:0 9px;cursor:pointer}
body.retro-forum #msn-audio-state.is-paused .msn-audio-timeline i{animation:none;opacity:.55}
body.retro-forum .dm-audio-main{min-width:0;flex:1;display:grid;gap:3px}
body.retro-forum .dm-audio-seek{--audio-progress:0%;width:100%;height:14px;margin:0;appearance:none;-webkit-appearance:none;background:transparent;cursor:pointer}
body.retro-forum .dm-audio-seek::-webkit-slider-runnable-track{height:6px;border-radius:999px;background:linear-gradient(90deg,#10bed0 var(--audio-progress),rgba(73,123,160,.18) var(--audio-progress));box-shadow:inset 0 0 0 1px rgba(255,255,255,.5)}
body.retro-forum .dm-audio-seek::-moz-range-track{height:7px;border-radius:999px;background:rgba(73,123,160,.18)}
body.retro-forum .dm-audio-seek::-moz-range-progress{height:7px;border-radius:999px;background:#10bed0}
body.retro-forum .dm-audio-seek::-webkit-slider-thumb{width:14px;height:14px;margin-top:-4px;border:2px solid #fff;border-radius:999px;background:#17314a;box-shadow:0 4px 12px rgba(0,0,0,.22);appearance:none;-webkit-appearance:none}
body.retro-forum .dm-audio-seek::-moz-range-thumb{width:12px;height:12px;border:2px solid #fff;border-radius:999px;background:#17314a;box-shadow:0 4px 12px rgba(0,0,0,.22)}
body.retro-forum .dm-audio-meta{display:flex;align-items:center;justify-content:space-between;gap:6px;color:#315d76;font-size:.58rem;font-weight:900;font-family:Arial,sans-serif;line-height:1;white-space:nowrap}
body.retro-forum .dm-audio-clock{display:inline-flex;align-items:center;gap:3px;min-width:0}
body.retro-forum .dm-audio-clock b{font-weight:900;color:rgba(49,93,118,.58)}
body.retro-forum .dm-sticker{width:92px;height:92px;object-fit:contain;display:block;margin-top:6px}
body.retro-forum .dm-system-msg{align-self:center;display:inline-flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:3px 7px;max-width:86%;margin:8px auto;padding:6px 12px;border:1px solid rgba(73,123,160,.18);border-radius:999px;background:rgba(255,255,255,.58);color:#57758a;font-size:.72rem;font-weight:850;text-align:center;line-height:1.25}
body.retro-forum .dm-system-msg .dm-system-time{font-size:.66rem;font-weight:900;color:rgba(87,117,138,.82);white-space:nowrap}
body.retro-forum .msn-modern-modal{display:grid;gap:0;overflow:hidden;border-radius:22px;background:linear-gradient(180deg,rgba(248,252,255,.98),rgba(226,241,250,.98));color:#17314a;box-shadow:0 28px 70px rgba(0,0,0,.34)}
body.retro-forum .msn-modern-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:18px 20px;border-bottom:1px solid rgba(73,123,160,.16);background:linear-gradient(135deg,rgba(40,240,255,.16),rgba(116,49,190,.1))}
body.retro-forum .msn-modern-kicker{font-size:.68rem;font-weight:900;text-transform:uppercase;color:#1f5f91;letter-spacing:.08em}
body.retro-forum .msn-modern-title{font-size:1.25rem;font-weight:950;color:#122c3f}
body.retro-forum .msn-modern-close{width:34px;height:34px;border:0;border-radius:999px;background:rgba(23,49,74,.08);color:#17314a;font-weight:950;cursor:pointer}
body.retro-forum .msn-modern-body{display:grid;gap:12px;padding:18px 20px}
body.retro-forum .msn-modern-label,
body.retro-forum .msn-modern-subtitle{font-size:.76rem;font-weight:900;color:#315d76}
body.retro-forum .msn-modern-input{width:100%;min-height:42px;border:1px solid rgba(73,123,160,.24);border-radius:14px;padding:0 13px;background:#fff;color:#17314a;outline:none;box-sizing:border-box}
body.retro-forum .msn-modern-input:focus{border-color:rgba(40,190,208,.65);box-shadow:0 0 0 4px rgba(40,190,208,.13)}
body.retro-forum .msn-modern-help{margin:0;color:#6a8799;font-size:.78rem;line-height:1.35}
body.retro-forum .msn-modern-actions{display:flex;justify-content:flex-end;gap:8px;padding:14px 20px 18px;border-top:1px solid rgba(73,123,160,.14)}
body.retro-forum .msn-modern-btn{min-height:38px;padding:0 15px;border-radius:999px;border:1px solid rgba(73,123,160,.22);font-weight:950;cursor:pointer}
  body.retro-forum .msn-modern-btn.primary{background:linear-gradient(180deg,#28f0ff,#10bed0);color:#04181d;border-color:rgba(16,190,208,.5)}
  body.retro-forum .msn-modern-btn.secondary{background:rgba(255,255,255,.72);color:#315d76}
  body.retro-forum .msn-participants-modal{width:min(430px,calc(100vw - 30px));overflow:hidden;border:1px solid rgba(91,145,190,.26)}
  body.retro-forum .msn-participants-head{align-items:center;padding:16px 18px;background:linear-gradient(135deg,rgba(218,243,255,.98),rgba(229,241,249,.98))}
  body.retro-forum .msn-participants-sub{margin-top:3px;color:#6a8799;font-size:.74rem;font-weight:800}
  body.retro-forum .msn-participants-body{padding:12px;max-height:min(420px,62vh);overflow:auto;background:rgba(238,248,253,.82)}
  body.retro-forum .msn-participants-list{display:grid;gap:8px}
  body.retro-forum .msn-participant-row{display:grid;grid-template-columns:42px minmax(0,1fr) auto auto;align-items:center;gap:9px;padding:8px;border:1px solid rgba(91,145,190,.2);border-radius:12px;background:rgba(255,255,255,.74);box-shadow:0 8px 18px rgba(31,95,145,.08)}
  body.retro-forum .msn-participant-row img{width:42px;height:42px;border-radius:11px;object-fit:cover;border:1px solid rgba(255,255,255,.92);box-shadow:0 0 0 1px rgba(73,123,160,.2)}
  body.retro-forum .msn-participant-copy{min-width:0;display:grid;gap:2px}
  body.retro-forum .msn-participant-copy strong,
  body.retro-forum .msn-participant-copy small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  body.retro-forum .msn-participant-copy strong{color:#17314a;font-size:.84rem;font-weight:950}
  body.retro-forum .msn-participant-copy small{color:#6a8799;font-size:.68rem;font-weight:800}
  body.retro-forum .msn-participant-role{padding:4px 8px;border-radius:999px;background:rgba(91,145,190,.13);color:#315d76;font-size:.62rem;font-weight:950;white-space:nowrap}
  body.retro-forum .msn-participant-role.is-admin{background:rgba(245,170,31,.2);color:#8b5607}
  body.retro-forum .msn-participant-row button{min-height:30px;border:1px solid rgba(23,112,173,.28);border-radius:999px;background:linear-gradient(180deg,#fff,#d7eefb);color:#1f5f91;font-size:.7rem;font-weight:950;padding:0 11px;cursor:pointer}
  @media (max-width:520px){body.retro-forum .msn-participant-row{grid-template-columns:38px minmax(0,1fr) auto}body.retro-forum .msn-participant-role{grid-column:2 / 3;justify-self:start}body.retro-forum .msn-participant-row button{grid-column:3 / 4;grid-row:1 / 3}}
  body.retro-forum .profile-modern-modal{width:min(620px,calc(100vw - 28px))}
body.retro-forum .profile-modern-body{gap:16px}
body.retro-forum .profile-modern-card{display:flex;align-items:center;gap:14px;padding:12px;border:1px solid rgba(73,123,160,.16);border-radius:18px;background:rgba(255,255,255,.66)}
body.retro-forum .profile-modern-avatar-wrap{position:relative;flex:0 0 auto}
body.retro-forum .profile-modern-avatar{width:78px;height:78px;border-radius:24px;object-fit:cover;border:2px solid rgba(40,190,208,.5);box-shadow:0 12px 28px rgba(31,95,145,.16)}
body.retro-forum .profile-modern-avatar-btn{position:absolute;right:-5px;bottom:-5px;width:34px;height:34px;display:flex;align-items:center;justify-content:center;border:1px solid rgba(16,190,208,.38);border-radius:999px;background:linear-gradient(180deg,#28f0ff,#10bed0);color:#04181d;box-shadow:0 10px 20px rgba(16,190,208,.22);cursor:pointer}
body.retro-forum .profile-modern-avatar-btn svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
body.retro-forum .profile-modern-id{display:grid;gap:3px;min-width:0}
body.retro-forum .profile-modern-id strong{font-size:1.05rem;color:#122c3f}
body.retro-forum .profile-modern-id span{color:#315d76;font-weight:800}
body.retro-forum .profile-modern-id small{color:#6a8799}
body.retro-forum .profile-modern-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
body.retro-forum .profile-modern-field{display:grid;gap:6px}
body.retro-forum .profile-modern-field.span-2{grid-column:1 / -1}
body.retro-forum .profile-modern-textarea{min-height:92px;resize:vertical;padding-top:11px}
@media (max-width: 640px){
  body.retro-forum .profile-modern-grid{grid-template-columns:1fr}
  body.retro-forum .profile-modern-field.span-2{grid-column:auto}
}
body.retro-forum .lightbox-overlay{position:fixed;inset:0;z-index:100000;display:flex;align-items:center;justify-content:center;padding:18px;background:rgba(0,0,0,.86);backdrop-filter:blur(8px)}
body.retro-forum .lightbox-media,
body.retro-forum .lightbox-overlay img,
body.retro-forum .lightbox-overlay video{max-width:min(96vw,1100px);max-height:88dvh;border-radius:14px;box-shadow:0 24px 80px rgba(0,0,0,.55);object-fit:contain}
body.retro-forum .lightbox-close{position:fixed;top:calc(14px + env(safe-area-inset-top,0px));right:calc(14px + env(safe-area-inset-right,0px));z-index:100001;border:1px solid rgba(255,255,255,.24);border-radius:999px;padding:9px 13px;background:rgba(16,18,20,.82);color:#fff;font-weight:900;cursor:pointer}
body.retro-forum .dm-reactions{display:flex;gap:5px;flex-wrap:wrap;margin-top:6px}
body.retro-forum .dm-react-count{display:inline-flex;align-items:center;gap:3px;border:1px solid rgba(73,123,160,.22);border-radius:999px;padding:2px 7px 2px 4px;background:rgba(255,255,255,.66);color:#24455e;font-size:.7rem;font-weight:900;cursor:pointer;transition:transform .16s ease,box-shadow .16s ease,background .16s ease}
body.retro-forum .dm-react-count:hover{transform:translateY(-1px);box-shadow:0 7px 14px rgba(44,90,120,.12)}
body.retro-forum .dm-react-count:active{transform:scale(.92)}
body.retro-forum .dm-react-count.mine{border-color:rgba(28,178,213,.5);background:rgba(222,248,255,.9);color:#126d89;animation:dmReactPop .38s cubic-bezier(.2,1.4,.32,1)}
body.retro-forum .dm-reaction-icon{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:999px;background:linear-gradient(180deg,#f8fdff,#dceffa);box-shadow:inset 0 1px 0 rgba(255,255,255,.75),0 3px 8px rgba(44,90,120,.12);transition:transform .18s ease,filter .18s ease}
body.retro-forum .dm-reaction-icon svg{width:13px;height:13px;display:block;fill:currentColor}
body.retro-forum .dm-reaction-icon-love{color:#f04d7d;background:linear-gradient(180deg,#fff1f6,#ffd6e4)}
body.retro-forum .dm-reaction-icon-like{color:#1688d8;background:linear-gradient(180deg,#ebf7ff,#cfeaff)}
body.retro-forum .dm-reaction-icon-dislike{color:#7d8798;background:linear-gradient(180deg,#f4f7fb,#dbe2ec)}
body.retro-forum .dm-reaction-icon-up{color:#12a876;background:linear-gradient(180deg,#ebfff7,#cdf7e7)}
body.retro-forum .dm-reaction-icon-down{color:#f09b24;background:linear-gradient(180deg,#fff7e9,#ffe3b8)}
body.retro-forum .dm-reaction-bar{position:fixed;z-index:99999;display:flex;gap:7px;padding:7px;border-radius:999px;background:rgba(248,253,255,.98);border:1px solid rgba(73,123,160,.22);box-shadow:0 16px 36px rgba(0,0,0,.22),inset 0 1px 0 rgba(255,255,255,.85);animation:dmReactionBarIn .2s cubic-bezier(.2,1.15,.32,1)}
body.retro-forum .dm-reaction-bar button{width:38px;height:38px;border:0;border-radius:50%;background:rgba(255,255,255,.72);font-size:1.12rem;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;transition:transform .16s ease,box-shadow .16s ease,background .16s ease}
body.retro-forum .dm-reaction-bar button .dm-reaction-icon{width:30px;height:30px}
body.retro-forum .dm-reaction-bar button .dm-reaction-icon svg{width:17px;height:17px}
body.retro-forum .dm-reaction-bar button:hover{transform:translateY(-3px);box-shadow:0 10px 18px rgba(44,90,120,.18)}
body.retro-forum .dm-reaction-bar button:active{transform:scale(.9)}
body.retro-forum .dm-reaction-bar button.is-target{background:rgba(91,183,220,.18);transform:translateY(-6px) scale(1.16);box-shadow:0 10px 20px rgba(28,128,168,.2)}
body.retro-forum .dm-msg.is-menu-selected .dm-bubble{outline:2px solid rgba(29,183,219,.55);outline-offset:3px;box-shadow:0 0 0 6px rgba(29,183,219,.12),0 12px 26px rgba(35,92,124,.18)}
body.retro-forum .dm-msg.is-menu-selected{z-index:3}
body.retro-forum .dm-bubble{user-select:none;-webkit-user-select:none}
body.retro-forum .dm-bubble .dm-text,
body.retro-forum .dm-bubble .dm-text *{user-select:text;-webkit-user-select:text}
body.retro-forum .dm-msg.is-menu-selected .dm-bubble,
body.retro-forum .dm-msg.is-menu-selected .dm-bubble *{user-select:none !important;-webkit-user-select:none !important}
body.retro-forum .dm-action-pulse .dm-bubble{animation:dmBubblePulse .42s ease}
@keyframes dmReactionBarIn{from{opacity:0;transform:translateY(8px) scale(.94)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes dmReactPop{0%{transform:scale(.82)}70%{transform:scale(1.12)}100%{transform:scale(1)}}
@keyframes dmBubblePulse{0%{box-shadow:0 0 0 rgba(32,178,213,0)}45%{box-shadow:0 0 0 5px rgba(32,178,213,.18)}100%{box-shadow:0 0 0 rgba(32,178,213,0)}}
body.retro-forum .dm-message-menu{position:fixed;z-index:100000;display:grid;gap:4px;min-width:190px;padding:7px;border-radius:16px;background:rgba(19,31,38,.98);border:1px solid rgba(91,183,220,.28);box-shadow:0 14px 34px rgba(0,0,0,.28),0 0 0 1px rgba(255,255,255,.04)}
body.retro-forum .dm-message-menu button{width:100%;border:0;border-radius:11px;padding:9px 10px;background:transparent;color:#effcff;font-size:.76rem;font-weight:900;text-align:left;cursor:pointer}
body.retro-forum .dm-message-menu button:hover{background:rgba(120,210,245,.14)}
body.retro-forum .dm-message-menu button.danger{color:#ffb9b9}
body.retro-forum .dm-forward-preview{margin-bottom:10px;padding:10px 12px;border-radius:14px;background:rgba(255,255,255,.72);border:1px solid rgba(73,123,160,.2);color:#203542;font-size:.82rem;line-height:1.35}
body.retro-forum .msn-forward-group{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:50%;background:rgba(47,178,218,.14);color:#1688ad;font-weight:900}
body.dm-reaction-selecting,
body.dm-reaction-selecting *{
  user-select:none !important;
  -webkit-user-select:none !important;
}

body.retro-forum .panel,
body.retro-forum .post-card,
body.retro-forum .chat-col,
body.retro-forum .float-chat-panel,
body.retro-forum .modal,
body.retro-forum .auth-box,
body.retro-forum #profile-card {
  background: linear-gradient(180deg, rgba(36, 43, 44, 0.94), rgba(24, 30, 31, 0.94));
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--hud-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body.retro-forum .panel,
body.retro-forum .post-card {
  padding: 20px;
}

body.retro-forum .panel-title,
body.retro-forum .chat-title,
body.retro-forum .auth-logo,
body.retro-forum .modal-title,
body.retro-forum .profile-display-name,
body.retro-forum .post-username {
  font-family: var(--font-h);
}

body.retro-forum .panel-title {
  color: var(--cyan2);
  font-size: 1.02rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-weight: 700;
  margin-bottom: 14px;
}

body.retro-forum .panel-title::before {
  width: 4px;
  height: 17px;
  background: linear-gradient(180deg, var(--cyan), var(--cyan2));
  border-radius: 3px;
  box-shadow: var(--glow);
}

body.retro-forum .divider {
  background: linear-gradient(90deg, rgba(91, 168, 208, 0.34), rgba(0, 251, 251, 0.12), transparent);
  height: 1px;
}

body.retro-forum input,
body.retro-forum textarea,
body.retro-forum select {
  background: rgba(42, 49, 49, 0.92);
  border: 1px solid rgba(91, 168, 208, 0.16);
  border-radius: 14px;
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.retro-forum input::placeholder,
body.retro-forum textarea::placeholder {
  color: rgba(168, 187, 176, 0.62);
}

body.retro-forum input:focus,
body.retro-forum textarea:focus,
body.retro-forum select:focus {
  outline: none;
  border-color: rgba(0, 251, 251, 0.34);
  box-shadow: 0 0 0 3px rgba(0, 251, 251, 0.08), var(--glow);
}

body.retro-forum .form-label {
  color: var(--cyan);
  font-family: var(--font-m);
  font-size: 0.56rem;
  letter-spacing: 0.08em;
}

body.retro-forum .post-card {
  border-left: 1px solid var(--border);
  position: relative;
  background: linear-gradient(180deg, rgba(233, 238, 236, 0.96), rgba(220, 227, 224, 0.95));
  border-color: rgba(91, 168, 208, 0.18);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

body.retro-forum .post-card--manageable .post-header {
  padding-right: 54px;
}

/* ─── LADO COMENTARIOS (reverso de la tarjeta) — TEMA BLANCO ──────────── */
body.retro-forum .post-card .comments-post-preview {
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: rgba(0, 0, 0, 0.07);
}
body.retro-forum .post-card .cpp-username { color: #1a3a4a; }
body.retro-forum .post-card .cpp-text,
body.retro-forum .post-card .cpp-media    { color: #4a5568; }

body.retro-forum .post-card .comments-back-header {
  background: rgba(248, 249, 252, 0.96);
  border-bottom-color: rgba(0, 0, 0, 0.07);
}
body.retro-forum .post-card .comments-back-title { color: #6d28d9; }
body.retro-forum .post-card .comments-back-close {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(0, 0, 0, 0.12);
  color: #374151;
}
body.retro-forum .post-card .comments-back-close:hover {
  border-color: #7c3aed;
  color: #7c3aed;
}

body.retro-forum .post-card .comment-bubble {
  background: #f1f4f9;
  border-color: rgba(0, 0, 0, 0.06);
}
body.retro-forum .post-card .comment-username { color: #1e40af; }
body.retro-forum .post-card .comment-text     { color: #1f2937; }
body.retro-forum .post-card .comment-time     { color: #6b7280; }
body.retro-forum .post-card .comment-empty    { color: #9ca3af; }
body.retro-forum .post-card .comment-guest-note {
  border-top-color: rgba(0, 0, 0, 0.07);
  color: #9ca3af;
}
body.retro-forum .post-card .comment-del-btn {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.09);
  color: #374151;
}

/* Input area resaltada */
body.retro-forum .post-card .comment-input-area {
  background: rgba(246, 247, 255, 0.98);
  border-top: 2px solid rgba(109, 40, 217, 0.18);
  padding: 12px 14px 16px;
}
body.retro-forum .post-card .comment-tools-bar {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}
body.retro-forum .post-card .comment-img-btn,
body.retro-forum .post-card .comment-sticker-btn {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.10);
  color: #374151;
}
body.retro-forum .post-card .comment-img-btn:hover {
  border-color: rgba(0, 130, 200, 0.45);
  color: #0369a1;
  box-shadow: 0 0 10px rgba(0, 130, 200, 0.14);
}
body.retro-forum .post-card .comment-sticker-btn:hover {
  border-color: rgba(109, 40, 217, 0.4);
  color: #6d28d9;
  box-shadow: 0 0 10px rgba(109, 40, 217, 0.12);
}
body.retro-forum .post-card .comment-input-area textarea {
  background: #ffffff;
  border: 1.5px solid rgba(109, 40, 217, 0.18);
  color: #1f2937;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.07);
}
body.retro-forum .post-card .comment-input-area textarea::placeholder { color: #9ca3af; }
body.retro-forum .post-card .comment-input-area textarea:focus {
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

/* Botón enviar — mismo estilo y tamaño que el chat */
body.retro-forum .post-card .comment-send-btn {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.38);
}
body.retro-forum .post-card .comment-send-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}
body.retro-forum .post-card .comment-send-btn:hover {
  transform: translateY(-1px) scale(1.05);
  box-shadow: 0 8px 22px rgba(124, 58, 237, 0.48);
  border-color: rgba(255, 255, 255, 0.32);
}

body.retro-forum .post-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  column-gap: 14px;
  row-gap: 8px;
  margin-bottom: 14px;
}

body.retro-forum .post-avatar {
  width: 48px;
  height: 48px;
  border: 2px solid rgba(0, 251, 251, 0.18);
  margin-top: 2px;
}

body.retro-forum .post-meta {
  min-width: 0;
  display: grid;
  gap: 5px;
  align-content: start;
}

body.retro-forum .post-meta > .flex {
  align-items: center;
  flex-wrap: wrap;
  row-gap: 6px;
}

body.retro-forum .post-username {
  color: var(--cyan2);
  font-size: 1.08rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.04;
  overflow-wrap: anywhere;
}

body.retro-forum .post-time,
body.retro-forum .edited-tag {
  color: #6f7b74;
  font-size: 0.52rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

body.retro-forum .post-time {
  display: block;
  line-height: 1.55;
  padding-left: 1px;
}

body.retro-forum .edited-tag {
  white-space: nowrap;
  margin-left: 6px;
}

body.retro-forum .post-header > .flex.g2.ml-auto {
  align-self: start;
  justify-content: flex-end;
  flex-wrap: wrap;
}

body.retro-forum .post-tools {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 6;
}

body.retro-forum .post-tools__trigger {
  width: 34px;
  height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(76, 84, 86, 0.28);
  background: linear-gradient(180deg, rgba(29, 34, 35, 0.92), rgba(18, 23, 24, 0.96));
  color: #dfe5e2;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.14);
  transition: transform 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

body.retro-forum .post-tools__trigger:hover,
body.retro-forum .post-tools.is-open .post-tools__trigger {
  color: #ffffff;
  border-color: rgba(91, 168, 208, 0.30);
  background: linear-gradient(180deg, rgba(35, 41, 42, 0.96), rgba(21, 27, 28, 0.98));
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.16);
}

body.retro-forum .post-tools__trigger:active {
  transform: translateY(1px);
}

body.retro-forum .post-tools__trigger svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

body.retro-forum .post-tools__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: auto;
  min-width: 144px;
  display: none;
  gap: 6px;
  padding: 8px;
  border-radius: 16px;
  border: 1px solid rgba(91, 168, 208, 0.16);
  background: linear-gradient(180deg, rgba(30, 36, 37, 0.98), rgba(18, 23, 24, 0.99));
  box-shadow: var(--hud-shadow), 0 0 18px rgba(0, 251, 251, 0.08);
}

body.retro-forum .post-tools.is-open .post-tools__menu {
  display: grid;
}

body.retro-forum .post-tools__action {
  width: 100%;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
}

body.retro-forum .post-tools__action:hover {
  color: var(--cyan);
  border-color: rgba(0, 251, 251, 0.2);
  background: rgba(0, 251, 251, 0.05);
}

body.retro-forum .post-tools__action--danger:hover {
  color: var(--red);
  border-color: rgba(255, 115, 81, 0.2);
  background: rgba(255, 115, 81, 0.06);
}

body.retro-forum .post-body {
  color: #202824;
  font-size: 0.98rem;
  line-height: 1.72;
}

body.retro-forum .post-img,
body.retro-forum .post-video {
  border-radius: 18px;
  border: 1px solid rgba(0, 251, 251, 0.14);
  background: #040607;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
  margin-top: 16px;
}

body.retro-forum .post-reactions {
  margin-top: 16px;
  padding: 10px;
  border: 1px solid #000;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(219, 225, 222, 0.95), rgba(203, 210, 206, 0.95));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

body.retro-forum .post-reactions .react-btn,
body.retro-forum .post-reactions .comment-btn,
body.retro-forum .post-reactions .share-btn,
body.retro-forum .post-reactions .report-btn {
  color: #111 !important;
}

body.retro-forum .post-reactions .react-btn span,
body.retro-forum .post-reactions .comment-btn span,
body.retro-forum .post-reactions .share-btn span,
body.retro-forum .post-reactions .report-btn span,
body.retro-forum .post-reactions .react-count {
  color: #111 !important;
}

body.retro-forum .react-btn {
  min-height: 42px;
  border: 0;
  background: transparent;
  color: #58645d;
  border-radius: 12px;
  padding: 0 14px;
  transition: transform 0.16s ease, color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

body.retro-forum .react-btn:hover {
  background: rgba(255, 255, 255, 0.55);
}

body.retro-forum .react-btn svg {
  opacity: 0.78;
}

body.retro-forum .react-btn span {
  color: inherit;
}

body.retro-forum .like-btn.active {
  color: var(--green);
  background: rgba(47, 248, 1, 0.08);
  box-shadow: var(--glow-g);
}

body.retro-forum .dislike-btn.active {
  color: var(--red);
  background: rgba(255, 115, 81, 0.08);
}

body.retro-forum .react-count {
  font-family: var(--font-m);
  font-size: 0.6rem;
}

body.retro-forum .react-sep {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  height: 26px;
}

body.retro-forum .chat-col,
body.retro-forum .float-chat-panel {
  overflow: hidden;
}

body.retro-forum .chat-header,
body.retro-forum .float-chat-panel .fcp-header {
  background: linear-gradient(90deg, rgba(49, 57, 57, 0.98), rgba(24, 212, 218, 0.08), rgba(255, 81, 250, 0.06)) !important;
  border-bottom: 1px solid rgba(114, 239, 93, 0.14) !important;
  padding: 14px 16px !important;
}

body.retro-forum .chat-header > div:first-child,
body.retro-forum .float-chat-panel .fcp-header > div:first-child {
  min-width: 0;
  flex: 1;
}

body.retro-forum .chat-title {
  color: var(--green);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-shadow: 0 0 10px rgba(142, 255, 113, 0.22);
}

body.retro-forum #chat-count,
body.retro-forum #fcp-count,
body.retro-forum #mobile-chat-count {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 4px;
  font-family: var(--font-m);
  font-size: 0.5rem;
  line-height: 1.35;
  color: var(--text3);
}

body.retro-forum .chat-counter-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
}

body.retro-forum .chat-counter-part,
body.retro-forum .chat-counter-sep {
  font-size: inherit;
  line-height: inherit;
  white-space: nowrap;
}

body.retro-forum .chat-counter-part--status {
  color: var(--green);
}

body.retro-forum .chat-counter-sep {
  opacity: 0.55;
}

body.retro-forum .chat-counter-typing {
  display: block;
  font-size: 0.46rem;
  line-height: 1.35;
  color: var(--cyan2);
}

body.retro-forum .ol-dot {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(142, 255, 113, 0.08), 0 0 12px rgba(142, 255, 113, 0.48);
}

body.retro-forum .chat-msgs,
body.retro-forum .float-chat-panel .fcp-msgs {
  background: linear-gradient(180deg, rgba(31, 37, 38, 0.98), rgba(24, 30, 31, 0.98)) !important;
}

body.retro-forum .cm-menu {
  background: #0f1315;
  border-color: rgba(0,251,251,0.18);
  border-radius: 10px;
}
body.retro-forum .cm-menu-item { color: #c8d8d4; }
body.retro-forum .cm-menu-item:hover { background: rgba(0,251,251,0.08); }
body.retro-forum .cm-menu-item.danger { color: #ff6b6b; }
body.retro-forum .cm-menu-item.danger:hover { background: rgba(255,60,60,0.1); }

body.retro-forum .cm-bubble {
  background: #f4f7f2;
  border: 1px solid rgba(24, 212, 218, 0.12);
  border-radius: 18px 18px 18px 6px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

body.retro-forum .cm-bubble::before,
body.retro-forum .cm-bubble::after {
  display: none;
}

body.retro-forum .chat-msg.own .cm-bubble {
  background: linear-gradient(180deg, #3c6a2d, #315624);
  border-color: rgba(160, 255, 141, 0.24);
  border-radius: 18px 18px 6px 18px;
}

body.retro-forum .cm-user {
  color: #5be35b;
  font-family: var(--font-h);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.retro-forum .chat-msg.own .cm-user {
  color: #dfffe0;
}

body.retro-forum .cm-text {
  color: #1e2721;
  font-size: 1rem;
  line-height: 1.45;
}

body.retro-forum .chat-msg.own .cm-text {
  color: #f4fff0;
}

body.retro-forum .cm-time {
  color: #88978b;
  font-size: 0.52rem;
  letter-spacing: 0.02em;
  margin-top: 4px;
  opacity: 0.74;
  align-self: flex-end;
  line-height: 1.1;
  white-space: nowrap;
}

body.retro-forum .chat-msg.own .cm-time {
  color: #d4e4cf;
}

body.retro-forum .chat-img-thumb {
  border-radius: 14px;
  border: 1px solid rgba(0, 251, 251, 0.14);
  background: #050708;
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.18);
}

body.retro-forum .chat-input-area,
body.retro-forum .fcp-input {
  background: rgba(28, 34, 35, 0.96);
  border-top: 1px solid rgba(114, 239, 93, 0.12);
}

body.retro-forum .chat-input-area textarea,
body.retro-forum .fcp-input textarea {
  min-height: 46px;
  max-height: 120px;
  border-radius: 24px;
}

body.retro-forum .chat-float {
  background: linear-gradient(180deg, #5e67d8 0%, #4955c7 100%);
  color: #ffffff;
  border: 0;
  animation: chatFloatBob 2.6s ease-in-out infinite;
  left: auto !important;
  right: max(14px, calc(env(safe-area-inset-right, 0px) + 10px)) !important;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px) + var(--keyboard-offset)) !important;
  transform: none !important;
  min-width: 138px;
  width: 138px;
  height: 42px;
  padding: 0;
  border-radius: 7px;
  gap: 0;
  overflow: visible;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.20);
}

body.retro-forum .chat-float .msn-unread-badge {
  top: 3px;
  right: 3px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  z-index: 12;
  border-width: 1px;
  border-color: rgba(255,255,255,.92);
  box-shadow: 0 6px 14px rgba(226,44,64,.34);
  opacity: 0;
  visibility: hidden;
  transform: scale(0.6);
  transform-origin: center center;
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}

body.retro-forum .chat-float .msn-unread-badge.is-visible {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

body.retro-forum .chat-float .msn-unread-badge.is-bump {
  animation: hudChatBadgePop 0.32s cubic-bezier(.2,1.1,.3,1);
}

@keyframes hudChatBadgePop {
  0% { transform: scale(0.55); }
  55% { transform: scale(1.18); }
  100% { transform: scale(1); }
}

body.retro-forum .chat-float-ring {
  display: none;
}

body.retro-forum .chat-float-core {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: stretch;
  justify-content: stretch;
  background: transparent;
  color: #ffffff;
  box-shadow: none;
}

body.retro-forum .chat-float-bubbles {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(180deg, #59d52a 0%, #43be1d 100%);
}

body.retro-forum .chat-float-bubbles::after {
  content: "";
  position: absolute;
  top: 0;
  right: -14px;
  width: 28px;
  height: 100%;
  background: inherit;
  transform: skewX(-18deg);
  transform-origin: center;
}

body.retro-forum .chat-float-bubbles svg {
  width: 18px;
  height: 18px;
  display: block;
  position: relative;
  z-index: 1;
}

body.retro-forum .chat-float-live {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 0 14px 0 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,0) 52%),
    linear-gradient(180deg, #5e67d8 0%, #4955c7 100%);
  color: #ffffff;
  font-family: var(--font-h);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

body.retro-forum.chat-open .chat-float {
  animation: none;
}

body.retro-forum .chat-float:active {
  transform: scale(.94) !important;
}

body.retro-forum .chat-float.is-open {
  transform: translateY(10px) scale(.82) !important;
}

body.retro-forum .guest-banner,
body.retro-forum .empty-st {
  background: rgba(34, 40, 41, 0.86);
  border: 1px dashed rgba(24, 212, 218, 0.18);
  border-radius: 18px;
  color: var(--text2);
}

body.retro-forum .empty-icon {
  color: var(--cyan);
  text-shadow: var(--glow);
  font-family: var(--font-m);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.retro-forum .sticker-picker {
  background: linear-gradient(180deg, rgba(38, 45, 46, 0.98), rgba(25, 31, 32, 0.98));
  border: 1px solid rgba(24, 212, 218, 0.16);
  border-radius: 18px;
  box-shadow: var(--hud-shadow);
}

body.retro-forum .modal-overlay,
body.retro-forum .auth-screen {
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body.retro-forum .auth-box,
body.retro-forum .modal {
  max-width: 560px;
  padding: 28px;
}

body.retro-forum .auth-logo,
body.retro-forum .modal-title {
  color: var(--green);
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-style: italic;
  letter-spacing: 0.06em;
  text-shadow: 0 0 18px rgba(142, 255, 113, 0.18);
}

body.retro-forum .auth-sub,
body.retro-forum #auth-note {
  color: var(--cyan);
  font-family: var(--font-m);
  font-size: 0.56rem;
  letter-spacing: 0.07em;
}

body.retro-forum .auth-tabs {
  background: rgba(7, 10, 11, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 18px;
  padding: 5px;
}

body.retro-forum .auth-tab {
  color: var(--text2);
  border-radius: 14px;
  font-family: var(--font-m);
  font-size: 0.56rem;
  letter-spacing: 0.05em;
}

body.retro-forum .auth-tab.active {
  background: linear-gradient(135deg, rgba(142, 255, 113, 0.9), rgba(47, 248, 1, 0.94));
  color: #041005;
  box-shadow: var(--glow-g);
}

body.retro-forum .modal-close,
body.retro-forum .auth-box > button:first-child,
body.retro-forum .float-chat-panel .fcp-header button {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: var(--text2) !important;
  border-radius: 12px !important;
  box-shadow: none !important;
}

body.retro-forum .float-chat-panel .fcp-close {
  width: 44px !important;
  height: 44px !important;
  border-radius: 16px !important;
  border: 1px solid rgba(255, 215, 10, 0.42) !important;
  background:
    linear-gradient(180deg, rgba(255, 228, 120, 0.98), rgba(255, 196, 0, 0.88)) !important;
  color: #231500 !important;
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.26),
    0 0 0 1px rgba(255, 215, 10, 0.18),
    0 0 24px rgba(255, 215, 10, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.28) !important;
  position: relative;
  overflow: hidden;
  animation: fcp-close-pulse 2.2s ease-in-out infinite;
}

body.retro-forum .float-chat-panel .fcp-close .fcp-close-glow {
  position: absolute;
  left: -8px;
  bottom: -10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 215, 10, 0.62), rgba(255, 215, 10, 0));
  pointer-events: none;
}

body.retro-forum .float-chat-panel .fcp-close svg {
  width: 18px;
  height: 18px;
  position: relative;
  z-index: 1;
  transition: transform 0.2s ease;
}

body.retro-forum .float-chat-panel .fcp-close:hover {
  transform: translateY(-2px) scale(1.04) !important;
  background:
    linear-gradient(180deg, rgba(255, 241, 164, 1), rgba(255, 204, 0, 0.94)) !important;
  border-color: rgba(255, 215, 10, 0.68) !important;
  box-shadow:
    0 16px 32px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 215, 10, 0.24),
    0 0 26px rgba(255, 215, 10, 0.34) !important;
  filter: saturate(1.08);
}

body.retro-forum .float-chat-panel .fcp-close:hover svg {
  transform: rotate(90deg);
}

body.retro-forum .float-chat-panel .fcp-close:active {
  animation: none;
}

body.retro-forum .toast {
  right: 18px;
  bottom: calc(80px + 12px); /* encima del nav móvil */
  background: rgba(8, 11, 12, 0.94);
  border: 1px solid rgba(142, 255, 113, 0.26);
  border-radius: 16px;
  color: var(--text);
  box-shadow: var(--hud-shadow), var(--glow-g);
}

body.retro-forum .toast.err {
  border-color: rgba(255, 115, 81, 0.34);
  box-shadow: var(--hud-shadow), 0 0 18px rgba(255, 115, 81, 0.2);
}

body.retro-forum #page-admin .tabs {
  gap: 8px;
  padding: 8px;
  background: rgba(7, 10, 11, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 18px;
  margin: 18px 0;
}

body.retro-forum #page-admin .tab {
  min-height: 42px;
  padding: 0 16px;
  font-family: var(--font-m);
  font-size: 0.55rem;
  letter-spacing: 0.04em;
}

body.retro-forum .admin-table {
  border-collapse: separate;
  border-spacing: 0;
}

body.retro-forum .admin-table th {
  color: var(--cyan);
  font-family: var(--font-m);
  font-size: 0.54rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid rgba(0, 251, 251, 0.12);
}

body.retro-forum .admin-table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

body.retro-forum .admin-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

body.retro-forum .limpieza-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

body.retro-forum #page-profile {
  max-width: 760px !important;
}

body.retro-forum .profile-cover-new {
  min-height: 196px;
  background:
    linear-gradient(135deg, rgba(5, 11, 10, 0.94), rgba(0, 251, 251, 0.08), rgba(255, 81, 250, 0.08)),
    linear-gradient(180deg, rgba(0, 0, 0, 0) 28%, rgba(0, 0, 0, 0.36) 100%);
  border-bottom: 1px solid rgba(142, 255, 113, 0.14);
}

body.retro-forum .profile-cover-new::before {
  width: 100%;
  max-width: 100%;
  padding: 0 28px;
  box-sizing: border-box;
  text-align: center;
  font-size: clamp(2rem, 7vw, 3.2rem);
  letter-spacing: clamp(0.12em, 0.8vw, 0.24em);
  overflow: hidden;
}

body.retro-forum .profile-cover-new::before,
body.retro-forum .profile-cover-new::after {
  opacity: 1;
}

body.retro-forum .profile-avatar-area {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 20px;
  padding: 0 24px 22px;
  margin-top: -44px;
  align-items: end;
}

body.retro-forum .profile-av-wrap {
  position: relative;
  width: 124px;
  height: 124px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 28px;
  background: rgba(7, 10, 11, 0.92);
  border: 1px solid rgba(0, 251, 251, 0.18);
  box-shadow: var(--hud-shadow);
  justify-self: start;
}

body.retro-forum .profile-av-img {
  width: 100%;
  height: 100%;
  border-radius: 24px;
  border: 2px solid rgba(142, 255, 113, 0.3);
}

body.retro-forum .profile-av-edit-btn {
  width: 44px;
  height: 44px;
  position: absolute;
  right: -8px;
  bottom: 8px;
  padding: 0;
}

body.retro-forum .profile-av-edit-btn span {
  color: #041005 !important;
  font-size: 0.9rem !important;
}

body.retro-forum .profile-info-area {
  width: 100%;
  min-width: 0;
  display: grid;
  gap: 10px;
  align-self: center;
  padding-top: 22px;
  padding-bottom: 0;
}

body.retro-forum .profile-display-name {
  font-size: clamp(1.8rem, 4vw, 2.3rem);
  color: var(--text);
  line-height: 1.06;
  overflow-wrap: anywhere;
}

body.retro-forum .profile-username-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--text2);
  margin-top: 0;
  overflow-wrap: anywhere;
}

body.retro-forum .profile-info-area .txs.tdim {
  margin-top: 0 !important;
  font-size: 0.74rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

body.retro-forum .profile-desc-text {
  width: 100%;
  min-width: 0;
  margin-top: 0;
  padding: 12px 14px;
  background: rgba(7, 10, 11, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

body.retro-forum .profile-since {
  color: var(--text3);
  font-size: 0.5rem;
  margin-top: 0;
  letter-spacing: 0.05em;
  line-height: 1.8;
}

body.retro-forum .profile-xp-card {
  display: grid;
  gap: 10px;
  margin-top: 2px;
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(12, 18, 17, 0.96), rgba(6, 10, 9, 0.96));
  border: 1px solid rgba(142, 255, 113, 0.16);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 12px 28px rgba(0, 0, 0, 0.26);
}

body.retro-forum .profile-xp-head,
body.retro-forum .profile-xp-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

body.retro-forum .profile-xp-kicker,
body.retro-forum .profile-xp-foot {
  color: var(--text3);
  font-size: 0.52rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.retro-forum .profile-xp-level,
body.retro-forum .profile-xp-percent {
  color: var(--green);
  font-family: var(--font-h);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-shadow: 0 0 14px rgba(142, 255, 113, 0.18);
}

body.retro-forum .profile-xp-level {
  font-size: 0.9rem;
}

body.retro-forum .profile-xp-percent {
  font-size: 0.88rem;
}

body.retro-forum .profile-xp-points {
  color: var(--text);
  font-size: 0.7rem;
  font-family: var(--font-m);
  letter-spacing: 0.04em;
}

body.retro-forum .profile-xp-bar {
  width: 100%;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(5, 9, 10, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.24);
}

body.retro-forum .profile-xp-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(47, 248, 1, 0.9), rgba(0, 251, 251, 0.9));
  box-shadow: 0 0 16px rgba(142, 255, 113, 0.24), 0 0 28px rgba(0, 251, 251, 0.16);
  transition: width 0.35s ease;
}

body.retro-forum .profile-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 16px 24px 24px;
  border-top: 1px solid rgba(142, 255, 113, 0.1);
}

body.retro-forum .profile-stat {
  min-width: 0;
  padding: 14px 10px;
  background: rgba(7, 10, 11, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
}

body.retro-forum .profile-stat-num {
  color: var(--green);
  font-size: 1.7rem;
  text-shadow: 0 0 16px rgba(142, 255, 113, 0.16);
}

body.retro-forum .profile-stat-lbl {
  color: var(--text3);
  font-size: 0.5rem;
  letter-spacing: 0.05em;
}

body.retro-forum .profile-friends {
  padding: 18px 24px 24px;
}

body.retro-forum .profile-friends-head {
  align-items: baseline;
}

body.retro-forum .profile-friends-count {
  text-align: right;
}

body.retro-forum .profile-friends-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}

body.retro-forum .profile-friend-card {
  padding: 14px;
  border-radius: 16px;
}

body.retro-forum .profile-friend-main {
  align-items: flex-start;
}

body.retro-forum .profile-friend-meta {
  overflow: hidden;
  gap: 4px;
}

body.retro-forum .profile-friend-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

body.retro-forum .profile-friend-action {
  width: 100%;
  min-height: 34px;
  justify-content: flex-start;
  padding: 0 12px;
}


body.retro-forum .ptr-indicator {
  background: rgba(7, 10, 11, 0.92);
  border: 1px solid rgba(0, 251, 251, 0.18);
  color: var(--cyan);
  border-radius: 999px;
  box-shadow: var(--hud-shadow), var(--glow);
}

body.retro-forum[data-page="admin"] .nav-urlbar {
  border-color: rgba(255, 81, 250, 0.26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 0 18px rgba(255, 81, 250, 0.12);
}

body.retro-forum[data-page="profile"] .nav-urlbar {
  border-color: rgba(0, 251, 251, 0.28);
}

body.retro-forum.auth-visible .auth-box,
body.retro-forum.auth-visible .modal {
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.42), 0 0 28px rgba(142, 255, 113, 0.12);
}

body.retro-forum.chat-open .chat-float {
  transform: scale(0.92);
  opacity: 0.7;
}

@media (max-width: 900px) {
  body.retro-forum .navbar {
    gap: 8px;
  }

  body.retro-forum .nav-urlbar {
    order: 10;
    width: 100%;
    margin-top: 8px;
  }

  body.retro-forum .app-layout {
    padding: 14px 12px 26px;
  }

  body.retro-forum .panel,
  body.retro-forum .post-card {
    padding: 16px;
  }
}

@media (max-width: 640px) {
  body.retro-forum .logo {
    font-size: 1.18rem;
  }

  body.retro-forum .nav-badge,
  body.retro-forum .tab,
  body.retro-forum .panel-title,
  body.retro-forum .auth-sub,
  body.retro-forum #auth-note {
    letter-spacing: 0.03em;
  }

  body.retro-forum .profile-avatar-area {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 14px;
    padding: 0 18px 18px;
    margin-top: -38px;
  }

  body.retro-forum .profile-cover-new {
    min-height: 154px;
  }

  body.retro-forum .profile-cover-new::before {
    padding: 0 18px;
    font-size: clamp(1.7rem, 10vw, 2.3rem);
    letter-spacing: 0.16em;
  }

  body.retro-forum .profile-av-wrap {
    width: 104px;
    height: 104px;
  }

  body.retro-forum .profile-info-area {
    padding-top: 0;
  }

  body.retro-forum .profile-display-name {
    font-size: clamp(1.45rem, 7.5vw, 1.9rem);
  }

  body.retro-forum .profile-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 16px 18px 18px;
  }

  body.retro-forum .profile-xp-card {
    padding: 12px 14px;
  }

  body.retro-forum .profile-xp-points {
    font-size: 0.64rem;
  }

  body.retro-forum .profile-friends {
    padding: 16px 18px 18px;
  }

  body.retro-forum .profile-friends-grid {
    grid-template-columns: 1fr;
  }

  body.retro-forum .post-header {
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 12px;
  }

  body.retro-forum .post-card--manageable .post-header {
    padding-right: 44px;
  }

  body.retro-forum .post-tools {
    top: 12px;
    right: 12px;
  }

  body.retro-forum .post-tools__trigger {
    width: 34px;
    height: 34px;
    border-radius: 12px;
  }

  body.retro-forum .post-tools__menu {
    min-width: 132px;
  }

  body.retro-forum .post-avatar {
    width: 44px;
    height: 44px;
  }

  body.retro-forum .post-username {
    font-size: 0.96rem;
  }

  body.retro-forum .float-chat-panel {
    left: 12px;
    right: 12px;
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    width: auto;
  }


  body.retro-forum .toast {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: max-content;
    max-width: calc(100vw - 24px);
    bottom: calc(80px + 12px);
  }
}

body.retro-forum .hud-mobile-menu,
body.retro-forum .mobile-hud-backdrop,
body.retro-forum .mobile-hud-drawer,
body.retro-forum .mobile-hud-nav,
body.retro-forum .mobile-hud-fab {
  display: none;
}

body.retro-forum .hud-mobile-menu {
  display: none !important;
}

body.retro-forum.hud-dock-enabled #app {
  padding-bottom: 0;
  scroll-padding-top: 138px;
  scroll-padding-bottom: 118px;
}

body.retro-forum.hud-dock-enabled:not(.mobile-hud-active) #app {
  scroll-padding-top: 0;
  scroll-padding-bottom: 0;
}

body.retro-forum.hud-dock-enabled .mobile-hud-backdrop,
body.retro-forum.hud-dock-enabled .mobile-hud-drawer {
  display: block;
}

body.retro-forum.hud-dock-enabled .mobile-hud-nav {
  display: flex;
}

body.retro-forum.hud-dock-enabled .mobile-hud-fab {
  display: none;
}

body.retro-forum .hud-mobile-menu {
  width: 46px;
  height: 46px;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid rgba(142, 255, 113, 0.2);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(18, 21, 24, 0.96), rgba(10, 12, 14, 0.98));
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease;
}

body.retro-forum .hud-mobile-menu span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 8px rgba(142, 255, 113, 0.26);
  transition: transform 0.16s ease, opacity 0.16s ease;
}

body.retro-forum .hud-mobile-menu.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.retro-forum .hud-mobile-menu.is-open span:nth-child(2) {
  opacity: 0;
}

body.retro-forum .hud-mobile-menu.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

body.retro-forum .mobile-hud-backdrop {
  position: fixed;
  inset: 0;
  z-index: 78;
  background:
    linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.18) 50%),
    rgba(0, 0, 0, 0.62);
  background-size: 100% 4px, 100% 100%;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

body.retro-forum .mobile-hud-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(84vw, 320px);
  z-index: 82;
  height: 100dvh;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 14px calc(14px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at top left, rgba(0, 251, 251, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(16, 18, 20, 0.98), rgba(7, 9, 10, 0.99));
  border-right: 1px solid rgba(142, 255, 113, 0.18);
  box-shadow: 24px 0 46px rgba(0, 0, 0, 0.4);
  transform: translateX(-108%);
  transition: transform 0.2s ease;
  overflow: hidden;
}

body.retro-forum .mobile-hud-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

body.retro-forum .mobile-hud-drawer__eyebrow {
  color: var(--green);
  font-family: var(--font-m);
  font-size: 0.52rem;
  letter-spacing: 0.08em;
}

body.retro-forum .mobile-hud-close {
  width: 40px;
  height: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text2);
  cursor: pointer;
}

body.retro-forum .mobile-hud-close svg,
body.retro-forum .mobile-hud-drawer__icon svg,
body.retro-forum .mobile-hud-nav__icon svg,
body.retro-forum .mobile-hud-fab__icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

body.retro-forum .mobile-hud-drawer__profile {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px;
  margin-bottom: 10px;
  border: 1px solid rgba(0, 251, 251, 0.14);
  border-radius: 20px;
  background: rgba(8, 11, 12, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.retro-forum .mobile-hud-profile__avatar-wrap {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  border: 1px solid rgba(142, 255, 113, 0.24);
  background: linear-gradient(180deg, rgba(17, 24, 18, 0.96), rgba(9, 12, 10, 0.98));
  box-shadow: 0 0 18px rgba(142, 255, 113, 0.14);
  overflow: hidden;
}

body.retro-forum .mobile-hud-profile__avatar-wrap--guest {
  color: var(--green);
  font-family: var(--font-m);
  font-size: 1.1rem;
}

body.retro-forum .mobile-hud-profile__avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.retro-forum .mobile-hud-profile__body {
  min-width: 0;
  display: grid;
  gap: 4px;
}

body.retro-forum .mobile-hud-profile__name {
  color: var(--text);
  font-family: var(--font-h);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

body.retro-forum .mobile-hud-profile__meta,
body.retro-forum .mobile-hud-profile__tag {
  color: var(--text3);
  font-family: var(--font-m);
  font-size: 0.48rem;
  line-height: 1.35;
  letter-spacing: 0.05em;
}

body.retro-forum .mobile-hud-drawer__group {
  display: grid;
  gap: 8px;
}

body.retro-forum .mobile-hud-drawer__group--secondary {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

body.retro-forum .mobile-hud-drawer__action {
  width: 100%;
  min-height: 56px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(18, 21, 24, 0.96), rgba(10, 12, 14, 0.98));
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    color 0.16s ease,
    background 0.16s ease;
}

body.retro-forum .mobile-hud-drawer__action:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 251, 251, 0.28);
  background: linear-gradient(180deg, rgba(24, 30, 34, 0.98), rgba(11, 14, 17, 1));
  box-shadow:
    0 16px 28px rgba(0, 0, 0, 0.24),
    0 0 0 1px rgba(0, 251, 251, 0.06),
    0 0 18px rgba(0, 251, 251, 0.08);
}

body.retro-forum .mobile-hud-drawer__action:active {
  transform: translateY(2px) scale(0.985);
}

body.retro-forum .mobile-hud-drawer__icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: var(--green);
  background: rgba(142, 255, 113, 0.08);
  border: 1px solid rgba(142, 255, 113, 0.16);
  transition:
    transform 0.16s ease,
    color 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}

body.retro-forum .mobile-hud-drawer__action:hover .mobile-hud-drawer__icon {
  transform: translateX(2px) scale(1.05);
  color: #9dff7b;
  background: rgba(142, 255, 113, 0.14);
  border-color: rgba(142, 255, 113, 0.3);
  box-shadow: 0 0 18px rgba(142, 255, 113, 0.12);
}

body.retro-forum .mobile-hud-drawer__text {
  min-width: 0;
  display: grid;
  gap: 2px;
  text-align: left;
}

body.retro-forum .mobile-hud-drawer__label {
  color: var(--text);
  font-family: var(--font-h);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.05;
  transition:
    color 0.16s ease,
    transform 0.16s ease,
    text-shadow 0.16s ease;
}

body.retro-forum .mobile-hud-drawer__action:hover .mobile-hud-drawer__label {
  color: #ffffff;
  transform: translateX(2px);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.08);
}

body.retro-forum .mobile-hud-drawer__hint {
  color: var(--text3);
  font-family: var(--font-m);
  font-size: 0.42rem;
  letter-spacing: 0.05em;
  transition:
    color 0.16s ease,
    transform 0.16s ease;
}

body.retro-forum .mobile-hud-drawer__action:hover .mobile-hud-drawer__hint {
  color: rgba(208, 232, 245, 0.72);
  transform: translateX(2px);
}

body.retro-forum .mobile-hud-nav {
  position: fixed;
  left: 50vw;
  right: auto;
  top: calc(14px + env(safe-area-inset-top, 0px));
  bottom: auto;
  width: min(540px, calc(100vw - 260px));
  z-index: 85;
  padding: 7px;
  box-sizing: border-box;
  display: flex;
  align-items: stretch;
  gap: 7px;
  border-radius: 22px;
  border: 1px solid rgba(142, 255, 113, 0.14);
  background: rgba(8, 10, 11, 0.94);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.16), var(--hud-shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: visible;
  transform: translateX(-50%);
  transform-origin: center bottom;
  will-change: transform, opacity, filter;
  transition:
    opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

body.retro-forum .mobile-hud-slot {
  min-width: 0;
  flex: 1 1 0;
  display: flex;
}

body.retro-forum .mobile-hud-nav__item,
body.retro-forum .mobile-hud-slot > #notif-bell-wrap > .nav-btn {
  width: 100%;
  flex: 1 1 0;
  min-width: 0;
  min-height: 58px;
  padding: 8px 10px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(18, 21, 24, 0.96), rgba(10, 12, 14, 0.98));
  color: var(--text2);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    color 0.16s ease,
    background 0.16s ease;
}

body.retro-forum .mobile-hud-nav__item:active,
body.retro-forum .mobile-hud-slot > #notif-bell-wrap > .nav-btn:active {
  transform: translateY(2px) scale(0.985);
}

body.retro-forum .mobile-hud-nav__item.active,
body.retro-forum .mobile-hud-slot > #notif-bell-wrap > .nav-btn.active {
  color: var(--green);
  border-color: rgba(142, 255, 113, 0.34);
  background: linear-gradient(135deg, rgba(47, 248, 1, 0.16), rgba(0, 251, 251, 0.12));
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.24), var(--glow-g);
}

body.retro-forum .mobile-hud-nav__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
}

body.retro-forum .mobile-hud-nav__label,
body.retro-forum .mobile-hud-slot > #notif-bell-wrap > .nav-btn > span:not(#notif-count-badge) {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-h);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
}

body.retro-forum .mobile-hud-slot > #notif-bell-wrap {
  flex: 1 1 0;
  min-width: 0;
  display: flex !important;
  position: relative !important;
  overflow: visible !important;
}

body.retro-forum .mobile-hud-slot > #notif-bell-wrap > #notif-bell-btn {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

body.retro-forum .mobile-hud-slot > #notif-bell-wrap > #notif-bell-btn svg {
  display: block;
  flex-shrink: 0;
}

body.retro-forum .mobile-hud-slot > #notif-bell-wrap #notif-count-badge {
  top: 8px !important;
  right: 16px !important;
}

body.retro-forum.hud-dock-enabled #notif-panel {
  position: fixed !important;
  top: calc(12px + env(safe-area-inset-top, 0px)) !important;
  right: 12px !important;
  left: auto !important;
  bottom: auto !important;
  transform: none !important;
  width: min(360px, calc(100vw - 24px)) !important;
  max-height: 72vh !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  border-radius: 18px !important;
  border: 1px solid rgba(0,0,0,0.10) !important;
  background: rgba(255,255,255,0.97) !important;
  backdrop-filter: blur(20px) !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.08) !important;
  color: #1c1c1e !important;
  z-index: 9999 !important;
}

body.retro-forum .mobile-hud-fab {
  position: fixed;
  left: calc(50vw + (min(540px, calc(100vw - 260px)) / 2) - 72px);
  right: auto;
  top: calc(6px + env(safe-area-inset-top, 0px));
  bottom: auto;
  z-index: 86;
  width: 58px;
  height: 58px;
  padding: 0;
  box-sizing: border-box;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid rgba(142, 255, 113, 0.52);
  background: linear-gradient(135deg, rgba(142, 255, 113, 0.96), rgba(47, 248, 1, 0.96));
  color: #041005;
  clip-path: polygon(0 8px, 8px 8px, 8px 0, calc(100% - 8px) 0, calc(100% - 8px) 8px, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 8px calc(100% - 8px), 0 calc(100% - 8px));
  box-shadow: 0 18px 30px rgba(47, 248, 1, 0.24), 0 0 18px rgba(142, 255, 113, 0.18);
  opacity: 0;
  transform: translateY(8px) scale(0.92);
  transform-origin: center bottom;
  pointer-events: none;
  will-change: transform, opacity, filter;
  transition:
    opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.22s ease;
}

body.retro-forum .mobile-hud-fab.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

body.retro-forum .mobile-hud-fab.is-open .mobile-hud-fab__icon {
  transform: rotate(45deg);
}

body.retro-forum .mobile-hud-fab__icon,
body.retro-forum .mobile-hud-fab__label {
  transition: transform 0.16s ease;
}

body.retro-forum .mobile-hud-fab__label {
  font-family: var(--font-m);
  font-size: 0.42rem;
  letter-spacing: 0.08em;
}

body.retro-forum.mobile-drawer-open {
  overflow: hidden;
}

body.retro-forum.mobile-drawer-open .mobile-hud-backdrop {
  opacity: 1;
  pointer-events: auto;
}

body.retro-forum.mobile-drawer-open .mobile-hud-drawer {
  transform: translateX(0);
}

body.retro-forum.mobile-drawer-open .mobile-hud-nav {
  opacity: 0;
  pointer-events: none;
  filter: blur(8px);
  transform: translateX(-50%) translateY(18px) scale(0.97);
}

body.retro-forum.mobile-drawer-open .mobile-hud-fab {
  opacity: 0;
  pointer-events: none;
  filter: blur(6px);
  transform: translateY(18px) scale(0.88);
}

@media (max-width: 900px) {
  body.retro-forum .mobile-hud-drawer {
    left: 0;
    top: 0;
    bottom: 0;
    width: min(84vw, 320px);
    border-radius: 0;
    transform: translateX(-108%);
  }

  body.retro-forum.mobile-hud-active .navbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 74px;
    padding-top: calc(12px + env(safe-area-inset-top, 0px));
    padding-bottom: 12px;
    padding-left: max(14px, env(safe-area-inset-left));
    padding-right: max(14px, env(safe-area-inset-right));
  }

  body.retro-forum.mobile-hud-active .logo {
    font-size: 1.28rem;
    line-height: 1;
  }

  body.retro-forum.mobile-hud-active .nav-badge,
  body.retro-forum.mobile-hud-active .nav-flex-spacer,
  body.retro-forum.mobile-hud-active .nav-spacer-mobile,
  body.retro-forum.mobile-hud-active #nb-wall,
  body.retro-forum.mobile-hud-active #nb-admin,
  body.retro-forum.mobile-hud-active #nb-stickers,
  body.retro-forum.mobile-hud-active .nav-user,
  body.retro-forum.mobile-hud-active .nav-guest-btns,
  body.retro-forum.mobile-hud-active #nav-exit-btn,
  body.retro-forum.mobile-hud-active .bookmarks-bar,
  body.retro-forum.mobile-hud-active .chat-float {
    display: none !important;
  }

  body.retro-forum.mobile-hud-active .app-layout {
    gap: 14px;
    padding: 14px 8px 36px;
  }

  body.retro-forum.mobile-hud-active .main-col {
    padding: 14px 8px 42px;
  }

  body.retro-forum.mobile-hud-active .post-card {
    padding: 16px 14px;
  }

  body.retro-forum.mobile-hud-active #page-wall > .flex.ic.jb.mb2 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
  }

  body.retro-forum.mobile-hud-active #page-wall > .flex.ic.jb.mb2 .panel-title {
    min-width: 0;
    margin-bottom: 0;
  }

  body.retro-forum.mobile-hud-active #btn-nuevo-post,
  body.retro-forum.mobile-hud-active #btn-guest-post {
    min-width: 0;
    max-width: 100%;
    justify-content: center;
    white-space: nowrap;
  }

  body.retro-forum.mobile-hud-active .chat-col {
    display: none !important;
  }

  body.retro-forum.mobile-hud-active #notif-panel {
    position: fixed !important;
    left: 12px !important;
    right: 12px !important;
    top: auto !important;
    bottom: calc(98px + env(safe-area-inset-bottom, 0px)) !important;
    width: auto !important;
    transform: none !important;
    max-height: min(56vh, 420px) !important;
    border-radius: 22px !important;
    border: 1px solid rgba(142, 255, 113, 0.16) !important;
    background: linear-gradient(180deg, rgba(16, 18, 20, 0.98), rgba(7, 9, 10, 0.99)) !important;
    box-shadow: var(--hud-shadow), var(--glow) !important;
    overflow: hidden !important;
    z-index: 84 !important;
  }

  body.retro-forum.mobile-hud-active .float-chat-panel {
    left: 12px;
    right: 12px;
    bottom: calc(96px + env(safe-area-inset-bottom, 0px));
    width: auto;
    max-width: none;
    max-height: calc(100dvh - 120px);
    border-radius: 26px 26px 22px 22px;
    box-sizing: border-box;
  }
}

@media (max-width: 640px) {
  body.retro-forum.mobile-hud-active .navbar {
    grid-template-columns: auto minmax(0, 1fr);
  }

  body.retro-forum.mobile-hud-active .nav-badge {
    display: none;
  }

  body.retro-forum.mobile-hud-active .mobile-hud-drawer {
    width: min(88vw, 300px);
    padding: calc(10px + env(safe-area-inset-top, 0px)) 12px calc(12px + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
  }

  body.retro-forum.mobile-hud-active .mobile-hud-drawer__profile {
    padding: 10px;
    margin-bottom: 8px;
  }

  body.retro-forum.mobile-hud-active .mobile-hud-drawer__action {
    min-height: 52px;
    padding: 9px 10px;
    border-radius: 16px;
  }

  body.retro-forum.mobile-hud-active .mobile-hud-drawer__icon {
    width: 32px;
    height: 32px;
    border-radius: 12px;
  }

  body.retro-forum.mobile-hud-active .mobile-hud-drawer__label {
    font-size: 0.86rem;
  }

  body.retro-forum.mobile-hud-active .mobile-hud-drawer__hint {
    font-size: 0.39rem;
  }

  body.retro-forum.mobile-hud-active .mobile-hud-nav {
    left: 50vw;
    right: auto;
    width: min(calc(100vw - 16px), 366px);
    top: auto;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    gap: 6px;
    padding: 7px;
    border-radius: 20px;
  }

  body.retro-forum.mobile-hud-active .mobile-hud-fab {
    display: flex;
  }

  body.retro-forum.mobile-hud-active .mobile-hud-nav__item,
  body.retro-forum.mobile-hud-active .mobile-hud-slot > #notif-bell-wrap > .nav-btn {
    min-height: 56px;
    border-radius: 13px;
    padding: 4px 2px;
  }

  body.retro-forum.mobile-hud-active .mobile-hud-nav__label,
  body.retro-forum.mobile-hud-active .mobile-hud-slot > #notif-bell-wrap > .nav-btn > span:not(#notif-count-badge) {
    font-size: 0.52rem;
    letter-spacing: 0.01em;
  }

  body.retro-forum.mobile-hud-active .mobile-hud-nav__icon svg,
  body.retro-forum.mobile-hud-active .mobile-hud-slot > #notif-bell-wrap > .nav-btn svg {
    width: 16px;
    height: 16px;
  }

  body.retro-forum.mobile-hud-active .mobile-hud-fab {
    left: calc(50vw - 29px);
    right: auto;
    top: auto;
    bottom: calc(64px + env(safe-area-inset-bottom, 0px));
    width: 58px;
    height: 58px;
  }

  body.retro-forum.mobile-hud-active .mobile-hud-fab__label {
    font-size: 0.38rem;
  }

  body.retro-forum.mobile-hud-active .app-layout {
    padding-bottom: 28px;
  }

  body.retro-forum.mobile-hud-active .main-col {
    padding-bottom: 34px;
  }

  body.retro-forum.mobile-hud-active .post-card {
    padding: 14px 12px;
  }

  body.retro-forum.mobile-hud-active .post-card--manageable .post-header {
    padding-right: 40px;
  }

  body.retro-forum.mobile-hud-active .post-tools {
    top: 10px;
    right: 10px;
  }

  body.retro-forum.mobile-hud-active .post-tools__trigger {
    width: 31px;
    height: 31px;
    border-radius: 11px;
  }

  body.retro-forum.mobile-hud-active .post-tools__trigger svg {
    width: 16px;
    height: 16px;
  }

  body.retro-forum.mobile-hud-active .post-tools__menu {
    min-width: 124px;
    padding: 6px;
    border-radius: 14px;
  }

  body.retro-forum.mobile-hud-active .post-tools__action {
    min-height: 34px;
    padding: 0 10px;
    font-size: 0.7rem;
  }

  body.retro-forum.mobile-hud-active .post-reactions {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    padding: 8px 6px;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
  }

  body.retro-forum.mobile-hud-active .post-reactions .react-sep {
    display: none;
  }

  body.retro-forum.mobile-hud-active .post-reactions .react-btn,
  body.retro-forum.mobile-hud-active .post-reactions .comment-btn,
  body.retro-forum.mobile-hud-active .post-reactions .share-btn,
  body.retro-forum.mobile-hud-active .post-reactions .report-btn {
    width: auto;
    min-width: 0;
    min-height: 34px;
    justify-content: center;
    gap: 4px;
    padding: 0 7px;
    font-size: 0.62rem;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 1;
  }

  body.retro-forum.mobile-hud-active .post-reactions .react-btn {
    display: inline-grid;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    align-items: center;
    justify-self: start;
    width: auto;
    min-width: 34px;
    padding-inline: 7px;
    border-radius: 12px;
    flex: 0 0 auto;
  }

  body.retro-forum.mobile-hud-active .post-reactions .react-btn > span:nth-child(2) {
    display: none;
  }

  body.retro-forum.mobile-hud-active .post-reactions .comment-btn {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    justify-content: stretch;
    gap: 4px;
    padding-inline: 6px;
    flex: 1 1 auto;
  }

  body.retro-forum.mobile-hud-active .post-reactions .comment-btn > span:nth-child(2) {
    display: none;
  }

  body.retro-forum.mobile-hud-active .post-reactions .comment-btn > [id^="ccount-"] {
    min-width: 18px;
    max-width: 22px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin-left: 0 !important;
    padding: 0 4px !important;
    border-radius: 999px !important;
    font-size: 0.58rem !important;
    line-height: 1.45 !important;
    flex-shrink: 0;
    box-sizing: border-box;
  }

  body.retro-forum.mobile-hud-active .post-reactions .react-icon,
  body.retro-forum.mobile-hud-active .post-reactions .comment-btn-icon {
    width: 15px;
    height: 15px;
    border-radius: 6px;
    flex: 0 0 15px;
  }

  body.retro-forum.mobile-hud-active .post-reactions .react-icon svg,
  body.retro-forum.mobile-hud-active .post-reactions .comment-btn-icon svg {
    width: 9px;
    height: 9px;
  }

  body.retro-forum.mobile-hud-active .post-reactions .react-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 12px;
    font-size: 0.62rem;
    line-height: 1;
    font-weight: 700;
  }

  body.retro-forum.mobile-hud-active .post-reactions .share-btn {
    flex: 0 0 auto;
    padding-inline: 6px;
    font-size: 0.6rem;
    min-width: 0;
  }

  body.retro-forum.mobile-hud-active .post-reactions .share-btn span {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.retro-forum.mobile-hud-active .post-reactions .report-btn {
    width: 26px;
    min-width: 26px;
    height: 26px;
    min-height: 26px;
    padding: 0;
    flex: 0 0 26px;
  }

  body.retro-forum.mobile-hud-active .post-reactions .like-btn .react-count {
    color: var(--green);
  }

  body.retro-forum.mobile-hud-active .post-header {
    column-gap: 10px;
  }

  body.retro-forum.mobile-hud-active .post-avatar {
    width: 40px;
    height: 40px;
  }

  body.retro-forum.mobile-hud-active #page-wall > .flex.ic.jb.mb2 {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 10px;
  }

  body.retro-forum.mobile-hud-active #btn-nuevo-post,
  body.retro-forum.mobile-hud-active #btn-guest-post {
    width: 100%;
    padding-inline: 12px;
    font-size: 0.74rem;
    white-space: normal;
    line-height: 1.1;
  }

  body.retro-forum.mobile-hud-active #notif-panel {
    left: 8px !important;
    right: 8px !important;
    bottom: calc(92px + env(safe-area-inset-bottom, 0px)) !important;
    transform: none !important;
  }

  body.retro-forum.mobile-hud-active .float-chat-panel {
    left: 8px;
    right: 8px;
    bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  }

}

/* ── Stream + Chat layout: 2 columnas 60/40 ────────────── */
.upm-stream-container {
  display: grid;
  grid-template-columns: 60% calc(40% - 12px);
  gap: 12px;
  width: 100%;
  margin: 12px 0;
  height: 550px;
}

.upm-stream-embed {
  min-width: 0;
  overflow: hidden;
  height: 100%;
}

.upm-stream-embed iframe {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  border: 1px solid var(--border, rgba(255,255,255,.1));
  display: block;
}

.upm-stream-chat {
  min-width: 0;
  overflow: hidden;
  height: 100%;
}

.upm-stream-chat iframe {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  border: 1px solid var(--border, rgba(255,255,255,.1));
  display: block;
}

@media (max-width: 768px) {
  .upm-stream-container {
    grid-template-columns: 1fr;
    height: auto;
  }

  .upm-stream-embed iframe {
    height: 220px;
  }

  .upm-stream-chat iframe {
    height: 300px;
  }
}

/* ── Live status dot ────────────────────────────────────────── */
.av-wrap {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}
.live-dot {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #e52222;
  border: 2px solid var(--bg, #0d1117);
  display: none;
  pointer-events: none;
}
.av-wrap.is-live .live-dot {
  display: block;
  animation: pulse-live 1.8s ease-in-out infinite;
}
@keyframes pulse-live {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .55; transform: scale(1.25); }
}
.live-bubble {
  position: absolute;
  bottom: -2px;
  left: calc(100% + 8px);
  background: #e52222;
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-6px) scale(.85);
  transition: opacity .25s ease, transform .25s ease;
  z-index: 100;
  letter-spacing: .3px;
  box-shadow: 0 2px 8px rgba(229,34,34,.45);
}
.live-bubble::before {
  content: '';
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-right-color: #e52222;
}
.live-bubble.show {
  opacity: 1;
  transform: translateX(0) scale(1);
}
/* Hover sobre el punto rojo también muestra la burbuja */
.av-wrap.is-live:hover .live-bubble {
  opacity: 1;
  transform: translateX(0) scale(1);
}

/* ── Wall gate: pantalla restringida para invitados ─────────── */
.wall-gate {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 52px 24px 56px;
  gap: 14px;
}
.wg-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0,251,251,.12), rgba(142,255,113,.08));
  border: 1.5px solid rgba(0,251,251,.25);
  color: var(--cyan);
  margin-bottom: 4px;
}
.wg-icon svg {
  width: 32px;
  height: 32px;
}
.wg-title {
  font-family: var(--font-h);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: .4px;
}
.wg-sub {
  font-size: .86rem;
  color: var(--text2);
  line-height: 1.55;
  max-width: 320px;
}
.wg-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 6px;
}
@media (max-width: 600px) {
  .wall-gate { padding: 36px 16px 40px; }
  .wg-icon { width: 60px; height: 60px; }
  .wg-icon svg { width: 26px; height: 26px; }
  .wg-title { font-size: 1rem; }
  .wg-sub { font-size: .8rem; }
  .wg-actions .btn { flex: 1 1 130px; justify-content: center; }
}

/* ── Botón Compartir en post reactions ──────────────────────── */
body.retro-forum .share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  border: 0;
  background: transparent;
  color: var(--cyan);
  border-radius: 12px;
  padding: 0 14px;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: color .18s ease, background .18s ease;
  white-space: nowrap;
}
body.retro-forum .share-btn svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}
body.retro-forum .share-btn:hover {
  color: #fff;
  background: rgba(0, 251, 251, 0.08);
}

/* ── Share modal ─────────────────────────────────────────────── */
.share-modal {
  padding: 0;
  min-width: min(420px, 92vw);
  max-width: 440px;
}
.share-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.share-modal-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-h);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: .5px;
  text-transform: uppercase;
}
.share-url-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px 0;
}
.share-url-input {
  flex: 1;
  min-width: 0;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  color: var(--text2);
  font-size: .78rem;
  padding: 8px 12px;
  outline: none;
  cursor: text;
  user-select: all;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.share-url-input:focus {
  border-color: rgba(0,251,251,.4);
  color: var(--text);
}
.share-copy-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .78rem;
  padding: 8px 14px;
  border-radius: 10px;
  white-space: nowrap;
}
.share-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px 10px;
  color: var(--text3);
  font-size: .72rem;
  letter-spacing: .8px;
  text-transform: uppercase;
}
.share-divider::before,
.share-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,.07);
}
.share-platforms {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 0 20px 16px;
}
.share-platform {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px 10px;
  border-radius: 14px;
  text-decoration: none;
  font-size: .7rem;
  font-weight: 600;
  color: #fff;
  transition: transform .15s ease, opacity .15s ease;
}
.share-platform svg {
  width: 26px;
  height: 26px;
}
.share-platform:hover { opacity: .85; transform: translateY(-2px); }
.share-platform.sp-wa { background: #1a9e52; }
.share-platform.sp-x  { background: #1a1a1a; border: 1px solid rgba(255,255,255,.12); }
.share-platform.sp-fb { background: #1563c8; }
.share-platform.sp-tg { background: #1b87c1; }
.share-note {
  padding: 0 20px 18px;
  font-size: .67rem;
  color: var(--text3);
  text-align: center;
  line-height: 1.45;
}

/* ── Vista pública de publicación ───────────────────────────── */
.pub-post-modal {
  padding: 0;
  min-width: min(460px, 92vw);
  max-width: 500px;
}
.pub-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.pub-modal-tag {
  font-family: var(--font-m);
  font-size: .58rem;
  color: var(--cyan);
  letter-spacing: 1px;
  background: rgba(0,251,251,.1);
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid rgba(0,251,251,.2);
}
.pub-post-card {
  padding: 16px 20px;
}
.pub-post-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.pub-av {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
  flex-shrink: 0;
  border: 2px solid rgba(0,251,251,.25);
  transition: border-color .2s;
}
.pub-av:hover { border-color: var(--cyan); }
.pub-username {
  font-family: var(--font-h);
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}
.pub-date {
  font-size: .72rem;
  color: var(--text3);
  margin-top: 2px;
}
.pub-body {
  font-size: .9rem;
  line-height: 1.6;
  color: var(--text);
  word-break: break-word;
  white-space: pre-wrap;
  margin-bottom: 12px;
}
.pub-media-img {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  border-radius: 12px;
  background: #000;
  display: block;
  margin-top: 4px;
}
.pub-guest-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px 20px;
  background: rgba(0,251,251,.05);
  border-top: 1px solid rgba(0,251,251,.1);
  border-bottom: 1px solid rgba(0,251,251,.1);
  font-size: .8rem;
  color: var(--text2);
}
.pub-share-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px 16px;
  border-top: 1px solid rgba(255,255,255,.07);
  flex-wrap: wrap;
}
.pub-share-label {
  font-size: .72rem;
  font-weight: 600;
  color: var(--text3);
  letter-spacing: .5px;
  margin-right: 2px;
}
.pub-sp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  text-decoration: none;
  color: #fff;
  transition: transform .15s ease, opacity .15s ease;
  flex-shrink: 0;
  border: none;
  cursor: pointer;
}
.pub-sp:hover { opacity: .82; transform: scale(1.12); }
.pub-sp-wa   { background: #1a9e52; }
.pub-sp-x    { background: #1a1a1a; border: 1px solid rgba(255,255,255,.15) !important; }
.pub-sp-fb   { background: #1563c8; }
.pub-sp-tg   { background: #1b87c1; }
.pub-sp-copy { background: rgba(255,255,255,.1); color: var(--text2); }
.pub-sp-copy:hover { background: rgba(255,255,255,.18); color: #fff; }

/* ── MOBILE: adaptaciones generales ≤ 600px ───────────────────────────────── */
@media (max-width: 600px) {

  /* Modal generico: cabe en pantalla, sin padding extra (lo manejan los hijos) */
  body.retro-forum .modal {
    width: 94vw;
    max-width: 94vw;
    padding: 0;
    border-radius: 18px;
    overflow: hidden;
  }

  /* Auth-box: padding propio reducido */
  body.retro-forum .auth-box {
    width: 92vw;
    max-width: 92vw;
    padding: 20px 16px 22px;
    border-radius: 18px;
  }

  /* Share modal: ocupa el ancho del modal-box */
  .share-modal {
    min-width: 0;
    width: 100%;
  }
  .share-modal-header {
    padding: 14px 14px 12px;
  }
  .share-modal-title {
    font-size: .88rem;
  }
  .share-url-row {
    padding: 12px 14px 0;
    gap: 6px;
  }
  .share-url-input {
    font-size: .72rem;
    padding: 7px 10px;
  }
  .share-copy-btn {
    font-size: .72rem;
    padding: 7px 11px;
  }
  .share-divider {
    padding: 12px 14px 8px;
    font-size: .68rem;
  }
  /* Plataformas: 2x2 en pantallas muy pequeñas */
  .share-platforms {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 14px 14px;
    gap: 8px;
  }
  .share-platform {
    padding: 12px 6px 10px;
    border-radius: 12px;
    font-size: .72rem;
  }
  .share-platform svg {
    width: 24px;
    height: 24px;
  }
  .share-note {
    padding: 0 14px 14px;
    font-size: .64rem;
  }

  /* Share-btn en fila de reacciones */
  body.retro-forum.mobile-hud-active .post-reactions .share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 34px;
    padding: 0 8px;
    font-size: .64rem;
    border-radius: 12px;
    white-space: nowrap;
  }
  body.retro-forum.mobile-hud-active .post-reactions .share-btn svg {
    width: 12px;
    height: 12px;
  }

  /* Vista pública del post */
  .pub-post-modal {
    min-width: 0;
    width: 100%;
  }
  .pub-modal-header {
    padding: 12px 14px 10px;
  }
  .pub-post-card {
    padding: 12px 14px;
  }
  .pub-post-head {
    gap: 10px;
    margin-bottom: 12px;
  }
  .pub-av {
    width: 38px;
    height: 38px;
  }
  .pub-username {
    font-size: .88rem;
  }
  .pub-body {
    font-size: .86rem;
  }
  .pub-media-img {
    max-height: 260px;
    border-radius: 10px;
  }
  .pub-guest-banner {
    padding: 10px 14px;
    font-size: .74rem;
    gap: 6px;
  }
  .pub-share-row {
    padding: 10px 14px 14px;
    gap: 7px;
  }
  .pub-sp {
    width: 30px;
    height: 30px;
  }
  .pub-sp svg {
    width: 15px;
    height: 15px;
  }

  /* Post body: tamaño cómodo en móvil */
  body.retro-forum .post-body {
    font-size: .9rem;
    line-height: 1.62;
  }
}

/* ============================================================
   BOTÓN REPORTAR (en post-reactions)
   ============================================================ */
.report-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  border-radius: 6px;
  color: var(--text3);
  cursor: pointer;
  transition: color .15s, background .15s;
  padding: 0;
  opacity: .55;
}
.report-btn:hover {
  color: var(--red, #ff4d4d);
  background: rgba(255, 77, 77, .08);
  opacity: 1;
}
.report-btn svg {
  width: 14px;
  height: 14px;
  pointer-events: none;
}

/* ============================================================
   MODAL DE REPORTE
   ============================================================ */
.report-modal {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  width: min(420px, 92vw);
}
.report-modal-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: .9rem;
  color: var(--red, #ff4d4d);
}
.report-modal-body {
  padding: 18px 20px 20px;
}
.report-motivos {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.report-motivo-opt {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  cursor: pointer;
  font-size: .84rem;
  transition: border-color .15s, background .15s;
}
.report-motivo-opt:hover {
  border-color: var(--cyan);
  background: rgba(0,251,251,.04);
}
.report-motivo-opt input[type="radio"] {
  accent-color: var(--cyan);
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.report-motivo-opt input[type="radio"]:checked + span {
  color: var(--cyan);
  font-weight: 600;
}

/* ============================================================
   PANEL DE MENSAJERÍA PRIVADA (DM)
   ============================================================ */
#dm-panel {
  position: fixed;
  bottom: 0;
  right: 16px;
  width: min(360px, 96vw);
  height: min(500px, 80vh);
  background: var(--bg1);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 14px 14px 0 0;
  display: flex;
  flex-direction: column;
  z-index: 1200;
  box-shadow: 0 -4px 32px rgba(0,0,0,.45);
  transform: translateY(100%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
}
#dm-panel.open {
  transform: translateY(0);
}
.dm-panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
  border-radius: 14px 14px 0 0;
  flex-shrink: 0;
}
.dm-panel-header .dm-other-av {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}
.dm-panel-header .dm-other-name {
  font-weight: 600;
  font-size: .88rem;
  flex: 1;
}
.dm-panel-header .dm-close-btn {
  background: none;
  border: none;
  color: var(--text3);
  cursor: pointer;
  font-size: 1rem;
  padding: 2px 6px;
}
.dm-panel-header .dm-close-btn:hover { color: var(--text1); }

#dm-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dm-empty {
  text-align: center;
  color: var(--text3);
  font-size: .82rem;
  padding: 24px 0;
}
.dm-loading {
  text-align: center;
  color: var(--text3);
  font-size: .8rem;
  padding: 12px;
}
.dm-msg {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  max-width: 88%;
}
.dm-msg-mine {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.dm-msg-other {
  align-self: flex-start;
}
.dm-av {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.dm-bubble {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 7px 11px;
  font-size: .84rem;
  line-height: 1.45;
  word-break: break-word;
  max-width: 100%;
}
.dm-msg-mine .dm-bubble {
  background: rgba(0,251,251,.1);
  border-color: rgba(0,251,251,.2);
  color: var(--text1);
}
.dm-time {
  font-size: .68rem;
  color: var(--text3);
  margin-top: 4px;
  text-align: right;
}
.dm-del-btn {
  background: none;
  border: none;
  color: var(--text3);
  cursor: pointer;
  font-size: .75rem;
  padding: 2px;
  opacity: 0;
  transition: opacity .15s;
  align-self: flex-start;
}
.dm-msg:hover .dm-del-btn { opacity: 1; }
.dm-del-btn:hover { color: var(--red, #ff4d4d); }

.dm-delete-wrap {
  position: relative;
  flex: 0 0 auto;
  align-self: center;
}

.dm-delete-menu {
  position: fixed;
  right: 0;
  top: calc(100% + 6px);
  z-index: 99999;
  display: none;
  min-width: 150px;
  padding: 6px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 12px;
  background: rgba(18, 28, 32, 0.96);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
}

.dm-delete-menu.open {
  display: grid;
  gap: 4px;
}

.dm-delete-menu button {
  width: 100%;
  border: 0;
  border-radius: 9px;
  padding: 8px 9px;
  background: transparent;
  color: #effcff;
  font-size: 0.72rem;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.dm-delete-menu button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.dm-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-top: 1px solid var(--border);
  background: var(--bg2);
  flex-shrink: 0;
}
#dm-input {
  flex: 1;
  background: var(--bg0);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text1);
  font-family: inherit;
  font-size: .84rem;
  padding: 7px 10px;
  resize: none;
  outline: none;
  min-height: 34px;
  max-height: 80px;
  overflow-y: auto;
}
#dm-input:focus { border-color: var(--cyan); }
.dm-send-btn {
  background: var(--cyan);
  color: #000;
  border: none;
  border-radius: 8px;
  padding: 7px 14px;
  font-weight: 700;
  cursor: pointer;
  font-size: .82rem;
  transition: opacity .15s;
}
.dm-send-btn:hover { opacity: .85; }

.dm-unread-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--cyan);
  color: #000;
  font-size: .65rem;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  margin-left: 6px;
}

.dm-conv-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background .12s;
}
.dm-conv-item:hover { background: rgba(255,255,255,.04); }
.dm-conv-av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.dm-conv-name {
  font-weight: 600;
  font-size: .86rem;
}
.dm-conv-preview {
  font-size: .77rem;
  color: var(--text3);
  margin-top: 2px;
}

/* ============================================================
   MARKETPLACE
   ============================================================ */
#mkt-section {
  padding: 0 0 80px;
}
.mkt-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px 10px;
  flex-wrap: wrap;
}
.mkt-topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.mkt-search {
  flex: 1;
  min-width: 0;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text1);
  font-family: inherit;
  font-size: .85rem;
  padding: 8px 12px;
  outline: none;
}
.mkt-search:focus { border-color: var(--cyan); }
.mkt-cats {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 4px 16px 10px;
  scrollbar-width: none;
}
.mkt-cats::-webkit-scrollbar { display: none; }
.mkt-cat-filter {
  overflow: visible;
}
.mkt-cat-filter-btn {
  width: min(100%, 230px);
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text1);
  padding: 7px 10px 7px 12px;
  cursor: pointer;
  text-align: left;
  transition: border-color .15s, box-shadow .15s, color .15s;
}
.mkt-cat-filter-btn:hover,
.mkt-cat-filter-btn:focus-visible {
  border-color: var(--cyan);
  box-shadow: 0 0 0 2px rgba(77, 208, 225, .12);
  outline: none;
}
.mkt-cat-filter-btn span {
  min-width: 0;
  display: grid;
  gap: 1px;
}
.mkt-cat-filter-btn small {
  color: var(--text3);
  font-size: .68rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}
.mkt-cat-filter-btn strong {
  overflow: hidden;
  color: var(--cyan);
  font-size: .86rem;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mkt-cat-modal {
  width: min(360px, calc(100vw - 28px));
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg2);
  box-shadow: 0 22px 70px rgba(0, 0, 0, .42);
}
.mkt-cat-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.mkt-cat-modal-header h3 {
  margin: 0;
  color: var(--text1);
  font-size: .95rem;
}
.mkt-cat-modal-list {
  display: grid;
  gap: 6px;
  padding: 10px;
}
.mkt-cat-choice {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--bg1);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text2);
  cursor: pointer;
  font-size: .88rem;
  font-weight: 700;
  padding: 8px 10px;
  text-align: left;
}
.mkt-cat-choice:hover,
.mkt-cat-choice.active {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(77, 208, 225, .08);
}
.mkt-cat-btn {
  flex-shrink: 0;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text2);
  font-size: .78rem;
  padding: 5px 13px;
  cursor: pointer;
  transition: border-color .15s, color .15s;
  white-space: nowrap;
}
.mkt-cat-btn:hover,
.mkt-cat-btn.active {
  border-color: var(--cyan);
  color: var(--cyan);
}
.mkt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 200px));
  gap: 12px;
  width: 100%;
  padding: 0 12px 12px;
  align-content: start;
  justify-content: start;
}
.mkt-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .15s, transform .12s;
}
.mkt-card:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
}
.mkt-card-thumb {
  position: relative;
  height: 150px;
  background: var(--bg1);
  overflow: hidden;
}
.mkt-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mkt-card-no-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text3);
  opacity: .4;
}
.mkt-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: .68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
}
.mkt-badge-avail {
  background: rgba(142,255,113,.15);
  color: var(--green, #8eff71);
  border: 1px solid rgba(142,255,113,.25);
}
.mkt-badge-sold {
  background: rgba(255,255,255,.08);
  color: var(--text3);
  border: 1px solid var(--border);
}
.mkt-card-body {
  padding: 10px 12px 12px;
}
.mkt-card-title {
  font-size: .86rem;
  font-weight: 600;
  color: var(--text1);
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mkt-price {
  display: block;
  font-size: .92rem;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 6px;
}
.mkt-card-meta {
  font-size: .72rem;
  color: var(--text3);
  text-transform: capitalize;
}
.mkt-distance {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  margin-top: 6px;
  padding: 2px 7px;
  border: 1px solid rgba(73,169,118,.22);
  border-radius: 999px;
  color: #49a976;
  background: rgba(73,169,118,.1);
  font-size: .68rem;
  font-weight: 850;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mkt-empty {
  text-align: center;
  color: var(--text3);
  font-size: .85rem;
  padding: 40px 20px;
  grid-column: 1 / -1;
}
.mkt-loading {
  text-align: center;
  color: var(--text3);
  font-size: .82rem;
  padding: 16px;
  grid-column: 1 / -1;
}
#mkt-more-btn {
  display: none;
  margin: 16px auto;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text2);
  padding: 9px 28px;
  cursor: pointer;
  font-size: .84rem;
  transition: border-color .15s;
}
#mkt-more-btn:hover { border-color: var(--cyan); color: var(--cyan); }

/* ══════════════════════════════════════════════════════════
   PRODUCT MODAL V2  (.pmv2-*)
══════════════════════════════════════════════════════════ */
.pmv2 {
  position: relative;
  width: min(420px, 94vw);
  max-height: 92vh;
  overflow-y: auto;
  background: linear-gradient(160deg, rgba(20,24,28,.98) 0%, rgba(12,15,18,.98) 100%);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  box-shadow: 0 24px 64px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.04) inset;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.1) transparent;
}

/* ── Mobile: bottom-sheet full-width ─────────────────────── */
@media (max-width: 500px) {
  .modal-overlay {
    align-items: flex-end !important;
    padding: 0 !important;
  }
  .pmv2 {
    width: 100vw !important;
    max-height: 93vh !important;
    border-radius: 20px 20px 0 0 !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: none !important;
    /* swipe-down handle */
    padding-top: 6px;
  }
  .pmv2::before {
    content: '';
    display: block;
    width: 36px; height: 4px;
    background: rgba(255,255,255,.18);
    border-radius: 2px;
    margin: 0 auto 8px;
  }
  .pmv2-hero-img {
    height: 200px !important;
  }
  .pmv2-body { padding: 12px 16px 6px !important; }
  .pmv2-footer { padding: 10px 16px 24px !important; }
  .pmv2-title { font-size: 1rem !important; }
  .pmv2-amount { font-size: 1.55rem !important; }
  /* Modal bare también ocupa todo en mobile */
  .modal.modal-bare {
    width: 100vw !important;
    max-width: 100vw !important;
    align-items: flex-end !important;
    justify-content: center !important;
  }
  /* Report modal bottom sheet */
  .modal-overlay:has(.modal-report-shell) {
    align-items: center !important;
    padding: 14px !important;
  }
  .modal-report-shell {
    width: min(94vw, 430px) !important;
    max-width: min(94vw, 430px) !important;
    padding: 0 !important;
  }
  .report-modal {
    width: 100% !important;
    max-height: calc(100svh - 28px);
    overflow: auto;
    border-radius: 16px !important;
  }
  /* Pub product modal */
  .pub-product-modal {
    width: 100vw !important;
    border-radius: 20px 20px 0 0 !important;
    max-height: 93vh !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: none !important;
  }
}

/* Close */
.pmv2-close {
  position: absolute;
  top: 12px; right: 12px; z-index: 10;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(8px);
  color: rgba(255,255,255,.7);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
.pmv2-close:hover { background: rgba(255,255,255,.12); color: #fff; }

/* Hero image */
.pmv2-hero {
  width: 100%;
  background: rgba(0,0,0,.4);
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.pmv2-hero-img {
  width: 100%;
  height: 240px;
  object-fit: contain;
  background: #000;
  display: block;
  cursor: zoom-in;
}
.pmv2-no-img {
  width: 100%; height: 200px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.15);
  background: rgba(0,0,0,.2);
}
/* Thumbnails row (multiple images) */
.pmv2-thumbs {
  display: flex;
  gap: 6px;
  padding: 8px;
  overflow-x: auto;
  width: 100%;
  box-sizing: border-box;
  scrollbar-width: thin;
}
.pmv2-thumb {
  width: 52px; height: 52px;
  object-fit: cover;
  border-radius: 7px;
  cursor: pointer;
  flex-shrink: 0;
  opacity: .5;
  border: 2px solid transparent;
  transition: opacity .15s, border-color .15s;
}
.pmv2-thumb.active, .pmv2-thumb:hover { opacity: 1; border-color: var(--cyan); }

/* Status bar */
.pmv2-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  border-bottom: 1px solid rgba(255,255,255,.05);
  background: rgba(0,0,0,.2);
}
.pmv2-statusbar .mkt-badge { position: static; }
.pmv2-views {
  display: flex; align-items: center; gap: 4px;
  font-size: .72rem;
  color: rgba(255,255,255,.35);
  font-family: var(--font-m, monospace);
}

/* Body */
.pmv2-body { padding: 18px 20px 8px; }
.pmv2-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 10px;
  letter-spacing: -.01em;
}
.pmv2-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 14px;
}
.pmv2-currency {
  font-size: .75rem;
  font-weight: 600;
  color: rgba(0,251,251,.6);
  font-family: var(--font-m, monospace);
  letter-spacing: .04em;
}
.pmv2-amount {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--cyan, #00fbfb);
  letter-spacing: -.03em;
  line-height: 1;
  text-shadow: 0 0 20px rgba(0,251,251,.25);
}

/* Tags */
.pmv2-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.pmv2-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .72rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.55);
  text-transform: capitalize;
  letter-spacing: .01em;
}

/* Description */
.pmv2-desc {
  font-size: .85rem;
  color: rgba(255,255,255,.65);
  line-height: 1.6;
  margin-bottom: 16px;
  padding: 12px 14px;
  background: rgba(255,255,255,.03);
  border-radius: 10px;
  border-left: 2px solid rgba(255,255,255,.08);
  white-space: pre-wrap;
  word-break: break-word;
}

/* Seller card */
.pmv2-seller {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  margin-bottom: 4px;
}
.pmv2-seller-av {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,.08);
}
.pmv2-seller-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.pmv2-seller-label {
  font-size: .65rem;
  color: rgba(255,255,255,.3);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-family: var(--font-m, monospace);
}
.pmv2-seller-name {
  font-size: .88rem;
  font-weight: 600;
  color: rgba(255,255,255,.85);
}
.pmv2-seller-link {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.5);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background .15s, color .15s;
}
.pmv2-seller-link:hover { background: rgba(0,251,251,.12); color: var(--cyan); border-color: rgba(0,251,251,.2); }

/* Footer */
.pmv2-footer {
  padding: 14px 20px 20px;
  border-top: 1px solid rgba(255,255,255,.05);
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pmv2-footer-cta { width: 100%; }
.pmv2-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  padding: 13px 20px;
  border-radius: 12px;
  font-size: .92rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  letter-spacing: .01em;
}
.pmv2-cta-btn:hover { transform: translateY(-1px); }
.pmv2-cta-wa {
  background: #25D366;
  color: #fff;
  box-shadow: 0 4px 16px rgba(37,211,102,.3);
}
.pmv2-cta-wa:hover { background: #1ebe5a; box-shadow: 0 6px 24px rgba(37,211,102,.45); }
.pmv2-cta-generic {
  background: rgba(0,251,251,.12);
  color: var(--cyan);
  border: 1px solid rgba(0,251,251,.25);
}
.pmv2-cta-generic:hover { background: rgba(0,251,251,.18); box-shadow: 0 4px 16px rgba(0,251,251,.15); }

/* Secondary action buttons */
.pmv2-footer-sec {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.pmv2-sec-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .75rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.45);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.pmv2-sec-btn:hover { background: rgba(255,255,255,.09); color: rgba(255,255,255,.8); border-color: rgba(255,255,255,.15); }
.pmv2-sec-btn--sell { color: rgba(142,255,113,.7); border-color: rgba(142,255,113,.15); }
.pmv2-sec-btn--sell:hover { background: rgba(142,255,113,.08); color: var(--green); border-color: rgba(142,255,113,.3); }
.pmv2-sec-btn--danger { color: rgba(255,80,80,.7); border-color: rgba(255,80,80,.15); }
.pmv2-sec-btn--danger:hover { background: rgba(255,80,80,.08); color: #ff5050; border-color: rgba(255,80,80,.3); }

/* Legacy .mkt-modal / .mkt-gallery / .mkt-modal-body kept for compat */
.mkt-modal {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  width: min(480px, 92vw);
  max-height: 88vh;
  overflow-y: auto;
}
.mkt-gallery {
  display: flex; gap: 6px; overflow-x: auto;
  padding: 12px; background: var(--bg1); scrollbar-width: thin;
}
.mkt-gallery img {
  height: 180px; width: auto; max-width: 260px;
  object-fit: cover; border-radius: 8px; cursor: zoom-in; flex-shrink: 0;
}
.mkt-modal-body { padding: 16px 18px 20px; }
.mkt-modal-price { font-size: 1.3rem; font-weight: 700; color: var(--cyan); margin-bottom: 10px; }

/* Form rows (shared) */
.form-row {
  margin-bottom: 12px;
}
.form-row label {
  display: block;
  font-size: .78rem;
  color: var(--text2);
  margin-bottom: 5px;
  font-weight: 500;
}
.form-row input,
.form-row select,
.form-row textarea {
  background: var(--bg1);
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text1);
  font-family: inherit;
  font-size: .85rem;
  padding: 8px 10px;
  outline: none;
  transition: border-color .15s;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--cyan);
}

/* Pub product modal */
.pub-product-modal {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  width: min(460px, 92vw);
  max-height: 88vh;
  overflow-y: auto;
}
.pub-product-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--bg1);
}
.pub-product-body {
  padding: 16px 18px 20px;
}

@media (max-width: 600px) {
  .mkt-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 0 8px;
  }
  .mkt-card-thumb { height: 120px; }
  .mkt-gallery img { height: 140px; }
  #dm-panel {
    width: 100vw;
    right: 0;
    border-radius: 14px 14px 0 0;
    height: 65vh;
  }
}

/* ══════════════════════════════════════════════════════════
   WALL HERO (invitado)
══════════════════════════════════════════════════════════ */
.wall-hero {
  position: relative;
  overflow: hidden;
  padding: 48px 24px 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
  background: linear-gradient(135deg, rgba(0,255,200,.04) 0%, rgba(0,180,255,.04) 100%);
}
.wall-hero-glow {
  position: absolute;
  top: -60px; left: 50%; transform: translateX(-50%);
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(0,255,200,.12) 0%, transparent 70%);
  pointer-events: none;
}
.wall-hero-content {
  position: relative;
  max-width: 540px;
  margin: 0 auto;
  text-align: center;
}
.wall-hero-badge {
  display: inline-block;
  font-family: var(--font-m, monospace);
  font-size: .65rem;
  letter-spacing: .18em;
  color: var(--cyan, #0ff);
  border: 1px solid rgba(0,255,200,.35);
  border-radius: 4px;
  padding: 2px 8px;
  margin-bottom: 14px;
  background: rgba(0,255,200,.06);
}
.wall-hero-title {
  font-family: var(--font-h, sans-serif);
  font-size: clamp(2rem, 8vw, 3.2rem);
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--text, #fff);
  margin: 0 0 10px;
  line-height: 1.1;
}
.wall-hero-sub {
  color: var(--text2, rgba(255,255,255,.6));
  font-size: .9rem;
  line-height: 1.55;
  margin: 0 0 24px;
}
.wall-hero-btns {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.wall-hero-stats {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: .75rem;
  color: var(--text2, rgba(255,255,255,.5));
  font-family: var(--font-m, monospace);
}
.wall-hero-stats span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.wall-hero-stats strong {
  color: var(--cyan, #0ff);
}

/* ══════════════════════════════════════════════════════════
   FEED HEADER
══════════════════════════════════════════════════════════ */
.feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px 8px;
  flex-wrap: wrap;
}
.feed-header-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.feed-header-sub {
  font-size: .72rem;
  color: var(--text3, rgba(255,255,255,.35));
  font-family: var(--font-m, monospace);
}
.feed-header-right {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* ══════════════════════════════════════════════════════════
   NEW POST CARD
══════════════════════════════════════════════════════════ */
.new-post-card {
  background: var(--bg2, #111);
  border: 1px solid var(--border, rgba(255,255,255,.1));
  border-radius: 12px;
  margin: 8px 12px 12px;
  overflow: hidden;
  animation: fadeSlideDown .18s ease;
}
@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.new-post-card__header {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px 14px 4px;
}
.np-author-av {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border, rgba(255,255,255,.12));
  background: var(--bg3, #1a1a1a);
}
.np-textarea {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  resize: none;
  color: var(--text, #fff);
  font-size: .9rem;
  line-height: 1.5;
  font-family: var(--font-b, sans-serif);
  min-height: 56px;
  padding: 4px 0;
}
.np-textarea::placeholder {
  color: var(--text3, rgba(255,255,255,.35));
}
.new-post-card__actions {
  padding: 0 14px 14px;
}

.np-upload-status {
  display: none;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(91, 168, 208, 0.22);
  background: linear-gradient(180deg, rgba(10, 17, 23, 0.96), rgba(7, 12, 17, 0.99));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.np-upload-status__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 0.78rem;
}

.np-upload-status__row span:last-child {
  font-family: var(--font-m);
  color: var(--cyan);
  flex-shrink: 0;
}

.np-upload-progress {
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.24);
}

.np-upload-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), #76ff9f);
  box-shadow: 0 0 18px rgba(0, 251, 251, 0.22);
  transition: width 0.2s ease;
}

.np-upload-status.is-complete {
  border-color: rgba(118, 255, 159, 0.3);
}

.np-upload-status.is-complete .np-upload-status__row span:last-child {
  color: #76ff9f;
}

.np-upload-status.is-complete .np-upload-progress span {
  background: linear-gradient(90deg, #76ff9f, #d8ff6a);
  box-shadow: 0 0 18px rgba(118, 255, 159, 0.24);
}

/* ══════════════════════════════════════════════════════════
   PROFILE PAGE HEADER
══════════════════════════════════════════════════════════ */
.profile-page-header {
  padding: 10px 14px 8px;
  border-bottom: 1px solid var(--border, rgba(255,255,255,.08));
  margin-bottom: 4px;
}

/* Botón reportar en perfil de usuario */
.upm-report-btn {
  opacity: .6;
  margin-left: auto;
  color: var(--red, #f55) !important;
  border-color: rgba(255,70,70,.2) !important;
}
.upm-report-btn:hover {
  opacity: 1;
  background: rgba(255,70,70,.08) !important;
  border-color: rgba(255,70,70,.4) !important;
}

/* Botones de cierre de modales genéricos */
.modal-close-btn,
.upm-close {
  width: 28px; height: 28px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.45);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
  flex-shrink: 0;
  transition: background .13s, color .13s, border-color .13s;
  line-height: 1;
}
.modal-close-btn:hover,
.upm-close:hover {
  background: rgba(255,60,60,.1);
  color: #ff5555;
  border-color: rgba(255,60,60,.3);
}

/* ══════════════════════════════════════════════════════════
   MARKETPLACE SEARCH
══════════════════════════════════════════════════════════ */
.mkt-search {
  flex: 1;
  background: var(--bg2, #111);
  border: 1px solid var(--border, rgba(255,255,255,.1));
  border-radius: 8px;
  color: var(--text, #fff);
  font-size: .85rem;
  padding: 7px 12px;
  outline: none;
  transition: border-color .2s;
  min-width: 0;
}
.mkt-search:focus {
  border-color: var(--cyan, #0ff);
}

/* ══════════════════════════════════════════════════════════
   MKT MORE BUTTON
══════════════════════════════════════════════════════════ */
#mkt-more-btn {
  display: none;
  width: calc(100% - 24px);
  margin: 12px auto;
  padding: 10px;
  background: var(--bg2, #111);
  border: 1px solid var(--border, rgba(255,255,255,.12));
  border-radius: 10px;
  color: var(--cyan, #0ff);
  font-family: var(--font-m, monospace);
  font-size: .78rem;
  letter-spacing: .08em;
  cursor: pointer;
  transition: background .15s, border-color .2s;
}
#mkt-more-btn:hover {
  background: rgba(0,255,200,.08);
  border-color: var(--cyan, #0ff);
}

/* ══════════════════════════════════════════════════════════
   MKT EMPTY / LOADING
══════════════════════════════════════════════════════════ */
.mkt-empty, .mkt-loading {
  text-align: center;
  padding: 40px 20px;
  color: var(--text3, rgba(255,255,255,.35));
  font-size: .85rem;
  font-family: var(--font-m, monospace);
  grid-column: 1 / -1;
}

.mkt-location-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0 12px 10px;
}

.mkt-radius-label--compact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: auto;
  white-space: nowrap;
}

.mkt-radius-select {
  width: 86px;
  min-width: 86px;
  max-width: 86px;
  background: var(--bg2, #111);
  border: 1px solid var(--border, rgba(255,255,255,.14));
  border-radius: 7px;
  color: var(--text1, #fff);
  font-size: .78rem;
  padding: 6px 8px;
}

/* ══════════════════════════════════════════════════════════
   BOTÓN WHATSAPP
══════════════════════════════════════════════════════════ */
.btn-wa {
  background: #25D366;
  color: #fff !important;
  border: none;
  font-weight: 600;
  letter-spacing: .02em;
}
.btn-wa:hover {
  background: #1ebe5a;
  box-shadow: 0 0 14px rgba(37, 211, 102, .4);
  transform: translateY(-1px);
}
.btn-wa:active {
  background: #17a84e;
  transform: none;
}

/* ══════════════════════════════════════════════════════════
   MODAL BARE — wrapper transparente para modales con estilo propio
   (reporte, producto, marketplace, etc.)
══════════════════════════════════════════════════════════ */
.modal.modal-bare {
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  max-width: none !important;
  overflow: visible !important;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* ══════════════════════════════════════════════════════════
   IMAGE VIEWER  (#img-viewer  /  .iv-*)
══════════════════════════════════════════════════════════ */
.iv-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0,0,0,.93);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  animation: ivFadeIn .15s ease;
}
@keyframes ivFadeIn { from { opacity: 0 } to { opacity: 1 } }

/* Toolbar */
.iv-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(0,0,0,.5);
  border-bottom: 1px solid rgba(255,255,255,.06);
  flex-shrink: 0;
}
.iv-btn {
  width: 34px; height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.75);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .12s, color .12s;
  flex-shrink: 0;
  font-family: inherit;
}
.iv-btn:hover { background: rgba(255,255,255,.14); color: #fff; }
.iv-btn-close {
  margin-left: auto;
  border-color: rgba(255,80,80,.2);
  color: rgba(255,100,100,.8);
}
.iv-btn-close:hover { background: rgba(255,60,60,.15); color: #ff5555; border-color: rgba(255,60,60,.35); }
.iv-label {
  font-size: .78rem;
  font-family: var(--font-m, monospace);
  color: rgba(255,255,255,.45);
  min-width: 42px;
  text-align: center;
  letter-spacing: .04em;
}

/* Stage */
.iv-stage {
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Image */
.iv-img {
  max-width: 95vw;
  max-height: 85vh;
  object-fit: contain;
  transform-origin: center center;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: auto;
}

/* Hint strip at bottom */
.iv-overlay::after {
  content: 'Rueda para zoom · Doble click 2x · Arrastrar para mover · ESC para cerrar';
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: .65rem;
  color: rgba(255,255,255,.2);
  font-family: var(--font-m, monospace);
  white-space: nowrap;
  pointer-events: none;
}
@media (max-width: 600px) {
  .iv-overlay::after { display: none; }
  .iv-img { max-width: 100vw; max-height: 80vh; }
}

@media (max-width: 600px) {
  .wall-hero { padding: 32px 16px 28px; }
  .wall-hero-title { font-size: 2rem; }
  .feed-header { padding: 8px 10px 6px; }
  .new-post-card { margin: 8px 8px 10px; }
  .new-post-card__header { padding: 10px 10px 4px; }
  .new-post-card__actions { padding: 0 10px 10px; }
}

/* ══════════════════════════════════════════════════════════
   ADMIN — REPORT CARDS  (.report-card, .report-list)
══════════════════════════════════════════════════════════ */
.report-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}
.report-list--dim .report-card {
  opacity: .72;
}
.report-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color .15s;
}
.report-card:hover {
  border-color: var(--border2);
}
.report-card__header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.report-card__motivo {
  font-size: .8rem;
  font-weight: 600;
  color: var(--text);
  font-family: var(--font-h);
  letter-spacing: .04em;
  flex: 1;
}
.report-card__fecha {
  font-size: .72rem;
  color: var(--text3);
  white-space: nowrap;
}
.report-card__preview {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: .8rem;
  color: var(--text2);
  line-height: 1.4;
  min-height: 32px;
}
.report-card__desc {
  font-size: .78rem;
  color: var(--text3);
  font-style: italic;
  padding: 0 2px;
}
.report-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}
.report-card__reporter {
  font-size: .75rem;
  color: var(--text3);
  display: flex;
  align-items: center;
  gap: 4px;
}
.report-card__actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* ── Admin modal html mode input wrap ─────────────────── */
#modal-input-wrap .form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 4px 0;
}
#modal-input-wrap .field-label {
  font-size: .75rem;
  font-family: var(--font-h);
  letter-spacing: .08em;
  color: var(--text2);
  text-transform: uppercase;
  margin-bottom: 4px;
  display: block;
}
#modal-input-wrap .field-control {
  width: 100%;
  box-sizing: border-box;
  background: var(--bg1);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: .85rem;
  padding: 8px 10px;
  font-family: var(--font);
  resize: vertical;
}
#modal-input-wrap .field-select {
  cursor: pointer;
}
#modal-input-wrap .field-control:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 2px rgba(0,251,251,.12);
}

/* ══════════════════════════════════════════
   MARKETPLACE — CARRUSEL DE IMÁGENES (v37)
══════════════════════════════════════════ */

/* Carrusel container */
.mkt-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  touch-action: pan-y;
  background: var(--bg1);
}

/* Track que se desliza */
.mkt-carousel__track {
  display: flex;
  will-change: transform;
  transition: transform 0.28s cubic-bezier(.4,0,.2,1);
}

.mkt-carousel__slide {
  flex: 0 0 100%;
  width: 100%;
}

.mkt-carousel__slide img {
  width: 100%;
  height: 260px;
  object-fit: contain;
  background: var(--bg1);
  cursor: zoom-in;
  display: block;
}

/* Botones prev/next */
.mkt-carousel__prev,
.mkt-carousel__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.1);
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background .15s, transform .15s;
}
.mkt-carousel__prev { left: 8px; }
.mkt-carousel__next { right: 8px; }
.mkt-carousel__prev:hover,
.mkt-carousel__next:hover {
  background: rgba(0,0,0,.8);
  transform: translateY(-50%) scale(1.08);
}

/* Footer: dots + contador */
.mkt-carousel__footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 10px 6px;
  background: linear-gradient(to top, rgba(0,0,0,.55) 0%, transparent 100%);
  pointer-events: none;
}
.mkt-carousel__dots {
  display: flex;
  gap: 5px;
  pointer-events: all;
}
.mkt-carousel__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background .2s, transform .2s;
  flex-shrink: 0;
}
.mkt-carousel__dot.active {
  background: #fff;
  transform: scale(1.35);
}
.mkt-carousel__counter {
  font-size: .68rem;
  color: rgba(255,255,255,.85);
  font-family: var(--font-m, monospace);
  pointer-events: none;
  background: rgba(0,0,0,.4);
  border-radius: 10px;
  padding: 1px 7px;
}

/* Badge de cantidad de fotos en la tarjeta */
.mkt-card-img-count {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(0,0,0,.62);
  color: #fff;
  font-size: .65rem;
  padding: 2px 7px;
  border-radius: 10px;
  font-family: var(--font-m, monospace);
  display: flex;
  align-items: center;
  gap: 3px;
  pointer-events: none;
}

/* Preview de imágenes en el formulario de publicar */
.prod-img-preview-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.prod-img-preview-item {
  position: relative;
  width: 62px;
  height: 62px;
  border-radius: 7px;
  overflow: hidden;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.prod-img-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.prod-img-preview-num {
  position: absolute;
  bottom: 2px;
  right: 3px;
  font-size: .58rem;
  color: #fff;
  font-family: var(--font-m, monospace);
  background: rgba(0,0,0,.5);
  border-radius: 4px;
  padding: 0 3px;
  line-height: 14px;
}
.prod-img-preview-warn {
  font-size: .72rem;
  color: var(--yellow, #f0c040);
  align-self: center;
  padding: 4px 0;
}
.prod-img-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(0,0,0,.65);
  color: #fff;
  font-size: .62rem;
  line-height: 18px;
  text-align: center;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background .15s;
}
.prod-img-remove:hover,
.prod-img-remove:active {
  background: rgba(200,30,30,.85);
}

@media (min-width: 901px) {
  body.retro-forum .app-layout {
    display: flex;
    flex-direction: column;
    padding: 18px 16px 26px;
    overflow: hidden;
  }

  body.retro-forum .mobile-hud-drawer {
    display: block !important;
    position: fixed;
    top: calc(78px + env(safe-area-inset-top, 0px));
    left: 16px;
    bottom: 16px;
    width: 292px;
    max-width: 292px;
    padding: 18px 16px 20px;
    border: 1px solid rgba(91, 168, 208, 0.18);
    border-radius: 28px;
    border-right: 1px solid rgba(91, 168, 208, 0.18);
    background:
      radial-gradient(circle at top left, rgba(0, 251, 251, 0.12), transparent 34%),
      linear-gradient(180deg, rgba(16, 18, 20, 0.98), rgba(7, 9, 10, 0.99));
    box-shadow: var(--hud-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transform: none !important;
    overflow-y: auto;
    z-index: 120;
  }

  body.retro-forum .mobile-hud-drawer__head,
  body.retro-forum .mobile-hud-close {
    display: none !important;
  }

  body.retro-forum .main-col {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    margin-left: 324px;
    width: auto;
    max-width: none;
    min-width: 0;
    padding: 0 0 132px;
    box-sizing: border-box;
  }

  body.retro-forum #page-wall,
  body.retro-forum #page-user-wall,
  body.retro-forum #page-marketplace,
  body.retro-forum #page-profile,
  body.retro-forum #page-admin,
  body.retro-forum .panel,
  body.retro-forum .post-card,
  body.retro-forum .new-post-card {
    width: 100%;
    max-width: none;
  }

  body.retro-forum .chat-float {
    left: auto !important;
    right: 18px !important;
  }

  body.retro-forum .float-chat-panel {
    left: auto !important;
    right: 18px !important;
    width: min(700px, max(320px, calc(100vw - 360px))) !important;
    max-width: calc(100vw - 36px) !important;
    max-height: calc(100dvh - 120px) !important;
  }
}

/* ── SCROLL FIX: garantizar que main-col sea scrollable en todos los breakpoints ── */
body.retro-forum #app {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: var(--app-height);
  overflow: hidden;
}
body.retro-forum .app-layout {
  flex: 1 1 auto;
  min-height: 0;
  height: 0;
  overflow: hidden;
}
body.retro-forum .main-col {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  overflow-y: auto !important;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}
body.retro-forum #page-wall,
body.retro-forum #page-user-wall,
body.retro-forum #page-marketplace,
body.retro-forum #page-profile,
body.retro-forum #page-admin {
  min-height: max-content;
  overflow: visible;
}

@media (min-width: 901px) {
  body.retro-forum #page-wall,
  body.retro-forum #page-user-wall {
    width: min(100%, 1240px);
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ════════════════════════════════════════════════════════════════════════════
   DOCK ESTILO iOS — píldora blanca, íconos limpios, badges rojos
   ════════════════════════════════════════════════════════════════════════════ */
body.retro-forum.hud-dock-enabled .mobile-hud-nav {
  top: auto !important;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px)) !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  width: auto !important;
  max-width: calc(100vw - 20px) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  border-radius: 999px !important;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(0, 0, 0, 0.07) !important;
  padding: 8px 14px !important;
  gap: 2px !important;
  align-items: center !important;
  overflow: visible !important;
}

/* ── Ítems: botones limpios sin fondo ni borde ───────────────────────────── */
body.retro-forum.hud-dock-enabled .mobile-hud-nav__item,
body.retro-forum.hud-dock-enabled .mobile-hud-slot > #notif-bell-wrap > .nav-btn {
  flex: 0 0 auto !important;
  width: 48px !important;
  height: 48px !important;
  min-height: unset !important;
  padding: 0 !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 12px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  position: relative !important;
  color: #3a3a3c !important;
  transform-origin: center bottom !important;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.15s ease !important;
  cursor: pointer;
}

/* Keep guest bell hidden even when dock forces display:flex on items */
body.retro-forum.hud-dock-enabled #mobile-hud-alert-guest {
  display: none !important;
}

body.retro-forum.hud-dock-enabled .mobile-hud-nav__item:active,
body.retro-forum.hud-dock-enabled .mobile-hud-slot > #notif-bell-wrap > .nav-btn:active {
  transform: scale(0.82) !important;
  color: #000 !important;
}

body.retro-forum.hud-dock-enabled .mobile-hud-nav__item.active,
body.retro-forum.hud-dock-enabled .mobile-hud-slot > #notif-bell-wrap > .nav-btn.active {
  color: #000 !important;
}

/* ── Ícono: SVG limpio sin contenedor ───────────────────────────────────── */
body.retro-forum.hud-dock-enabled .mobile-hud-nav__icon {
  width: auto !important;
  height: auto !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: inherit !important;
}

body.retro-forum.hud-dock-enabled .mobile-hud-nav__icon svg {
  width: 25px !important;
  height: 25px !important;
  fill: currentColor !important;
  display: block !important;
}

/* ── Label: tooltip solo en hover ────────────────────────────────────────── */
body.retro-forum.hud-dock-enabled .mobile-hud-nav__label,
body.retro-forum.hud-dock-enabled .mobile-hud-slot > #notif-bell-wrap > .nav-btn > span:not(#notif-count-badge) {
  position: absolute !important;
  bottom: calc(100% + 7px) !important;
  left: 50% !important;
  transform: translateX(-50%) translateY(4px) !important;
  white-space: nowrap !important;
  font-size: 0.64rem !important;
  font-family: var(--font-m) !important;
  font-weight: 600 !important;
  letter-spacing: 0.03em !important;
  color: #fff !important;
  background: rgba(10, 10, 10, 0.82) !important;
  border: none !important;
  border-radius: 6px !important;
  padding: 3px 8px !important;
  pointer-events: none !important;
  opacity: 0 !important;
  transition: opacity 0.14s ease, transform 0.14s ease !important;
  z-index: 300 !important;
  text-transform: uppercase !important;
  max-width: none !important;
  overflow: visible !important;
  display: block !important;
}

body.retro-forum.hud-dock-enabled .mobile-hud-nav__item:hover .mobile-hud-nav__label,
body.retro-forum.hud-dock-enabled .mobile-hud-slot > #notif-bell-wrap > .nav-btn:hover > span:not(#notif-count-badge) {
  opacity: 1 !important;
  transform: translateX(-50%) translateY(0) !important;
}

/* ── Badge rojo con borde blanco ─────────────────────────────────────────── */
body.retro-forum.hud-dock-enabled .mobile-hud-slot > #notif-bell-wrap #notif-count-badge {
    position: absolute !important;
    top: 6px !important;
    right: 7px !important;
    min-width: 17px !important;
    height: 17px !important;
    padding: 0 4px !important;
    background: #e8222e !important;
    color: #fff !important;
    font-size: 0.56rem !important;
    font-weight: 700 !important;
    font-family: var(--font-m) !important;
    line-height: 17px !important;
    text-align: center !important;
    border-radius: 999px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  border: 2px solid rgba(255, 255, 255, 0.96) !important;
  line-height: 1 !important;
  z-index: 10 !important;
  pointer-events: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: scale(0.6) !important;
  transform-origin: center center !important;
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease !important;
}

body.retro-forum.hud-dock-enabled .mobile-hud-slot > #notif-bell-wrap #notif-count-badge.is-visible {
  opacity: 1 !important;
  visibility: visible !important;
  transform: scale(1) !important;
}

body.retro-forum.hud-dock-enabled .mobile-hud-slot > #notif-bell-wrap #notif-count-badge.is-bump {
  animation: hudNotifBadgePop 0.32s cubic-bezier(.2,1.1,.3,1) !important;
}

@keyframes hudNotifBadgePop {
  0% { transform: scale(0.55); }
  55% { transform: scale(1.18); }
  100% { transform: scale(1); }
}

body.retro-forum.hud-dock-enabled #mobile-hud-chat .mobile-hud-chat-badge {
  position: absolute !important;
  top: 3px !important;
  right: 3px !important;
  min-width: 17px !important;
  height: 17px !important;
  padding: 0 4px !important;
  border-radius: 999px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #ff3b30 !important;
  color: #fff !important;
  border: 2px solid #fff !important;
  font-size: 0.58rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  z-index: 10 !important;
  pointer-events: none !important;
  box-shadow: 0 4px 10px rgba(255, 59, 48, 0.28) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: scale(0.6) !important;
  transform-origin: center center !important;
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease !important;
}

body.retro-forum.hud-dock-enabled #mobile-hud-chat .mobile-hud-chat-badge.is-visible {
  opacity: 1 !important;
  visibility: visible !important;
  transform: scale(1) !important;
}

body.retro-forum.hud-dock-enabled #mobile-hud-chat .mobile-hud-chat-badge.is-bump {
  animation: hudChatBadgePop 0.32s cubic-bezier(.2,1.1,.3,1) !important;
}

/* ── FAB: círculo pequeño, mismo estilo blanco del dock ──────────────────── */
body.retro-forum.hud-dock-enabled .mobile-hud-fab {
  left: 50% !important;
  right: auto !important;
  top: auto !important;
  bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
  transform: translateX(-50%) !important;
  transform-origin: center center !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  clip-path: none !important;
  background: rgba(255, 255, 255, 0.97) !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16) !important;
  color: #1c1c1e !important;
  gap: 0 !important;
}

body.retro-forum.hud-dock-enabled .mobile-hud-fab.is-visible {
  opacity: 1 !important;
  transform: translateX(-50%) scale(1) !important;
  pointer-events: auto !important;
}

body.retro-forum.hud-dock-enabled .mobile-hud-fab__icon svg {
  width: 18px !important;
  height: 18px !important;
  fill: currentColor !important;
}

body.retro-forum.hud-dock-enabled .mobile-hud-fab__label {
  display: none !important;
}

body.retro-forum.hud-dock-enabled .mobile-hud-fab:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.20) !important;
  transform: translateX(-50%) scale(1.1) !important;
}

body.retro-forum.hud-dock-enabled .mobile-hud-fab:active {
  transform: translateX(-50%) scale(0.88) !important;
}

body.retro-forum.hud-dock-enabled .mobile-hud-fab.is-open .mobile-hud-fab__icon {
  transform: rotate(45deg);
}

/* ── Panel notif: esquina superior derecha (ya posicionado en bloque principal) */

/* ── Padding inferior para no tapar contenido ────────────────────────────── */
body.retro-forum.hud-dock-enabled .main-col,
body.retro-forum.hud-dock-enabled .app-layout {
  padding-bottom: calc(82px + env(safe-area-inset-bottom, 0px)) !important;
}

/* Notificaciones: panel legible y vista previa flotante */
body.retro-forum #notif-panel {
  width: min(430px, calc(100vw - 32px)) !important;
  max-width: calc(100vw - 32px) !important;
}

body.retro-forum .notif-item {
  gap: 12px;
}

body.retro-forum .notif-text {
  color: var(--text);
  overflow-wrap: anywhere;
}

/* White panel overrides for dock mode */
body.retro-forum.hud-dock-enabled #notif-panel .notif-text,
body.retro-forum.hud-dock-enabled #notif-panel strong {
  color: #1c1c1e !important;
}
body.retro-forum.hud-dock-enabled #notif-panel .notif-time {
  color: #6e6e73 !important;
}
body.retro-forum.hud-dock-enabled #notif-panel [style*="color:var(--text3)"],
body.retro-forum.hud-dock-enabled #notif-panel [style*="color: var(--text3)"] {
  color: #6e6e73 !important;
}
body.retro-forum.hud-dock-enabled #notif-panel [style*="color:var(--cyan)"] {
  color: #7c3aed !important;
}
body.retro-forum.hud-dock-enabled #notif-panel button {
  color: #6e6e73 !important;
}
body.retro-forum.hud-dock-enabled #notif-panel [style*="border-bottom"] {
  border-bottom-color: rgba(0,0,0,0.08) !important;
}
body.retro-forum.hud-dock-enabled #notif-panel .notif-item {
  border-bottom: 1px solid rgba(0,0,0,0.06) !important;
}
body.retro-forum.hud-dock-enabled #notif-panel .notif-item.unread {
  background: rgba(124,58,237,0.06) !important;
}

body.retro-forum #notif-panel,
body.retro-forum.hud-dock-enabled #notif-panel {
  background: rgba(18, 24, 26, 0.98) !important;
  border-color: rgba(142, 255, 113, 0.22) !important;
  color: #eef5ee !important;
}

body.retro-forum #notif-panel .notif-item,
body.retro-forum.hud-dock-enabled #notif-panel .notif-item {
  display: flex;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(238, 245, 238, 0.08) !important;
  color: #eef5ee !important;
}

body.retro-forum #notif-panel .notif-item.unread,
body.retro-forum.hud-dock-enabled #notif-panel .notif-item.unread {
  background: rgba(0, 251, 251, 0.08) !important;
}

body.retro-forum #notif-panel .notif-text,
body.retro-forum #notif-panel .notif-text strong,
body.retro-forum #notif-panel strong,
body.retro-forum.hud-dock-enabled #notif-panel .notif-text,
body.retro-forum.hud-dock-enabled #notif-panel .notif-text strong,
body.retro-forum.hud-dock-enabled #notif-panel strong {
  color: #f7fff7 !important;
}

body.retro-forum #notif-panel .notif-time,
body.retro-forum #notif-panel [style*="color:var(--text3)"],
body.retro-forum #notif-panel [style*="color: var(--text3)"],
body.retro-forum.hud-dock-enabled #notif-panel .notif-time,
body.retro-forum.hud-dock-enabled #notif-panel [style*="color:var(--text3)"],
body.retro-forum.hud-dock-enabled #notif-panel [style*="color: var(--text3)"] {
  color: #c7d7cf !important;
}

body.retro-forum #notif-panel .notif-time,
body.retro-forum.hud-dock-enabled #notif-panel .notif-time {
  font-size: 0.48rem !important;
  line-height: 1.05 !important;
  letter-spacing: 0.02em !important;
  opacity: 0.78;
}

body.retro-forum #notif-panel [style*="color:var(--cyan)"],
body.retro-forum.hud-dock-enabled #notif-panel [style*="color:var(--cyan)"] {
  color: #76f3ff !important;
}

body.retro-forum #notif-panel button,
body.retro-forum.hud-dock-enabled #notif-panel button {
  color: #dcebe4 !important;
}

@media (max-width: 900px) {
  body.retro-forum #notif-panel,
  body.retro-forum.mobile-hud-active #notif-panel {
    position: fixed !important;
    left: max(10px, env(safe-area-inset-left, 0px)) !important;
    right: max(10px, env(safe-area-inset-right, 0px)) !important;
    top: auto !important;
    bottom: calc(96px + env(safe-area-inset-bottom, 0px)) !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    max-height: min(62vh, 470px) !important;
    transform: none !important;
    overflow-y: auto !important;
    border-radius: 24px !important;
  }
}

body.retro-forum .notif-preview-bubble {
  position: fixed;
  right: max(18px, env(safe-area-inset-right, 0px));
  bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  z-index: 5200;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: min(390px, calc(100vw - 28px));
  padding: 14px;
  border: 1px solid rgba(255, 212, 121, 0.38);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(20, 22, 20, 0.96), rgba(8, 12, 13, 0.98));
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.42), 0 0 28px rgba(255, 212, 121, 0.20);
  color: var(--text);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  transform: translateY(18px) scale(0.98);
  transition: opacity 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
}

body.retro-forum .notif-preview-bubble.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  animation: notifPreviewPulse 1.6s ease-in-out infinite;
}

body.retro-forum .notif-preview-bubble.is-hiding {
  opacity: 0;
  transform: translateY(12px) scale(0.98);
}

body.retro-forum .notif-preview-bubble__glow {
  position: absolute;
  inset: -40% auto auto -20%;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 212, 121, 0.24), transparent 68%);
  pointer-events: none;
}

body.retro-forum .notif-preview-bubble__avatar {
  position: relative;
  z-index: 1;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 212, 121, 0.58);
  box-shadow: 0 0 18px rgba(255, 212, 121, 0.22);
  flex: 0 0 auto;
}

body.retro-forum .notif-preview-bubble__body {
  position: relative;
  z-index: 1;
  min-width: 0;
}

body.retro-forum .notif-preview-bubble__eyebrow {
  font-family: var(--font-m);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  color: var(--yellow);
  margin-bottom: 4px;
}

body.retro-forum .notif-preview-bubble__title {
  font-family: var(--font-h);
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}

body.retro-forum .notif-preview-bubble__text,
body.retro-forum .notif-preview-bubble__ctx {
  font-size: 0.82rem;
  line-height: 1.35;
}

body.retro-forum .notif-preview-bubble__text {
  color: rgba(238, 245, 238, 0.88);
}

body.retro-forum .notif-preview-bubble__ctx {
  margin-top: 5px;
  color: rgba(180, 196, 187, 0.82);
}

@media (max-width: 900px) {
  body.retro-forum .notif-preview-bubble {
    left: max(10px, env(safe-area-inset-left, 0px));
    right: max(10px, env(safe-area-inset-right, 0px));
    bottom: calc(104px + env(safe-area-inset-bottom, 0px));
    width: auto;
  }
}

@keyframes notifPreviewPulse {
  0%, 100% {
    border-color: rgba(255, 212, 121, 0.34);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.42), 0 0 24px rgba(255, 212, 121, 0.16);
  }
  50% {
    border-color: rgba(255, 212, 121, 0.68);
    box-shadow: 0 24px 52px rgba(0, 0, 0, 0.48), 0 0 34px rgba(255, 212, 121, 0.32);
  }
}

/* El dock inferior debe flotar sobre el muro, sin crear una franja debajo. */
body.retro-forum.hud-dock-enabled #app,
body.retro-forum.hud-dock-enabled .app-layout,
body.retro-forum.hud-dock-enabled .main-col {
  padding-bottom: 0 !important;
}

body.retro-forum.hud-dock-enabled .mobile-hud-nav {
  background: rgba(255, 255, 255, 0.88) !important;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

/* Messenger lateral estilo MSN */
@media (min-width: 901px) {
  body.retro-forum .app-layout {
    gap: 16px !important;
  }

  body.retro-forum .main-col {
    padding-right: 12px !important;
  }

  body.retro-forum .chat-col {
    display: flex !important;
    flex: 0 0 360px !important;
    width: 360px !important;
    max-width: 360px !important;
    min-width: 320px !important;
    height: calc(100dvh - 36px) !important;
    align-self: stretch;
    order: 2;
    overflow: hidden !important;
    border-radius: 24px !important;
    background:
      linear-gradient(180deg, rgba(232, 246, 255, 0.98), rgba(203, 226, 239, 0.98)) !important;
    border: 1px solid rgba(92, 141, 172, 0.42) !important;
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.75) !important;
    color: #17283a;
  }
}

body.retro-forum .msn-panel {
  flex: 0 0 auto;
  padding: 12px;
  color: #17314a;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.9), transparent 34%),
    linear-gradient(180deg, rgba(184, 222, 244, 0.92), rgba(235, 248, 255, 0.94));
  border-bottom: 1px solid rgba(71, 120, 156, 0.28);
}

body.retro-forum .msn-self {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78), 0 8px 18px rgba(82, 130, 160, 0.16);
}

body.retro-forum .msn-self-avatar {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(68, 126, 171, 0.34);
}

body.retro-forum .msn-self-copy {
  min-width: 0;
  flex: 1 1 auto;
}

body.retro-forum .msn-self-name {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  color: #163653;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.retro-forum .msn-self-status {
    width: auto;
    max-width: 100%;
    min-height: 17px;
    margin-top: 2px;
    padding: 0 18px 0 0;
    border: 0;
    background: transparent;
    font-size: 0.72rem;
    line-height: 1.25;
    color: #4d6c81;
    font-family: inherit;
    cursor: pointer;
    outline: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity 0.22s ease, color 0.22s ease;
  }

body.retro-forum select.msn-self-status {
    appearance: none;
    -webkit-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
    background-position: calc(100% - 10px) 55%, calc(100% - 5px) 55%;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
  }

body.retro-forum .msn-self-status[data-status="connected"] {
    color: #1f7b6c;
  }

body.retro-forum .msn-self-status[data-status="busy"] {
    color: #b45b16;
  }

body.retro-forum .msn-self-status[data-status="invisible"] {
    color: #6d7f8b;
  }

body.retro-forum .msn-self-status[data-status="unavailable"] {
    color: #9f1d2c;
  }

body.retro-forum .msn-self-status.is-desc {
  color: #1f7b6c;
}

body.retro-forum .msn-edit-profile {
  flex: 0 0 auto;
  border: 1px solid rgba(36, 116, 168, 0.28);
  border-radius: 999px;
  padding: 7px 10px;
  background: linear-gradient(180deg, #ffffff, #d7f0ff);
  color: #1c5f91;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 7px 14px rgba(72, 130, 168, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.86);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
  white-space: nowrap;
}

body.retro-forum .msn-edit-profile:hover {
  transform: translateY(-1px);
  border-color: rgba(35, 148, 214, 0.46);
  box-shadow: 0 10px 20px rgba(72, 130, 168, 0.22), 0 0 0 3px rgba(45, 145, 214, 0.1);
}

body.retro-forum .msn-edit-profile:active {
  transform: translateY(0) scale(0.98);
}

body.retro-forum .msn-search-row {
  margin-top: 10px;
}

body.retro-forum .msn-contact-search {
  width: 100%;
  height: 36px;
  border: 1px solid rgba(73, 123, 160, 0.34);
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.86);
  color: #18364f;
  outline: none;
  font-size: 0.82rem;
}

body.retro-forum .msn-contact-search:focus {
  border-color: #2d91d6;
  box-shadow: 0 0 0 3px rgba(45, 145, 214, 0.15);
}

body.retro-forum .msn-search-results.is-open {
  margin-top: 8px;
  padding: 6px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(73, 123, 160, 0.2);
}

body.retro-forum .msn-search-result {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 10px;
}

body.retro-forum .msn-search-result img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  object-fit: cover;
}

body.retro-forum .msn-search-result span {
  min-width: 0;
  display: flex;
  flex-direction: column;
  color: #20394d;
}

body.retro-forum .msn-search-result small {
  color: #638197;
}

body.retro-forum .msn-search-result button {
  border: 1px solid rgba(23, 112, 173, 0.34);
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff, #d7eefb);
  color: #1f5f91;
  padding: 5px 9px;
  cursor: pointer;
  font-size: 0.72rem;
}

body.retro-forum .msn-section-title,
body.retro-forum .msn-group-title {
  margin-top: 10px;
  font-weight: 800;
  color: #24455e;
}

body.retro-forum .msn-section-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

body.retro-forum .msn-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

body.retro-forum .msn-section-head .msn-section-title {
  margin-top: 0;
}

body.retro-forum .msn-requests-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(45, 145, 214, 0.34);
  border-radius: 999px;
  padding: 5px 9px;
  background: linear-gradient(180deg, #ffffff, #d8edf8);
  color: #215b84;
  font-weight: 900;
  font-size: 0.7rem;
  cursor: pointer;
}

body.retro-forum .msn-requests-btn span {
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(33, 91, 132, 0.12);
  color: #1c587f;
}

body.retro-forum .msn-requests-btn.has-pending {
  border-color: rgba(226, 44, 64, 0.46);
  box-shadow: 0 0 0 3px rgba(226, 44, 64, 0.08);
}

body.retro-forum .msn-requests-btn.has-pending span {
    background: #e22c40;
    color: #fff;
  }

body.retro-forum .msn-folder-actions .msn-requests-icon-btn {
    position: relative;
    width: 32px;
    min-width: 32px;
    height: 32px;
    min-height: 32px;
    padding: 0;
    gap: 0;
  }

body.retro-forum .msn-folder-actions .msn-requests-icon-btn span {
    position: absolute;
    right: -5px;
    top: -5px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    font-size: 0.58rem;
    box-shadow: 0 0 0 2px rgba(240, 249, 255, 0.95);
  }
  
body.retro-forum .msn-requests-panel {
    display: none;
    margin-top: -2px;
    margin-bottom: 4px;
    border: 1px solid rgba(73, 123, 160, 0.2);
    border-radius: 14px;
    background: rgba(244, 250, 253, 0.9);
    box-shadow: 0 8px 20px rgba(17, 54, 76, 0.08);
    overflow: hidden;
  }

body.retro-forum .msn-friends-panel > .msn-requests-panel {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
  }

body.retro-forum .msn-requests-panel.is-open {
  display: block;
}

body.retro-forum .msn-request-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  padding: 9px;
  border-bottom: 1px solid rgba(73, 123, 160, 0.14);
}

body.retro-forum .msn-request-item:last-child {
  border-bottom: 0;
}

body.retro-forum .msn-request-item img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: cover;
}

body.retro-forum .msn-request-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

body.retro-forum .msn-request-copy strong,
body.retro-forum .msn-request-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.retro-forum .msn-request-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
}

body.retro-forum .msn-request-actions button {
  flex: 1 1 0;
  border-radius: 999px;
  padding: 7px 9px;
  font-weight: 900;
  cursor: pointer;
}

body.retro-forum .msn-request-actions .accept {
  border: 1px solid rgba(45, 145, 214, 0.36);
  background: #dff2fb;
  color: #155b87;
}

body.retro-forum .msn-request-actions .reject {
  border: 1px solid rgba(65, 82, 94, 0.22);
  background: #eef3f5;
  color: #4d6676;
}

body.retro-forum .msn-group-title {
  padding: 6px 8px;
  font-size: 0.86rem;
  border-bottom: 1px solid rgba(73, 123, 160, 0.22);
}

body.retro-forum .msn-contact-list {
  max-height: 190px;
  overflow-y: auto;
  margin-top: 4px;
  padding-right: 2px;
}

body.retro-forum .msn-contact {
  width: 100%;
  display: grid;
  grid-template-columns: 12px 34px 1fr;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #17314a;
  text-align: left;
  cursor: pointer;
}

body.retro-forum .msn-contact:hover {
  background: linear-gradient(90deg, rgba(91, 177, 226, 0.22), rgba(255, 255, 255, 0.38));
}

body.retro-forum .msn-contact.is-dragging {
  opacity: .55;
  transform: scale(.98);
  cursor: grabbing;
}

body.retro-forum .msn-contact.has-unread {
  background: linear-gradient(90deg, rgba(226, 44, 64, 0.12), rgba(91, 177, 226, 0.16));
}

body.retro-forum .msn-contact-presence {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #45c74e;
  box-shadow: 0 0 0 2px rgba(69, 199, 78, 0.14);
}

body.retro-forum .msn-contact-presence.msn-presence-connected {
  background: #45c74e;
  box-shadow: 0 0 0 2px rgba(69, 199, 78, 0.16);
}

body.retro-forum .msn-contact-presence.msn-presence-busy {
  background: #e22c40;
  box-shadow: 0 0 0 2px rgba(226, 44, 64, 0.18);
}

body.retro-forum .msn-contact-presence.msn-presence-invisible {
  background: transparent;
  border: 1px solid rgba(82, 112, 126, 0.55);
  box-shadow: none;
}

body.retro-forum .msn-contact-presence.msn-presence-unavailable {
  background: #f4c542;
  box-shadow: 0 0 0 2px rgba(244, 197, 66, 0.2);
}

body.retro-forum .msn-contact-presence.msn-presence-offline {
  background: #9aa7ad;
  box-shadow: 0 0 0 2px rgba(120, 130, 136, 0.16);
}

body.retro-forum .msn-contact-presence.has-unread-presence {
  animation: msnUnreadPulse 1.1s ease-in-out infinite;
}

@keyframes msnUnreadPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.72; }
}

body.retro-forum .msn-contact-avatar {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

body.retro-forum .msn-contact-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

body.retro-forum .msn-contact-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 0.84rem;
  color: #18364f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.retro-forum .msn-contact-unread {
  flex: 0 0 auto;
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #e22c40;
  color: #fff;
  font-size: 0.68rem;
  line-height: 1;
  box-shadow: 0 3px 8px rgba(226, 44, 64, 0.28);
}

body.retro-forum .msn-group-chat-item.has-unread {
  background: linear-gradient(90deg, rgba(226, 44, 64, 0.14), rgba(91, 177, 226, 0.16));
  box-shadow: inset 3px 0 0 #e22c40;
}

body.retro-forum .msn-group-chat-item strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

body.retro-forum .msn-group-unread {
  background: #e22c40;
  color: #fff;
}

body.retro-forum .msn-contact-status {
  min-height: 16px;
  font-size: 0.7rem;
  color: #607b90;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.retro-forum .msn-contact-status-desc {
  display: none;
}

body.retro-forum .msn-contact:hover .msn-contact-status-name {
  display: none;
}

body.retro-forum .msn-contact:hover .msn-contact-status-desc {
  display: inline;
}

body.retro-forum .msn-empty {
  padding: 10px;
  color: #617c91;
  font-size: 0.78rem;
}

body.retro-forum .chat-col .chat-header {
  padding: 10px 12px !important;
  background: linear-gradient(180deg, rgba(34, 105, 163, 0.94), rgba(19, 73, 130, 0.96)) !important;
  border-bottom: 1px solid rgba(15, 64, 110, 0.7) !important;
}

body.retro-forum .chat-col .chat-title {
  color: #ffffff;
  font-size: 0.72rem;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.3);
}

body.retro-forum .chat-col #chat-count {
  color: rgba(255, 255, 255, 0.72);
}

body.retro-forum .chat-col .chat-msgs {
  background: linear-gradient(180deg, #f7fbff, #e9f2f8) !important;
  min-height: 0;
}

body.retro-forum .chat-col .chat-input-area {
  border-top: 1px solid rgba(73, 123, 160, 0.24);
  background: rgba(235, 247, 255, 0.94) !important;
}

@media (max-width: 900px) {
  body.retro-forum .msn-panel {
    display: none;
  }
}

/* Desktop shell final: sidebar fija, muro y Messenger en la misma fila. */
@media (min-width: 901px) {
  body.retro-forum .app-layout {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    gap: clamp(12px, 1.25vw, 20px) !important;
    box-sizing: border-box !important;
    width: calc(100vw - 324px) !important;
    max-width: calc(100vw - 324px) !important;
    height: calc(100dvh - 64px) !important;
    min-height: calc(100dvh - 64px) !important;
    margin-left: 324px !important;
    padding: 18px 16px 18px 0 !important;
    overflow: hidden !important;
  }

  body.retro-forum .main-col {
    order: 1 !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    max-width: none !important;
    height: 100% !important;
    min-height: 0 !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-bottom: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }

  body.retro-forum .chat-col {
    order: 2 !important;
    position: relative !important;
    inset: auto !important;
    display: flex !important;
    flex: 0 0 clamp(300px, 23vw, 390px) !important;
    width: clamp(300px, 23vw, 390px) !important;
    min-width: 300px !important;
    max-width: 390px !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    margin: 0 !important;
    transform: none !important;
    align-self: stretch !important;
    z-index: 4 !important;
    overflow: hidden !important;
  }

  body.retro-forum #page-wall,
  body.retro-forum #page-user-wall {
    width: min(100%, 1180px) !important;
    max-width: 1180px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  body.retro-forum .chat-float,
  body.retro-forum .float-chat-panel,
  body.retro-forum .float-chat-backdrop,
  body.retro-forum .live-chat-float,
  body.retro-forum [data-chat-float] {
    display: none !important;
    pointer-events: none !important;
  }
}

@media (min-width: 901px) and (max-width: 1180px) {
  body.retro-forum .mobile-hud-drawer {
    left: 10px !important;
    width: 86px !important;
    padding: 12px 8px !important;
    border-radius: 24px !important;
  }

  body.retro-forum .mobile-hud-drawer__profile,
  body.retro-forum .mobile-hud-drawer__action {
    grid-template-columns: 1fr !important;
    justify-items: center !important;
    min-height: 56px !important;
    padding: 9px !important;
  }

  body.retro-forum .mobile-hud-profile__avatar-wrap {
    width: 44px !important;
    height: 44px !important;
    border-radius: 14px !important;
  }

  body.retro-forum .mobile-hud-profile__body,
  body.retro-forum .mobile-hud-drawer__text,
  body.retro-forum .mobile-hud-drawer__group--secondary {
    display: none !important;
  }

  body.retro-forum .mobile-hud-drawer__icon {
    width: 38px !important;
    height: 38px !important;
    border-radius: 14px !important;
  }

  body.retro-forum .mobile-hud-drawer__action::after {
    content: attr(data-hud-tooltip);
    position: absolute;
    left: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%) translateX(-6px);
    min-width: max-content;
    max-width: 190px;
    padding: 7px 10px;
    border-radius: 10px;
    background: rgba(9, 15, 18, .94);
    border: 1px solid rgba(91, 168, 208, .32);
    box-shadow: 0 12px 26px rgba(0, 0, 0, .34), 0 0 16px rgba(0, 251, 251, .08);
    color: #e9fbff;
    font-family: var(--font-h);
    font-size: .72rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
    z-index: 2000;
    transition: opacity .14s ease, transform .14s ease;
  }

  body.retro-forum .mobile-hud-drawer__action::before {
    content: "";
    position: absolute;
    left: calc(100% + 5px);
    top: 50%;
    width: 10px;
    height: 10px;
    transform: translateY(-50%) rotate(45deg);
    background: rgba(9, 15, 18, .94);
    border-left: 1px solid rgba(91, 168, 208, .32);
    border-bottom: 1px solid rgba(91, 168, 208, .32);
    opacity: 0;
    pointer-events: none;
    z-index: 1999;
    transition: opacity .14s ease;
  }

  body.retro-forum .mobile-hud-drawer__action:hover::after,
  body.retro-forum .mobile-hud-drawer__action:focus-visible::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }

  body.retro-forum .mobile-hud-drawer__action:hover::before,
  body.retro-forum .mobile-hud-drawer__action:focus-visible::before {
    opacity: 1;
  }

  body.retro-forum .app-layout {
    width: calc(100vw - 112px) !important;
    max-width: calc(100vw - 112px) !important;
    margin-left: 112px !important;
    padding-right: 10px !important;
    gap: 10px !important;
  }

  body.retro-forum .chat-col {
    flex-basis: clamp(270px, 30vw, 320px) !important;
    width: clamp(270px, 30vw, 320px) !important;
    min-width: 270px !important;
    max-width: 320px !important;
  }

  body.retro-forum .main-col {
    flex: 1 1 min(620px, calc(100vw - 402px)) !important;
  }

  body.retro-forum #page-wall,
  body.retro-forum #page-user-wall,
  body.retro-forum #page-marketplace,
  body.retro-forum #page-profile,
  body.retro-forum #page-admin {
    width: 100% !important;
    max-width: 760px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  body.retro-forum .post-card,
  body.retro-forum .new-post-card,
  body.retro-forum .panel {
    max-width: 100% !important;
  }
}

@media (max-width: 900px) {
  body.retro-forum .app-layout {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 100dvh !important;
    height: auto !important;
    margin-left: 0 !important;
    padding: 0 0 calc(104px + env(safe-area-inset-bottom, 0px)) !important;
    overflow: visible !important;
  }

  body.retro-forum .main-col {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 100dvh !important;
    margin-left: 0 !important;
    padding-left: max(10px, env(safe-area-inset-left, 0px)) !important;
    padding-right: max(10px, env(safe-area-inset-right, 0px)) !important;
    overflow: visible !important;
  }

  body.retro-forum .chat-col {
    display: none !important;
  }

  body.retro-forum .chat-float {
    display: flex !important;
  }

  body.retro-forum .float-chat-panel {
    display: flex !important;
    left: max(10px, env(safe-area-inset-left, 0px)) !important;
    right: max(10px, env(safe-area-inset-right, 0px)) !important;
    bottom: calc(88px + env(safe-area-inset-bottom, 0px) + var(--keyboard-offset)) !important;
    width: auto !important;
    max-width: none !important;
    height: min(72dvh, calc(var(--vvh) - 128px)) !important;
    max-height: calc(var(--vvh) - 128px) !important;
    border-radius: 22px !important;
    transform-origin: center bottom !important;
  }

  body.retro-forum .float-chat-panel.open {
    transform: translateY(0) scale(1) !important;
  }
}

/* Mobile Messenger must be the top-level screen, above header, dock and float chat. */
@media (max-width: 900px) {
  body.retro-forum.messenger-open {
    overflow: hidden !important;
  }

  body.retro-forum.messenger-open .navbar,
  body.retro-forum.messenger-open .mobile-hud-nav,
  body.retro-forum.messenger-open .mobile-hud-fab,
  body.retro-forum.messenger-open .mobile-hud-backdrop,
  body.retro-forum.messenger-open .mobile-hud-drawer,
  body.retro-forum.messenger-open .chat-float,
  body.retro-forum.messenger-open .float-chat-panel,
  body.retro-forum.messenger-open .float-chat-backdrop,
  body.retro-forum.messenger-open #notif-panel,
  body.retro-forum.messenger-open #notif-bell-wrap {
    z-index: 1 !important;
    pointer-events: none !important;
  }

  body.retro-forum.messenger-open .chat-float,
  body.retro-forum.messenger-open .float-chat-panel,
  body.retro-forum.messenger-open .float-chat-backdrop,
  body.retro-forum.messenger-open .mobile-hud-nav,
  body.retro-forum.messenger-open .mobile-hud-fab {
    opacity: 0 !important;
    visibility: hidden !important;
  }

  body.retro-forum.messenger-open .chat-col {
    position: fixed !important;
    inset: 0 !important;
    display: flex !important;
    width: 100vw !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    margin: 0 !important;
    padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px) !important;
    border: 0 !important;
    border-radius: 0 !important;
    z-index: 9000 !important;
    background: linear-gradient(180deg, #d9f1ff, #cce4f1) !important;
    overflow: hidden !important;
  }

  body.retro-forum.messenger-open .chat-col .msn-panel,
  body.retro-forum.messenger-open .chat-col .msn-chat-shell {
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    border-radius: 0 !important;
  }
}

/* Anticorte del footer del chat: mantiene escritura y botones completos. */
body.retro-forum .chat-col,
body.retro-forum .float-chat-panel {
  box-sizing: border-box !important;
}

body.retro-forum .chat-col .chat-msgs,
body.retro-forum .float-chat-panel .fcp-msgs {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
}

body.retro-forum .chat-col .chat-input-area,
body.retro-forum .float-chat-panel .fcp-input {
  box-sizing: border-box !important;
  flex: 0 0 auto !important;
  min-height: 76px !important;
  padding: 10px 12px max(16px, env(safe-area-inset-bottom, 0px)) !important;
  align-items: center !important;
  overflow: visible !important;
}

body.retro-forum .chat-col .chat-input-area textarea,
body.retro-forum .float-chat-panel .fcp-input textarea {
  box-sizing: border-box !important;
  min-height: 48px !important;
  height: 48px !important;
  max-height: 96px !important;
}

body.retro-forum .chat-col .chat-btns,
body.retro-forum .float-chat-panel .fcp-input-btns {
  align-items: center !important;
  height: 48px !important;
}

@media (min-width: 901px) {
  body.retro-forum .chat-col {
    height: calc(100dvh - 92px) !important;
    max-height: calc(100dvh - 92px) !important;
    align-self: flex-start !important;
  }
}

@media (max-width: 900px) {
  body.retro-forum .float-chat-panel {
    bottom: calc(98px + env(safe-area-inset-bottom, 0px) + var(--keyboard-offset)) !important;
    height: min(68dvh, calc(var(--vvh) - 150px)) !important;
    max-height: calc(var(--vvh) - 150px) !important;
  }
}

/* Chat general retirado: la mensajeria activa ahora es Messenger/contactos. */
body.retro-forum .chat-col > .chat-header,
body.retro-forum .chat-col > .chat-msgs,
body.retro-forum .chat-col > .chat-input-area,
body.retro-forum #chat-guest-banner,
body.retro-forum .float-chat-backdrop,
body.retro-forum .chat-float,
body.retro-forum .float-chat-panel {
  display: none !important;
  pointer-events: none !important;
}

body.retro-forum .chat-col {
  background:
    linear-gradient(180deg, rgba(232, 246, 255, 0.98), rgba(203, 226, 239, 0.98)) !important;
}

body.retro-forum .chat-col .msn-panel {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  border-bottom: 0 !important;
  border-radius: inherit !important;
}

body.retro-forum .msn-contact-list {
  flex: 1 1 auto !important;
  max-height: none !important;
  min-height: 0 !important;
}

body.retro-forum .chat-col .msn-panel {
  flex: 0 0 auto !important;
  height: auto !important;
  max-height: 42% !important;
}

body.retro-forum .msn-chat-shell {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.54), transparent 34%),
    linear-gradient(180deg, rgba(232, 246, 255, 0.72), rgba(209, 229, 241, 0.94));
  border-top: 1px solid rgba(73, 123, 160, 0.22);
}

body.retro-forum .msn-chat-tabs {
  flex: 0 0 auto;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 8px 10px 7px;
  border-bottom: 1px solid rgba(73, 123, 160, 0.22);
}

body.retro-forum .msn-chat-tab {
  flex: 0 0 auto;
  min-width: 116px;
  max-width: 172px;
  height: 34px;
  display: grid;
  grid-template-columns: 22px 1fr 20px;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(64, 124, 164, 0.22);
  border-radius: 12px 12px 5px 5px;
  padding: 4px 5px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(207, 231, 245, 0.86));
  color: #163653;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
  transition: transform 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

body.retro-forum .msn-chat-tab.active {
  background: linear-gradient(180deg, #ffffff, #bce8ff);
  border-color: rgba(35, 137, 201, 0.48);
  box-shadow: 0 8px 18px rgba(72, 130, 168, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

body.retro-forum .msn-chat-tab:hover {
  transform: translateY(-1px);
}

body.retro-forum .msn-chat-tab img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  object-fit: cover;
}

body.retro-forum .msn-chat-tab span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.retro-forum .msn-chat-tab b {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #31536a;
  font-size: 0.82rem;
  line-height: 1;
  transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

body.retro-forum .msn-chat-tab b:hover {
  background: rgba(255, 88, 88, 0.16);
  color: #b62323;
  transform: scale(1.05);
}

body.retro-forum .msn-chat-empty {
  flex: 1 1 auto;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 20px;
  color: #496d83;
  text-align: center;
}

body.retro-forum .msn-chat-empty strong {
  color: #173b55;
  font-size: 1rem;
}

body.retro-forum .msn-chat-empty span {
  font-size: 0.78rem;
}

body.retro-forum .msn-chat-pages {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

body.retro-forum .msn-chat-page {
  flex: 1 1 auto;
  min-height: 0;
  display: none;
  flex-direction: column;
}

body.retro-forum .msn-chat-page.active {
  display: flex;
}

body.retro-forum .msn-chat-peer {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-bottom: 1px solid rgba(73, 123, 160, 0.16);
  color: #173b55;
}

body.retro-forum .msn-chat-peer img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  object-fit: cover;
}

body.retro-forum .msn-chat-peer span {
  min-width: 0;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

body.retro-forum .msn-chat-peer small {
  color: #6a8799;
  font-size: 0.68rem;
}

body.retro-forum .msn-chat-buzz-btn {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(73, 123, 160, 0.26);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.78);
  color: #173b55;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(64, 105, 130, 0.1);
}

body.retro-forum .msn-chat-buzz-btn:hover {
  border-color: rgba(49, 190, 208, 0.54);
  color: #0b8da0;
}

body.retro-forum .msn-chat-buzz-btn:disabled {
  cursor: wait;
  opacity: 0.72;
}

body.retro-forum .msn-chat-peer.is-group-dropzone {
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

body.retro-forum .msn-chat-peer.is-group-dropzone.drag-over {
  background: rgba(73, 169, 118, 0.16);
  box-shadow: inset 0 0 0 2px rgba(73, 169, 118, 0.38);
}

body.retro-forum .msn-dm-messages {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 12px;
  background:
    radial-gradient(circle at 15% 0%, rgba(89, 202, 255, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(246, 252, 255, 0.62), rgba(228, 241, 248, 0.7));
}

body.retro-forum .dm-typing-indicator {
  display: none;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  padding: 0 14px 8px;
  color: #5f7b8d;
  font-size: 0.72rem;
  font-weight: 700;
}

body.retro-forum .dm-typing-indicator.active {
  display: flex;
}

body.retro-forum .dm-typing-indicator i {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #31bed0;
  opacity: 0.35;
  animation: dmTypingPulse 1s ease-in-out infinite;
}

body.retro-forum .dm-typing-indicator i:nth-child(3) { animation-delay: 0.14s; }
body.retro-forum .dm-typing-indicator i:nth-child(4) { animation-delay: 0.28s; }

@keyframes dmTypingPulse {
  0%, 100% { opacity: 0.35; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-2px); }
}

.dm-buzz-shake {
  animation: dmBuzzEarthquake 1.05s cubic-bezier(.36,.07,.19,.97) both;
  transform-origin: center center;
  will-change: transform, filter;
}

.dm-buzz-earthquake {
  filter: saturate(1.18) contrast(1.04);
}

@keyframes dmBuzzEarthquake {
  0%, 100% { transform: translate3d(0,0,0) rotate(0deg); }
  8% { transform: translate3d(-9px, 3px, 0) rotate(-1.4deg); }
  16% { transform: translate3d(10px, -4px, 0) rotate(1.2deg); }
  24% { transform: translate3d(-13px, 5px, 0) rotate(-1.8deg); }
  32% { transform: translate3d(12px, -6px, 0) rotate(1.7deg); }
  40% { transform: translate3d(-10px, 4px, 0) rotate(-1.3deg); }
  48% { transform: translate3d(9px, -3px, 0) rotate(1deg); }
  56% { transform: translate3d(-7px, 3px, 0) rotate(-.8deg); }
  64% { transform: translate3d(6px, -2px, 0) rotate(.7deg); }
  72% { transform: translate3d(-4px, 2px, 0) rotate(-.45deg); }
  84% { transform: translate3d(3px, -1px, 0) rotate(.25deg); }
}

body.retro-forum .dm-buzz-alert {
  position: fixed;
  left: 50%;
  top: clamp(72px, 18vh, 150px);
  z-index: 2400;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(360px, calc(100vw - 28px));
  padding: 13px 16px;
  border: 1px solid rgba(255, 214, 91, .55);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(24, 35, 43, .96), rgba(12, 20, 26, .94));
  color: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .38), 0 0 28px rgba(255, 204, 80, .2);
  pointer-events: none;
  transform: translateX(-50%) scale(.92);
  animation: dmBuzzAlertIn .28s ease-out forwards;
}

body.retro-forum .dm-buzz-alert.is-leaving {
  animation: dmBuzzAlertOut .36s ease-in forwards;
}

body.retro-forum .dm-buzz-phone {
  position: relative;
  width: 42px;
  height: 58px;
  flex: 0 0 auto;
  border: 3px solid #ffe27a;
  border-radius: 11px;
  background: linear-gradient(180deg, #263640, #0f1a20);
  box-shadow: 0 0 18px rgba(255, 226, 122, .42);
  animation: dmBuzzPhoneShake .56s linear infinite;
}

body.retro-forum .dm-buzz-phone-screen {
  position: absolute;
  inset: 10px 7px 9px;
  border-radius: 6px;
  background: radial-gradient(circle at 50% 38%, rgba(255, 226, 122, .75), rgba(65, 190, 255, .32) 50%, rgba(255, 255, 255, .08));
}

body.retro-forum .dm-buzz-phone-speaker {
  position: absolute;
  top: 5px;
  left: 50%;
  width: 14px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .7);
  transform: translateX(-50%);
}

body.retro-forum .dm-buzz-alert-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

body.retro-forum .dm-buzz-alert-copy strong {
  font-size: .95rem;
  line-height: 1.1;
}

body.retro-forum .dm-buzz-alert-copy span {
  color: rgba(255, 255, 255, .76);
  font-size: .78rem;
}

@keyframes dmBuzzAlertIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-12px) scale(.92); }
  to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

@keyframes dmBuzzAlertOut {
  to { opacity: 0; transform: translateX(-50%) translateY(-14px) scale(.95); }
}

@keyframes dmBuzzPhoneShake {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  12% { transform: translateX(-5px) rotate(-8deg); }
  24% { transform: translateX(4px) rotate(7deg); }
  36% { transform: translateX(-4px) rotate(-6deg); }
  48% { transform: translateX(5px) rotate(8deg); }
  60% { transform: translateX(-3px) rotate(-5deg); }
  72% { transform: translateX(3px) rotate(4deg); }
}

body.retro-forum .msn-group-image-preview {
  width: min(360px, 78vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin: 0 auto;
  border: 1px solid rgba(73, 123, 160, 0.24);
  border-radius: 16px;
  background: rgba(236, 247, 255, 0.76);
  overflow: hidden;
}

body.retro-forum .msn-group-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.retro-forum .msn-chat-peer img[onclick] {
  cursor: zoom-in;
}

body.retro-forum .msn-chat-compose {
  position: relative;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
  padding: 10px;
  border-top: 1px solid rgba(73, 123, 160, 0.22);
  background: rgba(238, 248, 255, 0.92);
}

body.retro-forum .msn-compose-input-row {
  order: 4;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  width: 100%;
}

body.retro-forum .msn-chat-compose textarea {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 42px;
  max-height: 90px;
  resize: none;
  outline: none;
  border: 1px solid rgba(73, 123, 160, 0.28);
  border-radius: 16px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.9);
  color: #17314a;
}

body.retro-forum .msn-dm-send {
  flex: 0 0 auto;
  min-width: 74px;
  height: 42px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(180deg, #28f0ff, #10bed0);
  color: #04181d;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(16, 190, 208, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

body.retro-forum .msn-chat-shell .dm-msg {
  margin-bottom: 9px;
}

body.retro-forum .msn-chat-shell .dm-msg-audio {
  width: 100%;
  max-width: 100%;
}

body.retro-forum .msn-chat-shell .dm-msg-audio .dm-bubble {
  width: calc(100% - 42px);
  max-width: 100%;
  box-sizing: border-box;
}

body.retro-forum .msn-chat-shell .dm-msg-audio.dm-msg-mine .dm-bubble {
  width: min(100%, calc(100% - 8px));
}

body.retro-forum .msn-chat-shell .dm-msg-audio .dm-audio-player {
  width: 100%;
  max-width: none;
}

body.retro-forum .msn-chat-shell .dm-bubble {
  background: rgba(255, 255, 255, 0.86);
  color: #1d303b;
  border-color: rgba(73, 123, 160, 0.2);
  box-shadow: 0 8px 20px rgba(64, 105, 130, 0.1);
}

body.retro-forum .msn-chat-shell .dm-msg-mine .dm-bubble {
  background: linear-gradient(180deg, #d7ffe7, #b8f4d2);
  color: #123823;
  border-color: rgba(42, 172, 98, 0.22);
}

/* Composer de post: misma familia visual que una publicacion */
body.retro-forum .new-post-card {
  position: relative;
  overflow: hidden;
  margin: 14px 0 18px !important;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.16) !important;
  border-radius: 24px !important;
  background:
    radial-gradient(circle at 18% 0%, rgba(91, 190, 230, 0.1), transparent 28%),
    linear-gradient(180deg, #eef5f2, #dfe9e5) !important;
  color: #1b2427 !important;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.74);
  animation: newPostComposerIn 0.24s ease both;
}

body.retro-forum .new-post-card::before {
  content: "Nuevo post";
  position: absolute;
  top: 16px;
  right: 18px;
  z-index: 1;
  color: #57aee0;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body.retro-forum .new-post-card__header {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  align-items: start;
  padding: 34px 26px 18px !important;
}

body.retro-forum .np-author-av {
  width: 54px !important;
  height: 54px !important;
  border-radius: 50% !important;
  object-fit: cover;
  border: 2px solid #071819 !important;
  background: #dce8e5 !important;
  box-shadow: 0 0 0 3px rgba(65, 209, 217, 0.32), 0 12px 24px rgba(0, 0, 0, 0.14);
}

body.retro-forum .np-textarea {
  width: 100%;
  min-height: 118px !important;
  padding: 2px 0 8px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #1d272a !important;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.02rem !important;
  line-height: 1.6 !important;
  resize: vertical;
  outline: none !important;
}

body.retro-forum .np-textarea::placeholder {
  color: rgba(30, 43, 47, 0.52) !important;
}

body.retro-forum .new-post-card__actions {
  position: relative;
  z-index: 2;
  padding: 0 26px 22px !important;
}

body.retro-forum .new-post-card__actions > div:first-child {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  min-height: 54px;
  padding: 10px 12px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 18px;
  background: rgba(245, 250, 248, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

body.retro-forum .new-post-card .file-btn,
body.retro-forum .new-post-card .btn.btn-ghost.btn-sm,
body.retro-forum .new-post-card #np-clear {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(20, 30, 32, 0.1) !important;
  border-radius: 999px !important;
  padding: 8px 12px !important;
  background: rgba(255, 255, 255, 0.72) !important;
  color: #20282a !important;
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  box-shadow: none !important;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

body.retro-forum .new-post-card .file-btn:hover,
body.retro-forum .new-post-card .btn.btn-ghost.btn-sm:hover {
  transform: translateY(-1px);
  border-color: rgba(47, 166, 210, 0.36) !important;
  background: rgba(255, 255, 255, 0.94) !important;
}

body.retro-forum .new-post-card #np-url {
  flex: 1 1 230px !important;
  min-height: 36px;
  border: 1px solid rgba(20, 30, 32, 0.12) !important;
  border-radius: 999px !important;
  padding: 8px 13px !important;
  background: rgba(255, 255, 255, 0.74) !important;
  color: #20282a !important;
  font-size: 0.78rem !important;
}

body.retro-forum .new-post-card #np-url::placeholder {
  color: rgba(32, 40, 42, 0.44);
}

body.retro-forum .new-post-card #np-preview {
  margin-top: 14px !important;
  overflow: hidden;
  border-radius: 18px;
}

body.retro-forum .new-post-card .np-upload-status {
  background: rgba(255, 255, 255, 0.66) !important;
  border-color: rgba(47, 166, 210, 0.24) !important;
  color: #20282a !important;
}

body.retro-forum .new-post-card .np-upload-status__row {
  color: #20282a !important;
}

body.retro-forum .new-post-card .np-upload-progress {
  background: rgba(20, 30, 32, 0.1) !important;
}

body.retro-forum .new-post-card .flex.g2.mt2 {
  justify-content: flex-end;
  margin-top: 14px !important;
}

body.retro-forum .new-post-card #np-submit-btn {
  min-width: 128px;
  border: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, #77c9ec, #51aeda) !important;
  color: #071319 !important;
  font-weight: 900 !important;
  box-shadow: 0 12px 24px rgba(81, 174, 218, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.42) !important;
}

body.retro-forum .new-post-card .flex.g2.mt2 .btn-ghost {
  border-radius: 999px !important;
  color: #20282a !important;
  background: rgba(255, 255, 255, 0.68) !important;
}

@keyframes newPostComposerIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 700px) {
  body.retro-forum .new-post-card {
    border-radius: 20px !important;
  }

  body.retro-forum .new-post-card__header {
    grid-template-columns: 42px 1fr;
    gap: 10px;
    padding: 32px 16px 14px !important;
  }

  body.retro-forum .np-author-av {
    width: 42px !important;
    height: 42px !important;
  }

  body.retro-forum .new-post-card__actions {
    padding: 0 16px 16px !important;
  }

  body.retro-forum .new-post-card #np-url {
    flex-basis: 100% !important;
  }
}

/* Muro personal: portada del usuario */
body.retro-forum #user-wall-page-header {
  margin-bottom: 16px;
}

body.retro-forum .user-wall-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 210px;
  padding: 22px;
  border: 1px solid rgba(85, 211, 245, 0.2);
  border-radius: 30px;
  background:
    radial-gradient(circle at 14% 22%, rgba(95, 226, 255, 0.26), transparent 30%),
    radial-gradient(circle at 88% 0%, rgba(111, 65, 180, 0.28), transparent 34%),
    linear-gradient(135deg, rgba(8, 24, 28, 0.96), rgba(8, 12, 20, 0.98) 58%, rgba(24, 13, 36, 0.96));
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  animation: userWallHeroIn 0.38s ease both;
}

body.retro-forum .user-wall-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, #000, transparent 82%);
}

body.retro-forum .user-wall-hero__glow {
  position: absolute;
  right: -80px;
  bottom: -120px;
  width: 330px;
  height: 330px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91, 196, 255, 0.26), transparent 66%);
  filter: blur(6px);
  pointer-events: none;
}

body.retro-forum .user-wall-back {
  position: relative;
  z-index: 2;
  border: 1px solid rgba(106, 232, 255, 0.28);
  border-radius: 999px;
  padding: 8px 13px;
  background: rgba(3, 14, 18, 0.54);
  color: #9aefff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

body.retro-forum .user-wall-back:hover {
  transform: translateX(-2px);
  border-color: rgba(106, 232, 255, 0.58);
  background: rgba(3, 18, 24, 0.82);
}

body.retro-forum .user-wall-hero__main {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
}

body.retro-forum .user-wall-avatar-wrap {
  position: relative;
  flex: 0 0 auto;
  width: 96px;
  height: 96px;
  border-radius: 28px;
  padding: 4px;
  background: linear-gradient(135deg, rgba(91, 233, 255, 0.95), rgba(124, 255, 98, 0.78), rgba(255, 121, 216, 0.8));
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.34), 0 0 34px rgba(91, 233, 255, 0.2);
}

body.retro-forum .user-wall-avatar {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 24px;
  border: 2px solid rgba(4, 12, 16, 0.9);
}

body.retro-forum .user-wall-presence {
  position: absolute;
  right: -2px;
  bottom: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #61ff4a;
  border: 3px solid #081116;
  box-shadow: 0 0 16px rgba(97, 255, 74, 0.7);
}

body.retro-forum .user-wall-copy {
  min-width: 0;
  flex: 1 1 auto;
}

body.retro-forum .user-wall-kicker {
  color: #56d7ff;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

body.retro-forum .user-wall-title {
  margin: 4px 0 6px;
  color: #f4fbff;
  font-size: clamp(2rem, 4vw, 4.3rem);
  line-height: 0.92;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-shadow: 0 12px 34px rgba(0, 0, 0, 0.36), 0 0 28px rgba(85, 211, 245, 0.18);
}

body.retro-forum .user-wall-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: rgba(220, 241, 245, 0.72);
  font-size: 0.82rem;
  font-weight: 800;
}

body.retro-forum .user-wall-status {
  width: min(100%, 720px);
  margin: 12px 0 0;
  color: rgba(231, 246, 248, 0.86);
  font-size: 0.92rem;
  line-height: 1.45;
}

body.retro-forum .user-wall-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

body.retro-forum .user-wall-action {
  border: 1px solid rgba(125, 225, 255, 0.22);
  border-radius: 999px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.08);
  color: #e8fbff;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

body.retro-forum .user-wall-action--primary {
  border-color: rgba(98, 205, 255, 0.55);
  background: linear-gradient(180deg, #75cdf2, #4aa9d3);
  color: #061018;
  box-shadow: 0 14px 28px rgba(74, 169, 211, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

body.retro-forum .user-wall-action:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.24);
}

body.retro-forum .user-wall-action--primary:hover {
  background: linear-gradient(180deg, #8ddcff, #58b8e3);
}

@keyframes userWallHeroIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 700px) {
  body.retro-forum .user-wall-hero {
    min-height: 0;
    padding: 16px;
    border-radius: 24px;
  }

  body.retro-forum .user-wall-hero__main {
    align-items: flex-start;
    gap: 14px;
    margin-top: 18px;
  }

  body.retro-forum .user-wall-avatar-wrap {
    width: 74px;
    height: 74px;
    border-radius: 22px;
  }

  body.retro-forum .user-wall-avatar {
    border-radius: 18px;
  }

  body.retro-forum .user-wall-title {
    font-size: clamp(1.7rem, 12vw, 2.6rem);
  }

  body.retro-forum .user-wall-actions {
    justify-content: stretch;
  }

  body.retro-forum .user-wall-action {
    flex: 1 1 140px;
  }
}

@media (max-width: 900px) {
  /* Messenger full-screen on mobile: covers entire viewport including dock */
  body.retro-forum .chat-col {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    display: none !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
    z-index: 2000 !important;
    overflow: hidden !important;
    flex-direction: column !important;
    padding-bottom: env(safe-area-inset-bottom, 0px) !important;
  }

  body.retro-forum.messenger-open .chat-col {
    display: flex !important;
  }

  /* Mobile close button — only visible when full-screen */
  body.retro-forum .msn-mobile-close {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    background: rgba(0,0,0,0.06);
    border: none;
    border-radius: 50%;
    color: #17314a;
    cursor: pointer;
    margin-right: 4px;
  }
  body.retro-forum .msn-mobile-close svg {
    width: 20px;
    height: 20px;
  }

  /* msn-panel: flex column, fills all height, scrollable */
  body.retro-forum .chat-col .msn-panel {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
  }

  /* Remove the 190px cap — let contacts scroll naturally in the panel */
  body.retro-forum .chat-col .msn-contact-list {
    max-height: none !important;
    overflow-y: visible !important;
    flex-shrink: 0 !important;
  }

  /* Folder list also uncapped */
  body.retro-forum .chat-col .msn-folder-list {
    max-height: none !important;
    overflow-y: visible !important;
    flex-shrink: 0 !important;
  }

  /* msn-chat-shell fills remaining height when active */
  body.retro-forum .chat-col .msn-chat-shell {
    flex: 1 1 auto !important;
    min-height: 0 !important;
  }

  /* msn-panel fixed parts don't shrink */
  body.retro-forum .chat-col .msn-self,
  body.retro-forum .chat-col .msn-search-row,
  body.retro-forum .chat-col .msn-section-head {
    flex-shrink: 0 !important;
  }
}

/* Messenger: una sola columna, contactos o conversacion. */
body.retro-forum .msn-chat-back {
  display: inline-flex !important;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  gap: 6px;
  margin: 10px 10px 6px;
  min-height: 34px;
  border: 1px solid rgba(45, 117, 154, 0.22);
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.72);
  color: #173b55;
  font-weight: 900;
  font-size: 0.76rem;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(64, 105, 130, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

body.retro-forum .chat-col {
  overflow: hidden !important;
}

body.retro-forum .chat-col .msn-panel,
body.retro-forum .chat-col .msn-chat-shell {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: 100% !important;
  max-height: none !important;
  flex: 1 1 auto !important;
  border-radius: inherit !important;
}

body.retro-forum .chat-col .msn-panel {
  display: flex !important;
  border-bottom: 0 !important;
}

body.retro-forum .chat-col .msn-chat-shell {
  display: none !important;
  min-height: 0 !important;
  border-top: 0 !important;
  animation: messengerPaneIn 0.2s ease both;
}

body.retro-forum.messenger-chat-active .chat-col .msn-panel {
  display: none !important;
}

body.retro-forum.messenger-chat-active .chat-col .msn-chat-shell {
  display: flex !important;
}

@media (max-width: 900px) {
  body.retro-forum .chat-col {
    flex-direction: column !important;
    overflow: hidden !important;
    background:
      radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.88), transparent 34%),
      linear-gradient(180deg, #d9f1ff, #cce4f1) !important;
  }

  body.retro-forum .chat-col .msn-panel {
    padding: 10px !important;
    flex: 1 1 auto !important;
    display: block !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    min-height: 0 !important;
    height: auto !important;
  }

  /* Remove fixed height from contact list — let panel scroll as a whole */
  body.retro-forum .chat-col .msn-contact-list {
    max-height: none !important;
    overflow-y: visible !important;
  }

  /* Remove fixed height from folder list too */
  body.retro-forum .chat-col .msn-folder-list {
    max-height: none !important;
    overflow-y: visible !important;
  }

  body.retro-forum .msn-chat-tabs {
    padding-top: 3px;
  }

  body.retro-forum .msn-chat-empty {
    min-height: 0;
  }

  body.retro-forum .msn-search-results.is-open {
    max-height: 34dvh;
    overflow-y: auto;
  }
}

@keyframes messengerPaneIn {
  from {
    opacity: 0;
    transform: translateX(18px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Messenger: globos desplazables solo en el inicio */
body.retro-forum .msn-open-bubbles {
    display: none;
    gap: 6px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    padding: 2px 2px 6px;
    margin: 0;
    -webkit-overflow-scrolling: touch;
  }

body.retro-forum .msn-open-bubbles.has-items {
  display: flex;
}

body.retro-forum.messenger-chat-active .msn-open-bubbles {
  display: none !important;
}

body.retro-forum .msn-open-bubbles::-webkit-scrollbar {
  height: 6px;
}

body.retro-forum .msn-open-bubbles::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.28);
  border-radius: 999px;
}

body.retro-forum .msn-open-bubbles::-webkit-scrollbar-thumb {
  background: #8ab5e0;
  border-radius: 999px;
}

body.retro-forum .msn-open-bubble {
    position: relative;
    flex: 0 0 112px;
    width: 112px;
    min-height: 34px;
    border: 1px solid rgba(91, 145, 190, 0.45);
    border-radius: 999px;
    background: linear-gradient(180deg, #f9fdff, #cce7f7);
    color: #1b354b;
    cursor: pointer;
    scroll-snap-align: start;
    padding: 4px 22px 4px 5px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 4px 10px rgba(45, 89, 120, 0.12);
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
  }

body.retro-forum .msn-open-bubble:hover,
body.retro-forum .msn-open-bubble.active {
  transform: translateY(-2px);
  border-color: #2d7ec2;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 8px 18px rgba(45, 126, 194, 0.2);
}

body.retro-forum .msn-open-bubble img {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #fff;
    box-shadow: 0 0 0 1px rgba(58, 126, 176, 0.34);
    flex: 0 0 auto;
  }
  
body.retro-forum .msn-open-bubble span {
    min-width: 0;
    max-width: 68px;
    font-size: 0.64rem;
    font-weight: 800;
    line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.retro-forum .msn-open-bubble b {
    position: absolute;
    top: 50%;
    right: 4px;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid rgba(91, 145, 190, 0.55);
  color: #376987;
    font-size: 0.7rem;
    line-height: 1;
    font-family: Arial, sans-serif;
  }

body.retro-forum .msn-folder-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

body.retro-forum .msn-folder {
  border: 1px solid rgba(91, 145, 190, 0.24);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.34);
}

body.retro-forum .msn-folder-head {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(215, 237, 249, 0.62));
  color: #213d54;
  cursor: pointer;
  text-align: left;
  font-family: var(--font);
}

body.retro-forum .msn-folder-icon {
  width: 24px;
  height: 22px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(180deg, #ffd875, #efae24);
  border: 1px solid rgba(149, 103, 18, 0.28);
  color: #654409;
  font-size: 0.68rem;
  font-weight: 900;
}

body.retro-forum .msn-folder-title {
  flex: 1;
  min-width: 0;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

body.retro-forum .msn-folder-count {
  min-width: 22px;
  height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(76, 137, 184, 0.16);
  color: #2f678d;
  font-size: 0.68rem;
  font-weight: 900;
}

body.retro-forum .msn-folder-body {
  padding: 6px 8px 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

body.retro-forum .msn-folder-create {
  width: 100%;
  border: 1px dashed rgba(47, 103, 141, 0.36);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.38);
  color: #2f678d;
  padding: 6px 8px;
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 900;
  text-align: left;
}

body.retro-forum .msn-folder-create:hover {
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(45, 126, 194, 0.5);
}

body.retro-forum .msn-folder-item {
    display: flex;
    align-items: center;
    gap: 8px;
  width: 100%;
  border: 0;
  background: transparent;
  color: #244159;
  padding: 5px 4px;
    text-align: left;
  }

body.retro-forum .msn-group-chat-item {
    min-height: 34px;
    border-radius: 8px;
    padding: 5px 6px;
    cursor: pointer;
  }

body.retro-forum .msn-group-chat-item:hover {
    background: rgba(255, 255, 255, 0.58);
  }

body.retro-forum .msn-group-folder-icon {
      position: relative;
      width: 24px;
      height: 18px;
      flex: 0 0 24px;
    border-radius: 3px;
    background: linear-gradient(180deg, #ffd65a, #f5aa1f);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.62), 0 1px 2px rgba(125,83,8,.18);
  }

body.retro-forum .msn-group-folder-icon::before {
    content: "";
    position: absolute;
    left: 0;
    top: -4px;
    width: 11px;
    height: 6px;
    border-radius: 3px 3px 0 0;
      background: #f2b21c;
    }

body.retro-forum .msn-group-avatar-icon {
      width: 26px;
      height: 26px;
      flex: 0 0 26px;
      border-radius: 7px;
      object-fit: cover;
      border: 1px solid rgba(255,255,255,.86);
      box-shadow: 0 0 0 1px rgba(58,126,176,.24);
    }

body.retro-forum .msn-group-context-menu {
    width: 240px;
  }

body.retro-forum .msn-folder-item span:last-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

body.retro-forum .msn-folder-item strong {
  font-size: 0.73rem;
  line-height: 1.15;
}

body.retro-forum .msn-folder-item small,
body.retro-forum .msn-folder-empty {
  color: #6f8798;
  font-size: 0.66rem;
}

body.retro-forum .msn-folder-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #52d76f;
  box-shadow: 0 0 0 4px rgba(82, 215, 111, 0.14);
  flex-shrink: 0;
}

/* Alertas: campana arriba derecha y panel desplegable hacia abajo */
@media (min-width: 901px) {
  body.retro-forum #notif-bell-wrap {
    position: fixed !important;
    top: 14px !important;
    right: 24px !important;
    z-index: 5600 !important;
    width: 52px !important;
    height: 52px !important;
    display: flex !important;
    overflow: visible !important;
  }

  body.retro-forum #notif-bell-btn {
    width: 52px !important;
    height: 52px !important;
    min-height: 52px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    border: 1px solid rgba(82, 255, 104, 0.52) !important;
    background: rgba(8, 18, 15, 0.88) !important;
    color: #7dff79 !important;
    box-shadow: 0 0 0 4px rgba(82, 255, 104, 0.08), 0 12px 28px rgba(0, 0, 0, 0.28), 0 0 24px rgba(82, 255, 104, 0.18) !important;
  }

  body.retro-forum #notif-bell-btn > span:not(#notif-count-badge) {
    display: none !important;
  }

  body.retro-forum #notif-bell-btn svg {
    width: 22px !important;
    height: 22px !important;
    display: block !important;
  }

  body.retro-forum #notif-count-badge {
    top: -2px !important;
    right: -2px !important;
  }

  body.retro-forum #notif-panel,
  body.retro-forum.hud-dock-enabled #notif-panel {
    position: fixed !important;
    top: 74px !important;
    right: 24px !important;
    left: auto !important;
    bottom: auto !important;
    width: min(390px, calc(100vw - 48px)) !important;
    max-width: min(390px, calc(100vw - 48px)) !important;
    max-height: min(68vh, 520px) !important;
    height: auto !important;
    transform: none !important;
    overflow-y: auto !important;
    border-radius: 24px !important;
    z-index: 5590 !important;
    transform-origin: top right !important;
  }
}

@media (max-width: 900px) {
  body.retro-forum #notif-panel,
  body.retro-forum.mobile-hud-active #notif-panel {
    position: fixed !important;
    left: max(14px, env(safe-area-inset-left, 0px)) !important;
    right: max(14px, env(safe-area-inset-right, 0px)) !important;
    top: calc(72px + env(safe-area-inset-top, 0px)) !important;
    bottom: auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    max-height: min(58vh, 420px) !important;
    transform: none !important;
    overflow-y: auto !important;
    border-radius: 24px !important;
  }
  /* Dock mode: keep top-right corner on mobile too */
  body.retro-forum.hud-dock-enabled #notif-panel {
    top: calc(10px + env(safe-area-inset-top, 0px)) !important;
    right: 10px !important;
    left: auto !important;
    width: min(360px, calc(100vw - 20px)) !important;
    max-width: none !important;
    max-height: 72vh !important;
    transform: none !important;
  }
}

/* Mobile wall scroll guard: body is locked, so the feed must own vertical scroll. */
@media (max-width: 900px) {
  body.retro-forum .app-layout {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: auto !important;
    overflow: hidden !important;
  }

  body.retro-forum .main-col {
    height: 100% !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
  }

  body.retro-forum #page-wall,
  body.retro-forum #page-user-wall,
  body.retro-forum #page-marketplace,
  body.retro-forum #page-profile {
    min-height: auto !important;
    overflow: visible !important;
  }

  body.retro-forum.hud-dock-enabled #page-profile {
    padding-bottom: calc(118px + env(safe-area-inset-bottom, 0px)) !important;
  }

  body.retro-forum.hud-dock-enabled #profile-edit-section {
    margin-bottom: calc(22px + env(safe-area-inset-bottom, 0px)) !important;
  }

  body.retro-forum.hud-dock-enabled .modal-overlay {
    align-items: center !important;
    padding: 12px 12px calc(104px + env(safe-area-inset-bottom, 0px)) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  body.retro-forum.hud-dock-enabled .modal {
    max-height: calc(100dvh - 128px - env(safe-area-inset-bottom, 0px)) !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
  }

  body.retro-forum.hud-dock-enabled .modal .user-profile-modal {
    max-height: calc(100dvh - 132px - env(safe-area-inset-bottom, 0px)) !important;
    overflow-y: auto !important;
    padding-bottom: 12px;
  }
}

/* Ajustes moviles: chat flotante en header y posts mas compactos */
@media (max-width: 900px) {
  body.retro-forum .navbar,
  body.retro-forum.mobile-hud-active .navbar {
    padding-right: calc(clamp(42px, 12vw, 52px) + max(18px, env(safe-area-inset-right, 0px))) !important;
  }

  body.retro-forum .chat-float,
  body.retro-forum.mobile-hud-active .chat-float {
    display: none !important;
    position: fixed !important;
    top: calc(9px + env(safe-area-inset-top, 0px)) !important;
    right: max(10px, calc(env(safe-area-inset-right, 0px) + 8px)) !important;
    bottom: auto !important;
    width: clamp(42px, 12vw, 52px) !important;
    min-width: 0 !important;
    height: clamp(42px, 12vw, 52px) !important;
    padding: 0 !important;
    border-radius: 14px !important;
    z-index: 260 !important;
    gap: 0 !important;
    animation: none !important;
    transform: none !important;
    box-shadow: 0 10px 22px rgba(0, 0, 0, .22), 0 0 0 1px rgba(255, 255, 255, .12) !important;
  }

  body.retro-forum .chat-float.is-open,
  body.retro-forum.mobile-hud-active .chat-float.is-open {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: scale(.86) !important;
  }

  body.retro-forum .chat-float-core,
  body.retro-forum.mobile-hud-active .chat-float-core {
    width: 100% !important;
    height: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    border-radius: inherit !important;
    overflow: hidden !important;
  }

  body.retro-forum .chat-float-bubbles,
  body.retro-forum.mobile-hud-active .chat-float-bubbles {
    width: 100% !important;
    height: 100% !important;
  }

  body.retro-forum .chat-float-bubbles::after,
  body.retro-forum.mobile-hud-active .chat-float-bubbles::after,
  body.retro-forum .chat-float-live,
  body.retro-forum.mobile-hud-active .chat-float-live,
  body.retro-forum .chat-float-ring,
  body.retro-forum.mobile-hud-active .chat-float-ring {
    display: none !important;
  }

  body.retro-forum .chat-float-bubbles svg,
  body.retro-forum.mobile-hud-active .chat-float-bubbles svg {
    width: clamp(17px, 5vw, 22px) !important;
    height: clamp(17px, 5vw, 22px) !important;
  }

  body.retro-forum .chat-float .msn-unread-badge,
  body.retro-forum.mobile-hud-active .chat-float .msn-unread-badge {
    top: -5px !important;
    right: -5px !important;
    min-width: 16px !important;
    height: 16px !important;
    font-size: .55rem !important;
  }
}

@media (max-width: 640px) {
  body.retro-forum .app-layout,
  body.retro-forum.mobile-hud-active .app-layout {
    padding-left: 6px !important;
    padding-right: 6px !important;
  }

  body.retro-forum .main-col,
  body.retro-forum.mobile-hud-active .main-col {
    padding-left: 6px !important;
    padding-right: 6px !important;
  }

  body.retro-forum .post-card,
  body.retro-forum.mobile-hud-active .post-card {
    margin-bottom: 10px !important;
    padding: 9px 8px !important;
    border-radius: 12px !important;
  }

  body.retro-forum .post-header,
  body.retro-forum.mobile-hud-active .post-header {
    gap: 7px !important;
    padding: 8px 8px 6px !important;
  }

  body.retro-forum .post-avatar,
  body.retro-forum.mobile-hud-active .post-avatar {
    width: 34px !important;
    height: 34px !important;
  }

  body.retro-forum .post-username,
  body.retro-forum.mobile-hud-active .post-username {
    font-size: .82rem !important;
  }

  body.retro-forum .post-time,
  body.retro-forum.mobile-hud-active .post-time {
    font-size: .52rem !important;
    line-height: 1.12 !important;
    letter-spacing: 0 !important;
  }

  body.retro-forum .post-body,
  body.retro-forum.mobile-hud-active .post-body {
    padding: 0 8px 8px !important;
    font-size: .84rem !important;
    line-height: 1.45 !important;
  }

  body.retro-forum .post-img,
  body.retro-forum .post-video,
  body.retro-forum .custom-video-wrap video,
  body.retro-forum.mobile-hud-active .post-img,
  body.retro-forum.mobile-hud-active .post-video,
  body.retro-forum.mobile-hud-active .custom-video-wrap video {
    max-height: 330px !important;
  }

  body.retro-forum .post-sticker,
  body.retro-forum.mobile-hud-active .post-sticker {
    max-width: 132px !important;
    max-height: 132px !important;
    margin: 4px 8px 8px !important;
  }
}

@media (max-width: 380px) {
  body.retro-forum .post-card,
  body.retro-forum.mobile-hud-active .post-card {
    padding: 7px 6px !important;
  }

  body.retro-forum .post-header,
  body.retro-forum.mobile-hud-active .post-header {
    padding: 7px 6px 5px !important;
  }

  body.retro-forum .post-img,
  body.retro-forum .post-video,
  body.retro-forum .custom-video-wrap video,
  body.retro-forum.mobile-hud-active .post-img,
  body.retro-forum.mobile-hud-active .post-video,
  body.retro-forum.mobile-hud-active .custom-video-wrap video {
    max-height: 280px !important;
  }
}

/* Mobile: el menu flotante pasa al header */
@media (max-width: 900px) {
  body.retro-forum.mobile-hud-active .navbar {
    min-height: clamp(62px, 15vw, 76px) !important;
    padding-right: calc(clamp(42px, 12vw, 52px) + max(16px, env(safe-area-inset-right, 0px))) !important;
  }

  body.retro-forum.mobile-hud-active .mobile-hud-nav {
    position: fixed !important;
    top: calc(12px + env(safe-area-inset-top, 0px)) !important;
    bottom: auto !important;
    left: clamp(88px, 24vw, 124px) !important;
    right: calc(clamp(42px, 12vw, 52px) + max(16px, env(safe-area-inset-right, 0px))) !important;
    width: auto !important;
    max-width: none !important;
    height: clamp(40px, 11vw, 50px) !important;
    padding: 4px !important;
    gap: clamp(2px, 1.4vw, 6px) !important;
    border-radius: 16px !important;
    z-index: 244 !important;
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
    background: rgba(210, 234, 250, .92) !important;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .2), 0 0 0 1px rgba(30, 150, 255, .28) inset !important;
  }

  body.retro-forum.mobile-hud-active .mobile-hud-nav__item,
  body.retro-forum.mobile-hud-active .mobile-hud-slot > #notif-bell-wrap > .nav-btn {
    flex: 1 1 0 !important;
    width: auto !important;
    min-height: 0 !important;
    height: 100% !important;
    padding: 4px 3px !important;
    gap: 1px !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #273a48 !important;
  }

  body.retro-forum.mobile-hud-active .mobile-hud-nav__item.active,
  body.retro-forum.mobile-hud-active .mobile-hud-slot > #notif-bell-wrap > .nav-btn.active {
    background: rgba(255, 255, 255, .48) !important;
    color: #101b24 !important;
  }

  body.retro-forum.mobile-hud-active .mobile-hud-nav__icon {
    width: clamp(16px, 4.8vw, 22px) !important;
    height: clamp(16px, 4.8vw, 22px) !important;
  }

  body.retro-forum.mobile-hud-active .mobile-hud-nav__icon svg,
  body.retro-forum.mobile-hud-active .mobile-hud-slot > #notif-bell-wrap > .nav-btn svg {
    width: clamp(16px, 4.8vw, 22px) !important;
    height: clamp(16px, 4.8vw, 22px) !important;
  }

  body.retro-forum.mobile-hud-active .mobile-hud-nav__label,
  body.retro-forum.mobile-hud-active .mobile-hud-slot > #notif-bell-wrap > .nav-btn > span:not(#notif-count-badge) {
    max-width: 100% !important;
    font-size: clamp(.44rem, 1.7vw, .58rem) !important;
    letter-spacing: 0 !important;
    line-height: 1 !important;
  }

  body.retro-forum.mobile-hud-active #mobile-hud-chat .mobile-hud-chat-badge,
  body.retro-forum.mobile-hud-active .mobile-hud-slot > #notif-bell-wrap #notif-count-badge {
    top: -3px !important;
    right: -3px !important;
    min-width: 16px !important;
    height: 16px !important;
    font-size: .55rem !important;
  }

  body.retro-forum.mobile-hud-active.is-guest #mobile-hud-alert-guest {
    display: flex !important;
  }

  body.retro-forum.mobile-hud-active.is-user #mobile-hud-alert-guest {
    display: none !important;
  }

  body.retro-forum.mobile-hud-active .mobile-hud-slot {
    flex: 1 1 0 !important;
    min-width: 0 !important;
  }

  body.retro-forum.mobile-hud-active .mobile-hud-slot > #notif-bell-wrap {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
  }

  body.retro-forum.mobile-hud-active .mobile-hud-fab {
    display: none !important;
  }

  body.retro-forum.mobile-drawer-open .mobile-hud-nav {
    opacity: 0 !important;
    pointer-events: none !important;
    filter: blur(8px) !important;
  }
}

@media (max-width: 430px) {
  body.retro-forum.mobile-hud-active .mobile-hud-nav {
    left: clamp(82px, 23vw, 102px) !important;
    right: calc(clamp(42px, 12vw, 52px) + max(12px, env(safe-area-inset-right, 0px))) !important;
  }

  body.retro-forum.mobile-hud-active .mobile-hud-nav__label,
  body.retro-forum.mobile-hud-active .mobile-hud-slot > #notif-bell-wrap > .nav-btn > span:not(#notif-count-badge) {
    display: none !important;
  }

}

/* Mobile header HUD final fit */
@media (max-width: 900px) {
  body.retro-forum.mobile-hud-active .navbar {
    min-height: clamp(70px, 18vw, 82px) !important;
    padding-right: max(8px, env(safe-area-inset-right, 0px)) !important;
    padding-left: max(10px, env(safe-area-inset-left, 0px)) !important;
  }

  body.retro-forum.mobile-hud-active .logo,
  body.retro-forum.mobile-hud-active .navbar .logo {
    flex: 0 0 clamp(70px, 21vw, 88px) !important;
    min-width: clamp(70px, 21vw, 88px) !important;
    max-width: clamp(70px, 21vw, 88px) !important;
    overflow: hidden !important;
  }

  body.retro-forum.mobile-hud-active .mobile-hud-nav {
    top: calc(10px + env(safe-area-inset-top, 0px)) !important;
    left: calc(max(10px, env(safe-area-inset-left, 0px)) + clamp(74px, 22vw, 92px)) !important;
    right: max(8px, env(safe-area-inset-right, 0px)) !important;
    height: clamp(50px, 13vw, 58px) !important;
    padding: 4px 5px !important;
    gap: clamp(1px, .8vw, 4px) !important;
    border-radius: 17px !important;
    align-items: stretch !important;
    justify-content: center !important;
  }

  body.retro-forum.mobile-hud-active .mobile-hud-nav__item,
  body.retro-forum.mobile-hud-active .mobile-hud-slot > #notif-bell-wrap > .nav-btn {
    min-width: 0 !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
    padding: 3px 1px !important;
  }

  body.retro-forum.mobile-hud-active .mobile-hud-nav__icon,
  body.retro-forum.mobile-hud-active .mobile-hud-slot > #notif-bell-wrap > .nav-btn svg {
    flex: 0 0 auto !important;
  }

  body.retro-forum.mobile-hud-active .mobile-hud-nav__label,
  body.retro-forum.mobile-hud-active .mobile-hud-slot > #notif-bell-wrap > .nav-btn > span:not(#notif-count-badge) {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-align: center !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-family: var(--font-h) !important;
    font-size: clamp(.48rem, 1.9vw, .62rem) !important;
    font-weight: 800 !important;
    line-height: .95 !important;
    letter-spacing: 0 !important;
  }

  body.retro-forum.mobile-hud-active #mobile-hud-chat .mobile-hud-chat-badge,
  body.retro-forum.mobile-hud-active .mobile-hud-slot > #notif-bell-wrap #notif-count-badge {
    top: -2px !important;
    right: -2px !important;
    z-index: 3 !important;
  }

  body.retro-forum.mobile-hud-active #notif-panel,
  body.retro-forum.hud-dock-enabled #notif-panel {
    top: calc(76px + env(safe-area-inset-top, 0px)) !important;
    left: max(10px, env(safe-area-inset-left, 0px)) !important;
    right: max(10px, env(safe-area-inset-right, 0px)) !important;
    bottom: auto !important;
    width: auto !important;
    max-width: none !important;
    max-height: calc(100dvh - 92px - env(safe-area-inset-bottom, 0px)) !important;
    z-index: 360 !important;
  }
}

@media (max-width: 430px) {
  body.retro-forum.mobile-hud-active .mobile-hud-nav {
    left: calc(max(8px, env(safe-area-inset-left, 0px)) + clamp(70px, 20vw, 84px)) !important;
    right: max(6px, env(safe-area-inset-right, 0px)) !important;
    gap: 1px !important;
  }

  body.retro-forum.mobile-hud-active .mobile-hud-nav__icon svg,
  body.retro-forum.mobile-hud-active .mobile-hud-slot > #notif-bell-wrap > .nav-btn svg {
    width: clamp(15px, 4.5vw, 19px) !important;
    height: clamp(15px, 4.5vw, 19px) !important;
  }

  body.retro-forum.mobile-hud-active .mobile-hud-nav__label,
  body.retro-forum.mobile-hud-active .mobile-hud-slot > #notif-bell-wrap > .nav-btn > span:not(#notif-count-badge) {
    display: block !important;
    font-size: clamp(.43rem, 1.75vw, .54rem) !important;
  }
}

@media (max-width: 360px) {
  body.retro-forum.mobile-hud-active .mobile-hud-nav__label,
  body.retro-forum.mobile-hud-active .mobile-hud-slot > #notif-bell-wrap > .nav-btn > span:not(#notif-count-badge) {
    font-size: .4rem !important;
  }
}

/* Mobile drawer: avoid clipped bottom actions */
@media (max-width: 900px) {
  body.retro-forum.mobile-hud-active .mobile-hud-drawer {
    top: 0 !important;
    bottom: 0 !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    width: min(88vw, 316px) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch;
    padding: calc(10px + env(safe-area-inset-top, 0px)) 12px calc(16px + env(safe-area-inset-bottom, 0px)) !important;
    box-sizing: border-box !important;
  }

  body.retro-forum.mobile-hud-active .mobile-hud-drawer__head,
  body.retro-forum.mobile-hud-active .mobile-hud-drawer__profile,
  body.retro-forum.mobile-hud-active .mobile-hud-drawer__group {
    flex: 0 0 auto !important;
  }

  body.retro-forum.mobile-hud-active .mobile-hud-drawer__group--secondary {
    margin-top: 8px !important;
    padding-top: 8px !important;
  }

  body.retro-forum.mobile-hud-active .mobile-hud-drawer__action {
    min-height: clamp(48px, 11.5vh, 54px) !important;
    padding: 8px 10px !important;
  }
}

@media (max-height: 650px) and (max-width: 900px) {
  body.retro-forum.mobile-hud-active .mobile-hud-drawer {
    padding-top: calc(6px + env(safe-area-inset-top, 0px)) !important;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important;
  }

  body.retro-forum.mobile-hud-active .mobile-hud-drawer__profile {
    padding: 8px !important;
    margin-bottom: 7px !important;
  }

  body.retro-forum.mobile-hud-active .mobile-hud-drawer__group {
    gap: 6px !important;
  }

  body.retro-forum.mobile-hud-active .mobile-hud-drawer__action {
    min-height: 46px !important;
    padding: 7px 9px !important;
  }

  body.retro-forum.mobile-hud-active .mobile-hud-drawer__icon {
    width: 29px !important;
    height: 29px !important;
  }

  body.retro-forum.mobile-hud-active .mobile-hud-drawer__label {
    font-size: .8rem !important;
  }
}

@media (max-width: 640px) {
  body.retro-forum .post-time,
  body.retro-forum.mobile-hud-active .post-time {
    font-size: clamp(.46rem, 1.7vw, .52rem) !important;
    line-height: 1.08 !important;
  }

  body.retro-forum.mobile-hud-active .post-reactions .comment-btn {
    flex: 0 0 32px !important;
    width: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    gap: 0 !important;
  }

  body.retro-forum.mobile-hud-active .post-reactions .comment-btn > span:nth-child(2),
  body.retro-forum.mobile-hud-active .post-reactions .comment-btn > [id^="ccount-"] {
    display: none !important;
  }

  body.retro-forum.mobile-hud-active .post-reactions .comment-btn-icon {
    margin: 0 !important;
  }

  body.retro-forum.mobile-hud-active .post-tools {
    right: 8px !important;
  }

  body.retro-forum.mobile-hud-active .post-tools__menu {
    right: 0 !important;
    left: auto !important;
    transform: none !important;
    min-width: 132px !important;
    max-width: calc(100vw - 36px) !important;
    z-index: 20 !important;
  }
}

/* ForoMuk visual refresh: midnight material skin.
   Mantiene la estructura y la logica existente; solo reforma la capa visual. */
body.retro-forum {
  --fm-bg: #11131b;
  --fm-bg-lowest: #0c0e16;
  --fm-surface: #191b23;
  --fm-surface-2: #1d1f28;
  --fm-surface-3: #282a32;
  --fm-surface-4: #33343d;
  --fm-text: #e1e1ed;
  --fm-muted: #c7c4d8;
  --fm-outline: #464555;
  --fm-outline-strong: #918fa1;
  --fm-primary: #c3c0ff;
  --fm-primary-strong: #4f46e5;
  --fm-primary-soft: rgba(195, 192, 255, .14);
  --fm-secondary: #4edea3;
  --fm-error: #ffb4ab;
  --fm-danger: #ff5b6f;
  --font-h: "Inter", "Plus Jakarta Sans", system-ui, sans-serif;
  --font-m: "Inter", system-ui, sans-serif;
  background: var(--fm-bg) !important;
  color: var(--fm-text) !important;
  font-family: var(--font-h) !important;
}

body.retro-forum #app {
  background:
    radial-gradient(circle at 24% 0%, rgba(79, 70, 229, .14), transparent 34%),
    radial-gradient(circle at 82% 10%, rgba(78, 222, 163, .08), transparent 30%),
    var(--fm-bg) !important;
}

body.retro-forum .navbar {
  background: rgba(17, 19, 27, .82) !important;
  border-bottom: 1px solid var(--fm-outline) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .22) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
}

body.retro-forum .logo,
body.retro-forum .navbar .logo {
  color: var(--fm-primary) !important;
  letter-spacing: 0 !important;
  text-shadow: none !important;
}

@media (min-width: 901px) {
  body.retro-forum .mobile-hud-drawer {
    background: rgba(17, 19, 27, .92) !important;
    border-right: 1px solid var(--fm-outline) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    backdrop-filter: blur(22px) !important;
    -webkit-backdrop-filter: blur(22px) !important;
  }

  body.retro-forum .mobile-hud-drawer__profile,
  body.retro-forum .mobile-hud-drawer__action {
    background: transparent !important;
    border-color: transparent !important;
    border-radius: 8px !important;
    box-shadow: none !important;
  }

  body.retro-forum .mobile-hud-drawer__action {
    color: var(--fm-muted) !important;
  }

  body.retro-forum .mobile-hud-drawer__action:hover,
  body.retro-forum .mobile-hud-drawer__action.active {
    color: var(--fm-text) !important;
    background: rgba(51, 52, 61, .55) !important;
    border-left: 4px solid var(--fm-primary) !important;
    transform: translateX(2px) !important;
  }

  body.retro-forum .mobile-hud-drawer__icon {
    color: var(--fm-primary) !important;
    background: var(--fm-primary-soft) !important;
    border-color: rgba(195, 192, 255, .22) !important;
    border-radius: 8px !important;
    box-shadow: none !important;
  }

  body.retro-forum .mobile-hud-drawer__label {
    color: inherit !important;
    font-family: var(--font-h) !important;
    font-size: .92rem !important;
    letter-spacing: 0 !important;
  }

  body.retro-forum .mobile-hud-drawer__hint {
    color: rgba(199, 196, 216, .62) !important;
    font-family: var(--font-h) !important;
    letter-spacing: .05em !important;
  }
}

body.retro-forum #page-wall > .flex.ic.jb.mb2,
body.retro-forum #page-user-wall > .flex.ic.jb.mb2 {
  border-bottom: 1px solid var(--fm-outline) !important;
  padding-bottom: 14px !important;
  margin-bottom: 16px !important;
}

body.retro-forum .panel-title {
  color: var(--fm-primary) !important;
  font-family: var(--font-h) !important;
  letter-spacing: .12em !important;
  text-shadow: none !important;
}

body.retro-forum .btn,
body.retro-forum button.btn,
body.retro-forum .follow-btn,
body.retro-forum .post-follow-btn {
  border-radius: 8px !important;
  font-family: var(--font-h) !important;
  letter-spacing: 0 !important;
}

body.retro-forum .btn-primary,
body.retro-forum .new-post-toggle,
body.retro-forum .post-follow-btn,
body.retro-forum .follow-btn:not(.is-following) {
  background: var(--fm-primary) !important;
  border-color: rgba(195, 192, 255, .46) !important;
  color: #0f0069 !important;
  box-shadow: 0 12px 24px rgba(79, 70, 229, .22) !important;
}

body.retro-forum .post-card,
body.retro-forum .new-post-card,
body.retro-forum .panel {
  background: var(--fm-surface) !important;
  color: var(--fm-text) !important;
  border: 1px solid var(--fm-outline) !important;
  border-radius: 8px !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .22) !important;
}

body.retro-forum .post-card::before,
body.retro-forum .new-post-card::before {
  display: none !important;
}

body.retro-forum .post-header,
body.retro-forum .new-post-card__header {
  background: transparent !important;
  border: 0 !important;
}

body.retro-forum .post-avatar,
body.retro-forum .av-wrap,
body.retro-forum .new-post-card__avatar {
  border-radius: 8px !important;
  border-color: rgba(195, 192, 255, .28) !important;
  box-shadow: none !important;
}

body.retro-forum .post-username,
body.retro-forum .new-post-card__kicker {
  color: var(--fm-primary) !important;
  font-family: var(--font-h) !important;
  font-weight: 800 !important;
  letter-spacing: .05em !important;
}

body.retro-forum .post-body,
body.retro-forum .post-text,
body.retro-forum .post-card p,
body.retro-forum .new-post-card textarea {
  color: var(--fm-text) !important;
  font-family: var(--font-h) !important;
}

body.retro-forum .post-time,
body.retro-forum .post-time--footer {
  color: rgba(199, 196, 216, .72) !important;
  font-family: var(--font-h) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

body.retro-forum .post-img,
body.retro-forum .post-video,
body.retro-forum .custom-video-wrap,
body.retro-forum .instagram-embed-wrap,
body.retro-forum .link-preview {
  border-radius: 8px !important;
  border-color: rgba(70, 69, 85, .74) !important;
}

body.retro-forum .post-reactions {
  background: transparent !important;
  border-top: 1px solid rgba(70, 69, 85, .52) !important;
  border-left: 0 !important;
  border-right: 0 !important;
  border-bottom: 0 !important;
  border-radius: 0 !important;
  padding: 12px 0 !important;
}

body.retro-forum .post-reactions button {
  color: var(--fm-muted) !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.retro-forum .post-reactions button:hover,
body.retro-forum .post-reactions button.active,
body.retro-forum .post-reactions button.mine {
  color: var(--fm-primary) !important;
  background: rgba(195, 192, 255, .08) !important;
}

body.retro-forum .report-btn,
body.retro-forum .report-btn--red {
  color: var(--fm-error) !important;
}

body.retro-forum .new-post-card input,
body.retro-forum .new-post-card textarea,
body.retro-forum .np-category-input,
body.retro-forum .np-media-url {
  background: var(--fm-bg-lowest) !important;
  border: 1px solid rgba(70, 69, 85, .72) !important;
  border-radius: 8px !important;
  color: var(--fm-text) !important;
}

body.retro-forum .np-category-row,
body.retro-forum .np-category-chip {
  background: rgba(12, 14, 22, .44) !important;
  border-color: rgba(70, 69, 85, .72) !important;
  border-radius: 8px !important;
}

body.retro-forum #notif-panel,
body.retro-forum.hud-dock-enabled #notif-panel {
  background: var(--fm-surface-2) !important;
  border: 1px solid var(--fm-outline) !important;
  border-radius: 12px !important;
  box-shadow: 0 26px 70px rgba(0, 0, 0, .48) !important;
  color: var(--fm-text) !important;
}

body.retro-forum #notif-panel .notif-item {
  background: transparent !important;
  border-bottom: 1px solid rgba(70, 69, 85, .35) !important;
}

body.retro-forum #notif-panel .notif-item:hover,
body.retro-forum #notif-panel .notif-item.unread {
  background: rgba(195, 192, 255, .08) !important;
}

body.retro-forum .chat-col,
body.retro-forum .chat-col .msn-panel,
body.retro-forum .chat-col .msn-chat-shell {
  background: var(--fm-surface) !important;
  color: var(--fm-text) !important;
  border-color: var(--fm-outline) !important;
  border-radius: 12px !important;
  box-shadow: 0 22px 54px rgba(0, 0, 0, .28) !important;
}

body.retro-forum .msn-self,
body.retro-forum .msn-folder,
body.retro-forum .msn-folder-head,
body.retro-forum .msn-contact,
body.retro-forum .msn-friends-toolbar,
body.retro-forum .msn-search-row {
  background: var(--fm-surface-2) !important;
  border-color: rgba(70, 69, 85, .7) !important;
  border-radius: 8px !important;
  color: var(--fm-text) !important;
  box-shadow: none !important;
}

body.retro-forum .msn-self-name,
body.retro-forum .msn-folder-title,
body.retro-forum .msn-contact-name,
body.retro-forum .msn-modern-title {
  color: var(--fm-text) !important;
}

body.retro-forum .msn-self-status,
body.retro-forum .msn-contact-sub,
body.retro-forum .msn-folder-sub {
  color: rgba(199, 196, 216, .74) !important;
}

body.retro-forum .msn-contact-presence,
body.retro-forum .msn-self-status-dot[data-status="connected"] {
  background: var(--fm-secondary) !important;
}

body.retro-forum .msn-dm-messages,
body.retro-forum .msn-chat-shell .msn-dm-messages {
  background:
    radial-gradient(circle at 18% 0%, rgba(195, 192, 255, .1), transparent 32%),
    var(--fm-surface-3) !important;
}

body.retro-forum .msn-chat-shell .dm-bubble {
  background: #e2dfff !important;
  color: #1e3a8a !important;
  border-color: rgba(195, 192, 255, .74) !important;
  border-radius: 12px !important;
}

body.retro-forum .msn-chat-shell .dm-msg-mine .dm-bubble {
  background: #fef08a !important;
  color: #1e3a8a !important;
  border-color: rgba(254, 240, 138, .72) !important;
}

body.retro-forum .dm-audio-player {
  background: rgba(12, 14, 22, .5) !important;
  border-color: rgba(70, 69, 85, .72) !important;
  border-radius: 8px !important;
}

body.retro-forum .dm-audio-speed {
  background: var(--fm-surface-4) !important;
  color: var(--fm-text) !important;
  border: 1px solid rgba(70, 69, 85, .8) !important;
}

@media (max-width: 900px) {
  body.retro-forum.mobile-hud-active .mobile-hud-nav {
    background: rgba(29, 31, 40, .94) !important;
    border: 1px solid var(--fm-outline) !important;
    border-radius: 14px !important;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .34) !important;
  }

  body.retro-forum.mobile-hud-active .mobile-hud-nav__item,
  body.retro-forum.mobile-hud-active .mobile-hud-slot > #notif-bell-wrap > .nav-btn {
    color: var(--fm-muted) !important;
    border-radius: 8px !important;
  }

  body.retro-forum.mobile-hud-active .mobile-hud-nav__item.active,
  body.retro-forum.mobile-hud-active .mobile-hud-slot > #notif-bell-wrap > .nav-btn.active {
    background: var(--fm-primary-soft) !important;
    color: var(--fm-primary) !important;
  }

  body.retro-forum .post-card,
  body.retro-forum .new-post-card {
    border-radius: 8px !important;
  }
}

/* Preview QR parity: layout principal como la vista HTML enviada. */
@media (min-width: 1181px) {
  body.retro-forum .navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 64px !important;
    min-height: 64px !important;
    padding: 0 24px !important;
    z-index: 50 !important;
  }

  body.retro-forum .navbar .logo {
    width: 280px !important;
    max-width: 280px !important;
    height: 64px !important;
    display: flex !important;
    align-items: center !important;
    font-size: 1.35rem !important;
    font-weight: 800 !important;
  }

  body.retro-forum .mobile-hud-drawer {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 280px !important;
    height: 100dvh !important;
    padding: 80px 0 32px !important;
    z-index: 40 !important;
    overflow-y: auto !important;
  }

  body.retro-forum .mobile-hud-drawer__profile,
  body.retro-forum .mobile-hud-drawer__group {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  body.retro-forum .mobile-hud-drawer__profile {
    margin: 0 24px 18px !important;
    padding: 12px !important;
    background: var(--fm-surface-2) !important;
    border: 1px solid rgba(70, 69, 85, .72) !important;
    border-radius: 12px !important;
  }

  body.retro-forum .mobile-hud-drawer__group {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
  }

  body.retro-forum .mobile-hud-drawer__action {
    min-height: 56px !important;
    padding: 0 24px !important;
    border-radius: 0 !important;
    border: 0 !important;
    border-left: 4px solid transparent !important;
    grid-template-columns: 28px minmax(0, 1fr) !important;
    gap: 16px !important;
  }

  body.retro-forum .mobile-hud-drawer__action:hover,
  body.retro-forum .mobile-hud-drawer__action.active {
    border-left-color: var(--fm-primary) !important;
    background: rgba(195, 192, 255, .1) !important;
    transform: translateX(1px) !important;
  }

  body.retro-forum .mobile-hud-drawer__icon {
    width: 28px !important;
    height: 28px !important;
    background: transparent !important;
    border: 0 !important;
  }

  body.retro-forum .mobile-hud-drawer__label {
    font-size: 1rem !important;
    line-height: 1 !important;
  }

  body.retro-forum .mobile-hud-drawer__hint {
    font-size: .62rem !important;
    text-transform: uppercase !important;
  }

  body.retro-forum .app-layout {
    display: block !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
    margin: 0 !important;
    padding: 64px 350px 0 280px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  body.retro-forum .main-col {
    width: 100% !important;
    height: calc(100dvh - 64px) !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 24px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  body.retro-forum #page-wall,
  body.retro-forum #page-user-wall {
    width: min(720px, 100%) !important;
    max-width: 720px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  body.retro-forum #page-marketplace,
  body.retro-forum #page-profile,
  body.retro-forum #page-admin {
    width: min(960px, 100%) !important;
    max-width: 960px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  body.retro-forum .chat-col {
    position: fixed !important;
    top: 64px !important;
    right: 0 !important;
    bottom: 0 !important;
    left: auto !important;
    width: 350px !important;
    min-width: 350px !important;
    max-width: 350px !important;
    height: calc(100dvh - 64px) !important;
    max-height: calc(100dvh - 64px) !important;
    border-radius: 0 !important;
    border-top: 0 !important;
    border-right: 0 !important;
    border-bottom: 0 !important;
    z-index: 40 !important;
  }
}

/* Post/composer/report: acercarlos al preview exacto. */
body.retro-forum .feed-header {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 0 12px !important;
}

body.retro-forum .divider {
  background: rgba(70, 69, 85, .72) !important;
  height: 1px !important;
  margin: 0 0 16px !important;
}

body.retro-forum .new-post-card {
  padding: 12px !important;
  display: none;
}

body.retro-forum .new-post-card[style*="block"] {
  position: fixed !important;
  inset: 0 !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: rgba(0, 0, 0, .62) !important;
  z-index: 10000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: none !important;
}

body.retro-forum .new-post-card[style*="block"] .new-post-card__header,
body.retro-forum .new-post-card[style*="block"] .new-post-card__actions {
  width: min(672px, calc(100vw - 32px)) !important;
  box-sizing: border-box !important;
  background: var(--fm-surface-2) !important;
}

body.retro-forum .new-post-card[style*="block"] .new-post-card__header {
  padding: 24px 24px 12px !important;
  border: 1px solid var(--fm-outline) !important;
  border-bottom: 0 !important;
  border-radius: 8px 8px 0 0 !important;
}

body.retro-forum .new-post-card[style*="block"] .new-post-card__actions {
  padding: 12px 24px 24px !important;
  border: 1px solid var(--fm-outline) !important;
  border-top: 0 !important;
  border-radius: 0 0 8px 8px !important;
}

body.retro-forum .post-card {
  overflow: hidden !important;
  margin-bottom: 24px !important;
}

body.retro-forum .post-face-front {
  background: var(--fm-surface) !important;
}

body.retro-forum .post-header {
  min-height: 84px !important;
  padding: 24px 24px 12px !important;
}

body.retro-forum .post-body {
  padding: 0 24px 16px !important;
  font-size: 1rem !important;
  line-height: 1.6 !important;
}

body.retro-forum .post-img,
body.retro-forum .post-video,
body.retro-forum .custom-video-wrap video,
body.retro-forum .instagram-embed-wrap,
body.retro-forum .link-preview {
  margin-left: 24px !important;
  margin-right: 24px !important;
  width: calc(100% - 48px) !important;
  max-width: calc(100% - 48px) !important;
}

body.retro-forum .post-reactions {
  margin: 0 24px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
}

body.retro-forum .post-time--footer {
  padding: 0 24px 18px !important;
  text-align: left !important;
}

body.retro-forum .modal-report-shell,
body.retro-forum .report-modal {
  background: var(--fm-surface-2) !important;
  border: 1px solid var(--fm-outline) !important;
  border-radius: 8px !important;
  color: var(--fm-text) !important;
}

body.retro-forum .report-modal-header {
  border-bottom: 1px solid rgba(70, 69, 85, .45) !important;
}

body.retro-forum .report-motivo-opt,
body.retro-forum #report-desc {
  background: var(--fm-bg-lowest) !important;
  border: 1px solid rgba(70, 69, 85, .72) !important;
  border-radius: 8px !important;
  color: var(--fm-text) !important;
}

/* Reforma visual Forumuk 2026: adapta la plantilla nueva a la app real. */
body.retro-forum {
  --font-h: "Inter", "Plus Jakarta Sans", system-ui, sans-serif !important;
  --font-b: "Inter", "Plus Jakarta Sans", system-ui, sans-serif !important;
}

body.retro-forum .fm-top-search,
body.retro-forum .fm-top-actions {
  display: none;
}

body.retro-forum .fm-top-search {
  align-items: center;
  gap: 12px;
  width: min(268px, 25vw);
  height: 40px;
  padding: 0 14px;
  background: var(--fm-bg-lowest);
  border: 1px solid rgba(70, 69, 85, .28);
  border-radius: 8px;
}

body.retro-forum .fm-top-search__icon,
body.retro-forum .fm-top-action {
  color: rgba(225, 225, 237, .74);
}

body.retro-forum .fm-top-search svg,
body.retro-forum .fm-top-action svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

body.retro-forum .fm-top-search input {
  width: 100%;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--fm-text);
  font: 500 .875rem/1.2 var(--font-h);
}

body.retro-forum .fm-top-search input::placeholder {
  color: rgba(199, 196, 216, .55);
}

body.retro-forum .fm-top-actions {
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

body.retro-forum .fm-top-action,
body.retro-forum .fm-top-avatar {
  width: 28px;
  height: 28px;
  border: 0;
  padding: 0;
  display: grid;
  place-items: center;
  background: transparent;
  cursor: pointer;
  transition: color .16s ease, transform .16s ease, opacity .16s ease;
}

body.retro-forum .fm-top-action:hover,
body.retro-forum .fm-top-avatar:hover {
  color: var(--fm-primary);
  transform: translateY(-1px);
}

body.retro-forum .fm-top-avatar {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(195, 192, 255, .35);
  border-radius: 50%;
  overflow: hidden;
}

body.retro-forum .fm-top-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 1181px) {
  body.retro-forum .navbar--minimal {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 32px !important;
    background: rgba(17, 19, 27, .96) !important;
    border-bottom: 1px solid var(--fm-outline) !important;
    box-shadow: none !important;
  }

  body.retro-forum .navbar--minimal .logo {
    width: auto !important;
    min-width: 116px !important;
    margin: 0 8px 0 280px !important;
    color: var(--fm-primary) !important;
    font-family: var(--font-h) !important;
    font-size: 1.55rem !important;
    font-weight: 800 !important;
    letter-spacing: -.02em !important;
  }

  body.retro-forum .site-header-logo {
    width: auto !important;
    max-width: 116px !important;
    height: 32px !important;
    object-fit: contain !important;
  }

  body.retro-forum .fm-top-search,
  body.retro-forum .fm-top-actions {
    display: flex !important;
  }

  body.retro-forum .hud-mobile-menu,
  body.retro-forum .mobile-hud-drawer__head,
  body.retro-forum .mobile-hud-drawer__profile,
  body.retro-forum #mobile-hud-fab,
  body.retro-forum #mobile-hud-nav {
    display: none !important;
  }

  body.retro-forum .mobile-hud-drawer {
    display: flex !important;
    flex-direction: column !important;
    background: rgba(17, 19, 27, .98) !important;
    border-right: 1px solid var(--fm-outline) !important;
  }

  body.retro-forum .mobile-hud-drawer__group {
    padding-top: 16px !important;
  }

  body.retro-forum .mobile-hud-drawer__group--secondary {
    margin-top: auto !important;
    padding-bottom: 54px !important;
  }

  body.retro-forum .mobile-hud-drawer__action {
    height: 66px !important;
    min-height: 66px !important;
    padding: 0 28px !important;
    color: rgba(225, 225, 237, .78) !important;
    background: transparent !important;
  }

  body.retro-forum .mobile-hud-drawer__action:hover,
  body.retro-forum .mobile-hud-drawer__action.active {
    background: rgba(195, 192, 255, .10) !important;
    color: var(--fm-text) !important;
    border-left-color: var(--fm-primary) !important;
  }

  body.retro-forum .mobile-hud-drawer__icon svg {
    width: 24px !important;
    height: 24px !important;
  }

  body.retro-forum .mobile-hud-drawer__label {
    font-size: 1rem !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
  }

  body.retro-forum .mobile-hud-drawer__hint {
    color: rgba(199, 196, 216, .58) !important;
    font-size: .62rem !important;
    font-weight: 800 !important;
    letter-spacing: .04em !important;
  }

  body.retro-forum #page-wall,
  body.retro-forum #page-user-wall {
    width: min(720px, 100%) !important;
    max-width: 720px !important;
  }

  body.retro-forum .feed-header {
    min-height: 70px !important;
    margin: 0 0 24px !important;
    padding: 12px 12px 12px 20px !important;
    background: var(--fm-surface) !important;
    border: 1px solid rgba(70, 69, 85, .65) !important;
    border-radius: 8px !important;
    box-shadow: none !important;
  }

  body.retro-forum .feed-header-left {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    color: var(--fm-text) !important;
  }

  body.retro-forum .feed-header-left::before {
    content: "";
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(195, 192, 255, .12);
    border: 1px solid rgba(195, 192, 255, .12);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23c3c0ff' d='M4 17.5V20h2.5L17.06 9.44l-2.5-2.5L4 17.5zM18.72 7.78a.75.75 0 0 0 0-1.06l-1.44-1.44a.75.75 0 0 0-1.06 0l-1.13 1.13 2.5 2.5 1.13-1.13z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 22px;
  }

  body.retro-forum .feed-header .panel-title {
    font-size: 0 !important;
    margin: 0 !important;
  }

  body.retro-forum .feed-header .panel-title::after {
    content: "¿Que queres publicar?";
    color: var(--fm-text);
    font: 600 1rem/1.2 var(--font-h);
    letter-spacing: 0;
    text-transform: none;
  }

  body.retro-forum #feed-online-count,
  body.retro-forum .divider {
    display: none !important;
  }

  body.retro-forum #btn-nuevo-post,
  body.retro-forum #btn-guest-post {
    min-width: 144px !important;
    height: 42px !important;
    border-radius: 8px !important;
    background: var(--fm-primary) !important;
    border-color: transparent !important;
    color: #0f0069 !important;
    font: 800 .78rem/1 var(--font-h) !important;
    text-transform: uppercase !important;
    box-shadow: 0 10px 24px rgba(195, 192, 255, .18) !important;
  }

  body.retro-forum .post-card {
    background: var(--fm-surface) !important;
    border: 1px solid rgba(70, 69, 85, .78) !important;
    border-radius: 8px !important;
    box-shadow: none !important;
  }

  body.retro-forum .post-header {
    grid-template-columns: 52px minmax(0, 1fr) auto !important;
    align-items: center !important;
    min-height: 72px !important;
    padding: 24px 24px 8px !important;
  }

  body.retro-forum .post-meta {
    justify-content: center !important;
  }

  body.retro-forum .post-username {
    color: var(--fm-text) !important;
    font-size: .96rem !important;
    letter-spacing: 0 !important;
  }

  body.retro-forum .follow-btn {
    color: var(--fm-primary) !important;
    border-color: rgba(195, 192, 255, .35) !important;
    background: transparent !important;
    border-radius: 999px !important;
  }

  body.retro-forum .post-reactions {
    min-height: 72px !important;
    margin: 0 !important;
    padding: 14px 24px !important;
    border-top: 1px solid rgba(70, 69, 85, .42) !important;
    border-radius: 0 !important;
    background: transparent !important;
  }

  body.retro-forum .post-time--footer {
    margin: 0 !important;
    padding: 0 24px 18px !important;
    text-align: left !important;
  }

  body.retro-forum .chat-col {
    padding: 16px 24px 24px !important;
    background: var(--fm-bg) !important;
    border-left: 1px solid var(--fm-outline) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  body.retro-forum .chat-col .msn-panel {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  body.retro-forum .msn-self,
  body.retro-forum .msn-folder {
    background: var(--fm-surface) !important;
    border: 1px solid rgba(70, 69, 85, .78) !important;
    border-radius: 12px !important;
    box-shadow: none !important;
  }

  body.retro-forum .msn-self {
    min-height: 84px !important;
    padding: 14px 16px !important;
  }

  body.retro-forum .msn-search-row input {
    height: 48px !important;
    background: var(--fm-surface) !important;
    border: 1px solid rgba(70, 69, 85, .72) !important;
    border-radius: 999px !important;
    color: var(--fm-text) !important;
    padding: 0 24px !important;
  }

  body.retro-forum .msn-section-title,
  body.retro-forum .msn-section-head {
    color: var(--fm-primary) !important;
    letter-spacing: .12em !important;
    text-transform: uppercase !important;
  }

  body.retro-forum .msn-folder-item {
    background: transparent !important;
    border-color: transparent !important;
    border-radius: 8px !important;
  }

  body.retro-forum .msn-folder-item:hover {
    background: rgba(51, 52, 61, .58) !important;
  }

  body.retro-forum #notif-bell-wrap .nav-btn {
    width: 28px !important;
    height: 28px !important;
    background: transparent !important;
    border: 0 !important;
    color: rgba(225, 225, 237, .74) !important;
    box-shadow: none !important;
  }

  body.retro-forum #notif-bell-wrap .nav-btn:hover {
    color: var(--fm-primary) !important;
  }

  body.retro-forum #notif-panel,
  body.retro-forum.hud-dock-enabled #notif-panel {
    position: fixed !important;
    top: 72px !important;
    right: 316px !important;
    width: 300px !important;
    max-height: 520px !important;
    background: var(--fm-surface-2) !important;
    border: 1px solid var(--fm-outline) !important;
    border-radius: 8px !important;
    color: var(--fm-text) !important;
    box-shadow: 0 22px 58px rgba(0, 0, 0, .42) !important;
  }

  body.retro-forum #notif-panel .notif-text,
  body.retro-forum #notif-panel .notif-text strong,
  body.retro-forum #notif-panel strong,
  body.retro-forum.hud-dock-enabled #notif-panel .notif-text,
  body.retro-forum.hud-dock-enabled #notif-panel .notif-text strong,
  body.retro-forum.hud-dock-enabled #notif-panel strong {
    color: var(--fm-text) !important;
  }

  body.retro-forum #notif-panel .notif-time,
  body.retro-forum.hud-dock-enabled #notif-panel .notif-time {
    color: rgba(199, 196, 216, .62) !important;
    font-size: .72rem !important;
  }

  body.retro-forum #notif-panel [style*="color:var(--cyan)"],
  body.retro-forum.hud-dock-enabled #notif-panel [style*="color:var(--cyan)"] {
    color: var(--fm-primary) !important;
  }
}

@media (max-width: 1180px) {
  body.retro-forum .fm-top-search {
    display: none !important;
  }

  body.retro-forum .fm-top-actions {
    display: flex !important;
    margin-left: auto;
    gap: 10px;
  }
}

/* Fuente visual: Stitch proyecto "Foromuk diseno" / Midnight Executive. */
@media (min-width: 1181px) {
  body.retro-forum .post-card,
  body.retro-forum .panel,
  body.retro-forum .msn-self,
  body.retro-forum .msn-folder,
  body.retro-forum .chat-col .msn-chat-shell,
  body.retro-forum #notif-panel {
    border-radius: 16px !important;
  }

  body.retro-forum .feed-header,
  body.retro-forum .fm-top-search,
  body.retro-forum #btn-nuevo-post,
  body.retro-forum #btn-guest-post,
  body.retro-forum .btn,
  body.retro-forum input,
  body.retro-forum textarea,
  body.retro-forum .post-tools__trigger,
  body.retro-forum .post-tools__menu {
    border-radius: 12px !important;
  }
}

/* TRUE FINAL - UI de perfil inspirada en Stitch: vidrio hielo + inputs oscuros. */
body.retro-forum .modal-overlay{
  background:rgba(1, 5, 12, .78) !important;
  backdrop-filter:blur(18px) saturate(1.1) !important;
}

body.retro-forum .modal.modal-bare{
  width:auto !important;
  max-width:calc(100vw - 24px) !important;
  max-height:calc(100dvh - 24px) !important;
  padding:0 !important;
  overflow:visible !important;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
}

body.retro-forum .msn-modern-modal,
body.retro-forum .profile-modern-modal,
body.retro-forum .channel-modern-modal{
  width:min(680px, calc(100vw - 24px)) !important;
  max-height:calc(100dvh - 24px) !important;
  display:grid !important;
  grid-template-rows:auto minmax(0, 1fr) auto !important;
  overflow:hidden !important;
  border:1px solid rgba(166, 204, 224, .44) !important;
  border-radius:24px !important;
  background:
    linear-gradient(180deg, rgba(240, 252, 255, .97), rgba(215, 234, 242, .98)) !important;
  color:#102433 !important;
  box-shadow:0 30px 82px rgba(0, 0, 0, .46), 0 0 0 1px rgba(255, 255, 255, .64) inset !important;
  font-family:Inter, Plus Jakarta Sans, system-ui, sans-serif !important;
}

body.retro-forum .profile-modern-modal{
  width:min(650px, calc(100vw - 24px)) !important;
}

body.retro-forum .channel-modern-modal{
  width:min(720px, calc(100vw - 24px)) !important;
}

body.retro-forum .msn-modern-head{
  display:flex !important;
  align-items:flex-start !important;
  justify-content:space-between !important;
  gap:16px !important;
  padding:20px 22px 18px !important;
  border-bottom:1px solid rgba(77, 120, 146, .18) !important;
  background:
    radial-gradient(circle at 0% 0%, rgba(20, 210, 230, .22), transparent 34%),
    linear-gradient(135deg, rgba(216, 248, 255, .88), rgba(235, 232, 255, .78)) !important;
}

body.retro-forum .msn-modern-kicker,
body.retro-forum .cover-picker__kicker,
body.retro-forum .cover-picker__section-title,
body.retro-forum .gm-kicker,
body.retro-forum .gm-section-title{
  color:#12617f !important;
  font:950 11px/1 Inter, Plus Jakarta Sans, system-ui, sans-serif !important;
  letter-spacing:.09em !important;
  text-transform:uppercase !important;
}

body.retro-forum .msn-modern-title,
body.retro-forum .cover-picker__head h2,
body.retro-forum .gm-head h2{
  margin:4px 0 0 !important;
  color:#16324a !important;
  text-shadow:none !important;
  font:950 24px/1.08 Inter, Plus Jakarta Sans, system-ui, sans-serif !important;
  letter-spacing:0 !important;
}

body.retro-forum .msn-modern-head .msn-modern-title{
  color:#16324a !important;
}

body.retro-forum .msn-modern-close,
body.retro-forum .cover-picker__close,
body.retro-forum .gm-close{
  width:38px !important;
  height:38px !important;
  min-width:38px !important;
  border:0 !important;
  border-radius:50% !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  background:rgba(13, 38, 57, .08) !important;
  color:#17314a !important;
  font:950 15px/1 Inter, system-ui, sans-serif !important;
  cursor:pointer !important;
  transition:transform .16s ease, background-color .16s ease, color .16s ease !important;
}

body.retro-forum .msn-modern-close:hover,
body.retro-forum .cover-picker__close:hover,
body.retro-forum .gm-close:hover{
  transform:translateY(-1px) !important;
  background:#0d111a !important;
  color:#ffffff !important;
}

body.retro-forum .msn-modern-body,
body.retro-forum .profile-modern-body{
  display:grid !important;
  gap:16px !important;
  min-height:0 !important;
  overflow:auto !important;
  padding:20px 22px !important;
}

body.retro-forum .profile-modern-card,
body.retro-forum .channel-modern-card{
  display:flex !important;
  align-items:center !important;
  gap:16px !important;
  padding:14px !important;
  border:1px solid rgba(80, 128, 154, .2) !important;
  border-radius:20px !important;
  background:rgba(255, 255, 255, .66) !important;
  box-shadow:0 14px 34px rgba(33, 90, 115, .08), 0 0 0 1px rgba(255,255,255,.74) inset !important;
}

body.retro-forum .profile-modern-avatar-wrap{
  position:relative !important;
  flex:0 0 auto !important;
}

body.retro-forum .profile-modern-avatar{
  width:78px !important;
  height:78px !important;
  display:block !important;
  border-radius:50% !important;
  object-fit:cover !important;
  border:3px solid #071019 !important;
  background:#071019 !important;
  box-shadow:0 14px 30px rgba(2, 10, 16, .28), 0 0 0 3px rgba(31, 228, 236, .18) !important;
}

body.retro-forum .profile-modern-avatar-btn{
  position:absolute !important;
  right:-5px !important;
  bottom:-5px !important;
  width:34px !important;
  height:34px !important;
  border:1px solid rgba(0, 196, 210, .38) !important;
  border-radius:50% !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  background:linear-gradient(180deg, #27ebf5, #0fc7d8) !important;
  color:#04181d !important;
  cursor:pointer !important;
  box-shadow:0 12px 24px rgba(12, 184, 207, .3) !important;
  transition:transform .16s ease, filter .16s ease !important;
}

body.retro-forum .profile-modern-avatar-btn:hover{
  transform:translateY(-1px) scale(1.04) !important;
  filter:saturate(1.12) !important;
}

body.retro-forum .profile-modern-avatar-btn svg{
  width:17px !important;
  height:17px !important;
  fill:none !important;
  stroke:currentColor !important;
  stroke-width:2.2 !important;
  stroke-linecap:round !important;
  stroke-linejoin:round !important;
}

body.retro-forum .profile-modern-id{
  min-width:0 !important;
  display:grid !important;
  gap:4px !important;
}

body.retro-forum .profile-modern-id strong{
  color:#102433 !important;
  font:950 17px/1.1 Inter, Plus Jakarta Sans, system-ui, sans-serif !important;
}

body.retro-forum .profile-modern-card .profile-modern-id strong{
  color:#102433 !important;
}

body.retro-forum .profile-modern-id span{
  color:#12617f !important;
  font:900 15px/1.1 Inter, system-ui, sans-serif !important;
}

body.retro-forum .profile-modern-id small{
  color:#6a8799 !important;
  font:800 12px/1.3 Inter, system-ui, sans-serif !important;
}

body.retro-forum .profile-modern-grid{
  display:grid !important;
  grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
  gap:13px 14px !important;
}

body.retro-forum .profile-modern-field{
  display:grid !important;
  gap:7px !important;
  min-width:0 !important;
}

body.retro-forum .profile-modern-field.span-2{
  grid-column:1 / -1 !important;
}

body.retro-forum .msn-modern-label{
  color:#254d63 !important;
  font:950 12px/1 Inter, Plus Jakarta Sans, system-ui, sans-serif !important;
  letter-spacing:0 !important;
}

body.retro-forum .msn-modern-input,
body.retro-forum .profile-modern-textarea{
  width:100% !important;
  min-height:44px !important;
  box-sizing:border-box !important;
  border:1px solid rgba(6, 14, 24, .18) !important;
  border-radius:8px !important;
  background:#0b0f19 !important;
  color:#ffffff !important;
  padding:0 14px !important;
  outline:none !important;
  font:750 14px/1.2 Inter, Plus Jakarta Sans, system-ui, sans-serif !important;
  box-shadow:0 1px 0 rgba(255,255,255,.04) inset !important;
  transition:border-color .16s ease, box-shadow .16s ease, transform .16s ease !important;
}

body.retro-forum .profile-modern-textarea{
  min-height:94px !important;
  padding-top:12px !important;
  resize:vertical !important;
  line-height:1.45 !important;
}

body.retro-forum .msn-modern-input::placeholder{
  color:rgba(255, 255, 255, .34) !important;
}

body.retro-forum .msn-modern-input:focus,
body.retro-forum .profile-modern-textarea:focus{
  transform:translateY(-1px) !important;
  border-color:rgba(0, 206, 209, .78) !important;
  box-shadow:0 0 0 4px rgba(0, 206, 209, .14), 0 14px 28px rgba(8, 85, 110, .14) !important;
}

body.retro-forum .msn-modern-help{
  margin:0 !important;
  color:#667f8d !important;
  font:750 12px/1.35 Inter, system-ui, sans-serif !important;
}

body.retro-forum .msn-modern-help strong{
  color:#1e7890 !important;
}

body.retro-forum .msn-modern-actions,
body.retro-forum .channel-modern-actions{
  display:flex !important;
  justify-content:flex-end !important;
  align-items:center !important;
  gap:9px !important;
  flex-wrap:wrap !important;
  padding:16px 22px 20px !important;
  border-top:1px solid rgba(77, 120, 146, .14) !important;
  background:rgba(222, 241, 248, .78) !important;
}

body.retro-forum .msn-modern-btn{
  min-height:40px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:8px !important;
  border-radius:999px !important;
  border:1px solid rgba(24, 80, 108, .18) !important;
  padding:0 18px !important;
  font:950 13px/1 Inter, Plus Jakarta Sans, system-ui, sans-serif !important;
  cursor:pointer !important;
  transition:transform .16s ease, box-shadow .16s ease, filter .16s ease, opacity .16s ease !important;
}

body.retro-forum .msn-modern-btn:hover{
  transform:translateY(-1px) !important;
}

body.retro-forum .msn-modern-btn:active{
  transform:scale(.98) !important;
}

body.retro-forum .msn-modern-btn:disabled{
  opacity:.6 !important;
  cursor:not-allowed !important;
  transform:none !important;
}

body.retro-forum .msn-modern-btn.primary{
  border-color:rgba(0, 172, 190, .42) !important;
  background:linear-gradient(180deg, #29edf5, #10c7d8) !important;
  color:#04181d !important;
  box-shadow:0 16px 32px rgba(12, 184, 207, .26) !important;
}

body.retro-forum .msn-modern-btn.secondary{
  background:rgba(255, 255, 255, .72) !important;
  color:#254d63 !important;
  box-shadow:0 10px 22px rgba(33, 90, 115, .08) !important;
}

body.retro-forum .channel-modern-icon{
  width:54px !important;
  height:54px !important;
  border-radius:18px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  background:#0b0f19 !important;
  color:#22ddea !important;
  box-shadow:0 14px 30px rgba(2, 10, 16, .24) !important;
}

body.retro-forum .channel-modern-icon svg{
  width:24px !important;
  height:24px !important;
  fill:currentColor !important;
}

body.retro-forum .channel-banner-picker{
  display:grid !important;
  grid-template-columns:minmax(0, 1fr) auto !important;
  gap:10px !important;
  align-items:center !important;
}

body.retro-forum .channel-banner-picker img,
body.retro-forum .channel-banner-empty{
  width:100% !important;
  height:92px !important;
  border-radius:14px !important;
  border:1px solid rgba(6, 14, 24, .14) !important;
  background:#0b0f19 !important;
  color:#7b93a0 !important;
  object-fit:cover !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  font-weight:900 !important;
}

body.retro-forum .channel-banner-btn input{
  display:none !important;
}

body.retro-forum .gallery-manager-modal,
body.retro-forum .cover-picker-modal{
  width:min(760px, calc(100vw - 24px)) !important;
  max-width:min(760px, calc(100vw - 24px)) !important;
  max-height:calc(100dvh - 24px) !important;
  overflow:auto !important;
  padding:0 !important;
  border:1px solid rgba(166, 204, 224, .44) !important;
  border-radius:24px !important;
  background:linear-gradient(180deg, rgba(240, 252, 255, .97), rgba(215, 234, 242, .98)) !important;
  color:#102433 !important;
  box-shadow:0 30px 82px rgba(0, 0, 0, .46), 0 0 0 1px rgba(255, 255, 255, .64) inset !important;
}

body.retro-forum .cover-picker,
body.retro-forum .gm-shell{
  color:#102433 !important;
}

body.retro-forum .cover-picker__head,
body.retro-forum .gm-head{
  background:linear-gradient(135deg, rgba(216, 248, 255, .88), rgba(235, 232, 255, .78)) !important;
  border-bottom:1px solid rgba(77, 120, 146, .18) !important;
}

body.retro-forum .cover-picker__head p,
body.retro-forum .gm-head p{
  color:#5f7888 !important;
}

body.retro-forum .cover-picker__preview{
  border-color:rgba(80, 128, 154, .22) !important;
  border-radius:18px !important;
}

body.retro-forum .cover-picker__file,
body.retro-forum .cover-picker__upload button,
body.retro-forum .gm-create-row button,
body.retro-forum .gm-upload-row label,
body.retro-forum .gm-album-row button,
body.retro-forum .gm-item button.danger{
  border-radius:999px !important;
}

body.retro-forum .gm-create-row input,
body.retro-forum .gm-upload-row select,
body.retro-forum .gm-album-row input,
body.retro-forum .gm-item select{
  min-height:40px !important;
  border:1px solid rgba(6, 14, 24, .18) !important;
  border-radius:8px !important;
  background:#0b0f19 !important;
  color:#ffffff !important;
}

body.retro-forum .cover-picker,
body.retro-forum .gm-shell{
  display:grid !important;
  gap:16px !important;
  padding:20px 22px !important;
  box-sizing:border-box !important;
}

body.retro-forum .cover-picker__head,
body.retro-forum .gm-head{
  display:flex !important;
  align-items:flex-start !important;
  justify-content:space-between !important;
  gap:16px !important;
  margin:-20px -22px 0 !important;
  padding:20px 22px 18px !important;
}

body.retro-forum .cover-picker__preview{
  position:relative !important;
  min-height:190px !important;
  overflow:hidden !important;
  background:
    radial-gradient(circle at 20% 8%, rgba(20, 210, 230, .2), transparent 34%),
    linear-gradient(145deg, #323541, #171a23 48%, #090b12) !important;
  background-size:cover !important;
  background-position:center !important;
}

body.retro-forum .cover-picker__preview span{
  position:absolute !important;
  left:14px !important;
  bottom:14px !important;
  min-height:28px !important;
  display:inline-flex !important;
  align-items:center !important;
  border-radius:999px !important;
  background:rgba(12, 14, 22, .72) !important;
  color:#ffffff !important;
  padding:0 12px !important;
  font-weight:950 !important;
}

body.retro-forum .cover-picker__upload,
body.retro-forum .gm-create-row,
body.retro-forum .gm-upload-row{
  display:flex !important;
  gap:10px !important;
  flex-wrap:wrap !important;
  align-items:center !important;
}

body.retro-forum .cover-picker__file,
body.retro-forum .cover-picker__upload button,
body.retro-forum .gm-create-row button,
body.retro-forum .gm-upload-row label,
body.retro-forum .gm-album-row button,
body.retro-forum .gm-item button.danger{
  min-height:40px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  border:1px solid rgba(24, 80, 108, .18) !important;
  background:rgba(255, 255, 255, .72) !important;
  color:#254d63 !important;
  padding:0 16px !important;
  font:950 13px/1 Inter, system-ui, sans-serif !important;
  cursor:pointer !important;
}

body.retro-forum .cover-picker__file{
  background:linear-gradient(180deg, #29edf5, #10c7d8) !important;
  color:#04181d !important;
}

body.retro-forum .cover-picker__file input,
body.retro-forum .gm-upload-row input[type=file]{
  display:none !important;
}

body.retro-forum .cover-gallery-list,
body.retro-forum .gm-grid{
  display:grid !important;
  grid-template-columns:repeat(auto-fill, minmax(132px, 1fr)) !important;
  gap:10px !important;
}

body.retro-forum .cover-gallery-item,
body.retro-forum .gm-item{
  position:relative !important;
  overflow:hidden !important;
  border:1px solid rgba(80, 128, 154, .22) !important;
  border-radius:14px !important;
  background:rgba(255,255,255,.56) !important;
}

body.retro-forum .cover-gallery-item{
  aspect-ratio:16/9 !important;
  padding:0 !important;
  cursor:pointer !important;
}

body.retro-forum .cover-gallery-item img,
body.retro-forum .gm-item-preview img,
body.retro-forum .gm-item-preview video{
  width:100% !important;
  height:100% !important;
  display:block !important;
  object-fit:cover !important;
}

body.retro-forum .cover-gallery-item span{
  position:absolute !important;
  right:8px !important;
  bottom:8px !important;
  min-height:24px !important;
  border-radius:999px !important;
  display:inline-flex !important;
  align-items:center !important;
  background:#dffbff !important;
  color:#12617f !important;
  padding:0 9px !important;
  font-weight:950 !important;
}

body.retro-forum .cover-picker__empty,
body.retro-forum .gm-empty,
body.retro-forum .gm-loading,
body.retro-forum .gm-error{
  padding:18px !important;
  border:1px dashed rgba(80, 128, 154, .24) !important;
  border-radius:14px !important;
  background:rgba(255,255,255,.46) !important;
  color:#667f8d !important;
  text-align:center !important;
  font-weight:850 !important;
}

body.retro-forum .gm-section{
  display:grid !important;
  gap:10px !important;
  padding-top:2px !important;
}

body.retro-forum .gm-albums{
  display:grid !important;
  gap:8px !important;
}

body.retro-forum .gm-album-row{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) auto auto auto !important;
  gap:8px !important;
  align-items:center !important;
}

body.retro-forum .gm-item{
  display:grid !important;
  gap:8px !important;
  padding:8px !important;
}

body.retro-forum .gm-item-preview{
  width:100% !important;
  aspect-ratio:1/1 !important;
  border:0 !important;
  border-radius:10px !important;
  overflow:hidden !important;
  background:#0b0f19 !important;
  padding:0 !important;
}

@media (max-width: 680px){
  body.retro-forum .msn-modern-modal,
  body.retro-forum .profile-modern-modal,
  body.retro-forum .channel-modern-modal{
    width:calc(100vw - 16px) !important;
    max-height:calc(100dvh - 16px) !important;
    border-radius:20px !important;
  }

  body.retro-forum .msn-modern-head,
  body.retro-forum .msn-modern-body,
  body.retro-forum .msn-modern-actions{
    padding-left:16px !important;
    padding-right:16px !important;
  }

  body.retro-forum .profile-modern-grid{
    grid-template-columns:1fr !important;
  }

  body.retro-forum .profile-modern-field.span-2{
    grid-column:auto !important;
  }

  body.retro-forum .profile-modern-card{
    align-items:flex-start !important;
  }

  body.retro-forum .channel-banner-picker{
    grid-template-columns:1fr !important;
  }

  body.retro-forum .msn-modern-actions{
    justify-content:stretch !important;
  }

  body.retro-forum .msn-modern-actions .msn-modern-btn{
    flex:1 1 100% !important;
  }
}

