/*
 * Identidade Futuristas, na paleta do logo: fundo #1A162A e roxo #773DF9. O site é sempre escuro, como a marca.
 * Os botões dizem o que fazem pela cor: verde avança (todo botão de ação), contorno neutro recusa
 * ("Não sou eu") e vermelho desfaz ("Encerrar instalação", "Sair"). O roxo fica para a marca e o progresso;
 * o dourado, para as estrelas, o código grande e o que espera o aluno no painel.
 */
:root {
  --bg: #1a162a;
  --bg-deep: #120f1f;
  --surface: #221d37;
  --surface-2: #2e2849;
  --line: rgb(255 255 255 / 0.09);
  --line-strong: rgb(255 255 255 / 0.18);
  --purple: #773df9;
  --lavender: #a684ff;
  --gold: #f5b73c;
  --green: #22c55e;
  --green-hover: #3ad571;
  --green-text: #4ade80;
  --green-soft: rgb(34 197 94 / 0.12);
  --on-green: #052e16;
  --red: #ff7a7a;
  --red-soft: rgb(255 122 122 / 0.1);
  --text: #ffffff;
  --body: #d9d5e8;
  --muted: #948fa8;
  --radius-card: 20px;
  --radius-field: 14px;
  --shadow-card: 0 1px 0 rgb(255 255 255 / 0.04) inset, 0 18px 40px -24px rgb(0 0 0 / 0.7);
  color-scheme: dark;
  font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

/* Em coluna, para o rodapé ficar no fim da tela. Cada filho direto que centraliza com margin: auto precisa de
   width: 100%, senão encolhe para o tamanho do conteúdo. */
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-wrap: break-word;
  background:
    radial-gradient(60rem 30rem at 100% -10%, rgb(119 61 249 / 0.24), transparent 60%),
    radial-gradient(40rem 24rem at -20% 110%, rgb(119 61 249 / 0.1), transparent 60%),
    var(--bg);
}
img {
  max-width: 100%;
}

h1,
h2 {
  font-family: 'Hubot Sans', 'DM Sans', system-ui, sans-serif;
  color: var(--text);
  line-height: 1.15;
  margin: 0 0 0.5em;
}
h1 {
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}
h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 2rem;
}
strong {
  color: var(--text);
}
a {
  color: var(--lavender);
}

/* ---- Topo: logo + trilha das 7 etapas ---- */
.top {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 22px 16px 0;
}
.brand {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: center;
}
.brand img {
  display: block;
  width: auto;
  height: 30px;
}
.brand-tag {
  padding: 3px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}
.trail {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin: 22px 0 10px;
  padding: 0;
}
.trail li {
  height: 6px;
  border-radius: 3px;
  background: var(--surface-2);
  font-size: 0; /* o nome da etapa atual aparece em .trail-label */
}
.trail li.done {
  background: var(--purple);
}
.trail li.current {
  background: linear-gradient(90deg, var(--purple), var(--lavender));
  box-shadow: 0 0 12px rgb(166 132 255 / 0.55);
}
.trail-label {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 8px;
  align-items: baseline;
  margin: 0;
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
}
.trail-step {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lavender);
}

/* ---- Rodapé: OpenClaw e Hostinger ---- */
.foot {
  width: 100%;
  max-width: 560px;
  margin: auto auto 0;
  padding: 20px 16px 28px;
  border-top: 1px solid var(--line);
}
.foot p {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.foot .maker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--body);
  font-weight: 500;
}
.foot img {
  display: block;
  width: 18px;
  height: 18px;
}

/* ---- Telas ---- */
main {
  max-width: 560px;
  width: 100%;
  margin: 0 auto;
  padding: 28px 16px 56px;
}
.lead {
  font-size: 1.05rem;
  margin: 0 0 1.5rem;
}

