/* Library Donate — premium support checkout (isolated module) */
.ld-page {
  --ld-ink: #122820;
  --ld-muted: #5a7268;
  --ld-line: rgba(31, 74, 60, 0.14);
  --ld-card: rgba(255, 255, 255, 0.92);
  --ld-aside: rgba(255, 255, 255, 0.55);
  --ld-accent: #2f6b57;
  --ld-accent-2: #3f9274;
  --ld-accent-deep: #1f4a3c;
  --ld-warn: #b42318;
  --ld-ok: #157a4b;
  --ld-radius: 24px;
  --ld-shadow: 0 24px 60px rgba(18, 40, 32, 0.1);
  position: relative;
  isolation: isolate;
  padding: clamp(1.25rem, 3.5vw, 3rem) 1.1rem 4.5rem;
  overflow: clip;
  min-height: 72vh;
  color: var(--ld-ink);
  font-feature-settings: "ss01" on, "kern" on;
}

[data-theme="dark"] .ld-page {
  --ld-ink: #eaf4ef;
  --ld-muted: #9fb8ad;
  --ld-line: rgba(180, 220, 200, 0.14);
  --ld-card: rgba(14, 30, 25, 0.88);
  --ld-aside: rgba(18, 40, 32, 0.45);
  --ld-accent: #6fbf9d;
  --ld-accent-2: #4f9a7c;
  --ld-accent-deep: #0f241c;
  --ld-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.ld-hero {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(63, 146, 116, 0.18), transparent 55%),
    radial-gradient(900px 420px at 95% 5%, rgba(47, 107, 87, 0.14), transparent 50%),
    linear-gradient(180deg, rgba(243, 248, 245, 0.9), transparent 45%);
}

[data-theme="dark"] .ld-hero {
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(63, 146, 116, 0.16), transparent 55%),
    radial-gradient(900px 420px at 95% 5%, rgba(47, 107, 87, 0.12), transparent 50%),
    linear-gradient(180deg, rgba(8, 18, 14, 0.5), transparent 45%);
}

.ld-hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(56px);
  opacity: 0.55;
  will-change: transform;
  animation: ld-float 14s ease-in-out infinite;
}

.ld-hero__orb--a {
  width: min(48vw, 380px);
  height: min(48vw, 380px);
  top: -6%;
  left: -4%;
  background: radial-gradient(circle, rgba(63, 146, 116, 0.55), transparent 70%);
}

.ld-hero__orb--b {
  width: min(40vw, 320px);
  height: min(40vw, 320px);
  right: 4%;
  top: 12%;
  background: radial-gradient(circle, rgba(31, 74, 60, 0.35), transparent 70%);
  animation-delay: -5s;
}

.ld-hero__orb--c {
  width: min(36vw, 280px);
  height: min(36vw, 280px);
  left: 35%;
  bottom: 4%;
  background: radial-gradient(circle, rgba(168, 213, 194, 0.35), transparent 70%);
  animation-delay: -9s;
}

.ld-hero__mesh {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(47, 107, 87, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 107, 87, 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse at 50% 20%, #000 15%, transparent 72%);
  opacity: 0.7;
}

@keyframes ld-float {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(14px, 18px, 0) scale(1.06); }
}

.ld-layout {
  width: min(1080px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(1.25rem, 3vw, 2.4rem);
  align-items: start;
}

@media (max-width: 860px) {
  .ld-layout { grid-template-columns: 1fr; }
}

.ld-aside {
  padding: clamp(0.4rem, 1.5vw, 1rem) 0.2rem;
  animation: ld-rise 0.55s ease both;
}

.ld-back {
  display: inline-flex;
  margin-bottom: 1.1rem;
  color: var(--ld-accent);
  text-decoration: none;
  font-weight: 650;
  font-size: 0.9rem;
  opacity: 0.92;
}

.ld-back:hover { text-decoration: underline; }

.ld-kicker {
  margin: 0 0 0.55rem;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 750;
  color: var(--ld-accent);
}

.ld-title {
  margin: 0 0 0.75rem;
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-size: clamp(1.9rem, 4.2vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 700;
}

.ld-lead {
  margin: 0 0 1.35rem;
  max-width: 34rem;
  color: var(--ld-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.ld-aside__panel {
  background: var(--ld-aside);
  border: 1px solid var(--ld-line);
  border-radius: 18px;
  padding: 1rem 1.05rem 1.05rem;
  backdrop-filter: blur(10px);
  margin-bottom: 1rem;
}

.ld-aside__panel-title {
  margin: 0 0 0.65rem;
  font-size: 0.92rem;
  font-weight: 750;
}

.ld-aside__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.ld-aside__list li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--ld-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.ld-aside__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ld-accent-2), var(--ld-accent));
  box-shadow: 0 0 0 3px rgba(47, 107, 87, 0.12);
}

.ld-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.ld-trust__chip {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ld-accent-deep);
  background: rgba(47, 107, 87, 0.1);
  border: 1px solid var(--ld-line);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
}

