/**
 * =============================================================
 * ARCHIVO: /assets/css/main.css
 * Responsabilidad: Sistema de diseÃ±o global de Voki (Variables CSS,
 * Botones minimalistas, Marcos UGC, Visor Multimedia, Editor y Perfil).
 * =============================================================
 */

html {
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  overflow-x: clip;
  scrollbar-gutter: stable;
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body:not(.voki-has-custom-bg) {
  background-color: var(--voki-bg) !important;
}

body {
  color: var(--voki-text);
  padding-bottom: calc(75px + env(safe-area-inset-bottom, 0px)) !important;
  overscroll-behavior-y: contain;
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
  min-height: 100dvh;
  box-sizing: border-box;
}

/* Evitar desplazamiento horizontal (shake) al abrir modales Bootstrap */
body.modal-open:not(.voki-desktop-shell-active) {
  padding-right: 0 !important;
}
body.modal-open .sticky-top,
body.modal-open .fixed-top,
body.modal-open .fixed-bottom {
  padding-right: 0 !important;
}

/* ================= BLOQUEO DE VIEWPORT EXCLUSIVAMENTE EN SALA DE CHAT ACTIVA ================= */
html.chat-room-open,
body.chat-room-open {
  overflow: hidden !important;
  overscroll-behavior: none !important;
}

#chatRoomOverlay {
  position: fixed !important;
  top: var(--voki-viewport-top, 0px) !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  width: 100vw !important;
  height: 100% !important;
  height: 100dvh !important;
  height: var(--voki-viewport-height, 100dvh) !important;
  max-height: var(--voki-viewport-height, 100dvh) !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  z-index: 1050 !important;
  overscroll-behavior: none !important;
  background: #0e1117 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

#chatRoomContainer {
  width: 100% !important;
  max-width: 680px !important;
  height: 100% !important;
  height: 100dvh !important;
  height: var(--voki-viewport-height, 100dvh) !important;
  max-height: var(--voki-viewport-height, 100dvh) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  box-sizing: border-box !important;
  overscroll-behavior: none !important;
  background-color: var(--voki-bg, #0e1117);
  margin: 0 auto !important;
}

#chatRoomContainer > header {
  flex: 0 0 auto !important;
  height: auto !important;
  min-height: 52px !important;
  position: relative !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 60 !important;
  flex-shrink: 0 !important;
  overflow: visible !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  padding: 8px 10px 4px 10px !important;
  padding-top: calc(8px + env(safe-area-inset-top, 0px)) !important;
  box-sizing: border-box !important;
  pointer-events: none;
}
#chatRoomContainer > header > * {
  pointer-events: auto;
}

#chatMessageList {
  flex: 1 1 0px !important;
  min-height: 0 !important;
  height: auto !important;
  overflow-y: auto !important;
  overscroll-behavior-y: contain !important;
  background: transparent !important;
  background-color: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

#chatRoomFooter {
  flex: 0 0 auto !important;
  flex-shrink: 0 !important;
  min-height: 52px;
  max-height: 120px !important;
  overflow: visible !important;
  position: relative !important;
  z-index: 1060 !important;
  background: transparent !important;
  border: none !important;
  border-top: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 4px 10px calc(8px + env(safe-area-inset-bottom, 0px)) 10px !important;
  box-sizing: border-box !important;
  pointer-events: none;
}
#chatRoomFooter > * {
  pointer-events: auto;
}

.telegram-input-capsule {
  background: rgba(26, 31, 38, 0.94) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 24px !important;
  padding: 3px 6px !important;
  min-height: 42px;
  max-height: 108px;
  box-sizing: border-box;
  gap: 4px;
  display: flex;
  align-items: flex-end;
  flex-grow: 1;
  min-width: 0;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45) !important;
}

.telegram-circle-btn {
  box-shadow: 0 4px 16px rgba(42, 171, 238, 0.45) !important;
}

/* Contact Quick Actions Bar */
.contact-quick-actions-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  padding: 4px 8px !important;
  overflow-x: auto !important;
  scrollbar-width: none !important;
  -webkit-overflow-scrolling: touch !important;
  flex-wrap: nowrap !important;
}
.contact-quick-actions-bar::-webkit-scrollbar {
  display: none !important;
}
.contact-quick-action {
  flex: 0 0 auto !important;
  min-width: 50px !important;
  max-width: 62px !important;
  text-align: center !important;
}
.contact-quick-action .rounded-circle {
  width: 42px !important;
  height: 42px !important;
  margin: 0 auto !important;
}
.contact-quick-action span {
  font-size: 0.68rem !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  display: block !important;
  max-width: 100% !important;
}

/* Chat Attach Floating Menu */
.chat-attach-float-menu {
  position: absolute !important;
  bottom: calc(100% + 14px) !important;
  right: 0 !important;
  left: auto !important;
  width: max-content !important;
  min-width: 195px !important;
  max-width: 220px !important;
  background: rgba(18, 18, 24, 0.96) !important;
  backdrop-filter: blur(28px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 20px !important;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
  z-index: 1090 !important;
  animation: attachMenuIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
  transform-origin: bottom right !important;
  overflow: hidden !important;
  user-select: none !important;
  padding: 6px !important;
}

.chat-attach-item {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 7px 10px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  border-radius: 14px !important;
  background: transparent !important;
  border: none !important;
  color: #ffffff !important;
  cursor: pointer !important;
  transition: background-color 0.15s ease, transform 0.15s ease !important;
  outline: none !important;
}
.chat-attach-item:hover,
.chat-attach-item:focus,
.chat-attach-item:active {
  background: rgba(255, 255, 255, 0.08) !important;
  transform: translateX(3px) !important;
}

/* Chat Emoji Picker */
.chat-emoji-picker {
  position: absolute !important;
  bottom: calc(100% + 14px) !important;
  left: 0 !important;
  width: 290px !important;
  max-width: calc(100vw - 24px) !important;
  background: rgba(18, 18, 24, 0.95) !important;
  backdrop-filter: blur(28px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 20px !important;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
  z-index: 1090 !important;
  animation: attachMenuIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
  transform-origin: bottom left !important;
  overflow: hidden !important;
  user-select: none !important;
}
.emoji-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.emoji-btn-item {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.emoji-btn-item:hover, .emoji-btn-item:active {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.18);
}
.btn-emoji-tab {
  font-size: 1.1rem;
  border-radius: 8px;
  opacity: 0.6;
  transition: opacity 0.15s, background 0.15s;
}
.btn-emoji-tab.active, .btn-emoji-tab:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
}

.btn-capsule-icon {
  background: transparent !important;
  border: none !important;
  color: #8e9aa8 !important;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer;
  padding: 0 !important;
  font-size: 1.25rem !important;
  transition: color 0.15s ease, background 0.15s ease, transform 0.15s ease;
  flex-shrink: 0 !important;
  outline: none !important;
}

.btn-capsule-icon:hover, .btn-capsule-icon:active, .btn-capsule-icon.active {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

#btnChatAttachMenuToggle i {
  transform: rotate(-45deg);
  display: inline-block;
  font-size: 1.2rem;
  transition: transform 0.2s ease;
}

#btnChatAttachMenuToggle.active i {
  transform: rotate(0deg);
  color: #2aabee;
}

.telegram-editor-wrapper {
  min-height: 24px;
  padding: 2px 2px;
  flex-grow: 1;
  min-width: 0;
  position: relative;
}

.telegram-circle-btn {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  border-radius: 50% !important;
  background: #2aabee !important;
  border: none !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.25rem !important;
  box-shadow: 0 2px 10px rgba(42, 171, 238, 0.35) !important;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
  flex-shrink: 0 !important;
  margin-bottom: 0px;
  outline: none !important;
}

.telegram-circle-btn:active {
  transform: scale(0.92) !important;
}

.telegram-circle-btn.is-voice-mode {
  background: #2aabee !important;
}

.telegram-circle-btn.is-send-mode {
  background: #2aabee !important;
}

.telegram-circle-btn.is-send-mode i {
  transform: translateX(1px);
}

#chatInput {
  min-height: 24px;
  height: auto;
  max-height: 96px !important;
  border-radius: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #ffffff !important;
  font-size: 0.95rem;
  line-height: 1.35;
  padding: 6px 2px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
  width: 100%;
  word-break: break-word;
  white-space: pre-wrap;
  outline: none !important;
}

#chatInput:focus {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

#chatInput:empty::before,
#chatInput[data-empty="true"]::before {
  content: attr(data-placeholder);
  color: #6c7888 !important;
  pointer-events: none;
  display: inline-block;
}

.chat-input-mention-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1.5px 7px;
  margin: 0 2px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.88em;
  user-select: none;
  vertical-align: baseline;
  line-height: 1.35;
  cursor: pointer;
  white-space: nowrap;
}

.chat-input-mention-pill.mention-user {
  background: rgba(88, 101, 242, 0.28) !important;
  color: #c4b5fd !important;
  border: 1px solid rgba(167, 139, 250, 0.35) !important;
}

.chat-input-mention-pill.mention-user:hover {
  background: rgba(88, 101, 242, 0.45) !important;
  color: #ffffff !important;
}

.chat-input-mention-pill.mention-role {
  background: rgba(59, 130, 246, 0.28) !important;
  color: #93c5fd !important;
  border: 1px solid rgba(96, 165, 250, 0.35) !important;
}

.chat-input-mention-pill.mention-role:hover {
  background: rgba(59, 130, 246, 0.45) !important;
}

.chat-input-mention-pill.mention-special {
  background: rgba(234, 179, 8, 0.28) !important;
  color: #fde047 !important;
  border: 1px solid rgba(250, 204, 21, 0.35) !important;
}

.chat-input-mention-pill.mention-special:hover {
  background: rgba(234, 179, 8, 0.45) !important;
}

body.chat-room-open .modal-backdrop,
.chat-modal-backdrop {
  z-index: 12040 !important;
}

#modalChatContactInfo {
  z-index: 12050 !important;
}

#modalChatStreaks {
  z-index: 12100 !important;
}

#modalChatMedia {
  z-index: 12150 !important;
}

#chatActionModal {
  z-index: 12200 !important;
}

#chatDeleteVerifyModal {
  z-index: 12250 !important;
}

#chatReportModal,
#vokiUnifiedReportModal {
  z-index: 12300 !important;
}

/* ================= SOPORTE GLOBAL PARA FONDOS PERSONALIZADOS GPU-ACCELERATED ================= */
#vokiPageBgFixedLayer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -999;
  pointer-events: none;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  will-change: transform;
}

html.voki-has-custom-bg,
body.voki-has-custom-bg,
body.voki-has-custom-bg.bg-dark,
body.voki-has-custom-bg.voki-app-body,
main.voki-has-custom-bg {
  background-color: transparent !important;
  background-image: none !important;
  background-attachment: scroll !important;
}

