:root {
  color-scheme: light;
  --bg: #e9fbff;
  --surface: #ffffff;
  --ink: #061820;
  --muted: #42727e;
  --soft: #d8f8ff;
  --line: rgba(0, 174, 211, 0.18);
  --pink: #ff2f7d;
  --red: #ff3b58;
  --red-dark: #06343d;
  --red-hot: #ff2f7d;
  --blue: #00c8ea;
  --violet: #ff9f1c;
  --lemon: #ffd21f;
  --green: #12b65d;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  background: var(--bg);
  color: var(--ink);
  letter-spacing: 0;
  overflow-x: hidden;
}

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

button {
  color: inherit;
}

.app-frame {
  min-height: 100vh;
  padding-bottom: calc(92px + var(--safe-bottom));
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.36) 1px, transparent 1px) 0 0 / 36px 36px,
    linear-gradient(180deg, rgba(255, 255, 255, 0.28) 1px, transparent 1px) 0 0 / 36px 36px,
    linear-gradient(180deg, #d7f9ff 0%, #e9fbff 48%, #fff6d9 100%);
}

.app-frame.app-tab-info {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.38) 1px, transparent 1px) 0 0 / 34px 34px,
    linear-gradient(180deg, rgba(255, 255, 255, 0.28) 1px, transparent 1px) 0 0 / 34px 34px,
    linear-gradient(180deg, #c9f8ff 0%, #eafcff 48%, #fff1cf 100%);
}

.content {
  width: min(980px, 100%);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px 12px;
  background: rgba(233, 251, 255, 0.86);
  backdrop-filter: blur(20px);
}

.brand-lockup,
.event-preview-copy,
.event-poster-button,
.back-button,
.info-row,
.album-card button,
.bottom-nav button,
.sheet-backdrop {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  padding: 0;
  text-align: left;
}

.page {
  padding: 12px 24px 24px;
}

.rave-wordmark {
  display: inline-block;
  color: var(--ink);
  font-weight: 1000;
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: 0;
}

.logo-small {
  font-size: 28px;
}

.logo-card,
.logo-detail,
.logo-empty {
  pointer-events: none;
}

.logo-card {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 1;
  font-size: 48px;
}

.logo-detail {
  position: absolute;
  left: 18px;
  top: 18px;
  z-index: 1;
  font-size: 54px;
}

.logo-album,
.logo-empty {
  font-size: 42px;
}

.event-feed,
.orders,
.album-list {
  display: grid;
  gap: 30px;
}

.event-preview {
  display: grid;
  gap: 16px;
  overflow: hidden;
  padding-bottom: 18px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 48px rgba(0, 159, 191, 0.12);
}

.event-poster-button {
  position: relative;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border-radius: 22px;
  background: #00b7d7;
  box-shadow: 0 18px 44px rgba(0, 159, 191, 0.2);
}

.event-poster-button img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: min(76vh, 680px);
  margin: 0 auto;
  object-fit: contain;
  filter: saturate(1.35) contrast(1.04);
}

.event-poster-static,
.event-preview-copy {
  cursor: default;
}

.event-poster-button::after,
.detail-poster::after,
.album-card button::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 47, 125, 0.18), rgba(0, 200, 234, 0.06) 48%, rgba(255, 210, 31, 0.12));
  pointer-events: none;
}

.event-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  max-width: calc(100% - 28px);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 47, 125, 0.98), rgba(255, 159, 28, 0.96) 58%, rgba(255, 210, 31, 0.96)),
    var(--pink);
  color: #ffffff;
  overflow: hidden;
  isolation: isolate;
  text-shadow: 0 1px 0 rgba(6, 24, 32, 0.18);
  box-shadow: 0 14px 28px rgba(255, 47, 125, 0.28);
  font-size: 13px;
  font-weight: 1000;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0;
  animation: badge-float 2.4s ease-in-out infinite, badge-glow 1.7s ease-in-out infinite alternate;
  pointer-events: none;
}

.event-badge::before {
  content: "";
  position: absolute;
  inset: -120% -35%;
  z-index: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.46) 50%, transparent 65%);
  transform: translateX(-64%) rotate(10deg);
  animation: badge-shine 2.8s ease-in-out infinite;
}

.event-badge span {
  position: relative;
  z-index: 1;
}

.event-badge-icon {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  filter: drop-shadow(0 3px 8px rgba(255, 210, 31, 0.38));
  animation: badge-fire 1.05s ease-in-out infinite alternate;
}

.event-badge.low_tickets {
  background:
    linear-gradient(135deg, rgba(18, 182, 93, 0.98), rgba(0, 200, 234, 0.96)),
    var(--green);
  box-shadow: 0 14px 28px rgba(18, 182, 93, 0.24);
}

