:root {
  --bg: #f4ecdf;
  --panel: rgba(255, 250, 243, 0.84);
  --panel-line: rgba(46, 24, 20, 0.12);
  --text: #221311;
  --muted: #6a4e48;
  --accent-strong: #872b18;
  --shadow: 0 24px 80px rgba(36, 16, 12, 0.16);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --font-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --font-body: "Avenir Next", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
  width: 100%;
  overflow-x: clip;
  background:
    radial-gradient(circle at top left, rgba(202, 112, 76, 0.22), transparent 28%),
    radial-gradient(circle at top right, rgba(99, 34, 25, 0.24), transparent 22%),
    linear-gradient(180deg, #f8f0e6 0%, #f1e5d5 38%, #eadcc9 100%);
  color: var(--text);
  font-family: var(--font-body);
}

body {
  padding: 24px;
}

.app-shell {
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
}

.event-page {
  display: grid;
  gap: 28px;
  animation: fade-up 420ms ease-out;
  min-width: 0;
}

.page-layout {
  display: grid;
  gap: 28px;
  width: min(100%, 1080px);
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  width: 100%;
  min-width: 0;
  background: rgba(28, 15, 13, 0.9);
  color: #fff6f0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 540px;
}

.hero__media {
  position: relative;
  min-height: 100%;
  background: linear-gradient(135deg, #53302a 0%, #1b0d0b 100%);
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero__ambient,
.gallery-fallback__art {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(224, 157, 113, 0.5), transparent 0 28%),
    radial-gradient(circle at 80% 30%, rgba(161, 52, 24, 0.45), transparent 0 24%),
    linear-gradient(145deg, #35201b 0%, #150908 65%, #0d0504 100%);
}

.hero__orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(18px);
  opacity: 0.9;
}

.hero__orb--one {
  width: 220px;
  height: 220px;
  background: rgba(255, 167, 96, 0.55);
  top: 16%;
  left: 12%;
}

.hero__orb--two {
  width: 300px;
  height: 300px;
  background: rgba(193, 67, 41, 0.38);
  bottom: 10%;
  right: 8%;
}

.hero__grain {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02), rgba(255,255,255,0.02)),
    linear-gradient(90deg, rgba(255,255,255,0.02), rgba(255,255,255,0.02));
  background-size: 100% 3px, 3px 100%;
  mix-blend-mode: soft-light;
  opacity: 0.16;
}

.hero__content {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 52px 48px;
  min-width: 0;
}

.hero__content > * {
  min-width: 0;
}

.eyebrow,
.panel__eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  color: #dbb8a8;
}

.hero__title,
.empty-state h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.hero__meta,
.hero__status-row,
.ticket-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}

.meta-pill,
.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  max-width: 100%;
  min-width: 0;
}

.meta-pill {
  background: rgba(255, 244, 239, 0.12);
  border: 1px solid rgba(255, 244, 239, 0.16);
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.25;
  padding-top: 8px;
  padding-bottom: 8px;
}

.status-badge {
  font-weight: 700;
  background: rgba(255, 255, 255, 0.14);
}

.status-badge--active {
  background: rgba(40, 152, 111, 0.2);
}

.status-badge--rescheduled {
  background: rgba(244, 154, 53, 0.2);
}

.status-badge--cancelled {
  background: rgba(213, 53, 79, 0.22);
}

.hero__status-note,
.cta-caption {
  margin: 0;
  color: #e3cbbf;
  max-width: 42rem;
}

.cta-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #ef8f61 0%, #b64525 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 12px 24px rgba(191, 79, 47, 0.28);
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: box-shadow 180ms ease, transform 180ms ease, opacity 180ms ease;
}

.cta-button::after {
  content: "";
  position: absolute;
  inset: -24% auto -24% -38%;
  width: 36%;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0) 0%, rgba(255, 244, 227, 0.18) 38%, rgba(255, 255, 255, 0.58) 50%, rgba(255, 244, 227, 0.18) 62%, rgba(255, 255, 255, 0) 100%);
  opacity: 0;
  transform: translateX(-170%) skewX(-18deg);
  pointer-events: none;
}

.cta-button--link {
  width: fit-content;
}

