/* ═══════════════════════════════════════════════════════════════════════
   Customer account — v4 "Marquee" (27/10/2026)

   The ticket holder's side of megaticketsusa.com, in the same language as
   the redesigned public site: ticket stock (paper #f4f1ea) with white
   cards, the original lockup in the header, Archivo condensed for page
   titles, Geist Mono for the data printed on a stub (dates, order ids,
   labels), ticket red for the one action that matters on each screen.

   Shared by every page under /account/ (overview, tickets, favorites,
   profile, security, transfer, refund, resell, food & drinks receipt).
   Each page keeps a small <style> for what is only its own and keeps
   every id/class its script reads — this file only dresses.

   The old pages also linked /css/mtu-design-system.css and
   /css/mtu-nav.css. None of them used a class or variable from either,
   and the first forced `html, body { background: #0B0B0D !important }`,
   so both links are gone.
   ═══════════════════════════════════════════════════════════════════════ */

/* Archivo, Instrument Serif, Geist Mono — SIL OFL 1.1 (licences in /marquee/). */
@font-face {
  font-family: 'Archivo';
  src: url('/marquee/archivo.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('/marquee/instrument-serif-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('/marquee/geist-mono.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;

  --paper: #f4f1ea;
  --paper-2: #ece7dc;
  --paper-3: #e2dbcc;
  --card: #ffffff;
  --ink: #0b0d16;
  --ink-2: #121523;
  --ink-3: #1b2033;
  --on-ink: #f4f1ea;
  --on-ink-2: rgba(244, 241, 234, 0.74);
  --on-ink-3: rgba(244, 241, 234, 0.5);

  --t-1: #0c0e17;        /* 17:1 on paper */
  --t-2: #2b2f3c;
  --t-muted: #5b5850;    /* 6.4:1 on paper, 7.3:1 on white */
  --t-faint: #8b867a;    /* decoration and large type only */
  --l-1: rgba(12, 14, 23, 0.12);
  --l-2: rgba(12, 14, 23, 0.2);
  --l-3: rgba(12, 14, 23, 0.32);

  --red: #d20e36;
  --red-2: #b40b2e;
  --red-wash: #f9e3e6;
  --navy: #1b2a6b;
  --navy-wash: #e3e6f2;
  --gold: #f5b82e;
  --gold-ink: #7a4f00;
  --gold-wash: #fbefcf;
  --ok: #157a46;
  --ok-wash: #def2e6;

  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, Consolas, monospace;
  --serif: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);

  --hdr-h: 60px;
  --gutter: clamp(16px, 4vw, 32px);
  --perf: radial-gradient(circle, rgba(12, 14, 23, 0.32) 1.15px, transparent 1.6px);
  --sh-1: 0 1px 2px rgba(12, 14, 23, 0.05), 0 1px 1px rgba(12, 14, 23, 0.03);
  --sh-2: 0 10px 30px -14px rgba(12, 14, 23, 0.28), 0 2px 6px rgba(12, 14, 23, 0.06);

  /* The variable names the old account pages used, re-pointed. */
  --bg: var(--paper);
  --carmim: var(--red);
  --carmim-deep: var(--red-2);
  --line: var(--l-1);
  --line-strong: var(--l-2);
  --text: var(--t-1);
  --soft: var(--t-2);
  --muted: var(--t-muted);
  --r-card: 14px;
  --r-input: 8px;
  --shadow: var(--sh-2);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { background: var(--paper); }
/* clip, not hidden: hidden turns body into a scroll container and breaks the
   sticky header and tabs. Browsers without clip fall back to hidden. */
html, body { max-width: 100%; overflow-x: hidden; overflow-x: clip; }
body {
  min-height: 100dvh;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--t-1);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.modal-locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2.5px solid var(--red); outline-offset: 2px; }

/* ── Header: the lockup, a mono "Account" stub, avatar and sign-out ── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--hdr-h);
  padding: env(safe-area-inset-top, 0px) var(--gutter) 0;
  background: rgba(244, 241, 234, 0.92);
  -webkit-backdrop-filter: saturate(1.4) blur(18px);
  backdrop-filter: saturate(1.4) blur(18px);
  border-bottom: 1px solid var(--l-1);
}
.topbar .brand { display: flex; align-items: center; gap: 14px; min-width: 0; line-height: 0; }
.topbar .brand picture, .topbar .brand img { display: block; height: 34px; width: auto; }
.topbar .brand .acct-k {
  padding-left: 14px;
  border-left: 1px solid var(--l-2);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--t-muted);
  white-space: nowrap;
}
.topbar .user-menu { display: flex; align-items: center; gap: 10px; }
.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--ink);
  color: var(--on-ink);
  font-weight: 750;
  font-size: 13px;
  background-size: cover;
  background-position: center;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.logout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  border: 1.5px solid var(--l-2);
  background: transparent;
  color: var(--t-2);
  cursor: pointer;
  transition: border-color 0.16s, color 0.16s;
}
.logout-btn svg { width: 16px; height: 16px; }
.logout-btn:hover { border-color: var(--t-1); color: var(--t-1); }
@media (max-width: 520px) {
  .topbar .brand picture, .topbar .brand img { height: 30px; }
  .topbar .brand .acct-k { display: none; }
}

/* ── Tabs: stub print, the active one underlined in ticket red ── */
.tabs {
  position: sticky;
  top: calc(env(safe-area-inset-top, 0px) + var(--hdr-h));
  z-index: 99;
  display: flex;
  gap: 4px;
  padding: 0 var(--gutter);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  background: rgba(244, 241, 234, 0.92);
  -webkit-backdrop-filter: saturate(1.4) blur(18px);
  backdrop-filter: saturate(1.4) blur(18px);
  border-bottom: 1px solid var(--l-1);
}
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  flex: 0 0 auto;
  padding: 14px 12px 12px;
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--t-muted);
  -webkit-tap-highlight-color: transparent;
  transition: color 0.16s, border-color 0.16s;
}
.tabs a:hover { color: var(--t-1); }
.tabs a.active { color: var(--t-1); border-bottom-color: var(--red); }

