/* ==========================================================================
   IDENTI - MODO OSCURO NEGRO MODERNO PRO (v2) & SELECTOR DE TEMA (OSCURO/CLARO)
   - Mantiene intactos los logos originales (IDENTI), el banner azul geométrico,
     los sprites de categorías y la maquetación de 3 columnas (1000px).
   - Esquinas técnicas sobrias (4px–6px), cabeceras de bloque tipo Dashboard
     con acento lateral #3B82F6, tipografía Inter y paleta Negro Obsidiana.
   - 100% encapsulado bajo html[data-theme="dark"] para permitir cambio
     instantáneo entre Modo Oscuro y Modo Claro clásico.
   ========================================================================== */

/* 0. Botón Conmutador de Tema (Modo Oscuro / Modo Claro) en Barra Superior */
.opciones_usuario,
.opciones_usuario.anonimo {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  position: relative !important;
}

.opciones_usuario.anonimo .identificarme {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  height: auto !important;
  padding: 0 8px 0 0 !important;
  display: flex !important;
  align-items: center !important;
}

.identi-theme-toggle {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  height: 24px !important;
  padding: 0 9px !important;
  margin-right: 4px !important;
  border-radius: 4px !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Tahoma, sans-serif !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  cursor: pointer !important;
  user-select: none !important;
  white-space: nowrap !important;
  transition: all 0.15s ease !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #E2E8F0 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

.identi-theme-toggle:hover {
  background: rgba(59, 130, 246, 0.22) !important;
  border-color: rgba(96, 165, 250, 0.5) !important;
  color: #FFFFFF !important;
}

html[data-theme="dark"] .identi-theme-toggle {
  background: linear-gradient(180deg, #1E2534 0%, #131822 100%) !important;
  border: 1px solid rgba(96, 165, 250, 0.35) !important;
  color: #93C5FD !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

html[data-theme="dark"] .identi-theme-toggle:hover {
  background: linear-gradient(180deg, #2563EB 0%, #1D4ED8 100%) !important;
  border-color: #60A5FA !important;
  color: #FFFFFF !important;
}

.identi-theme-icon {
  display: none !important;
  align-items: center !important;
  gap: 5px !important;
}

html[data-theme="dark"] .identi-theme-icon-sun {
  display: inline-flex !important;
}

html:not([data-theme="dark"]) .identi-theme-icon-moon {
  display: inline-flex !important;
}

@media (max-width: 768px) {
  .opciones_usuario,
  .opciones_usuario.anonimo {
    gap: 2px !important;
  }
  .identi-theme-toggle {
    padding: 0 5px !important;
    height: 22px !important;
    margin-right: 1px !important;
  }
  .identi-theme-label {
    display: none !important;
  }
  .userInfoLogin > ul > li > a.opc {
    padding: 9px 5px !important;
  }
  .userInfoLogin .username {
    padding: 4px 4px !important;
  }
  .userInfoLogin .username .nick {
    max-width: 66px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
  .userInfoLogin .username .avatar {
    margin: 0 0 0 4px !important;
  }
}

/* Restauración universal de las 3 cajas del Footer y buscador inferior en Escritorio y Móvil */
.small-footer {
  display: block !important;
}

.footer-info > div:first-child,
.art-Footer .footer-info > div:first-child {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 6px !important;
  width: 100% !important;
  margin: 0 0 6px 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

.footer-info > div:first-child::before,
.footer-info > div:first-child::after {
  display: none !important;
  content: none !important;
}

.footer-info ul,
.art-Footer .footer-info ul,
.footer-info ul:nth-child(1),
.footer-info ul:nth-child(2),
.footer-info ul:nth-child(3) {
  display: block !important;
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 46px !important;
  margin: 0 !important;
  padding: 8px 14px !important;
  box-sizing: border-box !important;
}

@media (max-width: 768px) {
  .art-Footer {
    height: auto !important;
    padding: 8px 4px 16px 4px !important;
  }
  .footer-info,
  .art-Footer .footer-info {
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 6px !important;
  }
  .footer-info > div:first-child,
  .art-Footer .footer-info > div:first-child {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 4px !important;
    width: 100% !important;
    margin: 0 0 6px 0 !important;
  }
  .footer-info ul,
  .art-Footer .footer-info ul,
  .footer-info ul:nth-child(1),
  .footer-info ul:nth-child(2),
  .footer-info ul:nth-child(3) {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 6px 7px !important;
    min-height: 44px !important;
  }
  .footer-info ul li,
  .footer-info ul li a {
    font-size: 10px !important;
    line-height: 1.35 !important;
    padding: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
}

/* ==========================================================================
   1. LIENZO GENERAL Y CABECERA EN MODO OSCURO NEGRO (OBSIDIAN / CARBON)
   ========================================================================== */
html[data-theme="dark"],
html[data-theme="dark"] body,
html[data-theme="dark"] #main_content,
html[data-theme="dark"] #art-main,
html[data-theme="dark"] .cuerpo_general {
  background: #080A0F !important;
  background-color: #080A0F !important;
  background-image: none !important;
  color: #E2E8F0 !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
  -webkit-font-smoothing: antialiased !important;
}

html[data-theme="dark"] .menu,
html[data-theme="dark"] #header_barra {
  background: linear-gradient(180deg, #121620 0%, #0B0E14 100%) !important;
  border-bottom: 1px solid rgba(59, 130, 246, 0.28) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5) !important;
}

html[data-theme="dark"] .menu .bar,
html[data-theme="dark"] .menu a,
html[data-theme="dark"] .menu span,
html[data-theme="dark"] #header_barra a,
html[data-theme="dark"] #header_barra span {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  letter-spacing: 0.01em !important;
}

html[data-theme="dark"] .art-Header-gif,
html[data-theme="dark"] #header_wrap {
  border-bottom: 1px solid rgba(96, 165, 250, 0.35) !important;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.75) !important;
}

/* ==========================================================================
   2. CONTENEDOR HOJA CENTRAL (1000px) EN NEGRO OBSIDIANA
   ========================================================================== */
html[data-theme="dark"] .art-Sheet {
  background: #0E1117 !important;
  background-color: #0E1117 !important;
  border-left: 1px solid #1E2430 !important;
  border-right: 1px solid #1E2430 !important;
  border-bottom: 1px solid #1E2430 !important;
  border-radius: 0 0 6px 6px !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.8) !important;
}

html[data-theme="dark"] .art-Sheet-body,
html[data-theme="dark"] .art-contentLayout,
html[data-theme="dark"] main,
html[data-theme="dark"] .main_post_layout,
html[data-theme="dark"] .user-profile-page-main,
html[data-theme="dark"] .div_control,
html[data-theme="dark"] .div_control_post,
html[data-theme="dark"] .post_columns_wrap,
html[data-theme="dark"] .post_content_col,
html[data-theme="dark"] .topic-create-container,
html[data-theme="dark"] .perfil,
html[data-theme="dark"] #addPostL,
html[data-theme="dark"] #addPostR {
  background: #0E1117 !important;
  background-color: #0E1117 !important;
  background-image: none !important;
  border-color: #1E2430 !important;
  color: #E2E8F0 !important;
}

/* ==========================================================================
   3. SUBNAVBAR MODERNA (.subMenuContent) CON TAB ACTIVO LUMINOSO
   ========================================================================== */
html[data-theme="dark"] .subMenuContent {
  background: linear-gradient(180deg, #171C26 0%, #10141C 100%) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-bottom: 1px solid #232A38 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5) !important;
}

html[data-theme="dark"] .subMenu,
html[data-theme="dark"] div.subMenu {
  background: transparent !important;
  background-image: none !important;
  border: none !important;
  box-shadow: none !important;
}

html[data-theme="dark"] .subMenu ul.tabsMenu li a,
html[data-theme="dark"] ul.tabsMenu li a,
html[data-theme="dark"] .tabsMenu li a {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em !important;
  color: #CBD5E1 !important;
  text-shadow: none !important;
  background: transparent !important;
  border-radius: 4px !important;
}

html[data-theme="dark"] .subMenu ul.tabsMenu li.here a,
html[data-theme="dark"] .tabsMenu li.here a,
html[data-theme="dark"] .subMenu ul.tabsMenu li a:hover,
html[data-theme="dark"] .tabsMenu li a:hover {
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.26) 0%, rgba(37, 99, 235, 0.1) 100%) !important;
  border: 1px solid rgba(96, 165, 250, 0.45) !important;
  border-bottom: 2px solid #3B82F6 !important;
  border-radius: 4px !important;
  color: #FFFFFF !important;
  box-shadow: 0 2px 10px rgba(59, 130, 246, 0.22) !important;
}

/* ==========================================================================
   4. BUSCADOR MODERNO CON BORDES RECTOS-SUAVES (5px) Y TIPOGRAFÍA INTER
   ========================================================================== */
html[data-theme="dark"] #searchbar,
html[data-theme="dark"] .searchbar-footer {
  background-color: #090C10 !important;
  background-image: none !important;
  color: #F8FAFC !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  font-style: normal !important;
  font-size: 12px !important;
  border: 1px solid #283040 !important;
  border-radius: 5px !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.65), 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

html[data-theme="dark"] #searchbar:focus,
html[data-theme="dark"] .searchbar-footer:focus {
  border-color: #3B82F6 !important;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.22) !important;
}

/* ==========================================================================
   5. BOTONES DE NAVEGACIÓN [◀] [▶] EN CABECERA DE POST
   ========================================================================== */
