.tool-rating-backdrop {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(8, 24, 48, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.tool-rating-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.tool-rating-card {
  width: min(100%, 420px);
  padding: 1.5rem 1.5rem 1.25rem;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--border, #d8e0ea);
  box-shadow: 0 24px 60px rgba(11, 76, 138, 0.22);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.2s ease;
}

.tool-rating-backdrop.is-open .tool-rating-card {
  transform: translateY(0) scale(1);
}

.tool-rating-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.tool-rating-card > p {
  color: var(--muted, #5b6777);
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

.tool-rating-stars {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.tool-rating-star {
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 10px;
  background: rgba(11, 76, 138, 0.06);
  color: #c5cdd8;
  font-size: 1.25rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.tool-rating-star:hover,
.tool-rating-star.is-active {
  background: rgba(245, 165, 36, 0.18);
  color: var(--accent, #f5a524);
  transform: translateY(-1px);
}

.tool-rating-feedback {
  width: 100%;
  min-height: 4.5rem;
  margin-bottom: 0.85rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--border, #d8e0ea);
  font: inherit;
  resize: vertical;
}

.tool-rating-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
}

.tool-rating-thanks {
  text-align: center;
  padding: 0.5rem 0;
}

.tool-rating-thanks i {
  color: var(--accent, #f5a524);
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}