.cta-button--loading {
  background: linear-gradient(135deg, #e98356 0%, #ac3c1d 100%);
  box-shadow: 0 14px 30px rgba(163, 63, 34, 0.34);
}

.cta-button--loading::after {
  opacity: 0.9;
  animation: cta-sweep 1.4s cubic-bezier(0.36, 0.08, 0.28, 0.96) infinite;
}

.secondary-button {
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(135, 43, 24, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--accent-strong);
  font-weight: 700;
  cursor: pointer;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  min-width: 0;
}

.content-grid__main {
  display: grid;
  gap: 28px;
  min-width: 0;
}

@media (min-width: 981px) {
  .checkout-session__section--payment {
    order: 1;
  }

  .checkout-session__section--order {
    order: 2;
  }
}

.panel--tickets {
  align-self: start;
  padding: 24px 18px 18px;
}

.panel--tickets .panel__header {
  margin-bottom: 22px;
}

.panel--tickets-collapsed {
  padding-bottom: 22px;
}

.panel--tickets-collapsed .panel__header {
  margin-bottom: 0;
}

.panel {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--panel);
  border: 1px solid var(--panel-line);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(58, 32, 26, 0.08);
}

.panel__header h2 {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.08;
}

.panel--tickets .panel__header h2 {
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  line-height: 1.12;
}

.panel__header--tickets {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.panel__header-main {
  min-width: 0;
}

.panel__header-side {
  display: grid;
  justify-items: end;
  gap: 10px;
  flex-shrink: 0;
}

.panel__subtle,
.panel__feedback {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.refresh-icon-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(135, 43, 24, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--accent-strong);
  box-shadow: 0 6px 18px rgba(58, 32, 26, 0.08);
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.refresh-icon-button::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background:
    conic-gradient(from 180deg, rgba(135, 43, 24, 0) 0deg, rgba(135, 43, 24, 0.14) 90deg, rgba(135, 43, 24, 0.4) 180deg, rgba(135, 43, 24, 0.08) 270deg, rgba(135, 43, 24, 0) 360deg);
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 180ms ease, transform 180ms ease;
}

.refresh-icon-button::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: inherit;
  border: 1px solid rgba(135, 43, 24, 0.08);
  opacity: 0.75;
  transition: opacity 180ms ease, transform 180ms ease;
}

.refresh-icon-button svg {
  position: relative;
  z-index: 1;
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 180ms ease;
}

.refresh-icon-button:hover:not(:disabled),
.refresh-icon-button:focus-visible:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(135, 43, 24, 0.34);
  box-shadow: 0 10px 22px rgba(58, 32, 26, 0.14);
}

.refresh-icon-button:hover:not(:disabled)::before,
.refresh-icon-button:focus-visible:not(:disabled)::before {
  opacity: 0.55;
  transform: scale(1);
}

.refresh-icon-button.is-loading svg {
  animation: spin 980ms cubic-bezier(0.55, 0.08, 0.42, 0.95) infinite;
}

.refresh-icon-button.is-loading::before {
  opacity: 1;
  transform: scale(1);
  animation: refresh-glow 980ms ease-in-out infinite;
}

.refresh-icon-button.is-loading::after {
  opacity: 1;
  transform: scale(1.08);
  animation: refresh-ring 980ms ease-in-out infinite;
}

.refresh-icon-button.is-settling {
  animation: settle-bounce 320ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.refresh-icon-button.is-settling::before {
  opacity: 0.45;
  transform: scale(1);
  animation: settle-fade 320ms ease-out forwards;
}

.refresh-icon-button.is-settling::after {
  opacity: 0.55;
  transform: scale(1);
  animation: settle-ring 320ms ease-out forwards;
}

.refresh-icon-button.is-settling svg {
  transform: rotate(18deg) scale(0.96);
}

.icon-button-wrap {
  position: relative;
  display: inline-flex;
}

.icon-button-tooltip {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(240px, 58vw);
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(34, 19, 17, 0.94);
  color: #fff6f0;
  font-size: 0.8rem;
  line-height: 1.35;
  box-shadow: 0 16px 30px rgba(28, 15, 13, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 2;
}

.icon-button-tooltip::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 14px;
  width: 12px;
  height: 12px;
  background: inherit;
  transform: rotate(45deg);
}

.icon-button-wrap:hover .icon-button-tooltip,
.icon-button-wrap:focus-within .icon-button-tooltip {
  opacity: 1;
  transform: translateY(0);
}

.refresh-icon-button:disabled,
.cta-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.cta-button--loading:disabled {
  opacity: 0.88;
  cursor: progress;
}

.ticket-list {
  display: grid;
  gap: 14px;
}

.checkout-panel {
  display: grid;
  gap: 14px;
}

.checkout-form,
.checkout-form__identity,
.checkout-form__actions {
  display: grid;
  gap: 12px;
}

.checkout-form__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 14px;
  align-items: start;
}