html[data-theme="dark"] .identi-post-nav-btn,
html[data-theme="dark"] a.identi-post-nav-btn,
html[data-theme="dark"] .post_nav_btn {
  background: linear-gradient(180deg, #222938 0%, #161B26 100%) !important;
  border: 1px solid #333D52 !important;
  border-radius: 4px !important;
  color: #60A5FA !important;
}

html[data-theme="dark"] .identi-post-nav-btn svg polygon,
html[data-theme="dark"] .post_nav_btn svg polygon {
  fill: #60A5FA !important;
}

/* ==========================================================================
   6. TARJETAS Y CONTENEDORES MODERNOS (SUPERFICIE #141821 CON BORDE TÉCNICO)
   ========================================================================== */
html[data-theme="dark"] .drop-shadow,
html[data-theme="dark"] .curved,
html[data-theme="dark"] .box_identi,
html[data-theme="dark"] .box_posts,
html[data-theme="dark"] .box_cuerpo,
html[data-theme="dark"] .ultimos_posts,
html[data-theme="dark"] .estadisticas,
html[data-theme="dark"] .ultimos_comentarios,
html[data-theme="dark"] .top_posts,
html[data-theme="dark"] .categorias_populares,
html[data-theme="dark"] .stat_semanal,
html[data-theme="dark"] .buscador_home,
html[data-theme="dark"] .post_body,
html[data-theme="dark"] .post_body_card,
html[data-theme="dark"] .display_sidebar,
html[data-theme="dark"] div.display_izq_col .display_sidebar,
html[data-theme="dark"] .info_post,
html[data-theme="dark"] .opciones_post,
html[data-theme="dark"] .opciones_post_box,
html[data-theme="dark"] .new-comment-box,
html[data-theme="dark"] .cajacomment,
html[data-theme="dark"] #cajacomment,
html[data-theme="dark"] .cajacomment.cajacomment-user-only,
html[data-theme="dark"] .post_cerrado,
html[data-theme="dark"] .no_comentarios,
html[data-theme="dark"] .comu_card,
html[data-theme="dark"] .comu_sidebar,
html[data-theme="dark"] .mainL.border_1,
html[data-theme="dark"] .sidebarR.border_1,
html[data-theme="dark"] .box_editor,
html[data-theme="dark"] #addPostL .box_editor,
html[data-theme="dark"] #addPostR .box_notes,
html[data-theme="dark"] .header_perfil,
html[data-theme="dark"] .user-prof-header,
html[data-theme="dark"] .mas_perfil,
html[data-theme="dark"] .topic-create-main,
html[data-theme="dark"] .topic-create-sidebar,
html[data-theme="dark"] .authL,
html[data-theme="dark"] .register,
html[data-theme="dark"] .register_back,
html[data-theme="dark"] .protocolo,
html[data-theme="dark"] .post_agregado,
html[data-theme="dark"] .error_tmpl .box_errors,
html[data-theme="dark"] .comunidades.hecho,
html[data-theme="dark"] .votaron,
html[data-theme="dark"] .sugerir-post,
html[data-theme="dark"] .sidebar_tags {
  background: linear-gradient(180deg, #171C26 0%, #12161E 100%) !important;
  background-color: #141821 !important;
  border: 1px solid #262E3E !important;
  border-radius: 6px !important;
  color: #E2E8F0 !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

html[data-theme="dark"] .art-body,
html[data-theme="dark"] #contenido,
html[data-theme="dark"] #post-ajax,
html[data-theme="dark"] .windowbg,
html[data-theme="dark"] .windowbg4 {
  background: transparent !important;
  background-color: transparent !important;
  color: #E2E8F0 !important;
}

html[data-theme="dark"] .drop-shadow.curved:before,
html[data-theme="dark"] .drop-shadow:before,
html[data-theme="dark"] .drop-shadow:after {
  display: none !important;
}

/* ==========================================================================
   7. CABECERAS DE BLOQUE ESTILO DASHBOARD MODERNO CON ACENTO #3B82F6
   ========================================================================== */
html[data-theme="dark"] .header_post,
html[data-theme="dark"] .post_header_bar,
html[data-theme="dark"] .title_box {
  background: transparent !important;
  border-bottom: 1px solid #262E3E !important;
}

html[data-theme="dark"] .title_box h2,
html[data-theme="dark"] .art-title,
html[data-theme="dark"] .art-PostMetaHeader,
html[data-theme="dark"] .sidebarR .title,
html[data-theme="dark"] .mainL .title,
html[data-theme="dark"] .protocolo .titulo,
html[data-theme="dark"] .post_agregado .title,
html[data-theme="dark"] .titulodiv,
html[data-theme="dark"] .mainL .head,
html[data-theme="dark"] .lista .head,
html[data-theme="dark"] .mp .mp_mps .cabecera,
html[data-theme="dark"] .comunidades .lista_temas li.header {
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.14) 0%, rgba(23, 28, 38, 0.2) 85%, transparent 100%) !important;
  color: #F8FAFC !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em !important;
  border-left: 3px solid #3B82F6 !important;
  border-bottom: 1px solid #262E3E !important;
  border-radius: 3px 3px 0 0 !important;
  padding-left: 9px !important;
  padding-top: 3px !important;
  padding-bottom: 3px !important;
  box-sizing: border-box !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
}

html[data-theme="dark"] .art-PostMetaHeader .art-PostHeader {
  color: #F8FAFC !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  font-weight: 600 !important;
  background: transparent !important;
  border: none !important;
}

html[data-theme="dark"] .header_post .title_post,
html[data-theme="dark"] .post_header_bar .title_post,
html[data-theme="dark"] .topic-create-heading,
html[data-theme="dark"] .topic-create-sidebar-title,
html[data-theme="dark"] .comunidades .head_title,
html[data-theme="dark"] .comunidades .tema_title,
html[data-theme="dark"] .big_title,
html[data-theme="dark"] .authL .titulo,
html[data-theme="dark"] h2 {
  color: #F8FAFC !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em !important;
  border-bottom-color: #262E3E !important;
}

html[data-theme="dark"] .paginas,
html[data-theme="dark"] .paginador,
html[data-theme="dark"] .pag_recent {
  border-top: 1px solid #242C3C !important;
  padding-top: 8px !important;
}

html[data-theme="dark"] hr {
  border: none !important;
  border-top: 1px solid #242C3C !important;
  background: transparent !important;
}

/* ==========================================================================
   8. KPIS DE ESTADÍSTICAS Y CATEGORÍAS POPULARES ESTILO DASHBOARD
   ========================================================================== */
html[data-theme="dark"] .estadisticas ul li,
html[data-theme="dark"] .control-cent-col .estadisticas li {
  background: #0D1017 !important;
  border: 1px solid #232B3A !important;
  border-radius: 4px !important;
  padding-left: 5px !important;
  box-sizing: border-box !important;
  color: #CBD5E1 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03) !important;
}

html[data-theme="dark"] .categorias_populares ul li,
html[data-theme="dark"] .control-der-col .categorias_populares li {
  background: #10141C !important;
  border: 1px solid #212836 !important;
  border-radius: 4px !important;
  margin-bottom: 3px !important;
}

html[data-theme="dark"] .categorias_populares ul li a {
  color: #93C5FD !important;
  font-weight: 500 !important;
  font-size: 11px !important;
  letter-spacing: 0.02em !important;
}

/* ==========================================================================
   9. ESTADOS VACÍOS (.nohay), COMUNIDADES, TOPS, MIGAS DE PAN (.tree_box)
   ========================================================================== */
html[data-theme="dark"] .nohay,
html[data-theme="dark"] .box_identi .nohay,
html[data-theme="dark"] .user-prof-empty,
html[data-theme="dark"] .user-prof-tab-empty,
html[data-theme="dark"] .tops-empty-row,
html[data-theme="dark"] .empty-comment-msg,
html[data-theme="dark"] .buscador .mainL span.nohay,
html[data-theme="dark"] .shadow_box .no_tiene {
  background: #0B0E14 !important;
  border: 1px dashed #283142 !important;
  color: #94A3B8 !important;
  border-radius: 5px !important;
  text-shadow: none !important;
}

html[data-theme="dark"] .tree_box {
  background: #12161E !important;
  border: 1px solid #262E3E !important;
  border-left: 3px solid #3B82F6 !important;
  border-radius: 5px !important;
  color: #94A3B8 !important;
}

html[data-theme="dark"] .tree_box a {
  color: #94A3B8 !important;
}

html[data-theme="dark"] .tree_box li.last a {
  color: #60A5FA !important;
}

html[data-theme="dark"] .comunidades .ult_temas .tema_data,
html[data-theme="dark"] .comunidades .lista_temas li .info {
  color: #94A3B8 !important;
}

html[data-theme="dark"] .comunidades .ult_temas .tema_data a,
html[data-theme="dark"] .comunidades .lista_temas li .info a {
  color: #60A5FA !important;
}

html[data-theme="dark"] .comunidades .head_info .stats ul li {
  background: #0F131A !important;
  border: 1px solid #262E3E !important;
  color: #CBD5E1 !important;
}

html[data-theme="dark"] .comunidades .head_info .stats ul li b {
  color: #60A5FA !important;
}

html[data-theme="dark"] .sidebarR hr {
  background: #242C3C !important;
  border-color: #242C3C !important;
}

html[data-theme="dark"] .sidebarR ul li a {
  color: #CBD5E1 !important;
}

html[data-theme="dark"] .sidebarR ul li.active_side_list,
html[data-theme="dark"] .sidebarR ul li.active_side_list a {
  background: rgba(59, 130, 246, 0.16) !important;
  color: #60A5FA !important;
  border-radius: 4px !important;
  box-shadow: none !important;
}

html[data-theme="dark"] .zebra li .val,
html[data-theme="dark"] .tops_puntos,
html[data-theme="dark"] .tops-badge-points,
html[data-theme="dark"] .tops-badge-favs,
html[data-theme="dark"] .tops-badge-comments,
html[data-theme="dark"] .tops-badge-cats {
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.22) 0%, rgba(37, 99, 235, 0.1) 100%) !important;
  border: 1px solid rgba(96, 165, 250, 0.4) !important;
  border-radius: 4px !important;
  color: #93C5FD !important;
  font-weight: 600 !important;
  text-shadow: none !important;
}

/* ==========================================================================
   10. CREAR POST (/crear-post), FORMULARIOS Y SCEDITOR MODERNO PRO
   ========================================================================== */
html[data-theme="dark"] .separadores_post {
  background: transparent !important;
  background-color: transparent !important;
}

html[data-theme="dark"] .gene_box,
html[data-theme="dark"] #generador,
html[data-theme="dark"] .generador {
  background: #0B0E14 !important;
  border: 1px solid #283040 !important;
  border-radius: 5px !important;
  color: #E2E8F0 !important;
  text-shadow: none !important;
}

html[data-theme="dark"] .box_editor .info,
html[data-theme="dark"] #addPostL .box_editor .info {
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.08) 0%, #0B0E14 100%) !important;
  border: 1px solid #262E3E !important;
  border-left: 3px solid #3B82F6 !important;
  border-radius: 5px !important;
  box-shadow: none !important;
  color: #CBD5E1 !important;
}

html[data-theme="dark"] .box_editor .info .title {
  color: #60A5FA !important;
  font-weight: 600 !important;
}

html[data-theme="dark"] input[type="text"],
html[data-theme="dark"] input[type="password"],
html[data-theme="dark"] input[type="email"],
html[data-theme="dark"] input[type="search"],
html[data-theme="dark"] input.text-inp,
html[data-theme="dark"] input.inp-login,
html[data-theme="dark"] input.login_mf,
html[data-theme="dark"] #tituloeditor,
html[data-theme="dark"] .topic-create-title-input,
html[data-theme="dark"] .topic-captcha-input,
html[data-theme="dark"] .mp-modal-input,
html[data-theme="dark"] .mp-modal-captcha-input,
html[data-theme="dark"] select,
html[data-theme="dark"] #categorias {
  background: #090C10 !important;
  border: 1px solid #2A3242 !important;
  border-radius: 5px !important;
  color: #F8FAFC !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.55) !important;
}

html[data-theme="dark"] #categorias option,
html[data-theme="dark"] select option {
  background: #090C10 !important;
  color: #F8FAFC !important;
}

html[data-theme="dark"] .sceditor-container,
html[data-theme="dark"] .crear-post-editor-container {
  background: #090C10 !important;
  border: 1px solid #2A3242 !important;
  border-radius: 6px !important;
  overflow: hidden !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4) !important;
}

