:root {
  --blue-900: #03163f;
  --blue-800: #07245f;
  --blue-700: #0a347f;
  --gold: #c7ac6b;
  --gold-strong: #b8954d;
  --text: #eff3ff;
  --muted: #b9c4df;
  --surface: rgba(8, 25, 68, 0.84);
  --surface-border: rgba(141, 167, 230, 0.24);
  --tickets-bg-image: none;
  --tickets-bg-alt-image: none;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  color: var(--text);
}

body {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(3, 22, 63, 0.88), rgba(7, 36, 95, 0.86) 50%, rgba(10, 52, 127, 0.9)),
    var(--tickets-bg-image) center 50% / cover no-repeat fixed;
  user-select: none;
}

a { color: inherit; }

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.tickets-hero {
  min-height: 42vh;
  position: relative;
  display: grid;
  place-items: center;
  padding: 32px 20px;
  text-align: center;
  background: linear-gradient(130deg, rgba(10, 52, 127, 0.54), rgba(3, 22, 63, 0.64));
}

.tickets-hero-overlay {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(199, 172, 107, 0.15), transparent 35%),
    radial-gradient(circle at 80% 80%, rgba(89, 157, 255, 0.2), transparent 30%);
}

.tickets-hero-content {
  position: relative;
  max-width: 760px;
}

.tickets-hero-brand-lockup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3vw, 34px);
  max-width: 100%;
  margin-bottom: 18px;
}

.tickets-hero-logo {
  width: clamp(150px, 19vw, 250px);
  max-width: min(52vw, 250px);
}

.tickets-product-mark {
  padding-right: clamp(18px, 3vw, 30px);
  border-right: 2px solid rgba(199, 172, 107, 0.74);
  color: var(--gold);
  font-size: clamp(21px, 3.5vw, 41px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.92;
  text-transform: uppercase;
  text-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}

.tv-product-mark {
  color: var(--gold);
}

.tickets-hero p {
  color: var(--muted);
  font-size: 18px;
  margin: 0 0 20px;
}

.tickets-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.tickets-main {
  padding-bottom: 32px;
}

.tickets-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 20px 20px;
}

.tickets-feature-grid,
.events-root {
  display: grid;
  gap: 14px;
}

.tickets-feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tickets-shell-grid {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.tickets-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  padding: 18px;
}

.tickets-auth-card,
.tickets-purchase-card {
  position: sticky;
  top: 18px;
}

.tickets-panel-head {
  margin-bottom: 18px;
}

h1, h2, h3, p {
  margin: 0;
}

h2 {
  color: var(--gold);
  font-size: clamp(24px, 4vw, 36px);
  margin-bottom: 10px;
}

h3 {
  color: #fff;
  margin-bottom: 8px;
}

.tickets-panel-head p,
.tickets-card p,
.tickets-muted,
.tickets-note,
.muted {
  color: var(--muted);
  line-height: 1.55;
}

.tickets-eyebrow,
.eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.12em;
  font-weight: 800;
}

.tickets-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.tickets-tab,
.tickets-pay-option,
.tickets-stepper button {
  border: 1px solid rgba(181, 196, 232, 0.35);
  background: rgba(7, 26, 72, 0.86);
  color: var(--text);
  cursor: pointer;
}

.tickets-tab,
.tickets-pay-option {
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 800;
}

.tickets-tab.is-active,
.tickets-tab.active,
.tickets-pay-option.is-active {
  border-color: rgba(199, 172, 107, 0.75);
  box-shadow: inset 0 0 0 1px rgba(199, 172, 107, 0.45);
}

.secondary-btn {
  border: 1px solid rgba(199, 172, 107, 0.44);
  background: transparent;
  color: var(--gold);
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 800;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}

.tickets-form {
  display: grid;
  gap: 12px;
}

.tickets-grid {
  display: grid;
  gap: 12px;
}

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

.tickets-grid-full {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 6px;
  color: #dce6ff;
  font-weight: 700;
}

input, select {
  width: 100%;
  border: 1px solid rgba(181, 196, 232, 0.45);
  background: rgba(7, 26, 72, 0.86);
  color: #fff;
  border-radius: 10px;
  padding: 11px 12px;
  outline: none;
}

input:focus,
select:focus {
  border-color: rgba(199, 172, 107, 0.75);
}