.checkout-session__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 14px;
  align-items: start;
}

.checkout-form__ticket-grid {
  display: grid;
  gap: 8px;
}

.checkout-form__sidebar,
.checkout-session__sidebar {
  display: grid;
  gap: 12px;
  align-self: start;
}

.payment-panel {
  display: grid;
  gap: 16px;
  background:
    linear-gradient(180deg, rgba(255, 252, 246, 0.92), rgba(249, 241, 230, 0.94));
}

.payment-panel__summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.payment-panel__countdown {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 22px 24px;
  border-radius: 22px;
  border: 1px solid rgba(46, 24, 20, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(249, 241, 230, 0.92));
  text-align: center;
}

.payment-panel__countdown--normal {
  box-shadow: inset 0 0 0 1px rgba(181, 139, 92, 0.08);
}

.payment-panel__countdown--warning {
  background: linear-gradient(180deg, rgba(255, 247, 227, 0.98), rgba(255, 237, 204, 0.95));
  border-color: rgba(181, 120, 28, 0.24);
  box-shadow: inset 0 0 0 1px rgba(181, 120, 28, 0.08);
}

.payment-panel__countdown--critical {
  background: linear-gradient(180deg, rgba(255, 239, 236, 0.98), rgba(255, 225, 219, 0.95));
  border-color: rgba(171, 45, 40, 0.26);
  box-shadow: inset 0 0 0 1px rgba(171, 45, 40, 0.08);
}

.payment-panel__countdown--expired {
  background: linear-gradient(180deg, rgba(245, 236, 234, 0.98), rgba(238, 228, 225, 0.95));
  border-color: rgba(120, 92, 85, 0.2);
}

.payment-panel__countdown-label,
.payment-panel__countdown-status,
.payment-panel__countdown-deadline {
  margin: 0;
}

.payment-panel__countdown-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.payment-panel__countdown-value {
  font-size: clamp(2.3rem, 7vw, 4.75rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.payment-panel__countdown--critical .payment-panel__countdown-value {
  color: #9d2f28;
  animation: payment-countdown-pulse 1s ease-in-out infinite;
}

.payment-panel__countdown--expired .payment-panel__countdown-value {
  color: #6d5049;
}

.payment-panel__countdown-status {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-strong);
}

.payment-panel__countdown--critical .payment-panel__countdown-status,
.payment-panel__countdown--expired .payment-panel__countdown-status {
  color: #9d2f28;
}

.payment-panel__countdown-deadline {
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--muted);
}

.payment-panel__summary div,
.payment-panel__address-group {
  display: grid;
  gap: 6px;
}

.payment-panel__summary span,
.payment-panel__label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.payment-panel__summary strong {
  font-size: 1rem;
  line-height: 1.25;
}

.payment-panel__summary dt,
.payment-panel__summary dd {
  margin: 0;
}

