/* =========================================
   HEADER FIX Z-INDEX (SOLUCIÓN DEFINITIVA)
=========================================== */
header {
    background: #111;
    padding: 10px;
    border-bottom: 1px solid #222;

    position: sticky;
    top: 0;

    z-index: 999999; /* ?? ULTRA ALTO (evita cualquier overlay) */

    transform: translateZ(0); /* ?? crea su propia capa (fix scroll bug) */
}

/* Contenedor interno del header */
.top-row {
    display: flex;
    align-items: center;
    gap: 10px;

    position: relative;
    z-index: 999999;
}

/* Asegura que los filtros estén SIEMPRE arriba */
.filter-row {
    display: flex;
    gap: 8px;
    margin-top: 10px;

    overflow-x: auto;

    position: relative;
    z-index: 999999;

    background: #111; /* ?? tapa lo que pase debajo */
}

/* =========================================
   FIX CONTENEDOR TARJETAS
=========================================== */
.card {
    position: relative;
    overflow: hidden; /* ?? CLAVE */
    z-index: 1;
}

/* ========================================= 
   COLOR DE BOTONES MENU PARTE SUP
=========================================== */
.filter-row{
  display:flex;
  gap:8px;
  padding:10px 12px;
}

.filter-row .chip{
  padding:7px 14px;
  border-radius:18px;
  background:#1f1f1f;
  color:#bbb;
  font-size:13px;
}

.filter-row .chip.active{
  background:#ff2d55;
  color:white;
}

/* ========================================= 
   DISEÑO DE TARJETA DESTACADOS PARTE SUP
=========================================== */
.featured-top-card {
  width: 100%;
  padding: 20px;
  border-radius: 18px;
  background: linear-gradient(145deg, #111827, #1f2937);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
}

@media (min-width: 1024px) {
  .featured-top-card {
    padding: 25px 40px;
  }
}

/* Para dejar margen superior tarjeta de usuarios destacados */
.featured-top-card {
  margin-top: 5px;
  padding-top: 22px;
}

.featured-top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.featured-top-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #222;
}

.featured-top-sub {
  font-size: 0.9rem;
  color: #666;
  margin-top: 4px;
}

.featured-top-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: #007bff; /* azul elegante */
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.featured-top-btn:hover {
  background-color: #0056b3;
}

.featured-top-btn svg {
  stroke: #fff;
}

.featured-top-avatars {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: start;
}

/* =========================================
   DISEÑO APP PWA PORTADA
=========================================== */
.install-premium-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 25px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #ff2d55, #ff6b81);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 45, 85, 0.4);
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

.install-premium-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 45, 85, 0.6);
}

.install-premium-btn:active {
  transform: scale(0.95);
}

.icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-wrapper svg {
  width: 16px;
  height: 16px;
}

.pwa-container {
  display: flex;
  justify-content: center;
  margin-top: 15px;
}

/* =========================================
   DECORACION URL CHAT PUBLICO 
=========================================== */
.msg-text a {
  color: #1e90ff;
  text-decoration: underline;
  word-break: break-word;
}

/* =========================================
   ACTIVAR GPS  
=========================================== */
.gps-modal{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

.gps-box{
  background: #111;
  padding: 25px;
  border-radius: 15px;
  text-align: center;
  width: 90%;
  max-width: 320px;
  color: #fff;
}

.gps-box button{
  margin-top: 15px;
  padding: 10px 20px;
  border: none;
  background: #00ff3c;
  color: #000;
  border-radius: 8px;
  font-weight: bold;
}

/* =========================================
   PUNTO VERDE DE ONLINE EN EL BUZON  
=========================================== */
.inbox-avatar{
  position: relative;
  width: 52px;
  height: 52px;
}

.online-dot{
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  background: #00ff3c;
  border-radius: 50%;
  border: 2px solid #111;
  box-shadow: 0 0 6px #00ff3c;
}


/* =========================================
   ONLINE USUARIOS DESTACADOS (FIX PRO)
=========================================== */

/* CONTENEDOR */
.avatar-wrapper{
  position:relative;
  width:45px;
  height:45px;
}

.avatar-wrapper img{
  width:100%;
  height:100%;
  border-radius:50%;
  object-fit:cover;
  cursor:pointer;
  transition:box-shadow .3s ease;
}

/* PUNTICO BASE */
.online-dot{
  position:absolute;
  bottom:2px;
  right:2px;
  width:10px;
  height:10px;
  border-radius:50%;
  border:2px solid #000;
}

/* ?? ONLINE */
.online-dot.online{
  background:#00ff4c;
  box-shadow:0 0 8px #00ff4c;
  animation:pulseOnline 1.5s infinite;
}

/* ? OFFLINE */
.online-dot.offline{
  background:#666;
  box-shadow:none;
}

/* ANIMACIÓN ONLINE */
@keyframes pulseOnline{
  0%{
    transform:scale(1);
    box-shadow:0 0 6px #00ff4c;
  }
  100%{
    transform:scale(1.2);
    box-shadow:0 0 12px #00ff4c;
  }
}

/* =========================================
   GLOW SOLO SI ESTA ONLINE
=========================================== */

/* SOLO cuando tenga clase .online */
.avatar-wrapper.online img{
  box-shadow:0 0 8px #00ffcc,
             0 0 16px #00ffcc;
  animation:neonPulse 1.5s infinite alternate;
}

/* OFFLINE = sin glow */
.avatar-wrapper.offline img{
  box-shadow:none;
}

/* ANIMACIÓN GLOW */
@keyframes neonPulse{
  from{
    box-shadow:0 0 6px #00ffcc;
  }
  to{
    box-shadow:0 0 18px #00ffcc;
  }
}

/* =========================================
   ESTYLO DE BOTON HISTORIA MENU SUPERIOR 
=========================================== */
.story-card-add{
  cursor: pointer;
}

.story-add-full{
  height: 100%;
  width: 100%;
  border-radius: 18px;
  background: linear-gradient(145deg, #151515, #0e0e0e);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all .35s ease;
  border: 1px solid rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
}

/* Hover elegante */
.story-card-add:hover .story-add-full{
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,204,0,0.4);
}

/* Botón + */
.story-add-plus{
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffcc00, #ffb700);
  color: #000;
  font-size: 30px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(255,204,0,0.35);
  transition: transform .3s ease;
}

/* Animación del + */
.story-card-add:hover .story-add-plus{
  transform: scale(1.12);
}

.story-add-label{
  margin-top: 14px;
  font-size: 14px;
  font-weight: 500;
  color: #e8e8e8;
  letter-spacing: .4px;
}

/* ===== ESTILO DE VISTAS HISTORIA ESTILO MODERNO ===== */

.story-viewer-item{
  display:flex;
  align-items:center;
  gap:10px;
  padding:8px;
  border-radius:10px;
  transition:background 0.2s ease;
}

.story-viewer-item:hover{
  background:#1e1e1e;
}

.story-viewer-avatar{
  width:30px;
  height:30px;
  border-radius:50%;
  overflow:hidden;
  flex-shrink:0;
  border:1px solid #333;
}

.story-viewer-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.story-viewer-info{
  flex:1;
  min-width:0;
}

.story-viewer-name{
  font-size:13px;
  font-weight:600;
  color:#fff;
}

.story-viewer-time{
  font-size:11px;
  color:#888;
}

.story-empty{
  font-size:12px;
  color:#888;
  padding:8px;
}

.story-views-counter{
  font-weight:600;
  color:#fff;
}


/* =====================================================
   VARIABLES GLOBALES
===================================================== */

:root {
    --bg: var(--bg-main);
    --bg-soft: var(--bg-soft);
    --card-bg: var(--bg-card);
    --accent: #ffcc00;
    --text-main: var(--text-main);
    --text-soft: var(--text-soft);
    --danger: #ff3b30;
}

/* MODO CLARO */
body.light-mode {
  --bg-main: #f4f6f9;
  --bg-card: #ffffff;
  --bg-soft: #eef1f5;

  --text-main: #1a1a1a;
  --text-soft: #555;

  --border-color: #e2e6ea;
}

/* ========================================= 
   TARJETA DESTACADOS (VERSIÓN FINAL)
=========================================== */
.featured-top-card{
  position:relative;
  width:100%;
  padding:18px;
  border-radius:18px;
  margin-top:5px;

  background:linear-gradient(145deg,#1a1a22,#111118);

  border:1px solid #000;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    inset 0 -1px 0 rgba(0,0,0,0.6),
    0 8px 18px rgba(0,0,0,0.45);

  transition:all .25s ease;
}

.featured-top-card:hover{
  transform:translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    inset 0 -1px 0 rgba(0,0,0,0.8),
    0 12px 25px rgba(0,0,0,0.6);
}

/* =========================================
   HEADER
=========================================== */
.featured-top-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  margin-bottom:12px;
}

.featured-top-title{
  font-size:16px;
  font-weight:700;
  color:#fff;
}

.featured-top-sub{
  font-size:13px;
  color:#b3b3b3;
}

/* =========================
   TEXTO
========================= */

.featured-top-title{
  font-size:16px;
  font-weight:700;
  color:#fff;
  letter-spacing:.2px;
}

.featured-top-sub{
  font-size:13px;
  color:#b3b3b3;
  margin-top:2px;
}

/* =========================================
   BOTÓN
=========================================== */
.featured-top-btn{
  display:flex;
  align-items:center;
  gap:8px;
  background:linear-gradient(135deg,#ffcc00,#ffb800);
  color:#000;
  border:none;
  border-radius:999px;
  padding:8px 16px;
  font-size:13px;
  font-weight:700;
  cursor:pointer;
  box-shadow:0 4px 12px rgba(255,204,0,.35);
}

/* =========================================
   AVATARES (SLIDER)
=========================================== */
.featured-top-avatars{
  display:flex;
  flex-wrap: nowrap;      /* ?? IMPORTANTE */
  gap:10px;

  overflow-x:auto;
  overflow-y:hidden;

  padding-bottom:6px;

  scroll-behavior:smooth;
}

.featured-top-avatars{
  display:flex;
  flex-wrap:nowrap;
  gap:10px;

  overflow-x:auto;
  overflow-y:hidden;
}

/* evitar que bajen */
.featured-top-avatars .sfa{
  flex:0 0 auto;
}

.featured-slider-wrapper{
  position: relative;
}

/* Botones */
.slider-btn{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;

  width: 32px;
  height: 32px;
  border-radius: 50%;

  border: none;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 20px;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;
}

/* posiciones */
.slider-btn.left{
  left: 0;
}

.slider-btn.right{
  right: 0;
}

/* ocultar en móvil */
@media (max-width:768px){
  .slider-btn{
    display:none;
  }
}


.featured-top-avatars::-webkit-scrollbar{
  height:6px;
}

.featured-top-avatars::-webkit-scrollbar-track{
  background:transparent;
}

.featured-top-avatars::-webkit-scrollbar-thumb{
  background:#555;
  border-radius:10px;
}

.featured-top-avatars::-webkit-scrollbar-thumb:hover{
  background:#777;
}

/* ========================================== 
   estilo texto portada, term,polit,soport
=========================================== */
.session-link-btn{
  width:100%;
  padding:10px 14px;
  background:none;
  border:none;
  display:flex;
  align-items:center;
  gap:10px;

  /* color gris suave */
  color:#aaa;
  font-size:14px;
  font-weight:400;

  cursor:pointer;
  border-radius:8px;
  transition:background .2s, color .2s;
}

.session-link-btn:hover{
  background:rgba(255,255,255,0.05);
  color:#eaeaea;
}

.icon-wrap{
  width:22px;
  height:22px;
  display:flex;
  align-items:center;
  justify-content:center;
}

/* ===============================
   MODAL BUZÓN
================================ */
#inboxModal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  backdrop-filter: blur(6px);
  display: none;
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

/* ===============================
   CONTENEDOR BUZÓN
================================ */
#inboxList {
  width: 100%;
  max-width: 420px;
  max-height: 85vh;
  overflow-y: auto;
  background: linear-gradient(180deg,#0b0f1a,#070a12);
  border-radius: 20px;
  padding: 10px;
  box-shadow:
    0 0 25px rgba(0,255,255,.15),
    inset 0 0 0 1px rgba(0,255,255,.12);
}

/* ===============================
   ITEM CONVERSACIÓN
================================ */
.inbox-item {
  display: flex;
  align-items: center;
  padding: 12px;
  margin: 8px 0;
  border-radius: 16px;
  background: rgba(255,255,255,.04);
  cursor: pointer;
  transition: all .25s ease;
  position: relative;
}

.inbox-item:hover {
  background: rgba(0,255,255,.08);
  box-shadow: 0 0 12px rgba(0,255,255,.25);
}

/* ===============================
   AVATAR
================================ */
.inbox-avatar {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  position: relative;
}

.inbox-avatar img,
.avatar-fallback {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}

.avatar-fallback {
  background: linear-gradient(135deg,#00f0ff,#00ff9d);
  color: #000;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 0 12px rgba(0,255,255,.6);
}

/* ===============================
   AVATAR BASE
================================ */
.inbox-avatar {
  position: relative;
}

/* ===============================
   ONLINE (??)
================================ */
.inbox-avatar.online::after {
  content: "";
  position: absolute;
  bottom: 3px;
  right: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #00ff9d;
  box-shadow: 0 0 6px rgba(0,255,157,.9);
  border: 2px solid #05070d;
}

/* ===============================
   VISTO RECIENTE (?)
================================ */
.inbox-avatar.recent::after {
  content: "";
  position: absolute;
  bottom: 3px;
  right: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffcc00;
  box-shadow: 0 0 6px rgba(255,204,0,.9);
  border: 2px solid #05070d;
}

/* ===============================
   OFFLINE ? NO muestra nada
================================ */
.inbox-avatar.offline::after {
  display: none;
}

/* ===============================
   TEXTO PRINCIPAL
================================ */
.inbox-main {
  flex: 1;
  margin-left: 12px;
  overflow: hidden;
}

.inbox-name {
  font-size: 15px;
  font-weight: 600;
  color: #e6ffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inbox-last {
  font-size: 13px;
  color: #9ff;
  opacity: .8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===============================
   META (HORA + UNREAD)
================================ */
.inbox-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-left: 8px;
}

.inbox-meta div:first-child {
  font-size: 11px;
  color: #8ff;
  opacity: .7;
}

/* ===============================
   CONTADOR NO LEÍDOS
================================ */
.inbox-count {
  margin-top: 6px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  background: linear-gradient(135deg,#ff0080,#ff4fd8);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(255,0,128,.6);
}

/* ===============================
   NO LEÍDO DESTACADO
================================ */
.inbox-item.unread {
  background: rgba(0,255,255,.10);
  box-shadow: inset 0 0 0 1px rgba(0,255,255,.25);
}

/* ===============================
   BOTÓN ELIMINAR
================================ */
.inbox-delete-btn {
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  opacity: .6;
  transition: opacity .2s;
}

.inbox-delete-btn:hover {
  opacity: 1;
}

/* ===============================
   SCROLL NEÓN
================================ */
#inboxList::-webkit-scrollbar {
  width: 6px;
}

#inboxList::-webkit-scrollbar-thumb {
  background: linear-gradient(#00f0ff,#00ff9d);
  border-radius: 4px;
}


/* ==========================================================
  POSICION DE LA FOTO DE PERFIL DERECHA & IZQUIERDA CHAT PV
========================================================== */
.chat-msg {
  display: flex;
  margin: 10px 0;
  align-items: flex-end;
  max-width: 100%;
}

/* MENSAJES DEL OTRO (IZQUIERDA) */
.chat-msg.other {
  justify-content: flex-start;
  padding-right: 25%;
}

.chat-msg.other .msg-bubble {
  background: #2b2b2b;
  color: #fff;
  border-radius: 16px 16px 16px 4px;
  padding: 10px 14px;
  max-width: 75%;
  word-wrap: break-word;
}

/* MIS MENSAJES (DERECHA) */
.chat-msg.me {
  justify-content: flex-end;
  padding-left: 25%;
}

.chat-msg.me .msg-bubble {
  background: #ffcc00;
  color: #000;
  border-radius: 16px 16px 4px 16px;
  padding: 10px 14px;
  max-width: 75%;
  word-wrap: break-word;
}

/* AVATAR */
.msg-avatar img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
}


/* ==========================================================
   VARIABLES, BASE, RESET
========================================================== */
:root {
    --bg: #000;
    --bg-soft: #0a0a0a;
    --card-bg: #151515;
    --accent: #ffcc00;
    --text-main: #fff;
    --text-soft: #b5b5b5;
    --danger: #ff3b30;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    background: var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

@media (min-width: 1024px) {
    body {
        max-width: 720px;
        margin: 0 auto;
        background: #000;
        overflow-x: hidden;
    }

    html {
        background: #000;
    }
}

/* ==========================================================
   HEADER (FIX Z-INDEX + CAPAS)
========================================================== */
header {
    background: #111;
    padding: 10px;
    border-bottom: 1px solid #222;

    position: sticky;
    top: 0;

    z-index: 5000; /* ?? CLAVE: siempre por encima */
}

/* Contenido interno del header */
.top-row {
    display: flex;
    align-items: center;
    gap: 10px;

    position: relative;
    z-index: 5001; /* ?? asegura prioridad interna */
}

.avatar-round {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    background: #333;
}

.avatar-round img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.loc-input {
    flex: 1;
    background: #1c1c1c;
    padding: 6px 10px;
    border-radius: 10px;
    font-size: 13px;
    color: #aaa;
}

.header-actions {
    display: flex;
    gap: 6px;

    position: relative;
    z-index: 5001; /* ?? evita solapamientos */
}

.round-btn {
    background: #1c1c1c;
    color: #fff;
    border: 1px solid #333;
    padding: 6px 10px;
    border-radius: 10px;
    font-size: 13px;
    cursor: pointer;
}

.logout-btn {
    background: #330000;
    border-color: #ff3b30;
    color: #ffb3b3;
}

/* ==========================================================
  ESTILO DE TITULO, NOMBRE, PEQUEÑA DESCRIPCION PORTADA
========================================================== */
/* ==============================
  ESTILO DE PORTADA LOGIN NEON
============================== */

.session-modal-header {
  position: relative;
  background: linear-gradient(135deg, #0f0f1a 0%, #090912 100%);
  padding: 28px 22px;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  text-align: center;
  overflow: hidden;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  border-bottom: 1px solid rgba(0,255,255,0.15);
}

/* Glow decorativo sutil */
.session-modal-header::before {
  content: "";
  position: absolute;
  top: -60%;
  left: -30%;
  width: 160%;
  height: 160%;
  background: radial-gradient(circle, rgba(0,255,255,0.12) 0%, transparent 60%);
  transform: rotate(25deg);
  pointer-events: none;
}

/* BADGE NEON */
.session-badge {
  display: inline-block;
  background: rgba(0, 255, 255, 0.08);
  border: 1px solid rgba(0,255,255,0.4);
  color: #00f7ff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 14px;
  box-shadow: 0 0 12px rgba(0,255,255,0.4);
}

/* TÍTULO */
.modal-title {
  font-size: 30px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

/* Marca con efecto neon */
.modal-title .highlight {
  color: #00f7ff;
  text-shadow:
    0 0 5px #00f7ff,
    0 0 15px #00f7ff,
    0 0 25px rgba(0,255,255,0.6);
}

/* SUBTÍTULO */
.session-subtitle {
  font-size: 14px;
  font-weight: 400;
  color: #b8c1ff;
  opacity: 0.9;
  line-height: 1.6;
}

/* ==============================
   BODY DEL LOGIN
============================== */

.session-body {
  padding: 24px;
  background: #0c0c14;
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
  border-top: 1px solid rgba(255,255,255,0.05);
  box-shadow:
    0 10px 30px rgba(0,0,0,0.6),
    inset 0 0 30px rgba(0,255,255,0.03);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ==========================================================
  BOTON DE CAMBIAR CONTRASEÑA
========================================================== */
.modal-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(3, 3, 10, 0.85);
  backdrop-filter: blur(6px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal{
  background: #111;
  color: #fff;
  width: 92%;
  max-width: 420px;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}

/* ==========================================================
  ESTILO DE BOTON DE COMPARTIR
========================================================== */
/* OVERLAY */
div[style*="inset:0"][style*="rgba(0,0,0,.8)"]{
  backdrop-filter: blur(4px);
}

/* CAJA */
div[style*="background:#111"][style*="border-radius:16px"]{
  min-width:260px;
  max-width:300px;
  box-shadow:0 15px 35px rgba(0,0,0,.7);
}

/* TÍTULO */
div[style*="background:#111"] p{
  font-size:16px;
  font-weight:600;
  letter-spacing:.3px;
}

/* LINKS */
div[style*="background:#111"] a{
  display:block;
  padding:12px;
  border-radius:10px;
  font-weight:600;
  text-decoration:none;
  margin:8px 0;
}

/* WHATSAPP */
div[style*="background:#111"] a[href*="wa.me"]{
  background:#25D366;
  color:#000;
}

/* FACEBOOK */
div[style*="background:#111"] a[href*="facebook.com"]{
  background:#1877F2;
  color:#fff;
}

/* BOTÓN CERRAR */
div[style*="background:#111"] button{
  margin-top:14px;
  background:#333;
  color:#fff;
  border:none;
  padding:10px 16px;
  border-radius:10px;
  font-size:14px;
  cursor:pointer;
}


/* ==========================================================
   CHIPS / FILTROS
========================================================== */
.filter-row {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
}

.chip {
    background: #111;
    border: 1px solid #333;
    padding: 6px 12px;
    border-radius: 20px;
    color: #aaa;
    font-size: 12px;
    white-space: nowrap;
    cursor: pointer;
}

.chip.active {
    background: var(--accent);
    color: #000;
    font-weight: 700;
}

/* ==========================================================
   COLORES DE ONLINE, RECIENTE Y OFFLINE (FIX COMPLETO)
========================================================== */
.online-dot-card {
  width: 9px;
  height: 9px;
  border-radius: 50%;

  position: absolute;
  top: 6px;
  right: 6px;

  z-index: 2; /* correcto */

  pointer-events: none; /* ?? evita bugs al hacer click */
}

/* ?? Online */
.online-dot-card.p-online {
  background: #00ff66;
  box-shadow: 0 0 8px rgba(0,255,102,.8);
}

/* ?? Reciente */
.online-dot-card.p-recent {
  background: #ffcc00;
  box-shadow: 0 0 6px rgba(255,204,0,.7);
}

/* ? Offline */
.online-dot-card.p-offline {
  background: #666;
  opacity: .85;
}

/* ===============================
   VERIFICADO — CÍRCULO PRO
================================ */
.verified-badge{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 10px;
  height: 10px;
  margin-left: 4px;

  background: linear-gradient(135deg, #3ea6ff, #1e90ff);
  border-radius: 50%;

  box-shadow:
    0 0 6px rgba(62,166,255,.8),
    0 0 12px rgba(62,166,255,.5);

  flex-shrink: 0;
}

.verified-badge svg{
  width: 10px;
  height: 10px;
  stroke: #fff;
  stroke-width: 3;
}



/* ================================
   FONDO MODAL
================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, #0f1020 0%, #050510 70%);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ================================
   TARJETA PRINCIPAL
================================ */
.session-modal-card {
  width: 92%;
  max-width: 420px;
  background: linear-gradient(180deg, #0c0f1e, #070811);
  border-radius: 20px;
  border: 1px solid rgba(0, 255, 255, 0.25);
  box-shadow:
    0 0 25px rgba(0, 255, 255, 0.15),
    0 0 60px rgba(255, 0, 255, 0.12);
  animation: neonFadeIn 0.5s ease;
}

/* ================================
   CABECERA
================================ */
.session-modal-header {
  padding: 24px 22px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  text-align: center;
}

.session-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #00f0ff;
  background: rgba(0, 240, 255, 0.12);
  box-shadow: 0 0 10px rgba(0,240,255,0.5);
  margin-bottom: 10px;
}

.modal-title {
  font-size: 26px;
  font-weight: 800;
  background: linear-gradient(90deg, #00f0ff, #ff00ff, #ffe600);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.session-subtitle {
  font-size: 14px;
  color: #b6c2ff;
  margin-top: 8px;
  line-height: 1.4;
}

/* ================================
   CUERPO
================================ */
.session-body {
  padding: 22px;
}

/* ================================
   CAMPOS
================================ */
.session-field {
  margin-bottom: 16px;
}

.session-field label {
  font-size: 13px;
  font-weight: 600;
  color: #9dfcff;
  margin-bottom: 6px;
  display: block;
}

.input-std {
  width: 100%;
  padding: 14px 14px;
  border-radius: 12px;
  background: #0b1020;
  border: 1px solid rgba(0,255,255,0.25);
  color: #ffffff;
  font-size: 15px;
  outline: none;
  transition: all 0.25s ease;
}

.input-std::placeholder {
  color: #6b7cbf;
}

.input-std:focus {
  border-color: #00f0ff;
  box-shadow: 0 0 0 2px rgba(0,240,255,0.25),
              0 0 14px rgba(0,240,255,0.6);
}

/* ================================
   CONTRASEÑA
================================ */
.pass-wrapper {
  position: relative;
}

.toggle-pass-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
}

.eye-icon {
  width: 22px;
  height: 22px;
  fill: #00f0ff;
  opacity: 0.7;
}

.toggle-pass-btn:hover .eye-icon {
  opacity: 1;
}

/* ================================
   BOTÓN PRINCIPAL
================================ */
.session-main-btn {
  width: 100%;
  margin-top: 10px;
  padding: 15px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 800;
  color: #000;
  border: none;
  cursor: pointer;
  background: linear-gradient(90deg, #00f0ff, #ff00ff, #ffe600);
  box-shadow:
    0 0 20px rgba(0,240,255,0.7),
    0 0 40px rgba(255,0,255,0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.session-main-btn:hover {
  transform: scale(1.03);
  box-shadow:
    0 0 30px rgba(0,240,255,0.9),
    0 0 60px rgba(255,0,255,0.6);
}

/* ================================
   BOTÓN SECUNDARIO
================================ */
.session-secondary-btn {
  width: 100%;
  margin-top: 12px;
  padding: 14px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.session-secondary-btn:hover {
  border-color: #00f0ff;
  box-shadow: 0 0 18px rgba(0,240,255,0.6);
}

/* ================================
   ERRORES
================================ */
.session-error {
  margin-top: 12px;
  font-size: 14px;
  color: #ff4d4d;
  text-align: center;
  text-shadow: 0 0 10px rgba(255,77,77,0.6);
}

/* ================================
   ANIMACIÓN
================================ */
@keyframes neonFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ==========================================================
   GRID DE USUARIOS 
========================================================== */

main {
    flex: 1;
    padding: 6px;
    padding-bottom: 120px;
    /* espacio por la barra inferior */
}

/* GRID DE USUARIOS */
.grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(110px,1fr));
    gap:8px;
    width:100%;
}

@media (min-width:768px){
    .grid{
        grid-template-columns:repeat(5,1fr);
    }
}

/* TARJETA BASE */
.card {
    background: #151515;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

/* FOTO  aspecto cuadrado */
.card img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    display: block;
}

/* USUARIO DESTACADO */
.card-featured {
    border: 2px solid #ffcc00;
    box-shadow: 0 0 14px rgba(255, 204, 0, 0.6);
}

.card-featured-pill {
    font-size: 10px;
    padding: 2px 6px;
    background: linear-gradient(135deg, #ffcc00, #ff9f1c);
    border-radius: 999px;
    position: absolute;
    bottom: 23px;
    left: 4px;
    color: #000;
}

/* PUNTO VERDE */
.online-dot-card {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #000;
    background: #00ff5a;
}

.online-dot-card.offline {
    background: #777;
}

/* ICONO CHAT */
.chat-icon-wrap {
    position: absolute;
    top: 6px;
    right: 6px;
}

.chat-icon-btn {
    background: rgba(0, 0, 0, 0.6);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #444;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.chat-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    background: red;
    color: white;
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 999px;
    display: none;
}

/* CAPA DE TEXTO */
.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 6px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

/* ==========================================================
   FILA NOMBRE (IZQ) + DISTANCIA (DER)
========================================================== */

.card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 4px;
}

/* Nombre de usuario + edad (lado izquierdo) */
.card-name{
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0; /* clave para ellipsis */
}

.card-name-text{
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;

  /* ?? AJUSTE DE TAMAÑO */
  font-size: 10px;      /* puedes probar 11px si lo quieres aún más chico */
  font-weight: 600;
  line-height: 1.1;
}

/* Distancia (lado derecho) */
.card-dist {
    font-size: 11px;
    color: #ccc;
    background: rgba(0, 0, 0, 0.4);
    padding: 2px 6px;
    border-radius: 999px;
    white-space: nowrap;
    text-align: right;
}

/* ==========================================================
   CLASES ANTIGUAS (META/BIO)  DESACTIVADAS
========================================================== */

/* Por si an se llega a crear .card-meta/.meta-dist desde algn JS viejo */
.card-meta {
    display: none;
    /* ocultamos fila antigua */
}

.meta-dist {
    display: none;
}

/* Bio eliminada */
.meta-bio {
    display: none !important;
}


/* ==========================================================
   NAV INFERIOR
========================================================== */
/* ====== BOTTOM NAV ====== */
.bottom-nav {
    position: fixed;
    bottom: calc(var(--banner-height) + var(--nav-spacing) + 35px);
    left: 16px;
    right: 16px;

    height: var(--nav-height);

    display: flex;
    justify-content: space-around;
    align-items: center;

    background: rgba(20, 20, 20, 0.85);
    backdrop-filter: blur(15px);

    border-radius: 20px;

    border: 1px solid rgba(255, 0, 150, 0.4);

    box-shadow:
        0 0 10px rgba(255, 0, 150, 0.4),
        0 0 20px rgba(255, 0, 150, 0.3),
        0 0 40px rgba(255, 0, 150, 0.2);

    z-index: 1000;

    overflow: visible !important;
    padding-bottom: 8px;
}

.bottom-nav i,
.bottom-nav svg {
    color: #ff0096;
    font-size: 22px;
    transition: 0.3s;
}

.bottom-nav i:hover,
.bottom-nav svg:hover {
    color: #fff;
    text-shadow:
        0 0 5px #ff0096,
        0 0 10px #ff0096,
        0 0 20px #ff0096;
}

/* ====== ITEMS ====== */
.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 11px;
    color: #aaa;
    position: relative; /* necesario para badge */
}

.nav-item.active {
    color: var(--accent);
}

/* ====== ICONOS ====== */
.ni-icon {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    background: #1c1c1c;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-item.active .ni-icon {
    background: var(--accent);
    color: #000;
}

/* ====== BADGE ====== */
.nav-badge {
    position: absolute;
    top: 0;
    right: 12px;
    background: red;
    color: white;
    padding: 2px 5px;
    font-size: 10px;
    border-radius: 10px;
    display: none;
}

/* ==========================================================
   BOTÓN FLOTANTE
========================================================== */
.floating-edit {
    position: fixed;
    right: 16px;
    bottom: 70px;
    background: var(--accent);
    color: #000;
    font-weight: 700;
    padding: 10px 16px;
    border-radius: 20px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .7);
    cursor: pointer;
    z-index: 2000;
}

/* ==========================================================
   ESTILO HISTORIAS (miniaturas + modal + viewer)
========================================================== */
#storiesWrapper {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    padding: 12px 0;
    background: #000;

    /* Altura fija que evita cortes */
    height: 110px;
    min-height: 110px;
    max-height: 110px;
}

.storyItem {
    text-align: center;
    cursor: pointer;
}

.storyAvatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 3px solid var(--accent);
    overflow: hidden;
    background: #111;
}

.storyAvatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.storyName {
    font-size: 12px;
    margin-top: 4px;
    color: #ddd;
}

/* Historias grandes */
.stories-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 4px 0;
}

.story-card-big {
    position: relative;
    flex: 0 0 calc(50% - 6px);
    height: 220px;
    border-radius: 18px;
    overflow: hidden;
    background: #111;
    cursor: pointer;
}

.story-avatar-circle {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 3px solid var(--accent);
    overflow: hidden;
}

.story-footer {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 8px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0));
    padding-top: 40px;
}

.story-video-badge {
    position: absolute;
    right: 6px;
    bottom: 6px;
    background: rgba(0, 0, 0, 0.7);
    padding: 3px 7px;
    border-radius: 999px;
    color: #ffcc00;
}

.story-progress-fill {
    background: var(--accent);
    height: 100%;
    width: 0%;
}

/* FORZAR HISTORIAS CUADRADAS */
.storyAvatar,
.story-avatar-circle {
    border-radius: 12px !important;
}

/* ==========================================================
   MODALES BASE
========================================================== */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

.modal {
    width: 100%;
    max-width: 480px;
    background: #101010;
    border-radius: 18px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 16px;
}

/* ==========================================================
   LOGIN MODAL
========================================================== */
#sessionOverlay .session-modal-card {
    max-width: 380px;
    background: radial-gradient(circle at top left, #252525, #050505 60%, #000);
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.9);
}

.session-field label {
    font-size: 12px;
    color: #ccc;
}

.pass-wrapper {
    display: flex;
    border-radius: 10px;
    border: 1px solid #333;
    background: #121212;
    padding-right: 4px;
}

.toggle-pass-btn {
    background: none;
    border: none;
    cursor: pointer;
}

/* ==========================================================
   CHAT PRIVADO / CHAT PUBLICO
========================================================== */
.chat-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .75);
    z-index: 4000;
}

