:root {
  --brand: #6d28d9;
  --brand-dark: #581c87;
  --bg: #f3f4f6;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e5e7eb;
  --gold: #f59e0b;
  --radius: 22px;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body {
  font-family: var(--font);
  background: radial-gradient(900px 500px at 50% -10%, #ede9fe 0%, var(--bg) 55%);
  color: var(--text);
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; padding: 20px;
  -webkit-font-smoothing: antialiased;
}
.card {
  background: var(--card); width: 100%; max-width: 410px;
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 34px 28px 26px; text-align: center; animation: rise .4s ease both;
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.logo {
  width: 80px; height: 80px; border-radius: 22px; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 34px; font-weight: 800; color: #fff; overflow: hidden;
  background: linear-gradient(135deg, var(--brand), #8b5cf6);
}
.logo img { width: 100%; height: 100%; object-fit: cover; }
.biz-name { font-size: 23px; font-weight: 800; }
.biz-tag { color: var(--muted); font-size: 14px; margin-top: 4px; }
.prompt { font-size: 18px; font-weight: 700; margin: 24px 0 6px; }
.sub { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.stars { display: flex; justify-content: center; gap: 8px; margin: 8px 0; }
.star {
  font-size: 44px; line-height: 1; color: #d8dade; cursor: pointer;
  transition: transform .12s ease, color .12s ease; user-select: none; -webkit-tap-highlight-color: transparent;
}
.star:hover { transform: scale(1.14); }
.star.active { color: var(--gold); }
.actions { margin-top: 20px; display: none; }
.actions.show { display: block; animation: rise .3s ease both; }
.actions-title { font-size: 16px; font-weight: 700; margin: 6px 0 14px; }
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  border: none; border-radius: 13px; padding: 16px 18px; font-size: 16px; font-weight: 700;
  cursor: pointer; text-decoration: none; font-family: inherit;
  transition: filter .15s ease, transform .05s ease;
}
.btn:active { transform: scale(.99); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 22px rgba(109,40,217,.32); }
.btn-primary:hover { filter: brightness(1.07); }
.feedback { margin-top: 14px; display: none; text-align: left; }
.feedback.show { display: block; animation: rise .3s ease both; }
.feedback label { font-size: 14px; color: var(--muted); display: block; margin-bottom: 8px; }
.feedback textarea {
  width: 100%; border: 1px solid var(--border); border-radius: 12px; padding: 12px;
  font-size: 15px; font-family: inherit; resize: vertical; min-height: 96px;
}
.done { margin-top: 18px; font-size: 16px; font-weight: 700; color: var(--brand); display: none; }
.done.show { display: block; animation: rise .3s ease both; }
.footer-note { margin-top: 24px; font-size: 11px; color: #9aa3b2; }
.footer-note a { color: var(--brand); text-decoration: none; }
.error-box h2 { margin-bottom: 8px; }
.error-box p { color: var(--muted); }
