@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap');

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --red: #e50914;
  --bg: #141414;
  --card: #1c1c1c;
  --border: rgba(255, 255, 255, 0.08);
  --text: #ffffff;
  --muted: #999;
  --green: #1db954;
  --yellow: #f5a623;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}


header {
  width: 100%;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo {
  height: 28px;
  width: auto;
  display: block;
}


main {
  width: 100%;
  max-width: 420px;
  padding: 24px 16px 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}


.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
}

.card.center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.card.hidden {
  display: none;
}


.label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--muted);
  margin-bottom: 4px;
}

.value-email {
  font-size: 15px;
  font-weight: 600;
  word-break: break-all;
}

.value-price {
  font-size: 28px;
  font-weight: 800;
  color: var(--red);
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 14px 0;
}

/* ── Review Card ────────────────────────────────────────────── */
.review-product {
  margin: 15px 0;
}

.product-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.benefit-list {
  list-style: none;
  font-size: 14px;
  color: var(--muted);
  padding-left: 0;
}

.benefit-list li {
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.benefit-list li::before {
  content: "✓";
  color: var(--yellow);
  font-weight: bold;
}

.review-row {
  border-top: 1px solid var(--border);
  padding: 12px 0;
}

.value-text {
  font-size: 16px;
  font-weight: 700;
}

.value-price-red {
  font-size: 24px;
  font-weight: 800;
  color: var(--red);
}

.review-info {
  margin: 20px 0;
  font-size: 13px;
  line-height: 1.6;
}

.review-info strong {
  color: var(--yellow);
}

/* ── Section title ───────────────────────────────────────────── */
.section-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--muted);
}

.hint {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}


.pix-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}


.qr-center {
  display: flex;
  justify-content: center;
  margin: 14px 0;
}


.copy-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}


.qr-wrap {
  background: #1c1c1c;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.qr-wrap img,
.qr-wrap canvas {
  display: block;
  width: 200px !important;
  height: 200px !important;
  border-radius: 8px;
}


.copy-row {
  display: flex;
  gap: 8px;
  width: 100%;
}

.pix-input {
  width: 100%;
  background: #111;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 11px;
  padding: 10px 12px;
  border-radius: 8px;
  outline: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-copy-full {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--red);
  color: #fff;
  border: none;
  padding: 13px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .1s;
}

.btn-copy-full:hover {
  background: #c2070f;
}

.btn-copy-full:active {
  transform: scale(.98);
}

.btn-copy-full.copied {
  background: var(--green);
}


.timer-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.timer {
  font-size: 18px;
  font-weight: 700;
  color: var(--yellow);
  font-variant-numeric: tabular-nums;
}


.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
}

.badge.waiting {
  background: rgba(245, 166, 35, .12);
  color: var(--yellow);
  border: 1px solid rgba(245, 166, 35, .3);
}

.badge.expired {
  background: rgba(255, 255, 255, .05);
  color: var(--muted);
  border: 1px solid var(--border);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: blink 1.4s ease-in-out infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: .2
  }
}


.spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(229, 9, 20, .2);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}


.check {
  width: 72px;
  height: 72px;
  background: var(--green);
  border-radius: 50%;
  font-size: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pop .4s cubic-bezier(.2, 1.6, .4, 1) both;
}

.title-paid {
  font-size: 20px;
  font-weight: 800;
}

@keyframes pop {
  from {
    transform: scale(0);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}


.error-icon {
  width: 60px;
  height: 60px;
  background: rgba(229, 9, 20, .15);
  border: 2px solid rgba(229, 9, 20, .4);
  border-radius: 50%;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
}

.btn-retry {
  background: var(--red);
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}


footer {
  margin-top: auto;
  padding: 16px;
  font-size: 11px;
  color: #555;
  text-align: center;
}

/* ── Modal ────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 100%;
  max-width: 400px;
  padding: 30px 25px;
  text-align: center;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  animation: modal-in 0.3s ease-out;
}

@keyframes modal-in {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-card h2 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
}

.modal-card .name-highlight {
  color: var(--red);
}

.modal-card p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 24px;
  line-height: 1.5;
}

.input-group {
  text-align: left;
  margin-bottom: 20px;
}

.input-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.full-input {
  width: 100%;
  background: #333;
  border: 1px solid transparent;
  color: #fff;
  padding: 12px 14px;
  border-radius: 4px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}

.full-input:focus {
  border-color: #555;
  background: #444;
}

.btn-main {
  width: 100%;
  background: var(--red);
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.1s, background 0.2s;
}

.btn-main:hover {
  background: #c2070f;
}

.btn-main:active {
  transform: scale(0.98);
}

.card.hidden {
  display: none !important;
}

.modal-overlay.hidden {
  display: none !important;
}

/* ── Notifications ───────────────────────────────────────────── */
.notification-container {
  position: fixed;
  bottom: 30px;
  left: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast {
  background: rgba(24, 24, 24, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 20px;
  border-radius: 10px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 320px;
  transform: translateX(-20px);
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  opacity: 0;
  position: relative;
  overflow: hidden;
}

.toast::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--red);
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast-success-icon {
  width: 28px;
  height: 28px;
  background: rgba(229, 9, 20, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  flex-shrink: 0;
}

.toast-content {
  flex-grow: 1;
}

.toast-msg {
  font-size: 13px;
  color: #fff;
  font-weight: 500;
  margin-bottom: 2px;
}

.toast-msg strong {
  font-weight: 700;
}

.toast-meta {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.toast-meta span {
  width: 3px;
  height: 3px;
  background: var(--muted);
  border-radius: 50%;
}