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

:root {
  --bg: #03171d;
  --green: #12be49;
  --green-dark: #08752d;
  --green-soft: #eaf8ed;
  --ink: #0b1720;
  --muted: #34434d;
  --line: #dfe5e8;
  --panel-soft: #f8fbf8;
}

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

html {
  min-width: 320px;
  background: var(--bg);
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "Inter", Arial, Helvetica, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 40%, rgba(16, 110, 70, 0.16), transparent 46%),
    linear-gradient(180deg, #020f15 0%, #03171d 48%, #06252b 100%);
}

button,
input,
textarea {
  font: inherit;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  padding-top: 18px;
  overflow: hidden;
}

.decor-line {
  position: absolute;
  top: 50px;
  width: 170px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #19d153);
  opacity: 0.8;
}

.decor-line::after {
  content: "";
  position: absolute;
  top: -4px;
  right: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #4fe763;
  box-shadow: 0 0 12px rgba(79, 231, 99, 0.65);
}

.decor-line-left {
  left: 0;
}

.decor-line-right {
  right: 80px;
}

.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding: 0 20px 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 82px;
  height: 82px;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
}

.brand-copy h1 {
  display: flex;
  align-items: baseline;
  color: #fff;
  font-size: clamp(42px, 4vw, 66px);
  line-height: 0.9;
  letter-spacing: -3px;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.35);
}

.brand-copy h1 span {
  font-weight: 800;
}

.brand-copy h1 strong {
  margin: 0 2px;
  color: var(--green);
  font-weight: 900;
}

.brand-copy p {
  margin-top: 10px;
  color: #fff;
  font-size: clamp(11px, 1.2vw, 17px);
  letter-spacing: 8px;
  white-space: nowrap;
}

.main-content {
  position: relative;
  z-index: 2;
  width: min(1125px, calc(100% - 40px));
  margin: 0 auto;
}

.payment-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 540px;
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.payment-panel {
  padding: 38px 56px 32px;
  background: #fff;
}

.result-panel {
  min-width: 0;
  padding: 28px 42px;
  border-left: 1px solid #e3e7e9;
  background:
    radial-gradient(circle at 15% 20%, rgba(34, 211, 93, 0.08), transparent 32%),
    linear-gradient(120deg, #fbfefd, #f4faf5);
}

.result-state {
  display: none;
  height: 100%;
}

.result-state.active {
  display: block;
}

.secure-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  padding: 8px 15px;
  border: 1px solid #b7e8c2;
  border-radius: 10px;
  color: #0c7731;
  background: #f4fcf6;
  font-size: 13px;
  font-weight: 800;
}

.secure-badge svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #159744;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.payment-panel h2 {
  margin-bottom: 13px;
  font-size: 36px;
  line-height: 1.05;
  letter-spacing: -1.8px;
  font-weight: 800;
}

.payment-panel h2 span {
  color: #0f963b;
}

.lead {
  margin-bottom: 30px;
  font-size: 17px;
  line-height: 1.5;
}

#form-pix label {
  display: block;
  margin-bottom: 11px;
  font-size: 15px;
  font-weight: 800;
}

.amount-field {
  display: grid;
  grid-template-columns: 82px 1fr;
  height: 78px;
  overflow: hidden;
  margin-bottom: 24px;
  border: 1.5px solid #d7dde0;
  border-radius: 14px;
  background: #fff;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.amount-field:focus-within {
  border-color: #1aae4e;
  box-shadow: 0 0 0 4px rgba(26, 174, 78, 0.12);
}

.currency {
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1.5px solid #d7dde0;
  color: #08772c;
  font-size: 28px;
  font-weight: 800;
}

#valor {
  width: 100%;
  min-width: 0;
  padding: 0 22px;
  border: 0;
  outline: 0;
  color: #687681;
  background: transparent;
  text-align: right;
  font-size: 39px;
  font-weight: 500;
}

#valor::placeholder {
  color: #79858e;
  opacity: 1;
}

.generate-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  width: 100%;
  height: 64px;
  margin-bottom: 24px;
  border: 0;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(100deg, #16c343 0%, #0c8334 100%);
  font-size: 24px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(5, 126, 48, 0.25);
}

.generate-button:disabled {
  opacity: 0.7;
  cursor: wait;
}

.generate-button svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.security-box {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 92px;
  padding: 14px 18px;
  border: 1.5px solid #a8dfb6;
  border-radius: 13px;
  background: linear-gradient(90deg, #f7fcf8, #fbfdfb);
}

.security-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  border-radius: 10px;
  background: #dff5e5;
}

.security-icon svg {
  width: 45px;
  height: 45px;
  fill: none;
  stroke: #0b9338;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.security-box strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
  font-weight: 800;
}

.security-box p {
  color: #24323a;
  font-size: 13px;
  line-height: 1.45;
}

.steps-header {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 20px;
}

.steps-title-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 66px;
  height: 66px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: linear-gradient(145deg, #0da63f, #057429);
  box-shadow: 0 11px 22px rgba(7, 128, 44, 0.24);
}

.steps-title-icon svg {
  width: 39px;
  height: 39px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.steps-header h2 {
  font-size: 39px;
  line-height: 1;
  letter-spacing: -1.8px;
  font-weight: 800;
}

.steps-list {
  position: relative;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 42px 64px 1fr;
  align-items: center;
  column-gap: 14px;
  min-height: 77px;
}

.step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 51px;
  width: 2px;
  height: 43px;
  background: linear-gradient(#36be57, #a9e6b7);
}

.step-index {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #16a842, #08752c);
  font-size: 19px;
  font-weight: 800;
}

.step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 55px;
  height: 55px;
  border: 1px solid #ccebd4;
  border-radius: 12px;
  color: #078633;
  background: #eaf8ed;
  font-size: 26px;
  font-weight: 800;
}