/* A "back" link where a flow replaces the tabs (transfer, refund, resell). */
.back-row, .back {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--t-muted);
}
.back-row a:hover, a.back:hover { color: var(--t-1); }

/* ── Page frame ── */
.shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 44px) var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 64px);
}
.shell.is-narrow { max-width: 720px; }

/* Poster headline with a mono eyebrow, like every section on the site. */
.page-head { margin-bottom: clamp(18px, 3vw, 28px); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--t-muted);
}
.eyebrow .n { color: var(--red); }
.page-head h1, .poster {
  font-family: var(--font);
  font-stretch: 66%;
  font-weight: 850;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 0.92;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  color: var(--t-1);
}
.page-head h1 em, .poster em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-stretch: normal;
  text-transform: none;
  color: var(--red);
}
.page-head p { margin-top: 12px; max-width: 60ch; font-size: 15.5px; color: var(--t-muted); }

/* Section label — the thick masthead rule of the site. */
.section-label, .rulehead {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: clamp(28px, 4vw, 40px) 0 16px;
  padding-top: 12px;
  border-top: 3px solid var(--t-1);
  font-stretch: 72%;
  font-weight: 850;
  font-size: 20px;
  letter-spacing: 0.01em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--t-1);
}

/* ── Chips (filters) ── */
.chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin-bottom: 20px;
  padding-bottom: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1.5px solid var(--l-2);
  background: transparent;
  color: var(--t-1);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.16s, color 0.16s, border-color 0.16s;
}
.chip:hover { border-color: var(--t-1); }
.chip.active { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1.5px solid transparent;
  border-radius: 8px;
  background: var(--ink);
  color: var(--on-ink);
  font-size: 15px;
  font-weight: 680;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.16s, border-color 0.16s, color 0.16s, box-shadow 0.28s, transform 0.16s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-2); box-shadow: 0 10px 24px -12px rgba(210, 14, 54, 0.65); }
