:root {
  --bg0: #07060b;
  --bg1: #0b0912;
  --card: rgba(255, 255, 255, 0.08);
  --card2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.14);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.72);
  --muted2: rgba(255, 255, 255, 0.55);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  --shadow2: 0 12px 36px rgba(0, 0, 0, 0.45);
  --purple: #a855f7;
  --purple2: #7c3aed;
  --purpleGlow: rgba(168, 85, 247, 0.42);
  --ring: rgba(168, 85, 247, 0.35);
  --danger: #ff5c8a;
  --ok: #66f2c2;
  --radius: 20px;
  --radius2: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji",
    "Segoe UI Emoji";
  color: var(--text);
  background: radial-gradient(900px 520px at 20% 15%, rgba(124, 58, 237, 0.22), transparent 60%),
    radial-gradient(760px 460px at 78% 8%, rgba(168, 85, 247, 0.18), transparent 55%),
    radial-gradient(760px 520px at 55% 90%, rgba(124, 58, 237, 0.14), transparent 55%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  overflow-x: hidden;
}

.bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 700px at 50% -10%, rgba(168, 85, 247, 0.18), transparent 60%),
    radial-gradient(900px 520px at 10% 110%, rgba(124, 58, 237, 0.14), transparent 62%);
  opacity: 0.9;
}

.bg__beam {
  position: absolute;
  left: -30vw;
  top: 0;
  width: 85vw;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.95), transparent);
  filter: drop-shadow(0 0 18px rgba(168, 85, 247, 0.4)) drop-shadow(0 0 40px rgba(124, 58, 237, 0.25));
  opacity: 0.22;
  transform: rotate(-18deg);
  animation: beamSlide 12s linear infinite;
}

.bg__beam--a { top: 12%; animation-duration: 13.5s; opacity: 0.22; --r: -18deg; }
.bg__beam--b { top: 28%; animation-duration: 11s;  opacity: 0.18; --r: -14deg; }
.bg__beam--c { top: 46%; animation-duration: 15s;  opacity: 0.16; --r: -20deg; }
.bg__beam--d { top: 66%; animation-duration: 10.5s; opacity: 0.14; --r: -16deg; }
.bg__beam--e { top: 82%; animation-duration: 14.5s; opacity: 0.12; --r: -22deg; }

.page {
  min-height: calc(100vh - 72px);
  display: grid;
  place-items: center;
  padding: 34px 14px 24px;
  position: relative;
  z-index: 1;
}

.card {
  width: min(92vw, 540px);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.05));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 26px 22px 20px;
  position: relative;
  overflow: hidden;
  animation: float 6.5s var(--ease) infinite;
}

.card::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: radial-gradient(520px 220px at 50% 0%, rgba(168, 85, 247, 0.24), transparent 70%),
    radial-gradient(420px 260px at 20% 110%, rgba(124, 58, 237, 0.16), transparent 65%);
  pointer-events: none;
  opacity: 0.95;
}

.card > * {
  position: relative;
  z-index: 1;
}

.card__header {
  text-align: center;
  padding: 6px 6px 4px;
}

.title {
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.subtitle {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.5;
}

.rating {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 18px 0 6px;
  flex-wrap: wrap;
}

.star {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 12px;
  border-radius: 14px;
  cursor: pointer;
  position: relative;
  transition: transform 220ms var(--ease), background-color 220ms var(--ease), box-shadow 220ms var(--ease);
  outline: none;
}

.star::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  opacity: 0;
  transition: opacity 220ms var(--ease);
}

.star__icon {
  display: block;
  font-size: 34px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.22);
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.25));
  transition: transform 240ms var(--ease), color 240ms var(--ease), filter 240ms var(--ease);
}

.star:hover {
  transform: translateY(-1px) scale(1.03);
}

.star:hover::after {
  opacity: 1;
}

.star:focus-visible {
  box-shadow: 0 0 0 4px var(--ring);
}

.star.is-active .star__icon {
  color: rgba(255, 255, 255, 0.96);
  filter: drop-shadow(0 10px 22px var(--purpleGlow)) drop-shadow(0 2px 10px rgba(0, 0, 0, 0.35));
}

.star.is-preview .star__icon {
  color: rgba(255, 255, 255, 0.82);
  filter: drop-shadow(0 12px 22px rgba(168, 85, 247, 0.28)) drop-shadow(0 2px 10px rgba(0, 0, 0, 0.35));
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
  margin: 12px 0 6px;
}

.feedback {
  padding: 14px 4px 2px;
  display: none;
}

.feedback.is-open {
  display: block;
  animation: panelIn 420ms var(--ease) both;
}

.feedback__header {
  text-align: left;
  margin-bottom: 12px;
}