[data-theme="dark"] .ld-trust__chip { color: var(--ld-accent); }

.ld-card {
  background: var(--ld-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--ld-line);
  border-radius: var(--ld-radius);
  padding: clamp(1.1rem, 2.6vw, 1.7rem);
  box-shadow: var(--ld-shadow);
  animation: ld-rise 0.65s ease 0.06s both;
}

@keyframes ld-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.ld-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

.ld-steps__item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--ld-muted);
  padding: 0.28rem 0.55rem 0.28rem 0.28rem;
  border-radius: 999px;
  border: 1px solid transparent;
}

.ld-steps__item i {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(47, 107, 87, 0.1);
  color: var(--ld-accent);
}

.ld-steps__item.is-on {
  color: var(--ld-ink);
  border-color: var(--ld-line);
  background: rgba(47, 107, 87, 0.06);
}

.ld-section + .ld-section { margin-top: 1.35rem; }

.ld-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.ld-section__head h2 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 750;
}

.ld-section__meta {
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  color: var(--ld-muted);
}

.ld-amounts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}

.ld-amount {
  appearance: none;
  position: relative;
  border: 1px solid var(--ld-line);
  background: rgba(255, 255, 255, 0.55);
  color: inherit;
  border-radius: 16px;
  min-height: 3.4rem;
  padding: 0.7rem 0.55rem 0.55rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

[data-theme="dark"] .ld-amount { background: rgba(255, 255, 255, 0.03); }

.ld-amount:hover {
  border-color: var(--ld-accent);
  transform: translateY(-1px);
}

.ld-amount.is-active {
  border-color: var(--ld-accent);
  background: linear-gradient(180deg, rgba(63, 146, 116, 0.18), rgba(47, 107, 87, 0.07));
  box-shadow: 0 0 0 3px rgba(47, 107, 87, 0.12);
}

.ld-amount__tag {
  position: absolute;
  top: -0.45rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--ld-accent-2), var(--ld-accent));
  border-radius: 999px;
  padding: 0.12rem 0.45rem;
}

.ld-amount__row {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.12rem;
}

.ld-amount__currency {
  font-size: 0.85rem;
  color: var(--ld-muted);
  font-weight: 700;
}

.ld-amount__value {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.ld-custom {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.75rem;
  padding: 0.95rem 1rem;
  border: 1px solid var(--ld-line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(247, 251, 249, 0.9));
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

[data-theme="dark"] .ld-custom {
  background: rgba(255, 255, 255, 0.03);
}

.ld-custom.is-active {
  border-color: var(--ld-accent);
  box-shadow: 0 0 0 3px rgba(47, 107, 87, 0.12);
  background: linear-gradient(180deg, rgba(63, 146, 116, 0.14), rgba(47, 107, 87, 0.05));
}

.ld-custom__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.ld-custom__title {
  font-size: 0.88rem;
  font-weight: 750;
}

.ld-custom__hint {
  font-size: 0.75rem;
  font-weight: 650;
  color: var(--ld-muted);
}

.ld-custom__box {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.55rem;
  min-height: 3.35rem;
  padding: 0.55rem 0.9rem;
  border-radius: 14px;
  border: 1px solid var(--ld-line);
  background: rgba(255, 255, 255, 0.85);
}

[data-theme="dark"] .ld-custom__box {
  background: rgba(0, 0, 0, 0.2);
}

.ld-custom.is-active .ld-custom__box {
  border-color: rgba(47, 107, 87, 0.35);
}

.ld-custom__currency {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ld-accent);
  line-height: 1;
}

.ld-custom__box input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  outline: none;
  font-variant-numeric: tabular-nums;
}

.ld-custom__box input::placeholder {
  font-weight: 650;
  font-size: 1rem;
  letter-spacing: 0;
  color: var(--ld-muted);
  opacity: 0.85;
}

.ld-custom__suffix {
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  color: var(--ld-muted);
}

.ld-section--grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  align-items: start;
}

.ld-field {
  display: grid;
  grid-template-rows: auto auto auto;
  align-content: start;
  gap: 0.35rem;
  min-width: 0;
}