main {
  min-height: calc(100dvh - 120px);
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

main.channel-view-main {
  overflow: visible !important;
  overflow-x: visible !important;
}

/* ================= BOTONES Y NAVEGACIÃ“N MINIMALISTA ================= */
.btn-minimal {
  background-color: var(--voki-surface);
  color: var(--voki-text);
  border: none;
  border-radius: 10px;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background-color 0.15s ease, opacity 0.15s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-minimal:hover, .btn-minimal:active {
  background-color: var(--voki-surface-hover);
  color: var(--voki-text);
}

.btn-minimal-primary {
  background-color: var(--voki-accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 6px 18px;
  font-size: 0.85rem;
  font-weight: 600;
}
.btn-minimal-primary:disabled {
  opacity: 0.5;
}

.btn-icon-minimal {
  background: transparent;
  color: var(--voki-text) !important;
  border: none;
  padding: 0;
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  aspect-ratio: 1 / 1;
  border-radius: 50% !important;
  text-decoration: none;
  font-weight: 400 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-sizing: border-box;
}
.btn-icon-minimal:hover, .btn-icon-minimal:active {
  background-color: var(--voki-surface);
  color: var(--voki-text) !important;
}

/* Evitar que botones circulares se aplasten u ovalen */
button.rounded-circle, .btn.rounded-circle, a.btn.rounded-circle, .btn-circle {
  aspect-ratio: 1 / 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  border-radius: 50% !important;
}

/* PestaÃ±as del Feed y del Perfil */
.btn-feed, .btn-profile-tab {
  flex: 1 1 0;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--voki-muted);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 11px 0;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.btn-feed:hover, .btn-feed.active,
.btn-profile-tab:hover, .btn-profile-tab.active {
  color: var(--voki-text) !important;
  background: transparent !important;
  border-bottom: 2px solid var(--voki-text) !important;
}

/* ================= SISTEMA DE MARCOS UGC TRANSPARENTES ================= */
.voki-ugc-avatar {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  isolation: isolate; /* Aislamiento estricto del contexto de apilamiento para evitar que z-index interno pase sobre menús */
  overflow: visible !important;
}
.voki-ugc-avatar .ugc-avatar-base {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}
.voki-ugc-avatar .ugc-frame-layer {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 124%;
  height: 124%;
  max-width: none !important;
  max-height: none !important;
  transform: translate(-50%, -50%);
  object-fit: contain;
  pointer-events: none;
}
.voki-ugc-avatar.frame-pos-front .ugc-frame-layer { z-index: 3; }
.voki-ugc-avatar.frame-pos-back .ugc-frame-layer { z-index: 1; }

/* ================= COMENTARIOS COMPACTOS Y RESPONSIVOS ================= */
.voki-comment-row {
  transition: background-color 0.15s ease;
  border-radius: 8px;
  padding-top: 4px;
  padding-bottom: 4px;
}
.voki-comment-row:active {
  background-color: rgba(255, 255, 255, 0.02);
}
.voki-comment-row .comment-text {
  color: var(--voki-text);
  font-size: 0.88rem;
  line-height: 1.35;
  word-break: break-word;
}
.voki-comment-row .btn-reply-comment,
.voki-comment-row .btn-report-comment {
  transition: opacity 0.15s ease, color 0.15s ease;
  user-select: none;
}
.voki-comment-row .btn-reply-comment:hover,
.voki-comment-row .btn-report-comment:hover {
  opacity: 1;
  color: #fff !important;
}
.voki-comment-row .btn-like-comment {
  user-select: none;
  min-width: 26px;
  padding-top: 2px;
}
.voki-comment-row .btn-like-comment i {
  font-size: 0.85rem;
  transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.voki-comment-row .btn-like-comment:active i {
  transform: scale(1.3);
}
.voki-comment-row .btn-like-comment .comment-likes {
  font-size: 0.68rem;
  line-height: 1;
}

/* ================= ELEVACIÃ“N Y CONTENCIÃ“N DE CAPAS (Z-INDEX) ================= */
#vokiBottomControls {
  position: relative;
  z-index: 1030 !important;
}

.fixed-bottom,
.voki-bottom-navbar {
  z-index: 1030 !important;
  padding-bottom: env(safe-area-inset-bottom, 0px) !important;
}

header.sticky-top,
.sticky-top:not(#profileTabsBar):not(#feedTypeSelectorBar):not(#settingsStepperBar) {
  z-index: 1020 !important;
}

#feedTypeSelectorBar,
#settingsStepperBar {
  position: relative;
  z-index: 1015 !important;
}

#profileTabsBar {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 49px !important;
  z-index: 1015 !important;
}
:root {
  --bs-offcanvas-zindex: 10055;
  --bs-backdrop-zindex: 10050;
  --voki-oc-zindex: 10055;
  --voki-oc-backdrop-zindex: 10050;
  --voki-modal-zindex: 10510;
  --voki-modal-backdrop-zindex: 10500;
}

/* Prevención de salto de layout y pérdida de header.sticky-top al abrir Offcanvas o Modales */
body:not(.chat-room-open):not(.voki-match-active) {
  overflow-x: clip !important;
  overflow-y: visible !important;
  padding-right: 0 !important;
}

header.sticky-top,
.sticky-top,
.fixed-bottom,
.voki-bottom-navbar,
#vokiBottomControls {
  padding-right: 0 !important;
  margin-right: 0 !important;
}

.dropdown-menu {
  z-index: 1040 !important;
}

/* Sistema de Pesos de Offcanvas (1 a 10: 10050 - 10240) */
.offcanvas-backdrop,
.offcanvas-backdrop.fade.show {
  z-index: var(--voki-oc-backdrop-zindex, 10050) !important;
}
.offcanvas,
.offcanvas.show,
.offcanvas.offcanvas-bottom,
.offcanvas.offcanvas-start,
.offcanvas.offcanvas-end,
#offcanvasCreate,
#offcanvasUserMenu,
#offcanvasNotifications,
#offcanvasComments,
#offcanvasCreatePost,
#offcanvasPostActions,
#offcanvasCommentActions {
  z-index: var(--voki-oc-zindex, 10055) !important;
  pointer-events: auto !important;
}

.offcanvas.show,
.offcanvas.showing,
.offcanvas.hiding {
  visibility: visible !important;
}

.offcanvas.offcanvas-bottom.show:not(.hiding),
.offcanvas.offcanvas-bottom.showing {
  visibility: visible !important;
}

.offcanvas[data-voki-weight="1"]  { --voki-oc-zindex: 10055; }
.offcanvas[data-voki-weight="2"]  { --voki-oc-zindex: 10075; }
.offcanvas[data-voki-weight="3"]  { --voki-oc-zindex: 10095; }
.offcanvas[data-voki-weight="4"]  { --voki-oc-zindex: 10115; }
.offcanvas[data-voki-weight="5"]  { --voki-oc-zindex: 10135; }
.offcanvas[data-voki-weight="6"]  { --voki-oc-zindex: 10155; }
.offcanvas[data-voki-weight="7"]  { --voki-oc-zindex: 10175; }
.offcanvas[data-voki-weight="8"]  { --voki-oc-zindex: 10195; }
.offcanvas[data-voki-weight="9"]  { --voki-oc-zindex: 10215; }
.offcanvas[data-voki-weight="10"] { --voki-oc-zindex: 10235; }

/* Estética mejorada para hojas de acción inferiores (3 puntos, menús contextuales) */
#offcanvasPostActions,
#offcanvasExternalUserActions,
#offcanvasMemberActions,
#offcanvasCommentActions {
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  background: rgba(20, 21, 28, 0.96) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.65) !important;
}

/* Editor de publicación a pantalla completa únicamente en móvil (< 768px) */
@media (max-width: 767.98px) {
  #offcanvasCreatePost {
    top: 0 !important;
    bottom: 0 !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    border-top: 0 !important;
  }
}

/* Menú flotante en arco para creación rápida (#offcanvasCreate) */
#offcanvasCreate.voki-create-floating-menu {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  max-width: none !important;
  height: 100dvh !important;
  max-height: none !important;
  margin: 0 !important;
  background: rgba(5, 6, 10, 0.62) !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: none !important;
  opacity: 0;
  transition: opacity 0.24s ease !important;
  display: flex !important;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  overflow: visible !important;
}

#offcanvasCreate.voki-create-floating-menu.showing,
#offcanvasCreate.voki-create-floating-menu.show:not(.hiding) {
  opacity: 1;
}

#offcanvasCreate.voki-create-floating-menu.hiding {
  opacity: 0;
}

#offcanvasCreate.voki-create-floating-menu .voki-create-floating-dismiss {
  position: absolute;
  inset: 0;
  z-index: 1;
  cursor: pointer;
}

#offcanvasCreate.voki-create-floating-menu .voki-create-floating-stage {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 420px;
  padding: 0 14px calc(12px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

#offcanvasCreate.voki-create-floating-menu .voki-create-arc {
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 24px;
  pointer-events: none;
}

#offcanvasCreate.voki-create-floating-menu .voki-create-arc-item {
  --arc-y: 0px;
  --origin-x: 0%;
  --stagger-in: 0ms;
  --stagger-out: 0ms;
  flex: 1 1 0;
  max-width: 92px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: transparent !important;
  border: 0 !important;
  padding: 0;
  text-decoration: none !important;
  cursor: pointer;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  opacity: 0;
  transform: translate3d(var(--origin-x), 88px, 0) scale(0.2);
  transform-origin: center center;
  will-change: transform, opacity;
  transition: transform 0.38s cubic-bezier(0.2, 1.28, 0.32, 1), opacity 0.22s ease;
  transition-delay: var(--stagger-in);
}

#offcanvasCreate.voki-create-floating-menu .voki-create-tone-post {
  --origin-x: 155%;
  --stagger-in: 65ms;
  --stagger-out: 0ms;
}

#offcanvasCreate.voki-create-floating-menu .voki-create-tone-chat {
  --origin-x: 52%;
  --stagger-in: 15ms;
  --stagger-out: 25ms;
}

#offcanvasCreate.voki-create-floating-menu .voki-create-tone-community {
  --origin-x: -52%;
  --stagger-in: 15ms;
  --stagger-out: 25ms;
}

#offcanvasCreate.voki-create-floating-menu .voki-create-tone-ugc {
  --origin-x: -155%;
  --stagger-in: 65ms;
  --stagger-out: 0ms;
}

#offcanvasCreate.voki-create-floating-menu .voki-create-arc-inner {
  --arc-y: -22px;
}

#offcanvasCreate.voki-create-floating-menu.showing .voki-create-arc-item,
#offcanvasCreate.voki-create-floating-menu.show:not(.hiding) .voki-create-arc-item {
  opacity: 1;
  transform: translate3d(0, var(--arc-y), 0) scale(1);
}

#offcanvasCreate.voki-create-floating-menu.hiding .voki-create-arc-item {
  opacity: 0;
  transform: translate3d(var(--origin-x), 88px, 0) scale(0.2);
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.7, 0.2), opacity 0.18s ease;
  transition-delay: var(--stagger-out);
}

#offcanvasCreate.voki-create-floating-menu .voki-create-arc-squircle {
  width: 58px;
  height: 58px;
  border-radius: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff !important;
  font-size: 1.6rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.26);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

#offcanvasCreate.voki-create-floating-menu .voki-create-arc-item:hover .voki-create-arc-squircle {
  transform: translateY(-3px) scale(1.06);
}

#offcanvasCreate.voki-create-floating-menu .voki-create-arc-item:active .voki-create-arc-squircle {
  transform: scale(0.92);
}

#offcanvasCreate.voki-create-floating-menu .voki-create-tone-post .voki-create-arc-squircle {
  background: linear-gradient(145deg, #a879ff 0%, #8249f5 100%) !important;
}

#offcanvasCreate.voki-create-floating-menu .voki-create-tone-chat .voki-create-arc-squircle {
  background: linear-gradient(145deg, #65d381 0%, #3cb35c 100%) !important;
}

#offcanvasCreate.voki-create-floating-menu .voki-create-tone-community .voki-create-arc-squircle {
  background: linear-gradient(145deg, #54c0c8 0%, #2f96a0 100%) !important;
}

#offcanvasCreate.voki-create-floating-menu .voki-create-tone-ugc .voki-create-arc-squircle {
  background: linear-gradient(145deg, #62a7ff 0%, #3a80f6 100%) !important;
}

#offcanvasCreate.voki-create-floating-menu .voki-create-arc-label {
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.15;
  color: #ffffff !important;
  text-align: center;
  white-space: nowrap;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.92);
  letter-spacing: -0.01em;
  opacity: 0;
  transition: opacity 0.18s ease 0.12s;
}

#offcanvasCreate.voki-create-floating-menu.showing .voki-create-arc-label,
#offcanvasCreate.voki-create-floating-menu.show:not(.hiding) .voki-create-arc-label {
  opacity: 1;
}

