:root {
  --black: #050505;
  --panel: #181818;
  --yellow: #ffde00;
  --white: #ffffff;
  --muted: #b8b8b8;
  --green: #5ce38a;
  --red: #ff7168;
  --line: #353535;
  --soft-panel: #101010;
}
html[data-theme="light"]{--black:#f6f4ee;--panel:#fff;--white:#191919;--muted:#625f58;--line:#ddd8cc;--soft-panel:#faf8f2}

* {
  box-sizing: border-box;
}
.legacy-customer-header{display:none!important}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: "Inter", sans-serif;
  font-feature-settings: "kern";
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
button,
.download-ticket {
  font-family: "Space Grotesk", "Inter", sans-serif;
}
.show-card__calendar{display:inline-flex;align-items:center;justify-content:center;min-height:42px;margin:4px 0 10px;padding:9px 13px;border:1px solid var(--yellow);border-radius:9px;background:transparent;color:var(--yellow);font:inherit;font-size:13px;font-weight:800;cursor:pointer}.show-card__calendar:hover,.show-card__calendar:focus-visible{background:var(--yellow);color:#090909;outline:none}
html[data-theme="light"] .show-card__calendar:not(:hover):not(:focus-visible){color:#6f5b00}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: min(1280px, calc(100% - 32px));
  margin: auto;
  min-height: 82px;
  padding: 14px 0;
  border-bottom: 1px solid #171717;
}

.brand {
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--white);
  text-decoration: none;
}

.brand img { border: 1px solid rgba(255, 222, 0, .3); border-radius: 50%; }

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 5px;
  color: var(--yellow);
}

nav {
  display: flex;
  gap: 24px;
}

nav a {
  color: #d4d4d4;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}

nav a:hover {
  color: var(--yellow);
}

main {
  width: min(1120px, calc(100% - 32px));
  min-height: 72vh;
  margin: auto;
  padding: 48px 0 90px;
  background: radial-gradient(circle at 50% 0, rgba(255, 222, 0, .06), transparent 34%);
}

.account-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
  padding: 28px;
  border: 1px solid rgba(255, 222, 0, .3);
  border-radius: 16px;
  background: var(--panel);
}

.account-card h1 {
  margin: 4px 0 10px;
  font-size: clamp(32px, 6vw, 58px);
}

.eyebrow {
  margin: 0;
  color: var(--yellow);
  font-weight: 900;
}

button,
.empty-state a,
.download-ticket {
  padding: 14px 18px;
  border: 0;
  border-radius: 8px;
  background: var(--yellow);
  color: #000;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.ticket-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
}

.ticket-collection { display: grid; gap: 42px; }
.ticket-section { display: grid; gap: 16px; }
.ticket-section__heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ticket-section__heading span { color: var(--muted); font-size: 13px; }

