* {
  box-sizing: border-box;
}

:root {
  --green: #56c348;
  --green-dark: #33a336;
  --text: #1f1f1f;
  --muted: #6f6f6f;
  --border: #ececec;
  --soft: #f8f8f8;
}

html, body {
  margin: 0;
  min-height: 100%;
  font-family: Inter, Arial, Helvetica, sans-serif;
  background: #ffffff;
  color: var(--text);
}

button, input {
  font-family: inherit;
}

.page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  background: #fff;
}

.phone-frame {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  padding: 34px 18px 40px;
  background: #fff;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -1.2px;
}

.brand-dark {
  color: #171717;
}

.brand-green {
  color: var(--green);
}

.amount-pill {
  background: var(--green);
  color: #ffffff;
  border-radius: 999px;
  padding: 12px 22px;
  min-width: 121px;
  text-align: center;
  font-weight: 800;
  font-size: 18px;
}

.progress-wrap {
  margin-top: 23px;
}

.progress-line {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #efefef;
  overflow: hidden;
}

.progress-fill {
  width: 86%;
  height: 100%;
  border-radius: 999px;
  background: var(--green-dark);
}

.progress-text {
  margin: 9px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: #4d4d4d;
}

.balance-card {
  margin: 32px auto 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.02);
}

.balance-card p {
  margin: 0 0 9px;
  font-size: 14px;
  font-weight: 800;
  color: #333333;
}

.balance-card h1 {
  margin: 0;
  font-size: 42px;
  line-height: 1;
  color: var(--green);
  font-weight: 800;
  letter-spacing: -1px;
}

.pix-section {
  margin-top: 25px;
}

.section-title {
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  margin: 0 0 16px;
  color: #444444;
}

.pix-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.pix-option {
  height: 76px;
  border-radius: 13px;
  border: 2px solid #e8e8e8;
  background: #fff;
  color: #979797;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  cursor: pointer;
  transition: 0.18s ease;
  font-weight: 800;
  font-size: 13px;
}

.pix-option .icon {
  font-size: 22px;
  line-height: 1;
  margin-bottom: 8px;
}

.pix-option.active {
  border-color: var(--green);
  color: var(--green-dark);
  box-shadow: 0 4px 12px rgba(86, 195, 72, 0.16);
}

.input-label {
  display: block;
  text-align: center;
  margin: 20px 0 12px;
  font-size: 12px;
  font-weight: 800;
  color: #ff5a5a;
}

.pix-input {
  width: 100%;
  height: 49px;
  border: 1px solid #ededed;
  border-radius: 11px;
  padding: 0 15px;
  font-size: 15px;
  color: #222;
  outline: none;
  background: #fff;
}

.pix-input:disabled {
  color: #b9b9b9;
  background: #fff;
}

.pix-input::placeholder {
  color: #cfcfcf;
}

.pix-input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(86, 195, 72, 0.12);
}

.main-btn {
  margin-top: 17px;
  width: 100%;
  height: 54px;
  border: none;
  border-radius: 10px;
  background: var(--green);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
}

.main-btn:disabled {
  background: #a9dba0;
  cursor: not-allowed;
}

.form-message {
  min-height: 20px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  margin: 12px 0 0;
  color: #ff5a5a;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.60);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  z-index: 999;
}

.modal-overlay.hidden {
  display: none;
}

.modal-card {
  width: 100%;
  max-width: 374px;
  background: #fff;
  border-radius: 17px;
  padding: 32px 27px 34px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,0.20);
}

.modal-card h2 {
  margin: 0 0 22px;
  font-size: 25px;
  font-weight: 800;
}

.modal-card p {
  margin: 0 auto 20px;
  font-size: 16px;
  line-height: 1.45;
  color: #222;
}

.modal-card strong {
  display: inline-block;
  color: var(--green);
  font-weight: 800;
}

.modal-btn {
  width: 100%;
  height: 55px;
  border: none;
  border-radius: 10px;
  background: var(--green);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  cursor: pointer;
  margin-top: 7px;
}

@media (max-width: 370px) {
  .phone-frame {
    padding-left: 14px;
    padding-right: 14px;
  }

  .balance-card h1 {
    font-size: 36px;
  }

  .amount-pill {
    min-width: auto;
    padding: 10px 16px;
    font-size: 16px;
  }

  .pix-option {
    height: 70px;
  }
}
