:root {
  color-scheme: light;
  --cream: #f3ede0;
  --linen: #e6ddc7;
  --ecru: #ede6d4;
  --navy: #0b1d3a;
  --brass: #c9a84c;
  --pink: #ff2d9b;
  --green: #22d63b;
  --white: #fffefa;
  --ink: #0b1d3a;
  --muted: #667085;
  --line: #d9d4c9;
  --soft-line: #ece8df;
  --danger: #a33628;
  --shadow: 0 24px 70px rgb(11 29 58 / 10%);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; background: var(--cream); }
body { min-height: 100vh; margin: 0; overflow-x: hidden; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid rgb(255 45 155 / 22%);
  outline-offset: 2px;
}
[hidden] { display: none !important; }
#app { display: block; min-height: 100vh; min-height: 100dvh; }

.loading-card { display: grid; min-height: 100vh; align-content: center; justify-items: center; padding: 24px; background: var(--cream); text-align: center; }
.loading-card span { color: var(--navy); font: 500 italic 42px/1 Didot, "Bodoni 72", Georgia, serif; }
.loading-card .eyebrow { font: 600 9px/1.2 Copperplate, "Times New Roman", serif; }
.loading-card h1, .error-card h1 { margin: 12px 0; font: 500 clamp(36px, 8vw, 58px)/1 Didot, "Bodoni 72", Georgia, serif; letter-spacing: -.035em; }