/* Cartões: a mesma superfície em todas as telas (o que preparar, passos numerados, pedido de pareamento). */
.needs li,
.howto > li,
.pair-request {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: linear-gradient(180deg, rgb(255 255 255 / 0.035), transparent 70%), var(--surface);
  box-shadow: var(--shadow-card);
}
.needs {
  padding: 0;
  margin: 0 0 1.5rem;
  list-style: none;
  display: grid;
  gap: 14px;
}
.needs li {
  padding: 16px 18px;
}
.shot {
  margin: 12px 0 0;
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.shot figcaption {
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Tela 1: versão que o aluno vai receber, plano indicado com o cupom, e o aviso que o clique em "Começar" aceita. */
.version-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: -0.5rem 0 0.5rem;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgb(166 132 255 / 0.4);
  background: rgb(119 61 249 / 0.12);
  font-size: 0.88rem;
  color: var(--body);
}
.version-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}
.version-badge[hidden] {
  display: none;
}
.needs li.plan {
  border-color: rgb(34 197 94 / 0.45);
}
.coupon {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
  margin-top: 10px;
  font-size: 0.92rem;
}
.coupon .code {
  color: var(--gold);
  letter-spacing: 0.08em;
  user-select: all;
}
.consent {
  margin: 0 0 14px;
  font-size: 0.92rem;
  color: var(--muted);
}
.consent p {
  margin: 0;
}
.consent details {
  margin-top: 6px;
}
.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
  color: var(--text);
}
.check input {
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  flex: none;
  accent-color: var(--green);
}
details {
  margin-top: 12px;
}
summary {
  cursor: pointer;
  color: var(--lavender);
  font-weight: 500;
}
details p {
  margin: 8px 0 0;
  font-size: 0.95rem;
}

/* Avisos em destaque: cadeado (nenhuma senha gravada) e requisito do ChatGPT Plus. */
.notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0 0 1.25rem;
  padding: 14px 16px;
  border-radius: var(--radius-field);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-size: 0.95rem;
}
.notice-icon {
  flex: none;
  margin-top: 1px;
}
.notice.lock {
  border-color: rgb(34 197 94 / 0.45);
  background: var(--green-soft);
}
.notice.lock .notice-icon {
  color: var(--green-text);
}
.notice.plan-required {
  border-color: rgb(245 183 60 / 0.6);
  background: rgb(245 183 60 / 0.1);
}
.openai-badge {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #000000;
  border: 1px solid var(--line-strong);
}
.openai-badge img {
  display: block;
  width: 24px;
  height: 24px;
}

/* Tela 2: a ilustração do hPanel vem antes dos campos; os números da legenda repetem os destaques dela. */
.shot.hpanel {
  margin: 0 0 1.5rem;
}
.shot.hpanel figcaption {
  font-size: 0.92rem;
  color: var(--body);
}
.shot figcaption strong {
  display: inline-grid;
  place-items: center;
  width: 1.4em;
  height: 1.4em;
  margin: 0 2px;
  border-radius: 50%;
  font-size: 0.8em;
  color: #1d1e2c;
  background: var(--gold);
}

/* ---- Formulário ---- */
.field {
  display: grid;
  gap: 6px;
  margin-bottom: 20px;
}
.field > span:first-child {
  color: var(--text);
  font-weight: 500;
}
.field small {
  color: var(--muted);
  font-size: 0.85rem;
}
input[type='text'],
input[type='email'],
input:not([type]),
input[type='password'],
textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  font: inherit;
  font-size: 1.05rem;
  color: var(--text);
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius-field);
}
input:focus,
textarea:focus {
  border-color: var(--lavender);
}
textarea {
  min-height: 0;
  resize: vertical;
}
input:focus-visible,
textarea:focus-visible,
button:focus-visible,
summary:focus-visible,
.check input:focus-visible {
  outline: 3px solid var(--lavender);
  outline-offset: 2px;
}
.password {
  position: relative;
  display: block;
}
.password input {
  padding-right: 96px;
}
.password button {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
}
.form-error {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: var(--radius-field);
  background: var(--red-soft);
  color: var(--red);
}

/* ---- Botões ----
 * .primary e .button-link: verde cheio, para o próximo passo.
 * .secondary: verde mais leve, para as outras ações (copiar, mostrar, enviar, usar o bot já ligado…).
 * .decline: contorno neutro, para recusar ("Não sou eu").
 * .danger: vermelho, para desfazer ("Encerrar instalação", "Sair").
 * .small: versão compacta de qualquer um deles. */