html[data-theme="dark"] div.sceditor-toolbar,
html[data-theme="dark"] .sceditor-toolbar {
  background: linear-gradient(180deg, #1B212E 0%, #131720 100%) !important;
  border-bottom: 1px solid #2A3242 !important;
}

html[data-theme="dark"] div.sceditor-group,
html[data-theme="dark"] .sceditor-group {
  background: #11151D !important;
  border: 1px solid #2C3546 !important;
  border-radius: 4px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

html[data-theme="dark"] .sceditor-button-bold div,
html[data-theme="dark"] .sceditor-button-italic div,
html[data-theme="dark"] .sceditor-button-underline div,
html[data-theme="dark"] .sceditor-button-left div,
html[data-theme="dark"] .sceditor-button-center div,
html[data-theme="dark"] .sceditor-button-right div,
html[data-theme="dark"] .sceditor-button-justify div,
html[data-theme="dark"] .sceditor-button-source div {
  filter: brightness(0) invert(0.92) !important;
}

html[data-theme="dark"] .sceditor-button:hover,
html[data-theme="dark"] .sceditor-button.active {
  background: rgba(59, 130, 246, 0.22) !important;
  border-radius: 3px !important;
  box-shadow: inset 0 0 3px rgba(96, 165, 250, 0.4) !important;
}

html[data-theme="dark"] div.sceditor-dropdown,
html[data-theme="dark"] .sceditor-dropdown,
html[data-theme="dark"] .topic-bbcode-dropdown,
html[data-theme="dark"] .ui-dialog {
  background: #141821 !important;
  border: 1px solid #2E3748 !important;
  border-radius: 6px !important;
  color: #E2E8F0 !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.7) !important;
}

html[data-theme="dark"] .crear-post-wysiwyg,
html[data-theme="dark"] .crear-post-textarea,
html[data-theme="dark"] .topic-create-textarea,
html[data-theme="dark"] #wysiwyg_holder,
html[data-theme="dark"] #hoteditor_holder,
html[data-theme="dark"] textarea {
  background: #090C10 !important;
  border: 1px solid #2A3242 !important;
  border-radius: 5px !important;
  color: #F8FAFC !important;
}

html[data-theme="dark"] .special-left .titulo,
html[data-theme="dark"] .special-right .titulo {
  color: #60A5FA !important;
  font-weight: 600 !important;
}

html[data-theme="dark"] .special-right ul.options li {
  background: #0B0E14 !important;
  border: 1px solid #262E3E !important;
  border-left: 2px solid #3B82F6 !important;
  border-radius: 5px !important;
  color: #CBD5E1 !important;
}

html[data-theme="dark"] .special-right ul.options li b,
html[data-theme="dark"] .special-right ul.options li font {
  color: #60A5FA !important;
}

html[data-theme="dark"] .drafts,
html[data-theme="dark"] .crear-post-draft-accordion,
html[data-theme="dark"] .drafts .title,
html[data-theme="dark"] .drafts .listDrafts {
  background: #0B0E14 !important;
  border-color: #262E3E !important;
  border-radius: 5px !important;
  color: #60A5FA !important;
  box-shadow: none !important;
}

html[data-theme="dark"] #addPostR .box_notes h3,
html[data-theme="dark"] #addPostR .box_notes b {
  color: #60A5FA !important;
}

html[data-theme="dark"] #addPostR .box_notes li {
  color: #CBD5E1 !important;
}

/* ==========================================================================
   11. BOTONES DE ACCIÓN MODERNOS PRO (4px SOBRIO, RELIEVE LUMINOSO)
   ========================================================================== */
