* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: #1f2937;
  background: linear-gradient(135deg, #eef2ff 0%, #f8fafc 50%, #ecfdf5 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.card {
  background: #fff;
  padding: 2.5rem 2rem;
  border-radius: 16px;
  width: 100%;
  max-width: 420px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(15, 23, 42, .08);
  border: 1px solid #e5e7eb;
}

.icone {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: #ecfdf5;
  color: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
}

h1 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card > p {
  color: #6b7280;
  font-size: 0.95rem;
  margin-bottom: 1.75rem;
}

.slider {
  position: relative;
  height: 56px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
  user-select: none;
  touch-action: none;
}

.trilha {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: #10b981;
}

.texto {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 40px;
  color: #9ca3af;
  font-size: 0.9rem;
  font-weight: 500;
  pointer-events: none;
  background: linear-gradient(90deg, #9ca3af 40%, #d1d5db 50%, #9ca3af 60%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: brilho 2s linear infinite;
}

@keyframes brilho {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

.botao {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: #111827;
  color: #fff;
  cursor: grab;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.botao:active { cursor: grabbing; }
.check { display: none; }

.slider.ok .botao { background: #059669; cursor: default; }
.slider.ok .seta { display: none; }
.slider.ok .check { display: block; }
.slider.ok .texto {
  animation: none;
  -webkit-text-fill-color: #fff;
  padding-left: 0;
}

.slider.voltando .botao,
.slider.voltando .trilha { transition: left .3s, width .3s; }

.msg {
  min-height: 1.5rem;
  font-size: 0.9rem;
  margin-top: 1rem;
}

.msg.erro { color: #dc2626; }
.msg.ok { color: #059669; }

.rodape {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  color: #9ca3af;
}

.sucesso {
  position: fixed;
  inset: 0;
  background: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: circle(0% at 50% 50%);
  pointer-events: none;
  z-index: 10;
}

.sucesso.ativo {
  animation: expandir .5s ease-out forwards;
}

@keyframes expandir {
  to { clip-path: circle(150% at 50% 50%); }
}

.check-grande {
  width: 120px;
  height: 120px;
  stroke: #fff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.check-grande circle {
  stroke-dasharray: 160;
  stroke-dashoffset: 160;
}

.check-grande path {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
}

.sucesso.ativo circle { animation: tracar .4s .3s ease-out forwards; }
.sucesso.ativo path   { animation: tracar .3s .6s ease-out forwards; }

@keyframes tracar {
  to { stroke-dashoffset: 0; }
}

.particula {
  position: fixed;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 5;
  animation: voar .8s ease-out forwards;
}

@keyframes voar {
  to {
    transform: translate(var(--dx), var(--dy)) scale(0);
    opacity: 0;
  }
}