.chat-window {
    width: 100%;
    max-width: 480px;
    height: 100%;
    background: #050505;
    display: flex;
    flex-direction: column;
    border-radius: 18px;
}

.chat-header {
    height: 56px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    background: #111;
}

/* ==========================================================
   PERFIL / VIEWPROFILE / PRIVATE PHOTOS
========================================================== */
.profile-avatar-big {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    overflow: hidden;
}

.profile-section {
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid #222;
}

.profile-section-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
}

.profile-bio {
    font-size: 13px;
    color: #ddd;
}

.profile-photos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-top: 8px;
}

.private-locked-box {
    background: #151515;
    padding: 10px;
    margin-top: 10px;
    border-radius: 10px;
    display: none;
}

/* ==========================================================
   SIDE MENU
========================================================== */
#sideMenu {
    position: fixed;
    top: 0;
    left: -270px;
    width: 260px;
    bottom: 0;
    background: #050505;
    transition: left .25s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, .7);
    z-index: 5000;
}

.side-featured-card {
    background: linear-gradient(135deg, #ffcc00, #ff9f1c);
    padding: 14px;
    border-radius: 14px;
    margin: 14px;
}

.side-featured-avatars {
    display: flex;
    gap: 10px;
}

/* ==========================================================
   PWA BANNER
========================================================== */
.pwa-banner {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 70px;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.92);
    border-radius: 14px;
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
}

/* ==========================================================
   PERFIL — ESTRUCTURA DEL MODAL
========================================================== */

.profile-sheet-header {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    position: relative;
}

.profile-main-info {
    flex: 1;
    min-width: 0;
}

.profile-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.profile-name {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.profile-age-pill {
    background: #1c1c1c;
    color: #ccc;
    padding: 2px 6px;
    border-radius: 999px;
    font-size: 12px;
}

.profile-status-line {
    margin-top: 4px;
    font-size: 13px;
    color: #ccc;
}

/* Foto grande */
.profile-avatar-big {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    overflow: hidden;
    background: #222;
    position: relative;
}

.profile-avatar-big img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Botón para cambiar foto */
.avatar-edit-btn {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Secciones */
.profile-section {
    margin-top: 16px;
    padding-top: 8px;
    border-top: 1px solid #222;
}

.profile-section-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 6px;
}

/* Inputs */
.input-std {
    width: 100%;
    background: #181818;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 13px;
    color: #fff;
    margin-top: 4px;
    margin-bottom: 10px;
}

/* Boton Guardar */
.btn-primary {
    width: 100%;
    background: var(--accent);
    color: #000;
    font-weight: 700;
    border: none;
    padding: 10px;
    margin-top: 10px;
    border-radius: 12px;
    cursor: pointer;
}

/* Zona peligrosa */
.danger-zone {
    background: #190000;
    border: 1px solid #ff3b30;
    padding: 12px;
    border-radius: 12px;
}

.profile-section-text {
    font-size: 13px;
    color: #ffb3b3;
}

/* Botón eliminar */
.btn-danger {
    width: 100%;
    background: #330000;
    border: 1px solid #ff3b30;
    padding: 10px;
    color: #ffb3b3;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
}

.chat-img {
    max-width: 70%;
    border-radius: 10px;
    display: block;
    margin-top: 5px;
}

/* VISOR DE IMAGEN GLOBAL */
#imgViewerOverlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.95) !important;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999999999 !important;
}

/* Contenedor interno */
#imgViewerInner {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Imagen centrada y escalada correctamente */
.img-viewer-img {
    max-width: 95vw !important;
    max-height: 95vh !important;
    object-fit: contain !important;
    display: block;
}

/* Boton X */
.img-viewer-close {
    position: absolute !important;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.6) !important;
    border: none !important;
    color: white !important;
    font-size: 22px !important;
    border-radius: 50% !important;
    padding: 8px !important;
    cursor: pointer !important;
    z-index: 100000000 !important;
}

/* ==========================================================
   MODO CLARO AJUSTES EXTRA
========================================================== */

body.light-mode {
    background: var(--bg-main) !important;
}

body.light-mode header,
body.light-mode .card,
body.light-mode .modal,
body.light-mode .chat-window,
body.light-mode .bottom-nav {
    background: var(--bg-card) !important;
    color: var(--text-main);
}

body.light-mode .loc-input,
body.light-mode .round-btn,
body.light-mode .chip {
    background: var(--bg-soft);
    color: var(--text-main);
    border-color: var(--border-color);
}

/* ==========================================================
   MODO NEÓN BRILLANTE
========================================================== */