.ld-field__label {
  min-height: 1.45rem;
  font-size: 0.86rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.ld-field__label abbr {
  color: var(--ld-warn);
  text-decoration: none;
}

.ld-badge {
  font-style: normal;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 750;
  color: var(--ld-accent);
  background: rgba(47, 107, 87, 0.1);
  border-radius: 999px;
  padding: 0.16rem 0.48rem;
}

.ld-field input,
.ld-field textarea {
  width: 100%;
  min-height: 3.05rem;
  box-sizing: border-box;
  border: 1px solid var(--ld-line);
  background: rgba(255, 255, 255, 0.72);
  color: inherit;
  border-radius: 14px;
  padding: 0.78rem 0.9rem;
  font: inherit;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

[data-theme="dark"] .ld-field input,
[data-theme="dark"] .ld-field textarea {
  background: rgba(255, 255, 255, 0.04);
}

.ld-field input:focus,
.ld-field textarea:focus {
  border-color: var(--ld-accent);
  box-shadow: 0 0 0 3px rgba(47, 107, 87, 0.14);
}

.ld-field input[readonly] {
  opacity: 0.92;
  cursor: default;
}

.ld-field__hint {
  min-height: 1.15rem;
  font-size: 0.76rem;
  color: var(--ld-muted);
  line-height: 1.35;
}

.ld-field__hint--spacer {
  visibility: hidden;
  user-select: none;
}

.ld-field-error,
.ld-form-error {
  margin: 0.35rem 0 0;
  color: var(--ld-warn);
  font-size: 0.84rem;
  font-weight: 650;
}

.ld-gateways {
  display: grid;
  gap: 0.6rem;
}

.ld-gateway {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.85rem;
  border: 1px solid var(--ld-line);
  border-radius: 16px;
  padding: 0.85rem 0.95rem;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.45);
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

[data-theme="dark"] .ld-gateway { background: rgba(255, 255, 255, 0.03); }

.ld-gateway input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ld-gateway:hover {
  border-color: rgba(47, 107, 87, 0.35);
  transform: translateY(-1px);
}

.ld-gateway.is-active,
.ld-gateway:has(input:checked) {
  border-color: var(--ld-accent);
  background: linear-gradient(135deg, rgba(63, 146, 116, 0.12), rgba(47, 107, 87, 0.05));
  box-shadow: 0 0 0 3px rgba(47, 107, 87, 0.1);
}

.ld-gateway__mark {
  width: 4.4rem;
  height: 2.55rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  overflow: hidden;
}

[data-theme="dark"] .ld-gateway__mark {
  background: #0f1c17;
  border-color: rgba(255, 255, 255, 0.08);
}

.ld-gateway__mark img {
  max-width: 3.4rem;
  max-height: 1.5rem;
  object-fit: contain;
}

.ld-gw-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ld-gateway__body {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.ld-gateway__body strong {
  font-size: 0.98rem;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.ld-gateway__body small {
  color: var(--ld-muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.ld-gateway__badge {
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ld-accent);
  background: rgba(47, 107, 87, 0.1);
  border-radius: 999px;
  padding: 0.28rem 0.55rem;
  white-space: nowrap;
}

.ld-gateway__check {
  position: absolute;
  right: 0.85rem;
  top: 0.75rem;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  border: 1.5px solid var(--ld-line);
  background: transparent;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.ld-gateway.is-active .ld-gateway__check,
.ld-gateway:has(input:checked) .ld-gateway__check {
  opacity: 1;
  transform: scale(1);
  background: var(--ld-accent);
  border-color: var(--ld-accent);
  box-shadow: inset 0 0 0 2px #fff;
}

.ld-gateway[data-gw="stripe"].is-active,
.ld-gateway[data-gw="stripe"]:has(input:checked) {
  border-color: #635bff;
  box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.12);
}

.ld-gateway[data-gw="paypal"].is-active,
.ld-gateway[data-gw="paypal"]:has(input:checked) {
  border-color: #009cde;
  box-shadow: 0 0 0 3px rgba(0, 156, 222, 0.12);
}

.ld-summary {
  margin-top: 1.45rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.85rem;
  border-radius: 18px;
  border: 1px solid var(--ld-line);
  background: linear-gradient(135deg, rgba(47, 107, 87, 0.08), rgba(63, 146, 116, 0.04));
}

@media (max-width: 520px) {
  .ld-summary {
    flex-direction: column;
    align-items: stretch;
  }
}

.ld-summary__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ld-muted);
  margin-bottom: 0.15rem;
}

.ld-summary__amount {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--ld-accent-deep);
}

[data-theme="dark"] .ld-summary__amount { color: var(--ld-accent); }

.ld-cta {
  appearance: none;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.05rem;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ld-accent-2), var(--ld-accent-deep));
  color: #fff;
  font: inherit;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(31, 74, 60, 0.28);
  transition: transform 0.15s ease, filter 0.15s ease, opacity 0.15s ease;
  white-space: nowrap;
}

.ld-cta:hover { transform: translateY(-1px); filter: brightness(1.05); }
.ld-cta:disabled { opacity: 0.72; cursor: wait; transform: none; }

.ld-cta--ghost {
  background: transparent;
  color: var(--ld-ink);
  border: 1px solid var(--ld-line);
  box-shadow: none;
}