#offcanvasCreate.voki-create-floating-menu.hiding .voki-create-arc-label {
  opacity: 0;
  transition: opacity 0.1s ease 0ms;
}

#offcanvasCreate.voki-create-floating-menu .voki-create-floating-close {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(24, 28, 34, 0.85) !important;
  color: #e4e4e7 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.55);
  pointer-events: auto;
  cursor: pointer;
  opacity: 0;
  transform: rotate(-90deg) scale(0.65);
  transition: transform 0.3s cubic-bezier(0.22, 1.3, 0.36, 1), opacity 0.18s ease, background-color 0.16s ease, color 0.16s ease;
}

#offcanvasCreate.voki-create-floating-menu.showing .voki-create-floating-close,
#offcanvasCreate.voki-create-floating-menu.show:not(.hiding) .voki-create-floating-close {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

#offcanvasCreate.voki-create-floating-menu.hiding .voki-create-floating-close {
  opacity: 0;
  transform: rotate(-90deg) scale(0.65);
  transition: transform 0.18s ease, opacity 0.16s ease;
}

#offcanvasCreate.voki-create-floating-menu .voki-create-floating-close:hover {
  background: rgba(39, 44, 54, 0.95) !important;
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff !important;
  transform: scale(1.06);
}

#offcanvasCreate.voki-create-floating-menu .voki-create-floating-close:active {
  transform: scale(0.92);
}

@media (max-width: 360px) {
  #offcanvasCreate.voki-create-floating-menu .voki-create-arc-squircle {
    width: 52px;
    height: 52px;
    border-radius: 17px;
    font-size: 1.45rem;
  }

  #offcanvasCreate.voki-create-floating-menu .voki-create-arc-label {
    font-size: 0.7rem;
  }

  #offcanvasCreate.voki-create-floating-menu .voki-create-arc-inner {
    --arc-y: -18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #offcanvasCreate.voki-create-floating-menu,
  #offcanvasCreate.voki-create-floating-menu .voki-create-arc-item,
  #offcanvasCreate.voki-create-floating-menu .voki-create-arc-label,
  #offcanvasCreate.voki-create-floating-menu .voki-create-floating-close {
    transition: opacity 0.08s linear !important;
    transition-delay: 0ms !important;
  }

  #offcanvasCreate.voki-create-floating-menu .voki-create-arc-item,
  #offcanvasCreate.voki-create-floating-menu.hiding .voki-create-arc-item {
    transform: translate3d(0, var(--arc-y), 0) scale(1);
  }

  #offcanvasCreate.voki-create-floating-menu .voki-create-floating-close,
  #offcanvasCreate.voki-create-floating-menu.hiding .voki-create-floating-close {
    transform: rotate(0deg) scale(1);
  }
}

html.voki-reduce-motion #offcanvasCreate.voki-create-floating-menu,
html.voki-reduce-motion #offcanvasCreate.voki-create-floating-menu .voki-create-arc-item,
html.voki-reduce-motion #offcanvasCreate.voki-create-floating-menu .voki-create-arc-label,
html.voki-reduce-motion #offcanvasCreate.voki-create-floating-menu .voki-create-floating-close {
  transition: opacity 0.08s linear !important;
  transition-delay: 0ms !important;
}

html.voki-reduce-motion #offcanvasCreate.voki-create-floating-menu .voki-create-arc-item,
html.voki-reduce-motion #offcanvasCreate.voki-create-floating-menu.hiding .voki-create-arc-item {
  transform: translate3d(0, var(--arc-y), 0) scale(1);
}

html.voki-reduce-motion #offcanvasCreate.voki-create-floating-menu .voki-create-floating-close,
html.voki-reduce-motion #offcanvasCreate.voki-create-floating-menu.hiding .voki-create-floating-close {
  transform: rotate(0deg) scale(1);
}

.offcanvas-body,
.offcanvas-header {
  pointer-events: auto !important;
}

/* Modales Estándar (por encima de toda la cola de 10 Offcanvases) */
.modal-backdrop,
.modal-backdrop.fade.show {
  z-index: var(--voki-modal-backdrop-zindex, 10500) !important;
}
.modal,
.modal.show {
  z-index: var(--voki-modal-zindex, 10510) !important;
}

/* Drawer de usuario lateral */
.voki-drawer-link {
  transition: background-color 0.15s ease, transform 0.15s ease;
  font-size: 0.92rem;
}
.voki-drawer-link:hover, .voki-drawer-link:active {
  background-color: var(--voki-surface-hover) !important;
  color: #fff !important;
}
.drawer-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ================= PERFIL DE USUARIO ================= */
.profile-banner-box {
  height: 130px;
  background-color: var(--voki-surface);
  background-size: cover;
  background-position: center;
}
.profile-avatar-wrapper {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--voki-bg);
  padding: 3px;
  margin-top: -42px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.blurred-visitor {
  filter: blur(6px);
  -webkit-user-select: none;
  user-select: none;
  pointer-events: none;
}

/* ================= ACCIONES EN POSTS Y COMENTARIOS ================= */
.drag-handle {
  width: 42px;
  height: 5px;
  background-color: rgba(255, 255, 255, 0.28);
  border-radius: 10px;
  margin: 10px auto;
  position: relative;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  cursor: grab;
}
.drag-handle:active {
  cursor: grabbing;
  background-color: rgba(255, 255, 255, 0.48);
}
.drag-handle::before {
  content: '';
  position: absolute;
  top: -14px;
  bottom: -14px;
  left: -80px;
  right: -80px;
}
.offcanvas-bottom .offcanvas-header,
.offcanvas-bottom [data-drag-header="true"] {
  touch-action: pan-x;
  -webkit-user-select: none;
  user-select: none;
}

.post-action-btn {
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  transition: color 0.15s ease, transform 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.post-action-btn i {
  display: inline-block;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.post-action-btn.liked { color: #ff2b55 !important; }
.post-action-btn.saved { color: #ffc107 !important; }
.post-action-btn.shared { color: #0dcaf0 !important; }

@keyframes popBounce {
  0% { transform: scale(1); }
  40% { transform: scale(1.45); }
  75% { transform: scale(0.88); }
  100% { transform: scale(1); }
}
.anim-pop i {
  animation: popBounce 0.35s ease;
}

.voki-comment-input {
  background-color: var(--voki-surface) !important;
  color: var(--voki-text) !important;
  border: 1px solid var(--voki-divider) !important;
  box-shadow: none !important;
}
.voki-comment-input::placeholder {
  color: var(--voki-muted) !important;
  opacity: 1 !important;
}

/* ================= EDITOR DE PUBLICACIONES Y FONDOS ================= */
.voki-post-bg {
  background-size: cover !important;
  background-position: center !important;
  position: relative;
  overflow: hidden;
}
.voki-post-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(14, 16, 22, 0.72);
  z-index: 0;
  pointer-events: none;
}
.voki-post-bg > * {
  position: relative;
  z-index: 1;
}

/* Fondo de pantalla completa al abrir un post */
.voki-post-full-backdrop {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
  position: relative;
  min-height: calc(100dvh - 120px);
}
.voki-post-full-backdrop::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 14, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 0;
  pointer-events: none;
}
[data-bs-theme="light"] .voki-post-full-backdrop::before,
.theme-light .voki-post-full-backdrop::before {
  background: rgba(255, 255, 255, 0.45);
}
.voki-post-full-backdrop > * {
  position: relative;
  z-index: 1;
}

.voki-post-bg-glass {
  background: rgba(17, 19, 26, 0.45) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 12px;
}

#feedContainer {
  max-width: 100% !important;
  width: 100% !important;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* ================= TARJETAS DE PUBLICACIÃ“N TRANSPARENTES (PRESERVAR TEMAS Y FONDOS) ================= */
.voki-post-card,
[data-post-card-id] {
  background: transparent !important;
  background-color: transparent !important;
  border-left: 0 !important;
  border-right: 0 !important;
  border-top: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  position: relative;
  content-visibility: auto;
  contain-intrinsic-size: 1px 320px;
  max-width: 100% !important;
  width: 100% !important;
  overflow-x: hidden;
  box-sizing: border-box;
}

.voki-post-card .card-body:not(.voki-post-bg),
.voki-post-card .voki-post-body:not(.voki-post-bg),
[data-post-card-id] .card-body:not(.voki-post-bg),
[data-post-card-id] .voki-post-body:not(.voki-post-bg) {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

.voki-post-card .card-body.voki-post-bg,
.voki-post-card .voki-post-body.voki-post-bg,
[data-post-card-id] .card-body.voki-post-bg,
[data-post-card-id] .voki-post-body.voki-post-bg {
  background-color: transparent !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  box-shadow: none !important;
}

@media (hover: hover) {
  .voki-post-card:hover {
    background-color: rgba(255, 255, 255, 0.02) !important;
  }
}

.color-swatch-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.4);
  cursor: pointer;
  padding: 0;
}
.post-config-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 1080;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.post-config-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}
.post-config-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: #111318;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px 20px 0 0;
  z-index: 1090;
  max-height: 85vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.post-config-sheet.show {
  transform: translateY(0);
}

#vokiImageCropperModal,
.voki-cropper-overlay {
  z-index: 999999 !important;
  position: fixed !important;
}
.voki-cropper-card {
  z-index: 1000000 !important;
}
.bg-preset-thumb {
  width: 58px;
  height: 58px;
  border-radius: 10px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
}
.bg-preset-thumb.active {
  border-color: var(--voki-accent);
}

/* ================= VISUALIZADOR MULTIMEDIA FULLSCREEN (MOBILE-FIRST) ================= */
.voki-media-viewer {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.96);
  z-index: 90000 !important;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  -webkit-user-select: none;
  user-select: none;
  touch-action: none;
  transition: background-color 0.2s ease;
}

/* ================= ESTILOS SELECCIÓN ARCHIVOS Y MULTIMEDIA ================= */
.media-timeline-item {
  position: relative;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.media-timeline-thumb.is-selected {
  outline: 2px solid #7c3aed !important;
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.5) !important;
}
.media-timeline-thumb.is-selected::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(124, 58, 237, 0.3);
  pointer-events: none;
  z-index: 2;
}
.media-timeline-card.is-selected {
  border-color: #7c3aed !important;
  background: rgba(124, 58, 237, 0.15) !important;
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.35) !important;
}
#modalChatMediaBody .voki-voice-message {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
}
#modalChatMediaBody .voice-body {
  max-width: none !important;
  flex-grow: 1 !important;
}

.viewer-top-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 2070;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.35) 65%, transparent 100%);
  padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 18px;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.viewer-bottom-hud {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 2070;
  display: flex;
  flex-direction: column;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.55) 70%, transparent 100%);
  padding-bottom: env(safe-area-inset-bottom, 8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.voki-media-viewer.viewer-hud-hidden .viewer-top-bar {
  opacity: 0;
  transform: translateY(-16px);
  pointer-events: none;
}

.voki-media-viewer.viewer-hud-hidden .viewer-bottom-hud {
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
}
.voki-media-viewer.viewer-hud-hidden .viewer-nav-arrow {
  opacity: 0.4;
  pointer-events: auto;
}

.viewer-floating-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background-color: rgba(26, 26, 32, 0.92);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.viewer-floating-btn:hover {
  background-color: rgba(42, 42, 50, 0.95);
  color: #fff;
}
.viewer-floating-btn:active {
  transform: scale(0.92);
}
.viewer-floating-btn.active-tool {
  background-color: rgba(13, 110, 253, 0.92);
  box-shadow: 0 2px 12px rgba(13, 110, 253, 0.45);
}

#viewerCloseBtn {
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  background-color: rgba(18, 18, 22, 0.92) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4) !important;
  color: #ffffff;
  outline: none !important;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
#viewerCloseBtn:hover {
  background-color: rgba(30, 30, 36, 0.96) !important;
  color: #ffffff;
}
#viewerCloseBtn:active {
  transform: scale(0.9);
  background-color: rgba(10, 10, 14, 0.98) !important;
}