body.light-mode {

  --bg-main: #050510;
  --bg-card: #0c0f1e;
  --bg-soft: #111428;

  --text-main: #e6ffff;
  --text-soft: #9dfcff;

  --border-color: rgba(0,255,255,0.4);

  background: radial-gradient(circle at top, #0f1025 0%, #050510 70%);
  color: var(--text-main);
}

/* HEADER */
body.light-mode header {
  background: #0b0f1a;
  border-bottom: 1px solid rgba(0,255,255,0.3);
  box-shadow: 0 0 20px rgba(0,255,255,0.15);
}

/* CARDS */
body.light-mode .card {
  background: #0c0f1e;
  border: 1px solid rgba(0,255,255,0.25);
  box-shadow: 0 0 12px rgba(0,255,255,0.15);
}

/* BOTONES */
body.light-mode .round-btn,
body.light-mode .chip {
  background: #111428;
  border: 1px solid rgba(0,255,255,0.4);
  color: #00f0ff;
  box-shadow: 0 0 8px rgba(0,255,255,0.3);
}

/* BOTÓN ACTIVO */
body.light-mode .chip.active {
  background: linear-gradient(90deg,#00f0ff,#ff00ff,#ffe600);
  color: #000;
  box-shadow:
    0 0 12px rgba(0,240,255,0.8),
    0 0 20px rgba(255,0,255,0.6);
}

/* NAV INFERIOR */
body.light-mode .bottom-nav {
  background: #0b0f1a;
  border-top: 1px solid rgba(0,255,255,0.3);
}

/* ICONO ACTIVO */
body.light-mode .nav-item.active {
  color: #00f0ff;
  text-shadow: 0 0 8px rgba(0,240,255,0.8);
}

body.light-mode .nav-item.active .ni-icon {
  background: linear-gradient(135deg,#00f0ff,#ff00ff);
  box-shadow: 0 0 12px rgba(0,240,255,0.8);
}

/* INPUTS */
body.light-mode .input-std {
  background: #0b1020;
  border: 1px solid rgba(0,255,255,0.4);
  color: #fff;
  box-shadow: 0 0 6px rgba(0,255,255,0.2);
}

body.light-mode .input-std:focus {
  box-shadow:
    0 0 0 2px rgba(0,240,255,0.4),
    0 0 20px rgba(0,240,255,0.6);
}

/* EFECTO GENERAL NEÓN */
body.light-mode .card:hover {
  box-shadow:
    0 0 15px rgba(0,255,255,0.4),
    0 0 30px rgba(255,0,255,0.2);
  transform: scale(1.02);
  transition: 0.2s ease;
}

/* ==========================================================
   SIDE MENU – MODO NEÓN
========================================================== */

body.light-mode #sideMenu {
    background: linear-gradient(180deg,#0b0f1a,#070a12);
    border-right: 1px solid rgba(0,255,255,0.3);
    box-shadow:
        0 0 25px rgba(0,255,255,.25),
        inset -1px 0 0 rgba(0,255,255,.2);
}

/* Links del menú */
body.light-mode #sideMenu button,
body.light-mode #sideMenu a {
    color: #9dfcff;
    transition: left .35s cubic-bezier(.4,0,.2,1);
}

/* Hover */
body.light-mode #sideMenu button:hover,
body.light-mode #sideMenu a:hover {
    background: rgba(0,255,255,.08);
    color: #00f0ff;
    box-shadow: inset 0 0 10px rgba(0,255,255,.3);
}

/* Tarjeta destacada lateral */
body.light-mode .side-featured-card {
    background: linear-gradient(135deg,#00f0ff,#ff00ff);
    box-shadow:
        0 0 20px rgba(0,240,255,.6),
        0 0 40px rgba(255,0,255,.4);
    color: #000;
}


/* ==========================================
   FOTOS FLOTANTE DE TODOS LOS USUARIOS 
========================================== */

.floating-users {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.floating-users img {
  position: absolute;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  object-fit: cover;
  opacity: 0.15;
  filter: blur(1px);
  animation: floatMove linear infinite;
}

@keyframes floatMove {
  0% {
    transform: translateY(110vh);
  }
  100% {
    transform: translateY(-10vh);
  }
}






/* =========================================
   BILLETERA MATCHBOY
=========================================== */
.wallet-modal-box{
  width:min(460px,94vw);
  max-width:460px;
  max-height:90vh;
  overflow:hidden;
  padding:0!important;
  border:1px solid rgba(255,255,255,.10);
  background:linear-gradient(180deg,#10141f,#07090f)!important;
  color:#fff;
}

.wallet-modal-header{
  padding:13px 15px!important;
  margin:0!important;
  border-bottom:1px solid rgba(255,255,255,.08)!important;
  background:#0b0d14!important;
}

.wallet-body{
  padding:15px;
  overflow-y:auto;
  max-height:calc(90vh - 54px);
}

.wallet-hero{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:18px;
  border-radius:20px;
  background:radial-gradient(circle at top left,rgba(0,224,164,.24),transparent 45%),linear-gradient(135deg,#101d1a,#111827);
  border:1px solid rgba(0,224,164,.22);
  box-shadow:0 18px 45px rgba(0,0,0,.35);
  margin-bottom:12px;
}

.wallet-label{font-size:12px;color:#aeb7c8;margin-bottom:5px;}
.wallet-balance{font-size:30px;font-weight:900;color:#00e0a4;letter-spacing:-.04em;}
.wallet-small{font-size:12px;color:#bcc6d8;margin-top:4px;line-height:1.35;}
.wallet-icon{font-size:36px;filter:drop-shadow(0 8px 18px rgba(0,224,164,.25));}

.wallet-grid-mini{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:12px;}
.wallet-stat-card{background:#0d111b;border:1px solid rgba(255,255,255,.08);border-radius:16px;padding:13px;}
.wallet-stat-card strong{display:block;font-size:20px;color:#ffcc00;margin:3px 0;}
.wallet-stat-card small{display:block;font-size:11px;color:#8f9ab0;line-height:1.3;}

.wallet-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-bottom:12px;}
.wallet-actions .wallet-btn-ghost{grid-column:1 / -1;}
.wallet-btn{border:0;border-radius:13px;padding:11px 12px;font-weight:800;cursor:pointer;color:#fff;}
.wallet-btn-primary{background:linear-gradient(135deg,#00b884,#00e0a4);color:#04110d;}
.wallet-btn-secondary{background:linear-gradient(135deg,#ffcc00,#ffb300);color:#111;}
.wallet-btn-ghost{background:#151b29;color:#dfe7f7;border:1px solid rgba(255,255,255,.08);}

.wallet-recharge-box{background:#0d111b;border:1px solid rgba(255,255,255,.08);border-radius:16px;padding:13px;margin-bottom:12px;}
.wallet-section-title{font-size:14px;font-weight:800;color:#fff;margin-bottom:9px;}
.wallet-input{width:100%;box-sizing:border-box;margin-bottom:8px;border-radius:12px;border:1px solid #283247;background:#090d16;color:#fff;padding:11px 12px;outline:none;}
.wallet-input:focus{border-color:#00e0a4;box-shadow:0 0 0 2px rgba(0,224,164,.16);}
.wallet-pay-row{display:grid;grid-template-columns:1fr 1fr;gap:8px;}
.wallet-pay-btn{border:0;border-radius:12px;padding:10px 12px;background:#20283a;color:#fff;font-weight:800;cursor:pointer;}
.wallet-note{font-size:11px;color:#8f9ab0;line-height:1.35;margin-top:8px;}
.wallet-section-head{display:flex;justify-content:space-between;align-items:center;margin-top:4px;}
.wallet-transactions{display:grid;gap:8px;}
.wallet-empty{font-size:13px;color:#9ba6ba;text-align:center;padding:14px;border:1px dashed #283247;border-radius:14px;background:#0b0f18;}
.wallet-move{display:flex;justify-content:space-between;gap:10px;align-items:center;background:#0d111b;border:1px solid rgba(255,255,255,.07);border-radius:14px;padding:11px;}
.wallet-move-left{display:flex;flex-direction:column;gap:3px;min-width:0;}
.wallet-move-left strong{font-size:13px;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:250px;}
.wallet-move-left span{font-size:11px;color:#8390a5;}
.wallet-move-amount{font-size:13px;font-weight:900;white-space:nowrap;}
.wallet-move-amount.positive{color:#00e0a4;}
.wallet-move-amount.negative{color:#ff6b8a;}

@media(max-width:480px){
  .wallet-grid-mini,.wallet-actions,.wallet-pay-row{grid-template-columns:1fr;}
  .wallet-balance{font-size:26px;}
}

/* =========================================
   TARJETA DE BENEFICIOS USUARIO DESTACADO
   Solo se muestra dentro del modal de compra
=========================================== */

/* Si por error queda una tarjeta fuera del modal, se oculta para evitar iconos gigantes */
body > .featured-benefits-card,
main > .featured-benefits-card,
#userGrid > .featured-benefits-card,
.featured-top-card + .featured-benefits-card,
.featured-benefits-card:not(.in-featured-modal){
  display:none !important;
}

.featured-benefits-card.in-featured-modal{
  display:block !important;
  position:relative;
  overflow:hidden;
  width:100%;
  max-width:420px;
  margin:8px auto 14px;
  padding:14px;
  border-radius:18px;
  background:
    radial-gradient(circle at top left, rgba(255,204,0,.20), transparent 38%),
    radial-gradient(circle at top right, rgba(255,45,85,.15), transparent 34%),
    linear-gradient(180deg,#17121f,#0b0d14);
  border:1px solid rgba(255,204,0,.22);
  box-shadow:
    0 12px 34px rgba(0,0,0,.42),
    inset 0 1px 0 rgba(255,255,255,.06);
  color:#fff;
  box-sizing:border-box;
}

.featured-benefits-card.in-featured-modal .fb-glow{
  position:absolute;
  right:-55px;
  top:-55px;
  width:140px;
  height:140px;
  border-radius:50%;
  background:rgba(255,43,214,.22);
  filter:blur(28px);
  pointer-events:none;
}

.featured-benefits-card.in-featured-modal .fb-header{
  position:relative;
  display:flex;
  gap:10px;
  align-items:center;
  margin-bottom:12px;
}

.featured-benefits-card.in-featured-modal .fb-crown{
  width:42px;
  height:42px;
  min-width:42px;
  max-width:42px;
  border-radius:15px;
  background:linear-gradient(135deg,#ffcc00,#ff8a00);
  color:#101010;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
  overflow:hidden;
  box-shadow:0 10px 24px rgba(255,204,0,.25);
}

.featured-benefits-card.in-featured-modal .fb-crown svg{
  width:24px !important;
  height:24px !important;
  max-width:24px !important;
  max-height:24px !important;
  display:block;
}

.featured-benefits-card.in-featured-modal .fb-title-wrap{
  min-width:0;
}

.featured-benefits-card.in-featured-modal .fb-badge{
  display:inline-flex;
  align-items:center;
  width:max-content;
  max-width:100%;
  margin-bottom:4px;
  padding:3px 8px;
  border-radius:999px;
  background:rgba(255,204,0,.14);
  border:1px solid rgba(255,204,0,.22);
  color:#ffcc00;
  font-size:10px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.45px;
}

.featured-benefits-card.in-featured-modal h3{
  margin:0;
  font-size:17px;
  line-height:1.15;
  color:#fff;
}

.featured-benefits-card.in-featured-modal p{
  margin:4px 0 0;
  color:#cbd5e1;
  font-size:12px;
  line-height:1.38;
}

.featured-benefits-card.in-featured-modal .fb-benefits-grid{
  position:relative;
  display:grid;
  grid-template-columns:1fr;
  gap:8px;
}

.featured-benefits-card.in-featured-modal .fb-benefit{
  display:flex;
  gap:9px;
  align-items:flex-start;
  padding:9px;
  border-radius:14px;
  background:rgba(255,255,255,.055);
  border:1px solid rgba(255,255,255,.08);
  box-sizing:border-box;
}

.featured-benefits-card.in-featured-modal .fb-benefit span{
  width:30px;
  height:30px;
  min-width:30px;
  max-width:30px;
  border-radius:11px;
  background:rgba(255,204,0,.12);
  color:#ffcc00;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
  overflow:hidden;
}

.featured-benefits-card.in-featured-modal .fb-benefit svg{
  width:17px !important;
  height:17px !important;
  max-width:17px !important;
  max-height:17px !important;
  display:block;
}

.featured-benefits-card.in-featured-modal .fb-benefit strong{
  display:block;
  font-size:12px;
  color:#fff;
  margin-bottom:2px;
}

.featured-benefits-card.in-featured-modal .fb-benefit small{
  display:block;
  color:#aeb4c7;
  font-size:10.5px;
  line-height:1.35;
}

.featured-benefits-card.in-featured-modal .fb-prices{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:11px;
}

.featured-benefits-card.in-featured-modal .fb-prices span{
  padding:6px 8px;
  border-radius:999px;
  background:rgba(255,204,0,.12);
  border:1px solid rgba(255,204,0,.20);
  color:#ffdf6b;
  font-size:11px;
  font-weight:800;
}

@media(max-width:520px){
  .featured-benefits-card.in-featured-modal{
    padding:13px;
    border-radius:16px;
    margin-top:6px;
  }

  .featured-benefits-card.in-featured-modal .fb-header{
    align-items:flex-start;
  }

  .featured-benefits-card.in-featured-modal .fb-crown{
    width:38px;
    height:38px;
    min-width:38px;
    max-width:38px;
    border-radius:14px;
  }

  .featured-benefits-card.in-featured-modal .fb-crown svg{
    width:22px !important;
    height:22px !important;
  }

  .featured-benefits-card.in-featured-modal h3{
    font-size:16px;
  }
}



/* ==========================================================
   FIX ELEGANTE: HEADER/FILTROS NO ENCIMA DE MODALES
   Corrige:
   - Cercanos/Conectados/Nuevos encima de todo.
   - Menu lateral cortado.
   - Feed cortado arriba.
   - Chat privado/publico sin parte superior.
   ========================================================== */

/* Header normal, bonito, pero sin tapar modales */
body.mb-logged-in header{
  z-index:900 !important;
}

/* Filtros dentro del header, nunca encima de paneles */
body.mb-logged-in .filter-row{
  z-index:901 !important;
}

/* Cuando hay cualquier modal/panel abierto, el header queda debajo */
body:has(.modal-backdrop[style*="display: flex"]) header,
body:has(.modal-backdrop[style*="display:flex"]) header,
body:has(.modal-backdrop.active) header,
body:has(.modal-backdrop.is-open) header,
body:has(.chat-modal[style*="display: flex"]) header,
body:has(.chat-modal[style*="display:flex"]) header,
body:has(#feedPanel[style*="display: flex"]) header,
body:has(#feedPanel[style*="display:flex"]) header,
body:has(#feedModal[style*="display: flex"]) header,
body:has(#feedModal[style*="display:flex"]) header{
  z-index:1 !important;
}

/* Modales siempre por encima del header */
.modal-backdrop,
#profileModal,
#inboxModal,
#privateRequestsModal,
#walletModal,
#storyViewer,
#imgViewer,
#sessionOverlay,
#legalOverlay{
  z-index:1000000 !important;
}

/* Chat privado y publico por encima del header */
.chat-modal,
#privateChatModal,
#publicChatModal,
#chatModal,
#publicChatOverlay,
.private-chat-modal,
.public-chat-modal{
  z-index:1000001 !important;
}

/* Feed por encima del header */
#feedPanel,
#feedModal,
.feed-panel,
.feed-modal{
  z-index:1000001 !important;
}

/* Menu lateral por encima del header y completo */
#sideMenu,
.side-menu,
.sidebar,
#leftMenu,
#drawerMenu,
.drawer-menu{
  z-index:1000002 !important;
  top:0 !important;
  height:100vh !important;
  max-height:100vh !important;
  overflow-y:auto !important;
  padding-top:18px !important;
  padding-bottom:26px !important;
  -webkit-overflow-scrolling:touch !important;
}

/* Si el menu lateral tiene backdrop, tambien encima */
#sideMenuBackdrop,
.side-menu-backdrop,
.drawer-backdrop{
  z-index:1000001 !important;
}

/* Evita que el header sticky tape el menu lateral */
body:has(#sideMenu[style*="display: block"]) header,
body:has(#sideMenu[style*="display:block"]) header,
body:has(.side-menu.open) header,
body:has(.sidebar.open) header,
body:has(#leftMenu.open) header,
body:has(#drawerMenu.open) header{
  z-index:1 !important;
}

/* Feed completo en movil */
#feedPanel,
#feedModal,
.feed-panel,
.feed-modal{
  position:fixed !important;
  inset:0 !important;
  width:100vw !important;
  height:100vh !important;
  max-height:100vh !important;
  overflow:hidden !important;
  padding-top:0 !important;
}

#feedPanel .modal,
#feedModal .modal,
.feed-panel .modal,
.feed-modal .modal,
#feedPanel .feed-box,
#feedModal .feed-box,
.feed-panel .feed-box,
.feed-modal .feed-box{
  max-height:100vh !important;
  height:100vh !important;
  overflow-y:auto !important;
  -webkit-overflow-scrolling:touch !important;
}

/* Chat completo en movil */
.chat-modal,
#privateChatModal,
#publicChatModal,
#publicChatOverlay{
  position:fixed !important;
  inset:0 !important;
  width:100vw !important;
  height:100vh !important;
  max-height:100vh !important;
  padding:0 !important;
}

.chat-window,
.private-chat-window,
.public-chat-window,
#privateChatModal .modal,
#publicChatModal .modal,
#publicChatOverlay .modal{
  height:100vh !important;
  max-height:100vh !important;
  border-radius:0 !important;
  overflow:hidden !important;
}

/* Cabecera del chat visible arriba */
.chat-header,
.private-chat-header,
.public-chat-header{
  position:relative !important;
  top:0 !important;
  z-index:5 !important;
  min-height:56px !important;
  flex-shrink:0 !important;
}

/* Perfil y modales con scroll completo */
#profileModal,
#inboxModal,
#privateRequestsModal,
#walletModal{
  overflow-y:auto !important;
  align-items:flex-start !important;
  padding-top:10px !important;
  -webkit-overflow-scrolling:touch !important;
}

#profileModal .modal,
#inboxModal .modal,
#privateRequestsModal .modal,
#walletModal .modal{
  margin:0 auto 90px !important;
  max-height:none !important;
  height:auto !important;
  overflow:visible !important;
}

/* Menu lateral: boton cerrar y contenido no tapado */
.side-menu .close-btn,
.sidebar .close-btn,
#sideMenu .close-btn,
#leftMenu .close-btn{
  position:sticky !important;
  top:0 !important;
  z-index:10 !important;
}

/* En pantallas pequeñas, asegurar margen inferior por nav */
@media(max-width:700px){
  body.mb-logged-in header{
    border-radius:0 0 22px 22px !important;
  }

  #sideMenu,
  .side-menu,
  .sidebar,
  #leftMenu,
  #drawerMenu{
    width:min(82vw,360px) !important;
  }

  .chat-window,
  .private-chat-window,
  .public-chat-window{
    width:100vw !important;
    max-width:100vw !important;
  }
}

/* Fallback para navegadores sin :has:
   al menos los paneles quedan por encima del header */
.modal-backdrop,
.chat-modal,
#feedPanel,
#feedModal,
.side-menu,
.sidebar,
#sideMenu{
  isolation:isolate !important;
}

/* Corrige que el header quede pegado encima visualmente cuando el usuario desplaza dentro de feed */
#feedPanel header,
#feedModal header,
.feed-panel header,
.feed-modal header,
.chat-modal header{
  position:relative !important;
  z-index:auto !important;
}

/* Mantener el diseno elegante anterior */
body.mb-logged-in .bottom-nav{
  z-index:950 !important;
}

/* Cuando chat/feed/menu esta abierto, el nav inferior no debe tapar contenido */
body:has(.chat-modal[style*="display: flex"]) .bottom-nav,
body:has(.chat-modal[style*="display:flex"]) .bottom-nav,
body:has(#feedPanel[style*="display: flex"]) .bottom-nav,
body:has(#feedPanel[style*="display:flex"]) .bottom-nav,
body:has(#feedModal[style*="display: flex"]) .bottom-nav,
body:has(#feedModal[style*="display:flex"]) .bottom-nav,
body:has(#sideMenu[style*="display: block"]) .bottom-nav,
body:has(#sideMenu[style*="display:block"]) .bottom-nav{
  z-index:1 !important;
}



/* ==========================================================
   MATCHBOY PREMIUM MENU + DESTACADOS V2
   ========================================================== */
#sideMenu.side-menu-premium{
  position:fixed !important;
  top:0 !important;
  left:0 !important;
  bottom:0 !important;
  width:min(86vw,380px) !important;
  background:linear-gradient(180deg,#05060b,#020207) !important;
  z-index:1000002 !important;
  transform:translateX(-100%);
  transition:transform .25s ease;
  display:flex !important;
  flex-direction:column !important;
  border-right:1px solid rgba(0,255,220,.12);
  box-shadow:28px 0 70px rgba(0,0,0,.75);
  overflow:hidden !important;
}
.side-premium-head{padding:18px 16px 14px;border-bottom:1px solid rgba(255,255,255,.08);display:flex;align-items:center;gap:10px;position:relative;background:radial-gradient(circle at 0 0,rgba(124,60,255,.24),transparent 45%)}
.side-profile-card{display:flex;align-items:center;gap:12px;min-width:0;flex:1}
.side-avatar-premium{width:58px;height:58px;border-radius:20px;padding:2px;background:linear-gradient(135deg,#25a7ff,#7c3cff,#ff2bd6);position:relative;flex-shrink:0;box-shadow:0 12px 28px rgba(124,60,255,.32)}
.side-avatar-premium img{width:100%;height:100%;border-radius:17px;object-fit:cover;display:block;border:2px solid #05060b}
.side-online-dot{position:absolute;right:2px;bottom:2px;width:13px;height:13px;border-radius:50%;background:#22e76b;border:2px solid #05060b;box-shadow:0 0 10px #22e76b}
.side-profile-info{min-width:0}.side-profile-title{font-size:18px;font-weight:950;color:#fff;line-height:1.1}.side-profile-sub{font-size:12px;color:#aeb4c7;margin-top:3px}.side-profile-pills{display:flex;gap:6px;margin-top:7px;flex-wrap:wrap}.side-profile-pills span{font-size:10px;font-weight:900;color:#dffcff;background:rgba(0,255,220,.10);border:1px solid rgba(0,255,220,.16);padding:4px 7px;border-radius:999px}
.side-close-premium{width:38px;height:38px;border-radius:14px;border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.05);color:#fff;font-weight:900;font-size:16px;cursor:pointer;flex-shrink:0}
.side-download-pro{margin:14px 16px 10px;padding:13px;border-radius:20px;border:1px solid rgba(255,204,0,.28);background:radial-gradient(circle at 20% 0,rgba(255,204,0,.28),transparent 42%),linear-gradient(135deg,rgba(255,255,255,.08),rgba(255,255,255,.035));display:flex;align-items:center;gap:12px;text-decoration:none;color:#fff;box-shadow:0 14px 34px rgba(0,0,0,.38)}
.side-download-play{width:42px;height:42px;border-radius:15px;background:linear-gradient(135deg,#ffcc00,#ff8a00);color:#000;display:flex;align-items:center;justify-content:center;flex-shrink:0;box-shadow:0 8px 24px rgba(255,204,0,.28)}
.side-download-play svg{width:24px;height:24px}.side-download-pro small{display:block;color:#bfc4d8;font-size:11px}.side-download-pro strong{display:block;color:#fff;font-size:15px;margin-top:1px}.side-download-pro>span{margin-left:auto;background:#fff;color:#05060b;font-weight:950;font-size:11px;border-radius:999px;padding:7px 9px}
.side-banner-premium{width:calc(100% - 32px);height:58px;margin:0 auto 12px;position:relative;overflow:hidden;border-radius:18px;background:#0c0e18;border:1px solid rgba(255,255,255,.08);box-shadow:0 12px 30px rgba(0,0,0,.35)}
.side-banner-premium img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;cursor:pointer;transition:opacity .5s ease}
.side-menu-scroll{flex:1;overflow-y:auto;padding:6px 10px 12px;-webkit-overflow-scrolling:touch}.side-menu-scroll::-webkit-scrollbar{width:4px}.side-menu-scroll::-webkit-scrollbar-thumb{background:rgba(255,255,255,.18);border-radius:99px}
.side-menu-premium .side-menu-btn{width:100%;padding:12px 12px;margin:4px 0;border:none;border-radius:16px;background:transparent;display:flex;align-items:center;gap:12px;color:#eafcff;font-size:16px;font-weight:750;cursor:pointer;transition:background .18s ease,transform .18s ease}.side-menu-premium .side-menu-btn:hover{background:rgba(255,255,255,.06)}.side-menu-premium .side-menu-btn:active{transform:scale(.98)}
.side-menu-premium .side-icon{width:28px;height:28px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.side-menu-premium .side-icon svg{width:24px;height:24px;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.side-yellow{color:#ffcc00}.side-green{color:#00e0a4}.side-blue{color:#40a9ff}.side-red{color:#ff4d5f}.side-orange{color:#ff7a18}
.side-menu-ad-btn{background:linear-gradient(90deg,rgba(255,204,0,.13),rgba(255,138,0,.07)) !important;border:1px solid rgba(255,204,0,.16) !important}.side-menu-ad-btn small{margin-left:auto;color:#ffcc00;font-size:11px;font-weight:900;background:rgba(255,204,0,.10);padding:5px 7px;border-radius:999px}
.side-legal-card{margin:12px 6px 6px;padding:10px;border:1px solid rgba(255,255,255,.08);border-radius:18px;background:linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,.02))}.side-legal-toggle{width:100%;background:none;border:none;color:#fff;display:flex;align-items:center;justify-content:space-between;cursor:pointer;font-size:15px;font-weight:950;padding:6px}.side-legal-menu{display:none;margin-top:8px}.side-legal-menu.is-open{display:block}.side-sub-btn{width:100%;padding:10px 12px;margin-top:5px;border:none;border-radius:12px;background:rgba(255,255,255,.045);color:#cbd5e1;text-align:left;font-size:13px;font-weight:750;cursor:pointer}.side-sub-btn:hover{background:rgba(255,255,255,.08);color:#fff}
.side-premium-footer{padding:12px 16px 16px;border-top:1px solid rgba(255,255,255,.08);background:linear-gradient(180deg,rgba(0,0,0,0),rgba(0,0,0,.42))}.side-logout-pro{width:100%;padding:13px;border:none;border-radius:16px;background:linear-gradient(135deg,rgba(255,59,95,.24),rgba(120,0,0,.5));color:#ffd6df;display:flex;align-items:center;justify-content:center;gap:10px;font-size:15px;font-weight:900;cursor:pointer}.side-logout-pro svg{width:20px;height:20px;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.featured-top-card{overflow:hidden}.featured-cta-pro{min-width:152px !important;flex-direction:column !important;align-items:center !important;justify-content:center !important;gap:0 !important;padding:10px 16px !important;border-radius:999px !important;background:linear-gradient(135deg,#ffcc00,#ff8a00,#ffcc00) !important;color:#05060b !important;box-shadow:0 0 0 1px rgba(255,255,255,.18),0 14px 30px rgba(255,204,0,.36),0 0 28px rgba(255,204,0,.20) !important;animation:featuredCtaPulse 1.8s infinite ease-in-out}.featured-cta-main{font-size:13px;font-weight:950;letter-spacing:.2px}.featured-cta-sub{font-size:10px;font-weight:850;opacity:.78;margin-top:2px}@keyframes featuredCtaPulse{0%,100%{transform:translateY(0) scale(1)}50%{transform:translateY(-1px) scale(1.03)}}
.featured-benefits-mini{width:min(720px,94vw);margin:10px auto 14px;padding:13px;border-radius:20px;border:1px solid rgba(0,231,255,.18);background:linear-gradient(135deg,rgba(0,231,255,.08),rgba(124,60,255,.08),rgba(255,43,214,.06));display:flex;align-items:center;gap:12px;color:#fff;cursor:pointer;box-shadow:0 14px 34px rgba(0,0,0,.30)}.fbm-icon{width:42px;height:42px;border-radius:15px;background:linear-gradient(135deg,#ffcc00,#ff8a00);color:#05060b;display:flex;align-items:center;justify-content:center;flex-shrink:0}.fbm-icon svg{width:24px;height:24px}.fbm-text{min-width:0;flex:1}.fbm-text strong{display:block;font-size:15px;font-weight:950}.fbm-text span{display:block;font-size:12px;color:#cbd5e1;margin-top:3px;line-height:1.35}.fbm-action{background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.10);border-radius:999px;padding:7px 11px;font-size:12px;font-weight:900;color:#fff;flex-shrink:0}
.featured-benefits-info-modal{position:fixed;inset:0;background:rgba(0,0,0,.78);backdrop-filter:blur(8px);z-index:1000004;display:none;align-items:center;justify-content:center;padding:16px}.featured-benefits-info-box{width:min(440px,94vw);max-height:88vh;overflow-y:auto;border-radius:24px;background:linear-gradient(180deg,#151724,#070811);border:1px solid rgba(255,255,255,.10);box-shadow:0 26px 90px rgba(0,0,0,.78);padding:16px;color:#fff}.featured-benefits-info-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}.featured-benefits-info-head span{display:inline-flex;background:rgba(255,204,0,.12);color:#ffcc00;border:1px solid rgba(255,204,0,.20);font-size:11px;font-weight:950;border-radius:999px;padding:5px 8px;text-transform:uppercase}.featured-benefits-info-head h3{margin:8px 0 0;font-size:22px;line-height:1.05}.featured-benefits-info-head button{width:36px;height:36px;border-radius:14px;border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.06);color:#fff;font-weight:950;cursor:pointer}.featured-benefits-info-list{display:grid;gap:9px}.benefit-info-item{padding:12px;border-radius:16px;background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.07)}.benefit-info-item b{display:block;font-size:14px}.benefit-info-item small{display:block;margin-top:4px;color:#aeb4c7;line-height:1.35}.featured-benefits-info-prices{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.featured-benefits-info-prices span{background:rgba(255,204,0,.11);border:1px solid rgba(255,204,0,.18);color:#ffcc00;font-weight:900;font-size:12px;border-radius:999px;padding:7px 9px}.featured-benefits-info-cta{width:100%;border:none;border-radius:16px;padding:13px;background:linear-gradient(135deg,#ffcc00,#ff8a00);color:#05060b;font-weight:950;cursor:pointer}
/* Oculta la tarjeta antigua dentro del modal de pago si quedo guardada en cache */
.featured-benefits-card.in-featured-modal{display:none !important}
@media(max-width:640px){.featured-top-header{align-items:center}.featured-cta-pro{min-width:138px !important;padding:9px 12px !important}.featured-cta-main{font-size:12px}.featured-cta-sub{font-size:9px}.featured-benefits-mini{margin-top:8px}.side-profile-title{font-size:16px}}



/* =====================================================
   HEADER FIX V2 - GPS REAL Y BOTONES MISMO ESTILO
===================================================== */

/* GPS igual al resto de botones superiores */
.gps-status-mini{
  position:relative;
  width:auto !important;
  min-width:72px !important;
  height:38px !important;
  padding:0 11px !important;
  border-radius:14px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:7px !important;
  color:#d1d5db !important;
  background:#1f1f1f !important;
  border:1px solid #333 !important;
  box-shadow:none !important;
  font-size:12px !important;
  font-weight:900 !important;
  line-height:1 !important;
}

.gps-status-mini .gps-mini-dot{
  width:8px;
  height:8px;
  border-radius:50%;
  flex:0 0 auto;
  background:#ff3b5c;
  box-shadow:0 0 8px rgba(255,59,92,.75);
}

.gps-status-mini .gps-mini-text{
  font-size:12px;
  font-weight:900;
  color:inherit;
}

.gps-status-mini.gps-off{
  color:#ffb7c3 !important;
  border-color:rgba(255,59,92,.36) !important;
}

.gps-status-mini.gps-checking{
  color:#ffcc00 !important;
  border-color:rgba(255,204,0,.42) !important;
}

.gps-status-mini.gps-checking .gps-mini-dot{
  background:#ffcc00;
  box-shadow:0 0 10px rgba(255,204,0,.85);
  animation:gpsMiniPulse .85s infinite alternate;
}

.gps-status-mini.gps-on{
  color:#92ffc8 !important;
  border-color:rgba(34,231,107,.42) !important;
}

.gps-status-mini.gps-on .gps-mini-dot{
  background:#22e76b;
  box-shadow:0 0 9px rgba(34,231,107,.85);
}

@keyframes gpsMiniPulse{
  from{opacity:.55;transform:scale(.9)}
  to{opacity:1;transform:scale(1.22)}
}

/* Boton salir compacto, mismo tamaño que los demas */
.logout-mini-pro{
  width:38px !important;
  min-width:38px !important;
  height:38px !important;
  padding:0 !important;
  border-radius:14px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  color:#ffb7c3 !important;
  background:#1f1f1f !important;
  border:1px solid rgba(255,59,92,.40) !important;
  box-shadow:none !important;
}

.logout-mini-pro svg{
  width:19px !important;
  height:19px !important;
  stroke:currentColor !important;
}

.logout-mini-pro:hover{
  color:#fff !important;
  background:rgba(255,59,92,.16) !important;
}

/* En pantallas pequenas queda solo el icono GPS con punto */
@media(max-width:420px){
  .gps-status-mini{
    min-width:44px !important;
    width:44px !important;
    padding:0 !important;
  }

  .gps-status-mini .gps-mini-text{
    display:none !important;
  }
}


/* =====================================================
   FIX FINAL: GPS SOLO ICONO + LINK ADMIN MENU LATERAL
===================================================== */
.gps-status-mini{
  width:38px !important;
  min-width:38px !important;
  height:38px !important;
  padding:0 !important;
  border-radius:14px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:0 !important;
  font-size:0 !important;
}
.gps-status-mini .gps-mini-text,
.gps-status-mini .gps-mini-dot{display:none !important;}
.gps-status-mini .gps-mini-icon{
  width:21px !important;
  height:21px !important;
  stroke:currentColor !important;
  stroke-width:2.15 !important;
  stroke-linecap:round !important;
  stroke-linejoin:round !important;
}
.gps-status-mini.gps-off{
  color:#ff4d5f !important;
  border-color:rgba(255,77,95,.42) !important;
  background:rgba(255,77,95,.08) !important;
}
.gps-status-mini.gps-checking{
  color:#ffcc00 !important;
  border-color:rgba(255,204,0,.46) !important;
  background:rgba(255,204,0,.08) !important;
}
.gps-status-mini.gps-checking .gps-mini-icon{animation:gpsIconPulse .85s infinite alternate;}
.gps-status-mini.gps-on{
  color:#22e76b !important;
  border-color:rgba(34,231,107,.46) !important;
  background:rgba(34,231,107,.08) !important;
  box-shadow:0 0 12px rgba(34,231,107,.18) !important;
}
@keyframes gpsIconPulse{from{opacity:.55;transform:scale(.92)}to{opacity:1;transform:scale(1.12)}}
.side-menu-premium .side-admin-link{
  background:linear-gradient(90deg,rgba(124,60,255,.14),rgba(0,231,255,.07)) !important;
  border:1px solid rgba(124,60,255,.22) !important;
  text-decoration:none !important;
}
.side-menu-premium .side-purple{color:#a78bfa;}


/* =====================================================
   HOME PREMIUM CLEAN V2 - SIN FEED CENTRAL
===================================================== */

/* Mantener el menu inferior como estaba antes */
.bottom-nav{
  grid-template-columns:repeat(4,1fr) !important;
}

.bottom-nav .nav-item{
  height:auto !important;
  margin-top:0 !important;
}

.bottom-nav .nav-feed-center,
.bottom-nav-pro-v2 .nav-feed-center{
  margin-top:0 !important;
  height:auto !important;
}

.feed-center-orb{
  all:unset !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
}

.feed-center-label{
  all:unset !important;
}

.feed-center-badge{
  position:absolute !important;
}

/* Boton editar perfil restaurado y mas limpio */
.floating-edit{
  right:22px !important;
  bottom:86px !important;
  min-height:48px !important;
  padding:0 22px !important;
  border-radius:999px !important;
  font-size:15px !important;
  font-weight:950 !important;
  background:linear-gradient(135deg,#ffcc00,#ff9f0a) !important;
  color:#000 !important;
  box-shadow:0 12px 30px rgba(255,204,0,.32) !important;
}

/* Tarjeta destacados mas compacta */
.featured-top-card{
  width:min(720px,94vw) !important;
  margin:10px auto 10px !important;
  padding:14px 16px !important;
  border-radius:24px !important;
  min-height:auto !important;
  background:
    radial-gradient(circle at 14% 0%,rgba(255,204,0,.15),transparent 32%),
    radial-gradient(circle at 90% 10%,rgba(255,43,214,.12),transparent 36%),
    linear-gradient(145deg,rgba(255,255,255,.075),rgba(255,255,255,.030)) !important;
  border:1px solid rgba(255,255,255,.09) !important;
  box-shadow:0 16px 46px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.05) !important;
  overflow:hidden !important;
}

.featured-top-header{
  margin-bottom:10px !important;
  gap:10px !important;
}

.featured-top-title{
  color:#fff !important;
  font-size:20px !important;
  line-height:1.05 !important;
  font-weight:950 !important;
}

.featured-top-sub{
  color:#aeb4c7 !important;
  font-size:13px !important;
  margin-top:3px !important;
}

.featured-top-avatars{
  gap:10px !important;
  flex-wrap:nowrap !important;
  overflow-x:auto !important;
  padding:2px 2px 4px !important;
}

.featured-top-avatars::-webkit-scrollbar{
  display:none !important;
}

.featured-top-avatars .avatar-wrapper{
  width:54px !important;
  height:54px !important;
  min-width:54px !important;
}

/* Boton Ponme aqui elegante con SVG */
.featured-cta-pro,
.featured-top-btn{
  position:relative !important;
  min-width:126px !important;
  min-height:46px !important;
  border-radius:999px !important;
  padding:7px 13px !important;
  border:1px solid rgba(255,204,0,.42) !important;
  background:
    radial-gradient(circle at 20% 0%,rgba(255,255,255,.38),transparent 32%),
    linear-gradient(135deg,#ffcc00,#ff9f0a) !important;
  color:#000 !important;
  box-shadow:0 10px 26px rgba(255,204,0,.30),0 0 18px rgba(255,204,0,.18) !important;
  display:flex !important;
  flex-direction:row !important;
  align-items:center !important;
  justify-content:center !important;
  gap:7px !important;
  text-transform:none !important;
}

.featured-cta-icon{
  width:20px;
  height:20px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#000;
  flex:0 0 auto;
}

.featured-cta-icon svg{
  width:20px;
  height:20px;
}

.featured-cta-main{
  font-size:14px !important;
  font-weight:1000 !important;
  line-height:1 !important;
  white-space:nowrap !important;
}

.featured-cta-sub{
  display:none !important;
}

/* Beneficios desplegable compacto */
.featured-benefits-mini.featured-benefits-collapsible{
  width:min(720px,94vw) !important;
  margin:8px auto 10px !important;
  padding:11px 12px !important;
  border-radius:20px !important;
  display:grid !important;
  grid-template-columns:auto 1fr auto !important;
  align-items:center !important;
  gap:10px !important;
  background:
    radial-gradient(circle at 0% 0%,rgba(0,231,255,.13),transparent 38%),
    radial-gradient(circle at 95% 0%,rgba(255,43,214,.12),transparent 38%),
    linear-gradient(180deg,rgba(255,255,255,.060),rgba(255,255,255,.030)) !important;
  border:1px solid rgba(255,255,255,.09) !important;
  box-shadow:0 12px 34px rgba(0,0,0,.32) !important;
}

.featured-benefits-mini .fbm-icon{
  width:43px !important;
  height:43px !important;
  border-radius:15px !important;
  background:linear-gradient(135deg,#ffcc00,#ff9f0a) !important;
  color:#000 !important;
}

.featured-benefits-mini .fbm-text strong{
  font-size:16px !important;
}

.featured-benefits-mini .fbm-text span{
  font-size:12px !important;
  color:#bfc6d9 !important;
}

.featured-benefits-mini .fbm-action{
  border:0 !important;
  min-width:56px !important;
  height:36px !important;
  border-radius:999px !important;
  background:rgba(255,255,255,.10) !important;
  color:#fff !important;
  font-size:13px !important;
  font-weight:950 !important;
}

.featured-benefits-mini.is-open .fbm-action{
  background:#ffcc00 !important;
  color:#000 !important;
}

.fbm-body{
  grid-column:1 / -1;
  display:none;
  margin-top:5px;
  padding:10px;
  border-radius:16px;
  background:rgba(0,0,0,.22);
  border:1px solid rgba(255,255,255,.08);
  color:#dce3ff;
  font-size:12px;
  line-height:1.35;
}

.featured-benefits-mini.is-open .fbm-body{
  display:grid;
  gap:7px;
}

.fbm-body div:before{
  content:"✓ ";
  color:#22e76b;
  font-weight:1000;
}

.fbm-body button{
  margin-top:4px;
  border:0;
  border-radius:999px;
  padding:9px 12px;
  background:linear-gradient(135deg,#7c3cff,#ff2bd6);
  color:#fff;
  font-weight:950;
}

/* Alcance de busqueda mas elegante con SVG */
.scope-switcher{
  width:min(720px,94vw) !important;
  margin:8px auto 10px !important;
  padding:10px !important;
  border-radius:20px !important;
  background:
    radial-gradient(circle at 0% 0%,rgba(37,167,255,.10),transparent 35%),
    linear-gradient(180deg,#121621,#090c14) !important;
  border:1px solid rgba(255,255,255,.10) !important;
  box-shadow:0 12px 30px rgba(0,0,0,.30) !important;
}

.scope-switcher-title{
  color:#b8c0d5 !important;
  font-size:12px !important;
  font-weight:900 !important;
}

.scope-switcher button{
  min-height:42px !important;
  border-radius:999px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:7px !important;
  padding:8px 13px !important;
  background:rgba(255,255,255,.07) !important;
  border:1px solid rgba(255,255,255,.10) !important;
  color:#e6ecff !important;
  font-weight:950 !important;
}

.scope-switcher button svg{
  width:18px;
  height:18px;
}

.scope-switcher button.active{
  background:linear-gradient(135deg,#ffcc00,#ff9f0a) !important;
  color:#000 !important;
  border-color:#ffcc00 !important;
}

/* Modal paquetes: compacto, activo visible y botones no gigantes */
#featuredModal .modal-featured{
  border-radius:26px !important;
  background:
    radial-gradient(circle at 15% 0%,rgba(255,204,0,.12),transparent 35%),
    radial-gradient(circle at 90% 0%,rgba(255,43,214,.10),transparent 35%),
    linear-gradient(180deg,#15161d,#090a10) !important;
  border:1px solid rgba(255,255,255,.10) !important;
}

#featuredModal .modal-title{
  font-size:21px !important;
  font-weight:1000 !important;
}

.featured-plan-grid,
.featured-plan-box{
  display:grid !important;
  gap:9px !important;
}

.featured-wallet-plan{
  display:block !important;
  min-height:auto !important;
  padding:12px 14px !important;
  border-radius:18px !important;
}

.featured-wallet-plan[data-plan="7"]{
  background:linear-gradient(135deg,rgba(37,167,255,.17),#101827) !important;
  border-color:rgba(37,167,255,.34) !important;
}

.featured-wallet-plan[data-plan="15"]{
  background:linear-gradient(135deg,rgba(124,60,255,.18),#101827) !important;
  border-color:rgba(124,60,255,.36) !important;
}

.featured-wallet-plan[data-plan="30"]{
  background:linear-gradient(135deg,rgba(255,204,0,.18),#101827) !important;
  border-color:rgba(255,204,0,.38) !important;
}

.featured-plan-title{
  font-size:16px !important;
}

.featured-plan-price{
  font-size:24px !important;
  letter-spacing:-.04em !important;
}

.featured-plan-desc{
  font-size:12px !important;
  color:#c7ccda !important;
}

.featured-plan-pay-btn{
  min-height:36px !important;
  margin-top:8px !important;
  font-size:12px !important;
  border-radius:12px !important;
}

.featured-wallet-plan[data-plan="7"] .featured-plan-pay-btn{
  background:linear-gradient(135deg,#25a7ff,#006eff) !important;
  color:#fff !important;
}

.featured-wallet-plan[data-plan="15"] .featured-plan-pay-btn{
  background:linear-gradient(135deg,#7c3cff,#ff2bd6) !important;
  color:#fff !important;
}

.featured-wallet-plan[data-plan="30"] .featured-plan-pay-btn{
  background:linear-gradient(135deg,#ffcc00,#ff9f0a) !important;
  color:#000 !important;
}

.featured-wallet-plan.active-plan{
  display:block !important;
  order:-10 !important;
  border:2px solid #22e76b !important;
  box-shadow:0 0 18px rgba(34,231,107,.22),0 0 22px rgba(255,204,0,.12) !important;
}

.featured-wallet-plan.active-plan .featured-plan-pay-btn{
  background:rgba(34,231,107,.12) !important;
  color:#92ffc8 !important;
  border:1px solid rgba(34,231,107,.35) !important;
}

#featuredCurrentStatus{
  display:block;
}

/* Por si quedó de la version anterior, nunca ocultar el contenedor completo de planes */
#featuredOtherPlansBox{
  display:grid !important;
}

.featured-other-toggle{
  display:none !important;
}

@media(max-width:640px){
  .featured-top-card{
    padding:13px 14px !important;
    border-radius:22px !important;
  }

  .featured-cta-pro,
  .featured-top-btn{
    min-width:116px !important;
    min-height:42px !important;
    padding:6px 11px !important;
  }

  .featured-cta-main{
    font-size:13px !important;
  }

  .featured-top-avatars .avatar-wrapper{
    width:50px !important;
    height:50px !important;
    min-width:50px !important;
  }

  .scope-switcher{
    gap:8px !important;
  }

  .scope-switcher-title{
    width:100% !important;
  }

  .scope-switcher button{
    flex:1 !important;
  }
}




/* =====================================================
   MATCHBOY CLEAN FIX: LANDING + LOGOUT + EDIT
   No modifica la vista cuadriculada.
===================================================== */
html.mb-logged-in #publicLanding,
body.mb-logged-in #publicLanding{
  display:none !important;
  visibility:hidden !important;
  opacity:0 !important;
  pointer-events:none !important;
}
html.mb-guest .floating-edit,
body.mb-guest .floating-edit,
html.mb-guest #editProfileBtn,
body.mb-guest #editProfileBtn,
html.mb-guest .edit-profile-float,
body.mb-guest .edit-profile-float,
html.mb-guest [data-action="edit-profile"],
body.mb-guest [data-action="edit-profile"]{
  display:none !important;
  visibility:hidden !important;
  pointer-events:none !important;
}
html.mb-guest #publicLanding .mb-topbar,
body.mb-guest #publicLanding .mb-topbar,
html.mb-guest #publicLanding .mb-menu,
body.mb-guest #publicLanding .mb-menu{
  display:flex !important;
  visibility:visible !important;
  pointer-events:auto !important;
}


/* =====================================================
   MATCHBOY FIX FINAL - BARRA INFERIOR CHAT PRIVADO
   Mantiene visibles todos los botones y da mas espacio al texto.
   NO oculta ningun boton.
===================================================== */

#privateChatModal .chat-footer{
  padding:8px 6px !important;
  background:#111 !important;
  border-top:1px solid #222 !important;
  flex-shrink:0 !important;
}

#privateChatModal .chat-input-row,
#privateChatModal .private-chat-input-row-fixed{
  width:100% !important;
  max-width:100% !important;
  display:flex !important;
  align-items:center !important;
  gap:5px !important;
  padding:0 !important;
  margin:0 !important;
  box-sizing:border-box !important;
  overflow:visible !important;
}

#privateChatModal #privateChatPhotoInput{
  display:none !important;
}

#privateChatModal #privateChatPhotoBtn,
#privateChatModal #privateChatAudioBtn{
  width:34px !important;
  height:34px !important;
  min-width:34px !important;
  max-width:34px !important;
  padding:0 !important;
  margin:0 !important;
  border-radius:50% !important;
  flex:0 0 34px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
}

#privateChatModal #privateChatPhotoBtn svg,
#privateChatModal #privateChatAudioBtn svg{
  width:19px !important;
  height:19px !important;
}

#privateChatModal #privateChatInput{
  flex:1 1 auto !important;
  width:auto !important;
  min-width:0 !important;
  max-width:none !important;
  height:42px !important;
  min-height:42px !important;
  padding:0 13px !important;
  margin:0 !important;
  border-radius:999px !important;
  box-sizing:border-box !important;
  font-size:14px !important;
}

#privateChatModal #privateChatSendBtn{
  width:42px !important;
  height:42px !important;
  min-width:42px !important;
  max-width:42px !important;
  padding:0 !important;
  margin:0 !important;
  border-radius:50% !important;
  flex:0 0 42px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
}

#privateChatModal #privateChatSendBtn svg{
  width:20px !important;
  height:20px !important;
}

/* Evita que reglas globales de botones hagan grande la barra */
#privateChatModal .chat-input-row button{
  flex-shrink:0 !important;
}

/* Movil pequeno: compacta botones y aumenta el input */
@media(max-width:430px){
  #privateChatModal .chat-footer{
    padding:7px 5px !important;
  }

  #privateChatModal .chat-input-row,
  #privateChatModal .private-chat-input-row-fixed{
    gap:4px !important;
  }

  #privateChatModal #privateChatPhotoBtn,
  #privateChatModal #privateChatAudioBtn{
    width:31px !important;
    height:31px !important;
    min-width:31px !important;
    max-width:31px !important;
    flex-basis:31px !important;
  }

  #privateChatModal #privateChatPhotoBtn svg,
  #privateChatModal #privateChatAudioBtn svg{
    width:18px !important;
    height:18px !important;
  }

  #privateChatModal #privateChatInput{
    height:40px !important;
    min-height:40px !important;
    padding:0 12px !important;
    font-size:13px !important;
  }

  #privateChatModal #privateChatSendBtn{
    width:40px !important;
    height:40px !important;
    min-width:40px !important;
    max-width:40px !important;
    flex-basis:40px !important;
  }
}



/* =====================================================
   RESTAURAR BENEFICIOS PREMIUM + ALCANCE COMO ANTES
   - Tarjetas una debajo de la otra
   - Ancho completo
   - Sin diseño lado a lado
===================================================== */

.featured-benefits-mini{
  width:min(720px,94vw) !important;
  margin:10px auto 14px !important;
  padding:13px !important;
  border-radius:20px !important;
  border:1px solid rgba(0,231,255,.18) !important;
  background:linear-gradient(135deg,rgba(0,231,255,.08),rgba(124,60,255,.08),rgba(255,43,214,.06)) !important;
  display:flex !important;
  align-items:center !important;
  gap:12px !important;
  color:#fff !important;
  cursor:pointer !important;
  box-shadow:0 14px 34px rgba(0,0,0,.30) !important;
  overflow:hidden !important;
}

.featured-benefits-mini .fbm-icon{
  width:42px !important;
  height:42px !important;
  min-width:42px !important;
  border-radius:15px !important;
  background:linear-gradient(135deg,#ffcc00,#ff8a00) !important;
  color:#05060b !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  flex-shrink:0 !important;
}

.featured-benefits-mini .fbm-icon svg{
  width:24px !important;
  height:24px !important;
}

.featured-benefits-mini .fbm-text{
  min-width:0 !important;
  flex:1 1 auto !important;
}

.featured-benefits-mini .fbm-text strong{
  display:block !important;
  font-size:15px !important;
  font-weight:950 !important;
  line-height:1.15 !important;
  white-space:normal !important;
}

.featured-benefits-mini .fbm-text span{
  display:block !important;
  font-size:12px !important;
  color:#cbd5e1 !important;
  margin-top:3px !important;
  line-height:1.35 !important;
  white-space:normal !important;
}

.featured-benefits-mini .fbm-action{
  background:rgba(255,255,255,.10) !important;
  border:1px solid rgba(255,255,255,.10) !important;
  border-radius:999px !important;
  padding:7px 11px !important;
  font-size:12px !important;
  font-weight:950 !important;
  color:#fff !important;
  flex-shrink:0 !important;
}

.scope-switcher{
  width:min(720px,94vw) !important;
  margin:8px auto 10px !important;
  padding:10px !important;
  border-radius:20px !important;
  background:
    radial-gradient(circle at 0% 0%,rgba(37,167,255,.10),transparent 35%),
    linear-gradient(180deg,#121621,#090c14) !important;
  border:1px solid rgba(255,255,255,.10) !important;
  box-shadow:0 12px 30px rgba(0,0,0,.30) !important;
  display:flex !important;
  align-items:center !important;
  gap:8px !important;
  flex-wrap:wrap !important;
}

.scope-switcher-title{
  color:#b8c0d5 !important;
  font-size:12px !important;
  font-weight:900 !important;
  margin-right:auto !important;
}

.scope-switcher button{
  min-height:42px !important;
  border-radius:999px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:7px !important;
  padding:8px 13px !important;
  background:rgba(255,255,255,.07) !important;
  border:1px solid rgba(255,255,255,.10) !important;
  color:#e6ecff !important;
  font-size:13px !important;
  font-weight:950 !important;
  cursor:pointer !important;
  flex:0 0 auto !important;
}

.scope-switcher button svg{
  width:18px !important;
  height:18px !important;
}

.scope-switcher button.active{
  background:linear-gradient(135deg,#ffcc00,#ff9f0a) !important;
  color:#000 !important;
  border-color:#ffcc00 !important;
}

@media(max-width:640px){
  .featured-benefits-mini,
  .scope-switcher{
    width:calc(100% - 16px) !important;
  }

  .scope-switcher-title{
    width:100% !important;
    margin-right:0 !important;
  }

  .scope-switcher button{
    flex:1 1 0 !important;
  }
}

/* Seguridad: anula cualquier intento anterior de poner estas dos tarjetas lado a lado */
.home-dual-cards,
.premium-scope-row,
.home-top-cards{
  display:block !important;
}

/* =========================================
   CONECTADOS / ACTIVOS HOY
========================================= */
.mb-activity-stats{
  width:calc(100% - 24px);
  max-width:720px;
  margin:10px auto 12px;

  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}

.mb-stat-pill{
  min-height:34px;
  padding:8px 12px;

  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;

  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);

  background:linear-gradient(180deg,#151515,#0b0b0b);
  color:#fff;

  font-size:13px;
  font-weight:700;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.05),
    0 8px 18px rgba(0,0,0,.35);
}

.mb-stat-pill strong{
  color:#fff;
  font-weight:900;
}

.mb-stat-online span{
  width:9px;
  height:9px;
  border-radius:50%;
  background:#00ff66;
  box-shadow:0 0 10px rgba(0,255,102,.9);
  flex-shrink:0;
}

@media(max-width:420px){
  .mb-activity-stats{
    width:calc(100% - 16px);
    gap:8px;
    margin:8px auto 10px;
  }

  .mb-stat-pill{
    min-height:30px;
    padding:7px 8px;
    font-size:12px;
  }
}
/* =====================================================
   MATCHBOY PRO PANEL - mueve destacados/premium fuera del grid
===================================================== */
.pro-panel{
  width:min(760px,94vw);
  margin:10px auto 92px;
  padding:12px 0 24px;
  color:#fff;
}
.pro-panel-head{
  border-radius:24px;
  padding:18px;
  margin-bottom:12px;
  background:radial-gradient(circle at top left,rgba(255,204,0,.22),transparent 42%),linear-gradient(145deg,#151722,#090b12);
  border:1px solid rgba(255,204,0,.22);
  box-shadow:0 14px 34px rgba(0,0,0,.42);
}
.pro-kicker{
  display:inline-flex;
  padding:6px 11px;
  border-radius:999px;
  background:linear-gradient(135deg,#ffcc00,#ff8a00);
  color:#000;
  font-size:12px;
  font-weight:950;
  letter-spacing:.6px;
}
.pro-panel-head h2{
  margin:10px 0 4px;
  font-size:26px;
  line-height:1;
  font-weight:950;
}
.pro-panel-head p{
  margin:0;
  color:#b8c0d6;
  font-size:14px;
  line-height:1.45;
}
.pro-panel .featured-top-card,
.pro-panel .featured-benefits-mini,
.pro-panel .scope-switcher{
  width:100% !important;
  max-width:100% !important;
  margin-left:auto !important;
  margin-right:auto !important;
}
.pro-section-card{
  margin-bottom:10px !important;
}
.pro-extra-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:10px;
}
.pro-feature-card,
.pro-plans-card{
  border-radius:20px;
  padding:15px;
  background:linear-gradient(180deg,rgba(255,255,255,.07),rgba(255,255,255,.035));
  border:1px solid rgba(255,255,255,.10);
  box-shadow:0 12px 28px rgba(0,0,0,.30);
}
.pro-feature-card-gold{
  border-color:rgba(255,204,0,.22);
  background:linear-gradient(180deg,rgba(255,204,0,.12),rgba(255,255,255,.035));
}
.pro-feature-icon{
  width:42px;
  height:42px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:15px;
  background:rgba(255,255,255,.08);
  font-size:22px;
  margin-bottom:8px;
}
.pro-feature-card h3{
  margin:0 0 6px;
  font-size:16px;
  font-weight:900;
}
.pro-feature-card p{
  margin:0 0 12px;
  color:#aeb4c7;
  font-size:13px;
  line-height:1.45;
}
.pro-action-btn{
  width:100%;
  border:0;
  border-radius:999px;
  padding:10px 12px;
  background:linear-gradient(135deg,#ffcc00,#ff8a00);
  color:#000;
  font-size:13px;
  font-weight:950;
  cursor:pointer;
}
.pro-plans-card{
  margin-top:10px;
}
.pro-plans-title{
  font-size:16px;
  font-weight:950;
  margin-bottom:10px;
}
.pro-plans-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px;
}
.pro-plans-grid button{
  border:1px solid rgba(255,204,0,.20);
  border-radius:16px;
  background:#111827;
  color:#fff;
  padding:12px 8px;
  cursor:pointer;
}
.pro-plans-grid strong,
.pro-plans-grid span{
  display:block;
}
.pro-plans-grid strong{
  font-size:14px;
  margin-bottom:4px;
}
.pro-plans-grid span{
  color:#ffcc00;
  font-size:12px;
  font-weight:900;
}
.nav-item-pro .ni-icon{
  border-radius:14px;
  background:rgba(255,204,0,.10);
}
.nav-item-pro.active{
  color:#ffcc00 !important;
}
body.pro-panel-open main{
  display:none !important;
}
@media(max-width:640px){
  .pro-panel{
    width:calc(100% - 14px);
    margin-top:8px;
    margin-bottom:86px;
  }
  .pro-panel-head{
    padding:15px;
    border-radius:20px;
  }
  .pro-panel-head h2{
    font-size:23px;
  }
  .pro-extra-grid{
    grid-template-columns:1fr;
  }
  .pro-plans-grid{
    grid-template-columns:1fr;
  }
  .bottom-nav .nav-item div:last-child{
    font-size:10px;
  }
}


/* =========================================
   BOTON PRO EN HEADER
=========================================== */
.pro-btn-header{
  color:#ffcc00 !important;
  position:relative !important;
  overflow:visible !important;
  isolation:isolate;
  animation:proHeaderPulse 1.8s infinite ease-in-out;
  background:linear-gradient(135deg,rgba(255,204,0,.18),rgba(255,43,214,.12)) !important;
  border:1px solid rgba(255,204,0,.35) !important;
  box-shadow:0 0 0 rgba(255,204,0,0);
}

.pro-btn-header svg{
  filter:drop-shadow(0 0 6px rgba(255,204,0,.65));
}

.pro-btn-header::before{
  content:"PRO";
  position:absolute;
  top:-8px;
  right:-9px;
  min-width:22px;
  height:15px;
  padding:0 4px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg,#ffcc00,#ff7a00);
  color:#000;
  font-size:8px;
  font-weight:900;
  line-height:1;
  letter-spacing:.2px;
  box-shadow:0 0 12px rgba(255,204,0,.85);
  z-index:5;
}

.pro-btn-header::after{
  content:"";
  position:absolute;
  inset:-4px;
  border-radius:999px;
  border:1px solid rgba(255,204,0,.32);
  opacity:.75;
  animation:proHeaderRing 1.8s infinite ease-out;
  pointer-events:none;
}

.pro-btn-header:hover{
  transform:translateY(-1px) scale(1.08);
  box-shadow:0 0 22px rgba(255,204,0,.75) !important;
}

@keyframes proHeaderPulse{
  0%,100%{transform:scale(1);box-shadow:0 0 0 rgba(255,204,0,0)}
  50%{transform:scale(1.10);box-shadow:0 0 18px rgba(255,204,0,.72)}
}

@keyframes proHeaderRing{
  0%{transform:scale(.85);opacity:.85}
  100%{transform:scale(1.35);opacity:0}
}

@media(max-width:430px){
  .pro-btn-header::before{
    top:-7px;
    right:-7px;
    font-size:7px;
    min-width:20px;
    height:14px;
  }
}

/* =====================================================
   FIX PRO PC + OCULTAR GRID EN SECCION PRO
   ===================================================== */
html, body{
  overflow-x:hidden !important;
  scrollbar-width:none !important;
}
html::-webkit-scrollbar,
body::-webkit-scrollbar{
  width:0 !important;
  height:0 !important;
}

#proPanel.pro-panel{
  width:min(620px, calc(100vw - 24px)) !important;
  max-width:620px !important;
  margin:12px auto 110px !important;
  padding:0 0 28px !important;
  overflow:hidden !important;
  box-sizing:border-box !important;
}

body.pro-panel-open main,
html.pro-panel-open main,
#proPanel[style*="display: block"] ~ main,
#proPanel[style*="display:block"] ~ main{
  display:none !important;
  visibility:hidden !important;
  pointer-events:none !important;
}

body.pro-panel-open #userGrid,
body.pro-panel-open #scopeSwitcherBox,
body.pro-panel-open .scope-switcher,
#proPanel[style*="display: block"] ~ main #userGrid,
#proPanel[style*="display: block"] ~ main #scopeSwitcherBox{
  display:none !important;
  visibility:hidden !important;
}

#proPanel .pro-panel-head{
  position:relative !important;
  overflow:hidden !important;
  border-radius:26px !important;
  padding:24px 18px !important;
  margin:0 0 14px !important;
  background:
    radial-gradient(circle at 8% 0%, rgba(255,204,0,.35), transparent 34%),
    radial-gradient(circle at 100% 20%, rgba(255,43,214,.22), transparent 38%),
    linear-gradient(145deg,#171923 0%,#090a0f 72%) !important;
  border:1px solid rgba(255,204,0,.34) !important;
  box-shadow:0 18px 50px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.08) !important;
}
#proPanel .pro-panel-head:before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(110deg, transparent 0%, rgba(255,255,255,.10) 45%, transparent 62%);
  transform:translateX(-120%);
  animation:mbProShine 4s infinite;
  pointer-events:none;
}
@keyframes mbProShine{0%,45%{transform:translateX(-120%)}75%,100%{transform:translateX(120%)}}

#proPanel .pro-kicker{
  background:linear-gradient(135deg,#fff4a3,#ffcc00 48%,#ff8a00) !important;
  color:#090909 !important;
  box-shadow:0 0 22px rgba(255,204,0,.36) !important;
}
#proPanel .pro-panel-head h2{
  font-size:30px !important;
  letter-spacing:-.04em !important;
  text-shadow:0 8px 25px rgba(0,0,0,.6) !important;
}
#proPanel .pro-panel-head p{
  max-width:520px !important;
  color:#e6e8f3 !important;
}

#proPanel .featured-top-card,
#proPanel .featured-benefits-mini,
#proPanel .pro-feature-card,
#proPanel .pro-plans-card{
  width:100% !important;
  max-width:100% !important;
  box-sizing:border-box !important;
  overflow:hidden !important;
  border-radius:24px !important;
  background:
    radial-gradient(circle at 0% 0%, rgba(255,204,0,.16), transparent 32%),
    radial-gradient(circle at 100% 50%, rgba(255,43,214,.12), transparent 36%),
    linear-gradient(180deg, rgba(24,27,38,.96), rgba(8,10,16,.98)) !important;
  border:1px solid rgba(255,255,255,.12) !important;
  box-shadow:0 16px 42px rgba(0,0,0,.48), inset 0 1px 0 rgba(255,255,255,.06) !important;
}
#proPanel .pro-section-card,
#proPanel .featured-benefits-mini,
#proPanel .pro-extra-grid,
#proPanel .pro-plans-card{
  margin-bottom:14px !important;
}
#proPanel .featured-top-btn,
#proPanel .fbm-action,
#proPanel .pro-action-btn,
#proPanel .pro-plans-grid button{
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease !important;
}
#proPanel .featured-top-btn:hover,
#proPanel .fbm-action:hover,
#proPanel .pro-action-btn:hover,
#proPanel .pro-plans-grid button:hover{
  transform:translateY(-2px) !important;
  box-shadow:0 14px 30px rgba(255,204,0,.28) !important;
}
#proPanel .pro-extra-grid{
  display:grid !important;
  grid-template-columns:1fr 1fr !important;
  gap:12px !important;
  width:100% !important;
  max-width:100% !important;
}
#proPanel .pro-feature-card{
  display:flex !important;
  flex-direction:column !important;
  min-width:0 !important;
  padding:18px !important;
}
#proPanel .pro-feature-icon{
  width:46px !important;
  height:46px !important;
  border-radius:16px !important;
  border:1px solid rgba(255,204,0,.28) !important;
  background:linear-gradient(135deg, rgba(255,204,0,.16), rgba(255,255,255,.06)) !important;
}
#proPanel .pro-action-btn{
  margin-top:auto !important;
  min-height:44px !important;
  border-radius:999px !important;
  background:linear-gradient(135deg,#ffe36a 0%,#ffcc00 42%,#ff8a00 100%) !important;
  box-shadow:0 10px 28px rgba(255,175,0,.26) !important;
}
#proPanel .pro-plans-card{
  padding:18px !important;
}
#proPanel .pro-plans-title{
  display:flex !important;
  align-items:center !important;
  gap:8px !important;
  font-size:18px !important;
}
#proPanel .pro-plans-grid{
  grid-template-columns:repeat(3, minmax(0,1fr)) !important;
  gap:10px !important;
}
#proPanel .pro-plans-grid button{
  min-width:0 !important;
  padding:18px 10px !important;
  border:1px solid rgba(255,204,0,.24) !important;
  background:linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.035)) !important;
}
#proPanel .pro-plans-grid strong{
  font-size:15px !important;
  color:#fff !important;
}
#proPanel .pro-plans-grid span{
  font-size:24px !important;
  color:#ffcc00 !important;
  text-shadow:0 0 18px rgba(255,204,0,.25) !important;
}

@media(max-width:720px){
  #proPanel.pro-panel{
    width:calc(100% - 16px) !important;
    max-width:none !important;
    margin-top:10px !important;
  }
  #proPanel .pro-extra-grid,
  #proPanel .pro-plans-grid{
    grid-template-columns:1fr !important;
  }
  #proPanel .pro-panel-head h2{
    font-size:25px !important;
  }
}



/* =====================================================
   FINAL MATCHBOY PRO — MISMO DISEÑO PC EN MOVIL + GRID SIEMPRE RESTAURABLE
   Este bloque va al final para no ser pisado por estilos anteriores.
===================================================== */

html, body{
  overflow-x:hidden !important;
  background:#000 !important;
}

body.pro-panel-open main,
html.pro-panel-open main{
  display:none !important;
  visibility:hidden !important;
  pointer-events:none !important;
}

body:not(.pro-panel-open) main{
  display:block !important;
  visibility:visible !important;
  pointer-events:auto !important;
}

body:not(.pro-panel-open) #userGrid{
  display:grid !important;
  visibility:visible !important;
  opacity:1 !important;
  pointer-events:auto !important;
}

body:not(.pro-panel-open) #scopeSwitcherBox,
body:not(.pro-panel-open) .scope-switcher{
  display:flex !important;
  visibility:visible !important;
  opacity:1 !important;
  pointer-events:auto !important;
}

body.pro-panel-open #userGrid,
body.pro-panel-open #scopeSwitcherBox,
body.pro-panel-open .scope-switcher,
body.pro-panel-open #mbActivityStats{
  display:none !important;
  visibility:hidden !important;
  pointer-events:none !important;
}

#proPanel.pro-panel{
  width:min(620px, calc(100vw - 24px)) !important;
  max-width:620px !important;
  margin:12px auto 110px !important;
  padding:0 0 28px !important;
  overflow:visible !important;
  color:#fff !important;
  box-sizing:border-box !important;
}

/* Hero PRO elegante */
#proPanel .pro-panel-head{
  position:relative !important;
  overflow:hidden !important;
  border-radius:26px !important;
  padding:24px 18px !important;
  margin:0 0 14px !important;
  background:
    radial-gradient(circle at 8% 0%, rgba(255,204,0,.35), transparent 34%),
    radial-gradient(circle at 100% 20%, rgba(255,43,214,.22), transparent 38%),
    linear-gradient(145deg,#171923 0%,#090a0f 72%) !important;
  border:1px solid rgba(255,204,0,.34) !important;
  box-shadow:0 18px 50px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.08) !important;
}

#proPanel .pro-panel-head:before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(110deg, transparent 0%, rgba(255,255,255,.10) 45%, transparent 62%);
  transform:translateX(-120%);
  animation:mbProShineFinal 4s infinite;
  pointer-events:none;
}

@keyframes mbProShineFinal{
  0%,45%{transform:translateX(-120%)}
  75%,100%{transform:translateX(120%)}
}

#proPanel .pro-kicker{
  display:inline-flex !important;
  padding:6px 11px !important;
  border-radius:999px !important;
  background:linear-gradient(135deg,#fff4a3,#ffcc00 48%,#ff8a00) !important;
  color:#090909 !important;
  font-size:12px !important;
  font-weight:950 !important;
  letter-spacing:.6px !important;
  box-shadow:0 0 22px rgba(255,204,0,.36) !important;
}

#proPanel .pro-panel-head h2{
  margin:10px 0 4px !important;
  font-size:30px !important;
  line-height:1 !important;
  font-weight:950 !important;
  letter-spacing:-.04em !important;
  text-shadow:0 8px 25px rgba(0,0,0,.6) !important;
}

#proPanel .pro-panel-head p{
  margin:0 !important;
  max-width:520px !important;
  color:#e6e8f3 !important;
  font-size:14px !important;
  line-height:1.45 !important;
}

/* Tarjetas premium */
#proPanel .featured-top-card,
#proPanel .featured-benefits-mini,
#proPanel .pro-feature-card,
#proPanel .pro-plans-card{
  width:100% !important;
  max-width:100% !important;
  box-sizing:border-box !important;
  overflow:hidden !important;
  border-radius:24px !important;
  background:
    radial-gradient(circle at 0% 0%, rgba(255,204,0,.16), transparent 32%),
    radial-gradient(circle at 100% 50%, rgba(255,43,214,.12), transparent 36%),
    linear-gradient(180deg, rgba(24,27,38,.96), rgba(8,10,16,.98)) !important;
  border:1px solid rgba(255,255,255,.12) !important;
  box-shadow:0 16px 42px rgba(0,0,0,.48), inset 0 1px 0 rgba(255,255,255,.06) !important;
}

#proPanel .pro-section-card,
#proPanel .featured-benefits-mini,
#proPanel .pro-extra-grid,
#proPanel .pro-plans-card{
  margin-bottom:14px !important;
}

/* Mantener en móvil igual que PC: 2 columnas y 3 planes */
#proPanel .pro-extra-grid{
  display:grid !important;
  grid-template-columns:1fr 1fr !important;
  gap:12px !important;
  width:100% !important;
  max-width:100% !important;
}

#proPanel .pro-feature-card{
  display:flex !important;
  flex-direction:column !important;
  min-width:0 !important;
  padding:18px !important;
}

#proPanel .pro-feature-icon{
  width:46px !important;
  height:46px !important;
  border-radius:16px !important;
  border:1px solid rgba(255,204,0,.28) !important;
  background:linear-gradient(135deg, rgba(255,204,0,.16), rgba(255,255,255,.06)) !important;
}

#proPanel .pro-feature-card h3{
  margin:0 0 6px !important;
  font-size:16px !important;
  font-weight:950 !important;
  color:#fff !important;
}

#proPanel .pro-feature-card p{
  margin:0 0 12px !important;
  color:#c1c7d8 !important;
  font-size:13px !important;
  line-height:1.45 !important;
}

#proPanel .featured-top-btn,
#proPanel .fbm-action,
#proPanel .pro-action-btn,
#proPanel .pro-plans-grid button{
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease !important;
}

#proPanel .featured-top-btn:hover,
#proPanel .fbm-action:hover,
#proPanel .pro-action-btn:hover,
#proPanel .pro-plans-grid button:hover{
  transform:translateY(-2px) !important;
  box-shadow:0 14px 30px rgba(255,204,0,.28) !important;
}

#proPanel .pro-action-btn{
  margin-top:auto !important;
  min-height:44px !important;
  border:0 !important;
  border-radius:999px !important;
  padding:10px 12px !important;
  background:linear-gradient(135deg,#ffe36a 0%,#ffcc00 42%,#ff8a00 100%) !important;
  color:#050505 !important;
  font-size:13px !important;
  font-weight:950 !important;
  box-shadow:0 10px 28px rgba(255,175,0,.26) !important;
  cursor:pointer !important;
}

#proPanel .pro-plans-card{
  padding:18px !important;
}

#proPanel .pro-plans-title{
  display:flex !important;
  align-items:center !important;
  gap:8px !important;
  font-size:18px !important;
  font-weight:950 !important;
  margin-bottom:12px !important;
}

#proPanel .pro-plans-grid{
  display:grid !important;
  grid-template-columns:repeat(3, minmax(0,1fr)) !important;
  gap:10px !important;
}

