.fbp-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fbp-fade-in 0.25s ease;
}
@keyframes fbp-fade-in { from { opacity: 0; } to { opacity: 1; } }

.fbp-modal {
  background: var(--bg2, #1a1a2e);
  color: var(--text, #e5e7eb);
  border: 1px solid var(--border, #2a2a3e);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  width: 100%;
  max-width: 480px;
  padding: 28px;
  position: relative;
  animation: fbp-pop 0.25s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes fbp-pop { from { transform: scale(0.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.fbp-modal h3 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.fbp-modal .fbp-sub {
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--text3, #9ca3af);
  line-height: 1.5;
}

.fbp-stars {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin: 0 0 18px;
}
.fbp-star {
  font-size: 30px;
  cursor: pointer;
  color: var(--text3, #6b7280);
  transition: transform 0.15s, color 0.15s;
  user-select: none;
  line-height: 1;
}
.fbp-star:hover { transform: scale(1.15); }
.fbp-star.active { color: #f59e0b; }

.fbp-modal textarea {
  width: 100%;
  min-height: 110px;
  max-height: 240px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border, #2a2a3e);
  background: var(--bg, #0f0f1e);
  color: var(--text, #e5e7eb);
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.15s;
}
.fbp-modal textarea:focus { border-color: var(--accent, #3b82f6); }

.fbp-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.fbp-actions button {
  flex: 1;
  min-width: 130px;
  padding: 11px 16px;
  border-radius: 10px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.15s, transform 0.1s;
}
.fbp-actions button:active { transform: scale(0.97); }
.fbp-actions button:disabled { opacity: 0.5; cursor: not-allowed; }
.fbp-btn-primary {
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: white;
}
.fbp-btn-secondary {
  background: transparent;
  color: var(--text2, #9ca3af);
  border: 1px solid var(--border, #2a2a3e) !important;
}

.fbp-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  color: var(--text3, #6b7280);
  font-size: 22px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  line-height: 1;
}
.fbp-close:hover { color: var(--text, #e5e7eb); background: var(--bg, #0f0f1e); }

@media (max-width: 520px) {
  .fbp-modal { padding: 22px 18px; }
  .fbp-actions button { min-width: 100%; }
}
