.pna-donate-modal,
.pna-donate-modal * {
  box-sizing: border-box;
}

.pna-donate-launcher,
.pna-donate-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 16px;
  padding: 14px 22px;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.pna-donate-launcher,
.pna-donate-button-primary {
  color: #fff;
  background: linear-gradient(135deg, #169b80 0%, #0f7f6a 100%);
  box-shadow: 0 18px 34px rgba(15, 127, 106, 0.24);
}

.pna-donate-button-secondary {
  color: #21324d;
  background: #edf4fb;
}

.pna-donate-button-ghost {
  color: #a14a28;
  background: #fff2ea;
}

.pna-donate-button-strong {
  min-height: 56px;
}

.pna-donate-launcher:hover,
.pna-donate-button:hover {
  transform: translateY(-1px);
}

.pna-donate-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  font-family: Roboto, Arial, sans-serif;
  color: #1b2a45;
}

.pna-donate-modal[hidden] {
  display: none !important;
}

.pna-donate-shell {
  position: relative;
  min-height: 100vh;
  padding: clamp(16px, 3vw, 30px);
  overflow-y: auto;
}

.pna-donate-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 23, 37, 0.58);
  backdrop-filter: blur(6px);
}

.pna-donate-dialog {
  position: relative;
  z-index: 1;
  width: min(700px, calc(100vw - 24px));
  margin: clamp(8px, 4vh, 44px) auto;
  max-height: calc(100vh - 24px);
  overflow-y: auto;
  padding: clamp(18px, 2.4vw, 26px);
  border: 1px solid #e8ddd1;
  border-radius: 32px;
  background:
    radial-gradient(circle at top right, rgba(243, 121, 65, 0.1), transparent 28%),
    linear-gradient(180deg, #fffdfa 0%, #ffffff 100%);
  box-shadow: 0 30px 80px rgba(22, 31, 48, 0.24);
  isolation: isolate;
}

.pna-donate-header {
  margin-bottom: 18px;
  padding-right: 72px;
}

.pna-donate-loading {
  padding: 28px 18px;
  border-radius: 24px;
  background: #f7faff;
  color: #5d6b88;
  text-align: center;
  font-weight: 600;
}

.pna-donate-kicker {
  margin: 0 0 8px;
  color: #bf5a2e;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pna-donate-dialog h2,
.pna-donate-dialog h3,
.pna-donate-dialog p,
.pna-donate-dialog strong {
  margin-top: 0;
}

.pna-donate-dialog h2 {
  margin-bottom: 10px;
  color: #203154;
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  line-height: 1.02;
}

.pna-donate-dialog h3 {
  margin-bottom: 8px;
  color: #203154;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  line-height: 1.12;
}

.pna-donate-copy,
.pna-donate-note,
.pna-donate-step-copy,
.pna-donate-thank-you p,
.pna-donate-empty {
  color: #5d6b88;
  line-height: 1.6;
}

.pna-donate-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #21324d;
  background: #edf4fb;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.pna-donate-flash,
.pna-donate-thank-you,
.pna-donate-panel,
.pna-donate-summary,
.pna-donate-empty {
  margin-bottom: 16px;
}

.pna-donate-flash {
  padding: 14px 16px;
  border-radius: 18px;
  font-weight: 500;
}

.pna-donate-flash-success {
  color: #13694c;
  background: #ebfbf4;
}

.pna-donate-flash-error {
  color: #a92f2f;
  background: #fff1f1;
}

.pna-donate-thank-you {
  padding: 20px;
  border: 1px solid #d7efe4;
  border-radius: 24px;
  background: linear-gradient(160deg, #effcf6 0%, #ffffff 72%);
}

.pna-donate-summary {
  display: grid;
  grid-template-columns: minmax(0, 190px) minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid #f0dfd3;
  border-radius: 26px;
  background: linear-gradient(180deg, #fff8f4 0%, #fffdfa 100%);
}

.pna-donate-balance-card {
  padding: 16px 18px;
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(160deg, #df4349 0%, #b81e31 100%);
  box-shadow: 0 16px 32px rgba(184, 30, 49, 0.24);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.pna-donate-summary-main {
  display: grid;
  gap: 4px;
}

.pna-donate-member {
  color: #203154;
  font-size: 1.06rem;
  font-weight: 700;
}

.pna-donate-amount {
  color: #c4373f;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1;
}

.pna-donate-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 16px;
}

.pna-donate-panel {
  padding: 16px;
  border: 1px solid #e5ecf5;
  border-radius: 24px;
  background: #ffffff;
}

.pna-donate-panel-accent {
  background: linear-gradient(180deg, #f8fbff 0%, #f3f7fd 100%);
}

.pna-donate-form,
.pna-donate-inline-form {
  margin: 0;
}

.pna-donate-form label {
  display: block;
  margin-bottom: 8px;
  color: #384866;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pna-donate-form input {
  width: 100%;
  min-width: 0;
  margin-bottom: 14px;
  padding: 15px 16px;
  border: 1px solid #d7dfeb;
  border-radius: 16px;
  background: #fff;
  color: #1b2a45;
  font: inherit;
}

.pna-donate-mini-stat {
  margin-bottom: 18px;
}

.pna-donate-mini-stat span {
  display: block;
  margin-bottom: 6px;
  color: #6a7690;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pna-donate-mini-stat strong {
  color: #203154;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  line-height: 1;
}

.pna-donate-step {
  display: grid;
  gap: 12px;
}

.pna-donate-step + .pna-donate-step {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e7edf5;
}

.pna-donate-step-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.pna-donate-step-head strong {
  display: block;
  color: #203154;
  font-size: 1rem;
}

.pna-donate-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  color: #fff;
  background: #203154;
  font-size: 0.9rem;
  font-weight: 800;
}

.pna-donate-step-copy {
  margin-bottom: 0;
}

.pna-donate-step-otp {
  display: none;
}

.pna-donate-step-otp.is-active {
  display: grid;
}

.pna-donate-submit-bar .pna-donate-button,
.pna-donate-step .pna-donate-button,
.pna-donate-form-card .pna-donate-button {
  width: 100%;
}

.pna-donate-empty {
  padding: 18px;
  border: 1px dashed #d7dfeb;
  border-radius: 22px;
  background: #fafcff;
}

.pna-donate-button:focus,
.pna-donate-launcher:focus,
.pna-donate-form input:focus,
.pna-donate-close:focus,
.pna-donate-dialog:focus {
  outline: 2px solid #169b80;
  outline-offset: 2px;
}

body.pna-donate-open {
  overflow: hidden;
}

@media (max-width: 860px) {
  .pna-donate-dialog {
    width: min(100%, calc(100vw - 20px));
    margin: 10px auto;
    max-height: calc(100vh - 20px);
    padding: 18px 16px;
    border-radius: 26px;
  }

  .pna-donate-header {
    padding-right: 56px;
  }

  .pna-donate-summary,
  .pna-donate-grid {
    grid-template-columns: 1fr;
  }

  .pna-donate-summary {
    align-items: start;
  }

  .pna-donate-inline-form .pna-donate-button {
    width: 100%;
  }
}
