.fb-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(12, 18, 28, 0.4);
  backdrop-filter: blur(8px);
  z-index: 9999;
  opacity: 0;
  transition: opacity 200ms ease-out;
}

.fb-modal.is-open {
  display: flex;
  opacity: 1;
}

.fb-card {
  width: min(700px, 100%);
  background: #ffffff;
  border: 1px solid #e6e8ec;
  border-radius: 14px;
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.18);
  padding: 24px 26px 22px;
  color: #0f172a;
  font-family: "Work Sans", sans-serif;
  position: relative;
  transform: translateY(10px) scale(0.98);
  opacity: 0;
  transition: transform 220ms ease-out, opacity 220ms ease-out, box-shadow 220ms ease-out;
}

.fb-modal.is-open .fb-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.fb-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.fb-head h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0.01em;
}

.fb-score {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #dbeafe;
  background: #eff6ff;
  color: #1d4ed8;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 12px;
  box-shadow: 0 8px 18px rgba(59, 130, 246, 0.18);
}

.fb-score::before {
  content: "★";
  font-size: 11px;
}

.fb-close {
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  color: #0f172a;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 180ms ease-out, transform 180ms ease-out, box-shadow 180ms ease-out;
}

.fb-close:hover {
  background: #e2e8f0;
  transform: scale(1.03);
}

.fb-close:focus-visible {
  outline: 2px solid rgba(59, 130, 246, 0.4);
  outline-offset: 2px;
}

.fb-sub {
  margin: 8px 0 18px;
  color: #5b6678;
}

.fb-form {
  display: grid;
  gap: 14px;
}

.fb-form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: #4b5563;
}

.fb-input,
.fb-textarea {
  width: 100%;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  color: #0f172a;
  font-family: "Work Sans", sans-serif;
  transition: border-color 180ms ease-out, background 180ms ease-out, box-shadow 180ms ease-out;
}

.fb-input:focus,
.fb-textarea:focus {
  outline: 2px solid rgba(59, 130, 246, 0.2);
  border-color: #93c5fd;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.35);
}

.fb-textarea {
  min-height: 120px;
  resize: vertical;
}

.fb-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
}

.fb-choice {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
}

.fb-choice button {
  border: none;
  background: #f8fafc;
  color: #0f172a;
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 600;
  transition: background 180ms ease-out, color 180ms ease-out;
}

.fb-choice button.is-selected {
  background: #e0f2fe;
}

.fb-choice button + button {
  border-left: 1px solid #e5e7eb;
}

.fb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.fb-btn {
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  color: #0f172a;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 160ms ease-out, box-shadow 160ms ease-out, background 160ms ease-out;
}

.fb-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.fb-btn:active {
  transform: translateY(0);
}

.fb-btn:focus-visible {
  outline: 2px solid rgba(59, 130, 246, 0.4);
  outline-offset: 2px;
}

.fb-btn-primary {
  border: none;
  color: #0b1320;
  background: linear-gradient(135deg, #60a5fa, #22d3ee);
  box-shadow: 0 10px 22px rgba(59, 130, 246, 0.25);
}

.fb-btn-primary:disabled {
  opacity: 0.7;
  cursor: default;
  box-shadow: none;
  transform: none;
}

.fb-status {
  font-size: 12px;
  color: #4b5563;
}

.fb-error {
  font-size: 12px;
  color: #ef4444;
}