.ld-cta__arrow {
  font-size: 1.1rem;
  line-height: 1;
  transition: transform 0.15s ease;
}

.ld-cta:hover .ld-cta__arrow { transform: translateX(2px); }

.ld-cta__spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  display: none;
  animation: ld-spin 0.7s linear infinite;
}

.ld-cta.is-busy .ld-cta__spinner { display: inline-block; }
.ld-cta.is-busy .ld-cta__arrow { display: none; }

@keyframes ld-spin { to { transform: rotate(360deg); } }

.ld-secure {
  margin: 0.75rem 0 0;
  color: var(--ld-muted);
  font-size: 0.82rem;
  line-height: 1.5;
  text-align: center;
}

.ld-modal[hidden] { display: none !important; }

.ld-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.ld-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 20, 16, 0.5);
  backdrop-filter: blur(8px);
  animation: ld-fade 0.2s ease both;
}

.ld-modal__panel {
  position: relative;
  width: min(420px, 100%);
  background: var(--ld-card);
  border: 1px solid var(--ld-line);
  border-radius: 22px;
  padding: 1.7rem 1.4rem 1.4rem;
  text-align: center;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
  animation: ld-pop 0.28s cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

@keyframes ld-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes ld-pop {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

.ld-modal__icon {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 0.9rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  font-weight: 800;
}

.ld-modal__icon.is-success {
  background: rgba(21, 122, 75, 0.12);
  color: var(--ld-ok);
}

.ld-modal__icon.is-success::before { content: "✓"; }

.ld-modal__icon.is-fail {
  background: rgba(180, 35, 24, 0.12);
  color: var(--ld-warn);
}

.ld-modal__icon.is-fail::before { content: "!"; }

.ld-modal__panel h2 {
  margin: 0 0 0.35rem;
  font-size: 1.4rem;
  font-family: Georgia, "Times New Roman", serif;
}

.ld-modal__amount {
  margin: 0 0 0.45rem;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--ld-accent);
  letter-spacing: -0.02em;
}

.ld-modal__lead {
  margin: 0 0 1.15rem;
  color: var(--ld-muted);
  line-height: 1.55;
}

.ld-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
}

@media (prefers-reduced-motion: reduce) {
  .ld-hero__orb,
  .ld-aside,
  .ld-card,
  .ld-modal__panel,
  .ld-modal__backdrop,
  .ld-cta__spinner {
    animation: none !important;
  }
}

/* App-like mobile */
@media (max-width: 640px) {
  .ld-page {
    padding: 0.85rem 0.75rem calc(5.5rem + env(safe-area-inset-bottom, 0px));
  }

  .ld-layout {
    gap: 1rem;
  }

  .ld-aside {
    padding: 0.15rem 0.15rem 0;
  }

  .ld-title {
    font-size: clamp(1.55rem, 7vw, 1.9rem);
  }

  .ld-lead {
    font-size: 0.95rem;
  }

  .ld-aside__panel {
    display: none;
  }

  .ld-trust {
    margin-bottom: 0.25rem;
  }

  .ld-card {
    border-radius: 22px;
    padding: 1rem 0.9rem 1.15rem;
    box-shadow: 0 12px 36px rgba(18, 40, 32, 0.12);
  }

  .ld-steps {
    display: none;
  }

  .ld-amounts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.45rem;
  }

  .ld-amount {
    min-height: 3.15rem;
    border-radius: 14px;
    padding: 0.55rem 0.2rem;
  }

  .ld-amount__value {
    font-size: 1.05rem;
  }

  .ld-custom {
    margin-top: 0.65rem;
    border-radius: 16px;
    padding: 0.85rem 0.85rem;
  }

  .ld-custom__box {
    min-height: 3.5rem;
    border-radius: 14px;
  }

  .ld-custom__box input {
    font-size: 1.55rem;
  }

  .ld-section--grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .ld-field__hint--spacer {
    display: none;
  }

  .ld-gateway {
    grid-template-columns: auto 1fr;
    padding: 0.9rem;
    border-radius: 16px;
  }

  .ld-gateway__badge {
    display: none;
  }

  .ld-summary {
    position: sticky;
    bottom: calc(0.65rem + env(safe-area-inset-bottom, 0px));
    z-index: 20;
    margin-top: 1.1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    padding: 0.85rem;
    border-radius: 18px;
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 30px rgba(18, 40, 32, 0.18);
  }

  .ld-summary__left {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
  }

  .ld-summary__label {
    margin: 0;
  }

  .ld-cta {
    width: 100%;
    min-height: 3.2rem;
    font-size: 1rem;
  }

  .ld-secure {
    font-size: 0.78rem;
    padding-inline: 0.25rem;
  }
}

@media (max-width: 380px) {
  .ld-amounts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