.show-card {
  display: grid;
  grid-template-columns: minmax(180px, 34%) 1fr;
  overflow: hidden;
  min-height: 310px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: 0 18px 45px rgba(0,0,0,.14);
}
.show-card__poster { width: 100%; height: 100%; min-height: 310px; object-fit: cover; background: #171717; }
.show-card__poster--empty { display: grid; place-items: center; color: var(--yellow); font: 800 44px "Space Grotesk",sans-serif; }
.show-card__content { display: flex; flex-direction: column; min-width: 0; padding: 26px; }
.show-card__content h2 { margin: 0 0 18px; font-size: clamp(22px,3vw,31px); text-transform: uppercase; }
.show-card__meta { display: grid; gap: 9px; color: var(--muted); }
.show-card__meta p { display: flex; gap: 8px; margin: 0; line-height: 1.5; overflow-wrap: anywhere; }
.show-card__statuses { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 21px 0; }
.show-status { display: inline-flex; width: fit-content; padding: 7px 10px; border: 1px solid rgba(255,222,0,.5); border-radius: 999px; color: var(--yellow); font-size: 12px; font-weight: 900; letter-spacing: .04em; }
.show-status--in_progress { border-color: rgba(92,227,138,.55); color: var(--green); }
.show-status--completed { border-color: var(--line); color: var(--muted); }
.show-status--cancelled { border-color: rgba(255,113,104,.5); color: var(--red); }
.payment-status { color: var(--green); font-size: 13px; font-weight: 800; }
.show-card__cta { align-self: flex-end; margin-top: auto; min-width: 150px; }
.ticket-history-more { display: flex; justify-content: center; margin-top: -18px; }
.ticket-history-more button { min-width: min(100%,320px); padding: 13px 20px; border: 1px solid var(--yellow); border-radius: 999px; background: transparent; color: var(--yellow); font-weight: 900; }
.ticket-history-more button:hover { background: var(--yellow); color: #111; }
.ticket-history-more span { font-weight: 600; opacity: .78; }
html[data-theme="light"] .ticket-history-more button { color: #6f5b00; border-color: #b99d00; }
html[data-theme="light"] .ticket-history-more button:hover { color: #111; background: var(--yellow); }

.ticket-detail { width: min(720px,calc(100% - 28px)); max-height: calc(100vh - 28px); padding: 0; border: 1px solid rgba(255,222,0,.35); border-radius: 20px; background: var(--panel); color: var(--white); box-shadow: 0 28px 100px rgba(0,0,0,.6); }
.ticket-detail::backdrop { background: rgba(0,0,0,.76); backdrop-filter: blur(5px); }
.ticket-detail__panel { position: relative; overflow-y: auto; max-height: calc(100vh - 30px); padding: 28px; }
.ticket-detail__close { position: sticky; z-index: 2; top: 0; float: right; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--soft-panel); color: var(--white); font-size: 25px; }
.ticket-detail__header { padding-right: 48px; }
.ticket-detail__header h2 { margin: 7px 0 18px; font-size: clamp(25px,5vw,38px); text-transform: uppercase; }
.ticket-detail__count { color: var(--muted); font-weight: 800; }
.ticket-credential { margin-top: 22px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--soft-panel); }
.ticket-credential h3 { margin: 15px 0; text-align: center; font-size: 22px; }
.ticket-switcher { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 12px; text-align: center; }
.ticket-switcher button { width: 44px; height: 38px; padding: 0; }
.ticket-switcher button:disabled { opacity: .28; cursor: default; }
.ticket-position { text-align: center; font-weight: 800; }
.ticket-code-block { display: grid; gap: 4px; margin-top: 20px; text-align: center; }
.ticket-code-block span { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.ticket-code-block strong { overflow-wrap: anywhere; font-size: 20px; letter-spacing: .06em; }
.ticket-payment-confirmation { color: var(--green); text-align: center; font-weight: 900; }
.ticket-qr-hidden { margin: 20px 0; padding: 20px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); text-align: center; }
.archive-status-badge { display: inline-flex; width: fit-content; padding: 6px 10px; border: 1px solid #d7b900; border-radius: 999px; background: rgba(255,222,0,.12); color: var(--yellow); font-size: 12px; font-weight: 900; }
.ticket-archive-state { display: grid; gap: 8px; margin: 14px 0; padding: 16px; border: 1px solid rgba(255,222,0,.35); border-radius: 12px; background: rgba(255,222,0,.06); }
.ticket-archive-state p { margin: 0; color: #ddd; line-height: 1.5; }
.ticket-archive-state--expired { border-color: rgba(255,85,76,.45); background: rgba(255,85,76,.08); }
.ticket-archive-state--expired .archive-status-badge { border-color: var(--red); background: rgba(255,85,76,.12); color: #ff8d86; }
.ticket-detail-open { overflow: hidden; }

html[data-theme="light"] .show-card,
html[data-theme="light"] .ticket-detail { box-shadow: 0 18px 45px rgba(58,48,22,.10); }
html[data-theme="light"] .show-status { color: #746100; border-color: #c7a900; background: #fff8cf; }
html[data-theme="light"] .show-status--in_progress,
html[data-theme="light"] .payment-status,
html[data-theme="light"] .ticket-payment-confirmation { color: #08723c; }
html[data-theme="light"] .show-status--completed { color: #5f5b52; border-color: #cbc5b9; background: #f1eee7; }
html[data-theme="light"] .show-status--cancelled { color: #a32920; border-color: #dfa7a2; background: #fff0ef; }

.ticket-card {
  overflow: hidden;
  border: 1px solid rgba(255, 222, 0, .3);
  border-radius: 16px;
  background: var(--panel);
}

.ticket-heading,
.ticket-body {
  padding: 20px;
}

.ticket-heading {
  border-bottom: 1px solid #2f2f2f;
  background: #0b0b0b;
  color: var(--white);
}

.ticket-heading h2 { color: var(--yellow); }

.ticket-heading h2 {
  margin: 0 0 8px;
}

.ticket-heading p,
.ticket-body p {
  margin: 8px 0;
}

.ticket-qr {
  display: block;
  width: min(100%, 320px);
  margin: 18px auto;
  padding: 10px;
  border-radius: 10px;
  background: var(--white);
}

.ticket-qr-pending {
  margin: 18px 0;
  padding: 28px 16px;
  border: 1px dashed var(--yellow);
  border-radius: 12px;
  text-align: center;
  background: rgba(255, 222, 0, .08);
}

.ticket-code {
  text-align: center;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: .05em;
}

.ticket-status {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: #313131;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.ticket-status.CHECKED_IN,
.ticket-status.CANCELLED,
.ticket-status.REFUNDED {
  color: var(--red);
}

.download-ticket {
  display: block;
  margin-top: 16px;
  text-align: center;
}

.empty-state,
.message {
  padding: 35px;
  border-radius: 14px;
  background: var(--panel);
  text-align: center;
}

.message {
  margin-bottom: 20px;
  border: 1px solid var(--red);
  color: #ffd1ce;
}

.hidden {
  display: none !important;
}

.profile-hidden { display: none !important; }
.account-tabs { justify-content: flex-start; gap: 8px; margin: 0 0 18px; }
.account-tabs a { padding: 10px 14px; border: 1px solid #343434; border-radius: 9px; color: #ddd; font-size: 13px; letter-spacing: 0; text-transform: none; }
.account-tabs a.active { border-color: var(--yellow); background: var(--yellow); color: #090909; }
.profile-section { max-width: 760px; padding: 26px; border: 1px solid rgba(255, 222, 0, .3); border-radius: 16px; background: var(--panel); }
.profile-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.profile-heading h2 { margin: 4px 0; font-size: 24px; }
.profile-heading p:last-child { margin: 0; color: var(--muted); }
.profile-heading img { width: 72px; height: 72px; border: 2px solid var(--yellow); border-radius: 50%; object-fit: cover; }
#profileForm { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
#profileForm label { display: grid; gap: 7px; color: #ddd; font-size: 13px; font-weight: 700; }
#profileForm label:first-child { grid-column: 1 / -1; }
#profileForm input { min-height: 44px; padding: 10px 12px; border: 1px solid #444; border-radius: 8px; background: #0d0d0d; color: #fff; font: inherit; }
#profileForm input:focus { border-color: var(--yellow); outline: 3px solid rgba(255, 222, 0, .1); }
#profileForm input[readonly] { background: #242424; color: #aaa; cursor: not-allowed; }
#profileForm small { color: #8f8f8f; font-weight: 400; }
#profileForm button { grid-column: 1 / -1; justify-self: end; min-width: 170px; }

.legacy-customer-footer {
  padding: 45px 20px;
  border-top: 1px solid #444;
  text-align: center;
}

.legacy-customer-footer p {
  color: var(--muted);
}

@media (max-width: 680px) {
  .site-header,
  .account-card {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    justify-content: space-between;
  }

  .account-card button {
    width: 100%;
  }
  #profileForm { grid-template-columns: 1fr; }
  #profileForm label:first-child, #profileForm button { grid-column: auto; }
  #profileForm button { width: 100%; }
  main { width: min(100% - 24px,1120px); padding-top: 28px; }
  .ticket-list { grid-template-columns: 1fr; }
  .show-card { grid-template-columns: 1fr; min-height: 0; }
  .show-card__poster { min-height: 0; height: auto; aspect-ratio: 16 / 9; }
  .show-card__content { padding: 20px; }
  .show-card__cta { width: 100%; }
  .ticket-detail__panel { padding: 18px; }
  .ticket-detail__header { padding-right: 42px; }
  .ticket-credential { padding: 16px; }
}