.checkout-event-badge {
  position: relative;
  top: auto;
  left: auto;
  width: max-content;
  max-width: 100%;
  min-height: 34px;
  margin: -4px 0 0;
  box-shadow: 0 12px 28px rgba(255, 47, 125, 0.2), 0 8px 22px rgba(0, 200, 234, 0.12);
}

@keyframes badge-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}

@keyframes badge-glow {
  from {
    box-shadow: 0 14px 28px rgba(255, 47, 125, 0.24), 0 0 0 rgba(255, 210, 31, 0);
  }
  to {
    box-shadow: 0 18px 34px rgba(255, 47, 125, 0.34), 0 0 28px rgba(255, 210, 31, 0.26);
  }
}

@keyframes badge-shine {
  0%,
  42% {
    transform: translateX(-64%) rotate(10deg);
  }
  72%,
  100% {
    transform: translateX(64%) rotate(10deg);
  }
}

@keyframes badge-fire {
  from {
    transform: translateY(1px) scale(0.96) rotate(-4deg);
  }
  to {
    transform: translateY(-1px) scale(1.08) rotate(4deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .event-badge,
  .event-badge::before,
  .event-badge-icon {
    animation: none;
  }
}

.event-preview-copy {
  display: grid;
  gap: 10px;
  padding: 0 18px;
  text-align: left;
}

.event-preview-copy h2,
.event-detail h1,
.page-title {
  margin: 0;
  font-size: 32px;
  line-height: 1.04;
  font-weight: 1000;
  text-transform: uppercase;
}

.event-preview-copy time,
.event-detail time {
  display: block;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.1;
}

.event-preview-copy p,
.event-detail .lead,
.empty-state p,
.checkout-card p,
.legal-card p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.42;
}

.event-preview-copy strong {
  display: block;
  font-size: 28px;
  line-height: 1;
}

.event-description,
.event-meta {
  color: #3f3f46;
}

.event-preview-lineup {
  margin-top: 2px;
}

.event-preview-actions {
  display: grid;
  gap: 10px;
  padding: 0 18px;
}

.event-preview-cta {
  margin-top: 0;
}

.back-button {
  position: relative;
  width: 42px;
  height: 42px;
  margin: 2px 0 18px -12px;
}

.back-button::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 11px;
  width: 16px;
  height: 16px;
  border-left: 4px solid #2d2d32;
  border-bottom: 4px solid #2d2d32;
  transform: rotate(45deg);
}

.screen-title {
  position: absolute;
  left: 50%;
  top: 74px;
  transform: translateX(-50%);
  font-size: 18px;
  font-weight: 900;
}

.event-detail {
  display: grid;
  gap: 20px;
}

.detail-poster {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #00b7d7;
  box-shadow: 0 18px 44px rgba(0, 159, 191, 0.2);
}

.detail-poster img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: min(76vh, 760px);
  margin: 0 auto;
  object-fit: contain;
  filter: saturate(1.35) contrast(1.04);
}

.detail-text {
  display: grid;
  gap: 20px;
}

.detail-text p {
  margin: 0;
  color: #3f3f46;
  font-size: 21px;
  line-height: 1.34;
}

.lineup {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lineup span {
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #06343d;
  font-size: 13px;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px var(--line);
}

.sticky-buy {
  position: sticky;
  bottom: calc(86px + var(--safe-bottom));
  z-index: 10;
  margin-top: 22px;
  padding: 10px 0;
  background: linear-gradient(180deg, transparent, var(--bg) 18%);
}

.primary,
.secondary {
  min-height: 58px;
  border: 0;
  border-radius: 14px;
  padding: 0 22px;
  font-size: 18px;
  font-weight: 1000;
  cursor: pointer;
}

.primary {
  color: #ffffff;
  background: linear-gradient(90deg, var(--pink) 0%, #ff8f1f 46%, var(--blue) 100%);
  text-shadow: 0 1px 0 rgba(6, 24, 32, 0.16);
  box-shadow: 0 15px 30px rgba(0, 200, 234, 0.2), 0 10px 24px rgba(255, 47, 125, 0.16);
}

.secondary {
  color: var(--ink);
  background: linear-gradient(135deg, rgba(255, 210, 31, 0.26), var(--soft));
}

.wide {
  width: 100%;
}

.page-title {
  margin-bottom: 26px;
}

.empty-state,
.order-card,
.menu-card,
.legal-card,
.checkout-card {
  border-radius: 26px;
  background: var(--surface);
  box-shadow: 0 18px 48px rgba(0, 159, 191, 0.12);
}

.empty-state {
  display: grid;
  justify-items: start;
  gap: 14px;
  padding: 24px;
}

.empty-state h2,
.checkout-card h2,
.order-card h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.08;
}

.order-card {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.order-head,
.ticket-qr,
.checkout-title,
.tier-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.order-head span,
.ticket-qr small,
.tier-summary span {
  display: block;
  color: var(--muted);
}

.status-pill {
  padding: 8px 10px;
  border-radius: 999px;
  background: #dcfbff;
  color: #007896;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.ticket-qr {
  justify-content: flex-start;
  padding: 12px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(0, 200, 234, 0.12), rgba(255, 210, 31, 0.18));
}

.qr-thumb-button {
  position: relative;
  width: 112px;
  height: 112px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: #ffffff;
  cursor: pointer;
}

.qr-thumb-button::after {
  content: "";
  position: absolute;
  right: 7px;
  bottom: 7px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background:
    linear-gradient(currentColor, currentColor) center / 12px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 12px no-repeat,
    rgba(9, 9, 11, 0.9);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(9, 9, 11, 0.24);
}

.qr-thumb-button img {
  width: 112px;
  height: 112px;
  border-radius: 14px;
  background: #ffffff;
}

.qr-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: max(14px, var(--safe-top)) 10px max(14px, var(--safe-bottom));
}

