.nm-fb-fab {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 99990;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: linear-gradient(135deg, #082b34 0%, #008b74 100%);
  color: #ffffff;
  font-family: "Cairo", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(8, 43, 52, 0.32);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  direction: rtl;
  width: auto !important;
}
.nm-fb-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0, 139, 116, 0.38);
}
.nm-fb-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f2a922;
  box-shadow: 0 0 0 3px rgba(242, 169, 34, 0.28);
}
.nm-fb-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99995;
  background: rgba(8, 43, 52, 0.45);
  backdrop-filter: blur(4px);
  display: none;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 20px;
  direction: rtl;
  font-family: "Cairo", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
}
.nm-fb-backdrop.open {
  display: flex;
}
.nm-fb-card {
  width: 100%;
  max-width: 410px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(0, 139, 116, 0.22);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 24px 60px rgba(8, 43, 52, 0.28);
  color: #082b34;
}
.nm-fb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.nm-fb-title {
  font-size: 15px;
  font-weight: 900;
  margin: 0;
  color: #082b34;
}
.nm-fb-close {
  border: none;
  background: #f1f5f9;
  color: #475569;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: 900;
}
.nm-fb-beta {
  font-size: 11.5px;
  line-height: 1.5;
  background: linear-gradient(135deg, #fffbeb, #ecfdf5);
  border: 1px solid rgba(235, 160, 30, 0.35);
  color: #082b34;
  padding: 8px 10px;
  border-radius: 12px;
  margin-bottom: 12px;
}
.nm-fb-cats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 10px;
}
.nm-fb-cat {
  padding: 7px 4px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  color: #334155;
}
.nm-fb-cat.active {
  background: #082b34;
  color: #ffffff;
  border-color: #082b34;
}
.nm-fb-stars {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 700;
}
.nm-fb-star {
  border: none;
  background: none;
  font-size: 20px;
  cursor: pointer;
  color: #cbd5e1;
  padding: 0;
  line-height: 1;
}
.nm-fb-star.on {
  color: #f2a922;
}
.nm-fb-input,
.nm-fb-ta {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 9px 11px;
  font-family: inherit;
  font-size: 12.5px;
  margin-bottom: 8px;
  outline: none;
}
.nm-fb-input:focus,
.nm-fb-ta:focus {
  border-color: #008b74;
  box-shadow: 0 0 0 3px rgba(0, 139, 116, 0.14);
}
.nm-fb-btn {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #008b74, #082b34);
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}
.nm-fb-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}
.nm-fb-msg {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}
.nm-fb-media-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}
.nm-fb-mbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px dashed rgba(8, 43, 52, 0.28);
  background: #f8fafc;
  color: #082b34;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
}
.nm-fb-mbtn:hover {
  border-color: #008b74;
  background: #ecfdf5;
}
.nm-fb-mbtn.rec {
  border-style: solid;
  border-color: #dc2626;
  background: #fef2f2;
  color: #b91c1c;
}
.nm-fb-preview {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}
.nm-fb-preview-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 10px;
  background: #f1f5f9;
  font-size: 11.5px;
}
.nm-fb-thumb {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
}
.nm-fb-audio {
  width: 100%;
  height: 32px;
}
.nm-fb-rm {
  border: none;
  background: #fee2e2;
  color: #b91c1c;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
@media print {
  .nm-fb-fab,
  .nm-fb-backdrop {
    display: none !important;
  }
}
