* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-1: #050505;
  --bg-2: #0d0d0f;
  --card: rgba(18, 18, 22, 0.88);
  --border: rgba(255, 255, 255, 0.08);
  --text: #f5f5f7;
  --muted: #a6a6b0;
  --accent: #d4af37;
  --accent-2: #8b6b18;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius: 24px;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(212, 175, 55, 0.08), transparent 30%),
    radial-gradient(circle at bottom right, rgba(212, 175, 55, 0.05), transparent 25%),
    linear-gradient(180deg, var(--bg-1), var(--bg-2));
  color: var(--text);
  font-family: Inter, Arial, Helvetica, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.shell {
  display: flex;
  flex-direction: column;
  max-width: 520px;
  margin: 0 auto;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
    margin-bottom: 20px; /* ajusta aqui */
}

.left {
  padding: 34px;
}

.right {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 650px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}

.brand-badge {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.24), rgba(212, 175, 55, 0.05));
  border: 1px solid rgba(212, 175, 55, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.brand-text h1 {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-text span {
  color: var(--muted);
  font-size: 0.92rem;
}

.hero {
  margin-bottom: 28px;
}

.hero h2 {
  font-size: 2rem;
  line-height: 1.1;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}

.hero p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 520px;
}

.form-grid {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 0.95rem;
  color: #d8d8de;
}

.input-wrap {
  position: relative;
}

.prefix {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #d8d8de;
  font-size: 0.98rem;
  pointer-events: none;
}

input {
  width: 100%;
  height: 56px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  outline: none;
  padding: 0 16px;
  font-size: 1rem;
  transition: 0.2s ease;
}

input:focus {
  border-color: rgba(212, 175, 55, 0.48);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.08);
}

#amount {
  padding-left: 48px;
}

.hint {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.button {
  margin-top: 8px;
  width: 100%;
  height: 58px;
  border: none;
  border-radius: 18px;
  background: linear-gradient(135deg, #d4af37, #9d7a1d);
  color: #111;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.16s ease, opacity 0.16s ease, box-shadow 0.16s ease;
  box-shadow: 0 16px 34px rgba(212, 175, 55, 0.2);
}

.button:hover {
  transform: translateY(-1px);
}

.button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 22px;
}

.mini-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: 14px;
}

.mini-card strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 8px;
  color: #fff;
}

.mini-card span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.status-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.95rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--warning);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.45);
}

.timer {
  font-size: 0.95rem;
  color: #f1f1f3;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.qr-box {
  flex: 1;
  display: grid;
  align-content: start;
  gap: 18px;
}

.qr-card {
  display: flex;
  flex-direction: column;
  align-items: center; /* 🔥 isso centraliza tudo */
  text-align: center;
}

.qr-placeholder-mini {
  width: 100%;
  height: 20px;
  min-height: 20px;
  border: none;
  background: transparent;
  padding: 0;
}

.qr-placeholder {
  width: 220px;
  height: 220px;
  border-radius: 24px;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  display: grid;
  place-items: center;
  color: var(--muted);
  text-align: center;
  padding: 20px;
  line-height: 1.5;
  background: rgba(255, 255, 255, 0.02);
}

.qr-image {
  width: 220px;
  height: 220px;
  object-fit: contain;

  border-radius: 20px;
  background: #fff;
  padding: 12px;

  display: none;
  margin: 0 auto;
}

.pix-meta {
  width: 100%;
  display: grid;
  gap: 10px;
}

.meta-line {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.94rem;
}

.meta-line:last-child {
  border-bottom: none;
}

.meta-label {
  color: var(--muted);
}

.meta-value {
  color: #fff;
  text-align: right;
  word-break: break-word;
  max-width: 60%;
}

.copy-wrap {
  display: grid;
  gap: 12px;
  width: 100%;
}

.copy-box {
  width: 100%;
  min-height: 120px;
  height: 120px;

  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #f3f3f4;

  padding: 16px;
  outline: none;

  font-size: 0.88rem;
  line-height: 1.6;
  resize: none;

  font-family: monospace;
}

.copy-btn {
  height: 50px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  background: rgba(212, 175, 55, 0.08);
  color: #f8e4a2;
  border-radius: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.16s ease;
}

