:root {
  --bg: #f5efe8;
  --bg-soft: #f9f3ee;
  --ink: #221913;
  --muted: #725b4f;
  --line: rgba(34, 25, 19, 0.1);
  --cream: #fffaf6;
  --panel: rgba(255, 250, 246, 0.82);
  --panel-strong: rgba(255, 250, 246, 0.94);
  --accent: #c85e3e;
  --accent-dark: #8d3c24;
  --accent-soft: rgba(200, 94, 62, 0.12);
  --success: #28674c;
  --success-soft: rgba(40, 103, 76, 0.12);
  --warning: #9f6a1b;
  --warning-soft: rgba(159, 106, 27, 0.12);
  --danger: #a14141;
  --danger-soft: rgba(161, 65, 65, 0.12);
  --info: #355f83;
  --info-soft: rgba(53, 95, 131, 0.12);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --shadow-xl: 0 24px 60px rgba(73, 47, 34, 0.12);
  --shadow-sm: 0 10px 24px rgba(73, 47, 34, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  color: var(--ink);
  font-family: "Sora", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(200, 94, 62, 0.16), transparent 28%),
    radial-gradient(circle at right 20%, rgba(53, 95, 131, 0.14), transparent 24%),
    linear-gradient(180deg, #f6efe7 0%, #efe6dd 100%);
  position: relative;
}

body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 999px;
  filter: blur(32px);
  opacity: 0.34;
  pointer-events: none;
}

body::before {
  inset: 8% auto auto -90px;
  width: 220px;
  height: 220px;
  background: rgba(200, 94, 62, 0.22);
}

body::after {
  inset: auto -90px 12% auto;
  width: 260px;
  height: 260px;
  background: rgba(53, 95, 131, 0.16);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
  border: 0;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
  position: relative;
  z-index: 1;
}

.shell--dashboard {
  padding-top: 34px;
}

.shell--narrow {
  width: min(720px, calc(100% - 32px));
  padding-top: 80px;
}

.hero,
.payment-hero {
  display: grid;
  gap: 20px;
  align-items: stretch;
  background: linear-gradient(135deg, rgba(34, 25, 19, 0.96), rgba(65, 43, 35, 0.9));
  color: #fdf6f0;
  border-radius: 34px;
  padding: 28px;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  position: relative;
}

.hero::after,
.payment-hero::after {
  content: "";
  position: absolute;
  inset: auto -60px -100px auto;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(200, 94, 62, 0.45), transparent 65%);
}

.hero {
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
}

.payment-hero {
  grid-template-columns: minmax(0, 1fr) auto;
}

.hero__copy,
.payment-hero__copy {
  position: relative;
  z-index: 1;
}

.hero h1,
.payment-hero h1,
.panel h2,
.mini-card h3,
.panel--centered h1 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 0.95;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  max-width: 10ch;
}

.payment-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  max-width: 12ch;
}

.hero__text,
.payment-hero__text,
.mini-card__meta,
.helper-text {
  color: rgba(253, 246, 240, 0.78);
}

.hero__text,
.payment-hero__text {
  max-width: 60ch;
  line-height: 1.7;
  margin: 14px 0 0;
}

.hero__stats {
  display: grid;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.stat-card,
.panel,
.mini-card {
  background: var(--panel);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow: var(--shadow-sm);
}

.stat-card {
  padding: 18px;
  border-radius: 24px;
}

.stat-card span {
  display: block;
  font-size: 0.82rem;
  color: rgba(253, 246, 240, 0.72);
  margin-bottom: 8px;
}

.stat-card strong {
  display: block;
  font-size: 1rem;
  line-height: 1.5;
}

.workspace,
.payment-grid {
  display: grid;
  gap: 22px;
  margin-top: 24px;
}

.editor-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.payment-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
}

.payment-grid--card {
  align-items: start;
}

.panel {
  border-radius: var(--radius-xl);
  padding: 24px;
}

.panel--editorial {
  background:
    radial-gradient(circle at right bottom, rgba(200, 94, 62, 0.1), transparent 28%),
    var(--panel-strong);
}

.panel--centered {
  text-align: center;
  padding: 42px 28px;
}

.panel__head {
  margin-bottom: 22px;
}

.panel h2,
.panel--centered h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--ink);
}

.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
}

.stack-form,
.field-grid {
  display: grid;
  gap: 16px;
}

.field-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-size: 0.92rem;
  color: var(--muted);
}

.field input,
.field select,
.pix-code-box textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  padding: 15px 16px;
  color: var(--ink);
  outline: none;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.field input:focus,
.field select:focus,
.pix-code-box textarea:focus {
  border-color: rgba(200, 94, 62, 0.5);
  box-shadow: 0 0 0 6px rgba(200, 94, 62, 0.08);
}

.optional-box {
  border: 1px dashed rgba(114, 91, 79, 0.34);
  border-radius: 20px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.45);
}