.ycr-lockup { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.ycr-letters { font: 750 20px/.9 Didot, "Bodoni 72", Georgia, serif; letter-spacing: -.035em; }
.ycr-pipe { color: var(--pink); font: 300 26px/.8 Georgia, serif; }
.ycr-lockup em { color: var(--pink); font: 750 31px/.8 "Snell Roundhand", "Brush Script MT", "Segoe Script", cursive; letter-spacing: -.025em; }

.party-landing { min-height: 100vh; min-height: 100dvh; color: var(--navy); background: var(--white); }
.party-side { position: relative; isolation: isolate; display: grid; min-height: 360px; overflow: hidden; padding: 24px; background: #eadcbc; }
.party-side::after { position: absolute; z-index: -1; inset: 0; content: ""; background: radial-gradient(circle at 52% 52%, rgb(246 238 218 / 88%) 0 14%, rgb(243 232 206 / 58%) 37%, transparent 69%); pointer-events: none; }
.landing-argyle { position: absolute; z-index: -2; inset: -42%; transform: rotate(45deg); background:
  linear-gradient(90deg, transparent 0 47.7%, rgb(255 45 155 / 72%) 47.7% 49.2%, rgb(255 255 255 / 50%) 49.2% 49.65%, transparent 49.65% 100%) 0 0 / 112px 112px,
  linear-gradient(0deg, transparent 0 47.7%, rgb(34 214 59 / 68%) 47.7% 49.2%, rgb(11 29 58 / 20%) 49.2% 49.7%, transparent 49.7% 100%) 0 0 / 112px 112px,
  linear-gradient(90deg, transparent 0 49.1%, rgb(11 29 58 / 18%) 49.1% 50.4%, transparent 50.4% 100%) 0 0 / 224px 224px,
  conic-gradient(#d9c497 25%, #f5e9ca 0 50%, #e4d2aa 0 75%, #efdfbc 0) 0 0 / 224px 224px;
  animation: argyle-drift 24s linear infinite;
}
@keyframes argyle-drift { to { background-position: 112px 112px, -112px 112px, 224px 224px, 224px 224px; } }
.landing-header { position: absolute; z-index: 3; top: 26px; left: 28px; }
.party-message { position: relative; z-index: 2; align-self: center; justify-self: center; width: min(720px, 100%); padding: 82px 8px 44px; text-align: center; }
.party-message h1 { margin: 0; }
.party-message h1 em { display: block; color: var(--pink); font: 750 clamp(76px, 18vw, 128px)/.72 "Snell Roundhand", "Brush Script MT", "Segoe Script", cursive; letter-spacing: -.045em; text-shadow: 0 3px 0 rgb(255 255 255 / 70%); }
.party-message h1 span { display: block; max-width: 680px; margin: 26px auto 0; font: 550 clamp(40px, 9vw, 70px)/.94 Didot, "Bodoni 72", Georgia, serif; letter-spacing: -.045em; }
.party-beats { margin: 30px 0 0; font: 650 clamp(9px, 1vw, 12px)/1.3 Copperplate, "Times New Roman", serif; letter-spacing: .11em; text-transform: uppercase; white-space: nowrap; }
.party-beats i { margin: 0 .45em; color: var(--pink); font-style: normal; }
.argyle-credit { display: inline-block; margin-top: 14px; color: rgb(11 29 58 / 68%); font-size: 10px; font-weight: 700; text-decoration-color: rgb(11 29 58 / 28%); text-underline-offset: 3px; }

.instant-side { display: grid; min-height: 500px; align-items: center; padding: 40px 22px; background: var(--white); }
.instant-card { width: 100%; max-width: 440px; margin: auto; text-align: center; }
.celebration { margin-bottom: 12px; font-size: 49px; line-height: 1; }
.instant-kicker { color: var(--pink); font: 750 23px/.9 "Snell Roundhand", "Brush Script MT", "Segoe Script", cursive; }
.instant-card h2 { margin: 9px 0 24px; font: 550 clamp(38px, 9vw, 50px)/.96 Didot, "Bodoni 72", Georgia, serif; letter-spacing: -.04em; }
.instant-qr { display: grid; width: 164px; min-height: 164px; place-items: center; margin: 0 auto 22px; padding: 9px; border: 1px solid var(--soft-line); border-radius: 12px; background: #fff; box-shadow: 0 14px 34px rgb(11 29 58 / 8%); }
.instant-qr svg { display: block; width: 100%; height: auto; }
.instant-url { display: grid; min-width: 0; grid-template-columns: minmax(0, 1fr) auto; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; text-align: left; }
.instant-url code { min-width: 0; overflow: hidden; padding: 13px; font: 9px ui-monospace, SFMono-Regular, Menlo, monospace; text-overflow: ellipsis; white-space: nowrap; }
.instant-url button { padding: 0 13px; color: var(--navy); border: 0; border-left: 1px solid var(--line); background: #f6f4ef; font-size: 10px; font-weight: 750; cursor: pointer; }
.instant-card .full-button { min-height: 54px; margin-top: 12px; }
.explainer-link { margin-top: 8px; }

.claim-confetti { position: absolute; z-index: 1; inset: 0; overflow: hidden; pointer-events: none; }
.claim-confetti i { position: absolute; top: var(--y); left: var(--x); width: 7px; height: 21px; border-radius: 2px; opacity: 0; transform: translate(-50%, 24px) rotate(0) scale(.35); }
.claim-confetti i:nth-child(3n) { width: 11px; height: 11px; border-radius: 50%; }
.claim-confetti i:nth-child(4n) { width: 15px; height: 6px; }
.claim-confetti .pink { background: var(--pink); }
.claim-confetti .green { background: var(--green); }
.claim-confetti .brass { background: var(--brass); }
.claim-confetti .navy { background: var(--navy); }
.claim-confetti.burst i { animation: claim-confetti .9s cubic-bezier(.2, .7, .2, 1) both; }
.claim-confetti.burst i:nth-child(3n) { animation-delay: .06s; }
.claim-confetti.burst i:nth-child(4n) { animation-delay: .12s; }
@keyframes claim-confetti {
  0% { opacity: 0; transform: translate(-50%, 32px) rotate(0) scale(.3); }
  18% { opacity: 1; }
  75% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--r)) scale(1); }
}

.party-modal { width: min(470px, calc(100% - 32px)); min-height: 0; padding: 42px; color: var(--navy); border: 0; border-radius: 16px; background: var(--white); box-shadow: 0 35px 100px rgb(11 29 58 / 35%); }
.party-modal::backdrop { background: rgb(11 29 58 / 58%); backdrop-filter: blur(5px); }
.party-modal h2 { margin: 10px 0 28px; font: 550 clamp(38px, 9vw, 52px)/.95 Didot, "Bodoni 72", Georgia, serif; letter-spacing: -.04em; }
.modal-kicker { color: var(--pink); font: 750 24px/.9 "Snell Roundhand", "Brush Script MT", "Segoe Script", cursive; }
.modal-close { position: absolute; top: 15px; right: 15px; display: grid; width: 36px; height: 36px; place-items: center; padding: 0; color: var(--navy); border: 0; border-radius: 50%; background: #f3efe6; font-size: 21px; cursor: pointer; }
.party-drawer { position: fixed; inset: 0 0 0 auto; width: min(460px, 100%); height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; overflow-y: auto; padding: clamp(72px, 10vh, 110px) clamp(28px, 5vw, 54px) 48px; color: var(--navy); border: 0; border-left: 1px solid var(--soft-line); background: var(--white); box-shadow: -28px 0 80px rgb(11 29 58 / 24%); animation: drawer-in .24s ease-out; }
.party-drawer::backdrop { background: rgb(11 29 58 / 40%); backdrop-filter: blur(3px); }
.party-drawer h2 { margin: 12px 0 30px; font: 550 clamp(43px, 9vw, 58px)/.95 Didot, "Bodoni 72", Georgia, serif; letter-spacing: -.04em; }
.party-drawer p { margin: 0; color: #4f5c70; font-size: 15px; line-height: 1.65; }
.party-drawer p + p { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--soft-line); }
.party-drawer p a { color: var(--navy); font-weight: 700; text-decoration-color: var(--pink); text-underline-offset: 3px; }
.party-drawer h3 { margin: 34px 0 12px; font: 650 10px/1.2 Copperplate, "Times New Roman", serif; letter-spacing: .14em; text-transform: uppercase; }
.use-case-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px; margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.use-case-list li { padding: 13px 0; border-bottom: 1px solid var(--soft-line); font-size: 12px; font-weight: 700; line-height: 1.35; }
@keyframes drawer-in { from { transform: translateX(100%); } }

.create-layout { display: flex; min-height: 100vh; min-height: 100dvh; flex-direction: column; background: var(--white); }
.intro-pane { position: relative; isolation: isolate; display: flex; min-height: 470px; flex-direction: column; overflow: hidden; padding: 24px; color: var(--navy); background: var(--cream); }
.argyle-field, .product-pattern { position: absolute; z-index: -1; inset: -25%; pointer-events: none; transform: rotate(45deg); opacity: .55; background:
  linear-gradient(90deg, transparent 0 49.4%, rgb(255 45 155 / 45%) 49.4% 50%, transparent 50% 100%) 0 0 / 92px 92px,
  linear-gradient(0deg, transparent 0 49.4%, rgb(34 214 59 / 42%) 49.4% 50%, transparent 50% 100%) 0 0 / 92px 92px,
  conic-gradient(rgb(230 221 199 / 80%) 25%, rgb(243 237 224 / 80%) 0 50%, rgb(237 230 212 / 90%) 0 75%, rgb(243 237 224 / 80%) 0) 0 0 / 184px 184px;
}
.intro-pane::after { position: absolute; z-index: -1; inset: 0; content: ""; background: linear-gradient(180deg, rgb(243 237 224 / 8%), rgb(243 237 224 / 42%) 38%, rgb(243 237 224 / 94%) 82%); }
.intro-copy { position: relative; z-index: 1; max-width: 640px; margin: auto 0; padding: 70px 0 60px; }
.product-label, .step-count, .field-label, .merchant-name, .payment-heading > span, .section-label > span {
  display: block; color: var(--navy); font: 600 10px/1.2 Copperplate, "Times New Roman", serif; letter-spacing: .18em; text-transform: uppercase;
}
.intro-copy h1 { max-width: 690px; margin: 14px 0 22px; font: 500 clamp(48px, 12vw, 72px)/.94 Didot, "Bodoni 72", Georgia, serif; letter-spacing: -.045em; }
.intro-copy > p { max-width: 590px; margin: 0; font-size: 18px; line-height: 1.48; }
.intro-copy .service-line { max-width: 540px; margin-top: 20px; color: rgb(11 29 58 / 65%); font-size: 13px; line-height: 1.5; }
.intro-facts { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0; border: 1px solid rgb(11 29 58 / 16%); background: rgb(11 29 58 / 16%); }
.intro-facts div { min-width: 0; padding: 13px 14px; background: rgb(243 237 224 / 90%); }
.intro-facts dt { color: rgb(11 29 58 / 55%); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.intro-facts dd { margin: 4px 0 0; font-size: 12px; font-weight: 700; }

.create-pane, .result-pane { display: flex; min-width: 0; flex: 1; flex-direction: column; background: var(--white); }
.create-form { width: 100%; max-width: 650px; margin: 0 auto; padding: 28px 22px 48px; }
.create-progress { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 44px; border-bottom: 1px solid var(--soft-line); }
.create-progress button { position: relative; display: flex; min-height: 54px; align-items: center; justify-content: center; gap: 8px; padding: 0; border: 0; color: #98a0ad; background: transparent; font-size: 11px; cursor: pointer; }
.create-progress button::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; content: ""; background: transparent; }
.create-progress button.active { color: var(--navy); }
.create-progress button.active::after { background: var(--pink); }
.create-progress button.done { color: var(--navy); }
.create-progress button:disabled { cursor: default; }
.create-progress i { display: grid; width: 22px; height: 22px; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-size: 9px; font-style: normal; }

.create-step { animation: step-in .22s ease-out; }
@keyframes step-in { from { opacity: 0; transform: translateY(5px); } }
.create-step h2, .result-card h2, .payment-heading h2, .simple-state h2, .panel h2, .login-card h2 { margin: 9px 0 12px; font: 500 clamp(34px, 8vw, 46px)/1 Didot, "Bodoni 72", Georgia, serif; letter-spacing: -.035em; }
.step-intro { max-width: 540px; margin: 0 0 30px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.config-group { margin-top: 26px; }
.config-group + .config-group { padding-top: 25px; border-top: 1px solid var(--soft-line); }
.field-label { margin-bottom: 12px; }

.wallet-tabs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; margin: 26px 0 16px; padding: 4px; border-radius: 10px; background: #f2f0eb; }
.tab { min-height: 42px; padding: 0 12px; border: 0; border-radius: 7px; color: var(--muted); background: transparent; font-size: 12px; font-weight: 700; cursor: pointer; }
.tab.active { color: var(--navy); background: #fff; box-shadow: 0 1px 4px rgb(11 29 58 / 10%); }
.wallet-box { min-width: 0; }
.inline-actions { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.inline-actions .good-note { flex: 1; margin: 0; }
.fine-print { margin: 15px 0 0; color: #7d8490; font-size: 10px; line-height: 1.55; }
.fine-print a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 2px; }
.fine-print.centered { text-align: center; }
.key-warning, .preview-notice { margin: 0 0 16px; padding: 12px 14px; border-left: 2px solid var(--pink); color: #6f3451; background: #fff5fa; font-size: 11px; line-height: 1.5; }
.seed-words { margin: 16px 0 10px; padding: 15px; border: 1px solid var(--line); border-radius: 8px; background: var(--cream); font: 650 11px/1.8 ui-monospace, SFMono-Regular, Menlo, monospace; word-spacing: 4px; user-select: all; }
.good-note { margin: 12px 0 0; color: #24602d; font: 600 10px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }

.fields { display: grid; grid-template-columns: 1fr; gap: 15px; }
.compact-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { display: grid; min-width: 0; gap: 7px; align-content: start; color: #3f4b60; font-size: 11px; font-weight: 700; }
.field small { color: #838a95; font-size: 10px; font-weight: 500; line-height: 1.45; }
.field.wide { grid-column: 1 / -1; }
input, select, textarea { width: 100%; min-width: 0; min-height: 50px; padding: 12px 13px; color: var(--navy); border: 1px solid var(--line); border-radius: 8px; background: #fff; outline: none; }
textarea { min-height: 92px; resize: vertical; line-height: 1.45; }
input:focus, select:focus, textarea:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgb(11 29 58 / 7%); }
.check { display: flex; min-width: 0; gap: 10px; align-items: flex-start; color: #4e5868; font-size: 11px; line-height: 1.45; }
.check input { width: 17px; min-width: 17px; min-height: 17px; margin: 0; accent-color: var(--navy); }
.check.terms { margin-top: 28px; padding: 16px 0; border-top: 1px solid var(--soft-line); border-bottom: 1px solid var(--soft-line); }

.template-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.template-choice { position: relative; min-width: 0; }
.template-choice input { position: absolute; width: 1px; height: 1px; min-height: 1px; opacity: 0; pointer-events: none; }
.template-choice span { display: grid; min-height: 76px; align-content: space-between; padding: 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: #fff; cursor: pointer; }
.template-choice strong { color: var(--navy); font-size: 12px; }
.template-choice small { font-size: 9px; }
.template-choice input:checked + span { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.template-choice input:focus-visible + span { outline: 3px solid rgb(255 45 155 / 22%); outline-offset: 2px; }

#pricing-fields { margin-top: 18px; }
#catalog-fields { margin-top: 16px; }
.disclosure { margin-top: 16px; border-top: 1px solid var(--soft-line); }
.disclosure summary { display: flex; min-height: 55px; align-items: center; justify-content: space-between; cursor: pointer; font-size: 12px; font-weight: 700; list-style: none; }
.disclosure summary::-webkit-details-marker { display: none; }
.disclosure summary::before { order: 2; margin-left: 10px; content: "+"; font-size: 18px; font-weight: 400; }
.disclosure[open] summary::before { content: "−"; }
.disclosure summary span { margin-left: auto; color: #959ba5; font-size: 9px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; }
.disclosure-body { padding: 4px 0 20px; }
.event-options { display: flex; flex-wrap: wrap; gap: 12px; }

.catalog { display: grid; gap: 10px; }
.product-editor { padding: 14px; border: 1px solid var(--line); border-radius: 9px; background: #fbfaf7; }
.product-head, .variant-row { display: grid; grid-template-columns: minmax(0, 1fr) 84px auto; gap: 8px; align-items: end; }
.variant-list { display: grid; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--soft-line); }
.variant-row { grid-template-columns: minmax(0, 1fr) minmax(110px, 1fr) auto; }
.icon-button { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 8px; color: var(--danger); background: #fff; cursor: pointer; }
.small-button, .copy-button, .ghost-button { min-height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 10px; font-weight: 700; cursor: pointer; }
.add-row { margin-top: 10px; }

.primary, .secondary, .danger { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; padding: 0 18px; border-radius: 8px; font-size: 12px; font-weight: 750; text-decoration: none; cursor: pointer; }
.primary { color: #fff; border: 1px solid var(--navy); background: var(--navy); }
.primary:hover { background: #132b50; }
.primary:disabled { opacity: .45; cursor: wait; }
.secondary { color: var(--navy); border: 1px solid var(--line); background: #fff; }
.danger { color: #fff; border: 1px solid var(--danger); background: var(--danger); }
.text-button { min-height: 38px; padding: 0; border: 0; color: var(--navy); background: transparent; font-size: 11px; font-weight: 750; text-decoration: underline; text-decoration-color: rgb(11 29 58 / 30%); text-underline-offset: 3px; cursor: pointer; }
.full-button { width: 100%; margin-top: 20px; }
.step-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 32px; }
.step-actions .primary { min-width: 132px; }

.publish-summary { display: grid; margin-top: 28px; border-top: 1px solid var(--line); }
.publish-summary div { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; padding: 15px 0; border-bottom: 1px solid var(--soft-line); }
.publish-summary span { color: var(--muted); font-size: 10px; }
.publish-summary strong { font-size: 11px; text-align: right; }
.pane-footer { display: flex; width: calc(100% - 44px); max-width: 606px; align-items: center; justify-content: space-between; gap: 14px; margin: auto auto 0; padding: 18px 0; border-top: 1px solid var(--soft-line); color: #949aa4; font-size: 9px; }

.completion-layout .intro-facts { grid-template-columns: repeat(2, 1fr); }
.result-pane { justify-content: center; padding: 24px; }
.result-card { width: 100%; max-width: 620px; margin: auto; }
.credential { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--soft-line); }
.credential span { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .06em; }
.credential code { min-width: 0; overflow: hidden; font: 600 10px ui-monospace, SFMono-Regular, Menlo, monospace; text-overflow: ellipsis; white-space: nowrap; }
.result-actions, .invoice-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

.accent-pink { --accent: var(--pink); }
.accent-green { --accent: var(--green); }
.accent-brass { --accent: var(--brass); }
.accent-navy { --accent: var(--navy); }
.hosted-checkout { min-height: 100vh; min-height: 100dvh; background: #fff; }
.product-pane { position: relative; isolation: isolate; display: flex; min-height: 380px; flex-direction: column; overflow: hidden; padding: 24px; color: var(--navy); background: var(--cream); }
.product-pane::before { position: absolute; top: 0; right: 0; left: 0; height: 5px; content: ""; background: var(--accent); }
.product-pattern { opacity: .22; filter: saturate(.7); }
.product-pane .ycr-lockup { color: var(--navy); }
.product-summary { position: relative; z-index: 1; max-width: 620px; margin: auto 0; padding: 68px 0 54px; }
.merchant-name { color: var(--accent); }
.product-summary h1 { max-width: 640px; margin: 13px 0 18px; font: 500 clamp(45px, 12vw, 70px)/.95 Didot, "Bodoni 72", Georgia, serif; letter-spacing: -.045em; }
.product-summary p { max-width: 560px; margin: 0; color: rgb(11 29 58 / 67%); font-size: 14px; line-height: 1.55; }
.product-pane > footer { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 16px; color: rgb(11 29 58 / 55%); font-size: 9px; text-transform: uppercase; letter-spacing: .07em; }
.payment-pane { display: grid; min-width: 0; align-items: center; padding: 36px 22px; background: #fff; }
.payment-panel { width: 100%; max-width: 500px; min-width: 0; margin: auto; }
.preview-notice { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.preview-notice span { font-size: 10px; }
.payment-heading { margin-bottom: 28px; }
.payment-heading h2 { font-size: clamp(34px, 8vw, 44px); }
.payment-form { min-width: 0; }
.fixed-price { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 18px 0; border-top: 1px solid var(--soft-line); border-bottom: 1px solid var(--soft-line); }
.fixed-price span { color: var(--muted); font-size: 11px; }
.fixed-price strong { font: 600 24px/1 Didot, "Bodoni 72", Georgia, serif; }
.amount-field { margin-bottom: 8px; }
.amount-input { position: relative; }
.amount-input > span { position: absolute; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 14px; }
.amount-input > span:first-child { left: 15px; }
.amount-input > span:last-child { right: 15px; }
.amount-input input { min-height: 62px; padding-left: 34px; font-size: 25px; font-weight: 700; }
.amount-input.sats input { padding-right: 54px; padding-left: 13px; }
.menu-list { display: grid; border-top: 1px solid var(--soft-line); }
.menu-item { min-width: 0; padding: 18px 0; border-bottom: 1px solid var(--soft-line); }
.menu-copy h3 { margin: 0 0 4px; font-size: 13px; }
.menu-copy p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.4; }
.menu-controls { display: grid; grid-template-columns: minmax(0, 1fr) 76px; gap: 9px; margin-top: 12px; }
.menu-controls input, .menu-controls select { min-height: 44px; padding: 9px 10px; font-size: 10px; }
.tip-section { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--soft-line); }
.section-label { display: flex; justify-content: space-between; margin-bottom: 12px; }
.section-label small { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.tip-buttons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.tip-buttons button { min-width: 0; min-height: 42px; padding: 0 6px; border: 1px solid var(--line); border-radius: 7px; background: #fff; font-size: 10px; cursor: pointer; }
.tip-buttons button.active { color: #fff; border-color: var(--navy); background: var(--navy); }
.checkout-total { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.checkout-total span { color: var(--muted); font-size: 11px; }
.checkout-total strong { font-size: 14px; }
.payment-facts { margin: 14px 0 0; color: #969ca5; font-size: 9px; line-height: 1.45; text-align: center; }
.resume-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; padding: 11px 13px; border: 1px solid var(--soft-line); border-radius: 8px; color: var(--muted); font-size: 10px; }
.checkout-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--soft-line); color: #9a9fa7; font-size: 9px; }
.checkout-footer a { font-weight: 700; text-decoration: none; }

.invoice-amount { margin-bottom: 22px; }
.invoice-amount strong { display: block; font: 600 32px/1 Didot, "Bodoni 72", Georgia, serif; }
.invoice-amount span { display: block; margin-top: 7px; color: var(--muted); font: 10px ui-monospace, SFMono-Regular, Menlo, monospace; }
.invoice-grid { display: grid; grid-template-columns: 144px minmax(0, 1fr); gap: 18px; align-items: center; }
.qr { display: grid; width: 144px; min-height: 144px; place-items: center; padding: 8px; border: 1px solid var(--soft-line); border-radius: 8px; background: #fff; }
.qr svg { display: block; width: 100%; height: auto; }
.invoice-instructions { min-width: 0; }
.invoice-instructions > span { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.invoice-instructions small { display: block; margin-top: 8px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.address-row { display: grid; min-width: 0; grid-template-columns: minmax(0, 1fr) auto; margin-top: 7px; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; }
.address-row code { min-width: 0; overflow: hidden; padding: 12px; font: 9px ui-monospace, SFMono-Regular, Menlo, monospace; text-overflow: ellipsis; white-space: nowrap; }
.address-row button { padding: 0 10px; border: 0; border-left: 1px solid var(--line); background: #f6f4ef; font-size: 9px; cursor: pointer; }
.status-track { height: 4px; margin: 24px 0 10px; overflow: hidden; border-radius: 99px; background: var(--soft-line); }
.status-track i { display: block; width: 8%; height: 100%; background: var(--accent); transition: width .3s; }
.status-copy { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.invoice-actions > * { flex: 1; }

.simple-state { padding: 40px 0; }
.simple-state > span { color: var(--danger); font-size: 10px; text-transform: uppercase; }
.simple-state p, .subtle { color: var(--muted); font-size: 12px; line-height: 1.55; }

/* Operator pages keep the same controls but use the reduced visual system. */
.manage-shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 40px 0 72px; }
.manage-head { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin-bottom: 24px; }
.manage-head h1 { margin: 6px 0 0; font: 500 clamp(42px, 7vw, 70px)/.95 Didot, "Bodoni 72", Georgia, serif; }
.manage-grid { display: grid; gap: 20px; }
.builder, .panel, .login-card, .error-card { border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.builder, .panel { padding: clamp(20px, 4vw, 34px); }
.panel + .panel { margin-top: 14px; }
.form-section { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--soft-line); }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.section-title h3 { margin: 0; font-size: 13px; }
.section-title span, .eyebrow { color: var(--muted); font: 600 9px Copperplate, serif; letter-spacing: .12em; text-transform: uppercase; }
.warning { margin: 0 0 14px; padding: 12px 14px; border-left: 2px solid var(--pink); color: #6f3451; background: #fff5fa; font-size: 11px; line-height: 1.5; }
.login-card, .error-card { width: min(620px, calc(100% - 32px)); margin: 56px auto; padding: clamp(24px, 5vw, 44px); }
.submit-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 22px; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { padding: 12px; border: 1px solid var(--soft-line); border-radius: 8px; }
.stat strong { display: block; }
.stat span { color: var(--muted); font-size: 8px; text-transform: uppercase; }
.log { display: grid; gap: 6px; margin-top: 12px; }
.log-row { display: grid; grid-template-columns: 100px minmax(0, 1fr) auto; gap: 9px; padding: 9px 0; border-top: 1px solid var(--soft-line); font-size: 9px; }
.log-row code { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.state, .pill { width: fit-content; padding: 4px 7px; border-radius: 99px; color: #24602d; background: #e8f7e5; font-size: 8px; text-transform: uppercase; }
.state.bad { color: var(--danger); background: #fae8e4; }
.url-list { display: grid; gap: 8px; margin-top: 14px; font-size: 10px; }
.revision-note { padding: 11px; border: 1px dashed var(--line); border-radius: 7px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.wallet-help, .submit-row small { color: var(--muted); font-size: 10px; line-height: 1.55; }

#toast { position: fixed; z-index: 30; right: 16px; bottom: 16px; max-width: min(360px, calc(100% - 32px)); padding: 12px 15px; color: #fff; border-radius: 8px; background: var(--navy); box-shadow: var(--shadow); font-size: 11px; opacity: 0; transform: translateY(7px); transition: .18s; pointer-events: none; }
#toast.show { opacity: 1; transform: none; }

@media (min-width: 620px) {
  .intro-pane { padding: 34px; }
  .create-form { padding: 38px 40px 60px; }
  .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .template-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .menu-item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(190px, .9fr); gap: 18px; align-items: end; }
  .menu-controls { margin-top: 0; }
  .product-pane { padding: 34px; }
  .payment-pane { padding: 52px 38px; }
  .intro-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 960px) {
  .party-landing { display: grid; grid-template-columns: minmax(0, 56%) minmax(0, 44%); height: 100vh; height: 100dvh; overflow: hidden; }
  .party-side, .instant-side { min-height: 100vh; min-height: 100dvh; }
  .party-side { padding: clamp(32px, 4vw, 58px); }
  .instant-side { padding: clamp(44px, 6vw, 82px); }
  .party-drawer { width: 44vw; }
  .create-layout { display: grid; grid-template-columns: minmax(0, 46%) minmax(0, 54%); height: 100vh; height: 100dvh; overflow: hidden; }
  .intro-pane { min-height: 100vh; padding: clamp(34px, 4vw, 58px); }
  .intro-copy { padding: 80px 0 70px; }
  .intro-copy h1 { font-size: clamp(58px, 5.6vw, 88px); }
  .create-pane, .result-pane { height: 100vh; height: 100dvh; overflow-y: auto; }
  .create-form { padding-top: 44px; }
  .hosted-checkout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .product-pane { position: sticky; top: 0; min-height: 100vh; min-height: 100dvh; padding: clamp(36px, 4.5vw, 68px); }
  .product-summary { padding: 80px 0; }
  .product-summary h1 { font-size: clamp(58px, 5vw, 86px); }
  .payment-pane { min-height: 100vh; min-height: 100dvh; padding: clamp(48px, 7vw, 92px); }
  .manage-grid { grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr); }
}

@media (max-width: 619px) {
  .party-side { min-height: 340px; padding: 20px; }
  .landing-header { top: 22px; right: auto; left: 22px; }
  .party-message { padding: 102px 0 48px; }
  .party-message h1 em { font-size: clamp(74px, 23vw, 92px); }
  .party-message h1 span { margin-top: 22px; font-size: clamp(38px, 11vw, 48px); }
  .instant-side { min-height: 504px; padding: 34px 20px 42px; }
  .celebration { font-size: 45px; }
  .instant-card h2 { margin-bottom: 20px; }
  .instant-qr { width: 148px; min-height: 148px; margin-bottom: 18px; }
  .party-modal { padding: 38px 22px 28px; }
  .intro-copy { padding-top: 76px; }
  .intro-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compact-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-head, .variant-row { grid-template-columns: 1fr; }
  .product-head .icon-button, .variant-row .icon-button { width: 100%; }
  .credential { grid-template-columns: minmax(0, 1fr) auto; }
  .credential span { grid-column: 1 / -1; }
  .invoice-grid { grid-template-columns: 120px minmax(0, 1fr); gap: 12px; }
  .qr { width: 120px; min-height: 120px; }
  .manage-head { display: block; }
  .log-row { grid-template-columns: 1fr auto; }
  .log-row code { grid-column: 1 / -1; }
}

@media (max-width: 370px) {
  .party-side { min-height: 320px; }
  .instant-side { padding-right: 18px; padding-left: 18px; }
  .instant-qr { width: 140px; min-height: 140px; }
  .intro-pane, .product-pane { padding-right: 18px; padding-left: 18px; }
  .create-form, .payment-pane { padding-right: 18px; padding-left: 18px; }
  .invoice-grid { grid-template-columns: 1fr; }
  .qr { width: 150px; min-height: 150px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