#proPanel .pro-plans-grid button{
  min-width:0 !important;
  padding:18px 10px !important;
  border-radius:18px !important;
  border:1px solid rgba(255,204,0,.24) !important;
  background:linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.035)) !important;
  color:#fff !important;
  cursor:pointer !important;
}

#proPanel .pro-plans-grid strong,
#proPanel .pro-plans-grid span{
  display:block !important;
  text-align:center !important;
}

#proPanel .pro-plans-grid strong{
  font-size:15px !important;
  color:#fff !important;
  margin-bottom:7px !important;
}

#proPanel .pro-plans-grid span{
  font-size:24px !important;
  color:#ffcc00 !important;
  font-weight:950 !important;
  text-shadow:0 0 18px rgba(255,204,0,.25) !important;
}

/* Ajustes móviles sin cambiar estructura del diseño PC */
@media(max-width:720px){
  #proPanel.pro-panel{
    width:calc(100% - 16px) !important;
    max-width:620px !important;
    margin-top:10px !important;
  }

  #proPanel .pro-panel-head{
    padding:20px 16px !important;
  }

  #proPanel .pro-panel-head h2{
    font-size:25px !important;
  }

  #proPanel .pro-extra-grid{
    grid-template-columns:1fr 1fr !important;
    gap:10px !important;
  }

  #proPanel .pro-feature-card{
    padding:14px !important;
  }

  #proPanel .pro-feature-card h3{
    font-size:14px !important;
  }

  #proPanel .pro-feature-card p{
    font-size:12px !important;
  }

  #proPanel .pro-plans-grid{
    grid-template-columns:repeat(3, minmax(0,1fr)) !important;
    gap:8px !important;
  }

  #proPanel .pro-plans-grid button{
    padding:14px 6px !important;
  }

  #proPanel .pro-plans-grid strong{
    font-size:13px !important;
  }

  #proPanel .pro-plans-grid span{
    font-size:18px !important;
  }
}