.qr-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(9, 9, 11, 0.72);
  cursor: pointer;
}

.qr-modal-card {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: calc(100dvh - max(36px, var(--safe-top)) - max(36px, var(--safe-bottom)));
  display: grid;
  justify-items: center;
  gap: 14px;
  overflow: auto;
  padding: 12px 12px 16px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
}

.qr-close-button {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: var(--soft);
  color: var(--ink);
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
}

.qr-modal-head {
  width: 100%;
  display: grid;
  gap: 5px;
  padding-right: 48px;
}

.qr-modal-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.qr-modal-head h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.05;
  text-transform: uppercase;
}

.qr-modal-image {
  width: min(86vw, 520px);
  height: min(86vw, 520px);
  max-width: 100%;
  max-height: calc(100dvh - 210px - var(--safe-top) - var(--safe-bottom));
  padding: 10px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px var(--line);
}

.qr-modal-card small {
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.album-card button {
  position: relative;
  width: 100%;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 10px;
  padding: 18px;
  overflow: hidden;
  border-radius: 22px;
  background-position: center;
  background-size: cover;
  text-align: left;
  box-shadow: 0 16px 42px rgba(28, 23, 48, 0.14);
}

.album-card button > * {
  position: relative;
  z-index: 1;
}

.album-card span {
  color: #ffffff;
  font-size: 30px;
  font-weight: 1000;
  line-height: 1;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.58);
}

.album-card small {
  color: var(--lemon);
  font-size: 16px;
  font-weight: 1000;
}

.menu-card {
  overflow: hidden;
}