.tickets-text-action {
  justify-self: start;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--gold);
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.tickets-text-action:hover,
.tickets-text-action:focus-visible {
  color: #e1c488;
}

.tickets-cta {
  display: inline-block;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #dbc080, var(--gold-strong));
  color: #1f1a0e;
  font-weight: 800;
  padding: 12px 20px;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}

.tickets-cta:disabled,
.secondary-btn:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.tickets-cta-full {
  width: 100%;
}

.tickets-cta-secondary {
  background: transparent;
  color: var(--gold);
  border: 1px solid rgba(199, 172, 107, 0.44);
}

.tickets-user-box {
  display: grid;
  gap: 14px;
}

.tickets-profile-box,
.profile-box {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(181, 196, 232, 0.18);
}

.tickets-message,
.message {
  min-height: 24px;
  margin-top: 12px;
  line-height: 1.5;
  color: #79d3a4;
}

.tickets-message.error,
.message.error {
  color: #ff9d9d;
}

.event-panel {
  min-height: 360px;
}

.event-card {
  overflow: hidden;
  border: 1px solid rgba(141, 167, 230, 0.28);
  border-radius: 16px;
  background: rgba(8, 25, 68, 0.86);
}

.event-banner {
  width: 100%;
  height: clamp(210px, 31vw, 360px);
  object-fit: cover;
  display: block;
}

.event-body {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.event-body h3 {
  font-size: clamp(24px, 3vw, 34px);
}

.event-meta {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 700;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 4px;
}

.price {
  color: var(--gold);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 900;
}

.paid {
  color: var(--gold);
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 900;
}

.pay-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.player-frame {
  position: relative;
  width: calc(100% - 36px);
  margin: 0 18px 18px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #020817;
  border: 1px solid rgba(199, 172, 107, 0.38);
  border-radius: 14px;
}

.player-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.tap-shield-top,
.tap-shield-chain,
.player-click-layer {
  position: absolute;
  z-index: 4;
}

.tap-shield-top {
  top: 0;
  left: 0;
  right: 0;
  height: 62px;
}

.tap-shield-chain {
  left: 0;
  bottom: 0;
  width: 96px;
  height: 58px;
}

.player-click-layer {
  inset: 0;
  background: transparent;
}

.player-click-layer.is-passthrough {
  pointer-events: none;
}

.watermark {
  position: absolute;
  z-index: 6;
  max-width: min(58%, 320px);
  padding: 4px 7px;
  border-radius: 7px;
  background: rgba(3, 20, 56, 0.28);
  color: rgba(255, 255, 255, 0.42);
  font-size: 11px;
  font-weight: 700;
  pointer-events: none;
}

.tickets-modal,
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.5);
}

.tickets-modal-card,
.modal-card {
  width: min(100%, 520px);
  background: #0f214c;
  border: 1px solid #35508e;
  border-radius: 18px;
  padding: 24px 20px;
  position: relative;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 28px;
}

.deuna-qr {
  display: block;
  width: min(100%, 220px);
  aspect-ratio: 1;
  object-fit: contain;
  margin: 14px auto;
  border-radius: 16px;
  background: #fff;
  padding: 12px;
}

.deuna-code {
  margin: 12px auto;
  width: fit-content;
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid rgba(141, 167, 230, 0.24);
  background: rgba(3, 20, 56, 0.46);
  color: var(--gold);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 12px;
}

@media (max-width: 1024px) {
  .tickets-shell-grid {
    grid-template-columns: 1fr;
  }

  .tickets-auth-card,
  .tickets-purchase-card {
    position: static;
  }
}

@media (max-width: 840px) {
  .tickets-feature-grid,
  .tickets-grid-two {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .tickets-hero-brand-lockup {
    flex-direction: column-reverse;
    gap: 10px;
  }

  .tickets-product-mark {
    padding-right: 0;
    border-right: 0;
    font-size: clamp(18px, 5vw, 24px);
  }
}

@media (max-width: 640px), (max-height: 760px) {
  .tickets-section {
    padding: 16px 14px;
  }

  .tickets-card,
  .event-body {
    padding: 16px;
  }

  .tickets-hero {
    min-height: 34vh;
    padding: 28px 16px;
  }

  .tickets-hero p {
    font-size: 16px;
  }

  .tickets-hero-logo {
    width: min(74vw, 220px);
  }

  .player-frame {
    width: calc(100% - 28px);
    margin: 0 14px 14px;
  }
}