.viewer-pill-btn {
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background-color: rgba(26, 26, 32, 0.92);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.viewer-pill-btn:active {
  transform: scale(0.93);
  background-color: rgba(255, 255, 255, 0.2);
}

.viewer-play-btn {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0d6efd, #2563eb);
  color: #fff;
  border: none;
  box-shadow: 0 4px 16px rgba(13, 110, 253, 0.45);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease;
}
.viewer-play-btn:active {
  transform: scale(0.92);
}

.viewer-counter-pill {
  background-color: rgba(26, 26, 32, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  color: #f8f9fa;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  letter-spacing: 0.03em;
}

.viewer-zoom-badge {
  position: absolute;
  top: 76px;
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  z-index: 2075;
  background-color: rgba(15, 15, 20, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.viewer-zoom-badge.show {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.viewer-stage {
  flex: 1;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  touch-action: none;
}

.viewer-stage-loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
}

.viewer-slide-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
  transform-origin: center center;
}

.viewer-anim-open {
  animation: vokiViewerZoomIn 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
.viewer-anim-fade {
  animation: vokiViewerFade 0.2s ease;
}
.viewer-anim-slide-left {
  animation: vokiViewerSlideLeft 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}
.viewer-anim-slide-right {
  animation: vokiViewerSlideRight 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes vokiViewerZoomIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes vokiViewerFade {
  from { opacity: 0.35; }
  to { opacity: 1; }
}
@keyframes vokiViewerSlideLeft {
  from { opacity: 0.5; transform: translateX(48px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes vokiViewerSlideRight {
  from { opacity: 0.5; transform: translateX(-48px); }
  to { opacity: 1; transform: translateX(0); }
}

.viewer-media-content {
  max-width: 100vw;
  max-height: 84vh;
  object-fit: contain;
  pointer-events: none;
  -webkit-user-drag: none;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.viewer-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2085;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(22, 22, 28, 0.92);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s ease, background-color 0.15s ease, opacity 0.2s ease;
}
.viewer-nav-arrow i {
  font-size: 1.4rem;
  line-height: 1;
  pointer-events: none;
}
.viewer-nav-prev { left: 16px; }
.viewer-nav-next { right: 16px; }

.viewer-nav-arrow:hover {
  background-color: rgba(36, 36, 44, 0.9);
  color: #fff;
  opacity: 1 !important;
}
.viewer-nav-arrow:active {
  transform: translateY(-50%) scale(0.88);
  background-color: rgba(10, 10, 14, 0.95);
}

@media (max-width: 576px) {
  .viewer-nav-arrow {
    width: 40px;
    height: 40px;
    opacity: 0.85;
  }
  .viewer-nav-arrow i {
    font-size: 1.25rem;
  }
  .viewer-nav-prev { left: 10px; }
  .viewer-nav-next { right: 10px; }
}

.viewer-bottom-controls {
  padding: 12px 18px 10px;
}

.viewer-range-slider {
  height: 6px;
  cursor: pointer;
}

/* Indicadores de doble toque (-10s / +10s) */
.viewer-seek-ripple {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2068;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  pointer-events: none;
}
.viewer-seek-left { left: 10%; }
.viewer-seek-right { right: 10%; }
.viewer-seek-ripple-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
  font-size: 0.78rem;
  font-weight: 700;
}
.viewer-seek-ripple.animate {
  animation: vokiSeekPulse 0.52s ease-out forwards;
}
@keyframes vokiSeekPulse {
  0% { opacity: 0; transform: translateY(-50%) scale(0.7); }
  35% { opacity: 1; transform: translateY(-50%) scale(1.05); }
  100% { opacity: 0; transform: translateY(-50%) scale(1.2); }
}

/* Tira de miniaturas en el visor */
.viewer-thumb-strip {
  display: flex;
  align-items: center;
  justify-content: safe center;
  gap: 8px;
  padding: 8px 16px 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.viewer-thumb-strip::-webkit-scrollbar {
  display: none;
}
.viewer-thumb-item {
  position: relative;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: #141418;
  padding: 0;
  opacity: 0.55;
  transition: all 0.2s ease;
}
.viewer-thumb-item.active {
  opacity: 1;
  border-color: #0d6efd;
  transform: scale(1.08);
  box-shadow: 0 0 10px rgba(13, 110, 253, 0.6);
}
.viewer-thumb-item img,
.viewer-thumb-item video,
.viewer-thumb-video-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.viewer-thumb-video-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #141418;
  position: relative;
}
.viewer-thumb-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 0.9rem;
}
.viewer-thumb-audio {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: #38bdf8;
  font-size: 1.2rem;
}

/* Tarjeta de Audio en el visor */
.viewer-audio-card {
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.75), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  min-width: 270px;
  max-width: 88vw;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}
.viewer-audio-disc {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: radial-gradient(circle, #1e293b 28%, #090d16 70%);
  border: 3px solid rgba(59, 130, 246, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 28px rgba(37, 99, 235, 0.35);
}
.viewer-audio-disc.spinning {
  animation: vokiDiscSpin 6s linear infinite;
}
@keyframes vokiDiscSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.viewer-audio-bars {
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  height: 20px;
}
.viewer-audio-bars span {
  width: 4px;
  height: 6px;
  border-radius: 2px;
  background: #3b82f6;
  transition: height 0.2s ease;
}
.viewer-audio-bars.playing span:nth-child(1) { animation: vokiEq 0.7s ease-in-out infinite alternate; }
.viewer-audio-bars.playing span:nth-child(2) { animation: vokiEq 0.5s ease-in-out 0.15s infinite alternate; }
.viewer-audio-bars.playing span:nth-child(3) { animation: vokiEq 0.65s ease-in-out 0.3s infinite alternate; }
.viewer-audio-bars.playing span:nth-child(4) { animation: vokiEq 0.55s ease-in-out 0.1s infinite alternate; }
.viewer-audio-bars.playing span:nth-child(5) { animation: vokiEq 0.75s ease-in-out 0.25s infinite alternate; }
@keyframes vokiEq {
  0% { height: 5px; opacity: 0.6; }
  100% { height: 20px; opacity: 1; }
}

/* ================= GALERÃA BENTO EN PUBLICACIONES (POST CARDS) ================= */
.voki-gallery-wrapper {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0d0d10;
  contain: layout paint;
}

.voki-bento-grid {
  display: grid;
  gap: 3px;
  width: 100%;
}

.voki-bento-item {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  cursor: pointer;
  background: #121216;
  contain: paint layout;
}

.voki-bento-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  contain: paint;
  image-rendering: auto;
}

@media (hover: hover) {
  .voki-bento-item:hover .voki-bento-media {
    transform: scale(1.015);
    transition: transform 0.22s ease-out;
  }
}

/* 1 Elemento */
.voki-bento-count-1 {
  grid-template-columns: 1fr;
}
.voki-bento-count-1 .voki-bento-item {
  aspect-ratio: 16 / 10;
  max-height: 480px;
  min-height: 180px;
  width: 100%;
}
.voki-bento-count-1 .voki-bento-item.voki-bento-audio-single {
  aspect-ratio: 16 / 6;
  min-height: 120px;
}

/* 2 Elementos: Lado a lado */
.voki-bento-count-2 {
  grid-template-columns: repeat(2, 1fr);
}
.voki-bento-count-2 .voki-bento-item {
  aspect-ratio: 4 / 5;
}

/* 3 Elementos: 1 Destacado a la izquierda + 2 apilados a la derecha */
.voki-bento-count-3 {
  grid-template-columns: 1.25fr 1fr;
  grid-template-rows: repeat(2, 1fr);
  aspect-ratio: 16 / 11;
}
.voki-bento-count-3 .voki-bento-slot-0 {
  grid-row: span 2;
}

/* 4 Elementos: CuadrÃ­cula 2x2 simÃ©trica */
.voki-bento-count-4 {
  grid-template-columns: repeat(2, 1fr);
}
.voki-bento-count-4 .voki-bento-item {
  aspect-ratio: 1 / 1;
}

/* 5+ Elementos: 2 arriba + 3 abajo */
.voki-bento-count-5 {
  grid-template-columns: repeat(6, 1fr);
}
.voki-bento-count-5 .voki-bento-slot-0,
.voki-bento-count-5 .voki-bento-slot-1 {
  grid-column: span 3;
  aspect-ratio: 4 / 3;
}
.voki-bento-count-5 .voki-bento-slot-2,
.voki-bento-count-5 .voki-bento-slot-3,
.voki-bento-count-5 .voki-bento-slot-4 {
  grid-column: span 2;
  aspect-ratio: 1 / 1;
}

/* Overlays de Video, Audio y Contador */
.voki-video-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.45) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.voki-video-play-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(14, 14, 18, 0.88);
  border: 1.5px solid rgba(255, 255, 255, 0.38);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.55);
}
.voki-media-type-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(12, 12, 16, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  letter-spacing: 0.04em;
}
.voki-audio-tile {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  min-height: 115px;
}
.voki-audio-tile-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.5);
  color: #60a5fa;
  display: flex;
  align-items: center;
  justify-content: center;
}
.voki-bento-more-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 15, 0.88);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.voki-bento-more-count {
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.1;
}
.voki-gallery-count-pill {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  background: rgba(14, 14, 18, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
}


/* ================= SELECCIÃ“N DE TEXTO TIPO APP NATIVA TWA ================= */
body, header, nav, .btn, .btn-minimal, .btn-icon-minimal, .badge, .author-name, .comment-author, 
#profileAlias, #profileUsernameHandle, #profileHeaderTopUsername, 
.profile-stat-trigger, .offcanvas-header {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.post-text, #singlePostText, #profileBioText, .comment-text, input, textarea {
  -webkit-user-select: text;
  user-select: text;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
  word-wrap: break-word !important;
  max-width: 100% !important;
}
.post-text pre, #singlePostText pre, .comment-text pre,
.post-text code, #singlePostText code, .comment-text code {
  white-space: pre-wrap !important;
  word-break: break-all !important;
  max-width: 100% !important;
  overflow-x: auto;
}

/* ================= UTILIDADES AVANZADAS PARA STUDIO ================= */
.control-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
}
.control-item {
  display: flex;
  flex-direction: column;
}

.modern-color-picker {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: rgba(255, 255, 255, 0.04);
  padding: 6px 12px 6px 6px;
  border-radius: 20px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.modern-color-picker:hover {
  background-color: rgba(255, 255, 255, 0.08);
}
.color-swatch-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  position: relative;
  overflow: hidden;
}
.color-swatch-circle input[type="color"] {
  position: absolute;
  top: -10px; left: -10px;
  width: 50px; height: 50px;
  cursor: pointer;
  border: none;
  padding: 0;
  opacity: 0; 
}
.modern-color-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--voki-text);
  pointer-events: none;
}

/* ================= CUSTOM SCROLLBARS (DISEÃ‘O FLAT DARK) ================= */

/* Soporte para ocultar el scrollbar pero permitir scroll (Clase utilitaria) */
.hide-scrollbar {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}
.hide-scrollbar::-webkit-scrollbar {
  display: none; /* Chrome, Safari and Opera */
}

/* Estilo elegante para el resto de los scrollbars de la web */
::-webkit-scrollbar {
  width: 6px;
  height: 4px; /* Scroll horizontal mÃ¡s fino */
}

::-webkit-scrollbar-track {
  background: var(--voki-bg);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15); /* Color mate muy sutil */
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

::-webkit-scrollbar-corner {
  background: transparent;
}

.input-minimal { background-color: rgba(255, 255, 255, 0.03) !important; border: 1px solid rgba(255, 255, 255, 0.1) !important; border-radius: 6px; color: var(--voki-text) !important; padding: 10px 12px; font-size: 0.9rem; box-shadow: none !important; }
.input-minimal::placeholder { color: var(--voki-muted); }
.input-minimal:focus { background-color: rgba(255, 255, 255, 0.08) !important; border-color: var(--voki-accent) !important; }
.input-minimal:disabled { opacity: 0.5; cursor: not-allowed; }