html[data-theme="dark"] a.button:not(.ui-button-positive):not(.ui-button-special_1):not(.ui-button-negative),
html[data-theme="dark"] span.button:not(.ui-button-positive):not(.ui-button-special_1):not(.ui-button-negative),
html[data-theme="dark"] button.button:not(.ui-button-positive):not(.ui-button-special_1):not(.ui-button-negative),
html[data-theme="dark"] .ui-button:not(.ui-button-positive):not(.ui-button-special_1):not(.ui-button-negative),
html[data-theme="dark"] .user-prof-btn-mp,
html[data-theme="dark"] .user-prof-btn-follow,
html[data-theme="dark"] .opciones_post a.button,
html[data-theme="dark"] #cajacomment button,
html[data-theme="dark"] #cajacomment .button,
html[data-theme="dark"] #cajacomment input[type="submit"],
html[data-theme="dark"] .btn-submit-comunidad,
html[data-theme="dark"] .secondary-mf-button {
  background: linear-gradient(180deg, #232A38 0%, #161B24 100%) !important;
  border: 1px solid #353F54 !important;
  border-radius: 4px !important;
  color: #F8FAFC !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  font-weight: 600 !important;
  text-shadow: none !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .ui-button-positive,
html[data-theme="dark"] a.button.ui-button-positive,
html[data-theme="dark"] span.button.ui-button-positive,
html[data-theme="dark"] button.ui-button-positive,
html[data-theme="dark"] input.ui-button-positive,
html[data-theme="dark"] .topic-btn-submit,
html[data-theme="dark"] .topic-btn-preview {
  background: linear-gradient(180deg, #10B981 0%, #059669 100%) !important;
  border: 1px solid #34D399 !important;
  border-radius: 4px !important;
  color: #FFFFFF !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  font-weight: 600 !important;
  text-shadow: none !important;
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

html[data-theme="dark"] .ui-button-special_1,
html[data-theme="dark"] a.button.ui-button-special_1,
html[data-theme="dark"] span.button.ui-button-special_1,
html[data-theme="dark"] button.ui-button-special_1,
html[data-theme="dark"] input.ui-button-special_1,
html[data-theme="dark"] .primary-mf-button {
  background: linear-gradient(180deg, #2563EB 0%, #1D4ED8 100%) !important;
  border: 1px solid #60A5FA !important;
  border-radius: 4px !important;
  color: #FFFFFF !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  font-weight: 600 !important;
  text-shadow: none !important;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

html[data-theme="dark"] a.button .ui-button-text,
html[data-theme="dark"] span.button .ui-button-text,
html[data-theme="dark"] button.button .ui-button-text {
  color: #FFFFFF !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  font-weight: 600 !important;
  text-shadow: none !important;
}

/* ==========================================================================
   12. POST SIDEBAR, CALIFICACIÓN, SPOILERS, LINKS PROTEGIDOS Y COMENTARIOS
   ========================================================================== */
html[data-theme="dark"] .extra_info,
html[data-theme="dark"] .extra_info.post_metadata_bar,
html[data-theme="dark"] .post_metadata_bar,
html[data-theme="dark"] .display_sidebar .rango_sidebar,
html[data-theme="dark"] div.display_izq_col .display_sidebar .rango_sidebar,
html[data-theme="dark"] .display_sidebar .nick_sidebar,
html[data-theme="dark"] div.display_izq_col .display_sidebar .nick_sidebar,
html[data-theme="dark"] .display_sidebar .stats ul li,
html[data-theme="dark"] div.display_izq_col .display_sidebar .stats ul li,
html[data-theme="dark"] .spoiler .spoiler_cont,
html[data-theme="dark"] .info_bbc,
html[data-theme="dark"] .post_body .post_pass,
html[data-theme="dark"] .sidebar_tags .tags,
html[data-theme="dark"] .enviar_mp {
  background: #0B0E14 !important;
  border-color: #252D3D !important;
  border-radius: 4px !important;
  color: #94A3B8 !important;
  box-shadow: none !important;
}

html[data-theme="dark"] .display_sidebar .nick_sidebar a,
html[data-theme="dark"] div.display_izq_col .display_sidebar .nick_sidebar a,
html[data-theme="dark"] .display_sidebar .rango_sidebar,
html[data-theme="dark"] .display_sidebar .stats ul li b,
html[data-theme="dark"] .sidebar_tags .title {
  color: #60A5FA !important;
}

html[data-theme="dark"] .display_sidebar .avatar_sidebar img,
html[data-theme="dark"] .avatar_sidebar img,
html[data-theme="dark"] .display_sidebar .extra img {
  background: #0B0E14 !important;
  border: 1px solid #2C3546 !important;
  border-radius: 5px !important;
}

html[data-theme="dark"] .general_stats .stats {
  background: linear-gradient(180deg, #151A24 0%, #0E1219 100%) !important;
  border: 1px solid #283142 !important;
  border-left: 2px solid #3B82F6 !important;
  border-radius: 5px !important;
  color: #CBD5E1 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

html[data-theme="dark"] .general_stats .stats b {
  color: #60A5FA !important;
}

html[data-theme="dark"] .general_stats .stats.points {
  border-left: 2px solid #F59E0B !important;
}

html[data-theme="dark"] .general_stats .stats.points,
html[data-theme="dark"] .general_stats .stats.points b {
  color: #FBBF24 !important;
}

html[data-theme="dark"] .dar_puntos_box,
html[data-theme="dark"] .dar_puntos_box div,
html[data-theme="dark"] .dar_puntos_box span {
  background: #0B0E14 !important;
  border-color: #262E3E !important;
  border-radius: 5px !important;
  color: #94A3B8 !important;
}

html[data-theme="dark"] .dar_puntos_box b,
html[data-theme="dark"] .dar_puntos_title,
html[data-theme="dark"] .dar_puntos .titulo,
html[data-theme="dark"] .info_post .titulo,
html[data-theme="dark"] .sugerir-post .titulo {
  color: #F8FAFC !important;
}

html[data-theme="dark"] .puntos_bar .punto_item,
html[data-theme="dark"] .dar_puntos .puntos {
  background: linear-gradient(180deg, #212838 0%, #151A25 100%) !important;
  border: 1px solid #354056 !important;
  border-radius: 4px !important;
  color: #60A5FA !important;
  font-weight: 600 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

html[data-theme="dark"] .voters_toggle_wrap,
html[data-theme="dark"] .voters_list_wrap,
html[data-theme="dark"] .votaron .lista_votos ul li {
  background: #0B0E14 !important;
  border-color: #262E3E !important;
  border-radius: 4px !important;
  color: #94A3B8 !important;
}

html[data-theme="dark"] .voters_toggle_link,
html[data-theme="dark"] #mostrar_lista {
  color: #60A5FA !important;
  font-weight: 500 !important;
  text-shadow: none !important;
}

html[data-theme="dark"] .identi-comments-header {
  color: #F8FAFC !important;
}

html[data-theme="dark"] .identi-comments-header .num_comments {
  color: #60A5FA !important;
  font-weight: 700 !important;
}

html[data-theme="dark"] .identi-comments-header .onpost {
  color: #94A3B8 !important;
}

html[data-theme="dark"] .comment-box,
html[data-theme="dark"] .comment-box.is-normal,
html[data-theme="dark"] .coment_col #head,
html[data-theme="dark"] .coment_col #cont {
  background: linear-gradient(180deg, #161B25 0%, #12161E 100%) !important;
  border: 1px solid #262E3E !important;
  border-left: 3px solid #3B82F6 !important;
  border-top: 1px solid #262E3E !important;
  border-radius: 5px !important;
  color: #E2E8F0 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35) !important;
}

html[data-theme="dark"] .comment-box.is-staff {
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.06) 0%, #141821 35%, #12161E 100%) !important;
  border: 1px solid #2B3344 !important;
  border-left: 3px solid #EF4444 !important;
  border-top: 1px solid #2B3344 !important;
  border-radius: 5px !important;
}

html[data-theme="dark"] .comment-box.is-mod {
  background: linear-gradient(90deg, rgba(249, 115, 22, 0.06) 0%, #141821 35%, #12161E 100%) !important;
  border: 1px solid #2B3344 !important;
  border-left: 3px solid #F97316 !important;
  border-top: 1px solid #2B3344 !important;
  border-radius: 5px !important;
}

html[data-theme="dark"] .comment-box.is-user {
  background: linear-gradient(180deg, #161B25 0%, #12161E 100%) !important;
  border: 1px solid #262E3E !important;
  border-left: 3px solid #3B82F6 !important;
  border-top: 1px solid #262E3E !important;
  border-radius: 5px !important;
}

html[data-theme="dark"] .comment-box.my-comment {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.06) 0%, #141821 35%, #12161E 100%) !important;
  border: 1px solid #26383E !important;
  border-left: 3px solid #10B981 !important;
  border-top: 1px solid #26383E !important;
  border-radius: 5px !important;
}

html[data-theme="dark"] .identi-avatar-img,
html[data-theme="dark"] .comment-box .fondoavatar img,
html[data-theme="dark"] #cajacomment #error_avatar {
  background: #0B0E14 !important;
  border: 1px solid #333D52 !important;
  border-radius: 5px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
}

html[data-theme="dark"] .identi-comment-text,
html[data-theme="dark"] .comment-content {
  color: #E2E8F0 !important;
}

html[data-theme="dark"] .citacuerpo {
  background: rgba(59, 130, 246, 0.06) !important;
  border: 1px solid rgba(59, 130, 246, 0.25) !important;
  border-left: 3px solid #3B82F6 !important;
  border-radius: 4px !important;
  color: #CBD5E1 !important;
}

html[data-theme="dark"] .cita {
  color: #60A5FA !important;
  font-weight: 600 !important;
}

html[data-theme="dark"] .markItUpContainer,
html[data-theme="dark"] .markItUpHeader {
  background: linear-gradient(180deg, #1C2230 0%, #141822 100%) !important;
  border-color: #2A3242 !important;
  border-radius: 5px 5px 0 0 !important;
}

html[data-theme="dark"] .markItUpHeader ul li.markItUpButton1 a,
html[data-theme="dark"] .markItUpHeader ul li.markItUpButton2 a,
html[data-theme="dark"] .markItUpHeader ul li.markItUpButton3 a {
  filter: brightness(0) invert(0.92) !important;
}

html[data-theme="dark"] .markItUpEditor,
html[data-theme="dark"] #cuerpo_comment,
html[data-theme="dark"] .identi-comment-textarea {
  background: #090C10 !important;
  border: 1px solid #2A3242 !important;
  border-radius: 0 0 5px 5px !important;
  color: #F8FAFC !important;
}

/* ==========================================================================
   13. PERFIL DE USUARIO (/usuario/[nick]) EN ESTILO MODERNO PRO
   ========================================================================== */
html[data-theme="dark"] .user-prof-header-top {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.16) 0%, #161B26 48%, #12161E 100%) !important;
  border-bottom: 1px solid #283142 !important;
  border-radius: 6px 6px 0 0 !important;
}

html[data-theme="dark"] .user-prof-avatar-img,
html[data-theme="dark"] .avatar_perfil img {
  background: #0B0E14 !important;
  border: 2px solid #3B82F6 !important;
  border-radius: 6px !important;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.25) !important;
}

html[data-theme="dark"] .user-prof-nick a {
  color: #F8FAFC !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
}

html[data-theme="dark"] .user-prof-msg-wrap,
html[data-theme="dark"] .mensaje_personal {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin-bottom: 6px !important;
  color: #CBD5E1 !important;
}

html[data-theme="dark"] .user-prof-msg-wrap:empty,
html[data-theme="dark"] .mensaje_personal:empty {
  display: none !important;
  margin: 0 !important;
}

html[data-theme="dark"] .user-prof-msg-text {
  background: transparent !important;
  border: 1px solid transparent !important;
  border-radius: 4px !important;
  color: #94A3B8 !important;
  padding: 2px 4px !important;
  display: inline-block !important;
}

html[data-theme="dark"] .user-prof-msg-text.own:hover {
  background: rgba(59, 130, 246, 0.1) !important;
  border: 1px dashed rgba(96, 165, 250, 0.5) !important;
  color: #E2E8F0 !important;
}

html[data-theme="dark"] .user-prof-msg-text.empty {
  color: #64748B !important;
  font-style: italic !important;
}

html[data-theme="dark"] .user-prof-rank-box,
html[data-theme="dark"] .info_header_perfil .rango {
  background: linear-gradient(180deg, #1A1F2B 0%, #11151D 100%) !important;
  border: 1px solid rgba(239, 68, 68, 0.35) !important;
  border-radius: 5px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35) !important;
}

html[data-theme="dark"] .user-prof-header-bottom,
html[data-theme="dark"] .user-prof-stats-list {
  background: #0F131A !important;
  border-top: 1px solid #262E3E !important;
  border-radius: 0 0 6px 6px !important;
}

html[data-theme="dark"] .user-prof-stat-tab,
html[data-theme="dark"] .user-prof-stat-tab-static,
html[data-theme="dark"] .header_perfil .header_stats li {
  background: linear-gradient(180deg, #171C26 0%, #12161E 100%) !important;
  border: 1px solid #283142 !important;
  border-radius: 5px !important;
  color: #94A3B8 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

html[data-theme="dark"] .user-prof-stat-tab .user-prof-stat-num,
html[data-theme="dark"] .header_perfil .header_stats li b {
  color: #60A5FA !important;
  font-weight: 700 !important;
}

html[data-theme="dark"] .user-prof-stat-tab.active,
html[data-theme="dark"] .user-prof-stat-tab.tab_active,
html[data-theme="dark"] .header_perfil .header_stats li.active,
html[data-theme="dark"] .user-prof-stat-tab:hover {
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.32) 0%, rgba(29, 78, 216, 0.12) 100%) !important;
  border: 1px solid #3B82F6 !important;
  border-bottom: 2px solid #60A5FA !important;
  border-radius: 5px !important;
  color: #FFFFFF !important;
  box-shadow: 0 2px 10px rgba(59, 130, 246, 0.2) !important;
}

html[data-theme="dark"] .user-prof-stat-tab.active .user-prof-stat-num,
html[data-theme="dark"] .user-prof-stat-tab.tab_active .user-prof-stat-num {
  color: #93C5FD !important;
}

html[data-theme="dark"] .user-prof-zebra-item,
html[data-theme="dark"] .seg_ajax div,
html[data-theme="dark"] .seg_ajax li {
  background: #0F131A !important;
  border-color: #212836 !important;
}

html[data-theme="dark"] .user-prof-zebra-item.alt {
  background: #141923 !important;
}

html[data-theme="dark"] .user-prof-item-link,
html[data-theme="dark"] .user-prof-more-link,
html[data-theme="dark"] .user-prof-art-title-count {
  color: #60A5FA !important;
  font-weight: 600 !important;
}

html[data-theme="dark"] .user-prof-box-footer,
html[data-theme="dark"] .user-prof-comm-footer {
  background: #0F131A !important;
  border-top: 1px solid #262E3E !important;
  border-radius: 0 0 5px 5px !important;
}

/* ==========================================================================
   14. FILAS HOME 3 COLUMNAS, COMUNIDADES, TOPS, PAGINADOR Y PESTAÑAS
   ========================================================================== */
html[data-theme="dark"] .control-izq-col li,
html[data-theme="dark"] .control-cent-col li,
html[data-theme="dark"] .control-der-col li,
html[data-theme="dark"] .ult_posts li,
html[data-theme="dark"] .ult_temas li,
html[data-theme="dark"] .zebra li,
html[data-theme="dark"] .zebra_recent li,
html[data-theme="dark"] .directorioL li,
html[data-theme="dark"] .comunidades .lista_temas li,
html[data-theme="dark"] .lista li,
html[data-theme="dark"] .mp .mp_mps .mp_line,
html[data-theme="dark"] .mp .mp_main .mp_body,
html[data-theme="dark"] .mp .mp_boxes,
html[data-theme="dark"] .rank ul li,
html[data-theme="dark"] .engine2 .search_results li {
  background: #0F131A !important;
  border-color: #212836 !important;
  border-radius: 4px !important;
  color: #CBD5E1 !important;
  text-shadow: none !important;
}

html[data-theme="dark"] .ult_temas li:nth-child(2n+1),
html[data-theme="dark"] .zebra li:nth-child(2n+1),
html[data-theme="dark"] .zebra_recent li:nth-child(2n+1),
html[data-theme="dark"] .ult_posts li:nth-child(2n+1),
html[data-theme="dark"] .comunidades .lista_temas li:nth-child(2n+1) {
  background: #141923 !important;
}

html[data-theme="dark"] .comunidades .tema_sticky,
html[data-theme="dark"] .ult_posts #sticky {
  background: rgba(245, 158, 11, 0.1) !important;
  border-color: rgba(245, 158, 11, 0.3) !important;
}

html[data-theme="dark"] .paginas a,
html[data-theme="dark"] .paginador a,
html[data-theme="dark"] .pag_perfil a,
html[data-theme="dark"] #stat_tabs .tabnav li a,
html[data-theme="dark"] .tabnav li a {
  background: linear-gradient(180deg, #181E2A 0%, #11151E 100%) !important;
  border: 1px solid #2A3346 !important;
  border-radius: 4px !important;
  color: #CBD5E1 !important;
  font-weight: 600 !important;
  text-shadow: none !important;
}

html[data-theme="dark"] .ult_temas li a,
html[data-theme="dark"] .zebra li a,
html[data-theme="dark"] .zebra_recent li a,
html[data-theme="dark"] .ult_posts li a,
html[data-theme="dark"] .tops a,
html[data-theme="dark"] .control-izq-col a,
html[data-theme="dark"] .control-cent-col a,
html[data-theme="dark"] .control-der-col a,
html[data-theme="dark"] .comunidades .lista_temas li a,
html[data-theme="dark"] .lista li a,
html[data-theme="dark"] .engine2 .search_results li .title a {
  color: #60A5FA !important;
}

html[data-theme="dark"] .paginas a.active,
html[data-theme="dark"] .paginas a.here,
html[data-theme="dark"] #stat_tabs .tabnav li a.selected,
html[data-theme="dark"] .tabnav li a.selected,
html[data-theme="dark"] .tabnav li.active a {
  background: linear-gradient(180deg, #2563EB 0%, #1D4ED8 100%) !important;
  border: 1px solid #60A5FA !important;
  border-radius: 4px !important;
  color: #FFFFFF !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35) !important;
}

/* ==========================================================================
   15. POPUPS DE CABECERA (#main_login Y #notifi_box) EN MODO OSCURO
   ========================================================================== */
html[data-theme="dark"] #main_login,
html[data-theme="dark"] #notifi_box {
  background: #141821 !important;
  border: 1px solid #262E3E !important;
  border-radius: 6px !important;
  color: #E2E8F0 !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.75) !important;
}

html[data-theme="dark"] #main_login .tabs > ul,
html[data-theme="dark"] .notifi_head {
  background: linear-gradient(180deg, #1B212E 0%, #141822 100%) !important;
  border-bottom: 1px solid #262E3E !important;
  box-shadow: none !important;
  color: #F8FAFC !important;
}

html[data-theme="dark"] .notifi_cuerpo .list {
  background: #0E1117 !important;
  border-left: 1px solid #262E3E !important;
}

html[data-theme="dark"] .notifi_cuerpo .list li {
  color: #CBD5E1 !important;
}

html[data-theme="dark"] .notifi_cuerpo .list li:nth-child(2n+1) {
  background: #141923 !important;
}

html[data-theme="dark"] .notifi_cuerpo .list li a,
html[data-theme="dark"] .notifi_footer a,
html[data-theme="dark"] .login-forgot-link {
  color: #60A5FA !important;
}

html[data-theme="dark"] .notifi_footer {
  background: #141821 !important;
  border-top: 1px solid #262E3E !important;
}

/* ==========================================================================
   16. FOOTER MODERNO CONSERVANDO LAS 3 CAJAS COMPLETAS Y BARRA AZUL (#pie)
   ========================================================================== */
html[data-theme="dark"] .small-footer {
  display: block !important;
  border-top: 1px solid #222938 !important;
  background: transparent !important;
}

html[data-theme="dark"] footer,
html[data-theme="dark"] #footer,
html[data-theme="dark"] .footer_links,
html[data-theme="dark"] .art-Footer,
html[data-theme="dark"] .art-Footer-background {
  background: #080A0F !important;
  background-image: none !important;
  border-color: #1E2430 !important;
  color: #94A3B8 !important;
  height: auto !important;
  padding-bottom: 16px !important;
}

html[data-theme="dark"] .footer-info,
html[data-theme="dark"] .art-Footer .footer-info {
  background: transparent !important;
  background-image: none !important;
  border: none !important;
  box-shadow: none !important;
  color: #94A3B8 !important;
  height: auto !important;
  padding: 0 !important;
}

html[data-theme="dark"] .footer-info > div:first-child,
html[data-theme="dark"] .art-Footer .footer-info > div:first-child {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 6px !important;
  width: 100% !important;
  margin: 0 0 6px 0 !important;
  padding: 0 !important;
  background: transparent !important;
  box-sizing: border-box !important;
}

html[data-theme="dark"] .footer-info > div:first-child::before,
html[data-theme="dark"] .footer-info > div:first-child::after {
  display: none !important;
  content: none !important;
}

html[data-theme="dark"] .footer-info ul,
html[data-theme="dark"] .art-Footer .footer-info ul,
html[data-theme="dark"] .footer-info ul:nth-child(1),
html[data-theme="dark"] .footer-info ul:nth-child(2),
html[data-theme="dark"] .footer-info ul:nth-child(3) {
  display: block !important;
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 46px !important;
  margin: 0 !important;
  padding: 8px 14px !important;
  background: linear-gradient(180deg, #151A24 0%, #0F131B 100%) !important;
  border: 1px solid #262E3E !important;
  border-left: 3px solid #3B82F6 !important;
  border-radius: 5px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45) !important;
  color: #94A3B8 !important;
  opacity: 1 !important;
  box-sizing: border-box !important;
}

html[data-theme="dark"] .footer-info ul li,
html[data-theme="dark"] .footer-info ul li a {
  color: #CBD5E1 !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  font-size: 11.5px !important;
  line-height: 1.5 !important;
  padding: 0 !important;
  text-align: left !important;
  text-shadow: none !important;
}

html[data-theme="dark"] .footer-info ul li a:hover {
  color: #60A5FA !important;
}

/* ==========================================================================
   17. AJUSTES RESPONSIVOS MÓVILES EN MODO OSCURO (<= 768px)
   ========================================================================== */
@media (max-width: 768px) {
  html[data-theme="dark"],
  html[data-theme="dark"] body,
  html[data-theme="dark"] #warp {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100% !important;
    background: #080A0F !important;
  }
  html[data-theme="dark"] .menu,
  html[data-theme="dark"] .menu .bar {
    max-width: 100% !important;
    width: 100% !important;
    overflow: visible !important;
    box-sizing: border-box !important;
    background: linear-gradient(180deg, #121620 0%, #0B0E14 100%) !important;
    border-bottom: 1px solid rgba(59, 130, 246, 0.28) !important;
  }
  html[data-theme="dark"] .menu .bar,
  html[data-theme="dark"] .menu a,
  html[data-theme="dark"] .menu span {
    font-family: 'Oswald', Helvetica, Arial, sans-serif !important;
    letter-spacing: 0 !important;
  }
  html[data-theme="dark"] .menuTabs li a {
    padding: 4px 5px !important;
    font-size: 11px !important;
    line-height: 1 !important;
  }
  html[data-theme="dark"] .userInfoLogin .opc {
    padding: 9px 4px !important;
  }
  html[data-theme="dark"] .userInfoLogin .username {
    padding: 4px 4px !important;
  }
  html[data-theme="dark"] .userInfoLogin .username .nick {
    font-size: 11px !important;
    max-width: 68px !important;
  }
  html[data-theme="dark"] .subMenuContent,
  html[data-theme="dark"] .subMenu {
    background: linear-gradient(180deg, #171C26 0%, #10141C 100%) !important;
    border-color: #232A38 !important;
  }
  html[data-theme="dark"] .search_top {
    background: transparent !important;
  }
  html[data-theme="dark"] .zebra_recent li .margen,
  html[data-theme="dark"] .zebra_recent li .over_fix {
    width: 100% !important;
    height: auto !important;
    display: flex !important;
    gap: 6px !important;
    align-items: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  html[data-theme="dark"] .small-footer {
    display: block !important;
    padding: 10px 8px !important;
    margin: 12px 0 0 0 !important;
  }
  html[data-theme="dark"] .art-Footer {
    height: auto !important;
    padding: 8px 4px 16px 4px !important;
  }
  html[data-theme="dark"] .footer-info,
  html[data-theme="dark"] .art-Footer .footer-info {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }
  html[data-theme="dark"] .footer-info > div:first-child,
  html[data-theme="dark"] .art-Footer .footer-info > div:first-child {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 4px !important;
    width: 100% !important;
    margin: 0 0 6px 0 !important;
    padding: 0 !important;
  }
  html[data-theme="dark"] .footer-info ul,
  html[data-theme="dark"] .art-Footer .footer-info ul,
  html[data-theme="dark"] .footer-info ul:nth-child(1),
  html[data-theme="dark"] .footer-info ul:nth-child(2),
  html[data-theme="dark"] .footer-info ul:nth-child(3) {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 6px 7px !important;
    min-height: 44px !important;
  }
  html[data-theme="dark"] .footer-info ul li,
  html[data-theme="dark"] .footer-info ul li a {
    font-size: 10px !important;
    line-height: 1.35 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
}

/* ==========================================================================
   18. PESTAÑAS Y DIRECTORIO DE PERFIL (/usuario/[nick]) EN MODO OSCURO
   ========================================================================== */
html[data-theme="dark"] .user-prof-tab-container,
html[data-theme="dark"] .user-prof-tab-list,
html[data-theme="dark"] .user-dir-container,
html[data-theme="dark"] .user-dir-list {
  background: transparent !important;
  border-color: #262E3E !important;
  color: #E2E8F0 !important;
}

html[data-theme="dark"] .user-prof-tab-row,
html[data-theme="dark"] .user-prof-tab-row-last,
html[data-theme="dark"] .user-dir-row {
  background: #10141D !important;
  border-bottom: 1px solid #212836 !important;
  border-radius: 4px !important;
  color: #CBD5E1 !important;
  transition: background-color 0.15s ease !important;
}

html[data-theme="dark"] .user-prof-tab-row:nth-child(2n),
html[data-theme="dark"] .user-dir-row:nth-child(2n) {
  background: #141923 !important;
}

html[data-theme="dark"] .user-prof-tab-row:hover,
html[data-theme="dark"] .user-prof-tab-row.hovered,
html[data-theme="dark"] .user-dir-row:hover,
html[data-theme="dark"] .user-dir-row.is-hovered {
  background: #1A2130 !important;
}

html[data-theme="dark"] .user-prof-tab-link,
html[data-theme="dark"] .user-dir-name-link {
  color: #60A5FA !important;
  font-weight: 600 !important;
}

html[data-theme="dark"] .user-prof-tab-link:hover,
html[data-theme="dark"] .user-dir-name-link:hover {
  color: #93C5FD !important;
  text-decoration: underline !important;
}

html[data-theme="dark"] .user-prof-tab-date,
html[data-theme="dark"] .user-prof-tab-stat-fav,
html[data-theme="dark"] .user-prof-tab-stat-com,
html[data-theme="dark"] .user-dir-stats-col,
html[data-theme="dark"] .user-prof-pagination-info {
  color: #94A3B8 !important;
}

html[data-theme="dark"] .user-prof-tab-stat-pts,
html[data-theme="dark"] .user-dir-stat-val {
  color: #60A5FA !important;
  font-weight: 600 !important;
}

html[data-theme="dark"] .user-prof-tab-unfollow-btn,
html[data-theme="dark"] .user-prof-tab-restore-btn,
html[data-theme="dark"] .user-prof-tab-edit-btn,
html[data-theme="dark"] .user-dir-mp-btn,
html[data-theme="dark"] .user-prof-pagination-btn {
  background: linear-gradient(180deg, #1E2534 0%, #141923 100%) !important;
  border: 1px solid #2E384D !important;
  border-radius: 4px !important;
  color: #E2E8F0 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35) !important;
}

html[data-theme="dark"] .user-prof-tab-unfollow-btn {
  color: #F87171 !important;
  border-color: rgba(239, 68, 68, 0.35) !important;
}

html[data-theme="dark"] .user-prof-tab-restore-btn {
  color: #34D399 !important;
  border-color: rgba(16, 185, 129, 0.35) !important;
}

html[data-theme="dark"] .user-prof-tab-edit-btn,
html[data-theme="dark"] .user-dir-mp-btn {
  color: #60A5FA !important;
  border-color: rgba(59, 130, 246, 0.35) !important;
}

html[data-theme="dark"] .user-prof-pagination {
  border-top: 1px solid #242C3C !important;
}

html[data-theme="dark"] .user-dir-avatar {
  background: #0B0E14 !important;
  border: 1px solid #2C3546 !important;
  border-radius: 5px !important;
}

html[data-theme="dark"] .user-dir-rank-badge {
  background: #0B0E14 !important;
  border: 1px solid #262E3E !important;
  color: #94A3B8 !important;
}

html[data-theme="dark"] .user-dir-empty-box {
  background: #0B0E14 !important;
  border: 1px dashed #283142 !important;
  border-radius: 5px !important;
}

html[data-theme="dark"] .user-dir-empty-text {
  color: #94A3B8 !important;
}

/* ==========================================================================
   19. DETALLES DE POST (/post/[id]): QUICKMOD, RECICLAJE, BBCODE, ALERTAS
   ========================================================================== */
.en_reciclaje,
.identi-recycled-banner {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  justify-content: space-between !important;
  gap: 16px !important;
}

.identi-recycled-left,
.identi-recycled-right {
  flex: 1 1 50% !important;
  width: auto !important;
  float: none !important;
}

@media (max-width: 768px) {
  .en_reciclaje,
  .identi-recycled-banner {
    flex-direction: column !important;
  }
  .identi-recycled-left {
    border-right: none !important;
    border-bottom: 1px dashed #698EAD !important;
    padding-right: 0 !important;
    padding-bottom: 10px !important;
  }
  .identi-recycled-right {
    padding-left: 0 !important;
  }
}

html[data-theme="dark"] .identi-quickmod-bar {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.12) 0%, #141821 100%) !important;
  border: 1px solid rgba(245, 158, 11, 0.35) !important;
  border-left: 3px solid #F59E0B !important;
  border-radius: 5px !important;
  color: #FDE68A !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35) !important;
}

html[data-theme="dark"] .identi-quickmod-title {
  color: #FBBF24 !important;
}

html[data-theme="dark"] .identi-quickmod-btn {
  background: linear-gradient(180deg, #1E2534 0%, #141923 100%) !important;
  border: 1px solid #2E384D !important;
  border-radius: 4px !important;
  color: #E2E8F0 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35) !important;
}

html[data-theme="dark"] .identi-quickmod-btn:hover {
  background: #252E42 !important;
  border-color: #475569 !important;
}

html[data-theme="dark"] .identi-quickmod-btn.btn-edit {
  color: #60A5FA !important;
  border-color: rgba(59, 130, 246, 0.35) !important;
}

html[data-theme="dark"] .identi-quickmod-btn.btn-sticky {
  color: #FBBF24 !important;
  border-color: rgba(245, 158, 11, 0.35) !important;
}

html[data-theme="dark"] .identi-quickmod-btn.btn-lock {
  color: #CBD5E1 !important;
}

html[data-theme="dark"] .identi-quickmod-btn.btn-recycle {
  color: #FB923C !important;
  border-color: rgba(249, 115, 22, 0.35) !important;
}

html[data-theme="dark"] .identi-quickmod-btn.btn-restore {
  color: #34D399 !important;
  border-color: rgba(16, 185, 129, 0.35) !important;
}

html[data-theme="dark"] .identi-quickmod-btn.btn-delete {
  background: rgba(239, 68, 68, 0.14) !important;
  color: #F87171 !important;
  border-color: rgba(239, 68, 68, 0.45) !important;
}

html[data-theme="dark"] .en_reciclaje,
html[data-theme="dark"] .identi-recycled-banner {
  background: linear-gradient(180deg, #161B26 0%, #11151E 100%) !important;
  border: 1px solid #283246 !important;
  border-left: 3px solid #F97316 !important;
  border-radius: 6px !important;
  color: #CBD5E1 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45) !important;
}

html[data-theme="dark"] .identi-recycled-left {
  border-right: 1px solid #2A3448 !important;
}

html[data-theme="dark"] .identi-recycled-right {
  border-left: none !important;
}

html[data-theme="dark"] .identi-recycled-title,
html[data-theme="dark"] .identi-recycled-search-title {
  color: #60A5FA !important;
}

html[data-theme="dark"] .identi-recycled-desc,
html[data-theme="dark"] .identi-recycled-search-desc {
  color: #94A3B8 !important;
}

html[data-theme="dark"] .identi-recycled-search-input {
  background: #090C10 !important;
  border: 1px solid #2A3242 !important;
  color: #F8FAFC !important;
  border-radius: 4px !important;
}

html[data-theme="dark"] .identi-recycled-search-btn {
  background: linear-gradient(180deg, #2563EB 0%, #1D4ED8 100%) !important;
  border: 1px solid #60A5FA !important;
  color: #FFFFFF !important;
  border-radius: 4px !important;
  font-weight: 600 !important;
}

html[data-theme="dark"] .extra_info.post_metadata_bar .post_denuncias_tag,
html[data-theme="dark"] .post_metadata_bar .post_denuncias_tag,
html[data-theme="dark"] .post_denuncias_tag {
  background: rgba(239, 68, 68, 0.16) !important;
  border: 1px solid rgba(239, 68, 68, 0.45) !important;
  color: #FCA5A5 !important;
  border-radius: 4px !important;
}

html[data-theme="dark"] .post_body,
html[data-theme="dark"] .post_body_card,
html[data-theme="dark"] .post_bbcode_wrap,
html[data-theme="dark"] .bbcode_container {
  color: #E2E8F0 !important;
}

html[data-theme="dark"] .bbcode-link-box {
  background: #0B0E14 !important;
  border: 1px dashed #3B82F6 !important;
  color: #E2E8F0 !important;
  box-shadow: none !important;
}

html[data-theme="dark"] .post_bbcode_wrap a,
html[data-theme="dark"] .bbcode_container a,
html[data-theme="dark"] .bbcode-line-item,
html[data-theme="dark"] .bbcode-line-item a {
  color: #60A5FA !important;
}

html[data-theme="dark"] #no_comentarios,
html[data-theme="dark"] .no_comentarios,
html[data-theme="dark"] .post_cerrado,
html[data-theme="dark"] .error_bbc {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

html[data-theme="dark"] .Globits,
html[data-theme="dark"] .Globits.noticia {
  background: url(/images/Globits/Noticias.png) 12px 50% no-repeat, linear-gradient(90deg, rgba(59, 130, 246, 0.14) 0%, #12161F 100%) !important;
  border: 1px solid rgba(59, 130, 246, 0.35) !important;
  border-left: 3px solid #3B82F6 !important;
  border-radius: 5px !important;
  color: #93C5FD !important;
  text-shadow: none !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35) !important;
}

html[data-theme="dark"] .Globits.error {
  background: url(/images/Globits/Error.png) 12px 50% no-repeat, linear-gradient(90deg, rgba(239, 68, 68, 0.15) 0%, #14161F 100%) !important;
  border: 1px solid rgba(239, 68, 68, 0.4) !important;
  border-left: 3px solid #EF4444 !important;
  border-radius: 5px !important;
  color: #FCA5A5 !important;
  text-shadow: none !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35) !important;
}

html[data-theme="dark"] .identi-login-to-comment {
  background: #12161F !important;
  border: 1px dashed #2A3448 !important;
  border-radius: 5px !important;
  color: #94A3B8 !important;
}

html[data-theme="dark"] .identi-login-to-comment a {
  color: #60A5FA !important;
}

html[data-theme="dark"] .display_sidebar .boton_seguir,
html[data-theme="dark"] .display_sidebar .boton_MP {
  background: #0B0E14 !important;
  border: 1px dashed #262E3E !important;
  border-radius: 4px !important;
}

html[data-theme="dark"] .display_sidebar .boton_seguir .button,
html[data-theme="dark"] .display_sidebar .boton_seguir button,
html[data-theme="dark"] .display_sidebar .boton_MP .button,
html[data-theme="dark"] .display_sidebar .boton_MP button {
  background: linear-gradient(180deg, #1E2534 0%, #141923 100%) !important;
  border: 1px solid #3B82F6 !important;
  color: #93C5FD !important;
  border-radius: 4px !important;
}

html[data-theme="dark"] .identi-sugerencia-item {
  border-bottom: 1px solid #212836 !important;
}

html[data-theme="dark"] .identi-sugerencia-link {
  color: #60A5FA !important;
}

html[data-theme="dark"] .voter_badge {
  background: #151A24 !important;
  border: 1px solid #283142 !important;
  border-radius: 4px !important;
  color: #CBD5E1 !important;
}

html[data-theme="dark"] .voter_badge a {
  color: #60A5FA !important;
}

/* ==========================================================================
   20. SUITE ADMIN (/admin) Y PANEL DE MODERACIÓN (/historial-mod)
   ========================================================================== */
.mod-nav-tabs {
  flex-wrap: wrap !important;
  gap: 3px !important;
  overflow-x: visible !important;
}

.mod-nav-tab-btn {
  padding: 6px 8px !important;
  font-size: 11px !important;
}

html[data-theme="dark"] .mod-page-container {
  background: transparent !important;
  color: #E2E8F0 !important;
}

html[data-theme="dark"] .mod-header-banner {
  background: linear-gradient(180deg, #1D4ED8 0%, #1E3A8A 100%) !important;
  border: 1px solid #3B82F6 !important;
  border-radius: 6px 6px 0 0 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45) !important;
}

html[data-theme="dark"] .mod-stats-bar {
  background: #121620 !important;
  border: 1px solid #262E3E !important;
  border-top: none !important;
  border-radius: 0 0 6px 6px !important;
  color: #CBD5E1 !important;
}

html[data-theme="dark"] .mod-stats-bar span {
  color: #94A3B8 !important;
}

html[data-theme="dark"] .mod-stats-bar b.mod-stat-blue,
html[data-theme="dark"] .mod-stat-blue {
  color: #60A5FA !important;
}

html[data-theme="dark"] .mod-stats-bar b.mod-stat-danger,
html[data-theme="dark"] .mod-stat-danger {
  color: #F87171 !important;
}

html[data-theme="dark"] .mod-stats-bar b.mod-stat-success,
html[data-theme="dark"] .mod-stat-success {
  color: #34D399 !important;
}

html[data-theme="dark"] .mod-nav-tabs {
  border-bottom: 2px solid #2563EB !important;
}

html[data-theme="dark"] .mod-nav-tab-btn {
  background: linear-gradient(180deg, #181E2A 0%, #11151E 100%) !important;
  color: #94A3B8 !important;
  border: 1px solid #262E3E !important;
  border-bottom: none !important;
  border-radius: 5px 5px 0 0 !important;
}

html[data-theme="dark"] .mod-nav-tab-btn:hover {
  background: #1E2534 !important;
  color: #F8FAFC !important;
}

html[data-theme="dark"] .mod-nav-tab-btn.is-active {
  background: linear-gradient(180deg, #2563EB 0%, #1D4ED8 100%) !important;
  color: #FFFFFF !important;
  border-color: #3B82F6 !important;
  box-shadow: 0 -2px 10px rgba(37, 99, 235, 0.25) !important;
}

html[data-theme="dark"] .mod-nav-tab-btn.is-active-danger {
  background: linear-gradient(180deg, #DC2626 0%, #B91C1C 100%) !important;
  color: #FFFFFF !important;
  border-color: #EF4444 !important;
}

html[data-theme="dark"] .mod-content-box {
  background: linear-gradient(180deg, #151922 0%, #10141C 100%) !important;
  border: 1px solid #262E3E !important;
  border-top: none !important;
  border-radius: 0 0 6px 6px !important;
  color: #E2E8F0 !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5) !important;
}

html[data-theme="dark"] .mod-subbar {
  border-bottom: 1px solid #262E3E !important;
}

html[data-theme="dark"] .mod-subbar-desc,
html[data-theme="dark"] .mod-filter-label,
html[data-theme="dark"] .mod-filter-pills-label {
  color: #94A3B8 !important;
}

html[data-theme="dark"] .mod-select-inline,
html[data-theme="dark"] .mod-select,
html[data-theme="dark"] .mod-input,
html[data-theme="dark"] .mod-input-sm,
html[data-theme="dark"] .mod-textarea {
  background: #090C10 !important;
  border: 1px solid #2A3242 !important;
  border-radius: 4px !important;
  color: #F8FAFC !important;
}

html[data-theme="dark"] .mod-table {
  color: #E2E8F0 !important;
}

html[data-theme="dark"] .mod-table thead tr {
  background: #0B0E14 !important;
  border-bottom: 2px solid #262E3E !important;
}

html[data-theme="dark"] .mod-table th {
  background: #0B0E14 !important;
  color: #93C5FD !important;
  font-weight: 600 !important;
  border-color: #262E3E !important;
}

html[data-theme="dark"] .mod-table tbody tr,
html[data-theme="dark"] .tablat {
  background: #12161F !important;
  border-bottom: 1px solid #1E2534 !important;
  color: #E2E8F0 !important;
}

html[data-theme="dark"] .mod-table tbody tr:nth-child(2n),
html[data-theme="dark"] .tablat:nth-child(2n) {
  background: #161B26 !important;
}

html[data-theme="dark"] .mod-table tbody tr:hover,
html[data-theme="dark"] .tablat:hover {
  background: #1C2333 !important;
}

html[data-theme="dark"] .mod-table td {
  border-bottom: 1px solid #1E2534 !important;
  color: #CBD5E1 !important;
}

html[data-theme="dark"] .mod-table.mod-table-modlog td {
  border-bottom: 1px dashed #262E3E !important;
}

html[data-theme="dark"] .mod-table tr.is-target {
  background: rgba(37, 99, 235, 0.14) !important;
}

html[data-theme="dark"] .mod-table tr.is-banned {
  background: rgba(239, 68, 68, 0.12) !important;
}

html[data-theme="dark"] .mod-table tr.is-unactivated {
  background: rgba(245, 158, 11, 0.12) !important;
}

html[data-theme="dark"] .mod-text-dark,
html[data-theme="dark"] .mod-user-card-title {
  color: #F8FAFC !important;
}

html[data-theme="dark"] .mod-text-body,
html[data-theme="dark"] .mod-shout-body {
  color: #CBD5E1 !important;
}

html[data-theme="dark"] .mod-text-muted,
html[data-theme="dark"] .mod-form-hint,
html[data-theme="dark"] .mod-td-id,
html[data-theme="dark"] .mod-td-email,
html[data-theme="dark"] .mod-user-nick,
html[data-theme="dark"] .mod-user-card-email,
html[data-theme="dark"] .mod-shout-time,
html[data-theme="dark"] .mod-empty-state,
html[data-theme="dark"] .mod-empty-box {
  color: #94A3B8 !important;
}

html[data-theme="dark"] .mod-link-primary,
html[data-theme="dark"] .mod-user-link,
html[data-theme="dark"] .mod-shout-author,
html[data-theme="dark"] .mod-protocol-title {
  color: #60A5FA !important;
}

html[data-theme="dark"] .mod-link-muted {
  color: #94A3B8 !important;
}

html[data-theme="dark"] .badge-action-delete,
html[data-theme="dark"] .badge-action-ban,
html[data-theme="dark"] .mod-protocol-tag-delete,
html[data-theme="dark"] .mod-val-danger {
  color: #F87171 !important;
}

html[data-theme="dark"] .badge-action-unban,
html[data-theme="dark"] .badge-action-restore,
html[data-theme="dark"] .badge-action-approve,
html[data-theme="dark"] .mod-val-green,
html[data-theme="dark"] .mod-val-staff {
  color: #34D399 !important;
}

html[data-theme="dark"] .badge-action-edit,
html[data-theme="dark"] .badge-action-default,
html[data-theme="dark"] .mod-val-blue {
  color: #60A5FA !important;
}

html[data-theme="dark"] .badge-action-recycle,
html[data-theme="dark"] .mod-protocol-subtitle,
html[data-theme="dark"] .mod-protocol-tag-recycle,
html[data-theme="dark"] .mod-val-warning {
  color: #FB923C !important;
}

html[data-theme="dark"] .mod-shout-form,
html[data-theme="dark"] .mod-shout-card,
html[data-theme="dark"] .mod-shout-com,
html[data-theme="dark"] .mod-protocol-card,
html[data-theme="dark"] .mod-filter-box,
html[data-theme="dark"] .mod-user-metric-card,
html[data-theme="dark"] .mod-avatar-box,
html[data-theme="dark"] .mod-card-section,
html[data-theme="dark"] .mod-banner-ip {
  background: #0E121A !important;
  border: 1px solid #262E3E !important;
  border-radius: 5px !important;
  color: #E2E8F0 !important;
}

html[data-theme="dark"] .mod-user-metric-card .label {
  color: #94A3B8 !important;
}

html[data-theme="dark"] .mod-user-metric-card.is-active {
  background: rgba(37, 99, 235, 0.16) !important;
  border-color: #3B82F6 !important;
}

html[data-theme="dark"] .mod-user-metric-card.is-active-banned {
  background: rgba(239, 68, 68, 0.15) !important;
  border-color: #EF4444 !important;
}

html[data-theme="dark"] .mod-user-metric-card.is-active-unactivated {
  background: rgba(245, 158, 11, 0.15) !important;
  border-color: #F59E0B !important;
}

html[data-theme="dark"] .mod-user-metric-card.is-active-staff {
  background: rgba(16, 185, 129, 0.15) !important;
  border-color: #10B981 !important;
}

html[data-theme="dark"] .mod-filter-pill,
html[data-theme="dark"] .mod-page-btn,
html[data-theme="dark"] .mod-chip-btn,
html[data-theme="dark"] .mod-group-card,
html[data-theme="dark"] .mod-btn-secondary {
  background: #151A24 !important;
  border: 1px solid #2A3346 !important;
  color: #CBD5E1 !important;
}

html[data-theme="dark"] .mod-filter-pill.is-active,
html[data-theme="dark"] .mod-page-btn.is-active,
html[data-theme="dark"] .mod-chip-btn.is-active,
html[data-theme="dark"] .mod-group-card.is-selected {
  background: #2563EB !important;
  border-color: #60A5FA !important;
  color: #FFFFFF !important;
}

html[data-theme="dark"] .mod-page-btn:disabled,
html[data-theme="dark"] .mod-page-btn.is-disabled {
  background: #0D1017 !important;
  border-color: #1E2430 !important;
  color: #475569 !important;
}

html[data-theme="dark"] .mod-modal-container {
  background: #141821 !important;
  border: 1px solid #2A3346 !important;
  color: #E2E8F0 !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.75) !important;
}

html[data-theme="dark"] .mod-modal-tabs,
html[data-theme="dark"] .mod-modal-body,
html[data-theme="dark"] .mod-modal-footer {
  background: #10141C !important;
  border-color: #262E3E !important;
  color: #E2E8F0 !important;
}

html[data-theme="dark"] .mod-modal-tab-btn {
  color: #94A3B8 !important;
}

html[data-theme="dark"] .mod-modal-tab-btn.is-active {
  background: #141821 !important;
  color: #60A5FA !important;
  border-color: #262E3E !important;
  border-top: 2px solid #3B82F6 !important;
}

html[data-theme="dark"] .mod-form-label,
html[data-theme="dark"] .mod-form-label-sm {
  color: #E2E8F0 !important;
}

/* Sobrescritura inteligente de tarjetas y tablas con estilos inline claros en /admin */
html[data-theme="dark"] .mod-page-container [style*="background: #FFFFFF"],
html[data-theme="dark"] .mod-page-container [style*="background:#FFFFFF"],
html[data-theme="dark"] .mod-page-container [style*="background: #FFF"],
html[data-theme="dark"] .mod-page-container [style*="background:#FFF"],
html[data-theme="dark"] .mod-page-container [style*="background: rgb(255, 255, 255)"],
html[data-theme="dark"] .mod-page-container [style*="background-color: rgb(255, 255, 255)"] {
  background: #121722 !important;
  border-color: #262E3E !important;
  color: #E2E8F0 !important;
}

html[data-theme="dark"] .mod-page-container [style*="background: #F8FAFC"],
html[data-theme="dark"] .mod-page-container [style*="background:#F8FAFC"],
html[data-theme="dark"] .mod-page-container [style*="background: rgb(248, 250, 252)"],
html[data-theme="dark"] .mod-page-container [style*="background: #F1F5F9"],
html[data-theme="dark"] .mod-page-container [style*="background:#F1F5F9"],
html[data-theme="dark"] .mod-page-container [style*="background: rgb(241, 245, 249)"] {
  background: #0D1119 !important;
  border-color: #262E3E !important;
  color: #CBD5E1 !important;
}

html[data-theme="dark"] .mod-page-container [style*="background: #E2E8F0"],
html[data-theme="dark"] .mod-page-container [style*="background:#E2E8F0"],
html[data-theme="dark"] .mod-page-container [style*="background: rgb(226, 232, 240)"] {
  background: #1E2636 !important;
  border-color: #2E384D !important;
  color: #E2E8F0 !important;
}

html[data-theme="dark"] .mod-page-container [style*="background: #EFF6FF"],
html[data-theme="dark"] .mod-page-container [style*="background:#EFF6FF"],
html[data-theme="dark"] .mod-page-container [style*="background: rgb(239, 246, 255)"],
html[data-theme="dark"] .mod-page-container [style*="background: #DBEAFE"],
html[data-theme="dark"] .mod-page-container [style*="background: rgb(219, 234, 254)"] {
  background: rgba(37, 99, 235, 0.15) !important;
  border-color: rgba(59, 130, 246, 0.35) !important;
  color: #93C5FD !important;
}

html[data-theme="dark"] .mod-page-container [style*="background: #FFF5F5"],
html[data-theme="dark"] .mod-page-container [style*="background:#FFF5F5"],
html[data-theme="dark"] .mod-page-container [style*="background: rgb(255, 245, 245)"],
html[data-theme="dark"] .mod-page-container [style*="background: #FEF2F2"],
html[data-theme="dark"] .mod-page-container [style*="background: rgb(254, 242, 242)"],
html[data-theme="dark"] .mod-page-container [style*="background: #FEE2E2"],
html[data-theme="dark"] .mod-page-container [style*="background: rgb(254, 226, 226)"] {
  background: rgba(239, 68, 68, 0.14) !important;
  border-color: rgba(239, 68, 68, 0.35) !important;
  color: #FCA5A5 !important;
}

html[data-theme="dark"] .mod-page-container [style*="background: #ECFDF5"],
html[data-theme="dark"] .mod-page-container [style*="background: rgb(236, 253, 245)"],
html[data-theme="dark"] .mod-page-container [style*="background: #D1FAE5"],
html[data-theme="dark"] .mod-page-container [style*="background: rgb(209, 250, 229)"] {
  background: rgba(16, 185, 129, 0.15) !important;
  border-color: rgba(16, 185, 129, 0.35) !important;
  color: #6EE7B7 !important;
}

html[data-theme="dark"] .mod-page-container [style*="background: #FFFBEB"],
html[data-theme="dark"] .mod-page-container [style*="background: rgb(255, 251, 235)"],
html[data-theme="dark"] .mod-page-container [style*="background: #FEF3C7"],
html[data-theme="dark"] .mod-page-container [style*="background: rgb(254, 243, 199)"] {
  background: rgba(245, 158, 11, 0.15) !important;
  border-color: rgba(245, 158, 11, 0.35) !important;
  color: #FDE68A !important;
}

html[data-theme="dark"] .mod-page-container [style*="color: #1E293B"],
html[data-theme="dark"] .mod-page-container [style*="color:#1E293B"],
html[data-theme="dark"] .mod-page-container [style*="color: rgb(30, 41, 59)"],
html[data-theme="dark"] .mod-page-container [style*="color: #0F172A"],
html[data-theme="dark"] .mod-page-container [style*="color: rgb(15, 23, 42)"],
html[data-theme="dark"] .mod-page-container [style*="color: #334155"],
html[data-theme="dark"] .mod-page-container [style*="color:#334155"],
html[data-theme="dark"] .mod-page-container [style*="color: rgb(51, 65, 85)"] {
  color: #F8FAFC !important;
}

html[data-theme="dark"] .mod-page-container [style*="color: #475569"],
html[data-theme="dark"] .mod-page-container [style*="color:#475569"],
html[data-theme="dark"] .mod-page-container [style*="color: rgb(71, 85, 105)"],
html[data-theme="dark"] .mod-page-container [style*="color: #64748B"],
html[data-theme="dark"] .mod-page-container [style*="color:#64748B"],
html[data-theme="dark"] .mod-page-container [style*="color: rgb(100, 116, 139)"],
html[data-theme="dark"] .mod-page-container [style*="color: #666"],
html[data-theme="dark"] .mod-page-container [style*="color:#666"],
html[data-theme="dark"] .mod-page-container [style*="color: rgb(102, 102, 102)"] {
  color: #94A3B8 !important;
}

html[data-theme="dark"] .mod-page-container [style*="color: #004CA0"],
html[data-theme="dark"] .mod-page-container [style*="color:#004CA0"],
html[data-theme="dark"] .mod-page-container [style*="color: rgb(0, 76, 160)"],
html[data-theme="dark"] .mod-page-container [style*="color: #096FDB"],
html[data-theme="dark"] .mod-page-container [style*="color:#096FDB"],
html[data-theme="dark"] .mod-page-container [style*="color: rgb(9, 111, 219)"],
html[data-theme="dark"] .mod-page-container [style*="color: #1E40AF"],
html[data-theme="dark"] .mod-page-container [style*="color: rgb(30, 64, 175)"] {
  color: #60A5FA !important;
}

/* ==========================================================================
   21. RENDERIZADO SUAVE DE SPRITES/LOGOS, PÁGINA 404 Y PÁGINAS ESTÁTICAS
   ========================================================================== */
.sprite,
.sprite_m,
.sprite_sm,
.sprite_i,
.com_sprite,
#logo-img {
  image-rendering: auto !important;
}

.sprite {
  background-image: url(/images/post_icons1.png?v=3) !important;
}

html[data-theme="dark"] .breadcrumbs,
html[data-theme="dark"] .identi-notfound-breadcrumb,
html[data-theme="dark"] .user-notfound-breadcrumbs,
html[data-theme="dark"] .identi-breadcrumbs {
  background: linear-gradient(180deg, #161B26 0%, #11151E 100%) !important;
  border: 1px solid #262E3E !important;
  border-radius: 5px !important;
  color: #CBD5E1 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35) !important;
}

html[data-theme="dark"] .breadcrumbs a,
html[data-theme="dark"] .identi-notfound-breadcrumb a,
html[data-theme="dark"] .user-notfound-breadcrumbs a,
html[data-theme="dark"] .identi-breadcrumbs a {
  color: #60A5FA !important;
}

html[data-theme="dark"] .identi-notfound-crumb-sep,
html[data-theme="dark"] .user-notfound-crumb-sep,
html[data-theme="dark"] .identi-breadcrumb-sep {
  color: #64748B !important;
}

html[data-theme="dark"] .identi-notfound-crumb-error,
html[data-theme="dark"] .user-notfound-crumb-error {
  color: #F87171 !important;
}

html[data-theme="dark"] .identi-breadcrumb-current {
  color: #F8FAFC !important;
}

html[data-theme="dark"] .identi-notfound-box,
html[data-theme="dark"] .user-notfound-box {
  background: linear-gradient(180deg, #151922 0%, #0F131A 100%) !important;
  border: 1px solid #262E3E !important;
  border-radius: 6px !important;
  color: #E2E8F0 !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5) !important;
}

html[data-theme="dark"] .identi-notfound-num {
  color: #3B82F6 !important;
  text-shadow: 0 4px 16px rgba(59, 130, 246, 0.35) !important;
}

html[data-theme="dark"] .identi-notfound-title,
html[data-theme="dark"] .user-notfound-title {
  color: #F8FAFC !important;
}

html[data-theme="dark"] .identi-notfound-desc,
html[data-theme="dark"] .user-notfound-desc {
  color: #94A3B8 !important;
}

html[data-theme="dark"] .identi-notfound-btn-primary,
html[data-theme="dark"] .user-notfound-btn-primary {
  background: linear-gradient(180deg, #2563EB 0%, #1D4ED8 100%) !important;
  border: 1px solid #60A5FA !important;
  color: #FFFFFF !important;
  border-radius: 5px !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35) !important;
}

html[data-theme="dark"] .identi-notfound-btn-secondary,
html[data-theme="dark"] .user-notfound-btn-secondary {
  background: linear-gradient(180deg, #1E2534 0%, #141923 100%) !important;
  border: 1px solid #2E384D !important;
  color: #93C5FD !important;
  border-radius: 5px !important;
}

html[data-theme="dark"] .identi-notfound-btn-secondary:hover,
html[data-theme="dark"] .user-notfound-btn-secondary:hover {
  background: #252E42 !important;
  border-color: #475569 !important;
  color: #F8FAFC !important;
}

html[data-theme="dark"] .identi-card,
html[data-theme="dark"] .identi-static-box {
  background: linear-gradient(180deg, #151922 0%, #10141C 100%) !important;
  border: 1px solid #262E3E !important;
  border-radius: 6px !important;
  color: #E2E8F0 !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45) !important;
}

html[data-theme="dark"] .identi-page-title,
html[data-theme="dark"] .identi-doc-title,
html[data-theme="dark"] .identi-static-subtitle {
  color: #60A5FA !important;
  border-bottom-color: #262E3E !important;
}

html[data-theme="dark"] .identi-static-content,
html[data-theme="dark"] .identi-static-lead,
html[data-theme="dark"] .identi-doc-body,
html[data-theme="dark"] .identi-tutorial-content {
  color: #CBD5E1 !important;
}

html[data-theme="dark"] .identi-static-list-gray {
  color: #94A3B8 !important;
}

html[data-theme="dark"] .identi-static-info-box,
html[data-theme="dark"] .identi-synopsis-box,
html[data-theme="dark"] .identi-post-meta-bar,
html[data-theme="dark"] .identi-generator-box,
html[data-theme="dark"] .identi-jd-box {
  background: #0D1119 !important;
  border-color: #262E3E !important;
  color: #CBD5E1 !important;
}

html[data-theme="dark"] .identi-nav-tabs {
  border-bottom-color: #262E3E !important;
}

html[data-theme="dark"] .identi-nav-tab {
  background: #141923 !important;
  border: 1px solid #262E3E !important;
  color: #94A3B8 !important;
}

html[data-theme="dark"] .identi-nav-tab.active {
  background: linear-gradient(180deg, #2563EB 0%, #1D4ED8 100%) !important;
  border-color: #60A5FA !important;
  color: #FFFFFF !important;
}

html[data-theme="dark"] .identi-tutorial-card {
  background: #121722 !important;
  border: 1px solid #262E3E !important;
  color: #E2E8F0 !important;
}

html[data-theme="dark"] .identi-tutorial-card-title {
  color: #60A5FA !important;
}

html[data-theme="dark"] .identi-tutorial-card-desc {
  color: #94A3B8 !important;
}

html[data-theme="dark"] .identi-tutorial-card-badge,
html[data-theme="dark"] .identi-tag-badge {
  background: #1A2232 !important;
  border: 1px solid #2E3B52 !important;
  color: #93C5FD !important;
}

html[data-theme="dark"] .identi-notice-info {
  background: rgba(59, 130, 246, 0.14) !important;
  border-color: rgba(59, 130, 246, 0.35) !important;
  color: #93C5FD !important;
}

html[data-theme="dark"] .identi-notice-warn {
  background: rgba(245, 158, 11, 0.14) !important;
  border-color: rgba(245, 158, 11, 0.35) !important;
  color: #FDE68A !important;
}

html[data-theme="dark"] .identi-notice-success {
  background: rgba(16, 185, 129, 0.14) !important;
  border-color: rgba(16, 185, 129, 0.35) !important;
  color: #6EE7B7 !important;
}

html[data-theme="dark"] .identi-snippet-wrap {
  border-color: #262E3E !important;
}

html[data-theme="dark"] .identi-snippet-header {
  background: #161C28 !important;
  border-bottom-color: #262E3E !important;
  color: #93C5FD !important;
}

html[data-theme="dark"] .identi-snippet-pre {
  background: #090C12 !important;
  color: #E2E8F0 !important;
}

html[data-theme="dark"] .identi-sidebar-back-btn {
  background: linear-gradient(180deg, #1E2534 0%, #141923 100%) !important;
  border: 1px solid #2E384D !important;
  color: #93C5FD !important;
}


