
:root {
  --ink: #1f2933;
  --muted: #617084;
  --line: #d8dde5;
  --paper: #fff9ee;
  --cream: #f6ebd7;
  --red: #d7192a;
  --green: #487664;
  --gold: #b6914b;
  --black: #171717;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #f3efe7;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(18px, 4vw, 52px);
  background: rgba(255, 249, 238, 0.94);
  border-bottom: 1px solid rgba(23, 23, 23, 0.1);
  backdrop-filter: blur(10px);
}

.brand { font-weight: 800; letter-spacing: 0; }
.toplink { color: var(--red); font-weight: 700; text-decoration: none; }

main { width: min(1180px, calc(100% - 28px)); margin: 0 auto 60px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: clamp(20px, 5vw, 54px);
  align-items: center;
  min-height: 520px;
  padding: 36px 0;
}

.hero h1 {
  margin: 0;
  max-width: 690px;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.94;
  color: var(--red);
  text-transform: uppercase;
}

.hero img {
  width: 100%;
  max-height: 640px;
  object-fit: contain;
  border: 1px solid rgba(23, 23, 23, 0.12);
  background: var(--paper);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0;
}

.lede {
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.45;
}

.event-description {
  max-width: 680px;
  margin: 12px 0 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
}

.guest-note {
  display: inline-block;
  margin: 16px 0 0;
  padding: 8px 12px;
  border: 1px solid rgba(182, 145, 75, 0.45);
  background: rgba(255, 255, 255, 0.58);
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.shop {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}

.section-head h2 {
  margin: 0 0 16px;
  font-size: 28px;
  line-height: 1.1;
}

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

.ticket-card,
.cart,
.buyer-panel,
.checkout,
.qr-card {
  border: 1px solid rgba(23, 23, 23, 0.12);
  background: rgba(255, 255, 255, 0.74);
}

.ticket-card {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.ticket-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: rgba(255, 255, 255, 0.76);
}

.ticket-card::after {
  content: "";
  position: absolute;
  inset: -42% -34%;
  z-index: -1;
  opacity: 0.42;
  background:
    linear-gradient(112deg, transparent 0 43%, rgba(255, 255, 255, 0.72) 49%, transparent 57%),
    radial-gradient(circle at 86% 22%, rgba(255, 255, 255, 0.9), transparent 18%);
  transform: rotate(-6deg);
}

.ticket-visual {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  min-height: 52px;
  margin-bottom: 10px;
}

.ticket-shape {
  position: relative;
  display: block;
  width: 112px;
  height: 44px;
  border: 2px solid rgba(31, 41, 51, 0.78);
  border-radius: 8px;
  background:
    linear-gradient(90deg, var(--green) 0 18%, #fff 18% 28%, var(--red) 28% 46%, transparent 46%),
    rgba(255, 255, 255, 0.72);
  box-shadow: 5px 5px 0 rgba(31, 41, 51, 0.08);
}

.ticket-shape::before,
.ticket-shape::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 13px;
  height: 13px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  transform: translateY(-50%);
}

.ticket-shape::before { left: -8px; }
.ticket-shape::after { right: -8px; }

.scooter-img {
  display: block;
  width: 92px;
  height: 58px;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 8px 10px rgba(23, 23, 23, 0.16));
}

.ticket-silver::before {
  background:
    radial-gradient(circle at 84% 20%, rgba(255, 255, 255, 0.94), transparent 18%),
    radial-gradient(circle at 88% 34%, rgba(174, 183, 195, 0.38), transparent 34%),
    linear-gradient(130deg, rgba(174, 183, 195, 0.42), rgba(255, 255, 255, 0.78) 42%, rgba(130, 143, 157, 0.14));
}