.info-row {
  width: 100%;
  min-height: 76px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 18px;
  padding: 0 18px 0 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.info-page {
  position: relative;
}

.info-hero {
  position: relative;
  display: grid;
  gap: 8px;
  overflow: hidden;
  margin-bottom: 14px;
  padding: 22px;
  border-radius: 26px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(180deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(135deg, #00aeda 0%, #00d5ff 42%, #ffd21f 43%, #ffd21f 64%, #ff2f7d 65%, #ff2f7d 100%);
  color: #ffffff;
  box-shadow: 0 22px 54px rgba(0, 174, 211, 0.26);
}

.info-hero::before {
  content: "";
  position: absolute;
  inset: auto -34px 18px 58%;
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  transform: rotate(-18deg);
}

.info-hero span,
.info-hero h1 {
  position: relative;
  z-index: 1;
}

.info-hero span {
  width: max-content;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(6, 24, 32, 0.18);
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 1000;
  text-transform: uppercase;
}

.info-hero h1 {
  margin: 0;
  font-size: 38px;
  line-height: 0.95;
  font-weight: 1000;
  text-transform: uppercase;
  text-shadow: 0 3px 0 rgba(6, 24, 32, 0.14);
}

.info-page .menu-card {
  display: grid;
  gap: 12px;
  overflow: visible;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.info-page .info-row {
  min-height: 88px;
  grid-template-columns: 54px minmax(0, 1fr) 36px;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(0, 174, 211, 0.2);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(218, 250, 255, 0.92) 60%, rgba(255, 245, 204, 0.86)),
    #ffffff;
  box-shadow: 0 16px 38px rgba(0, 159, 191, 0.13);
}

.info-page .info-row:active {
  transform: translateY(1px);
}

.info-row:last-child {
  border-bottom: 0;
}

.info-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background:
    radial-gradient(circle at 32% 18%, rgba(255, 255, 255, 0.38), transparent 28%),
    linear-gradient(135deg, #ff9f3f 0%, #ff6274 48%, var(--pink) 100%);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(255, 63, 155, 0.22);
}

.info-page .info-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.42), transparent 28%),
    linear-gradient(135deg, #ffd21f 0%, #ff9f1c 42%, #ff2f7d 100%);
  box-shadow: 0 14px 26px rgba(255, 47, 125, 0.24);
}

.info-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.info-icon-rules,
.info-icon-privacy {
  background:
    radial-gradient(circle at 32% 18%, rgba(255, 255, 255, 0.36), transparent 28%),
    linear-gradient(135deg, #7d73ff 0%, #ff5c91 100%);
}

.info-page .info-icon-rules {
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.4), transparent 28%),
    linear-gradient(135deg, #00c8ea 0%, #12b65d 58%, #ffd21f 100%);
}

.info-icon-organizer,
.info-icon-support {
  background:
    radial-gradient(circle at 32% 18%, rgba(255, 255, 255, 0.36), transparent 28%),
    linear-gradient(135deg, #ff8d48 0%, #ff4ca3 100%);
}

.info-page .info-icon-support {
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.42), transparent 28%),
    linear-gradient(135deg, #ff2f7d 0%, #ff8f1f 54%, #ffd21f 100%);
}

.info-row span:nth-child(2) {
  font-size: 20px;
  line-height: 1.18;
}

.info-page .info-row span:nth-child(2) {
  color: #06343d;
  font-size: 21px;
  font-weight: 1000;
}

.info-row i {
  width: 10px;
  height: 10px;
  border-right: 3px solid #b1b4c0;
  border-top: 3px solid #b1b4c0;
  transform: rotate(45deg);
}

.info-page .info-row i {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #ffd21f;
  color: #06343d;
  transform: none;
}

.info-page .info-row i::before {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 3px solid currentColor;
  border-top: 3px solid currentColor;
  transform: rotate(45deg) translate(-1px, 1px);
}

.legal-page .page-title {
  color: #06343d;
}

.app-tab-info .legal-card-steps {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(222, 251, 255, 0.98)),
    #e7fbff;
  box-shadow: 0 18px 46px rgba(0, 159, 191, 0.13);
}

.app-tab-info .legal-step {
  border-color: rgba(0, 174, 211, 0.18);
  background:
    linear-gradient(135deg, #ffffff 0%, #e8fbff 70%, #fff6d7 100%);
}

.app-tab-info .legal-step span {
  background:
    linear-gradient(135deg, #ffd21f 0%, #ff9f1c 44%, #ff2f7d 100%),
    var(--pink);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(255, 47, 125, 0.22);
}

.app-tab-info .legal-pin span {
  background: #06343d;
}

.legal-card {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.legal-card-steps {
  gap: 12px;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 247, 252, 0.98)),
    var(--card);
}

.legal-step {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid rgba(28, 23, 48, 0.08);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(28, 23, 48, 0.06);
}

.legal-step span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 45, 189, 0.95), rgba(70, 231, 255, 0.9)),
    #ff2dbd;
  color: #ffffff;
  font-size: 17px;
  font-weight: 1000;
  line-height: 1;
}

.legal-pin span {
  background: #101014;
  font-size: 18px;
}

.legal-step p {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.42;
}

.sheet,
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
}

.sheet {
  display: grid;
  align-items: end;
  overflow: hidden;
  padding-top: max(12px, var(--safe-top));
}

.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 9, 11, 0.42);
}

.checkout-card {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: calc(100dvh - max(12px, var(--safe-top)));
  justify-self: center;
  display: grid;
  gap: 14px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 20px 20px calc(20px + var(--safe-bottom));
  border-radius: 26px 26px 0 0;
}

.checkout-title span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.checkout-title button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--soft);
  font-size: 24px;
  cursor: pointer;
}

.tier-summary {
  padding: 14px;
  border-radius: 16px;
  background: var(--soft);
}

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

.ticket-tier-option {
  min-height: 62px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: var(--soft);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.ticket-tier-option.active {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(95, 199, 255, 0.16);
}

.ticket-tier-option:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.ticket-tier-option span {
  display: grid;
  gap: 3px;
}

.ticket-tier-option small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.ticket-tier-option em {
  font-style: normal;
  color: var(--muted);
}

.checkout-row {
  display: grid;
  grid-template-columns: 1fr 96px;
  gap: 10px;
}

.phone-field {
  width: 100%;
  min-height: 54px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
}

.phone-field:focus-within {
  border-color: var(--blue);
}

.phone-field span {
  padding-left: 14px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
}

.phone-field input {
  min-height: 52px;
  border: 0;
  border-radius: 0 14px 14px 0;
  background: transparent;
  padding-left: 8px;
}

.phone-field input:focus {
  border-color: transparent;
}

input,
select {
  width: 100%;
  min-height: 54px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  color: var(--ink);
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--blue);
}