/* ==========================================================
   SELECTS & DROPDOWNS EN MODO OSCURO (CRÃTICO)
========================================================== */
:root, html, body {
  color-scheme: dark;
}

select,
.form-select,
select.input-minimal {
  color-scheme: dark !important;
  background-color: #16161c !important;
  color: #f4f4f5 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 8px !important;
  padding: 10px 36px 10px 14px !important;
  font-size: 0.9rem !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23a1a1aa' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 14px 10px !important;
  cursor: pointer;
  box-shadow: none !important;
}

select:focus,
.form-select:focus,
select.input-minimal:focus {
  border-color: var(--voki-accent, #5c16c5) !important;
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(92, 22, 197, 0.25) !important;
}

select option,
.form-select option,
select.input-minimal option {
  background-color: #181820 !important;
  color: #f4f4f5 !important;
  padding: 10px 14px !important;
}

select option:checked,
.form-select option:checked,
select.input-minimal option:checked {
  background-color: var(--voki-accent, #5c16c5) !important;
  color: #ffffff !important;
  font-weight: 600;
}

.form-check-input { background-color: rgba(255, 255, 255, 0.2); border-color: rgba(255, 255, 255, 0.3); }
.form-check-input:not(:checked) { background-color: rgba(255, 255, 255, 0.15) !important; border-color: rgba(255, 255, 255, 0.2) !important; }
.form-check-input:checked { background-color: var(--voki-accent) !important; border-color: var(--voki-accent) !important; }

/* ==========================================================
   FIJACIÃ“N PARA TECLADOS VIRTUALES (PWA MOBILE)
========================================================== */
.keyboard-sticky-toolbar {
  position: sticky;
  bottom: 0;
  z-index: 1040;
  /* background-color: var(--voki-bg); */
  /* Un poco de padding extra abajo por si el usuario tiene barra de navegaciÃ³n gestual */
  padding-bottom: env(safe-area-inset-bottom, 0px); 
}

/* Permitir que el Offcanvas respete el redimensionamiento en tiempo real */
.offcanvas-viewport-fix {
  height: var(--voki-viewport-height, 100%) !important;
  max-height: 100% !important;
}

/* ==========================================================
   VISTA DE AUTENTICACIÃ“N Y REGISTRO (AUTH)
========================================================== */
body.auth-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #080b12;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(139, 92, 246, 0.24) 0%, rgba(99, 102, 241, 0.12) 35%, transparent 70%),
    radial-gradient(circle at 85% 85%, rgba(124, 58, 237, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 15% 75%, rgba(59, 130, 246, 0.08) 0%, transparent 45%);
  background-attachment: fixed;
  overflow-x: hidden;
  overflow-y: auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  padding-bottom: 0;
}

body.auth-page::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
}

.auth-wrapper {
  position: relative;
  z-index: 1;
  max-width: 410px;
  width: 100%;
  margin: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.25rem 1.25rem;
  box-sizing: border-box;
}

@media (max-height: 720px) {
  .auth-wrapper {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }
}

.voki-logo-container {
  display: none !important;
}

.voki-auth-logo {
  width: 86px;
  height: 86px;
  border-radius: 22px;
  object-fit: contain;
  box-shadow: 0 12px 32px rgba(124, 58, 237, 0.5), 0 0 45px rgba(99, 102, 241, 0.25);
  border: none !important;
  background: transparent !important;
  transition: transform 0.25s ease;
}

.voki-auth-logo:hover {
  transform: scale(1.04);
}

.auth-wrapper .form-control,
.auth-wrapper .form-select,
.auth-page .form-control,
.auth-page .form-select {
  background-color: rgba(255, 255, 255, 0.04) !important;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f8fafc !important;
  border-radius: 12px;
  padding: 10.5px 14px;
  font-size: 0.92rem;
  transition: all 0.2s ease;
  box-shadow: none !important;
}

.auth-wrapper .form-control:focus,
.auth-wrapper .form-select:focus,
.auth-page .form-control:focus,
.auth-page .form-select:focus {
  border-color: #8b5cf6 !important;
  background-color: rgba(255, 255, 255, 0.07) !important;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.22) !important;
}

.auth-wrapper .form-control::placeholder,
.auth-page .form-control::placeholder {
  color: #64748b;
}

.input-group-text-btn {
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: none;
  color: var(--text-muted, var(--voki-muted));
  border-radius: 0 12px 12px 0;
  padding: 0 14px;
}

.toggle-pass {
  background: transparent !important;
  border: none !important;
  color: #94a3b8 !important;
  padding: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  transition: color 0.15s ease, transform 0.15s ease;
  line-height: 1;
}

.toggle-pass:hover,
.toggle-pass:focus {
  color: #f8fafc !important;
  transform: scale(1.1);
}

.btn-brand {
  background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%) !important;
  border: none !important;
  color: #ffffff !important;
  border-radius: 12px;
  padding: 11.5px 16px;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.35);
  transition: all 0.2s ease, transform 0.1s ease;
}

