/* Visual alinhado com easyticketappcliente (checkout/header): Dosis + #8ed974 + logos reais */
:root {
  --et-green: #8ed974;
  --et-ink: #0f0f10;
  --et-text: #1b2423;
  --et-muted: rgba(27, 36, 35, 0.78);
  --et-line: rgba(57, 66, 65, 0.14);
  --et-soft: rgba(247, 250, 248, 0.9);
  --et-danger: #c62828;
  --et-radius: 22px;
  --et-shadow: 0 18px 50px rgba(15, 15, 16, 0.08);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: "Dosis", "Segoe UI", sans-serif;
  color: var(--et-text);
  background:
    radial-gradient(640px 280px at 12% 0%, rgba(142, 217, 116, 0.28), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #f7faf8 100%);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

[hidden] { display: none !important; }

.page {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 18px 16px 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.brand-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 4px 18px;
}

.brand-bar img.logo {
  height: 28px;
  width: auto;
  display: block;
}

.event-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(142, 217, 116, 0.18);
  border: 1px solid rgba(142, 217, 116, 0.35);
  color: var(--et-text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.event-chip::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--et-green);
}

.hero {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--et-radius);
  box-shadow: var(--et-shadow);
  padding: 22px 18px 18px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, #56b06f, var(--et-green), #c8f0b4);
}

.kicker {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(27, 36, 35, 0.55);
}

h1 {
  margin: 0 0 8px;
  font-size: clamp(1.55rem, 4vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--et-text);
}

.message {
  margin: 0;
  color: var(--et-muted);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 500;
  max-width: 42ch;
}

.steps {
  list-style: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin: 18px 0 4px;
  padding: 0;
  gap: 4px;
}

.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  min-width: 0;
}

.step::before {
  content: "";
  position: absolute;
  top: 13px;
  left: -50%;
  width: 100%;
  height: 2px;
  background: var(--et-line);
  z-index: 0;
}

.step:first-child::before { display: none; }

.step.is-done::before,
.step.is-active::before {
  background: rgba(142, 217, 116, 0.55);
}

.step-dot {
  position: relative;
  z-index: 1;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  background: var(--et-soft);
  border: 2px solid var(--et-line);
  color: rgba(27, 36, 35, 0.5);
  transition: background .25s ease, border-color .25s ease, color .25s ease;
}

.step-label {
  margin-top: 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: rgba(27, 36, 35, 0.55);
  line-height: 1.25;
  max-width: 90px;
}

.step.is-active .step-dot {
  background: var(--et-green);
  border-color: var(--et-green);
  color: var(--et-ink);
  box-shadow: 0 0 0 4px rgba(142, 217, 116, 0.22);
}

.step.is-active .step-label { color: var(--et-text); }

.step.is-done .step-dot {
  background: #3d9a56;
  border-color: #3d9a56;
  color: #fff;
}

.step.is-done .step-dot::after {
  content: "✓";
}

.step.is-done .step-dot { font-size: 0; }
.step.is-done .step-dot::after { font-size: 12px; }

.ring-wrap {
  display: grid;
  place-items: center;
  margin: 26px 0 6px;
}

.ring {
  --p: 0.18;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fff 0 58%, transparent 59%),
    conic-gradient(var(--et-green) calc(var(--p) * 1turn), rgba(142, 217, 116, 0.18) 0);
  display: grid;
  place-items: center;
  animation: softPulse 2.8s ease-in-out infinite;
}

.ring-inner { text-align: center; }

.ring-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(27, 36, 35, 0.55);
}

.ring-value {
  display: block;
  margin-top: 2px;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  color: var(--et-ink);
}

@keyframes softPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 10px 28px rgba(142, 217, 116, 0.18); }
  50% { transform: scale(1.015); box-shadow: 0 14px 34px rgba(142, 217, 116, 0.28); }
}

.is-ready .ring {
  animation: readyPop .6s ease;
}