.optional-box summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 0.92rem;
}

.optional-box[open] .field-grid {
  margin-top: 14px;
}

.primary-button,
.secondary-button,
.ghost-button,
.ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 600;
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease, background 180ms ease;
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.ghost-link:hover {
  transform: translateY(-1px);
}

.primary-button {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff8f4;
  box-shadow: 0 14px 28px rgba(141, 60, 36, 0.24);
}

.secondary-button {
  background: #fffaf6;
  color: var(--ink);
  border: 1px solid rgba(34, 25, 19, 0.08);
}

.ghost-button,
.ghost-link {
  background: transparent;
  color: var(--muted);
  border: 1px solid rgba(114, 91, 79, 0.18);
}

.primary-button--full {
  width: 100%;
}

.primary-button:disabled,
.secondary-button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
}

.result-panel.is-hidden {
  display: none;
}

.result-box {
  display: grid;
  gap: 18px;
}

.result-box__url {
  margin: 0;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.62);
  word-break: break-word;
}

.result-box__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.mini-card-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.mini-card {
  border-radius: 22px;
  padding: 18px;
}

.mini-card--empty {
  min-height: 180px;
  display: grid;
  align-content: center;
}

.mini-card__head,
.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mini-card h3 {
  font-size: 2rem;
  margin-top: 14px;
}

.mini-card__amount {
  font-size: 1.18rem;
  font-weight: 600;
  margin: 10px 0;
}

.mini-card__meta,
.ghost-link,
.helper-text {
  font-size: 0.88rem;
  color: var(--muted);
}

.price-badge {
  position: relative;
  z-index: 1;
  align-self: start;
  background: rgba(255, 249, 244, 0.12);
  border: 1px solid rgba(255, 249, 244, 0.2);
  border-radius: 999px;
  padding: 14px 20px;
  font-size: clamp(1.2rem, 3vw, 1.65rem);
  font-weight: 700;
}

.panel--qr {
  display: grid;
  gap: 20px;
}

.qr-wrapper {
  display: grid;
  place-items: center;
  min-height: 320px;
  padding: 20px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(247, 241, 235, 0.92));
}

.qr-wrapper svg {
  width: min(100%, 280px);
  height: auto;
}

.qr-wrapper--empty {
  border: 1px dashed rgba(114, 91, 79, 0.3);
}

.pix-code-box {
  display: grid;
  gap: 10px;
}

.pix-code-box textarea {
  min-height: 130px;
  resize: vertical;
  line-height: 1.6;
}

.payment-summary {
  display: grid;
  gap: 20px;
}

.payment-summary--sticky {
  position: sticky;
  top: 20px;
}

.summary-list {
  display: grid;
  gap: 16px;
  margin: 0;
}

.summary-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.summary-list dt,
.summary-list dd {
  margin: 0;
}

.summary-list dt {
  color: var(--muted);
}

.summary-list dd {
  text-align: right;
  font-weight: 600;
}

.message-banner {
  padding: 16px 18px;
  border-radius: 20px;
  line-height: 1.6;
  font-size: 0.92rem;
}

.message-banner--success {
  background: var(--success-soft);
  color: var(--success);
}

.message-banner--warning {
  background: var(--warning-soft);
  color: var(--warning);
}

.message-banner--danger {
  background: var(--danger-soft);
  color: var(--danger);
}

.message-banner--info {
  background: var(--info-soft);
  color: var(--info);
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.status-chip--success {
  background: var(--success-soft);
  color: var(--success);
}

.status-chip--warning {
  background: var(--warning-soft);
  color: var(--warning);
}

.status-chip--danger {
  background: var(--danger-soft);
  color: var(--danger);
}

.status-chip--info {
  background: var(--info-soft);
  color: var(--info);
}

.hosted-card-shell {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--line);
}

.hosted-card-shell__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.hosted-card-element {
  min-height: 92px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(34, 25, 19, 0.07);
  padding: 14px;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero,
.payment-hero,
.panel,
.mini-card {
  animation: fadeUp 420ms ease both;
}

@media (max-width: 920px) {
  .hero,
  .payment-hero,
  .editor-grid,
  .payment-grid {
    grid-template-columns: 1fr;
  }

  .payment-summary--sticky {
    position: static;
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 20px, 1180px);
    padding: 14px 0 34px;
  }

  .hero,
  .payment-hero,
  .panel {
    border-radius: 26px;
    padding: 20px;
  }

  .field-grid,
  .result-box__actions,
  .hosted-card-shell__head,
  .summary-list div,
  .mini-card__head,
  .status-row {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .summary-list div {
    align-items: flex-start;
  }

  .summary-list dd {
    text-align: left;
  }

  .primary-button,
  .secondary-button,
  .ghost-button {
    width: 100%;
  }

  .price-badge {
    justify-self: start;
  }
}