button {
  font: inherit;
  cursor: pointer;
  border: 0;
  border-radius: 999px;
}
.primary,
.secondary,
.decline,
.danger {
  min-height: 48px;
  padding: 0 20px;
  font-weight: 700;
  transition:
    background-color 0.15s,
    border-color 0.15s,
    box-shadow 0.15s;
}
.primary {
  width: 100%;
  min-height: 54px;
  padding: 0 24px;
  font-size: 1.05rem;
  color: var(--on-green);
  background: var(--green);
  box-shadow: 0 10px 28px -14px rgb(34 197 94 / 0.8);
}
.primary:hover:not(:disabled) {
  background: var(--green-hover);
}
.secondary {
  color: var(--green-text);
  background: var(--green-soft);
  border: 1px solid rgb(34 197 94 / 0.5);
}
.secondary:hover:not(:disabled) {
  background: rgb(34 197 94 / 0.2);
  border-color: var(--green-text);
}
.decline {
  font-weight: 500;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line-strong);
}
.decline:hover:not(:disabled) {
  border-color: var(--muted);
  background: rgb(255 255 255 / 0.04);
}
.danger {
  color: var(--red);
  background: var(--red-soft);
  border: 1px solid rgb(255 122 122 / 0.6);
}
.danger:hover:not(:disabled) {
  background: rgb(255 122 122 / 0.18);
  border-color: var(--red);
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.small {
  min-height: 38px;
  padding: 0 14px;
  font-size: 0.85rem;
}
/* Tela 6: pedido de pareamento para o aluno confirmar ("Sim, sou eu" verde, "Não sou eu" neutro) */
.pair-requests {
  display: grid;
  gap: 12px;
}
.pair-request {
  padding: 18px;
  border-color: rgb(119 61 249 / 0.7);
}
.pair-request p {
  margin: 0;
}
.pair-request .inline-actions button {
  flex: 1 1 180px;
  width: auto;
  min-height: 52px;
}
.pair-note {
  color: var(--muted);
  font-size: 0.95rem;
}
.pair-manual form {
  margin-top: 12px;
}
/* Telas 5 e 6: atalhos para quem roda o instalador de novo (bot já ligado, já pareado). */
.rerun-skip {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
}
.rerun-skip .secondary {
  width: 100%;
}
.actions {
  display: grid;
  gap: 10px;
  margin: 20px 0;
}

/* ---- Tela 3: barra de progresso e linha ao vivo ---- */
.progress {
  margin: 0 0 1.25rem;
  padding: 18px;
  border: 1px solid rgb(119 61 249 / 0.55);
  border-radius: var(--radius-card);
  background: linear-gradient(180deg, rgb(119 61 249 / 0.14), transparent 80%), var(--surface);
  box-shadow: var(--shadow-card);
}
.progress-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--text);
  font-weight: 500;
}
.progress-percent {
  font-family: 'Hubot Sans', 'DM Sans', system-ui, sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.progress-track {
  height: 12px;
  border-radius: 6px;
  background: var(--bg-deep);
  overflow: hidden;
}
.progress-fill {
  width: 0;
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--purple), var(--lavender));
  box-shadow: 0 0 14px rgb(166 132 255 / 0.6);
  transition: width 1s linear;
}
.activity {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 12px 0 0;
  min-height: 1.55em;
  color: var(--body);
  font-size: 0.95rem;
}
.activity::before {
  content: '';
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lavender);
  animation: pulse 1.6s ease-in-out infinite;
}
.activity[hidden] {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  .progress-fill {
    transition: none;
  }
  .activity::before {
    animation: none;
  }
}

/* Tela 3: o que preparar para as próximas telas, e dicas enquanto a instalação roda. */
.hint {
  margin: -0.25rem 0 12px;
  color: var(--muted);
  font-size: 0.95rem;
}
.prepare {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: grid;
  gap: 10px;
}
.prepare li {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-field);
  background: var(--surface);
  font-size: 0.95rem;
}
.prepare .check {
  color: var(--body);
}
.tips-carousel {
  padding: 4px 18px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.tips-carousel h2 {
  margin-top: 14px;
  font-size: 1.05rem;
}
.tips-track {
  list-style: none;
  margin: 0;
  padding: 0;
  min-height: 5.5em;
}
.tips-track li {
  margin: 0;
}
.tips-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}
.tips-controls .small {
  width: 44px;
  min-height: 44px;
  padding: 0;
  font-size: 1.4rem;
  line-height: 1;
}
.tips-dots {
  display: flex;
  gap: 6px;
}
.tips-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--surface-2);
}
.tips-dots span.on {
  background: var(--lavender);
}