@media(max-width:380px){
  #proPanel .pro-extra-grid{
    gap:8px !important;
  }

  #proPanel .pro-feature-icon{
    width:38px !important;
    height:38px !important;
  }

  #proPanel .pro-action-btn{
    font-size:12px !important;
    min-height:40px !important;
  }

  #proPanel .pro-plans-grid span{
    font-size:16px !important;
  }
}


/* =====================================================
   MATCHBOY LOGIN PREMIUM 2026
   Solo afecta el modal de inicio/registro
===================================================== */
#sessionOverlay.mb-login-overlay,
#sessionOverlay.modal-backdrop{
  background:
    radial-gradient(circle at 20% 10%,rgba(36,120,255,.30),transparent 28%),
    radial-gradient(circle at 84% 12%,rgba(255,43,214,.24),transparent 28%),
    radial-gradient(circle at 50% 100%,rgba(255,204,0,.14),transparent 32%),
    rgba(0,0,0,.88) !important;
  backdrop-filter:blur(16px) !important;
  -webkit-backdrop-filter:blur(16px) !important;
  align-items:center !important;
  justify-content:center !important;
  padding:18px 12px !important;
  overflow-y:auto !important;
  z-index:10000 !important;
}
#sessionOverlay .session-modal-card.mb-auth-card{
  width:min(440px,94vw) !important;
  max-width:440px !important;
  max-height:none !important;
  padding:0 !important;
  border-radius:34px !important;
  overflow:hidden !important;
  color:#fff !important;
  background:
    linear-gradient(180deg,rgba(17,21,36,.98),rgba(5,7,14,.98)) !important;
  border:1px solid rgba(255,255,255,.13) !important;
  box-shadow:
    0 34px 90px rgba(0,0,0,.72),
    0 0 0 1px rgba(0,231,255,.10),
    0 0 54px rgba(255,43,214,.16) !important;
  animation:mbAuthIn .34s ease both !important;
}
#sessionOverlay .mb-auth-hero{
  position:relative !important;
  overflow:hidden !important;
  display:block !important;
  padding:26px 24px 22px !important;
  text-align:center !important;
  border:0 !important;
  border-bottom:1px solid rgba(255,255,255,.09) !important;
  background:
    linear-gradient(135deg,rgba(36,120,255,.18),rgba(255,43,214,.14)),
    #080b16 !important;
}
#sessionOverlay .mb-auth-glow{
  position:absolute !important;
  width:180px !important;
  height:180px !important;
  border-radius:999px !important;
  filter:blur(26px) !important;
  opacity:.75 !important;
  pointer-events:none !important;
}
#sessionOverlay .mb-auth-glow-a{left:-70px;top:-80px;background:rgba(0,231,255,.34)}
#sessionOverlay .mb-auth-glow-b{right:-70px;bottom:-90px;background:rgba(255,43,214,.32)}
#sessionOverlay .mb-auth-title-wrap{position:relative !important;z-index:2 !important;}
#sessionOverlay .mb-auth-logo-mark{
  width:58px !important;
  height:58px !important;
  margin:0 auto 12px !important;
  border-radius:20px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  background:linear-gradient(135deg,#ffcc00,#ff7a18) !important;
  color:#05070d !important;
  font-weight:1000 !important;
  letter-spacing:-.06em !important;
  box-shadow:0 14px 36px rgba(255,204,0,.28),0 0 24px rgba(255,43,214,.20) !important;
}
#sessionOverlay .session-badge{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:7px 13px !important;
  margin:0 0 12px !important;
  border-radius:999px !important;
  border:1px solid rgba(0,231,255,.38) !important;
  background:rgba(0,231,255,.10) !important;
  color:#4ff7ff !important;
  font-size:11px !important;
  font-weight:900 !important;
  line-height:1 !important;
  letter-spacing:.12em !important;
  text-transform:uppercase !important;
  box-shadow:none !important;
}
#sessionOverlay .modal-title{
  margin:0 !important;
  font-size:clamp(28px,6vw,38px) !important;
  line-height:1.02 !important;
  font-weight:1000 !important;
  letter-spacing:-.055em !important;
  background:linear-gradient(90deg,#fff,#ffcc00,#ff2bd6) !important;
  -webkit-background-clip:text !important;
  background-clip:text !important;
  color:transparent !important;
  -webkit-text-fill-color:transparent !important;
}
#sessionOverlay .session-subtitle{
  max-width:330px !important;
  margin:12px auto 0 !important;
  color:#cbd5ff !important;
  font-size:15px !important;
  line-height:1.5 !important;
  font-weight:500 !important;
}
#sessionOverlay .mb-auth-body{
  padding:18px 22px 24px !important;
  background:linear-gradient(180deg,rgba(255,255,255,.035),rgba(255,255,255,.015)) !important;
}
#sessionOverlay .mb-auth-tabs{
  display:grid !important;
  grid-template-columns:1fr 1fr !important;
  gap:8px !important;
  padding:5px !important;
  margin-bottom:18px !important;
  border-radius:18px !important;
  background:rgba(255,255,255,.055) !important;
  border:1px solid rgba(255,255,255,.08) !important;
}
#sessionOverlay .mb-auth-tab{
  min-height:42px !important;
  border:0 !important;
  border-radius:14px !important;
  background:transparent !important;
  color:#aeb7d8 !important;
  font-size:13px !important;
  font-weight:900 !important;
  cursor:pointer !important;
}
#sessionOverlay .mb-auth-tab.is-active{
  background:linear-gradient(135deg,#ffcc00,#ff9f1c) !important;
  color:#06070a !important;
  box-shadow:0 12px 26px rgba(255,204,0,.18) !important;
}
#sessionOverlay .mb-auth-field{margin:0 0 13px !important;}
#sessionOverlay .mb-auth-field label{
  display:block !important;
  margin:0 0 7px !important;
  color:#edf2ff !important;
  font-size:13px !important;
  font-weight:900 !important;
}
#sessionOverlay .mb-input-shell{
  position:relative !important;
  display:flex !important;
  align-items:center !important;
  min-height:58px !important;
  border-radius:18px !important;
  background:rgba(255,255,255,.065) !important;
  border:1px solid rgba(255,255,255,.10) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.045) !important;
  transition:border-color .18s ease, box-shadow .18s ease, background .18s ease !important;
  overflow:hidden !important;
}
#sessionOverlay .mb-input-shell:focus-within{
  border-color:rgba(255,204,0,.70) !important;
  background:rgba(255,255,255,.085) !important;
  box-shadow:0 0 0 4px rgba(255,204,0,.10),0 0 24px rgba(0,231,255,.13),inset 0 1px 0 rgba(255,255,255,.06) !important;
}
#sessionOverlay .mb-input-icon{
  width:46px !important;
  min-width:46px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  color:#ffcc00 !important;
}
#sessionOverlay .mb-input-icon svg{
  width:20px !important;
  height:20px !important;
  fill:none !important;
  stroke:currentColor !important;
  stroke-width:2 !important;
  stroke-linecap:round !important;
  stroke-linejoin:round !important;
}
#sessionOverlay .input-std,
#sessionOverlay .mb-reset-form input,
#sessionOverlay .mb-reset-form select{
  width:100% !important;
  height:58px !important;
  margin:0 !important;
  padding:0 14px 0 0 !important;
  border:0 !important;
  outline:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  color:#fff !important;
  font-size:16px !important;
  font-weight:650 !important;
  box-shadow:none !important;
}
#sessionOverlay select.input-std{appearance:auto !important;color:#fff !important;}
#sessionOverlay .input-std::placeholder,
#sessionOverlay .mb-reset-form input::placeholder{color:#7e88a7 !important;font-weight:600 !important;}
#sessionOverlay .pass-wrapper{padding:0 !important;border-radius:18px !important;}
#sessionOverlay .pass-wrapper .pass-input{padding-right:54px !important;}
#sessionOverlay .toggle-pass-btn{
  position:absolute !important;
  right:10px !important;
  top:50% !important;
  transform:translateY(-50%) !important;
  width:42px !important;
  height:42px !important;
  border:0 !important;
  border-radius:999px !important;
  background:rgba(255,204,0,.12) !important;
  color:#ffcc00 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  cursor:pointer !important;
  z-index:6 !important;
  padding:0 !important;
}
#sessionOverlay .toggle-pass-btn .eye-icon{
  width:21px !important;
  height:21px !important;
  fill:none !important;
  stroke:currentColor !important;
}
#sessionOverlay .mb-auth-hint{
  display:block !important;
  margin-top:7px !important;
  color:#8f9abf !important;
  font-size:12px !important;
  line-height:1.35 !important;
}
#sessionOverlay .mb-auth-primary,
#sessionOverlay .session-main-btn{
  width:100% !important;
  min-height:58px !important;
  margin:16px 0 0 !important;
  border:0 !important;
  border-radius:18px !important;
  background:linear-gradient(135deg,#ffcc00,#ff9f1c) !important;
  color:#05060a !important;
  font-size:17px !important;
  font-weight:1000 !important;
  cursor:pointer !important;
  box-shadow:0 18px 34px rgba(255,180,0,.26) !important;
  transition:transform .16s ease, filter .16s ease !important;
}
#sessionOverlay .mb-auth-secondary,
#sessionOverlay .session-secondary-btn{
  width:100% !important;
  min-height:54px !important;
  margin:11px 0 0 !important;
  border-radius:18px !important;
  border:1px solid rgba(255,204,0,.32) !important;
  background:rgba(255,255,255,.045) !important;
  color:#ffcc00 !important;
  font-size:15px !important;
  font-weight:950 !important;
  cursor:pointer !important;
  box-shadow:none !important;
}
#sessionOverlay .mb-auth-primary:active,
#sessionOverlay .mb-auth-secondary:active,
#sessionOverlay .mb-auth-tab:active,
#sessionOverlay .mb-google-play-card:active{transform:scale(.985) !important;}
#sessionOverlay .mb-register-actions{display:grid;gap:0 !important;}
#sessionOverlay .mb-forgot-btn{
  width:100% !important;
  margin:14px 0 0 !important;
  padding:0 !important;
  min-height:38px !important;
  border:0 !important;
  background:transparent !important;
  color:#aeb7d8 !important;
  font-size:13px !important;
  font-weight:800 !important;
  text-align:center !important;
  cursor:pointer !important;
}
#sessionOverlay .mb-forgot-btn:hover{color:#fff !important;}
#sessionOverlay .mb-reset-form{
  margin-top:12px !important;
  padding:14px !important;
  border-radius:18px !important;
  background:rgba(255,255,255,.045) !important;
  border:1px solid rgba(255,255,255,.10) !important;
  gap:10px !important;
}
#sessionOverlay .mb-reset-title{font-size:14px !important;font-weight:1000 !important;color:#fff !important;margin-bottom:2px !important;}
#sessionOverlay .mb-reset-submit{
  min-height:48px !important;
  border:0 !important;
  border-radius:15px !important;
  background:linear-gradient(135deg,#ff5c7a,#ff2bd6) !important;
  color:#fff !important;
  font-weight:950 !important;
  cursor:pointer !important;
}
#sessionOverlay .session-error{
  margin:12px 0 0 !important;
  color:#ff8aa1 !important;
  font-size:13px !important;
  font-weight:800 !important;
  text-align:center !important;
  text-shadow:none !important;
}
#sessionOverlay .mb-google-play-card{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:11px !important;
  width:230px !important;
  max-width:100% !important;
  min-height:56px !important;
  margin:18px auto 0 !important;
  padding:10px 14px !important;
  border-radius:18px !important;
  text-decoration:none !important;
  background:rgba(0,0,0,.30) !important;
  border:1px solid rgba(255,255,255,.13) !important;
  color:#fff !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05) !important;
}
#sessionOverlay .mb-play-icon{
  width:34px !important;
  height:34px !important;
  border-radius:999px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  background:linear-gradient(135deg,#00e7ff,#8b3dff,#ff2bd6) !important;
}
#sessionOverlay .mb-play-icon svg{width:18px !important;height:18px !important;fill:#fff !important;}
#sessionOverlay .mb-google-play-card small{display:block !important;color:#aeb7d8 !important;font-size:11px !important;line-height:1.1 !important;}
#sessionOverlay .mb-google-play-card strong{display:block !important;color:#fff !important;font-size:16px !important;line-height:1.1 !important;}
@keyframes mbAuthIn{from{opacity:0;transform:translateY(14px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(max-width:430px){
  #sessionOverlay.mb-login-overlay,#sessionOverlay.modal-backdrop{padding:10px 8px !important;align-items:flex-start !important;}
  #sessionOverlay .session-modal-card.mb-auth-card{width:100% !important;border-radius:28px !important;margin:8px auto 22px !important;}
  #sessionOverlay .mb-auth-hero{padding:22px 18px 18px !important;}
  #sessionOverlay .mb-auth-logo-mark{width:50px !important;height:50px !important;border-radius:17px !important;}
  #sessionOverlay .mb-auth-body{padding:15px 16px 20px !important;}
  #sessionOverlay .mb-input-shell{min-height:54px !important;border-radius:17px !important;}
  #sessionOverlay .input-std,#sessionOverlay .mb-reset-form input{height:54px !important;font-size:15px !important;}
  #sessionOverlay .mb-auth-primary,#sessionOverlay .session-main-btn{min-height:56px !important;}
}


/* =========================================
   AJUSTES SOLICITADOS 26 JUNIO
   Margen superior del registro + icono boton Descarga App
=========================================== */
#sessionOverlay .session-modal-card.mb-auth-card{
  margin-top:22px !important;
  margin-bottom:28px !important;
}
#sessionOverlay .mb-auth-hero{
  padding-top:34px !important;
}
#sessionOverlay .modal-title{
  margin-top:4px !important;
}
.mb-btn-store{
  gap:9px !important;
}
.mb-btn-store .mb-btn-icon{
  width:18px !important;
  height:18px !important;
  display:inline-block !important;
  flex:0 0 auto !important;
}
@media(max-width:430px){
  #sessionOverlay.mb-login-overlay,
  #sessionOverlay.modal-backdrop{
    padding-top:18px !important;
  }
  #sessionOverlay .session-modal-card.mb-auth-card{
    margin-top:14px !important;
    margin-bottom:28px !important;
  }
  #sessionOverlay .mb-auth-hero{
    padding-top:30px !important;
  }
}


/* =========================================
   FIX DEFINITIVO 26 JUNIO - ESPACIO SUPERIOR REGISTRO
   Solo agrega aire arriba cuando esta activa la pantalla Crear cuenta.
=========================================== */
#sessionOverlay.mb-register-mode.mb-login-overlay,
#sessionOverlay.mb-register-mode.modal-backdrop{
  align-items:flex-start !important;
  justify-content:center !important;
  padding-top:38px !important;
  padding-bottom:34px !important;
}
#sessionOverlay.mb-register-mode .session-modal-card.mb-auth-card{
  margin-top:0 !important;
  margin-bottom:32px !important;
}
#sessionOverlay.mb-register-mode .mb-auth-hero{
  padding-top:58px !important;
  padding-bottom:24px !important;
}
#sessionOverlay.mb-register-mode .session-badge{
  margin-top:0 !important;
  margin-bottom:16px !important;
}
#sessionOverlay.mb-register-mode .modal-title{
  margin-top:0 !important;
}
@media(max-width:430px){
  #sessionOverlay.mb-register-mode.mb-login-overlay,
  #sessionOverlay.mb-register-mode.modal-backdrop{
    padding-top:34px !important;
    padding-bottom:30px !important;
  }
  #sessionOverlay.mb-register-mode .mb-auth-hero{
    padding-top:54px !important;
    padding-bottom:22px !important;
  }
}


/* ==========================================================
   MATCHBOY DIRECTORIO - FIX LIMPIO
   No toca el tamaño de tarjetas de usuarios ni el layout global.
========================================================== */
header .filter-row.mb-directory-top-menu,
#mbTopFilterMenu.mb-directory-top-menu{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:8px !important;
  width:100% !important;
  max-width:100% !important;
  margin:8px 0 0 0 !important;
  padding:10px 0 10px 0 !important;
  overflow-x:auto !important;
  overflow-y:hidden !important;
  scrollbar-width:none;
  background:transparent !important;
  box-sizing:border-box !important;
}
#mbTopFilterMenu.mb-directory-top-menu::-webkit-scrollbar{display:none;}

#mbTopFilterMenu .mb-filter-chip{
  appearance:none;
  border:1px solid rgba(255,255,255,.13) !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:7px !important;
  min-height:38px !important;
  padding:8px 13px !important;
  border-radius:999px !important;
  background:linear-gradient(180deg,rgba(31,35,54,.90),rgba(17,19,30,.96)) !important;
  color:#f3f5ff !important;
  font-size:12px !important;
  font-weight:800 !important;
  line-height:1 !important;
  white-space:nowrap !important;
  cursor:pointer !important;
  box-shadow:0 8px 22px rgba(0,0,0,.26), inset 0 0 0 1px rgba(255,255,255,.04) !important;
  flex:0 0 auto !important;
}
#mbTopFilterMenu .mb-filter-chip.active{
  border-color:rgba(255,204,0,.85) !important;
  background:linear-gradient(135deg,#ffcc00,#ff8a00,#ff3d7f) !important;
  color:#120b00 !important;
  box-shadow:0 0 18px rgba(255,116,0,.34), inset 0 0 0 1px rgba(255,255,255,.26) !important;
}
#mbTopFilterMenu .mb-chip-svg{
  width:22px !important;
  height:22px !important;
  min-width:22px !important;
  border-radius:999px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  background:rgba(255,255,255,.08) !important;
}
#mbTopFilterMenu .mb-chip-svg svg{
  width:15px !important;
  height:15px !important;
  display:block !important;
}
#mbTopFilterMenu .mb-filter-chip.active .mb-chip-svg{background:rgba(0,0,0,.12) !important;}

/* Solo cuando se abre Directorio se esconden los bloques de usuarios */
body.directory-open #userGrid,
body.directory-open #scopeSwitcherBox,
body.directory-open .featured-top-card,
body.directory-open #mbActivityStats{
  display:none !important;
}
body.directory-open #directoryPanel{
  display:block !important;
}
body:not(.directory-open) #directoryPanel{
  display:none !important;
}

/* Directorio con el diseño anterior, sin afectar .card ni tarjetas de usuarios */
#directoryPanel.directory-panel{
  width:min(1040px,calc(100vw - 18px));
  margin:10px auto 95px;
  color:#fff;
  box-sizing:border-box;
}
#directoryPanel .directory-hero{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  flex-direction:column;
  gap:14px;
  padding:20px;
  border-radius:24px;
  border:1px solid rgba(255,255,255,.12);
  background:radial-gradient(circle at 10% 0,rgba(255,45,85,.25),transparent 34%),linear-gradient(145deg,#111827,#070a12);
  box-shadow:0 18px 55px rgba(0,0,0,.35);
  box-sizing:border-box;
}
#directoryPanel .directory-kicker{
  display:inline-flex;
  padding:7px 11px;
  border-radius:999px;
  background:rgba(255,204,0,.12);
  color:#ffcc00;
  border:1px solid rgba(255,204,0,.22);
  font-size:12px;
  font-weight:900;
}
#directoryPanel .directory-hero h2{margin:10px 0 6px;font-size:clamp(24px,4vw,38px);letter-spacing:-.04em;color:#fff;}
#directoryPanel .directory-hero p{margin:0;color:#b8c0d8;line-height:1.5;max-width:680px;}
#directoryPanel .directory-primary-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:0;
  border-radius:15px;
  padding:12px 15px;
  min-height:44px;
  background:linear-gradient(135deg,#ffcc00,#ff2d55);
  color:#05070d;
  font-weight:950;
  cursor:pointer;
  white-space:nowrap;
}
#directoryPanel .directory-form-card,
#directoryPanel .directory-toolbar,
#directoryPanel .directory-card{
  margin-top:14px;
  border:1px solid rgba(255,255,255,.10);
  background:linear-gradient(180deg,rgba(255,255,255,.07),rgba(255,255,255,.035));
  border-radius:20px;
  box-shadow:0 14px 40px rgba(0,0,0,.25);
  box-sizing:border-box;
}
#directoryPanel .directory-form-card{padding:16px;}
#directoryPanel .directory-form-title{font-weight:950;margin-bottom:10px;color:#ffcc00;}
#directoryPanel .directory-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
#directoryPanel input,
#directoryPanel select,
#directoryPanel textarea{
  width:100%;
  max-width:100%;
  box-sizing:border-box;
  border:1px solid rgba(255,255,255,.12);
  border-radius:14px;
  background:#0b0f19;
  color:#fff;
  padding:12px;
  outline:none;
}
#directoryPanel textarea{min-height:95px;margin:10px 0;resize:vertical;}
#directoryPanel .directory-toolbar{padding:12px;display:grid;grid-template-columns:minmax(0,1fr) 220px;gap:10px;}
#directoryPanel .directory-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:14px;}
#directoryPanel .directory-card{padding:14px;display:flex;gap:13px;position:relative;overflow:hidden;}
#directoryPanel .directory-card.is-featured{border-color:rgba(255,204,0,.48);box-shadow:0 18px 52px rgba(255,204,0,.10);}
#directoryPanel .directory-card.is-featured:before{content:"";position:absolute;inset:0;background:linear-gradient(135deg,rgba(255,204,0,.10),transparent 42%);pointer-events:none;}
#directoryPanel .directory-logo-wrap{width:76px;height:76px;border-radius:20px;overflow:hidden;background:#111;flex:0 0 auto;border:1px solid rgba(255,255,255,.12);}
#directoryPanel .directory-logo-wrap img{width:100%;height:100%;object-fit:cover;display:block;}
#directoryPanel .directory-card-body{min-width:0;position:relative;z-index:1;flex:1;}
#directoryPanel .directory-card-top{display:flex;justify-content:space-between;gap:8px;align-items:flex-start;}
#directoryPanel .directory-card h3{margin:0;font-size:17px;line-height:1.15;color:#fff;}
#directoryPanel .directory-card-top span{display:block;color:#aeb7cc;font-size:12px;margin-top:4px;}
#directoryPanel .directory-badge{display:inline-flex;border-radius:999px;background:#ffcc00;color:#06070b;padding:5px 8px;font-size:11px;white-space:nowrap;font-weight:900;}
#directoryPanel .directory-card p{margin:10px 0;color:#d8def0;font-size:13px;line-height:1.45;}
#directoryPanel .directory-info-row{display:flex;flex-wrap:wrap;gap:7px;color:#b8c0d8;font-size:12px;margin-bottom:10px;}
#directoryPanel .directory-info-row span{background:rgba(255,255,255,.06);border-radius:999px;padding:6px 8px;}
#directoryPanel .directory-actions{display:flex;flex-wrap:wrap;gap:7px;}
#directoryPanel .directory-actions a,
#directoryPanel .directory-actions button{
  border:1px solid rgba(255,255,255,.10);
  border-radius:999px;
  background:#121826;
  color:#fff;
  text-decoration:none;
  padding:8px 10px;
  font-size:12px;
  font-weight:850;
  cursor:pointer;
}
#directoryPanel .directory-actions button{background:linear-gradient(135deg,#ffcc00,#ff2d55);color:#05070d;border:0;}
#directoryPanel .directory-empty{
  grid-column:1/-1;
  padding:18px;
  border-radius:18px;
  background:rgba(255,255,255,.05);
  color:#b8c0d8;
  text-align:center;
}
@media(max-width:760px){
  header .filter-row.mb-directory-top-menu,
  #mbTopFilterMenu.mb-directory-top-menu{padding-left:6px !important;padding-right:6px !important;}
  #mbTopFilterMenu .mb-filter-chip{font-size:11px !important;padding:8px 10px !important;min-height:38px !important;}
  #directoryPanel.directory-panel{width:calc(100vw - 14px);margin-top:8px;}
  #directoryPanel .directory-hero{padding:16px;}
  #directoryPanel .directory-primary-btn{width:100%;}
  #directoryPanel .directory-form-grid,
  #directoryPanel .directory-toolbar,
  #directoryPanel .directory-grid{grid-template-columns:1fr;}
  #directoryPanel .directory-card{flex-direction:column;}
  #directoryPanel .directory-logo-wrap{width:84px;height:84px;}
}

