:root {
  --green-900: #0b4a3d;
  --green-700: #0f6b52;
  --green-600: #14805f;
  --green-500: #1a9c72;
  --green-100: #e3f5ee;
  --green-50: #f2faf6;
  --text-dark: #12281f;
  --text-muted: #5b6f67;
  --border-soft: #d9ece3;
  --bg-page: #f0f5f2;
}

* {
  box-sizing: border-box;
}

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

.card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(11, 74, 61, 0.1);
  border: 1px solid var(--border-soft);
  padding: 32px 24px;
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hidden {
  display: none !important;
}

.state {
  color: var(--text-muted);
  text-align: center;
  padding: 24px 0;
}

.logo-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.logo {
  width: 96px;
  height: 96px;
  object-fit: contain;
  display: block;
}

.title {
  margin: 0 0 8px;
  font-weight: 700;
  color: var(--text-dark);
  font-size: 20px;
  text-align: center;
  word-break: break-word;
}

.description {
  margin: 0 0 20px;
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
  line-height: 1.5;
}

.amount-line {
  font-size: 16px;
  color: var(--text-muted);
  margin: 0 0 20px;
}

.amount {
  color: var(--green-700);
  font-weight: 700;
  font-size: 19px;
}

.instructions {
  text-align: center;
  color: var(--text-muted);
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.5;
}

.qr-wrap {
  width: fit-content;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-image {
  display: block;
  width: 170px;
  height: 170px;
  max-width: 100%;
  margin: 0 auto;
}

.divider {
  width: 100%;
  display: flex;
  align-items: center;
  margin: 4px 0 16px;
}

.divider .line {
  flex-grow: 1;
  height: 1px;
  background: var(--border-soft);
}

.divider-text {
  padding: 0 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.pix-input {
  width: 100%;
  text-align: center;
  padding: 12px 10px;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--text-dark);
  background: var(--green-50);
  cursor: pointer;
}

.pix-input:focus {
  outline: none;
  border-color: var(--green-500);
}

.copy-button {
  width: 100%;
  background: var(--green-600);
  border: none;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  padding: 15px;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.copy-button:hover {
  background: var(--green-700);
}

.copy-button:active {
  transform: scale(0.99);
}

.copy-button:disabled {
  opacity: 0.75;
  cursor: default;
}

.how-to-pay {
  width: 100%;
  background: var(--green-50);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 18px 16px;
  margin-top: 20px;
}

.how-to-pay h2 {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  text-align: center;
}

.step {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

.step:last-child {
  margin-bottom: 0;
}

.step-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

@media (max-width: 420px) {
  body {
    padding: 12px;
  }

  .card {
    padding: 24px 18px;
    border-radius: 16px;
  }

  .title {
    font-size: 18px;
  }

  .qr-image {
    width: 150px;
    height: 150px;
  }

  .copy-button {
    font-size: 14px;
    padding: 14px;
  }
}