.btn-line { background: transparent; color: var(--t-1); border-color: var(--l-3); }
.btn-line:hover { border-color: var(--t-1); }
.btn-block { width: 100%; }

/* ── Cards & panels ── */
.acct-card {
  background: var(--card);
  border: 1px solid var(--l-1);
  border-radius: 14px;
  box-shadow: var(--sh-1);
  padding: clamp(18px, 3vw, 26px);
}

/* ── Forms ── */
.shell label, .field-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--t-2);
}
.shell input[type='text'], .shell input[type='email'], .shell input[type='password'],
.shell input[type='tel'], .shell input[type='number'], .shell input[type='url'],
.shell input[type='date'], .shell select, .shell textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1.5px solid var(--l-2);
  border-radius: 8px;
  background: #fff;
  color: var(--t-1);
  font-size: 16px;       /* below 16px iOS zooms the page on focus */
  transition: border-color 0.16s, box-shadow 0.16s;
}
.shell textarea { min-height: 110px; line-height: 1.5; resize: vertical; }
.shell input::placeholder, .shell textarea::placeholder { color: var(--t-faint); }
.shell input:hover, .shell select:hover, .shell textarea:hover { border-color: var(--l-3); }
.shell input:focus, .shell select:focus, .shell textarea:focus {
  outline: none;
  border-color: var(--t-1);
  box-shadow: 0 0 0 4px rgba(12, 14, 23, 0.08);
}
.shell input[type='checkbox'], .shell input[type='radio'] { accent-color: var(--red); }

/* Status messages the forms show. */
.msg { display: none; margin-top: 12px; padding: 12px 14px; border-radius: 8px; font-size: 14px; line-height: 1.45; }
.msg.ok { display: block; background: var(--ok-wash); color: var(--ok); }
.msg.err { display: block; background: var(--red-wash); color: var(--red-2); }

/* ── Empty, loading ── */
.empty {
  padding: clamp(40px, 7vw, 64px) 22px;
  text-align: center;
  border: 1.5px dashed var(--l-2);
  border-radius: 18px;
  background: transparent;
}
.empty .ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 14px;
  background: var(--red-wash);
  color: var(--red);
  font-size: 26px;
}
.empty .ico svg { width: 26px; height: 26px; }
.empty h2, .empty h3 {
  margin: 0 0 8px;
  font-stretch: 72%;
  font-weight: 850;
  font-size: 26px;
  line-height: 1;
  text-transform: uppercase;
  color: var(--t-1);
}
.empty p { max-width: 34ch; margin: 0 auto 20px; font-size: 14.5px; color: var(--t-muted) !important; }
.empty a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  font-weight: 680;
}
.empty a:hover { background: var(--red-2); }
.empty a svg { width: 16px; height: 16px; }

.skel { position: relative; overflow: hidden; border-radius: 8px; background: var(--paper-2); }
.skel::after {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  animation: mq-shine 1.3s infinite;
}
@keyframes mq-shine { to { transform: translateX(100%); } }
.skel-card {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--l-1);
  border-radius: 14px;
  background: var(--card);
}
.skel-card + .skel-card { margin-top: 12px; }
.skeleton { display: inline-block; width: 48px; height: 0.9em; border-radius: 6px; background: var(--paper-2); }

/* Mono tag, as printed on a stub. */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 9px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  background: var(--paper-2);
  color: var(--t-1);
}
.tag-ok { background: var(--ok-wash); color: var(--ok); }
.tag-gold { background: var(--gold-wash); color: var(--gold-ink); }
.tag-red { background: var(--red-wash); color: var(--red-2); }
.tag-ink { background: var(--ink); color: var(--on-ink); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