/* ==========================================================
   FIX DIRECTORIO COMPLETO EN PC Y MOVIL
   Evita que el panel quede cortado por el contenedor central.
   Solo afecta al Directorio, no toca tarjetas de usuarios.
========================================================== */
body.directory-open main{
  width:100% !important;
  max-width:100% !important;
  margin:0 !important;
  padding-left:6px !important;
  padding-right:6px !important;
  box-sizing:border-box !important;
  overflow-x:hidden !important;
}

body.directory-open #directoryPanel.directory-panel{
  width:100% !important;
  max-width:720px !important;
  margin:10px 0 95px 0 !important;
  padding:0 !important;
  box-sizing:border-box !important;
  overflow:visible !important;
}

body.directory-open #directoryPanel .directory-hero,
body.directory-open #directoryPanel .directory-toolbar,
body.directory-open #directoryPanel .directory-form-card,
body.directory-open #directoryPanel .directory-grid,
body.directory-open #directoryPanel .directory-card,
body.directory-open #directoryPanel .directory-empty{
  width:100% !important;
  max-width:100% !important;
  box-sizing:border-box !important;
}

body.directory-open #directoryPanel .directory-hero{
  overflow:hidden !important;
}

body.directory-open #directoryPanel .directory-hero h2,
body.directory-open #directoryPanel .directory-hero p{
  max-width:100% !important;
  overflow-wrap:break-word !important;
}

@media (min-width:900px){
  body.directory-open #directoryPanel.directory-panel{
    max-width:720px !important;
  }
}

@media (max-width:760px){
  body.directory-open main{
    padding-left:6px !important;
    padding-right:6px !important;
  }
  body.directory-open #directoryPanel.directory-panel{
    width:100% !important;
    max-width:100% !important;
    margin:8px 0 95px 0 !important;
  }
}

/* ==========================================================
   DIRECTORIO MATCHBOY PREMIUM - FIX RECARGA + DISEÑO COMPLETO
   Este bloque usa clases mb-dir-* para no tocar tarjetas de usuarios.
========================================================== */
body.directory-open main{
  width:100% !important;
  max-width:100% !important;
  margin:0 !important;
  padding:0 8px 100px !important;
  box-sizing:border-box !important;
  overflow-x:hidden !important;
}
body.directory-open #directoryPanel.mb-dir-premium{
  display:block !important;
  width:min(980px, calc(100vw - 16px)) !important;
  max-width:min(980px, calc(100vw - 16px)) !important;
  margin:12px auto 110px !important;
  padding:0 !important;
  color:#fff !important;
  box-sizing:border-box !important;
  overflow:visible !important;
}
body:not(.directory-open) #directoryPanel.mb-dir-premium{display:none !important;}
#directoryPanel.mb-dir-premium *{box-sizing:border-box;}
#directoryPanel .mb-dir-hero{
  display:grid;
  grid-template-columns:minmax(0,1fr) 230px;
  gap:18px;
  align-items:stretch;
  padding:22px;
  border-radius:28px;
  border:1px solid rgba(255,255,255,.13);
  background:
    radial-gradient(circle at 12% 0,rgba(255,45,120,.34),transparent 36%),
    radial-gradient(circle at 82% 10%,rgba(0,231,255,.16),transparent 34%),
    linear-gradient(145deg,#111827,#070a12);
  box-shadow:0 20px 65px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.06);
  overflow:hidden;
}
#directoryPanel .mb-dir-kicker{
  display:inline-flex;
  padding:7px 12px;
  border-radius:999px;
  color:#ffcc00;
  font-size:12px;
  font-weight:950;
  background:rgba(255,204,0,.13);
  border:1px solid rgba(255,204,0,.26);
}
#directoryPanel .mb-dir-hero h2{
  margin:12px 0 8px;
  font-size:clamp(27px,4.2vw,46px);
  line-height:1.02;
  letter-spacing:-.055em;
  color:#fff;
}
#directoryPanel .mb-dir-hero p{
  margin:0;
  color:#c8d0e6;
  line-height:1.6;
  max-width:720px;
}
#directoryPanel .mb-dir-hero-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px;}
#directoryPanel .mb-dir-main-btn,
#directoryPanel .mb-dir-soft-btn,
#directoryPanel .mb-dir-section-head button,
#directoryPanel .mb-dir-form-head button{
  min-height:44px;
  border:0;
  border-radius:15px;
  padding:11px 15px;
  font-weight:950;
  cursor:pointer;
  white-space:nowrap;
}
#directoryPanel .mb-dir-main-btn{background:linear-gradient(135deg,#ffcc00,#ff8a00,#ff2d55);color:#08060a;box-shadow:0 12px 28px rgba(255,138,0,.24);}
#directoryPanel .mb-dir-soft-btn,
#directoryPanel .mb-dir-section-head button,
#directoryPanel .mb-dir-form-head button{background:rgba(255,255,255,.075);color:#fff;border:1px solid rgba(255,255,255,.12);}
#directoryPanel .mb-dir-hero-card{
  border-radius:24px;
  padding:18px;
  min-height:170px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
  background:linear-gradient(180deg,rgba(255,255,255,.10),rgba(255,255,255,.04));
  border:1px solid rgba(255,255,255,.13);
}
#directoryPanel .mb-dir-mini-logo{width:70px;height:70px;border-radius:24px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#ffcc00,#ff2d55);font-size:34px;margin-bottom:10px;box-shadow:0 0 28px rgba(255,45,85,.24);}
#directoryPanel .mb-dir-hero-card strong{font-size:17px;}
#directoryPanel .mb-dir-hero-card span{margin-top:5px;color:#aeb7cc;font-size:12px;}
#directoryPanel .mb-dir-form-card,
#directoryPanel .mb-dir-toolbar,
#directoryPanel .mb-dir-card,
#directoryPanel .mb-dir-featured-card,
#directoryPanel .mb-dir-empty-card,
#directoryPanel .mb-dir-stats-row div{
  border:1px solid rgba(255,255,255,.11);
  background:linear-gradient(180deg,rgba(255,255,255,.075),rgba(255,255,255,.035));
  box-shadow:0 14px 42px rgba(0,0,0,.27);
}
#directoryPanel .mb-dir-form-card{margin-top:14px;border-radius:22px;padding:16px;}
#directoryPanel .mb-dir-form-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:12px;}
#directoryPanel .mb-dir-form-head strong{display:block;color:#ffcc00;font-size:16px;}
#directoryPanel .mb-dir-form-head span{display:block;color:#aeb7cc;font-size:12px;margin-top:3px;}
#directoryPanel .mb-dir-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
#directoryPanel input,
#directoryPanel select,
#directoryPanel textarea{
  width:100%;max-width:100%;border:1px solid rgba(255,255,255,.12);border-radius:14px;background:#0b0f19;color:#fff;padding:12px;outline:none;
}
#directoryPanel textarea{min-height:96px;margin:10px 0;resize:vertical;}
#directoryPanel .mb-dir-file-label{display:flex;align-items:center;gap:10px;border:1px dashed rgba(255,204,0,.25);border-radius:14px;background:#0b0f19;color:#c8d0e6;padding:10px;font-size:12px;}
#directoryPanel .mb-dir-file-label input{padding:0;border:0;background:transparent;}
#directoryPanel .mb-dir-stats-row{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:14px 0;}
#directoryPanel .mb-dir-stats-row div{border-radius:18px;padding:14px;}
#directoryPanel .mb-dir-stats-row strong{display:block;color:#ffcc00;font-size:22px;line-height:1;}
#directoryPanel .mb-dir-stats-row span{display:block;color:#aeb7cc;font-size:12px;margin-top:5px;}
#directoryPanel .mb-dir-section-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:18px 0 10px;}
#directoryPanel .mb-dir-section-head span{display:inline-flex;color:#ffcc00;font-weight:950;font-size:12px;}
#directoryPanel .mb-dir-section-head h3{margin:4px 0 0;font-size:21px;color:#fff;}
#directoryPanel .mb-dir-featured-strip{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(240px,320px);gap:12px;overflow-x:auto;padding-bottom:6px;scrollbar-width:thin;}
#directoryPanel .mb-dir-featured-card{border-radius:22px;padding:12px;display:flex;gap:12px;min-height:132px;position:relative;overflow:hidden;}
#directoryPanel .mb-dir-featured-card:before{content:"";position:absolute;inset:0;background:linear-gradient(135deg,rgba(255,204,0,.13),transparent 52%);pointer-events:none;}
#directoryPanel .mb-dir-featured-card img{width:84px;height:84px;border-radius:20px;object-fit:cover;position:relative;z-index:1;}
#directoryPanel .mb-dir-featured-card div{position:relative;z-index:1;min-width:0;}
#directoryPanel .mb-dir-featured-card b{display:inline-flex;border-radius:999px;background:#ffcc00;color:#06070b;padding:5px 8px;font-size:11px;}
#directoryPanel .mb-dir-featured-card h4{margin:8px 0 4px;color:#fff;font-size:18px;line-height:1.1;}
#directoryPanel .mb-dir-featured-card span{color:#aeb7cc;font-size:12px;}
#directoryPanel .mb-dir-mini-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:9px;}
#directoryPanel .mb-dir-mini-actions a{border-radius:999px;background:#121826;border:1px solid rgba(255,255,255,.12);color:#fff;text-decoration:none;padding:7px 9px;font-size:12px;font-weight:850;}
#directoryPanel .mb-dir-categories{display:flex;gap:8px;overflow-x:auto;margin:16px 0 12px;padding-bottom:4px;scrollbar-width:none;}
#directoryPanel .mb-dir-categories::-webkit-scrollbar{display:none;}
#directoryPanel .mb-dir-categories button{flex:0 0 auto;border:1px solid rgba(255,255,255,.11);border-radius:999px;background:#121826;color:#fff;padding:9px 12px;font-weight:850;cursor:pointer;}
#directoryPanel .mb-dir-toolbar{border-radius:20px;padding:12px;display:grid;grid-template-columns:minmax(0,1fr) 230px;gap:10px;margin-top:10px;}
#directoryPanel .mb-dir-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:10px;}
#directoryPanel .mb-dir-card{border-radius:22px;padding:14px;display:flex;gap:13px;position:relative;overflow:hidden;}
#directoryPanel .mb-dir-card.is-featured{border-color:rgba(255,204,0,.50);box-shadow:0 18px 52px rgba(255,204,0,.10);}
#directoryPanel .mb-dir-card.is-featured:before{content:"";position:absolute;inset:0;background:linear-gradient(135deg,rgba(255,204,0,.10),transparent 45%);pointer-events:none;}
#directoryPanel .mb-dir-logo-wrap{width:78px;height:78px;border-radius:20px;overflow:hidden;background:#111;flex:0 0 auto;border:1px solid rgba(255,255,255,.12);position:relative;z-index:1;}
#directoryPanel .mb-dir-logo-wrap img{width:100%;height:100%;object-fit:cover;display:block;}
#directoryPanel .mb-dir-card-body{min-width:0;position:relative;z-index:1;flex:1;}
#directoryPanel .mb-dir-card-top{display:flex;justify-content:space-between;gap:8px;align-items:flex-start;}
#directoryPanel .mb-dir-card h3{margin:0;font-size:18px;line-height:1.15;color:#fff;}
#directoryPanel .mb-dir-card-top span{display:block;color:#aeb7cc;font-size:12px;margin-top:4px;}
#directoryPanel .mb-dir-badge{display:inline-flex;border-radius:999px;background:#ffcc00;color:#06070b;padding:5px 8px;font-size:11px;white-space:nowrap;font-weight:950;}
#directoryPanel .mb-dir-card p{margin:10px 0;color:#d8def0;font-size:13px;line-height:1.45;}
#directoryPanel .mb-dir-info-row{display:flex;flex-wrap:wrap;gap:7px;color:#b8c0d8;font-size:12px;margin-bottom:10px;}
#directoryPanel .mb-dir-info-row span{background:rgba(255,255,255,.06);border-radius:999px;padding:6px 8px;}
#directoryPanel .mb-dir-actions{display:flex;flex-wrap:wrap;gap:7px;}
#directoryPanel .mb-dir-actions a,
#directoryPanel .mb-dir-actions button{border:1px solid rgba(255,255,255,.10);border-radius:999px;background:#121826;color:#fff;text-decoration:none;padding:8px 10px;font-size:12px;font-weight:850;cursor:pointer;}
#directoryPanel .mb-dir-actions button{background:linear-gradient(135deg,#ffcc00,#ff2d55);color:#05070d;border:0;}
#directoryPanel .mb-dir-empty-card{grid-column:1/-1;border-radius:20px;padding:18px;color:#b8c0d8;text-align:center;}
@media(max-width:760px){
  body.directory-open main{padding:0 7px 105px !important;}
  body.directory-open #directoryPanel.mb-dir-premium{width:100% !important;max-width:100% !important;margin:8px 0 105px !important;}
  #directoryPanel .mb-dir-hero{grid-template-columns:1fr;padding:16px;border-radius:24px;}
  #directoryPanel .mb-dir-hero-card{display:none;}
  #directoryPanel .mb-dir-hero-actions{display:grid;grid-template-columns:1fr;}
  #directoryPanel .mb-dir-form-grid,
  #directoryPanel .mb-dir-toolbar,
  #directoryPanel .mb-dir-grid,
  #directoryPanel .mb-dir-stats-row{grid-template-columns:1fr;}
  #directoryPanel .mb-dir-card{flex-direction:column;}
  #directoryPanel .mb-dir-logo-wrap{width:88px;height:88px;}
  #directoryPanel .mb-dir-section-head{align-items:flex-start;}
}

/* ==========================================================
   FIX DIRECTORIO: NO CORTAR LADO DERECHO EN PC / WEBVIEW
   Mantiene el diseno premium, pero fuerza el modulo a vivir
   dentro del ancho real del sitio.
========================================================== */
body.directory-open{
  overflow-x:hidden !important;
}
body.directory-open main{
  width:100% !important;
  max-width:100% !important;
  margin-left:auto !important;
  margin-right:auto !important;
  padding-left:8px !important;
  padding-right:8px !important;
  overflow-x:hidden !important;
  box-sizing:border-box !important;
}
body.directory-open #directoryPanel.mb-dir-premium,
#directoryPanel.mb-dir-premium{
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  margin-left:0 !important;
  margin-right:0 !important;
  overflow:hidden !important;
  box-sizing:border-box !important;
}
#directoryPanel.mb-dir-premium *{
  max-width:100%;
}
#directoryPanel .mb-dir-hero,
#directoryPanel .mb-dir-form-card,
#directoryPanel .mb-dir-toolbar,
#directoryPanel .mb-dir-stats-row,
#directoryPanel .mb-dir-featured-strip,
#directoryPanel .mb-dir-categories,
#directoryPanel .mb-dir-grid{
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  box-sizing:border-box !important;
}
#directoryPanel .mb-dir-hero{
  grid-template-columns:minmax(0,1fr) !important;
}
#directoryPanel .mb-dir-hero-card{
  display:none !important;
}
#directoryPanel .mb-dir-hero h2,
#directoryPanel .mb-dir-hero p,
#directoryPanel .mb-dir-card h3,
#directoryPanel .mb-dir-section-head h3{
  max-width:100% !important;
  overflow-wrap:anywhere !important;
  word-break:normal !important;
}
#directoryPanel .mb-dir-hero h2{
  font-size:clamp(25px,3.2vw,38px) !important;
  line-height:1.08 !important;
}
#directoryPanel .mb-dir-stats-row{
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
}
#directoryPanel .mb-dir-toolbar{
  grid-template-columns:minmax(0,1fr) 190px !important;
}
#directoryPanel .mb-dir-grid{
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
}
#directoryPanel .mb-dir-featured-strip,
#directoryPanel .mb-dir-categories{
  overflow-x:auto !important;
  overflow-y:hidden !important;
}
@media(max-width:900px){
  #directoryPanel .mb-dir-toolbar,
  #directoryPanel .mb-dir-grid,
  #directoryPanel .mb-dir-stats-row{
    grid-template-columns:1fr !important;
  }
  #directoryPanel .mb-dir-hero h2{
    font-size:clamp(25px,6vw,34px) !important;
  }
}

/* ==========================================================
   FIX DIRECTORIO CATEGORIAS PC + ESTABILIDAD SCROLL
   - En PC muestra barra horizontal para mover categorias.
   - En movil mantiene desplazamiento con dedo sin romper diseño.
   - Evita saltos hacia arriba al llegar al final del directorio.
========================================================== */
body.directory-open{
  overscroll-behavior-y:contain !important;
  scroll-behavior:auto !important;
}
body.directory-open main,
body.directory-open #directoryPanel,
body.directory-open #directoryPanel *{
  scroll-behavior:auto !important;
}
body.directory-open #directoryPanel{
  overflow-anchor:none !important;
}
#directoryPanel .mb-dir-categories{
  display:flex !important;
  flex-wrap:nowrap !important;
  gap:8px !important;
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  overflow-x:auto !important;
  overflow-y:hidden !important;
  white-space:nowrap !important;
  -webkit-overflow-scrolling:touch !important;
  overscroll-behavior-x:contain !important;
  scrollbar-width:thin !important;
  scrollbar-color:rgba(255,204,0,.75) rgba(255,255,255,.08) !important;
  padding-bottom:11px !important;
  margin-bottom:10px !important;
  touch-action:pan-x pan-y !important;
}
#directoryPanel .mb-dir-categories::-webkit-scrollbar{
  display:block !important;
  height:8px !important;
}
#directoryPanel .mb-dir-categories::-webkit-scrollbar-track{
  background:rgba(255,255,255,.08) !important;
  border-radius:999px !important;
}
#directoryPanel .mb-dir-categories::-webkit-scrollbar-thumb{
  background:linear-gradient(90deg,#ffcc00,#ff2d55) !important;
  border-radius:999px !important;
}
#directoryPanel .mb-dir-categories button{
  flex:0 0 auto !important;
  white-space:nowrap !important;
}
#directoryPanel .mb-dir-toolbar,
#directoryPanel .mb-dir-grid,
#directoryPanel .mb-dir-empty-card{
  overflow-anchor:none !important;
}
@media(max-width:760px){
  #directoryPanel .mb-dir-categories{
    scrollbar-width:none !important;
    padding-bottom:4px !important;
  }
  #directoryPanel .mb-dir-categories::-webkit-scrollbar{
    display:none !important;
  }
}

/* ==========================================================
   DIRECTORIO: GALERIA DE FOTOS + BOTON ELIMINAR
   - Hasta 5 fotos opcionales del local.
   - Boton eliminar para el dueno del anuncio.
========================================================== */
#directoryPanel .mb-dir-gallery{
  display:flex;
  flex-wrap:nowrap;
  gap:7px;
  margin:8px 0 10px;
  overflow-x:auto;
  overflow-y:hidden;
  padding-bottom:4px;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:thin;
  scrollbar-color:rgba(255,204,0,.65) rgba(255,255,255,.06);
}
#directoryPanel .mb-dir-gallery::-webkit-scrollbar{height:6px;display:block;}
#directoryPanel .mb-dir-gallery::-webkit-scrollbar-track{background:rgba(255,255,255,.06);border-radius:999px;}
#directoryPanel .mb-dir-gallery::-webkit-scrollbar-thumb{background:linear-gradient(90deg,#ffcc00,#ff2d55);border-radius:999px;}
#directoryPanel .mb-dir-gallery button{
  flex:0 0 auto;
  width:74px;
  height:58px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:14px;
  padding:0;
  background:#080b12;
  overflow:hidden;
  cursor:pointer;
}
#directoryPanel .mb-dir-gallery img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
#directoryPanel .mb-dir-actions .mb-dir-delete-btn{
  background:rgba(255,59,92,.14) !important;
  color:#ff8aa3 !important;
  border:1px solid rgba(255,59,92,.35) !important;
}
#directoryPanel .mb-dir-actions .mb-dir-delete-btn:hover{
  background:rgba(255,59,92,.22) !important;
}

/* ==========================================================
   DIRECTORIO FIX FINAL: editar, actualizar, categorias por defecto
   - Mantiene "Todos" marcado por defecto.
   - No provoca saltos hacia arriba al actualizar/filtrar.
   - Boton Editar visible para el propietario del anuncio.
========================================================== */
#directoryPanel .mb-dir-categories button.active{
  background:linear-gradient(135deg,#ffcc00,#ff2d55) !important;
  color:#05070d !important;
  box-shadow:0 8px 22px rgba(255,204,0,.22) !important;
}
#directoryPanel .mb-dir-actions .mb-dir-edit-btn{
  background:linear-gradient(135deg,#00e7ff,#2478ff) !important;
  color:#fff !important;
  border:0 !important;
}
body.directory-open,
html.directory-open{
  scroll-behavior:auto !important;
  overflow-anchor:none !important;
}
#directoryPanel,
#directoryPanel .mb-dir-grid,
#directoryPanel .mb-dir-toolbar,
#directoryPanel .mb-dir-categories,
#directoryPanel .mb-dir-featured-strip{
  overflow-anchor:none !important;
}

/* ===== DIRECTORIO: FOTOS EXISTENTES AL EDITAR ===== */
.mb-dir-existing-photos{
  grid-column:1/-1;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:2px;
}
.mb-dir-existing-photo{
  position:relative;
  width:76px;
  height:76px;
  border-radius:16px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.14);
  background:#0b0f18;
  box-shadow:0 8px 24px rgba(0,0,0,.35);
}
.mb-dir-existing-photo img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.mb-dir-existing-photo button{
  position:absolute;
  top:4px;
  right:4px;
  width:24px;
  height:24px;
  border-radius:50%;
  border:0;
  background:rgba(255,45,85,.92);
  color:#fff;
  font-weight:900;
  cursor:pointer;
  line-height:1;
  box-shadow:0 4px 14px rgba(0,0,0,.45);
}


/* ==========================================================
   FIX MATCHBOY 26 JUNIO: DIRECTORIO MOVIL + SIDEBAR COMPACTO
   - Solo ajusta diseño móvil y ubicación de publicidad.
   - No cambia lógica del Directorio.
========================================================== */

/* Publicidad encima de usuarios */
.mb-grid-top-ad{
  width:min(640px, calc(100% - 16px));
  height:58px;
  margin:8px auto 12px;
  position:relative;
  overflow:hidden;
  border-radius:18px;
  background:#0b0f18;
  border:1px solid rgba(255,255,255,.10);
  box-shadow:0 12px 34px rgba(0,0,0,.35);
  display:block;
}
.mb-grid-top-ad:empty{display:none;}
.mb-grid-top-ad img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  cursor:pointer;
  transition:opacity .45s ease;
}
body.directory-open .mb-grid-top-ad,
body.pro-panel-open .mb-grid-top-ad,
body.feed-open .mb-grid-top-ad{
  display:none !important;
}

/* Sidebar más compacto y limpio */
#sideMenu.side-menu-premium{
  width:min(84vw,340px) !important;
}
#sideMenu.side-menu-premium .side-premium-head{
  padding:12px 12px 10px !important;
}
#sideMenu.side-menu-premium .side-avatar-premium{
  width:48px !important;
  height:48px !important;
  border-radius:16px !important;
}
#sideMenu.side-menu-premium .side-avatar-premium img{
  border-radius:14px !important;
}
#sideMenu.side-menu-premium .side-profile-title{
  font-size:15px !important;
}
#sideMenu.side-menu-premium .side-profile-sub{
  font-size:11px !important;
}
#sideMenu.side-menu-premium .side-profile-pills span{
  font-size:9px !important;
  padding:3px 6px !important;
}
#sideMenu.side-menu-premium .side-close-premium{
  width:34px !important;
  height:34px !important;
  border-radius:12px !important;
}
#sideMenu.side-menu-premium .side-download-pro{
  margin:10px 12px 8px !important;
  padding:9px 10px !important;
  border-radius:16px !important;
  gap:9px !important;
  min-height:52px !important;
}
#sideMenu.side-menu-premium .side-download-play{
  width:36px !important;
  height:36px !important;
  border-radius:13px !important;
}
#sideMenu.side-menu-premium .side-download-play svg{
  width:20px !important;
  height:20px !important;
}
#sideMenu.side-menu-premium .side-download-pro small{
  font-size:10px !important;
  line-height:1.1 !important;
}
#sideMenu.side-menu-premium .side-download-pro strong{
  font-size:13px !important;
  line-height:1.1 !important;
}
#sideMenu.side-menu-premium .side-download-pro>span{
  font-size:10px !important;
  padding:6px 8px !important;
}
#sideMenu.side-menu-premium .side-banner-premium{
  display:none !important;
}
#sideMenu.side-menu-premium .side-menu-scroll{
  padding:6px 12px 12px !important;
  gap:3px !important;
}
#sideMenu.side-menu-premium .side-menu-btn{
  padding:9px 10px !important;
  margin:2px 0 !important;
  border-radius:14px !important;
  gap:10px !important;
  font-size:14px !important;
}
#sideMenu.side-menu-premium .side-icon{
  width:24px !important;
  height:24px !important;
}
#sideMenu.side-menu-premium .side-icon svg{
  width:21px !important;
  height:21px !important;
}
#sideMenu.side-menu-premium .side-menu-ad-btn small{
  font-size:10px !important;
  padding:5px 8px !important;
}
#sideMenu.side-menu-premium .side-legal-card{
  margin-top:8px !important;
  border-radius:16px !important;
}
#sideMenu.side-menu-premium .side-legal-toggle{
  padding:11px 12px !important;
  font-size:13px !important;
}
#sideMenu.side-menu-premium .side-sub-btn{
  padding:9px 12px !important;
  font-size:12px !important;
}
#sideMenu.side-menu-premium .side-premium-footer{
  padding:10px 12px 12px !important;
}
#sideMenu.side-menu-premium .side-logout-pro{
  padding:12px !important;
  border-radius:16px !important;
  font-size:14px !important;
}