.btn-brand:hover,
.btn-brand:active {
  background: linear-gradient(135deg, #6d28d9 0%, #4f46e5 100%) !important;
  box-shadow: 0 6px 22px rgba(124, 58, 237, 0.5);
  transform: scale(0.99);
}

.btn-surface {
  background-color: rgba(255, 255, 255, 0.045) !important;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #f1f5f9 !important;
  border-radius: 12px;
  padding: 11.5px 16px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-surface:hover,
.btn-surface:active {
  background-color: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
}

.step-indicator {
  height: 4px;
  flex: 1;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.step-indicator.active {
  background: linear-gradient(90deg, #7c3aed, #6366f1);
}

.req-box {
  background-color: var(--bg-surface, var(--voki-surface));
  border: 1px solid var(--border-color, var(--voki-divider));
  border-radius: 10px;
  padding: 12px 16px;
}

.req-item {
  font-size: 0.8rem;
  color: var(--text-muted, var(--voki-muted));
  transition: color 0.2s ease, transform 0.2s ease;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
}

.req-item:last-child {
  margin-bottom: 0;
}

.req-item.valid {
  color: #10b981;
}

.req-item.valid i {
  color: #10b981;
}

.fade-in {
  animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================
   CANALES Y COMUNIDADES (ADMIN, CREACIÃ“N, LISTA, VISTA)
========================================================== */
.admin-card {
  background-color: var(--voki-surface);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid var(--voki-divider);
}

.channel-banner-preview {
  height: 130px;
  background-color: rgba(255, 255, 255, 0.03);
  background-size: cover;
  background-position: center;
  border-radius: 14px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.studio-card .channel-banner-preview {
  height: 80px;
  background-color: var(--voki-surface-hover);
  border-radius: 14px 14px 0 0;
  margin-bottom: 0;
  display: block;
}

.camera-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.65);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.perm-check {
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid transparent;
  transition: border 0.2s;
}

.perm-check:focus-within {
  border-color: var(--voki-accent);
}

.sortable-row {
  transition: transform 0.2s ease;
}

.sort-btn-up:hover,
.sort-btn-down:hover {
  color: #fff !important;
  cursor: pointer;
}

.sort-btn-up.disabled,
.sort-btn-down.disabled {
  opacity: 0.2;
  cursor: default;
}

.header-bar {
  background-color: var(--voki-bg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  z-index: 1020;
}

.create-card {
  background-color: var(--voki-surface);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
}

.image-picker-box {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 2px dashed var(--voki-divider);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  margin: 0 auto;
}

.image-picker-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  z-index: 1;
}

.image-picker-box i {
  font-size: 1.5rem;
  color: var(--voki-muted);
  position: relative;
  z-index: 2;
}

.input-flat {
  background-color: rgba(0, 0, 0, 0.2) !important;
  border: 1px solid var(--voki-divider) !important;
  color: #fff !important;
  border-radius: 10px;
  padding: 12px;
}

.input-flat:focus {
  border-color: var(--voki-accent) !important;
  box-shadow: none !important;
}

.privacy-box {
  border: 1px solid var(--voki-divider);
  border-radius: 12px;
  padding: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.privacy-box.active {
  border-color: var(--voki-accent);
  background-color: rgba(92, 22, 197, 0.1);
}

.floating-add-btn {
  position: fixed;
  bottom: 85px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--voki-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
  z-index: 1030;
  border: none;
  transition: transform 0.2s ease;
  text-decoration: none;
}

.floating-add-btn:active {
  transform: scale(0.92);
}

.floating-add-btn:hover {
  color: #fff;
}

.studio-section .floating-add-btn {
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.channel-header {
  position: relative;
  background-size: cover;
  background-position: center;
  min-height: 200px;
}

.channel-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, transparent 40%, var(--voki-bg) 100%);
}

.channel-icon {
  width: 90px;
  height: 90px;
  border-radius: 24px;
  object-fit: cover;
  border: 4px solid var(--voki-bg);
  position: relative !important;
  z-index: 50 !important;
  margin-top: -45px !important;
  background: var(--voki-surface);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.tab-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 15px;
  background: transparent !important;
  background-color: transparent !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

.tab-btn {
  white-space: nowrap;
  font-weight: 600;
  font-size: 0.85rem;
  color: #e2e8f0;
  padding: 8px 16px;
  border-radius: 20px;
  background: rgba(20, 24, 34, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.2s;
}

.tab-btn.active {
  background: var(--voki-accent);
  color: #fff;
  border-color: var(--voki-accent);
  box-shadow: 0 4px 12px rgba(92, 22, 197, 0.45);
}

.member-item {
  transition: background-color 0.2s;
  border-radius: 12px;
}

.member-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--voki-surface);
  position: absolute;
  bottom: 0;
  right: 0;
}

.status-online { background-color: var(--voki-success); }
.status-offline { background-color: #6b7280; }

/* ==========================================================
   EXPLORADOR / EXPLORER
========================================================== */
.search-bar-wrapper {
  background-color: var(--voki-surface);
  border-radius: 14px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--voki-divider);
}

.search-input {
  background: transparent;
  border: none;
  color: var(--voki-text);
  width: 100%;
  outline: none;
  font-size: 0.95rem;
}

.search-input::placeholder {
  color: var(--voki-muted);
}

.special-feature-card {
  position: relative;
  border-radius: 20px;
  padding: 24px 20px;
  overflow: hidden;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 140px;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.special-feature-card:active {
  transform: scale(0.96);
}

.special-feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
  z-index: 1;
}

.special-feature-content {
  position: relative;
  z-index: 2;
}

.card-echo {
  background: linear-gradient(135deg, #082f49 0%, #0f766e 100%);
}

.card-match {
  background: linear-gradient(135deg, #7c2d12 0%, #dc2626 100%);
}

.horizontal-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: none;
}

.horizontal-scroll::-webkit-scrollbar {
  display: none;
}

.my-channel-bubble {
  min-width: 72px;
  max-width: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}

.my-channel-bubble img {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  object-fit: cover;
  background: var(--voki-surface);
  padding: 2px;
  border: 2px solid transparent;
  transition: border-color 0.2s;
}

.my-channel-bubble:active img {
  border-color: var(--voki-accent);
}

.recommendation-card {
  background-color: var(--voki-surface);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: var(--voki-text);
  display: block;
  margin-bottom: 16px;
  border: 1px solid var(--voki-divider);
}

.recommendation-banner {
  height: 120px;
  background-size: cover;
  background-position: center;
  background-color: var(--voki-surface-hover);
}

/* ==========================================================
   CONFIGURACIÃ“N / SETTINGS
========================================================== */
.settings-stepper-bar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 10px 12px;
  background-color: var(--voki-bg);
  scrollbar-width: none;
}

.settings-stepper-bar::-webkit-scrollbar {
  display: none;
}

.step-tab-btn {
  flex: 1 0 auto;
  background-color: var(--voki-surface);
  color: var(--voki-muted);
  border: none;
  border-radius: 12px;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.step-tab-btn.active {
  background-color: var(--voki-accent);
  color: #fff;
}

.settings-slider-viewport {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.settings-slider-track {
  display: flex;
  width: 600%;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  align-items: flex-start;
}

.settings-slide-pane {
  width: 16.666667%;
  flex-shrink: 0;
  padding: 14px 12px 24px;
}

.settings-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--voki-muted);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.settings-card {
  background-color: var(--voki-surface);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 16px;
}

.segmented-control {
  display: flex;
  background-color: rgba(0, 0, 0, 0.35);
  border-radius: 10px;
  padding: 3px;
  gap: 3px;
}

.segmented-item {
  flex: 1;
  text-align: center;
  padding: 7px 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--voki-muted);
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.segmented-item.active {
  background-color: var(--voki-surface-hover);
  color: var(--voki-text);
}

.settings-banner-preview {
  height: 120px;
  background-color: rgba(255, 255, 255, 0.03);
  background-size: cover;
  background-position: center;
  border-radius: 14px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.settings-avatar-preview {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background-color: var(--voki-bg);
  padding: 3px;
  margin-top: -39px;
  margin-left: 14px;
  position: relative;
}

.inventory-frames-grid {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.inventory-frame-item {
  min-width: 82px;
  max-width: 82px;
  height: 96px;
  background-color: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease;
  flex-shrink: 0;
}

.inventory-frame-item.active {
  background-color: rgba(59, 130, 246, 0.14);
  border-color: var(--voki-accent);
}

.service-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  background-color: var(--voki-muted);
}

.service-status-dot.online {
  background-color: var(--voki-success);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.65);
}

.service-status-dot.warning {
  background-color: var(--voki-warning);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.65);
}

.service-status-dot.offline {
  background-color: var(--voki-danger);
  box-shadow: 0 0 8px rgba(255, 43, 85, 0.65);
}

.service-pill-badge {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.theme-choice-btn {
  transition: transform 0.15s ease;
  opacity: 0.6;
}

.theme-choice-btn.active {
  opacity: 1;
  transform: scale(1.05);
}

.theme-choice-btn.active .theme-circle {
  border: 2px solid var(--voki-accent) !important;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

/* ==========================================================
   UGC (STUDIO, TIENDAS, CREACIÃ“N, ITEMS)
========================================================== */
.studio-card {
  background-color: var(--voki-surface);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 16px;
}

/* ================= UGC STUDIO STICKY PREVIEW ================= */
.ugc-sticky-preview-wrapper {
  position: -webkit-sticky;
  position: sticky;
  top: 49px;
  z-index: 1000;
  background-color: var(--voki-bg, #09090b);
  padding-top: 6px;
  padding-bottom: 8px;
  margin-left: -0.5rem;
  margin-right: -0.5rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  transition: box-shadow 0.2s ease, top 0.2s ease;
}

.ugc-sticky-preview-wrapper .ugc-preview-stage {
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.75), 0 0 1px 1px rgba(255, 255, 255, 0.08);
}

@media (max-height: 640px) {
  .ugc-sticky-preview-wrapper .ugc-preview-stage {
    height: 180px;
  }
}

.ugc-preview-stage {
  height: 220px;
  background: radial-gradient(circle, #252525 0%, #141414 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

#previewBox.ugc-preview-stage {
  height: 35vh;
  min-height: 250px;
  background: radial-gradient(circle, #2a2a2a 0%, #111 100%);
  border-radius: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tag-chip {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--voki-text);
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.earnings-box {
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.preview-chat-wrapper {
  max-width: 100%;
  position: relative;
  margin-left: auto;
  overflow: visible !important;
  box-shadow: none !important;
}

.preview-chat-base {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-color: var(--voki-accent);
}

.preview-chat-image-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-size: cover;
  background-position: center;
  opacity: 1;
}

.preview-chat-content {
  position: relative;
  z-index: 3;
  padding: 14px 18px;
  font-size: 0.95rem;
  color: #ffffff;
  word-wrap: break-word;
}

.chat-border-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  border-radius: inherit;
}

.creator-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 6px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
}

.sticky-checkout-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--voki-surface);
  padding: 15px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1040;
  box-shadow: 0 -10px 20px rgba(0, 0, 0, 0.3);
}

.btn-buy-massive {
  font-size: 1.1rem;
  padding: 14px 20px;
  transition: transform 0.1s;
}

.btn-buy-massive:active {
  transform: scale(0.96);
}

.store-banner-box {
  height: 160px;
  background-color: var(--voki-surface);
  background-size: cover;
  background-position: center;
}

.store-logo-wrapper {
  width: 90px;
  height: 90px;
  border-radius: 24px;
  background: var(--voki-bg);
  padding: 4px;
  margin-top: -45px;
}

.store-logo-wrapper img {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  object-fit: cover;
}

.store-tabs-nav {
  display: flex;
  gap: 20px;
  padding: 0 15px;
  overflow-x: auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 20px;
}

.store-tab-btn {
  background: none;
  border: none;
  color: var(--voki-muted);
  font-weight: 600;
  padding: 12px 5px;
  position: relative;
  white-space: nowrap;
  transition: color 0.2s;
}

.store-tab-btn.active {
  color: var(--voki-text);
}

.store-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--voki-accent);
  border-radius: 3px 3px 0 0;
}

.ugc-item-card {
  background-color: var(--voki-surface);
  border-radius: 14px;
  padding: 14px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mk-content {
  color: var(--voki-text);
  font-size: 0.95rem;
  line-height: 1.6;
  padding: 0 10px;
}

.studio-section {
  margin-bottom: 24px;
}

.store-banner-preview {
  height: 120px;
  background: rgba(255, 255, 255, 0.02);
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tab-manager-row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 12px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ==========================================================
   BILLETERA Y PASARELAS DE PAGO (WALLET & CHECKOUT)
========================================================== */
.wallet-card {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.wallet-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.action-btn-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--voki-text);
  transition: all 0.2s ease;
}

.action-btn-circle:active {
  transform: scale(0.95);
  background: rgba(255, 255, 255, 0.1);
}

.action-btn-circle i {
  font-size: 1.3rem;
  margin-bottom: 2px;
}

.inventory-item-card {
  background-color: var(--voki-surface);
  border-radius: 16px;
  padding: 14px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
}

.inventory-item-card.equipped {
  border-color: var(--voki-accent);
  background-color: rgba(59, 130, 246, 0.05);
}

.search-input-dark {
  background-color: rgba(0, 0, 0, 0.3) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  border-radius: 12px;
  padding: 12px 16px;
}

.friend-row {
  padding: 10px;
  border-radius: 12px;
  transition: background 0.2s;
  cursor: pointer;
}

.friend-row:active {
  background: rgba(255, 255, 255, 0.05);
}

.coin-package {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s;
}

.coin-package:active {
  transform: scale(0.98);
  border-color: var(--voki-warning);
}

.checkout-card {
  background: var(--voki-surface);
  border-radius: 20px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.pay-method-btn {
  background: rgba(0, 0, 0, 0.2);
  border: 2px solid transparent;
  border-radius: 16px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}

.pay-method-btn:hover,
.pay-method-btn.active {
  border-color: var(--voki-primary);
  background: rgba(59, 130, 246, 0.1);
}

#pp-button-container {
  display: none;
  margin-top: 15px;
  width: 100%;
  text-align: center;
}

.payphone-safe-area {
  padding: 10px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  min-height: 400px;
}

.inventory-bubble-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 6px;
  border-radius: 14px;
  border: 2px solid transparent;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}
.inventory-bubble-item:hover {
  background: rgba(255, 255, 255, 0.08);
}
.inventory-bubble-item.active {
  border-color: var(--voki-primary, #3b82f6);
  background: rgba(59, 130, 246, 0.12);
}
.chat-bubble-me {
  background-color: var(--voki-accent, #7c3aed);
  color: #ffffff;
  border-radius: 18px 18px 4px 18px;
  max-width: 82%;
  word-break: break-word;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
/* ========================================================================= */
/* BURBUJAS UGC DE 3 CORTES (EXCLUSIVO PARA CHAT) */
/* ========================================================================= */
.asset-bubble {
  display: flex !important;
  flex-direction: column !important;
  width: -moz-fit-content !important;
  width: fit-content !important;
  max-width: min(290px, 78vw, 100%) !important;
  min-width: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}
.message-container.is-me .asset-bubble {
  align-self: flex-end !important;
}
.message-container:not(.is-me) .asset-bubble {
  align-self: flex-start !important;
}
.asset-top,
.asset-bottom {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  display: block !important;
  pointer-events: none;
  user-select: none;
  box-sizing: border-box !important;
}
.asset-top.d-none,
.asset-bottom.d-none {
  display: none !important;
}
.asset-body {
  width: 100% !important;
  max-width: 100% !important;
  background-repeat: repeat-y !important;
  background-size: 100% auto !important;
  background-position: top center !important;
  box-sizing: border-box !important;
}
.asset-bubble .message-content-text {
  color: inherit !important;
  word-break: break-word !important;
}
.ugc-preview-stage.is-chat-mode {
  height: auto !important;
  min-height: 200px;
  overflow: visible !important;
  padding: 14px 10px;
}
.preview-chat-bubble-target {
  box-sizing: border-box !important;
  max-width: 82%;
  word-break: break-word;
}

.preview-chat-bubble-target .chat-msg-time {
  font-size: 0.64rem;
  opacity: 0.68;
  line-height: 1;
  margin-top: 2px !important;
  margin-bottom: 0 !important;
}
.preview-chat-bubble-target .message-content-text p {
  margin: 0 !important;
  padding: 0 !important;
  display: inline;
}

/* ================= SALA DE CINE (WATCH PARTY & THEATER HUD) ================= */
#cinemaTheaterContainer {
  transition: all 0.3s ease;
}

#cinemaTheaterContainer .cinema-hud-element {
  transition: opacity 0.35s ease, transform 0.35s ease;
}

#cinemaTheaterContainer.cinema-hud-hidden .cinema-hud-element {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(8px);
}

#cinemaTheaterContainer.cinema-hud-hidden .cinema-hud-top {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(-8px);
}

#cinemaTheaterContainer.cinema-hud-hidden {
  cursor: none !important;
}

#cinemaTheaterContainer:fullscreen {
  max-height: 100vh !important;
  height: 100vh !important;
  width: 100vw !important;
  border-radius: 0 !important;
  border: none !important;
  margin: 0 !important;
}

#cinemaTheaterContainer:-webkit-full-screen {
  max-height: 100vh !important;
  height: 100vh !important;
  width: 100vw !important;
  border-radius: 0 !important;
  border: none !important;
  margin: 0 !important;
}