/* ---- Etapas da instalação ---- */
.steps {
  list-style: none;
  padding: 6px 16px;
  margin: 0 0 1.5rem;
  display: grid;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.steps li {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.steps li:last-child {
  border-bottom: 0;
}
.steps .icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--surface-2);
}
.steps li.concluida {
  color: var(--body);
}
.steps li.concluida .icon {
  border-color: var(--green);
  background:
    no-repeat center / 14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23052E16' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"),
    var(--green);
}
.steps li.em_andamento {
  color: var(--text);
  font-weight: 500;
}
.steps li.em_andamento .icon {
  border-color: var(--lavender);
  animation: pulse 1.6s ease-in-out infinite;
}
.steps li.falhou {
  color: var(--red);
}
.steps li.falhou .icon {
  border-color: var(--red);
  background: var(--red);
}
.steps .time {
  font-size: 0.8rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
@keyframes pulse {
  50% {
    box-shadow: 0 0 0 6px rgb(166 132 255 / 0.25);
  }
}
@media (prefers-reduced-motion: reduce) {
  .steps li.em_andamento .icon {
    animation: none;
    background: var(--lavender);
  }
}

/* ---- Código de diagnóstico ---- */
.code-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 0.9rem;
  color: var(--muted);
}
.code-line[hidden] {
  display: none;
}
.code {
  overflow-wrap: anywhere;
  font-family: ui-monospace, 'Cascadia Mono', Menlo, monospace;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--surface-2);
}

/* ---- Erro ---- */
.error-card {
  padding: 20px;
  border-radius: var(--radius-card);
  background: var(--red-soft);
  border: 1px solid rgb(255 122 122 / 0.35);
}
.error-card h1 {
  font-size: 1.6rem;
}
.error-card p {
  margin: 0 0 10px;
}
.error-action {
  color: var(--text);
}
.error-card pre {
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.8rem;
  color: var(--body);
  background: var(--bg-deep);
  padding: 10px;
  border-radius: 10px;
  max-height: 240px;
  overflow: auto;
}
.copied {
  color: var(--green-text);
  font-size: 0.9rem;
}
.report {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

/* ---- Telas 4 a 7: passos numerados, código grande, links que parecem botões ---- */
.howto {
  counter-reset: howto;
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: grid;
  gap: 14px;
}
.howto > li {
  counter-increment: howto;
  position: relative;
  padding: 16px 18px 16px 58px;
}
.howto > li::before {
  content: counter(howto);
  position: absolute;
  left: 16px;
  top: 15px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--purple);
  box-shadow: 0 0 0 4px rgb(119 61 249 / 0.18);
}
/* No celular, a ilustração de um passo usa a largura do cartão inteiro (o texto continua ao lado do número). */
@media (max-width: 480px) {
  .howto > li .shot {
    margin-left: -42px;
  }
}
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 12px 0 4px;
}
/* Botão solto na tela (teste final): afastado do aviso de espera logo abaixo. */
.screen > .inline-actions {
  margin: 0 0 20px;
}
.button-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  color: var(--on-green);
  text-decoration: none;
  background: var(--green);
  box-shadow: 0 10px 28px -14px rgb(34 197 94 / 0.8);
}
.button-link:hover {
  background: var(--green-hover);
}
.button-link:focus-visible {
  outline: 3px solid var(--lavender);
  outline-offset: 2px;
}
.button-link[hidden] {
  display: none;
}
.error-card .button-link {
  margin-top: 4px;
}
.bigcode {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}
.bigcode .code {
  font-size: 1.6rem;
  padding: 8px 16px;
  letter-spacing: 0.08em;
  color: var(--gold);
  user-select: all;
}
.waiting {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0 0 1rem;
  padding: 14px 16px;
  border: 1px dashed rgb(166 132 255 / 0.45);
  border-radius: var(--radius-card);
  background: rgb(119 61 249 / 0.08);
  color: var(--body);
}
.waiting::before {
  content: '';
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--lavender);
  animation: pulse 1.6s ease-in-out infinite;
}
.waiting[hidden] {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  .waiting::before {
    animation: none;
  }
}

