:root {
  color-scheme: light;
  --blue: #1976dd;
  --blue-dark: #0f63c2;
  --navy: #172033;
  --text: #273142;
  --muted: #6b7585;
  --line: #dce2ea;
  --page: #f3f6fa;
  --surface: #ffffff;
  --soft: #f6f8fb;
  --green: #19a85b;
  --green-dark: #147a3e;
  --green-soft: #e9f8ef;
  --shadow: 0 10px 34px rgba(31, 50, 77, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--page);
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 85% 0%, rgba(25, 118, 221, 0.08), transparent 28rem),
    var(--page);
}

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.page-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 34px 0 48px;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  color: var(--navy);
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  line-height: 1.14;
  letter-spacing: -0.035em;
}

.intro {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.brand-group {
  display: flex;
  min-width: max-content;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.brand {
  color: #30343b;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.brand span {
  font-weight: 800;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #7d8694;
  font-size: 0.78rem;
}

.breadcrumbs svg {
  width: 14px;
  height: 14px;
}

.breadcrumbs strong {
  color: #4f5867;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(360px, 0.9fr);
  align-items: start;
  gap: 24px;
}

.card {
  overflow: hidden;
  border: 1px solid rgba(221, 227, 235, 0.85);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.details-card,
.result-card {
  padding: 26px;
}

.card-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.card-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: 1.16rem;
  line-height: 1.3;
}

.heading-icon {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  color: var(--blue);
  background: #eaf3fd;
}

.heading-icon svg {
  width: 18px;
  height: 18px;
}

.success-icon {
  color: var(--green);
  background: var(--green-soft);
}

.field-block {
  margin-bottom: 20px;
}

.label,
.promo-choice legend {
  margin-bottom: 8px;
  color: #273142;
  font-size: 0.89rem;
  font-weight: 700;
}

.label span {
  color: var(--muted);
  font-weight: 500;
}

.display-input,
.display-textarea {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #2c3748;
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(17, 27, 44, 0.03);
  font-size: 1rem;
}

.display-input {
  padding: 0 14px;
}

.display-input input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: inherit;
  background: transparent;
  font: inherit;
}

.display-input input[type="number"] {
  appearance: textfield;
}

.display-input input[type="number"]::-webkit-inner-spin-button,
.display-input input[type="number"]::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.display-input:focus-within,
.display-textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(25, 118, 221, 0.13);
  outline: none;
}

.amount-input {
  padding-left: 0;
}

.prefix {
  display: grid;
  min-width: 58px;
  align-self: stretch;
  place-items: center;
  margin-right: 14px;
  border-right: 1px solid var(--line);
  border-radius: 8px 0 0 8px;
  color: #4f5a6a;
  background: var(--soft);
  font-weight: 600;
}

.helper {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.promo-choice {
  min-width: 0;
  padding: 0;
  border: 0;
}

.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 38px;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #3a4453;
  font-size: 0.93rem;
  cursor: pointer;
}

