:root{
  --purple: #7c1fd6;
  --purple-dark: #5c15a3;
  --purple-soft: #f4ecfc;
  --ink: #1c1626;
  --ink-soft: #6f6a7a;
  --line: #ece8f2;
  --bg: #f7f5fa;
  --ok: #1f9d55;
}

*{ box-sizing:border-box; }

body{
  margin:0;
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--ink);
  display:flex;
  justify-content:center;
  align-items:flex-start;
  padding: 40px 16px;
  min-height:100vh;
}

.page{
  width:100%;
  max-width: 560px;
  background:#fff;
  border-radius: 20px;
  overflow:hidden;
  box-shadow: 0 20px 50px rgba(28,22,38,0.12);
  display:flex;
  flex-direction:column;
}

.topbar{
  display:flex;
  align-items:center;
  gap:12px;
  padding: 20px 28px 16px;
}
.back-arrow{
  font-size:20px;
  color: var(--purple);
  line-height:1;
}
.topbar h1{
  font-size:16px;
  font-weight:700;
  margin:0;
}

.body-scroll{
  padding: 8px 28px 32px;
}

.card{
  background:#fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  margin-bottom:14px;
}

.waiting-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom: 8px;
}
.waiting-head h2{
  font-size:17px;
  margin:0;
  font-weight:700;
}

.spinner{
  width:20px;
  height:20px;
  border: 2.5px solid var(--purple-soft);
  border-top-color: var(--purple);
  border-radius:50%;
  animation: spin 0.9s linear infinite;
  flex-shrink:0;
}
@keyframes spin{ to { transform: rotate(360deg); } }

.waiting-desc{
  font-size:13.5px;
  color: var(--ink-soft);
  line-height:1.5;
  margin: 0 0 16px 0;
}

.copy-btn{
  width:100%;
  background: var(--purple);
  color:#fff;
  border:none;
  border-radius: 10px;
  padding: 14px;
  font-size: 15px;
  font-weight:700;
  cursor:pointer;
  transition: background .15s ease, transform .05s ease;
}
.copy-btn:hover{ background: var(--purple-dark); }
.copy-btn:active{ transform: scale(0.99); }
.copy-btn.copied{ background: var(--ok); }

.timer-row{
  display:flex;
  align-items:center;
  gap:6px;
  font-size:12.5px;
  color: var(--ink-soft);
  margin: 18px 0 6px;
}
.timer-value{
  font-size: 26px;
  font-weight:700;
  letter-spacing:0.02em;
  margin-bottom: 12px;
}
.progress-track{
  height:6px;
  background: var(--line);
  border-radius:4px;
  overflow:hidden;
}
.progress-fill{
  height:100%;
  background: var(--purple);
  border-radius:4px;
  width:100%;
  transition: width 1s linear;
}

.meta-line{
  font-size:12.5px;
  color: var(--ink-soft);
  margin: 16px 0 0;
  line-height:1.6;
}
.meta-line b{ color: var(--ink); font-weight:600; }

.disclosure{
  background:#fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow:hidden;
}
.disclosure summary{
  list-style:none;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 16px 20px;
  cursor:pointer;
  font-size:14.5px;
  font-weight:700;
}
.disclosure summary::-webkit-details-marker{ display:none; }
.disclosure summary .chev{
  transition: transform .2s ease;
  color: var(--ink-soft);
  font-size:12px;
}
.disclosure[open] summary .chev{ transform: rotate(180deg); }

.howto{
  padding: 0 20px 22px;
  font-size:13px;
  color: var(--ink-soft);
  line-height:1.7;
}
.howto ol{
  margin:0;
  padding-left:18px;
}

/* -------- Botão de pagamento (Mercado Pago) -------- */
.pay-link{
  display:block;
  text-align:center;
  text-decoration:none;
}
.checkout-hint{
  font-size:12.5px;
  color: var(--ink-soft);
  text-align:center;
  line-height:1.5;
  margin: 12px 0 0;
}

@media (max-width: 480px){
  .topbar, .body-scroll{ padding-left:18px; padding-right:18px; }
}

@media (prefers-reduced-motion: reduce){
  .spinner{ animation:none; }
}