/* Directorio móvil: más ordenado y sin elementos tapados */
@media(max-width:760px){
  body.directory-open main{
    padding:0 10px 140px !important;
    overflow-x:hidden !important;
  }
  body.directory-open #openProfileBtn,
  body.directory-open .floating-edit{
    display:none !important;
  }
  #directoryPanel.mb-dir-premium{
    margin:8px auto 130px !important;
  }
  #directoryPanel .mb-dir-hero{
    padding:14px !important;
    border-radius:22px !important;
  }
  #directoryPanel .mb-dir-kicker{
    font-size:11px !important;
    padding:6px 9px !important;
  }
  #directoryPanel .mb-dir-hero h2{
    font-size:25px !important;
    line-height:1.08 !important;
    margin:10px 0 8px !important;
  }
  #directoryPanel .mb-dir-hero p{
    font-size:13px !important;
    line-height:1.45 !important;
  }
  #directoryPanel .mb-dir-hero-actions{
    display:grid !important;
    grid-template-columns:1fr 1fr !important;
    gap:8px !important;
    margin-top:13px !important;
  }
  #directoryPanel .mb-dir-main-btn,
  #directoryPanel .mb-dir-soft-btn,
  #directoryPanel .mb-dir-section-head button,
  #directoryPanel .mb-dir-form-head button{
    min-height:42px !important;
    padding:10px 12px !important;
    border-radius:14px !important;
    font-size:12px !important;
  }
  #directoryPanel .mb-dir-stats-row{
    display:grid !important;
    grid-template-columns:repeat(3, minmax(0,1fr)) !important;
    gap:7px !important;
    margin:10px 0 12px !important;
  }
  #directoryPanel .mb-dir-stats-row div{
    padding:10px !important;
    min-height:70px !important;
    border-radius:16px !important;
  }
  #directoryPanel .mb-dir-stats-row strong{
    font-size:18px !important;
  }
  #directoryPanel .mb-dir-stats-row span{
    font-size:10px !important;
    line-height:1.2 !important;
  }
  #directoryPanel .mb-dir-section-head{
    margin:14px 0 8px !important;
    gap:8px !important;
    align-items:center !important;
  }
  #directoryPanel .mb-dir-section-head h3{
    font-size:19px !important;
  }
  #directoryPanel .mb-dir-featured-strip{
    grid-auto-columns:minmax(220px,82vw) !important;
    gap:10px !important;
  }
  #directoryPanel .mb-dir-categories{
    margin:12px 0 10px !important;
    padding-bottom:8px !important;
  }
  #directoryPanel .mb-dir-categories button{
    padding:9px 12px !important;
    font-size:13px !important;
  }
  #directoryPanel .mb-dir-toolbar{
    padding:10px !important;
    gap:8px !important;
    border-radius:18px !important;
  }
  #directoryPanel input,
  #directoryPanel select,
  #directoryPanel textarea{
    min-height:46px !important;
    padding:11px 12px !important;
    font-size:14px !important;
    border-radius:14px !important;
  }
  #directoryPanel .mb-dir-form-card{
    padding:14px !important;
    border-radius:22px !important;
  }
  #directoryPanel .mb-dir-form-head{
    align-items:center !important;
  }
  #directoryPanel .mb-dir-form-head strong{
    font-size:18px !important;
  }
  #directoryPanel .mb-dir-form-head span{
    font-size:12px !important;
  }
  #directoryPanel .mb-dir-form-grid{
    gap:9px !important;
  }
  #directoryPanel .mb-dir-file-label{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:7px !important;
    padding:10px !important;
    font-size:12px !important;
  }
  #directoryPanel .mb-dir-file-label input{
    width:100% !important;
    font-size:12px !important;
  }
  #directoryPanel .mb-dir-existing-photos{
    flex-wrap:nowrap !important;
    overflow-x:auto !important;
    padding-bottom:6px !important;
  }
  #directoryPanel .mb-dir-existing-photo{
    flex:0 0 auto !important;
    width:70px !important;
    height:70px !important;
  }
  #directoryPanel .mb-dir-grid{
    grid-template-columns:1fr !important;
    gap:12px !important;
  }
  #directoryPanel .mb-dir-card{
    border-radius:22px !important;
    padding:13px !important;
    display:grid !important;
    grid-template-columns:72px minmax(0,1fr) !important;
    gap:12px !important;
    align-items:start !important;
  }
  #directoryPanel .mb-dir-logo-wrap{
    width:72px !important;
    height:72px !important;
    border-radius:18px !important;
  }
  #directoryPanel .mb-dir-card-body{
    min-width:0 !important;
  }
  #directoryPanel .mb-dir-card-top{
    display:block !important;
  }
  #directoryPanel .mb-dir-card h3{
    font-size:17px !important;
  }
  #directoryPanel .mb-dir-card p{
    font-size:12px !important;
    margin:7px 0 !important;
  }
  #directoryPanel .mb-dir-gallery{
    grid-column:1/-1 !important;
    margin-top:4px !important;
  }
  #directoryPanel .mb-dir-gallery button{
    width:70px !important;
    height:56px !important;
  }
  #directoryPanel .mb-dir-info-row{
    grid-column:1/-1 !important;
    gap:5px !important;
    font-size:11px !important;
  }
  #directoryPanel .mb-dir-actions{
    grid-column:1/-1 !important;
    gap:6px !important;
  }
  #directoryPanel .mb-dir-actions a,
  #directoryPanel .mb-dir-actions button{
    padding:8px 10px !important;
    font-size:12px !important;
  }
}

@media(max-width:420px){
  #directoryPanel .mb-dir-hero-actions{
    grid-template-columns:1fr !important;
  }
  #directoryPanel .mb-dir-stats-row{
    grid-template-columns:1fr 1fr !important;
  }
  #directoryPanel .mb-dir-stats-row div:nth-child(3){
    grid-column:1/-1 !important;
  }
}

/* =====================================================
   SIDEBAR: NOTIFICACIONES + POLITICAS ENCIMA DE CERRAR SESION
   ===================================================== */
#sideMenu.side-menu-premium{
  display:flex !important;
  flex-direction:column !important;
}
#sideMenu.side-menu-premium .side-menu-scroll{
  flex:1 1 auto !important;
  min-height:0 !important;
}
#sideMenu.side-menu-premium .side-premium-footer{
  flex:0 0 auto !important;
  display:block !important;
  padding:8px 12px 12px !important;
  border-top:1px solid rgba(255,255,255,.08) !important;
  background:linear-gradient(180deg,rgba(0,0,0,0),rgba(0,0,0,.55)) !important;
}
#sideMenu.side-menu-premium .side-footer-tools{
  display:grid !important;
  gap:7px !important;
  margin:0 0 10px !important;
}
#sideMenu.side-menu-premium .side-footer-tools #mbNotifSideBtn,
#sideMenu.side-menu-premium .side-footer-tools .side-legal-card{
  margin:0 !important;
}
#sideMenu.side-menu-premium .side-footer-tools #mbNotifSideBtn{
  padding:10px 12px !important;
  min-height:48px !important;
  border-radius:15px !important;
  background:linear-gradient(135deg,rgba(255,255,255,.055),rgba(255,255,255,.025)) !important;
  border:1px solid rgba(255,255,255,.07) !important;
}
#sideMenu.side-menu-premium .side-footer-tools #mbNotifSideBtn .mb-notif-side-icon{
  width:28px !important;
  height:28px !important;
  border-radius:10px !important;
  font-size:16px !important;
}
#sideMenu.side-menu-premium .side-footer-tools #mbNotifSideBtn .mb-notif-side-text strong{
  font-size:13px !important;
}
#sideMenu.side-menu-premium .side-footer-tools #mbNotifSideBtn .mb-notif-side-text small{
  font-size:10px !important;
}
#sideMenu.side-menu-premium .side-footer-tools .side-legal-card{
  padding:0 !important;
  border-radius:15px !important;
  overflow:hidden !important;
  background:linear-gradient(135deg,rgba(255,255,255,.055),rgba(255,255,255,.025)) !important;
}
#sideMenu.side-menu-premium .side-footer-tools .side-legal-toggle{
  min-height:48px !important;
  padding:10px 12px !important;
}
#sideMenu.side-menu-premium .side-logout-pro{
  margin-top:0 !important;
}


/* =====================================================
   DIRECTORIO EN MENU LATERAL - SIN BOTON EN MENU SUPERIOR
===================================================== */
#mbTopFilterMenu [data-filter="directory"],
.filter-row [data-filter="directory"]{
  display:none !important;
}

.side-menu-premium .side-menu-directory-btn,
#sideMenu.side-menu-premium .side-menu-directory-btn{
  background:linear-gradient(90deg,rgba(255,178,0,.16),rgba(255,45,85,.10)) !important;
  border:1px solid rgba(255,178,0,.22) !important;
}

.side-menu-premium .side-menu-directory-btn small,
#sideMenu.side-menu-premium .side-menu-directory-btn small{
  margin-left:auto;
  color:#ffcc00;
  font-size:11px;
  font-weight:900;
  background:rgba(255,204,0,.12);
  padding:5px 8px;
  border-radius:999px;
}

.side-menu-premium .side-orange,
#sideMenu.side-menu-premium .side-orange{
  color:#ffb000 !important;
}

.side-menu-premium .side-orange svg,
#sideMenu.side-menu-premium .side-orange svg{
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}

/* ==========================================================
   DIRECTORIO PRO: tarjetas destacadas clicables, visor interno
   de fotos y formulario premium con indicador de album.
   Mantiene la logica actual y solo mejora la experiencia visual.
========================================================== */
#directoryPanel .mb-dir-featured-card{
  cursor:pointer !important;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease !important;
}
#directoryPanel .mb-dir-featured-card:hover{
  transform:translateY(-2px) !important;
  border-color:rgba(255,204,0,.45) !important;
  box-shadow:0 18px 48px rgba(255,204,0,.10), 0 18px 50px rgba(0,0,0,.35) !important;
}
#directoryPanel .mb-dir-featured-hint{
  display:block;
  margin-top:5px;
  color:#ffcc00;
  font-size:11px;
  font-weight:850;
}
#directoryPanel .mb-dir-card-focus{
  animation:mbDirFocusPulse 1.6s ease 1;
}
@keyframes mbDirFocusPulse{
  0%{box-shadow:0 0 0 rgba(255,204,0,0);}
  28%{box-shadow:0 0 0 3px rgba(255,204,0,.55),0 0 42px rgba(255,204,0,.30);}
  100%{box-shadow:0 0 0 rgba(255,204,0,0);}
}

#directoryPanel .mb-dir-photo-viewer{
  position:fixed;
  inset:0;
  z-index:10000050;
  display:none;
  align-items:center;
  justify-content:center;
  background:rgba(0,0,0,.92);
  backdrop-filter:blur(8px);
  padding:20px;
}
#directoryPanel .mb-dir-photo-viewer.is-open{display:flex;}
#directoryPanel .mb-dir-photo-viewer img{
  max-width:min(980px,94vw);
  max-height:86vh;
  object-fit:contain;
  border-radius:18px;
  box-shadow:0 24px 80px rgba(0,0,0,.75);
}
#directoryPanel .mb-dir-photo-close,
#directoryPanel .mb-dir-photo-nav{
  position:absolute;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(15,18,28,.78);
  color:#fff;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 12px 30px rgba(0,0,0,.45);
}
#directoryPanel .mb-dir-photo-close{
  top:18px;
  right:18px;
  width:44px;
  height:44px;
  border-radius:50%;
  font-size:30px;
  font-weight:900;
}
#directoryPanel .mb-dir-photo-nav{
  top:50%;
  transform:translateY(-50%);
  width:52px;
  height:52px;
  border-radius:50%;
  font-size:42px;
  line-height:1;
}
#directoryPanel .mb-dir-photo-prev{left:18px;}
#directoryPanel .mb-dir-photo-next{right:18px;}
#directoryPanel .mb-dir-photo-counter{
  position:absolute;
  left:50%;
  bottom:18px;
  transform:translateX(-50%);
  padding:7px 13px;
  border-radius:999px;
  background:rgba(15,18,28,.80);
  color:#fff;
  border:1px solid rgba(255,255,255,.16);
  font-weight:850;
  font-size:13px;
}

#directoryPanel .mb-dir-form-card{
  background:radial-gradient(circle at top left,rgba(255,204,0,.10),transparent 38%),linear-gradient(180deg,rgba(19,23,35,.98),rgba(7,9,15,.98)) !important;
  border:1px solid rgba(255,204,0,.18) !important;
  box-shadow:0 20px 60px rgba(0,0,0,.48), inset 0 1px 0 rgba(255,255,255,.05) !important;
}
#directoryPanel .mb-dir-form-head{
  padding-bottom:12px !important;
  border-bottom:1px solid rgba(255,255,255,.08) !important;
}
#directoryPanel .mb-dir-form-head strong{
  color:#ffcc00 !important;
  font-size:20px !important;
}
#directoryPanel .mb-dir-form-head span{
  display:block !important;
  margin-top:4px !important;
  color:#b9c2d8 !important;
  line-height:1.35 !important;
}
#directoryPanel .mb-dir-form-grid input,
#directoryPanel .mb-dir-form-grid select,
#directoryPanel .mb-dir-form-card textarea{
  background:#0b101c !important;
  border:1px solid rgba(255,255,255,.11) !important;
  border-radius:16px !important;
  color:#fff !important;
  min-height:48px !important;
}
#directoryPanel .mb-dir-form-card textarea{
  min-height:100px !important;
  resize:vertical !important;
}
#directoryPanel .mb-dir-file-label{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:12px !important;
  min-height:66px !important;
  padding:12px !important;
  border-radius:18px !important;
  background:linear-gradient(135deg,rgba(255,204,0,.08),rgba(36,120,255,.06)) !important;
  border:1px dashed rgba(255,204,0,.34) !important;
  color:#fff !important;
}
#directoryPanel .mb-dir-file-label span{
  display:flex !important;
  flex-direction:column !important;
  gap:3px !important;
  min-width:0 !important;
}
#directoryPanel .mb-dir-file-label b{
  color:#fff !important;
  font-size:14px !important;
}
#directoryPanel .mb-dir-file-label small{
  color:#aeb7cc !important;
  font-size:12px !important;
}
#directoryPanel .mb-dir-file-label input[type="file"]{
  max-width:220px !important;
  color:#dbe4ff !important;
}
#directoryPanel .mb-dir-photo-help{
  grid-column:1/-1;
  border-radius:14px;
  padding:10px 12px;
  background:rgba(255,204,0,.08);
  border:1px solid rgba(255,204,0,.16);
  color:#ffdf70;
  font-size:12px;
  font-weight:850;
}
#directoryPanel .mb-dir-photo-preview{
  grid-column:1/-1;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
#directoryPanel .mb-dir-preview-photo{
  position:relative;
  width:76px;
  height:76px;
  border-radius:16px;
  overflow:hidden;
  background:#0b0f18;
  border:1px solid rgba(255,255,255,.14);
  box-shadow:0 8px 24px rgba(0,0,0,.35);
}
#directoryPanel .mb-dir-preview-photo img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
#directoryPanel .mb-dir-preview-photo b{
  position:absolute;
  right:5px;
  bottom:5px;
  min-width:21px;
  height:21px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg,#ffcc00,#ff2d55);
  color:#05070d;
  font-size:11px;
  font-weight:950;
}

@media(max-width:760px){
  #directoryPanel .mb-dir-form-card{
    padding:14px !important;
    border-radius:24px !important;
    margin-bottom:120px !important;
  }
  #directoryPanel .mb-dir-form-head{
    align-items:center !important;
  }
  #directoryPanel .mb-dir-form-head strong{
    font-size:18px !important;
  }
  #directoryPanel .mb-dir-file-label{
    flex-direction:column !important;
    align-items:flex-start !important;
  }
  #directoryPanel .mb-dir-file-label input[type="file"]{
    max-width:100% !important;
    width:100% !important;
  }
  #directoryPanel .mb-dir-photo-nav{
    width:44px;
    height:44px;
    font-size:34px;
  }
  #directoryPanel .mb-dir-photo-prev{left:8px;}
  #directoryPanel .mb-dir-photo-next{right:8px;}
  #directoryPanel .mb-dir-photo-close{top:10px;right:10px;}
}


/* ==========================================================
   FIX 27 JUNIO: PUBLICIDAD EN MENU LATERAL + SWIPE
   - El banner ya no ocupa espacio encima de usuarios.
   - Se muestra dentro del menu lateral izquierdo.
========================================================== */
#mbGridTopAdBanner.mb-grid-top-ad{
  display:none !important;
}
#sideMenu.side-menu-premium{
  touch-action:pan-y;
  will-change:transform;
}
#sideMenu.side-menu-premium .side-banner-premium{
  width:calc(100% - 32px) !important;
  height:72px !important;
  margin:0 auto 12px !important;
  position:relative !important;
  overflow:hidden !important;
  border-radius:18px !important;
  background:#0b0f18 !important;
  border:1px solid rgba(255,255,255,.10) !important;
  box-shadow:0 12px 34px rgba(0,0,0,.35) !important;
  display:block;
}
#sideMenu.side-menu-premium .side-banner-premium:empty{
  display:none !important;
}
#sideMenu.side-menu-premium .side-banner-premium img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  cursor:pointer;
  transition:opacity .45s ease;
}

/* ==========================================================
   FIX FINAL 27 JUNIO: BANNER 320x50 COMPLETO + SWIPE MENU
   - Mantiene el banner dentro del menu lateral sin recortarlo.
   - Oculta el banner superior de la vista cuadriculada.
========================================================== */
#mbGridTopAdBanner.mb-grid-top-ad,
.mb-grid-top-ad{
  display:none !important;
}

#sideMenu.side-menu-premium{
  touch-action:pan-y !important;
  will-change:transform !important;
}

#sideMenu.side-menu-premium .side-banner-premium{
  width:320px !important;
  max-width:calc(100% - 32px) !important;
  height:50px !important;
  min-height:50px !important;
  max-height:50px !important;
  margin:0 auto 12px !important;
  padding:0 !important;
  position:relative !important;
  overflow:hidden !important;
  border-radius:10px !important;
  background:#05060b !important;
  border:1px solid rgba(255,255,255,.10) !important;
  box-shadow:0 10px 26px rgba(0,0,0,.35) !important;
  display:block !important;
  flex:0 0 50px !important;
}

#sideMenu.side-menu-premium .side-banner-premium:empty{
  display:none !important;
}

#sideMenu.side-menu-premium .side-banner-premium img{
  position:absolute !important;
  inset:0 !important;
  width:100% !important;
  height:100% !important;
  object-fit:contain !important;
  object-position:center center !important;
  display:block !important;
  cursor:pointer !important;
  transition:opacity .45s ease !important;
}

/* =========================================
   ESTADO DEL PAQUETE PRO EN LA SECCION PRO
=========================================== */
#proPanel .pro-current-featured-card{
  position:relative;
  width:100%;
  max-width:720px;
  margin:14px auto 14px;
  padding:18px;
  border-radius:26px;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  color:#fff;
  border:1px solid rgba(255,255,255,.12);
  background:
    radial-gradient(circle at 12% 0%,rgba(255,204,0,.20),transparent 42%),
    radial-gradient(circle at 92% 20%,rgba(255,43,214,.16),transparent 38%),
    linear-gradient(135deg,#141821,#080a10);
  box-shadow:0 18px 45px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.06);
}
#proPanel .pro-current-featured-card.pro-current-active{
  border-color:rgba(255,204,0,.45);
  box-shadow:0 18px 45px rgba(0,0,0,.42),0 0 22px rgba(255,204,0,.16), inset 0 1px 0 rgba(255,255,255,.08);
}
#proPanel .pro-current-featured-card.pro-current-warning{
  border-color:rgba(255,149,0,.62);
  box-shadow:0 18px 45px rgba(0,0,0,.42),0 0 24px rgba(255,149,0,.20), inset 0 1px 0 rgba(255,255,255,.08);
}
#proPanel .pro-current-featured-card.pro-current-empty{
  border-color:rgba(0,231,255,.22);
}
#proPanel .pro-current-glow{
  position:absolute;
  right:-60px;
  top:-70px;
  width:170px;
  height:170px;
  border-radius:50%;
  background:rgba(255,204,0,.20);
  filter:blur(35px);
  pointer-events:none;
}
#proPanel .pro-current-left{position:relative;z-index:1;min-width:0;}
#proPanel .pro-current-badge{
  display:inline-flex;
  align-items:center;
  width:max-content;
  max-width:100%;
  padding:6px 11px;
  border-radius:999px;
  font-size:11px;
  font-weight:1000;
  letter-spacing:.35px;
  color:#111;
  background:linear-gradient(135deg,#ffcc00,#ff9f0a);
  box-shadow:0 8px 22px rgba(255,204,0,.25);
  margin-bottom:9px;
}
#proPanel .pro-current-empty .pro-current-badge{
  color:#fff;
  background:rgba(0,231,255,.12);
  border:1px solid rgba(0,231,255,.24);
  box-shadow:none;
}
#proPanel .pro-current-warning .pro-current-badge{
  background:linear-gradient(135deg,#ff9500,#ffcc00);
}
#proPanel .pro-current-featured-card h3{
  margin:0;
  font-size:22px;
  line-height:1.12;
  font-weight:1000;
  color:#fff;
}
#proPanel .pro-current-featured-card p{
  margin:7px 0 0;
  font-size:13px;
  line-height:1.42;
  color:#dce3f2;
}
#proPanel .pro-current-meta{
  margin-top:12px;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
#proPanel .pro-current-meta span{
  display:inline-flex;
  padding:7px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  color:#fff;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.10);
}
#proPanel .pro-current-action{
  position:relative;
  z-index:1;
  border:0;
  border-radius:999px;
  padding:13px 20px;
  min-width:140px;
  background:linear-gradient(135deg,#ffcc00,#ff9f0a);
  color:#050505;
  font-size:13px;
  font-weight:1000;
  cursor:pointer;
  box-shadow:0 14px 28px rgba(255,204,0,.28);
  white-space:nowrap;
}
#proPanel .pro-current-action:active{transform:scale(.97);}
@media(max-width:640px){
  #proPanel .pro-current-featured-card{
    flex-direction:column;
    align-items:stretch;
    padding:16px;
    border-radius:22px;
  }
  #proPanel .pro-current-featured-card h3{font-size:19px;}
  #proPanel .pro-current-action{width:100%;}
  #proPanel .pro-current-meta{gap:7px;}
  #proPanel .pro-current-meta span{font-size:11px;}
}

