: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: 62px;
}
.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-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-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; 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: 130px;
  min-height: 100px;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}
.event-card .ec-thumb-empty {
  width: 130px;
  min-height: 100px;
  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: .9rem 1.1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .25rem;
  flex: 1;
  min-width: 0;
}
.ec-body .ec-title { font-size: .97rem; font-weight: 700; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ec-body .ec-meta { font-size: .79rem; color: var(--text-2); }
.ec-body .ec-desc { font-size: .79rem; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ec-body .ec-price { font-size: .79rem; font-weight: 700; color: var(--text); margin-top: .1rem; }

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

/* ── Event detail ── */
.event-hero-wrap { overflow: hidden; max-height: 400px; }
.event-hero-wrap img { width: 100%; max-height: 400px; object-fit: cover; display: block; }

.event-header { padding: 1.5rem 0 1.25rem; border-bottom: 1px solid var(--border); margin-bottom: 1.5rem; }
.event-header .ev-title { font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; 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; }

/* ── Ticket list container ── */
.ticket-list {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 1.5rem;
  background: var(--surface);
}

.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 { opacity: .45; pointer-events: none; }

.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: rgba(248,113,113,.1);  border: 1px solid rgba(248,113,113,.25); color: #f87171; }
.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 {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  max-width: 480px;
}

/* ── Order summary sidebar ── */
.order-summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.1rem;
  position: sticky;
  top: 70px;
}
.order-summary .sum-title {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: .75rem;
}
.summary-row { display: flex; justify-content: space-between; font-size: .85rem; padding: .25rem 0; color: var(--text-2); }
.summary-row.total { font-weight: 700; font-size: .9rem; color: var(--text); border-top: 1px solid var(--border); margin-top: .4rem; padding-top: .6rem; }
.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; }

/* ── 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; }
