@font-face {
  font-family: 'Benzin';
  src: url('../fonts/Benzin Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: 'Space Mono';
  src: url('../fonts/SpaceMono-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Space Mono';
  src: url('../fonts/SpaceMono-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Space Mono';
  src: url('../fonts/SpaceMono-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Space Mono';
  src: url('../fonts/SpaceMono-BoldItalic.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg:         #0a0a0a;
  --surface:    #111111;
  --surface-2:  #1c1c1c;
  --surface-3:  #272727;
  --border:     #2a2a2a;
  --border-2:   #3c3c3c;
  --text:       #f0f0f0;
  --text-2:     #999999;
  --text-3:     #555555;
  --success:    #4ade80;
  --danger:     #f87171;
  --warning:    #fbbf24;
  --r-sm:       4px;
  --r:          8px;
  --r-lg:       12px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ── Header ── */
.site-header {
  background: #000;
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .inner {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 64px;
}
.site-header .logo {
  display: flex;
  align-items: center;
}
.site-header .logo-img {
  height: 36px;
  width: auto;
  display: block;
}

/* ── Containers ── */
.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .65rem 1.5rem;
  border-radius: var(--r);
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity .15s, transform .1s;
  letter-spacing: .015em;
}
.btn-primary { background: #fff; color: #000; }
.btn-primary:hover { opacity: .88; color: #000; }
.btn-primary:active { transform: scale(.98); }
.btn-accent { background: #d7ff3f; color: #000; }
.btn-accent:hover { opacity: .88; color: #000; }
.btn-accent:active { transform: scale(.98); }

.cart-footer-btn { white-space: nowrap; flex-shrink: 0; }
@media (max-width: 480px) {
  .cart-footer-btn { font-size: .78rem; padding: .55rem 1rem; }
}
.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-2);
}
.btn-secondary:hover { border-color: var(--text-2); }
.btn-lg { padding: .9rem 2rem; font-size: .93rem; }
.btn-full { width: 100%; }
.btn:disabled { opacity: .3; cursor: not-allowed; transform: none !important; }

/* ── Forms ── */
.form-group { margin-bottom: .9rem; }
.form-group label {
  display: block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: .3rem;
}
.form-group input {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text);
  padding: .6rem .85rem;
  font-size: .9rem;
  transition: border-color .15s;
  -webkit-appearance: none;
}
.form-group input:focus { outline: none; border-color: var(--border-2); }
.form-group input::placeholder { color: var(--text-3); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .85rem; }
@media (max-width: 580px) { .form-grid { grid-template-columns: 1fr; } }

/* ── Section label ── */
.section-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: .85rem;
}

/* ── Event list ── */
.events-page-title { font-family: 'Benzin', sans-serif; font-size: 1.1rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; margin-bottom: 1.25rem; }
.event-list { display: flex; flex-direction: column; gap: .6rem; }

.event-card-link { display: block; }
.event-card {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color .15s, background .15s;
}
.event-card:hover { border-color: var(--border-2); background: #161616; }

.event-card .ec-thumb {
  width: 110px;
  align-self: stretch;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}
.event-card .ec-thumb-empty {
  width: 110px;
  background: var(--surface-2);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ec-thumb-empty svg { opacity: .2; }

.event-card .ec-body {
  padding: .5rem .8rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .08rem;
  flex: 1;
  min-width: 0;
}
.ec-body .ec-title { font-size: .92rem; font-weight: 700; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: .1rem; }
.ec-body .ec-meta { font-size: .75rem; color: var(--text-2); }
.ec-body .ec-desc { font-size: .75rem; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ec-body .ec-price { font-size: .78rem; font-weight: 700; color: var(--text); margin-top: .18rem; }

@media (max-width: 480px) {
  .event-card .ec-thumb,
  .event-card .ec-thumb-empty { width: 80px; }
}

/* ── Event detail ── */
.ev-body-wrap { margin-bottom: 1.5rem; }
.ev-hook {
  font-size: .82rem;
  color: var(--text-2);
  margin-bottom: .9rem;
  line-height: 1.65;
}
.ev-flyer-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: .9rem;
}
.ev-flyer-wrap img {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--r-lg);
  display: block;
}
.ev-description {
  font-size: .82rem;
  color: var(--text-2);
  line-height: 1.65;
}
@media (min-width: 640px) {
  .ev-body-wrap.has-flyer {
    display: grid;
    grid-template-columns: 1fr 240px;
    grid-template-rows: auto 1fr;
    gap: 0 1.75rem;
    align-items: start;
  }
  .ev-body-wrap.has-flyer .ev-hook        { grid-column: 1; grid-row: 1; }
  .ev-body-wrap.has-flyer .ev-flyer-wrap  { grid-column: 2; grid-row: 1 / 3; margin-bottom: 0; justify-content: flex-start; }
  .ev-body-wrap.has-flyer .ev-flyer-wrap img { max-width: 100%; }
  .ev-body-wrap.has-flyer .ev-description { grid-column: 1; grid-row: 2; }
}

.event-header { padding: .75rem 0 .65rem; border-bottom: 1px solid var(--border); margin-bottom: 1rem; }
.event-header .ev-title { font-family: 'Benzin', sans-serif; font-size: 1.9rem; font-weight: 700; letter-spacing: .01em; line-height: 1.15; margin-bottom: .55rem; }
.event-header .ev-meta { display: flex; flex-wrap: wrap; gap: .3rem 1.25rem; font-size: .83rem; color: var(--text-2); }
.event-header .ev-meta-item { display: flex; align-items: center; gap: .3rem; }
.ev-meta-icon { flex-shrink: 0; opacity: .6; }

/* ── Map section ── */
.map-section { margin-bottom: 2rem; }
.map-embed-wrap {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: .6rem;
}
@keyframes map-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(250,204,21,.7); border-color: rgba(250,204,21,.8); }
  60%  { box-shadow: 0 0 0 6px rgba(250,204,21,.15); border-color: rgba(250,204,21,.5); }
  100% { box-shadow: 0 0 0 0 rgba(250,204,21,0); border-color: var(--border); }
}
.map-embed-wrap.highlight { animation: map-pulse .6s ease-out forwards; }
.map-address { font-size: .78rem; color: var(--text-2); line-height: 1.55; }
.ev-venue-link { color: inherit; text-decoration: none; transition: color .15s; }
.ev-venue-link:hover { color: var(--text); }

/* ── Ticket list container ── */
.ticket-list {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 1.5rem;
  background: var(--surface);
}
@keyframes ticket-list-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(250,204,21,.7); border-color: rgba(250,204,21,.8); }
  60%  { box-shadow: 0 0 0 6px rgba(250,204,21,.15); border-color: rgba(250,204,21,.5); }
  100% { box-shadow: 0 0 0 0 rgba(250,204,21,0); border-color: var(--border); }
}
.ticket-list.highlight {
  animation: ticket-list-pulse .6s ease-out forwards;
}

.ticket-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .95rem 1.1rem;
  border-bottom: 1px solid var(--border);
}
.ticket-row:last-child { border-bottom: none; }
.ticket-row.unavailable { pointer-events: none; }
.ticket-row.unavailable .ticket-name,
.ticket-row.unavailable .ticket-desc,
.ticket-row.unavailable .ticket-price-col { opacity: .45; }

.ticket-info { flex: 1; min-width: 0; }
.ticket-name { font-size: .9rem; font-weight: 600; margin-bottom: .1rem; }
.ticket-desc { font-size: .78rem; color: var(--text-2); }

.ticket-price-col {
  font-size: .9rem;
  font-weight: 700;
  white-space: nowrap;
  min-width: 56px;
  text-align: right;
}

/* ── Quantity stepper ── */
.qty-stepper { display: flex; align-items: center; gap: .45rem; flex-shrink: 0; }
.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--border-2);
  background: transparent;
  color: var(--text);
  font-size: .95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .12s, background .12s;
  line-height: 1;
  padding: 0;
  user-select: none;
  flex-shrink: 0;
}
.qty-btn:hover:not(:disabled) { border-color: var(--text-2); background: var(--surface-2); }
.qty-btn:active:not(:disabled) { background: var(--surface-3); }
.qty-btn:disabled { opacity: .2; cursor: default; }
.qty-count { font-size: .88rem; font-weight: 700; min-width: 20px; text-align: center; }