.payment-panel__note,
.payment-panel__status-copy,
.payment-panel__warning {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.payment-panel__body {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  min-width: 0;
}

.payment-panel__qr-wrap,
.payment-panel__address-group {
  min-width: 0;
}

.payment-panel__qr {
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(46, 24, 20, 0.08);
  width: 100%;
}

.payment-panel__qr svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.payment-panel__qr-fallback {
  display: grid;
  gap: 12px;
  width: 100%;
  min-width: 0;
}

.payment-panel__qr-title {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.payment-panel__qr-text {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(27, 13, 11, 0.05);
  border: 1px dashed rgba(46, 24, 20, 0.16);
  color: var(--text);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.84rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.payment-panel__address {
  display: block;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(27, 13, 11, 0.05);
  border: 1px solid rgba(46, 24, 20, 0.08);
  color: var(--text);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.94rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.payment-panel__copy {
  width: fit-content;
}

.payment-panel__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.payment-panel__fallback {
  color: var(--accent-strong);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.payment-panel--status {
  align-content: start;
}

@keyframes payment-countdown-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.76;
    transform: scale(0.985);
  }
}

.checkout-form__note {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.45;
}

.checkout-form__ticket-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(46, 24, 20, 0.08);
}

.checkout-form__ticket-row--conflict {
  border-color: rgba(171, 45, 40, 0.5);
  background: rgba(171, 45, 40, 0.07);
  box-shadow: inset 0 0 0 1px rgba(171, 45, 40, 0.08);
}

.checkout-form__ticket-main {
  min-width: 0;
}

.checkout-form__ticket-row strong,
.field span {
  display: block;
  margin-bottom: 3px;
}

.checkout-form__ticket-row strong {
  font-size: 0.96rem;
  line-height: 1.1;
}

.checkout-form__ticket-row small {
  color: var(--muted);
  font-size: 0.82rem;
}

.checkout-form__ticket-error {
  display: block;
  min-height: 1rem;
  margin-top: 4px;
  color: #ab2d28;
  font-size: 0.8rem;
  line-height: 1.3;
}

.checkout-form__ticket-side {
  display: flex;
  align-items: center;
  justify-items: end;
  gap: 10px;
  flex-shrink: 0;
}

.checkout-form__ticket-price {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--accent-strong);
}

.checkout-form__ticket-side input,
.field input {
  min-height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(46, 24, 20, 0.14);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font: inherit;
}

.checkout-form__ticket-side input {
  width: 72px;
  text-align: right;
}

.checkout-input--conflict {
  border-color: rgba(171, 45, 40, 0.55);
  box-shadow: 0 0 0 3px rgba(171, 45, 40, 0.12);
}

.checkout-form__identity {
  grid-template-columns: 1fr;
}

.payout-panel {
  display: grid;
  gap: 1.5rem;
}

.payout-page {
  justify-items: center;
}

.payout-page .hero,
.payout-page .content-grid {
  width: 100%;
}

.payout-page .hero {
  min-height: 420px;
}

.payout-page .hero__content {
  align-content: center;
  padding: 52px 48px;
}

.payout-page .hero__title {
  font-size: clamp(3rem, 5vw, 5.6rem);
}

.payout-page .content-grid {
  grid-template-columns: minmax(0, 1fr);
}

.payout-page .content-grid__main {
  max-width: none;
}

.payout-page .payout-panel {
  padding: 36px 40px;
}

.payout-summary {
  display: grid;
  gap: 0.8rem;
}

.payout-summary__table {
  display: grid;
  gap: 0.6rem;
}

.payout-summary__row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) auto auto;
  gap: 1rem;
  align-items: baseline;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(46, 24, 20, 0.08);
}

.payout-summary__row--detail {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "label value";
  align-items: center;
}

.payout-summary__row--stacked {
  grid-template-areas:
    "label value"
    "details details";
  align-items: start;
}

.payout-summary__label {
  grid-area: label;
  color: var(--muted);
}

.payout-summary__value {
  grid-area: value;
  text-align: right;
}

.payout-summary__details {
  grid-area: details;
  display: grid;
  gap: 0.55rem;
  padding-top: 0.2rem;
}

.payout-summary__detail-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.85rem;
  align-items: baseline;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.payout-summary__detail-name {
  color: var(--text);
}

.payout-summary__detail-value {
  color: var(--text);
  text-align: right;
}

.payout-form {
  display: grid;
  gap: 1rem;
}