.ticket-silver .ticket-shape {
  background:
    linear-gradient(90deg, #aeb7c3 0 45%, transparent 45%),
    rgba(255, 255, 255, 0.75);
}

.ticket-gold::before {
  background:
    radial-gradient(circle at 84% 20%, rgba(255, 248, 215, 0.96), transparent 18%),
    radial-gradient(circle at 88% 34%, rgba(211, 164, 65, 0.34), transparent 34%),
    linear-gradient(130deg, rgba(182, 145, 75, 0.38), rgba(255, 255, 255, 0.78) 42%, rgba(154, 104, 21, 0.14));
}

.ticket-gold .ticket-shape {
  border-color: rgba(80, 58, 18, 0.8);
  background:
    linear-gradient(90deg, var(--gold) 0 45%, transparent 45%),
    rgba(255, 255, 255, 0.78);
}

.ticket-gold .scooter-img {
  width: 86px;
}

.ticket-corporate .ticket-shape {
  width: 132px;
  background:
    linear-gradient(90deg, var(--gold) 0 32%, var(--green) 32% 42%, #fff 42% 49%, var(--red) 49% 58%, transparent 58%),
    rgba(255, 255, 255, 0.78);
}

.ticket-tier {
  margin: 0 0 8px;
  color: var(--gold);
  font-weight: 900;
  text-transform: uppercase;
}

.ticket-card h3 {
  margin: 0 0 10px;
  font-size: 21px;
  line-height: 1.18;
}

.ticket-desc {
  margin: 0;
  color: var(--muted);
  line-height: 1.35;
}

.ticket-bottom,
.cart-line,
.total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.price {
  font-size: 25px;
  color: var(--black);
}

button,
.primary {
  min-height: 44px;
  border: 0;
  background: var(--black);
  color: #fff;
  padding: 0 16px;
  font-weight: 800;
  cursor: pointer;
}

button:disabled { opacity: 0.38; cursor: not-allowed; }
.ticket-card button { background: var(--green); }

.cart {
  position: sticky;
  top: 74px;
  padding: 18px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.cart.cart-flash {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(72, 118, 100, 0.16);
  transform: translateY(-2px);
}

.cart-items {
  min-height: 90px;
  padding: 10px 0;
}

.empty { color: var(--muted); }
.cart-line { padding: 9px 0; border-bottom: 1px solid var(--line); }
.cart-line small { color: var(--muted); display: block; margin-top: 3px; }
.qty { display: flex; gap: 6px; align-items: center; }
.qty button { width: 30px; min-height: 30px; padding: 0; background: #e9dfcf; color: var(--black); }

.total-row {
  padding: 14px 0 18px;
  font-size: 18px;
  border-top: 2px solid var(--black);
}

.buyer-panel,
.checkout {
  margin-top: 26px;
  padding: 22px;
}

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

label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--black);
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 9px 10px;
  font: inherit;
}

.buyer-panel button,
#paymentForm button {
  margin-top: 18px;
}

.checkout {
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}

.checkout:not(.hidden) { display: grid; }
.hidden { display: none !important; }

.summary {
  border: 1px solid var(--line);
  background: #fff;
  padding: 14px;
  margin-bottom: 18px;
}

.summary h3 { margin: 0 0 8px; }
.summary p { margin: 7px 0; color: var(--muted); }
.payment-copy { margin-bottom: 18px; }
.payment-copy h3 { margin: 0 0 8px; }
.payment-copy p { margin: 0; color: var(--muted); }

.qr-card {
  padding: 14px;
}

.qr-card img {
  width: 100%;
  display: block;
}

.fineprint {
  color: var(--muted);
  line-height: 1.4;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 10;
  min-width: min(340px, calc(100% - 28px));
  transform: translate(-50%, 18px);
  opacity: 0;
  pointer-events: none;
  background: var(--black);
  color: #fff;
  padding: 12px 16px;
  font-weight: 800;
  text-align: center;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

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

@media (max-width: 860px) {
  .hero,
  .shop,
  .checkout:not(.hidden),
  .form-grid {
    grid-template-columns: 1fr;
  }
  .hero { min-height: 0; }
  .cart { position: static; }
  .ticket-visual { min-height: 46px; }
}

@media (max-width: 620px) {
  main { width: min(100% - 18px, 1180px); }
  .ticket-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 42px; }
}
