:root {
  --bg: #f3efe7;
  --ink: #101715;
  --muted: #66716c;
  --surface: #fcfbf8;
  --surface-2: #f6f1e7;
  --line: rgba(16, 23, 21, 0.08);
  --green: #1c6b43;
  --green-deep: #12462c;
  --green-soft: rgba(28, 107, 67, 0.12);
  --shadow: 0 22px 60px rgba(27, 37, 33, 0.12);
  --radius-xl: 32px;
  --radius-lg: 26px;
  --radius-md: 22px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 255, 255, 0.95), transparent 25%),
    radial-gradient(circle at 90% 85%, rgba(161, 198, 174, 0.45), transparent 18%),
    linear-gradient(180deg, #f6f2ea 0%, #e2eadf 100%);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  width: min(100%, 430px);
  margin: 0 auto;
  padding: 18px 16px 34px;
}

.hero-card,
.payment-card,
.summary-card,
.status-card {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.hero-card {
  position: relative;
  overflow: hidden;
  padding: 22px 22px 24px;
  margin-bottom: 16px;
  color: #f7faf7;
  background:
    radial-gradient(circle at top right, rgba(101, 180, 135, 0.32), transparent 30%),
    linear-gradient(145deg, #13221c 0%, #183428 55%, #1d6b43 120%);
}

.hero-card::after {
  content: "";
  position: absolute;
  right: -24px;
  bottom: -34px;
  width: 128px;
  height: 128px;
  border-radius: 32px;
  transform: rotate(18deg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.02));
}

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

.eyebrow,
.step,
.summary-label,
.status-tag,
.amount-label {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow {
  color: rgba(247, 250, 247, 0.76);
}

.signal-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #77d89d;
  box-shadow: 0 0 0 8px rgba(119, 216, 157, 0.14);
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  margin-top: 20px;
  font-size: clamp(2rem, 8vw, 2.8rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.lead {
  margin-top: 12px;
  max-width: 20ch;
  color: rgba(247, 250, 247, 0.78);
  font-size: 0.98rem;
  line-height: 1.45;
}

.payment-card,
.status-card {
  padding: 22px;
  border: 1px solid var(--line);
  background: rgba(252, 251, 248, 0.82);
  backdrop-filter: blur(14px);
}

.payment-card {
  margin-bottom: 16px;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.step,
.summary-label,
.status-tag,
.amount-label {
  color: var(--muted);
}

.section-head h2 {
  font-size: 1.35rem;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.amount-panel {
  display: block;
}

.amount-input-frame {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 88px;
  margin-top: 10px;
  padding: 0 18px;
  border: 1px solid rgba(16, 23, 21, 0.08);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(245, 240, 232, 0.88));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.currency-prefix,
.currency-suffix {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.amount-input-frame input {
  width: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.08em;
}

.helper-text {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.summary-card {
  position: sticky;
  bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(16, 23, 21, 0.08);
  background: rgba(252, 251, 248, 0.92);
  backdrop-filter: blur(18px);
}

.summary-copy {
  min-width: 0;
}

.summary-amount {
  margin-top: 4px;
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.06em;
}

.primary-action {
  min-height: 58px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #238050 0%, var(--green) 100%);
  color: #f7faf7;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  box-shadow: 0 14px 28px rgba(28, 107, 67, 0.24);
}

.primary-action:hover {
  background: linear-gradient(180deg, #248754 0%, #1a603c 100%);
}

.primary-action:disabled {
  opacity: 0.62;
  cursor: wait;
}

.status-card {
  margin-top: 16px;
}

.status-card h2 {
  margin-top: 8px;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.status-card p:last-child {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.45;
}

.hidden {
  display: none;
}

@media (max-width: 390px) {
  .summary-card {
    flex-direction: column;
    align-items: stretch;
  }

  .primary-action {
    width: 100%;
  }
}