.lightbox {
  overflow: auto;
  padding: 24px;
  background: var(--bg);
}

.photo-grid {
  columns: 3 260px;
  column-gap: 12px;
}

.photo-grid img {
  width: 100%;
  margin: 0 0 12px;
  border-radius: 18px;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: max(10px, var(--safe-bottom));
  z-index: 30;
  width: min(560px, calc(100% - 20px));
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 6px;
  transform: translateX(-50%);
  border: 1px solid rgba(0, 174, 211, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    0 18px 46px rgba(0, 159, 191, 0.16),
    0 10px 30px rgba(255, 47, 125, 0.08);
  backdrop-filter: blur(20px);
}

.bottom-nav button {
  min-height: 60px;
  display: grid;
  place-items: center;
  gap: 4px;
  border-radius: 14px;
  color: #71717b;
  font-size: 12px;
  transition: transform 0.16s ease, color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.bottom-nav button.active {
  background:
    linear-gradient(135deg, #ff2f7d 0%, #ff9f1c 48%, #00c8ea 100%);
  color: #ffffff;
  font-weight: 900;
  text-shadow: 0 1px 0 rgba(6, 24, 32, 0.14);
  box-shadow: 0 12px 26px rgba(0, 200, 234, 0.2), 0 10px 22px rgba(255, 47, 125, 0.18);
}

.bottom-nav button:active {
  transform: translateY(1px);
}

.nav-icon {
  position: relative;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(0, 174, 211, 0.1);
}

.nav-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bottom-nav button.active .nav-icon {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.skeleton {
  min-height: 160px;
  border-radius: 22px;
  background: linear-gradient(90deg, #eeeef5, #ffffff, #eeeef5);
  background-size: 220% 100%;
  animation: shimmer 1.4s infinite;
}

.event-skeleton {
  min-height: 320px;
  margin-top: 18px;
}

@keyframes shimmer {
  to {
    background-position: -220% 0;
  }
}

#toast {
  position: fixed;
  left: 50%;
  bottom: 100px;
  z-index: 70;
  max-width: calc(100% - 32px);
  padding: 13px 16px;
  border-radius: 16px;
  background: var(--ink);
  color: #ffffff;
  font-weight: 900;
  opacity: 0;
  transform: translate(-50%, 12px);
  transition: 0.18s ease;
  pointer-events: none;
}

#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 620px) {
  .topbar {
    padding: 14px 24px 10px;
  }

  .page {
    padding: 10px 24px 24px;
  }

  .event-preview-copy h2,
  .event-detail h1,
  .page-title {
    font-size: 30px;
  }

  .event-preview-copy time,
  .event-detail time {
    font-size: 23px;
  }

  .detail-text p {
    font-size: 20px;
  }

  .sticky-buy {
    bottom: calc(84px + var(--safe-bottom));
  }

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

@media (max-width: 390px) {
  .page {
    padding-inline: 18px;
  }

  .topbar {
    padding-inline: 18px;
  }

  .event-preview-copy h2,
  .event-detail h1,
  .page-title {
    font-size: 27px;
  }
}

/* Love poster redesign */
:root {
  --bg: #fff2e3;
  --surface: #fffaf1;
  --ink: #050505;
  --muted: #6d5e56;
  --soft: #ffe1ee;
  --line: rgba(5, 5, 5, 0.2);
  --pink: #ff86b9;
  --red: #ff4e5d;
  --red-dark: #050505;
  --red-hot: #ff6f9f;
  --blue: #a9ddff;
  --violet: #ffd5e7;
  --lemon: #ffd86d;
  --green: #8bd8b8;
  --display-font: "Arial Rounded MT Bold", "Trebuchet MS", Inter, ui-sans-serif, system-ui,
    -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.app-frame,
.app-frame.app-tab-info {
  background:
    repeating-linear-gradient(0deg, rgba(5, 5, 5, 0.035) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(90deg, rgba(5, 5, 5, 0.025) 0 1px, transparent 1px 34px),
    linear-gradient(180deg, #fff8ef 0%, #ffe6f0 58%, #dff4ff 100%);
}

.content {
  width: min(560px, 100%);
}

.topbar {
  padding-top: max(14px, calc(12px + var(--safe-top)));
  border-bottom: 3px solid var(--ink);
  background: rgba(255, 248, 239, 0.94);
  box-shadow: 0 5px 0 rgba(5, 5, 5, 0.08);
}

.rave-wordmark,
.event-preview-copy h2,
.event-detail h1,
.page-title,
.checkout-card h2,
.order-card h2,
.empty-state h2,
.info-hero h1,
.qr-modal-head h2,
.album-card span {
  font-family: var(--display-font);
  color: var(--ink);
  text-shadow: 2px 2px 0 #ffbdd8;
}

.logo-card,
.logo-detail {
  left: 18px;
  top: 18px;
  padding: 4px 7px;
  border: 3px solid var(--ink);
  border-radius: 12px;
  background: var(--blue);
  box-shadow: 4px 5px 0 var(--ink);
  font-size: 36px;
  line-height: 0.9;
}

.event-feed,
.orders,
.album-list {
  gap: 24px;
}

.event-preview,
.empty-state,
.order-card,
.menu-card,
.legal-card,
.checkout-card,
.qr-modal-card {
  border: 4px solid var(--ink);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: 7px 8px 0 var(--ink);
}

.event-preview {
  position: relative;
  overflow: visible;
  padding: 10px 10px 20px;
}

.event-preview::before,
.event-preview::after,
.info-hero::after {
  position: absolute;
  z-index: 3;
  color: var(--red);
  font-family: var(--display-font);
  font-weight: 1000;
  line-height: 1;
  text-shadow: 2px 2px 0 var(--ink);
  pointer-events: none;
}

.event-preview::before {
  content: "\2665";
  right: 18px;
  top: -18px;
  font-size: 34px;
  transform: rotate(12deg);
}

.event-preview::after {
  content: "\266A";
  right: 52px;
  top: 18px;
  color: var(--ink);
  font-size: 22px;
  transform: rotate(-16deg);
}

.event-poster-button,
.detail-poster,
.album-card button {
  border: 4px solid var(--ink);
  border-radius: 24px;
  background: var(--blue);
  box-shadow: none;
}

.event-poster-button img,
.detail-poster img {
  border-radius: 20px;
  filter: saturate(1.08) contrast(1.03);
}

.event-poster-button::after,
.detail-poster::after,
.album-card button::after {
  background: none;
}

.event-preview-copy,
.event-preview-actions {
  padding-inline: 10px;
}

.event-preview-copy h2,
.event-detail h1,
.page-title {
  font-size: 31px;
}

.event-chip-row {
  display: grid;
  grid-template-columns: 0.9fr 1.25fr 0.95fr 0.8fr;
  gap: 6px;
  margin: 2px 0 4px;
}

.event-chip {
  min-height: 54px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  padding: 7px 6px;
  border: 3px solid var(--ink);
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 4px 5px 0 var(--ink);
  text-align: center;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.event-chip-blue {
  background: #dff4ff;
}

.event-chip-pink {
  background: #ffdcea;
}

.event-chip strong {
  max-width: 100%;
  color: var(--ink);
  font-family: var(--display-font);
  font-size: 16px;
  line-height: 0.95;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-chip small {
  color: var(--ink);
  font-family: var(--display-font);
  font-size: 11px;
  font-weight: 1000;
  line-height: 1;
}

.event-chip:first-child strong {
  font-size: 25px;
}

.event-preview .event-meta {
  display: none;
}

.event-preview-copy time,
.event-detail time,
.event-preview-copy strong {
  color: var(--ink);
  font-family: var(--display-font);
  font-weight: 1000;
}

.event-preview-copy p,
.event-detail .lead,
.empty-state p,
.checkout-card p,
.legal-card p,
.detail-text p,
.event-description,
.event-meta {
  color: var(--muted);
}

.lineup span {
  border: 3px solid var(--ink);
  border-radius: 14px;
  background: #ffe0ed;
  color: var(--ink);
  box-shadow: 3px 4px 0 var(--ink);
}

.event-badge,
.checkout-event-badge {
  min-height: 40px;
  padding: 0 14px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background:
    linear-gradient(135deg, #ff8ab8 0%, #ffb5d0 52%, #ffd86d 100%),
    var(--pink);
  color: var(--ink);
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.72);
  box-shadow: 4px 5px 0 var(--ink);
  animation: badge-float 2.2s ease-in-out infinite, badge-love-pulse 1.5s ease-in-out infinite alternate;
}

.event-badge::before {
  background: none;
  animation: none;
}

.event-badge.low_tickets {
  background:
    linear-gradient(135deg, #a9ddff 0%, #dcf5ff 62%, #ffd86d 100%),
    var(--blue);
  color: var(--ink);
  box-shadow: 4px 5px 0 var(--ink);
}

.event-badge-icon {
  filter: none;
}

@keyframes badge-love-pulse {
  from {
    transform: translateY(0) rotate(-1deg);
  }
  to {
    transform: translateY(-2px) rotate(1deg);
  }
}

.primary,
.secondary {
  min-height: 58px;
  border: 4px solid var(--ink);
  border-radius: 18px;
  color: var(--ink);
  font-family: var(--display-font);
  text-shadow: none;
  box-shadow: 5px 6px 0 var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.primary {
  background:
    linear-gradient(90deg, #ff86b9 0%, #ff98c4 28%, #ffd86d 58%, #a9ddff 100%),
    var(--pink);
}

.secondary {
  background: var(--blue);
}

.primary:active,
.secondary:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 3px 0 var(--ink);
}

.sticky-buy {
  background: linear-gradient(180deg, transparent, var(--bg) 20%);
}

.status-pill {
  border: 3px solid var(--ink);
  background: var(--blue);
  color: var(--ink);
  box-shadow: 3px 4px 0 var(--ink);
}

.ticket-qr,
.tier-summary {
  border: 3px solid var(--ink);
  border-radius: 20px;
  background: #dff4ff;
}

.qr-thumb-button {
  border: 3px solid var(--ink);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 3px 4px 0 var(--ink);
}

.qr-thumb-button img {
  border-radius: 12px;
}

.qr-modal-backdrop {
  background: rgba(5, 5, 5, 0.72);
}

.qr-modal-card {
  background:
    repeating-linear-gradient(0deg, rgba(5, 5, 5, 0.035) 0 1px, transparent 1px 30px),
    var(--surface);
}

.qr-close-button,
.checkout-title button {
  border: 3px solid var(--ink);
  background: var(--blue);
  color: var(--ink);
  box-shadow: 3px 4px 0 var(--ink);
}

.info-hero {
  border: 4px solid var(--ink);
  border-radius: 28px;
  background:
    repeating-linear-gradient(0deg, rgba(5, 5, 5, 0.045) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(90deg, rgba(5, 5, 5, 0.035) 0 1px, transparent 1px 28px),
    linear-gradient(135deg, #ffdcea 0%, #fff8ef 46%, #dff4ff 100%);
  color: var(--ink);
  box-shadow: 7px 8px 0 var(--ink);
}

.info-hero::before {
  inset: auto 20px 20px auto;
  width: 92px;
  height: 18px;
  border: 3px solid var(--ink);
  background: var(--lemon);
  transform: rotate(-8deg);
}

.info-hero::after {
  content: "\2665";
  right: 24px;
  top: 18px;
  font-size: 34px;
  transform: rotate(12deg);
}

.info-hero span {
  border: 3px solid var(--ink);
  background: var(--pink);
  color: var(--ink);
  box-shadow: 3px 4px 0 var(--ink);
}

.info-page .menu-card {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.info-row,
.info-page .info-row {
  border: 3px solid var(--ink);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 5px 6px 0 var(--ink);
}

.info-page .info-row span:nth-child(2),
.info-row span:nth-child(2) {
  color: var(--ink);
  font-family: var(--display-font);
  font-weight: 1000;
}

.info-icon,
.info-page .info-icon,
.info-icon-rules,
.info-icon-privacy,
.info-icon-organizer,
.info-icon-support,
.info-page .info-icon-rules,
.info-page .info-icon-support {
  border: 3px solid var(--ink);
  background: var(--pink);
  color: var(--ink);
  box-shadow: 3px 4px 0 var(--ink);
}

.info-page .info-icon-rules,
.info-icon-rules {
  background: var(--blue);
}

.info-icon-support,
.info-page .info-icon-support {
  background: var(--lemon);
}

.info-row i,
.info-page .info-row i {
  border-color: var(--ink);
  background: transparent;
  color: var(--ink);
}

.info-page .info-row i::before {
  border-color: currentColor;
}

.legal-card-steps,
.app-tab-info .legal-card-steps,
.app-tab-info .legal-step,
.legal-step {
  border: 3px solid var(--ink);
  background: var(--surface);
  box-shadow: 4px 5px 0 var(--ink);
}

.legal-step span,
.app-tab-info .legal-step span,
.legal-pin span,
.app-tab-info .legal-pin span {
  border: 3px solid var(--ink);
  background: var(--blue);
  color: var(--ink);
  box-shadow: 3px 4px 0 var(--ink);
}

.sheet-backdrop {
  background: rgba(5, 5, 5, 0.58);
}

.checkout-card {
  border-bottom: 0;
  border-radius: 30px 30px 0 0;
  background:
    repeating-linear-gradient(0deg, rgba(5, 5, 5, 0.025) 0 1px, transparent 1px 30px),
    var(--surface);
  box-shadow: 0 -7px 0 var(--pink), 0 -11px 0 var(--ink);
}

.checkout-title span {
  color: var(--muted);
  font-family: var(--display-font);
  font-size: 14px;
}

.ticket-tier-list {
  gap: 12px;
}

.ticket-tier-option {
  border: 3px solid var(--ink);
  border-radius: 20px;
  background: #dff4ff;
  box-shadow: 4px 5px 0 var(--ink);
}

.ticket-tier-option.active {
  border-color: var(--ink);
  background: #ffdcea;
  box-shadow: 4px 5px 0 var(--ink), inset 0 0 0 4px var(--surface);
}

.ticket-tier-option strong,
.ticket-tier-option em {
  color: var(--ink);
}

.ticket-tier-option small {
  color: var(--muted);
}

.phone-field,
input,
select {
  border: 3px solid var(--ink);
  border-radius: 18px;
  background: #fffdf8;
  box-shadow: 3px 4px 0 var(--ink);
}

.phone-field:focus-within,
input:focus,
select:focus {
  border-color: var(--ink);
  box-shadow: 3px 4px 0 var(--pink);
}

.phone-field input {
  border: 0;
  box-shadow: none;
}

.checkout-card .checkout-input,
.checkout-card .phone-field {
  min-height: 60px;
  border-radius: 20px;
  background: #fffdf8;
}

.checkout-card .checkout-input {
  display: block;
  padding: 0 18px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  line-height: 60px;
}

.checkout-card .checkout-input::placeholder,
.checkout-card .phone-field input::placeholder {
  color: rgba(5, 5, 5, 0.38);
  font-weight: 800;
}

.checkout-card .phone-field {
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: stretch;
  overflow: hidden;
}

.checkout-card .phone-field span {
  display: grid;
  place-items: center;
  padding: 0;
  border-right: 3px solid var(--ink);
  background: #dff4ff;
  font-family: var(--display-font);
  font-size: 18px;
  font-weight: 1000;
}

.checkout-card .phone-field input {
  min-height: 54px;
  padding: 0 18px 0 14px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
}

.checkout-price-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 3px solid var(--ink);
  border-radius: 20px;
  background: #ffdcea;
  box-shadow: 4px 5px 0 var(--ink);
}

.checkout-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
}

.checkout-price-row strong {
  font-family: var(--display-font);
  font-size: 18px;
}

.checkout-discount-row {
  color: #1c7a55;
}

.checkout-total-row {
  padding-top: 8px;
  border-top: 3px solid rgba(5, 5, 5, 0.18);
  font-size: 17px;
}

.checkout-total-row strong {
  font-size: 22px;
}

.checkout-discount-row.is-hidden {
  display: none;
}

.promo-feedback {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
}

.promo-feedback.is-valid {
  color: #087348;
}

.promo-feedback.is-invalid {
  color: #c43145;
}

.bottom-nav {
  width: min(560px, calc(100% - 28px));
  gap: 6px;
  padding: 7px;
  border: 4px solid var(--ink);
  border-radius: 24px;
  background: rgba(255, 250, 241, 0.96);
  box-shadow: 0 9px 0 var(--ink), 0 18px 36px rgba(5, 5, 5, 0.16);
}

.bottom-nav button {
  min-height: 62px;
  border-radius: 18px;
  color: var(--ink);
  font-family: var(--display-font);
  font-size: 12px;
}

.bottom-nav button.active {
  background: var(--ink);
  color: var(--surface);
  text-shadow: none;
  box-shadow: inset 0 0 0 2px var(--ink);
}

.nav-icon {
  width: 30px;
  height: 30px;
  border: 2px solid currentColor;
  border-radius: 12px;
  background: var(--blue);
}

.bottom-nav button:nth-child(2) .nav-icon {
  background: var(--pink);
}

.bottom-nav button:nth-child(3) .nav-icon {
  background: var(--lemon);
}

.bottom-nav button.active .nav-icon {
  background: var(--pink);
  color: var(--surface);
}

.album-card button {
  min-height: 330px;
}

.album-card span {
  color: #ffffff;
  text-shadow: 2px 2px 0 var(--ink), 0 2px 16px rgba(5, 5, 5, 0.34);
}

.album-card small {
  color: var(--lemon);
  text-shadow: 2px 2px 0 var(--ink);
}

.skeleton {
  border: 4px solid var(--ink);
  background: linear-gradient(90deg, #fffaf1, #ffdcea, #dff4ff, #fffaf1);
  background-size: 220% 100%;
}

#toast {
  border: 3px solid var(--ink);
  background: var(--pink);
  color: var(--ink);
  box-shadow: 4px 5px 0 var(--ink);
}

@media (max-width: 620px) {
  .event-preview,
  .empty-state,
  .order-card,
  .menu-card,
  .legal-card,
  .qr-modal-card {
    box-shadow: 5px 6px 0 var(--ink);
  }

  .event-preview-copy h2,
  .event-detail h1,
  .page-title {
    font-size: 29px;
  }
}

@media (max-width: 390px) {
  .event-preview-copy h2,
  .event-detail h1,
  .page-title {
    font-size: 26px;
  }

  .bottom-nav button {
    font-size: 11px;
  }
}
