@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

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

:root {
  --bg: #05050a;
  --card: #12121b;
  --border: rgba(255,255,255,.08);
  --accent: #38bdf8;
  --text: #e2e8f0;
  --muted: #64748b;
  --gradient: linear-gradient(135deg, #2596be, #38bdf8, #7dd3fc);
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

.checkout-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--border);
}

.checkout-header a {
  color: var(--muted);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
}

.checkout-header a:hover { color: var(--accent); }

.checkout-brand {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.checkout-logo {
  width: 2.25rem;
  height: auto;
  display: block;
}

.checkout-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.checkout-steps {
  display: flex;
  gap: .5rem;
  margin-bottom: 2rem;
}

.step-dot {
  flex: 1;
  height: 4px;
  border-radius: 4px;
  background: rgba(255,255,255,.1);
  transition: background .3s;
}

.step-dot.active { background: var(--accent); }
.step-dot.done { background: #22c55e; }

.checkout-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
}

.checkout-card h2 {
  font-size: 1.4rem;
  margin-bottom: .5rem;
}

.checkout-card p.sub {
  color: var(--muted);
  font-size: .9rem;
  margin-bottom: 1.5rem;
}

.plan-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: rgba(56,189,248,.08);
  border: 1px solid rgba(56,189,248,.2);
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.plan-summary .price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
}

.field { margin-bottom: 1rem; }

.field label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: .4rem;
}

.field input {
  width: 100%;
  padding: .8rem 1rem;
  background: #0a0a12;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: .9rem;
  outline: none;
}

.field input:focus {
  border-color: rgba(56,189,248,.4);
  box-shadow: 0 0 0 3px rgba(56,189,248,.1);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  padding: .9rem;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s, box-shadow .2s;
}

.btn-primary {
  background: var(--gradient);
  color: #0f172a;
  box-shadow: 0 0 25px rgba(56,189,248,.25);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 35px rgba(56,189,248,.4);
}

.btn-secondary {
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  color: var(--text);
  margin-top: .75rem;
}

.btn-success {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #fff;
}

.alert {
  padding: .75rem 1rem;
  border-radius: 10px;
  font-size: .85rem;
  margin-bottom: 1rem;
}

.alert-error {
  background: rgba(239,68,68,.1);
  border: 1px solid rgba(239,68,68,.3);
  color: #fca5a5;
}

.alert-success {
  background: rgba(34,197,94,.1);
  border: 1px solid rgba(34,197,94,.3);
  color: #86efac;
}

.alert-info {
  background: rgba(56,189,248,.1);
  border: 1px solid rgba(56,189,248,.2);
  color: #7dd3fc;
}

.hidden { display: none !important; }

.waiting-box {
  text-align: center;
  padding: 1.5rem;
  margin-top: 1rem;
  background: rgba(56, 189, 248, .06);
  border: 1px solid rgba(56, 189, 248, .2);
  border-radius: 12px;
}

.waiting-box h3 {
  font-size: 1.1rem;
  margin-bottom: .5rem;
}

.waiting-box p {
  color: var(--muted);
  font-size: .85rem;
  margin-bottom: .35rem;
}

.waiting-order strong {
  color: var(--accent);
  font-family: monospace;
}

.waiting-hint {
  margin-top: .75rem !important;
  font-size: .8rem !important;
}

.waiting-spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto 1rem;
  border: 3px solid rgba(56, 189, 248, .2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.qr-section {
  text-align: center;
  padding: 1.5rem;
  background: #fff;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.qr-section canvas,
.qr-section img {
  max-width: 220px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.pix-copy-box {
  margin-bottom: 1.25rem;
}

.pix-copy-box label {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: .4rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.pix-copy-row {
  display: flex;
  gap: .5rem;
}

.pix-copy-row input {
  flex: 1;
  padding: .65rem .75rem;
  background: #0a0a12;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: .7rem;
  font-family: monospace;
}

.btn-copy-pix {
  padding: .65rem .85rem;
  background: rgba(56, 189, 248, .15);
  border: 1px solid rgba(56, 189, 248, .3);
  border-radius: 8px;
  color: var(--accent);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-copy-pix .icon-svg {
  display: block;
}

.qr-section p {
  color: #334155;
  font-size: .85rem;
  margin-top: .75rem;
  font-weight: 500;
}

.order-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  margin-bottom: 1.5rem;
}

.order-info-item {
  padding: .75rem;
  background: rgba(0,0,0,.3);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.order-info-item span {
  display: block;
  font-size: .75rem;
  color: var(--muted);
}

.order-info-item strong {
  font-size: .95rem;
}

.key-box {
  padding: 1.25rem;
  background: rgba(34,197,94,.08);
  border: 1px solid rgba(34,197,94,.25);
  border-radius: 12px;
  text-align: center;
  margin-bottom: 1rem;
}

.key-box .key-value {
  font-size: 1.3rem;
  font-weight: 800;
  color: #4ade80;
  letter-spacing: .1em;
  font-family: monospace;
  margin: .5rem 0;
  word-break: break-all;
}

@media (max-width: 600px) {
  .order-info { grid-template-columns: 1fr; }
}