/* Tela 4: espera do login, com relógio (o ponteiro dá uma volta por minuto). */
.clock-wait::before {
  display: none;
}
.clock-wait p {
  margin: 0;
}
.clock {
  flex: none;
  color: var(--lavender);
}
.clock-hand {
  transform-origin: 12px 12px;
  animation: tick 60s steps(60) infinite;
}
@keyframes tick {
  to {
    transform: rotate(360deg);
  }
}
.elapsed {
  margin-left: 4px;
  font-weight: 700;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.small-note {
  font-size: 0.85rem;
  color: var(--muted);
}
@media (prefers-reduced-motion: reduce) {
  .clock-hand {
    animation: none;
  }
}

/* Tela 5: a seta e o contorno dourados ligam o token destacado na ilustração ao campo. */
.paste-here {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: -0.5rem 0 0.5rem;
  font-weight: 700;
  color: var(--gold);
}
.paste-here::after {
  content: '';
  width: 2px;
  height: 22px;
  margin-top: 4px;
  background: linear-gradient(var(--gold), transparent);
}
.token-form {
  padding: 18px;
  border: 2px solid var(--gold);
  border-radius: var(--radius-card);
  background: rgb(245 183 60 / 0.06);
}
.token-form .field > .big-label {
  font-family: 'Hubot Sans', 'DM Sans', system-ui, sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
}
.token-form input {
  border-color: rgb(245 183 60 / 0.6);
}
.token-example {
  font-family: ui-monospace, 'Cascadia Mono', Menlo, monospace;
  color: var(--gold);
  overflow-wrap: anywhere;
}

/* ---- Sucesso ---- */
.success-card {
  padding: 22px 20px;
  border-radius: var(--radius-card);
  border: 1px solid rgb(34 197 94 / 0.45);
  background: linear-gradient(160deg, rgb(34 197 94 / 0.14), rgb(119 61 249 / 0.1));
  box-shadow: var(--shadow-card);
}
.success-card h1 {
  font-size: clamp(1.4rem, 1.1rem + 1.4vw, 1.8rem);
}
.celebration {
  margin: -6px -4px 16px;
}
.celebration img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}
.success-card .congrats {
  font-family: 'Hubot Sans', 'DM Sans', system-ui, sans-serif;
  font-size: clamp(2.4rem, 1.6rem + 3.6vw, 3.4rem);
  font-weight: 800;
  line-height: 1;
  color: var(--green-text);
  margin: 0 0 8px;
}
.success-card .version-badge {
  margin: 0 0 12px;
}
.next-team {
  margin: 20px 0 0;
  padding: 16px 18px;
  border-left: 4px solid var(--purple);
  border-radius: 0 var(--radius-field) var(--radius-field) 0;
  background: rgb(119 61 249 / 0.12);
  font-size: 1.05rem;
}
/* Confete: cai uma vez sobre a tela e some; não bloqueia cliques. */
.confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 10;
}
.confetti span {
  position: absolute;
  top: -16px;
  width: 8px;
  height: 14px;
  border-radius: 2px;
  opacity: 0;
  animation: confetti-fall 3s ease-in forwards;
}
@keyframes confetti-fall {
  0% {
    opacity: 1;
    transform: translate(0, 0) rotate(0);
  }
  85% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(var(--drift), 100vh) rotate(var(--spin));
  }
}
@media (prefers-reduced-motion: reduce) {
  .confetti {
    display: none;
  }
}
.success-card p {
  margin: 0 0 6px;
}
.tips {
  padding-left: 1.2rem;
  margin: 0 0 1.5rem;
  display: grid;
  gap: 8px;
}
.rating {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.rating fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 16px;
}
.rating legend {
  color: var(--text);
  font-weight: 500;
  margin-bottom: 8px;
}
/* Estrelas: as que vêm antes da escolhida (e ela) ficam douradas. */
.stars {
  display: flex;
  gap: 6px;
}
.stars input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.stars label {
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  color: var(--surface-2);
  padding: 2px;
}
.stars:has(input:checked) label {
  color: var(--gold);
}
.stars input:checked + label ~ label {
  color: var(--surface-2);
}
.stars input:focus-visible + label {
  outline: 2px solid var(--lavender);
  outline-offset: 2px;
  border-radius: 6px;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