.payout-form__switch {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.payout-form__switch label {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-weight: 600;
}

.payout-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.payout-form__field {
  display: grid;
  gap: 0.45rem;
}

.payout-form__field--wide {
  grid-column: 1 / -1;
}

.payout-form__field input,
.payout-form__field textarea {
  width: 100%;
  border: 1px solid rgba(79, 37, 28, 0.14);
  border-radius: 16px;
  padding: 0.85rem 1rem;
  font: inherit;
  color: inherit;
  background: rgba(255, 255, 255, 0.94);
}

.payout-page .payout-form__field textarea {
  min-height: 136px;
}

.payout-state {
  display: grid;
  gap: 0.65rem;
}

.field {
  min-width: 0;
}

.field span {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.checkout-summary {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(27, 13, 11, 0.04);
  border: 1px solid rgba(46, 24, 20, 0.08);
  font-size: 0.94rem;
}

.checkout-summary div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.checkout-summary__total {
  padding-top: 8px;
  border-top: 1px solid rgba(46, 24, 20, 0.08);
}

.form-error {
  min-height: 1rem;
  margin: 0;
  color: #ab2d28;
  font-size: 0.88rem;
  line-height: 1.35;
}

.form-error--compact:empty {
  display: none;
}

.ticket-card {
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(79, 37, 28, 0.1);
}

.ticket-card__top {
  display: grid;
  gap: 10px;
}

.ticket-card h3 {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.ticket-card__price {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(191, 79, 47, 0.1);
  font-weight: 800;
  color: var(--accent-strong);
  font-size: clamp(1rem, 1.2vw, 1.28rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.ticket-card__description,
.empty-panel__body,
.venue-list dd,
.rich-copy,
.empty-state p {
  color: var(--muted);
}

.ticket-card__description {
  margin: 10px 0 0;
}

.ticket-card__meta {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--muted);
}

.rich-copy {
  font-size: 1.03rem;
  line-height: 1.72;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.rich-copy a {
  color: var(--accent-strong);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.rich-copy p:first-child {
  margin-top: 0;
}

.venue-list {
  display: grid;
  gap: 14px;
  margin: 0;
}

.venue-list div {
  display: grid;
  gap: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(79, 37, 28, 0.1);
}

.venue-list div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.venue-list dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.venue-list dd {
  margin: 0;
  font-size: 1rem;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.empty-panel__title {
  margin: 0 0 8px;
  font-weight: 700;
}

.empty-panel {
  display: grid;
  gap: 8px;
  justify-items: start;
  text-align: left;
  padding: 8px 2px 2px;
}

.empty-panel__body {
  margin: 0;
  max-width: 18rem;
  line-height: 1.45;
}

.empty-state,
.loading-state {
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 280px;
}

.loading-state__pulse {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(191, 79, 47, 0.82) 0%, rgba(191, 79, 47, 0.08) 70%);
  animation: pulse 1.6s infinite ease-in-out;
}

.event-page--not-found,
.event-page--error,
.event-page--loading {
  min-height: calc(100vh - 48px);
}

.checkout-page .hero {
  min-height: 420px;
}

@keyframes pulse {
  0%, 100% { transform: scale(0.92); opacity: 0.7; }
  50% { transform: scale(1.08); opacity: 1; }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes refresh-glow {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.92);
  }

  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

@keyframes refresh-ring {
  0%,
  100% {
    opacity: 0.2;
    transform: scale(0.82);
  }

  50% {
    opacity: 0.95;
    transform: scale(1.14);
  }
}

@keyframes settle-bounce {
  0% {
    transform: scale(1);
  }

  45% {
    transform: scale(0.92);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes settle-fade {
  from {
    opacity: 0.45;
  }

  to {
    opacity: 0;
    transform: scale(1.02);
  }
}

@keyframes settle-ring {
  from {
    opacity: 0.55;
    transform: scale(1);
  }

  to {
    opacity: 0;
    transform: scale(1.16);
  }
}

@keyframes cta-sweep {
  0% {
    transform: translateX(-170%) skewX(-18deg);
  }

  100% {
    transform: translateX(420%) skewX(-18deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cta-button,
  .cta-button::after {
    transition: none;
    animation: none;
  }

  .cta-button--loading::after {
    opacity: 0;
  }
}

@media (max-width: 980px) {
  body {
    padding: 14px;
  }

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

  .hero__content,
  .panel {
    padding: 22px;
  }

  .page-layout {
    gap: 22px;
  }

  .payout-page .hero__content,
  .payout-page .payout-panel {
    padding: 22px;
  }

  .hero {
    min-height: auto;
  }

  .hero__media {
    min-height: 320px;
  }

  .hero__content {
    min-width: 0;
  }

  .hero__title {
    font-size: clamp(2.2rem, 12vw, 4rem);
    overflow-wrap: anywhere;
  }

  .payout-page .hero {
    min-height: auto;
  }

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

  .meta-pill {
    width: 100%;
  }

  .hero__cta {
    width: 100%;
    min-width: 0;
  }

  .cta-button {
    width: 100%;
    max-width: 100%;
  }

  .panel__header-side {
    gap: 8px;
  }

  .checkout-session__summary {
    gap: 22px;
  }

  .checkout-session__summary-section {
    display: grid;
    gap: 12px;
  }

  .checkout-session__summary-section + .checkout-session__summary-section {
    padding-top: 8px;
  }

  .checkout-session__summary-header h3 {
    margin: 4px 0 0;
    font-size: 1.15rem;
    line-height: 1.2;
    letter-spacing: -0.01em;
  }

  .checkout-session__summary .checkout-summary {
    padding: 16px 18px;
  }

  .checkout-session__summary .ticket-card {
    padding: 16px;
  }

  .checkout-session__summary > .panel__header {
    margin-bottom: 6px;
  }

  .checkout-session__summary .venue-list--compact {
    gap: 10px;
  }

  .checkout-session__summary .venue-list--compact div {
    grid-template-columns: minmax(104px, 124px) minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    padding-bottom: 10px;
  }

  .checkout-session__summary .venue-list--compact dt {
    font-size: 0.72rem;
    line-height: 1.25;
  }

  .checkout-session__summary .venue-list--compact dd {
    font-size: 0.94rem;
    line-height: 1.35;
  }

  .checkout-form__ticket-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    align-items: start;
    padding: 12px 14px;
  }

  .checkout-form__layout,
  .checkout-session__layout,
  .checkout-form__identity,
  .payout-form__grid {
    grid-template-columns: 1fr;
  }

  .payout-summary__row--detail,
  .payout-summary__row--stacked {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "label"
      "value"
      "details";
    gap: 0.45rem;
  }

  .payout-summary__label,
  .payout-summary__value {
    text-align: left;
  }

  .payout-summary__detail-line {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.18rem;
    padding-left: 0.8rem;
  }

  .payout-summary__value,
  .payout-summary__detail-value {
    text-align: left;
  }

  .payment-panel__summary,
  .payment-panel__body {
    grid-template-columns: 1fr;
  }

  .payment-panel__countdown {
    justify-items: start;
    gap: 6px;
    padding: 18px 18px 16px;
    text-align: left;
  }

  .payment-panel__countdown-value {
    font-size: clamp(2rem, 14vw, 3.3rem);
    letter-spacing: -0.04em;
  }

  .payment-panel__countdown-status {
    font-size: 0.9rem;
  }

  .payment-panel__countdown-deadline {
    font-size: 0.84rem;
  }

  .payment-panel__summary--compact {
    gap: 10px;
  }

  .payment-panel__summary--compact div {
    display: grid;
    grid-template-columns: minmax(104px, 124px) minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(79, 37, 28, 0.1);
  }

  .payment-panel__summary--compact div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .payment-panel__summary--compact dt {
    font-size: 0.72rem;
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--muted);
  }

  .payment-panel__summary--compact dd {
    font-size: 0.94rem;
    line-height: 1.35;
    font-weight: 400;
    color: var(--text);
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .payment-panel__qr {
    min-height: 0;
  }

  .checkout-form__ticket-main {
    display: grid;
    gap: 0;
  }

  .checkout-form__ticket-row strong {
    margin-bottom: 0;
  }

  .checkout-form__ticket-row small {
    line-height: 1.25;
  }

  .checkout-form__ticket-error {
    min-height: 0;
    margin-top: 1px;
  }

  .checkout-form__ticket-side {
    width: 100%;
    display: flex;
    align-items: center;
    justify-items: stretch;
    justify-content: space-between;
    margin-top: 0;
  }

  .checkout-form__ticket-price {
    font-size: 0.88rem;
  }

  .checkout-form__ticket-side input {
    min-height: 36px;
    width: 64px;
    padding: 0 10px;
  }

}
