.mu-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(5, 7, 12, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.mu-modal-overlay.mu-open {
  opacity: 1;
  pointer-events: auto;
}

.mu-modal {
  background: linear-gradient(145deg, #181a24, #0f1017);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 20px;
  width: 100%;
  max-width: 420px;
  padding: 26px 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(212, 175, 55, 0.15);
  position: relative;
  text-align: center;
  transform: translateY(14px) scale(0.98);
  transition: transform 0.25s ease;
  color: #f1f5f9;
}
.mu-modal-overlay.mu-open .mu-modal {
  transform: translateY(0) scale(1);
}

.mu-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.mu-close:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.4);
}

.mu-title {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 6px;
  color: #d4af37;
  letter-spacing: -0.01em;
}
.mu-sub {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 18px;
  line-height: 1.5;
}

.mu-qr-wrap {
  background: #ffffff;
  border: 3px solid #d4af37;
  border-radius: 18px;
  padding: 14px;
  display: inline-block;
  margin-bottom: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}
.mu-qr-wrap img {
  display: block;
  width: 210px;
  height: 210px;
  border-radius: 8px;
}
.mu-qr-wrap .mu-qr-loading {
  width: 210px;
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
}

.mu-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: #cbd5e1;
  margin-bottom: 14px;
  min-height: 22px;
}
.mu-status .mu-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #64748b;
  flex-shrink: 0;
}
.mu-status.mu-live .mu-dot {
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
  animation: mu-pulse 1.4s infinite;
}
.mu-status.mu-live {
  color: #4ade80;
  font-weight: 600;
}
@keyframes mu-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.mu-link {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 12px;
  padding: 8px 12px;
  margin-bottom: 12px;
}
.mu-link input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 12px;
  color: #cbd5e1;
  outline: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mu-copy {
  border: none;
  background: linear-gradient(135deg, #d4af37, #b8960c);
  color: #0f1017;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s ease;
}
.mu-copy:hover {
  opacity: 0.9;
}

.mu-files {
  text-align: left;
  max-height: 160px;
  overflow-y: auto;
  margin-bottom: 8px;
}
.mu-file-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 10px;
  padding: 8px 12px;
  margin-bottom: 6px;
  font-size: 13px;
}
.mu-file-item .mu-fname {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #f1f5f9;
}
.mu-file-item .mu-fok {
  color: #4ade80;
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
}

.mu-hint {
  font-size: 11px;
  color: #64748b;
  margin-top: 10px;
}
.mu-count {
  font-size: 12px;
  color: #d4af37;
  margin-bottom: 10px;
  font-weight: 600;
}

.mu-error {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 12px;
  padding: 12px;
  font-size: 13px;
  margin-bottom: 12px;
  line-height: 1.5;
}
.mu-loading-overlay {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: rgba(15, 17, 23, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: #d4af37;
}

/* Botão "Enviar pelo Celular" injetado nos anexos de cada editor */
.mu-mobile-btn {
  background: rgba(212, 175, 55, 0.08) !important;
  color: var(--gold-light, #d4af37) !important;
  border: 1px dashed rgba(212, 175, 55, 0.35) !important;
}
.mu-mobile-btn:hover {
  background: rgba(212, 175, 55, 0.18) !important;
  border-color: var(--gold, #d4af37) !important;
}