/* ── Tags ── */
.tag {
  display: inline-block;
  font-size: .67rem;
  font-weight: 700;
  padding: .15rem .45rem;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-top: .25rem;
}
.tag-sold-out  { background: #e03030; border: 1px solid #c82020; color: #fff; }
.tag-coming-soon { background: rgba(251,191,36,.1); border: 1px solid rgba(251,191,36,.25);  color: #fbbf24; }
.tag-free      { background: rgba(74,222,128,.1);   border: 1px solid rgba(74,222,128,.25);  color: #4ade80; }

/* ── Checkout footer (replaces two-column layout) ── */
.checkout-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 28px rgba(0,0,0,.35);
  padding: .6rem 1.5rem .7rem;
}
.checkout-footer-inner {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.select-footer-inner {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.select-footer-price {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  min-width: 0;
}
.select-footer-amount {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}
.select-footer-note {
  font-size: .72rem;
  color: var(--text-2);
}
.select-footer-btn {
  flex-shrink: 0;
  padding: .6rem 1.25rem;
  font-size: .88rem;
  font-weight: 600;
  white-space: nowrap;
}

/* ── Promo code ── */
.promo-add-link {
  font-size: .8rem;
  color: #3b82f6;
  text-decoration: underline;
  cursor: pointer;
  display: block;
  text-align: right;
}
.promo-add-link:hover { color: #60a5fa; }

#promo-badge-row { text-align: right; }
.promo-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: rgba(74,222,128,.12);
  border: 1px solid rgba(74,222,128,.3);
  color: #4ade80;
  font-size: .78rem;
  font-weight: 600;
  padding: .1rem .45rem;
  border-radius: 99px;
}
.promo-badge-remove {
  background: none;
  border: none;
  color: #4ade80;
  font-size: .95rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  opacity: .7;
}
.promo-badge-remove:hover { opacity: 1; }

.promo-modal {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 900;
  align-items: center;
  justify-content: center;
}
.promo-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
}
.promo-modal-box {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.4rem 1.5rem 1.2rem;
  width: min(360px, 90vw);
  box-shadow: 0 8px 32px rgba(0,0,0,.45);
}
.promo-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.promo-modal-title { font-size: .95rem; font-weight: 700; }
.promo-modal-close {
  background: none;
  border: none;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--text-3);
  cursor: pointer;
  padding: 0;
}
.promo-modal-close:hover { color: var(--text); }
.promo-modal-body {
  display: flex;
  gap: .5rem;
}
.promo-modal-body input[type="text"] {
  flex: 1;
  padding: .5rem .75rem;
  font-size: .88rem;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--bg);
  color: var(--text);
  letter-spacing: .06em;
}
.promo-modal-body input[type="text"]:focus { outline: none; border-color: #3b82f6; }
.promo-modal-body button {
  padding: .5rem 1rem;
  font-size: .85rem;
  font-weight: 600;
  border: none;
  border-radius: var(--r-sm);
  background: #3b82f6;
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
}
.promo-modal-body button:hover { background: #2563eb; }
#promo-msg { font-size: .8rem; display: block; margin-top: .5rem; min-height: 1em; }

/* ── Order summary (inside fixed footer) ── */
.order-summary {
  flex: 1;
  min-width: 0;
}
.order-summary .sum-title {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: .35rem;
}
.summary-row { display: flex; justify-content: space-between; font-size: .82rem; padding: .15rem 0; color: var(--text-2); }
.summary-row.total { font-weight: 700; font-size: .88rem; color: var(--text); border-top: 1px solid var(--border); margin-top: .25rem; padding-top: .35rem; }
.summary-fee-note { font-size: .73rem; color: var(--text-3); margin-top: .5rem; line-height: 1.5; }

/* ── Alerts ── */
.alert { padding: .75rem 1rem; border-radius: var(--r-sm); margin-bottom: .85rem; font-size: .85rem; }
.alert-error   { background: rgba(248,113,113,.07); border: 1px solid rgba(248,113,113,.2); color: #f87171; }
.alert-success { background: rgba(74,222,128,.07);  border: 1px solid rgba(74,222,128,.2);  color: #4ade80; }

/* ── Status pages (success, cancel, error) ── */
.status-wrap { max-width: 520px; margin: 4rem auto; padding: 0 1.5rem; text-align: center; }
.status-icon { width: 56px; height: 56px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; }
.status-icon-success { background: rgba(74,222,128,.1); border: 1px solid rgba(74,222,128,.25); }
.status-icon-cancel  { background: var(--surface-2); border: 1px solid var(--border-2); }
.status-icon-error   { background: rgba(248,113,113,.1); border: 1px solid rgba(248,113,113,.25); }
.status-title { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: .4rem; }
.status-sub   { font-size: .88rem; color: var(--text-2); margin-bottom: 1.5rem; }

.order-ref-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1rem 1.25rem;
  text-align: left;
  margin-bottom: 1rem;
}
.order-ref-label { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin-bottom: .3rem; }
.order-ref-value { font-family: "SF Mono", "Fira Code", "Consolas", monospace; font-size: .9rem; letter-spacing: .06em; }

.confirm-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.25rem;
  text-align: left;
  margin-bottom: 1rem;
}
.confirm-item { padding: .5rem 0; border-bottom: 1px solid var(--border); }
.confirm-item:last-child { border-bottom: none; padding-bottom: 0; }
.confirm-item-name { font-size: .9rem; font-weight: 600; }
.confirm-item-meta { font-size: .8rem; color: var(--text-2); margin-top: .1rem; }
.confirm-total { display: flex; justify-content: space-between; font-size: .9rem; font-weight: 700; padding-top: .75rem; margin-top: .4rem; border-top: 1px solid var(--border); }

.email-notice { background: var(--surface-2); border-radius: var(--r); padding: .75rem 1rem; font-size: .83rem; color: var(--text-2); text-align: left; margin-bottom: 1.25rem; }

/* ── Merch ── */
.cart-link {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin-left: auto;
  color: var(--text);
  font-size: .85rem;
  font-weight: 600;
}
.cart-badge {
  background: #fff;
  color: #000;
  font-size: .7rem;
  font-weight: 700;
  border-radius: 99px;
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 .35rem;
}

.merch-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-bottom: 2rem; }
.merch-card {
  display: block;
  flex: 1 1 calc(50% - .5rem);
  max-width: calc(50% - .5rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color .15s, background .15s;
}
@media (min-width: 640px) {
  .merch-card { flex-basis: calc(33.333% - .667rem); max-width: calc(33.333% - .667rem); }
}
@media (min-width: 900px) {
  .merch-card { flex-basis: calc(25% - .75rem); max-width: calc(25% - .75rem); }
}
.merch-card:hover { border-color: var(--border-2); background: #161616; }
.merch-card img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--surface-2); display: block; }
.merch-card-body { padding: .75rem .9rem; }
.merch-card-name { font-size: .88rem; font-weight: 600; margin-bottom: .2rem; }
.merch-card-price { font-size: .85rem; font-weight: 400; }

.merch-header { padding: .75rem 0 .65rem; border-bottom: 1px solid #d7ff3f; margin-bottom: 1rem; }
.merch-title { font-family: 'Benzin', sans-serif; font-size: 1.55rem; font-weight: 700; letter-spacing: .01em; line-height: 1.15; }
.merch-product-title { font-family: 'Space Mono', monospace; font-size: 1.55rem; font-weight: 700; color: #fff; letter-spacing: .01em; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.merch-subtitle { font-family: 'Space Mono', monospace; font-size: .7rem; color: #d7ff3f; margin-top: .5rem; line-height: 1.5; }

.merch-detail-wrap { margin-bottom: 1.5rem; }
.merch-desc { font-size: .82rem; color: var(--text-2); line-height: 1.65; margin-bottom: .9rem; }
.merch-image-wrap { display: flex; justify-content: center; margin-bottom: .9rem; }
.merch-image-wrap img { width: 100%; max-width: 300px; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-lg); display: block; }
@media (min-width: 640px) {
  .merch-detail-wrap.has-image {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 0 1.75rem;
    align-items: start;
  }
  .merch-detail-wrap.has-image .merch-desc { grid-column: 1; margin-bottom: 0; }
  .merch-detail-wrap.has-image .merch-image-wrap { grid-column: 2; margin-bottom: 0; }
}

/* Sitewide mini-cart bar — shown whenever the cart has items */
.mini-cart-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 190;
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 28px rgba(0,0,0,.35);
  padding: .7rem 1.5rem;
}
.mini-cart-inner {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.mini-cart-note { font-size: .8rem; color: var(--text-2); }
.mini-cart-amount { font-size: 1rem; font-weight: 700; }
body.has-mini-cart { padding-bottom: 5rem; }

/* ── Misc ── */
.text-muted  { color: var(--text-2); }
.text-subtle { color: var(--text-3); }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.text-center { text-align: center; }
hr { border: none; border-top: 1px solid var(--border); margin: 1.25rem 0; }