.copy-btn:hover {
  background: rgba(212, 175, 55, 0.12);
}

.footer-msg {
  margin-top: 16px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.92rem;
}

.hidden {
  display: none !important;
}

  .right {
    min-height: auto;
  }

  .mini-grid {
    grid-template-columns: 1fr;
  }

@media (max-width: 540px) {
  body {
    padding: 16px;
  }

  .left,
  .right {
    padding: 20px;
  }

  .hero h2 {
    font-size: 1.6rem;
  }

  .qr-placeholder,
  .qr-image {
    width: 190px;
    height: 190px;
  }
  
}

.info-stack {
  display: grid;
  gap: 14px;
  margin: 18px 0 22px;
}

.anon-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 16px;

  background: linear-gradient(180deg, rgba(87, 28, 191, 0.18), rgba(62, 18, 138, 0.14));
  border: 1px solid rgba(190, 120, 255, 0.35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 8px 24px rgba(90, 30, 180, 0.12);

  color: #d98cff;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.4;
}

.anon-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.security-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 18px;
  border-radius: 18px;

  background: linear-gradient(180deg, rgba(8, 57, 122, 0.45), rgba(7, 40, 92, 0.34));
  border: 1px solid rgba(57, 132, 255, 0.20);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 10px 28px rgba(10, 56, 130, 0.16);
}

.security-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;

  background: radial-gradient(circle at top, rgba(18, 197, 122, 0.22), rgba(18, 197, 122, 0.08));
  border: 1px solid rgba(18, 197, 122, 0.14);

  font-size: 1.15rem;
  flex-shrink: 0;
}

.security-text {
  display: grid;
  gap: 4px;
}

.security-text strong {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
}

.security-text span {
  color: #b8c8ea;
  font-size: 0.92rem;
  line-height: 1.45;
}

.security-card.small {
  padding: 14px 14px;
  gap: 10px;
  border-radius: 14px;
}

.security-card.small .security-icon {
  width: 38px;
  height: 38px;
  font-size: 0.95rem;
}

.security-card.small .security-text strong {
  font-size: 0.92rem;
}

.security-card.small .security-text span {
  font-size: 0.82rem;
}

.anon-badge {
  margin-top: 10px;
  font-size: 0.9rem;
  padding: 12px 14px;
}

.anon-badge {
  margin-bottom: 12px;
}

/* BOTÃO MOSTRAR / OCULTAR QR */

#toggleQrBtn {
  width: 100%;
  max-width: 260px;
  margin: 14px auto 0;

  display: block;

  background: rgba(255, 200, 0, 0.08);
  border: 1px solid rgba(255, 200, 0, 0.4);
  color: #ffd76a;

  border-radius: 14px;
  padding: 12px 16px;

  font-weight: 600;
  cursor: pointer;

  transition: all 0.2s ease;
}

/* HOVER (quando passa o mouse) */
#toggleQrBtn:hover {
  background: rgba(255, 200, 0, 0.15);
  border-color: rgba(255, 200, 0, 0.7);
  box-shadow: 0 0 12px rgba(255, 200, 0, 0.25);
}

/* ESTADO ATIVO (quando QR está visível) */
#toggleQrBtn.active {
  background: rgba(255, 200, 0, 0.18);
  border-color: #ffd76a;

  box-shadow:
    0 0 0 1px #ffd76a,
    0 0 18px rgba(255, 200, 0, 0.35);
}

input:focus {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(212, 175, 55, 0.6);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.08);
}

/* estado normal do botão copiar */
#copyBtn {
  transition: all 0.2s ease;
}

/* estado de sucesso temporário */
#copyBtn.copied {
  background: rgba(255, 200, 0, 0.18);
  border-color: #ffd76a;
  color: #ffe08a;

  box-shadow:
    0 0 0 1px #ffd76a,
    0 0 18px rgba(255, 200, 0, 0.35);

  transform: scale(0.995);
}

/* Remove o fundo branco e a cor azulada do preenchimento automático */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 100px rgba(255, 255, 255, 0.03) inset !important;
    -webkit-text-fill-color: var(--text) !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Garante que o texto continue visível e o fundo no lugar no Firefox */
input:autofill {
    background-color: rgba(255, 255, 255, 0.03) !important;
    color: var(--text) !important;
}