.feedback__title {
  margin: 0;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.feedback__subtitle {
  margin: 7px 0 0;
  font-size: 13px;
  color: var(--muted2);
  line-height: 1.45;
}

.form {
  display: grid;
  gap: 12px;
}

.field {
  display: grid;
  gap: 7px;
}

.label {
  font-size: 12.5px;
  color: var(--muted);
}

.input,
.textarea {
  width: 100%;
  border-radius: var(--radius2);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 12px 12px;
  font-size: 14px;
  outline: none;
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease), background-color 200ms var(--ease);
}

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

.input::placeholder,
.textarea::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.input:focus,
.textarea:focus {
  border-color: rgba(168, 85, 247, 0.55);
  box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.18);
  background: rgba(255, 255, 255, 0.075);
}

.hint {
  margin: 0;
  min-height: 16px;
  font-size: 12px;
  color: rgba(255, 92, 138, 0.92);
}

.actions {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

.btn {
  width: 100%;
  border: 0;
  border-radius: 16px;
  padding: 12px 14px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 650;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, var(--purple), var(--purple2));
  box-shadow: 0 16px 36px rgba(124, 58, 237, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 220ms var(--ease), filter 220ms var(--ease), box-shadow 220ms var(--ease);
  position: relative;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 20px 44px rgba(124, 58, 237, 0.34);
}

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

.btn:disabled {
  cursor: not-allowed;
  filter: saturate(0.85) brightness(0.92);
  box-shadow: 0 10px 24px rgba(124, 58, 237, 0.22);
}

.btn__spinner {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: rgba(255, 255, 255, 0.95);
  display: none;
  animation: spin 820ms linear infinite;
}

.btn.is-loading .btn__spinner {
  display: inline-block;
}

.status {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
}

.status.is-error {
  color: rgba(255, 92, 138, 0.95);
}

.status.is-ok {
  color: rgba(102, 242, 194, 0.95);
}

.success {
  margin-top: 12px;
  padding: 14px 14px;
  border-radius: 18px;
  border: 1px solid rgba(102, 242, 194, 0.18);
  background: linear-gradient(180deg, rgba(102, 242, 194, 0.08), rgba(255, 255, 255, 0.035));
  box-shadow: var(--shadow2);
  display: none;
  gap: 12px;
  align-items: center;
}

.success.is-show {
  display: grid;
  grid-template-columns: 34px 1fr;
  animation: successIn 520ms var(--ease) both;
}

.success__badge {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.9), rgba(102, 242, 194, 0.65));
  box-shadow: 0 10px 26px rgba(102, 242, 194, 0.22);
  position: relative;
}

.success__badge::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 7px;
  border-left: 3px solid rgba(7, 6, 11, 0.8);
  border-bottom: 3px solid rgba(7, 6, 11, 0.8);
  transform: rotate(-45deg);
  left: 11px;
  top: 13px;
}

.success__title {
  margin: 0;
  font-size: 13.5px;
  font-weight: 650;
}

.success__subtitle {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: var(--muted2);
}

.hp {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.footer {
  padding: 22px 14px 26px;
  background:
    radial-gradient(900px 240px at 50% 0%, rgba(168, 85, 247, 0.12), transparent 70%),
    linear-gradient(180deg, rgba(7, 6, 11, 0), rgba(7, 6, 11, 0.78) 28%, rgba(7, 6, 11, 0.96));
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  position: relative;
  z-index: 1;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.55), rgba(255, 255, 255, 0.22), rgba(124, 58, 237, 0.45), transparent);
  opacity: 0.55;
}

.footer::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 220px at 50% 12%, rgba(168, 85, 247, 0.10), transparent 70%),
    radial-gradient(520px 220px at 20% 80%, rgba(124, 58, 237, 0.08), transparent 70%);
  pointer-events: none;
  opacity: 0.9;
}

.footer__inner {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.64);
  letter-spacing: 0.02em;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  z-index: 1;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes beamSlide {
  0% {
    transform: translateX(-10vw) translateY(0) rotate(var(--r, -18deg));
  }
  100% {
    transform: translateX(180vw) translateY(0) rotate(var(--r, -18deg));
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0px);
  }
}

@keyframes successIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0px) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .card {
    animation: none;
  }
  .star,
  .star__icon,
  .btn {
    transition: none;
  }
  .bg__beam {
    animation: none;
  }
}

@media (max-width: 420px) {
  .card {
    padding: 22px 16px 18px;
    border-radius: 18px;
  }
  .star {
    padding: 12px;
  }
  .star__icon {
    font-size: 32px;
  }
  .title {
    font-size: 22px;
  }
  .subtitle {
    font-size: 13.5px;
  }
  .input,
  .textarea {
    font-size: 16px;
  }
  .footer {
    padding: 18px 12px 22px;
  }
  .footer__inner {
    width: fit-content;
    max-width: 92vw;
    padding: 10px 12px;
  }
}