@keyframes readyPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.minwait-card {
  margin-top: 16px;
  background: linear-gradient(180deg, rgba(142, 217, 116, 0.14), rgba(142, 217, 116, 0.05));
  border: 1px solid rgba(142, 217, 116, 0.35);
  border-radius: 16px;
  padding: 12px 14px;
}

.minwait-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.minwait-icon {
  font-size: 20px;
  flex: 0 0 auto;
}

.minwait-head > div {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.minwait-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--et-text);
}

.minwait-sub {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--et-muted);
  line-height: 1.4;
  margin-top: 1px;
}

.minwait-clock {
  flex: 0 0 auto;
  font-size: 1.3rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--et-ink);
}

.minwait-bar {
  margin-top: 10px;
  height: 6px;
  border-radius: 999px;
  background: rgba(142, 217, 116, 0.2);
  overflow: hidden;
}

.minwait-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #56b06f, var(--et-green));
  border-radius: 999px;
  transition: width 1s linear;
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.stat {
  background: var(--et-soft);
  border: 1px solid var(--et-line);
  border-radius: 16px;
  padding: 12px;
}

.stat .label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(27, 36, 35, 0.55);
  margin-bottom: 6px;
}

.stat .value {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--et-text);
}

.stat.wide { grid-column: 1 / -1; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(142, 217, 116, 0.22);
  color: var(--et-text);
  font-size: 0.95rem;
  font-weight: 800;
}

.status-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3d9a56;
  animation: blink 1.4s ease-in-out infinite;
}

.status-pill.ready {
  background: rgba(142, 217, 116, 0.4);
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.hint {
  margin: 0;
  color: var(--et-muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.error-text {
  margin: 14px 0 0;
  color: var(--et-danger);
  font-weight: 700;
  text-align: center;
  font-size: 14px;
}

.actions {
  margin-top: 14px;
  display: flex;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  background: #8ed974 !important;
  color: #0f0f10 !important;
  text-decoration: none;
  font-weight: 800;
  font-size: 15px;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(142, 217, 116, 0.35);
  transition: transform .15s ease, box-shadow .15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(142, 217, 116, 0.42);
}

.faq {
  margin-top: 16px;
  border-top: 1px solid var(--et-line);
  padding-top: 12px;
}

.faq summary {
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--et-text);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::before {
  content: "+";
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(142, 217, 116, 0.22);
  color: var(--et-text);
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 800;
  transition: transform .2s ease;
}

.faq[open] summary::before {
  content: "−";
}

.faq-body {
  margin-top: 10px;
  padding-left: 28px;
}

.faq-body p {
  margin: 0 0 10px;
  color: var(--et-muted);
  font-size: 13px;
  line-height: 1.55;
}

.faq-body ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-body li {
  font-size: 13px;
  line-height: 1.5;
  color: var(--et-muted);
  padding-left: 16px;
  position: relative;
}

.faq-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--et-green);
}

.faq-body li strong { color: var(--et-text); }

.footer {
  margin-top: auto;
  padding-top: 22px;
  text-align: center;
  color: rgba(27, 36, 35, 0.55);
  font-size: 13px;
  font-weight: 600;
}

.footer strong { color: var(--et-text); }

.state-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--et-radius);
  box-shadow: var(--et-shadow);
  padding: 22px 18px;
}

.state-card h1 {
  margin: 0 0 8px;
  font-size: 1.4rem;
  color: var(--et-danger);
}

.state-card p {
  margin: 0 0 12px;
  color: var(--et-muted);
  line-height: 1.55;
  font-size: 14px;
}

@media (max-width: 480px) {
  .page { padding: 14px 14px 24px; }
  .brand-bar { flex-wrap: wrap; }
  .ring { width: 148px; height: 148px; }
  .ring-value { font-size: 2.6rem; }
  .stats { grid-template-columns: 1fr; }
  .stat.wide { grid-column: auto; }
  .step-label { font-size: 9.5px; max-width: 72px; }
  .minwait-head { flex-wrap: wrap; }
  .minwait-clock { width: 100%; text-align: right; }
  .faq-body { padding-left: 0; }
}