.radio-dot {
  appearance: none;
  width: 19px;
  height: 19px;
  margin: 0;
  flex: 0 0 auto;
  border: 2px solid #c6ced8;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

.radio-dot:checked {
  border: 5px solid var(--blue);
}

.radio-dot:focus-visible {
  outline: 3px solid rgba(25, 118, 221, 0.22);
  outline-offset: 2px;
}

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

.date-field {
  min-width: 0;
}

.icon-input {
  justify-content: space-between;
}

.icon-input svg {
  width: 19px;
  height: 19px;
  color: #506071;
}

.display-textarea {
  min-height: 92px;
  align-items: flex-start;
  padding: 13px 14px;
  color: #98a1ae;
  line-height: 1.45;
  resize: vertical;
  font: inherit;
}

.display-textarea::placeholder { color: #98a1ae; opacity: 1; }

.action-row {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.fake-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border-radius: 8px;
  font-size: 0.93rem;
  font-weight: 700;
  line-height: 1.2;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  user-select: none;
}

.fake-button:active,
.copy-preview:active {
  transform: translateY(2px);
  filter: brightness(0.91);
}

.fake-button:focus-visible,
.copy-preview:focus-visible {
  outline: 3px solid rgba(25, 118, 221, 0.25);
  outline-offset: 3px;
}

.fake-button svg {
  width: 19px;
  height: 19px;
}

.primary,
.save-button {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  box-shadow: 0 7px 16px rgba(25, 118, 221, 0.2);
}

.secondary {
  border: 1px solid var(--line);
  color: #4f5968;
  background: #f2f4f7;
  box-shadow: 0 2px 5px rgba(34, 48, 69, 0.05);
}

.code-box {
  position: relative;
  display: grid;
  min-height: 86px;
  place-items: center;
  padding: 18px 70px 18px 20px;
  border: 1px solid #d9f0e1;
  border-radius: 10px;
  background: linear-gradient(135deg, #ebf8ef, #e1f4e8);
}

.code {
  color: #126736;
  font-size: clamp(1.65rem, 4vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.025em;
}

.copy-preview {
  position: absolute;
  top: 50%;
  right: 14px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid #e0e7e2;
  border-radius: 8px;
  color: #344154;
  background: #fff;
  box-shadow: 0 4px 10px rgba(29, 59, 41, 0.08);
  cursor: pointer;
}

.copy-preview:active { transform: translateY(calc(-50% + 2px)); }

.copy-preview svg {
  width: 20px;
  height: 20px;
}

.success-message {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 14px 2px 20px;
  color: var(--green);
  font-size: 0.86rem;
  font-weight: 650;
}

.check-circle {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
}

.check-circle svg {
  width: 15px;
  height: 15px;
  stroke-width: 2.4;
}

.summary-list {
  margin: 0 0 20px;
  padding: 10px 20px;
  border: 1px solid #edf0f4;
  border-radius: 10px;
  background: var(--soft);
}

.summary-list > div {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) minmax(100px, 1fr);
  gap: 16px;
  padding: 11px 0;
}

.summary-list > div + div {
  border-top: 1px solid #e5e9ef;
}

.summary-list dt,
.summary-list dd {
  margin: 0;
  font-size: 0.9rem;
}

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

.summary-list dd {
  color: #222c3b;
  font-weight: 650;
}

.status-badge {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  padding: 0 13px;
  border-radius: 999px;
  color: #fff;
  background: var(--green);
  font-size: 0.77rem;
  font-weight: 700;
}

.save-button {
  width: 100%;
}

.demo-note {
  margin: 14px 0 0;
  color: #8a94a2;
  font-size: 0.75rem;
  text-align: center;
}

@media (max-width: 860px) {
  .page-shell {
    width: min(100% - 32px, 680px);
    padding-top: 24px;
  }

  .topbar {
    flex-direction: column-reverse;
    gap: 22px;
    margin-bottom: 22px;
  }

  .brand-group {
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .brand {
    font-size: 1.55rem;
  }

  .breadcrumbs {
    display: none;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .result-card {
    order: 2;
  }
}

@media (max-width: 520px) {
  .page-shell {
    width: min(100% - 24px, 460px);
    padding: 18px 0 28px;
  }

  .topbar {
    gap: 18px;
  }

  .brand-group {
    justify-content: flex-start;
  }

  .brand {
    font-size: 1.35rem;
  }

  .eyebrow {
    margin-bottom: 7px;
    font-size: 0.7rem;
  }

  h1 {
    font-size: 1.7rem;
  }

  .intro {
    font-size: 0.93rem;
  }

  .content-grid {
    gap: 16px;
  }

  .details-card,
  .result-card {
    padding: 19px;
    border-radius: 12px;
  }

  .card-heading {
    margin-bottom: 20px;
  }

  .card-heading h2 {
    font-size: 1.06rem;
  }

  .field-pair {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .radio-row {
    flex-direction: column;
    gap: 13px;
  }

  .action-row {
    flex-direction: column;
  }

  .fake-button {
    width: 100%;
  }

  .code-box {
    min-height: 78px;
  }

  .code {
    font-size: 1.55rem;
  }

  .summary-list {
    padding: 8px 14px;
  }

  .summary-list > div {
    grid-template-columns: 1fr auto;
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