.cinema-queue-item {
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.cinema-queue-item:hover {
  background-color: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(239, 68, 68, 0.4) !important;
}

/* =========================================================
   DYNAMIC ISLAND FLOTANTE DE ACTIVIDAD EN EL CHAT
   ========================================================= */
.dynamic-island-container {
  position: absolute;
  top: 66px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 45;
  pointer-events: none;
  animation: dynamicIslandDrop 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dynamicIslandDrop {
  from {
    opacity: 0;
    transform: translateY(-12px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.dynamic-island-pill {
  pointer-events: auto;
  background: rgba(18, 18, 24, 0.94) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  max-width: 90%;
  min-height: 36px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65), 0 0 10px rgba(255, 255, 255, 0.04);
  transition: transform 0.18s ease, background-color 0.18s ease;
  cursor: pointer;
}

.dynamic-island-pill:hover {
  background: rgba(26, 26, 36, 0.98) !important;
  border-color: rgba(255, 255, 255, 0.25);
}

.dynamic-island-pill:active {
  transform: scale(0.96);
}

.dynamic-island-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: dynamicIslandPulse 1.8s infinite ease-in-out;
  flex-shrink: 0;
}

.dynamic-island-indicator.indicator-cinema {
  background-color: #ef4444;
  box-shadow: 0 0 8px #ef4444;
}

@keyframes dynamicIslandPulse {
  0% {
    transform: scale(0.95);
    opacity: 0.75;
  }
  50% {
    transform: scale(1.3);
    opacity: 1;
  }
  100% {
    transform: scale(0.95);
    opacity: 0.75;
  }
}


/* VOKI PRO & TRANSACTION HISTORY CARDS */
.voki-pro-banner-btn,
.voki-pro-banner-pill,
.voki-pro-banner-link {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
  user-select: none;
  cursor: pointer;
}

.voki-pro-banner-btn:active,
.voki-pro-banner-pill:active,
.voki-pro-banner-link:active {
  transform: scale(0.96);
}

.voki-pro-banner-btn:hover,
.voki-pro-banner-pill:hover,
.voki-pro-banner-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(234, 179, 8, 0.4) !important;
}

.tx-item-card {
  transition: transform 0.15s ease, background 0.15s ease;
}

.tx-item-card:hover {
  background: rgba(255, 255, 255, 0.05) !important;
}

/* ================= BOOTSTRAP MODAL CENTERING FIX ================= */
.modal {
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin: 0 !important;
}

.modal.show {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.modal-dialog {
  margin-left: auto !important;
  margin-right: auto !important;
  margin-top: auto !important;
  margin-bottom: auto !important;
  width: calc(100% - 24px) !important;
}

.modal-dialog:not(.modal-lg):not(.modal-xl):not(.modal-fullscreen) {
  max-width: 420px;
}

.modal-dialog.modal-fullscreen {
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
}

.modal-dialog.modal-fullscreen .modal-content {
  height: 100% !important;
  min-height: 100% !important;
  border: 0 !important;
  border-radius: 0 !important;
}

.modal-dialog-centered {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: calc(100% - 1rem) !important;
}

/* ================= VOKI RECOMPENSAS DIARIAS & STEPPER SEMANAL ================= */
@keyframes voki-gift-bounce {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  25% {
    transform: translateY(-6px) scale(1.15) rotate(-8deg);
  }
  50% {
    transform: translateY(0) scale(0.95);
  }
  75% {
    transform: translateY(-3px) scale(1.05) rotate(8deg);
  }
}
.voki-gift-bounce {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  line-height: 1;
  animation: voki-gift-bounce 1.3s infinite ease-in-out;
  cursor: pointer;
  filter: drop-shadow(0 0 6px rgba(234, 179, 8, 0.7));
}

@keyframes voki-step-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.75);
  }
  50% {
    transform: scale(1.16);
    box-shadow: 0 0 0 7px rgba(245, 158, 11, 0);
  }
}
.voki-step-pulse {
  animation: voki-step-pulse 1.3s infinite ease-in-out !important;
}

.voki-weekly-stepper {
  user-select: none;
}
.voki-step-circle {
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}


/* ================= MODAL CELEBRACIÃ“N DE RACHA VOKI ================= */
.voki-reward-modal-backdrop {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10070 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.voki-reward-modal-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}
.voki-reward-modal-card {
  width: 100%;
  max-width: 350px;
  background: linear-gradient(145deg, #1e1b4b 0%, #0f172a 100%);
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: 24px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.85), 0 0 35px rgba(168, 85, 247, 0.25);
  transform: scale(0.85);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.voki-reward-modal-backdrop.show .voki-reward-modal-card {
  transform: scale(1);
}
.voki-reward-glow-bg {
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, rgba(99, 102, 241, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}
.voki-reward-badge-wrap {
  width: 76px;
  height: 76px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.voki-reward-fire-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(139, 92, 246, 0.25) 100%);
  border: 2px solid rgba(245, 158, 11, 0.5);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: voki-fire-float 2.5s infinite ease-in-out;
}
.voki-reward-main-emoji {
  font-size: 2.2rem;
  line-height: 1;
}
.voki-reward-coin-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  font-size: 1.25rem;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
  animation: voki-coin-wiggle 1.8s infinite ease-in-out;
}
@keyframes voki-fire-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes voki-coin-wiggle {
  0%, 100% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(-10deg) scale(1.1); }
  75% { transform: rotate(10deg) scale(1.1); }
}

/* ============================================================ */
/* BOTELLAS ECHO (ECHO BOTTLE) - GLASSMORPHISM & FLOAT */
/* ============================================================ */
@keyframes echoFloat {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-7px) rotate(0.8deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes echoSink {
  0% { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(50px) scale(0.85); opacity: 0; }
}

.echo-bottle-card {
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.16) 0%, rgba(59, 130, 246, 0.10) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  border-radius: 20px !important;
  box-shadow: 0 10px 32px rgba(6, 182, 212, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  animation: echoFloat 3.8s ease-in-out infinite;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  position: relative;
}

.echo-bottle-card:hover {
  box-shadow: 0 14px 40px rgba(6, 182, 212, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.echo-bottle-sinking {
  animation: echoSink 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards !important;
  pointer-events: none;
}

.echo-bottle-water-glow {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 130px;
  height: 130px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.35) 0%, transparent 70%);
  pointer-events: none;
}

/* =======================================================
   MENTION AUTOCOMPLETE DROPDOWN (Post Editor & Comments)
======================================================= */
.mention-autocomplete-dropdown {
  background: rgba(18, 18, 28, 0.98) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 14px !important;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.85), 0 0 15px rgba(139, 92, 246, 0.15) !important;
  max-height: 220px !important;
  overflow-y: auto !important;
  z-index: 1095 !important;
  padding: 6px !important;
}
.mention-autocomplete-dropdown::-webkit-scrollbar {
  width: 5px;
}
.mention-autocomplete-dropdown::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}
.mention-autocomplete-item {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 8px 12px !important;
  border-radius: 10px !important;
  cursor: pointer !important;
  transition: background 0.15s ease, transform 0.1s ease !important;
  user-select: none !important;
}
.mention-autocomplete-item:hover,
.mention-autocomplete-item.active {
  background: rgba(139, 92, 246, 0.28) !important;
}
.mention-autocomplete-item .mention-user-avatar {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  flex-shrink: 0 !important;
  background: #232332 !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
}
.mention-autocomplete-item .mention-user-info {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
  flex-grow: 1 !important;
}
.mention-autocomplete-item .mention-user-name {
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  color: #fff !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 1.2 !important;
}
.mention-autocomplete-item .mention-user-handle {
  font-size: 0.74rem !important;
  color: #a1a1aa !important;
  line-height: 1.2 !important;
}

/* ==============================================================
   MEJORAS VISUALES: BOTÓN DE SEGUIR Y CONTADORES REACTIVOS
   ============================================================== */
.btn-follow-transition {
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  will-change: transform;
}

.btn-follow-pop {
  animation: followBtnPop 0.32s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes followBtnPop {
  0% { transform: scale(0.92); }
  50% { transform: scale(1.07); }
  100% { transform: scale(1); }
}

.btn-following-active {
  background-color: var(--voki-surface, rgba(255, 255, 255, 0.08)) !important;
  color: var(--voki-text, #ffffff) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
}

.btn-following-active:hover {
  background-color: rgba(239, 68, 68, 0.15) !important;
  color: #fca5a5 !important;
  border-color: rgba(239, 68, 68, 0.45) !important;
}

.stat-counter-bump {
  animation: statCounterBump 0.38s ease-out;
  display: inline-block;
}

@keyframes statCounterBump {
  0% { transform: scale(1); }
  40% { transform: scale(1.35); color: #38bdf8 !important; }
  100% { transform: scale(1); }
}

/* ==============================================================
   MEJORAS VISUALES: ENTRADA DE POST RECIÉN PUBLICADO
   ============================================================== */
.post-just-published {
  animation: postEnterHighlight 1.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  position: relative;
}

@keyframes postEnterHighlight {
  0% {
    opacity: 0;
    transform: translateY(-20px) scale(0.98);
    background-color: rgba(56, 189, 248, 0.16);
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.22);
  }
  30% {
    opacity: 1;
    transform: translateY(0) scale(1);
    background-color: rgba(56, 189, 248, 0.12);
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.18);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    background-color: transparent;
    box-shadow: none;
  }
}

/* ==============================================================
   ESTILOS DE MENCIONES EN CHAT (@everyone, @here, roles y usuarios)
   ============================================================== */
.chat-mention-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 7px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.88em;
  line-height: 1.35;
  vertical-align: baseline;
  text-decoration: none;
  cursor: default;
  transition: all 0.16s ease;
  user-select: text;
}

.chat-mention-badge.mention-everyone {
  background: rgba(245, 158, 11, 0.18) !important;
  color: #fbbf24 !important;
  border: 1px solid rgba(245, 158, 11, 0.45) !important;
}

.chat-mention-badge.mention-here {
  background: rgba(16, 185, 129, 0.18) !important;
  color: #34d399 !important;
  border: 1px solid rgba(16, 185, 129, 0.45) !important;
}

.chat-mention-badge.mention-user {
  background: rgba(124, 58, 237, 0.22) !important;
  color: #c4b5fd !important;
  border: 1px solid rgba(124, 58, 237, 0.45) !important;
  cursor: pointer;
}
.chat-mention-badge.mention-user:hover {
  background: rgba(124, 58, 237, 0.38) !important;
  color: #ffffff !important;
  text-decoration: none;
}

.chat-mention-badge.mention-role {
  background: rgba(59, 130, 246, 0.2) !important;
  color: #93c5fd !important;
  border: 1px solid rgba(59, 130, 246, 0.45) !important;
}

.post-text .chat-mention-badge.mention-user,
.comment-text .chat-mention-badge.mention-user {
  cursor: pointer !important;
  pointer-events: auto !important;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  text-decoration: none !important;
  font-weight: 600;
  border-radius: 6px;
  padding: 1px 6px;
  line-height: 1.35;
  vertical-align: baseline;
}
.post-text .chat-mention-badge.mention-user:hover,
.comment-text .chat-mention-badge.mention-user:hover {
  text-decoration: none !important;
  color: #fff !important;
  background: rgba(124, 58, 237, 0.45) !important;
}

/* Resaltado de mensaje con mención al usuario actual (Estilo Discord) */
.is-mentioned-message {
  background: rgba(245, 158, 11, 0.08) !important;
  border-left: 3px solid #fbbf24 !important;
  border-radius: 4px;
  padding-left: 4px;
  animation: mentionHighlightPulse 2s ease-out;
}
@keyframes mentionHighlightPulse {
  0% { background: rgba(245, 158, 11, 0.24); }
  100% { background: rgba(245, 158, 11, 0.08); }
}

/* Popup flotante de Autocompletado de menciones sobre el input */
.chat-mention-autocomplete {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  width: 100%;
  max-width: 380px;
  max-height: 260px;
  overflow-y: auto;
  background: rgba(20, 20, 26, 0.98) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  z-index: 1080;
  padding: 6px;
}

.chat-mention-section-title {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.4);
  padding: 6px 10px 2px;
}

.chat-mention-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.14s ease;
  user-select: none;
}
.chat-mention-item:hover,
.chat-mention-item.active {
  background: rgba(255, 255, 255, 0.09);
}