.step p {
  color: #15212a;
  font-size: 14px;
  line-height: 1.38;
}

.status-title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.status-title h2 {
  margin-top: 3px;
  font-size: 27px;
  line-height: 1.1;
}

.status-icon,
.success-icon,
.neutral-icon,
.error-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 50%;
  font-weight: 900;
}

.status-icon {
  width: 54px;
  height: 54px;
  color: #fff;
  background: linear-gradient(145deg, #0da63f, #057429);
  font-size: 24px;
}

.status-label {
  display: block;
  color: #0b8d37;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
}

.payment-summary,
.success-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 12px 15px;
  border: 1px solid #d8e6dc;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.85);
}

.payment-summary span,
.success-summary span {
  font-size: 13px;
  font-weight: 700;
}

.payment-summary strong,
.success-summary strong {
  color: #08772c;
  font-size: 22px;
}

.qr-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 205px;
  height: 205px;
  margin: 0 auto 10px;
  padding: 13px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 13px 34px rgba(0, 0, 0, 0.14);
}

.qr-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.scan-text {
  margin-bottom: 13px;
  color: #50606a;
  text-align: center;
  font-size: 12px;
}

.pix-code-box {
  margin-bottom: 12px;
}

.pix-code-box label {
  display: block;
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 800;
}

#codigoPix {
  width: 100%;
  min-height: 74px;
  padding: 11px 12px;
  resize: none;
  border: 1px solid #ccd8d0;
  border-radius: 10px;
  outline: 0;
  color: #2d3a42;
  background: #fff;
  font-family: Consolas, monospace;
  font-size: 10px;
  line-height: 1.35;
}

.action-button {
  width: 100%;
  min-height: 42px;
  margin-top: 8px;
  border: 0;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.action-button.primary {
  color: #fff;
  background: linear-gradient(100deg, #14b744, #087b32);
}

.action-button.secondary {
  color: #27343b;
  background: #e7ece9;
}

.payment-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  color: #53616a;
  font-size: 10px;
}

.center-state {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

.center-state.active {
  display: flex;
}

.center-state h2 {
  margin: 14px 0 8px;
  font-size: 30px;
}

.center-state > p {
  margin-bottom: 18px;
  color: #53616a;
  font-size: 14px;
}

.success-icon,
.neutral-icon,
.error-icon {
  width: 86px;
  height: 86px;
  margin-bottom: 14px;
  color: #fff;
  font-size: 46px;
}

.success-icon {
  background: linear-gradient(145deg, #18bf4b, #08752d);
}

.neutral-icon {
  background: linear-gradient(145deg, #667680, #34434c);
}

.error-icon {
  background: linear-gradient(145deg, #e55a5a, #a93030);
}

.success-summary {
  width: min(360px, 100%);
}

.success-time {
  margin-bottom: 18px;
  color: #53616a;
  font-size: 13px;
}

.support-note {
  width: min(390px, 100%);
  padding: 15px;
  border: 1px solid #bfe3c8;
  border-radius: 11px;
  color: #1f3b29;
  background: #f2fbf4;
  font-size: 13px;
  line-height: 1.5;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: 116px;
  color: #fff;
}

.trust-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 17px;
  padding: 18px 24px;
}

.trust-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  width: 1px;
  height: 52px;
  background: rgba(255, 255, 255, 0.22);
}

.trust-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 66px;
  height: 66px;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, rgba(12, 113, 48, 0.98), rgba(3, 73, 37, 0.98));
  font-size: 30px;
  font-weight: 800;
}

.trust-item h3 {
  margin-bottom: 7px;
  color: #35db57;
  font-size: 14px;
  font-weight: 900;
}

.trust-item p {
  color: #fff;
  font-size: 12px;
  line-height: 1.4;
}

.site-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 55px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  color: #fff;
  font-size: 15px;
}

.footer-lock,
.site-footer strong {
  color: #2fe354;
}

@media (max-width: 900px) {
  .payment-card {
    grid-template-columns: 1fr;
  }

  .result-panel {
    border-top: 1px solid #e3e7e9;
    border-left: 0;
  }

  .trust-strip {
    grid-template-columns: 1fr;
  }

  .trust-item:not(:last-child)::after {
    right: 10%;
    bottom: 0;
    width: 80%;
    height: 1px;
  }
}

@media (max-width: 560px) {
  .decor-line {
    display: none;
  }

  .site-header {
    justify-content: flex-start;
  }

  .brand {
    gap: 8px;
  }

  .brand-mark {
    width: 56px;
    height: 56px;
  }

  .brand-copy h1 {
    font-size: 28px;
    letter-spacing: -1.2px;
  }

  .brand-copy p {
    font-size: 7px;
    letter-spacing: 3px;
  }

  .main-content {
    width: calc(100% - 20px);
  }

  .payment-panel,
  .result-panel {
    padding: 26px 20px;
  }

  .payment-panel h2 {
    font-size: 31px;
  }

  .steps-header h2 {
    font-size: 29px;
  }

  .step {
    grid-template-columns: 38px 52px 1fr;
    column-gap: 10px;
  }

  .step p {
    font-size: 12px;
  }

  .payment-meta {
    flex-direction: column;
    align-items: center;
  }

  .trust-item {
    justify-content: flex-start;
  }

  .site-footer {
    padding: 16px;
    text-align: center;
    font-size: 13px;
  }
}