/* ==========================================================
   MATCHBOY PRO ULTRA + POLITICA ADMOB EN CHATS
   - Diseno premium igualado para web y movil.
   - Oculta banners AdMob/ads inferiores cuando hay chat publico o privado.
========================================================== */
#proPanel.mb-pro-ultra{
  width:min(860px, calc(100vw - 22px)) !important;
  max-width:860px !important;
  margin:12px auto 112px !important;
  padding:0 0 30px !important;
  color:#fff !important;
  overflow:visible !important;
  box-sizing:border-box !important;
}
#proPanel.mb-pro-ultra *{box-sizing:border-box !important;}
#proPanel .pro-hero-card{
  position:relative !important;
  min-height:214px !important;
  display:grid !important;
  grid-template-columns:minmax(0,1.35fr) minmax(180px,.65fr) !important;
  gap:18px !important;
  align-items:center !important;
  padding:24px !important;
  margin:0 0 14px !important;
  overflow:hidden !important;
  border-radius:32px !important;
  background:
    radial-gradient(circle at 12% 8%, rgba(255,204,0,.36), transparent 34%),
    radial-gradient(circle at 95% 12%, rgba(255,43,214,.26), transparent 34%),
    radial-gradient(circle at 72% 104%, rgba(0,231,255,.18), transparent 38%),
    linear-gradient(145deg,#191b2a 0%,#090b13 72%) !important;
  border:1px solid rgba(255,255,255,.14) !important;
  box-shadow:0 24px 70px rgba(0,0,0,.56), inset 0 1px 0 rgba(255,255,255,.10) !important;
  isolation:isolate !important;
}
#proPanel .pro-hero-card:before{
  content:"" !important;
  position:absolute !important;
  inset:-1px !important;
  border-radius:inherit !important;
  padding:1px !important;
  background:linear-gradient(135deg, rgba(255,204,0,.75), rgba(255,43,214,.28), rgba(0,231,255,.40)) !important;
  -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0) !important;
  -webkit-mask-composite:xor !important;
  mask-composite:exclude !important;
  pointer-events:none !important;
  z-index:1 !important;
}
#proPanel .pro-hero-bg{
  position:absolute !important;
  inset:0 !important;
  background:linear-gradient(110deg, transparent 0%, rgba(255,255,255,.12) 44%, transparent 62%) !important;
  transform:translateX(-120%) !important;
  animation:mbProUltraShine 5.5s infinite ease-in-out !important;
  pointer-events:none !important;
  z-index:0 !important;
}
@keyframes mbProUltraShine{0%,48%{transform:translateX(-120%)}78%,100%{transform:translateX(120%)}}
#proPanel .pro-hero-content,
#proPanel .pro-hero-visual{position:relative !important;z-index:2 !important;}
#proPanel .pro-kicker-row{
  display:flex !important;
  align-items:center !important;
  gap:9px !important;
  flex-wrap:wrap !important;
  margin-bottom:12px !important;
}
#proPanel .pro-kicker{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-height:30px !important;
  padding:7px 13px !important;
  border-radius:999px !important;
  background:linear-gradient(135deg,#fff4a3 0%,#ffcc00 48%,#ff8a00 100%) !important;
  color:#080808 !important;
  font-size:12px !important;
  font-weight:1000 !important;
  letter-spacing:.7px !important;
  box-shadow:0 0 24px rgba(255,204,0,.38) !important;
}
#proPanel .pro-live-pill{
  display:inline-flex !important;
  align-items:center !important;
  min-height:30px !important;
  padding:7px 12px !important;
  border-radius:999px !important;
  color:#eaf8ff !important;
  font-size:12px !important;
  font-weight:850 !important;
  background:rgba(255,255,255,.075) !important;
  border:1px solid rgba(255,255,255,.12) !important;
  backdrop-filter:blur(12px) !important;
}
#proPanel .pro-hero-card h2{
  margin:0 0 8px !important;
  font-size:clamp(34px, 5.4vw, 54px) !important;
  line-height:.96 !important;
  letter-spacing:-.055em !important;
  font-weight:1000 !important;
  color:#fff !important;
  text-shadow:0 10px 34px rgba(0,0,0,.64) !important;
}
#proPanel .pro-hero-card p{
  width:min(520px,100%) !important;
  margin:0 !important;
  color:#dfe5f5 !important;
  font-size:15px !important;
  line-height:1.55 !important;
}
#proPanel .pro-hero-actions{
  display:flex !important;
  align-items:center !important;
  gap:10px !important;
  flex-wrap:wrap !important;
  margin-top:18px !important;
}
#proPanel .pro-main-cta,
#proPanel .pro-soft-cta{
  border:0 !important;
  cursor:pointer !important;
  min-height:48px !important;
  border-radius:999px !important;
  transition:transform .18s ease, box-shadow .18s ease !important;
}
#proPanel .pro-main-cta{
  display:inline-flex !important;
  align-items:center !important;
  gap:10px !important;
  padding:10px 17px !important;
  background:linear-gradient(135deg,#fff08a,#ffcc00 46%,#ff8a00) !important;
  color:#060606 !important;
  box-shadow:0 14px 34px rgba(255,174,0,.30) !important;
}
#proPanel .pro-main-cta span{font-size:14px !important;font-weight:1000 !important;}
#proPanel .pro-main-cta strong{
  display:inline-flex !important;
  padding:6px 9px !important;
  border-radius:999px !important;
  background:rgba(0,0,0,.14) !important;
  font-size:11px !important;
  font-weight:950 !important;
}
#proPanel .pro-soft-cta{
  padding:0 16px !important;
  background:rgba(255,255,255,.07) !important;
  color:#fff !important;
  border:1px solid rgba(255,255,255,.13) !important;
  font-size:13px !important;
  font-weight:950 !important;
}
#proPanel .pro-main-cta:hover,
#proPanel .pro-soft-cta:hover{transform:translateY(-2px) !important;}
#proPanel .pro-hero-visual{
  min-height:174px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
}
#proPanel .pro-orbit{
  position:absolute !important;
  border-radius:50% !important;
  border:1px solid rgba(255,255,255,.14) !important;
  box-shadow:inset 0 0 30px rgba(255,204,0,.06) !important;
}
#proPanel .pro-orbit-one{width:168px !important;height:168px !important;animation:mbProOrbit 9s linear infinite !important;}
#proPanel .pro-orbit-two{width:112px !important;height:112px !important;animation:mbProOrbit 6s linear infinite reverse !important;}
@keyframes mbProOrbit{to{transform:rotate(360deg)}}
#proPanel .pro-crown-card{
  position:relative !important;
  width:132px !important;
  height:132px !important;
  border-radius:38px !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:center !important;
  gap:6px !important;
  background:linear-gradient(145deg,rgba(255,255,255,.16),rgba(255,255,255,.045)) !important;
  border:1px solid rgba(255,255,255,.18) !important;
  box-shadow:0 18px 50px rgba(0,0,0,.45),0 0 32px rgba(255,204,0,.20) !important;
  backdrop-filter:blur(18px) !important;
}
#proPanel .pro-crown-card span{
  width:58px !important;height:58px !important;border-radius:22px !important;
  display:flex !important;align-items:center !important;justify-content:center !important;
  background:linear-gradient(135deg,#fff4a3,#ffcc00,#ff8a00) !important;
  color:#050505 !important;font-size:30px !important;box-shadow:0 0 28px rgba(255,204,0,.36) !important;
}
#proPanel .pro-crown-card strong{font-size:20px !important;font-weight:1000 !important;letter-spacing:-.04em !important;}

/* Estado PRO */
#proPanel .pro-current-featured-card{
  max-width:100% !important;
  margin:0 0 14px !important;
  padding:18px !important;
  border-radius:28px !important;
  background:
    radial-gradient(circle at 10% 0%,rgba(0,231,255,.18),transparent 36%),
    radial-gradient(circle at 98% 10%,rgba(255,204,0,.22),transparent 34%),
    linear-gradient(135deg,rgba(18,22,34,.98),rgba(8,10,16,.98)) !important;
  border:1px solid rgba(255,255,255,.13) !important;
  box-shadow:0 18px 52px rgba(0,0,0,.46), inset 0 1px 0 rgba(255,255,255,.07) !important;
}
#proPanel .pro-current-featured-card.pro-current-active{
  border-color:rgba(255,204,0,.52) !important;
  box-shadow:0 18px 52px rgba(0,0,0,.46),0 0 30px rgba(255,204,0,.18), inset 0 1px 0 rgba(255,255,255,.08) !important;
}
#proPanel .pro-current-featured-card h3{
  font-size:clamp(20px,2.8vw,27px) !important;
  letter-spacing:-.035em !important;
}
#proPanel .pro-current-action{
  min-height:46px !important;
  border-radius:999px !important;
  padding:12px 18px !important;
  background:linear-gradient(135deg,#fff08a,#ffcc00 48%,#ff8a00) !important;
  color:#050505 !important;
  box-shadow:0 16px 34px rgba(255,177,0,.28) !important;
}

/* Usuarios PRO */
#proPanel .pro-users-showcase{
  padding:18px !important;
  border-radius:30px !important;
  background:
    radial-gradient(circle at 0% 0%, rgba(255,204,0,.18), transparent 34%),
    radial-gradient(circle at 100% 30%, rgba(255,43,214,.13), transparent 34%),
    linear-gradient(180deg, rgba(23,27,40,.98), rgba(8,10,16,.99)) !important;
  border:1px solid rgba(255,255,255,.13) !important;
  box-shadow:0 20px 58px rgba(0,0,0,.48), inset 0 1px 0 rgba(255,255,255,.07) !important;
}
#proPanel .featured-top-header{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:12px !important;
  margin-bottom:14px !important;
}
#proPanel .featured-top-title{
  font-size:24px !important;
  line-height:1 !important;
  font-weight:1000 !important;
  letter-spacing:-.04em !important;
}
#proPanel .featured-top-sub{font-size:13px !important;color:#c6cce0 !important;margin-top:4px !important;}
#proPanel .featured-cta-pro{
  min-width:auto !important;
  min-height:42px !important;
  flex-direction:row !important;
  gap:7px !important;
  padding:9px 14px !important;
  border-radius:999px !important;
  background:linear-gradient(135deg,#fff08a,#ffcc00 50%,#ff8a00) !important;
  color:#050505 !important;
  border:0 !important;
  box-shadow:0 12px 30px rgba(255,190,0,.30) !important;
}
#proPanel .featured-cta-icon{width:19px !important;height:19px !important;display:inline-flex !important;}
#proPanel .featured-cta-icon svg{width:19px !important;height:19px !important;}
#proPanel .featured-cta-main{font-size:12px !important;font-weight:1000 !important;white-space:nowrap !important;}
#proPanel .pro-users-strip-head{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:10px !important;
  margin:0 0 10px !important;
  color:#fff !important;
}
#proPanel .pro-users-strip-head span{font-size:13px !important;font-weight:950 !important;}
#proPanel .pro-users-strip-head small{font-size:11px !important;color:#9ca8c6 !important;}
#proPanel .pro-avatar-gallery,
#proPanel .featured-top-avatars{
  width:100% !important;
  min-height:116px !important;
  display:flex !important;
  align-items:stretch !important;
  gap:12px !important;
  padding:4px 2px 8px !important;
  overflow-x:auto !important;
  overflow-y:hidden !important;
  scroll-snap-type:x proximity !important;
  scrollbar-width:thin !important;
}
#proPanel .mb-pro-user-chip{
  width:92px !important;
  min-width:92px !important;
  height:106px !important;
  border-radius:24px !important;
  padding:10px 8px 9px !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:7px !important;
  cursor:pointer !important;
  position:relative !important;
  overflow:hidden !important;
  scroll-snap-align:start !important;
  background:linear-gradient(180deg,rgba(255,255,255,.105),rgba(255,255,255,.035)) !important;
  border:1px solid rgba(255,255,255,.13) !important;
  box-shadow:0 12px 30px rgba(0,0,0,.30), inset 0 1px 0 rgba(255,255,255,.08) !important;
  transition:transform .18s ease, border-color .18s ease, box-shadow .18s ease !important;
}
#proPanel .mb-pro-user-chip:before{
  content:"" !important;
  position:absolute !important;
  inset:0 !important;
  background:radial-gradient(circle at 50% 0%, rgba(255,204,0,.16), transparent 48%) !important;
  pointer-events:none !important;
}
#proPanel .mb-pro-user-chip:hover{
  transform:translateY(-3px) !important;
  border-color:rgba(255,204,0,.38) !important;
  box-shadow:0 16px 38px rgba(0,0,0,.36),0 0 24px rgba(255,204,0,.12) !important;
}
#proPanel .mb-pro-user-avatar{
  width:58px !important;
  height:58px !important;
  position:relative !important;
  border-radius:22px !important;
  padding:2px !important;
  background:linear-gradient(135deg,#fff3a5,#ffcc00,#ff2bd6) !important;
  box-shadow:0 0 22px rgba(255,204,0,.24) !important;
  z-index:1 !important;
}
#proPanel .mb-pro-user-avatar img{
  width:100% !important;
  height:100% !important;
  display:block !important;
  object-fit:cover !important;
  border-radius:20px !important;
  background:#111 !important;
  border:2px solid #10131d !important;
}
#proPanel .mb-pro-user-badge{
  position:absolute !important;
  top:-6px !important;
  right:-9px !important;
  min-width:31px !important;
  height:18px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:0 6px !important;
  border-radius:999px !important;
  background:linear-gradient(135deg,#fff08a,#ffcc00,#ff8a00) !important;
  color:#080808 !important;
  font-size:9px !important;
  font-weight:1000 !important;
  border:1px solid rgba(255,255,255,.45) !important;
  box-shadow:0 7px 16px rgba(0,0,0,.35) !important;
}
#proPanel .mb-pro-online-dot{
  position:absolute !important;
  right:0 !important;
  bottom:1px !important;
  width:13px !important;
  height:13px !important;
  border-radius:50% !important;
  background:#31ff72 !important;
  border:2px solid #10131d !important;
  box-shadow:0 0 10px rgba(49,255,114,.75) !important;
}
#proPanel .mb-pro-user-name{
  width:100% !important;
  max-width:100% !important;
  display:block !important;
  text-align:center !important;
  color:#f5f7ff !important;
  font-size:11px !important;
  font-weight:850 !important;
  line-height:1.15 !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  z-index:1 !important;
}
#proPanel .featured-top-avatars > div:not(.mb-pro-user-chip){
  color:#aeb7d1 !important;
  background:rgba(255,255,255,.055) !important;
  border:1px dashed rgba(255,255,255,.14) !important;
  border-radius:22px !important;
  padding:16px !important;
  width:100% !important;
  min-height:82px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
}

/* Beneficios y planes */
#proPanel .pro-benefits-premium,
#proPanel .pro-feature-card,
#proPanel .pro-plans-card{
  border-radius:28px !important;
  background:
    radial-gradient(circle at 0% 0%, rgba(255,204,0,.14), transparent 34%),
    linear-gradient(180deg, rgba(23,27,40,.98), rgba(8,10,16,.99)) !important;
  border:1px solid rgba(255,255,255,.13) !important;
  box-shadow:0 18px 52px rgba(0,0,0,.46), inset 0 1px 0 rgba(255,255,255,.07) !important;
}
#proPanel .pro-benefit-grid{
  grid-template-columns:1fr 1fr !important;
  gap:14px !important;
}
#proPanel .pro-feature-card{
  min-height:150px !important;
  padding:18px !important;
}
#proPanel .pro-feature-icon{
  width:50px !important;
  height:50px !important;
  border-radius:19px !important;
  margin-bottom:10px !important;
  background:linear-gradient(135deg,rgba(255,204,0,.18),rgba(255,255,255,.06)) !important;
  border:1px solid rgba(255,204,0,.24) !important;
}
#proPanel .pro-feature-card h3{font-size:17px !important;font-weight:1000 !important;letter-spacing:-.025em !important;}
#proPanel .pro-feature-card p{color:#c8d0e4 !important;font-size:13px !important;line-height:1.5 !important;}
#proPanel .pro-plans-premium{padding:18px !important;}
#proPanel .pro-plans-title{font-size:20px !important;letter-spacing:-.025em !important;}
#proPanel .pro-plans-grid{
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:12px !important;
}
#proPanel .pro-plans-grid button{
  min-height:92px !important;
  border-radius:23px !important;
  padding:14px 10px !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,204,0,.16), transparent 50%),
    linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.035)) !important;
  border:1px solid rgba(255,204,0,.22) !important;
  color:#fff !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06) !important;
}
#proPanel .pro-plans-grid strong{font-size:14px !important;color:#fff !important;margin-bottom:8px !important;}
#proPanel .pro-plans-grid span{font-size:clamp(18px,3.4vw,26px) !important;color:#ffcc00 !important;font-weight:1000 !important;}

/* Mantener misma vista elegante en movil sin romper proporciones */
@media(max-width:720px){
  #proPanel.mb-pro-ultra{
    width:calc(100% - 14px) !important;
    margin-top:8px !important;
    margin-bottom:96px !important;
  }
  #proPanel .pro-hero-card{
    grid-template-columns:1fr 128px !important;
    gap:10px !important;
    min-height:188px !important;
    padding:18px !important;
    border-radius:28px !important;
  }
  #proPanel .pro-hero-card h2{font-size:34px !important;}
  #proPanel .pro-hero-card p{font-size:13px !important;line-height:1.45 !important;}
  #proPanel .pro-hero-actions{gap:8px !important;margin-top:14px !important;}
  #proPanel .pro-main-cta{min-height:43px !important;padding:8px 12px !important;}
  #proPanel .pro-main-cta span{font-size:12px !important;}
  #proPanel .pro-main-cta strong{font-size:10px !important;padding:5px 7px !important;}
  #proPanel .pro-soft-cta{min-height:43px !important;padding:0 12px !important;font-size:12px !important;}
  #proPanel .pro-hero-visual{min-height:136px !important;}
  #proPanel .pro-orbit-one{width:126px !important;height:126px !important;}
  #proPanel .pro-orbit-two{width:86px !important;height:86px !important;}
  #proPanel .pro-crown-card{width:96px !important;height:96px !important;border-radius:30px !important;}
  #proPanel .pro-crown-card span{width:43px !important;height:43px !important;border-radius:17px !important;font-size:23px !important;}
  #proPanel .pro-crown-card strong{font-size:16px !important;}
  #proPanel .pro-current-featured-card{
    flex-direction:row !important;
    align-items:center !important;
    gap:10px !important;
    padding:15px !important;
  }
  #proPanel .pro-current-featured-card h3{font-size:18px !important;}
  #proPanel .pro-current-featured-card p{font-size:12px !important;}
  #proPanel .pro-current-action{width:auto !important;min-width:112px !important;padding:10px 12px !important;font-size:12px !important;}
  #proPanel .featured-top-header{align-items:center !important;}
  #proPanel .featured-top-title{font-size:21px !important;}
  #proPanel .featured-top-sub{font-size:12px !important;}
  #proPanel .featured-cta-pro{min-height:40px !important;padding:8px 11px !important;}
  #proPanel .pro-users-strip-head small{display:none !important;}
  #proPanel .pro-avatar-gallery,#proPanel .featured-top-avatars{min-height:108px !important;gap:10px !important;}
  #proPanel .mb-pro-user-chip{width:84px !important;min-width:84px !important;height:101px !important;border-radius:22px !important;}
  #proPanel .mb-pro-user-avatar{width:54px !important;height:54px !important;border-radius:20px !important;}
  #proPanel .mb-pro-user-avatar img{border-radius:18px !important;}
  #proPanel .pro-benefit-grid{grid-template-columns:1fr 1fr !important;gap:10px !important;}
  #proPanel .pro-feature-card{min-height:142px !important;padding:14px !important;}
  #proPanel .pro-feature-card h3{font-size:14px !important;}
  #proPanel .pro-feature-card p{font-size:12px !important;}
  #proPanel .pro-plans-grid{grid-template-columns:repeat(3,minmax(0,1fr)) !important;gap:8px !important;}
  #proPanel .pro-plans-grid button{min-height:82px !important;border-radius:20px !important;padding:11px 6px !important;}
  #proPanel .pro-plans-grid strong{font-size:12px !important;}
  #proPanel .pro-plans-grid span{font-size:17px !important;}
}
@media(max-width:430px){
  #proPanel .pro-hero-card{grid-template-columns:1fr 92px !important;padding:16px !important;}
  #proPanel .pro-hero-card h2{font-size:30px !important;}
  #proPanel .pro-live-pill{display:none !important;}
  #proPanel .pro-soft-cta{display:none !important;}
  #proPanel .pro-crown-card{width:78px !important;height:78px !important;border-radius:24px !important;}
  #proPanel .pro-crown-card span{width:34px !important;height:34px !important;font-size:18px !important;border-radius:14px !important;}
  #proPanel .pro-crown-card strong{font-size:13px !important;}
  #proPanel .pro-current-featured-card{flex-direction:column !important;align-items:stretch !important;}
  #proPanel .pro-current-action{width:100% !important;}
}
@media(max-width:370px){
  #proPanel .pro-benefit-grid{grid-template-columns:1fr !important;}
  #proPanel .pro-plans-grid{gap:6px !important;}
  #proPanel .pro-plans-grid span{font-size:15px !important;}
}

/* Ocultar anuncio inferior/AdMob dentro de chat publico y privado */
html.mb-chat-admob-hidden .admob,
body.mb-chat-admob-hidden .admob,
html.mb-chat-admob-hidden .admob-banner,
body.mb-chat-admob-hidden .admob-banner,
html.mb-chat-admob-hidden .admobBanner,
body.mb-chat-admob-hidden .admobBanner,
html.mb-chat-admob-hidden .adMobBanner,
body.mb-chat-admob-hidden .adMobBanner,
html.mb-chat-admob-hidden #adView,
body.mb-chat-admob-hidden #adView,
html.mb-chat-admob-hidden #admobBanner,
body.mb-chat-admob-hidden #admobBanner,
html.mb-chat-admob-hidden #admob-banner,
body.mb-chat-admob-hidden #admob-banner,
html.mb-chat-admob-hidden #adMobBanner,
body.mb-chat-admob-hidden #adMobBanner,
html.mb-chat-admob-hidden #bottomAd,
body.mb-chat-admob-hidden #bottomAd,
html.mb-chat-admob-hidden #bottom-ad,
body.mb-chat-admob-hidden #bottom-ad,
html.mb-chat-admob-hidden #bottomBanner,
body.mb-chat-admob-hidden #bottomBanner,
html.mb-chat-admob-hidden .bottom-ad,
body.mb-chat-admob-hidden .bottom-ad,
html.mb-chat-admob-hidden .bottomAd,
body.mb-chat-admob-hidden .bottomAd,
html.mb-chat-admob-hidden .bottom-banner,
body.mb-chat-admob-hidden .bottom-banner,
html.mb-chat-admob-hidden .fixed-ad,
body.mb-chat-admob-hidden .fixed-ad,
html.mb-chat-admob-hidden .sticky-ad,
body.mb-chat-admob-hidden .sticky-ad,
html.mb-chat-admob-hidden ins.adsbygoogle,
body.mb-chat-admob-hidden ins.adsbygoogle,
html.mb-chat-admob-hidden .adsbygoogle,
body.mb-chat-admob-hidden .adsbygoogle,
html.mb-chat-admob-hidden [data-admob],
body.mb-chat-admob-hidden [data-admob],
html.mb-chat-admob-hidden [data-ad-view],
body.mb-chat-admob-hidden [data-ad-view]{
  display:none !important;
  visibility:hidden !important;
  opacity:0 !important;
  pointer-events:none !important;
}


/* =====================================================
   MATCHBOY FIX: quitar boton flotante inferior de Editar Perfil
   ===================================================== */
#openProfileBtn,
#openProfileBtn.floating-edit{
  display:none !important;
  visibility:hidden !important;
  opacity:0 !important;
  pointer-events:none !important;
}

/* Refuerzo extra: ocultar mas nombres comunes de banners AdMob en chats */
html.mb-chat-admob-hidden #adMobView,
body.mb-chat-admob-hidden #adMobView,
html.mb-chat-admob-hidden #ad_view,
body.mb-chat-admob-hidden #ad_view,
html.mb-chat-admob-hidden #bannerAd,
body.mb-chat-admob-hidden #bannerAd,
html.mb-chat-admob-hidden #banner-ad,
body.mb-chat-admob-hidden #banner-ad,
html.mb-chat-admob-hidden .adMobView,
body.mb-chat-admob-hidden .adMobView,
html.mb-chat-admob-hidden .banner-ad,
body.mb-chat-admob-hidden .banner-ad,
html.mb-chat-admob-hidden .bannerAd,
body.mb-chat-admob-hidden .bannerAd{
  display:none !important;
  visibility:hidden !important;
  opacity:0 !important;
  pointer-events:none !important;
}

/* ==========================================================
   MATCHBOY PRO COMPACTO: SOLO 4 TARJETAS PRINCIPALES
   - MatchBoy PRO
   - Usuarios PRO
   - Beneficios Premium
   - Planes PRO
   Reduce espacio vertical en web y movil.
========================================================== */
#proPanel.mb-pro-ultra{
  padding-bottom:18px !important;
}
#proPanel.mb-pro-ultra > .pro-hero-card,
#proPanel.mb-pro-ultra > .pro-users-showcase,
#proPanel.mb-pro-ultra > .pro-benefits-premium,
#proPanel.mb-pro-ultra > .pro-plans-premium{
  margin-bottom:12px !important;
}
#proPanel.mb-pro-ultra > .pro-plans-premium{
  margin-bottom:0 !important;
}
#proPanel .pro-hero-card{
  min-height:172px !important;
  padding:20px !important;
  border-radius:28px !important;
}
#proPanel .pro-hero-card h2{
  margin-bottom:6px !important;
}
#proPanel .pro-hero-actions{
  margin-top:14px !important;
}
#proPanel .pro-hero-visual{
  min-height:132px !important;
}
#proPanel .pro-crown-card{
  width:108px !important;
  height:108px !important;
  border-radius:32px !important;
}
#proPanel .pro-crown-card span{
  width:48px !important;
  height:48px !important;
  border-radius:18px !important;
  font-size:25px !important;
}
#proPanel .pro-crown-card strong{
  font-size:17px !important;
}
#proPanel .pro-orbit-one{
  width:136px !important;
  height:136px !important;
}
#proPanel .pro-orbit-two{
  width:92px !important;
  height:92px !important;
}
#proPanel .pro-users-showcase{
  padding:16px !important;
}
#proPanel .pro-users-strip-head{
  margin-top:12px !important;
  margin-bottom:8px !important;
}
#proPanel .pro-avatar-gallery,
#proPanel .featured-top-avatars{
  min-height:104px !important;
  padding:12px !important;
}
#proPanel .featured-benefits-mini.pro-benefits-premium{
  width:100% !important;
  max-width:100% !important;
  margin:0 0 12px !important;
  padding:13px 14px !important;
}
#proPanel .pro-plans-premium{
  padding:16px !important;
}
#proPanel .pro-plans-grid button{
  min-height:78px !important;
}
@media(max-width:720px){
  #proPanel .pro-hero-card{
    min-height:150px !important;
    padding:15px !important;
    border-radius:25px !important;
  }
  #proPanel .pro-hero-card h2{
    font-size:30px !important;
  }
  #proPanel .pro-hero-card p{
    font-size:12px !important;
    line-height:1.38 !important;
  }
  #proPanel .pro-hero-actions{
    margin-top:11px !important;
  }
  #proPanel .pro-main-cta,
  #proPanel .pro-soft-cta{
    min-height:39px !important;
  }
  #proPanel .pro-hero-visual{
    min-height:104px !important;
  }
  #proPanel .pro-crown-card{
    width:82px !important;
    height:82px !important;
    border-radius:25px !important;
  }
  #proPanel .pro-crown-card span{
    width:35px !important;
    height:35px !important;
    border-radius:14px !important;
    font-size:18px !important;
  }
  #proPanel .pro-crown-card strong{
    font-size:13px !important;
  }
  #proPanel .pro-orbit-one{
    width:106px !important;
    height:106px !important;
  }
  #proPanel .pro-orbit-two{
    width:74px !important;
    height:74px !important;
  }
  #proPanel .pro-users-showcase{
    padding:14px !important;
  }
  #proPanel .pro-avatar-gallery,
  #proPanel .featured-top-avatars{
    min-height:96px !important;
    padding:10px !important;
  }
  #proPanel .featured-benefits-mini.pro-benefits-premium{
    padding:12px !important;
    border-radius:24px !important;
  }
  #proPanel .pro-plans-premium{
    padding:14px !important;
    border-radius:24px !important;
  }
  #proPanel .pro-plans-grid button{
    min-height:70px !important;
    border-radius:18px !important;
  }
}
@media(max-width:430px){
  #proPanel.mb-pro-ultra{
    margin-bottom:92px !important;
  }
  #proPanel .pro-hero-card{
    grid-template-columns:1fr 76px !important;
  }
  #proPanel .pro-main-cta{
    width:100% !important;
    justify-content:center !important;
  }
  #proPanel .featured-cta-pro{
    min-width:112px !important;
  }
}

/* ==== FIX FINAL: no dejar hueco de banner al cerrar Chat Publico ==== */
body.mb-logged-in #mbGridTopAdBanner,
body.mb-logged-in .mb-grid-top-ad,
body.mb-logged-in main > ins.adsbygoogle,
body.mb-logged-in main > .adsbygoogle,
body.mb-logged-in main > #adContainer,
body.mb-logged-in main > #ad-container,
body.mb-logged-in main > #admobBanner,
body.mb-logged-in main > #admob-banner,
body.mb-logged-in main > #adMobBanner,
body.mb-logged-in main > .admob-banner,
body.mb-logged-in main > .admobBanner,
body.mb-logged-in main > .adMobBanner,
body.mb-logged-in main > .banner-ad,
body.mb-logged-in main > .bannerAd,
body.mb-logged-in main > [data-admob],
body.mb-logged-in main > [data-ad-view],
body.mb-logged-in main > [data-ad-status],
body.mb-logged-in [data-mb-top-gap-fixed="1"]{
  display:none !important;
  visibility:hidden !important;
  opacity:0 !important;
  height:0 !important;
  min-height:0 !important;
  max-height:0 !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  overflow:hidden !important;
  pointer-events:none !important;
}