.chat-mention-item-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.chat-mention-item-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* Píldoras de mención interactivas estilo Discord dentro del input */
.chat-input-mention-pill {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 1px 7px;
  margin: 0 2px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.88em;
  user-select: none;
  vertical-align: baseline;
  line-height: 1.35;
  cursor: pointer;
  white-space: nowrap;
}
.chat-input-mention-pill.mention-user {
  background: rgba(124, 58, 237, 0.28) !important;
  color: #c4b5fd !important;
  border: 1px solid rgba(124, 58, 237, 0.5) !important;
}
.chat-input-mention-pill.mention-role {
  background: rgba(59, 130, 246, 0.28) !important;
  color: #93c5fd !important;
  border: 1px solid rgba(59, 130, 246, 0.5) !important;
}
.chat-input-mention-pill.mention-special {
  background: rgba(234, 179, 8, 0.25) !important;
  color: #fde047 !important;
  border: 1px solid rgba(234, 179, 8, 0.5) !important;
}
.chat-mention-badge.mention-user,
.chat-user-avatar-trigger,
.chat-author-avatar-link,
.message-meta .user-name {
  cursor: pointer !important;
}

/* =======================================================
   ESTILO OFICIAL DISCORD PARA MENCIONES (@mentions)
   ======================================================= */
.discord-mention-pill,
.chat-mention-badge.mention-user,
.post-text .chat-mention-badge.mention-user,
.comment-text .chat-mention-badge.mention-user {
  display: inline-flex !important;
  align-items: center !important;
  background-color: rgba(88, 101, 242, 0.28) !important;
  color: #dee0fc !important;
  padding: 1px 5px !important;
  border-radius: 4px !important;
  font-weight: 600 !important;
  font-size: 0.9em !important;
  line-height: 1.35 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  transition: background-color 0.15s ease, color 0.15s ease !important;
  border: none !important;
  box-shadow: none !important;
  vertical-align: baseline !important;
  white-space: nowrap !important;
}

.discord-mention-pill:hover,
.chat-mention-badge.mention-user:hover,
.post-text .chat-mention-badge.mention-user:hover,
.comment-text .chat-mention-badge.mention-user:hover {
  background-color: rgba(88, 101, 242, 0.58) !important;
  color: #ffffff !important;
  text-decoration: none !important;
}

/* ================= BOTÓN DE ACTUALIZACIÓN SW ================= */
.voki-sw-update-btn {
  color: #00e676 !important;
  background: transparent;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
  line-height: 1;
  border-radius: 50%;
}
.voki-sw-update-btn:hover:not(.is-updating) {
  transform: scale(1.1);
  background: rgba(0, 230, 118, 0.1);
}
.voki-sw-update-btn:active:not(.is-updating) {
  transform: scale(0.92);
}
.voki-sw-update-btn .voki-sw-update-icon {
  overflow: visible;
  filter: drop-shadow(0 0 4px rgba(0, 230, 118, 0.45));
  transition: transform 0.2s ease, filter 0.2s ease;
}
.voki-sw-update-btn:not(.is-updating):not(.is-complete) .voki-sw-arrow {
  animation: vokiSwArrowIdle 1.8s ease-in-out infinite;
}
.voki-sw-update-btn.is-updating {
  pointer-events: none;
  background: rgba(0, 230, 118, 0.12);
}
.voki-sw-update-btn.is-updating::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  border: 2px solid rgba(0, 230, 118, 0.18);
  border-top-color: #00e676;
  animation: vokiSwRingSpin 0.7s linear infinite;
  pointer-events: none;
}
.voki-sw-update-btn.is-updating .voki-sw-update-icon {
  animation: none !important;
  transform: scale(0.88);
  filter: drop-shadow(0 0 6px rgba(0, 230, 118, 0.65));
}
.voki-sw-update-btn.is-updating .voki-sw-arrow {
  transform-origin: 12px 10px;
  animation: vokiSwArrowDownload 0.65s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
.voki-sw-update-btn.is-updating .voki-sw-tray {
  transform-origin: 12px 20px;
  animation: vokiSwTrayPulse 0.65s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
.voki-sw-update-btn.is-complete {
  transform: scale(1.12);
  background: rgba(0, 230, 118, 0.22);
}
.voki-sw-update-btn.is-complete .voki-sw-update-icon {
  filter: drop-shadow(0 0 8px rgba(0, 230, 118, 0.9));
}
@keyframes vokiSwArrowIdle {
  0%, 100% { transform: translateY(-1.2px); }
  50% { transform: translateY(1.4px); }
}
@keyframes vokiSwArrowDownload {
  0% {
    transform: translateY(-5.5px) scale(0.92);
    opacity: 0;
  }
  25% {
    opacity: 1;
  }
  75% {
    transform: translateY(2.8px) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(4.8px) scale(0.85);
    opacity: 0;
  }
}
@keyframes vokiSwTrayPulse {
  0%, 55%, 100% {
    transform: scaleX(1);
    opacity: 0.75;
  }
  75% {
    transform: scaleX(1.14);
    opacity: 1;
  }
}
@keyframes vokiSwRingSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ==========================================================
   DRAG & DROP MULTIMEDIA UNIFICADO Y SUBGALERÍA EN ESPERA
   ========================================================== */
.voki-drop-overlay {
  position: absolute;
  inset: 0;
  z-index: 1095;
  background: rgba(9, 12, 20, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  pointer-events: none;
  animation: vokiDropFadeIn 0.14s ease-out;
}
.voki-drop-overlay.is-fixed {
  position: fixed;
  z-index: 1095;
}
@keyframes vokiDropFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.voki-drop-overlay-box {
  border: 2px dashed rgba(42, 171, 238, 0.78);
  background: rgba(20, 26, 38, 0.9);
  border-radius: 20px;
  padding: 22px 26px;
  text-align: center;
  color: #ffffff;
  max-width: min(380px, 90vw);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.voki-media-tray {
  width: 100%;
  box-sizing: border-box;
  animation: vokiTrayIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes vokiTrayIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.voki-media-tray-card {
  background: rgba(20, 24, 32, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 16px;
  padding: 8px 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.42);
  color: #f4f4f5;
}
.voki-media-tray-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.voki-media-tray-clear {
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  font-size: 0.78rem;
  transition: background 0.15s ease, color 0.15s ease;
}
.voki-media-tray-clear:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.22);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.45);
}
.voki-media-tray-clear:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.voki-media-tray-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 2px 2px 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
  -webkit-overflow-scrolling: touch;
}
.voki-media-tray-strip::-webkit-scrollbar {
  height: 4px;
}
.voki-media-tray-strip::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 99px;
}
.voki-media-tray-add {
  position: sticky;
  left: 0;
  z-index: 5;
  width: 68px;
  height: 68px;
  flex: 0 0 auto;
  border-radius: 12px;
  border: 1.5px dashed rgba(255, 255, 255, 0.24);
  background: rgba(20, 24, 32, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.72);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 0.65rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.voki-media-tray-add:hover:not(:disabled) {
  background: rgba(42, 171, 238, 0.2);
  border-color: rgba(42, 171, 238, 0.55);
  color: #ffffff;
}
.voki-media-tray-add:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.voki-media-tray-thumb {
  position: relative;
  width: 68px;
  height: 68px;
  flex: 0 0 auto;
  border-radius: 12px;
  overflow: hidden;
  background: #12151d;
  border: 1px solid rgba(255, 255, 255, 0.14);
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.15s ease;
}
.voki-media-tray-thumb:active {
  transform: scale(0.96);
}
.voki-media-tray-thumb.is-error {
  border-color: rgba(239, 68, 68, 0.85);
}
.voki-media-tray-thumb.is-done {
  border-color: rgba(34, 197, 94, 0.7);
}
.voki-media-tray-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.voki-media-tray-audio {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.28), rgba(42, 171, 238, 0.2));
  color: #e2e8f0;
  padding: 4px;
}
.voki-media-tray-badge {
  position: absolute;
  bottom: 4px;
  left: 4px;
  background: rgba(0, 0, 0, 0.72);
  color: #ffffff;
  font-size: 0.56rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 6px;
  pointer-events: none;
  letter-spacing: 0.02em;
  z-index: 3;
}
.voki-media-tray-overlay {
  position: absolute;
  inset: 0;
  background: rgba(9, 11, 16, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
}
.voki-media-tray-overlay.is-error {
  background: rgba(127, 29, 29, 0.68);
}
.voki-media-tray-check {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #16a34a;
  color: #ffffff;
  font-size: 0.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  pointer-events: none;
}
.voki-media-tray-remove {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.78);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  z-index: 4;
  transition: background 0.12s ease, transform 0.12s ease;
}
.voki-media-tray-remove:hover:not(:disabled) {
  background: #ef4444;
  transform: scale(1.08);
}
.voki-media-tray-remove:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.voki-media-tray-copy {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(9, 11, 16, 0.78);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  z-index: 4;
  transition: background 0.12s ease, transform 0.12s ease;
}
.voki-media-tray-copy:hover {
  background: rgba(42, 171, 238, 0.3);
  transform: scale(1.08);
}

#detailCommentBarContainer.voki-comment-drop-active {
  background: rgba(var(--bs-primary-rgb, 92, 22, 197), 0.16) !important;
  outline: 2px dashed rgba(42, 171, 238, 0.85);
  outline-offset: -4px;
}

html.theme-light .voki-media-tray-card {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(15, 23, 42, 0.12);
  color: #0f172a;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
}
html.theme-light .voki-media-tray-clear {
  background: rgba(15, 23, 42, 0.06);
  border-color: rgba(15, 23, 42, 0.14);
  color: #475569;
}
html.theme-light .voki-media-tray-add {
  background: rgba(241, 245, 249, 0.96);
  border-color: rgba(15, 23, 42, 0.22);
  color: #475569;
}
html.theme-light .voki-drop-overlay {
  background: rgba(248, 250, 252, 0.76);
}
html.theme-light .voki-drop-overlay-box {
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
  border-color: rgba(37, 99, 235, 0.72);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
}
html.theme-light .voki-drop-overlay-box .text-white-50 {
  color: #64748b !important;
}

/* ==========================================================
   MODO SIN CONEXIÓN (PWA OFFLINE BANNER & ACCIONES LIMITADAS)
========================================================== */
.voki-offline-banner {
  position: fixed;
  top: max(10px, env(safe-area-inset-top, 10px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 1090;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(24, 24, 27, 0.94);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fbbf24;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: none;
  white-space: nowrap;
  max-width: calc(100vw - 24px);
}

html.theme-light .voki-offline-banner {
  background: rgba(255, 251, 235, 0.96);
  border-color: rgba(217, 119, 6, 0.45);
  color: #b45309;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);
}

body.voki-offline [data-requires-online],
body.voki-offline [data-bs-target="#offcanvasNotifications"],
body.voki-offline [data-bs-target="#offcanvasComments"],
body.voki-offline #btnSubmitPost,
body.voki-offline .voki-reaction-trigger,
body.voki-offline .voki-reaction-pill,
body.voki-offline [data-action="like"],
body.voki-offline [data-action="save"],
body.voki-offline [data-action="react"],
body.voki-offline [data-action="comment"],
body.voki-offline [data-action="focus-comment"],
body.voki-offline #offcanvasPostActions [data-menu-action="not_interested"],
body.voki-offline #offcanvasPostActions [data-menu-action="report"],
body.voki-offline #offcanvasPostActions [data-menu-action="report_profile"],
body.voki-offline #offcanvasPostActions [data-menu-action="delete"],
body.voki-offline button[type="submit"]:not([data-offline-allowed="true"]) {
  opacity: 0.48 !important;
  cursor: not-allowed !important;
}

/* Ocultar cabecera del feed y barra inferior al hacer scroll hacia abajo en móvil (estilo Twitter/X, exclusivo de Home) */
@media (max-width: 767.98px) {
  body[data-voki-route="home"] header.sticky-top,
  body[data-voki-route="home"] nav.voki-bottom-navbar {
    transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
    will-change: transform;
  }

  body[data-voki-route="home"].voki-feed-bars-hidden header.sticky-top {
    transform: translate3d(0, -100%, 0) !important;
    opacity: 0;
    pointer-events: none;
  }

  body[data-voki-route="home"].voki-feed-bars-hidden nav.voki-bottom-navbar {
    transform: translate3d(0, 100%, 0) !important;
    opacity: 0;
    pointer-events: none;
  }
}
