/* The Malkie Show — live tickets. One stylesheet for buyers, door scanner and admin. */
:root {
  --mt-ink: #16131A;
  --mt-text: #111114;
  --mt-muted: #5E5E66;
  --mt-line: #EDEDF0;
  --mt-fill: #F4F4F6;
  --mt-bg: #FFFFFF;
  --mt-gold: #C8902E;
  --mt-gold-text: #8C5A14;
  --mt-gold-soft: #FBF1DA;
  --mt-gold-grad: linear-gradient(135deg, #F6D98A, #C8902E);
  --mt-green: #0F7A3D;
  --mt-green-soft: #E6F6EC;
  --mt-red: #A3121B;
  --mt-red-soft: #FDECEC;
  --mt-radius: 18px;
  --mt-font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.mt, .mt * { box-sizing: border-box; }
.mt { font-family: var(--mt-font); color: var(--mt-text); -webkit-font-smoothing: antialiased; }
.mt a { color: var(--mt-gold-text); }
.mt :where(button, input, select, textarea) { font-family: inherit; font-size: inherit; color: inherit; }
.mt [hidden] { display: none !important; }
.mt-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- page shells ---------- */
.mt-page { min-height: 100vh; min-height: 100dvh; background: var(--mt-bg); position: relative; overflow-x: hidden; }
.mt-wrap { width: 100%; max-width: 480px; margin: 0 auto; padding: 0 16px; position: relative; }
.mt-watermark { position: fixed; left: 50%; top: 58%; width: min(520px, 120vw); transform: translate(-50%, -50%) rotate(-10deg); opacity: .06; pointer-events: none; z-index: 0; }
/* Lift content above the watermark, but leave the fixed layers (tab bar, scanner screens) fixed. */
.mt-page > *:not(.mt-watermark, .mt-tabbar, .mt-scan-shell, .mt-sheet, .mt-result, .mt-toast) { position: relative; z-index: 1; }
.mt-head { display: flex; justify-content: center; padding: 28px 0 10px; }
.mt-head img { height: 58px; width: auto; }

/* ---------- buttons ---------- */
.mt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; border: 0; border-radius: 16px; background: var(--mt-gold-grad); color: var(--mt-ink) !important; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; box-shadow: 0 8px 24px rgba(200,144,46,.35); transition: transform .15s ease, box-shadow .2s ease, opacity .2s; }
.mt-btn:active { transform: scale(.97); }
.mt-btn:focus-visible, .mt-icon-btn:focus-visible, .mt-chip:focus-visible { outline: 3px solid #F2C14E; outline-offset: 2px; }
.mt-btn[disabled], .mt-btn.is-busy { opacity: .6; cursor: default; box-shadow: none; }
.mt-btn--dark { background: var(--mt-ink); color: #fff !important; box-shadow: none; }
.mt-btn--ghost { background: transparent; color: var(--mt-gold-text) !important; box-shadow: none; }
.mt-btn--soft { background: var(--mt-fill); color: var(--mt-text) !important; box-shadow: none; }
.mt-btn--danger { background: var(--mt-red-soft); color: var(--mt-red) !important; box-shadow: none; }
.mt-btn--block { width: 100%; }
.mt-btn--sm { min-height: 40px; padding: 0 14px; font-size: 14px; border-radius: 12px; }

.mt-icon-btn { display: inline-flex; flex-direction: column; align-items: center; gap: 5px; padding: 12px 4px 10px; border: 0; border-radius: 16px; background: var(--mt-fill); color: var(--mt-text); font-size: 11px; font-weight: 600; cursor: pointer; text-decoration: none; }
.mt-icon-btn svg { width: 22px; height: 22px; }
.mt-icon-btn--danger { background: var(--mt-red-soft); color: var(--mt-red); }

/* ---------- show card ---------- */
.mt-hero { position: relative; overflow: hidden; border-radius: 24px; padding: 20px; background: var(--mt-ink); color: #fff; display: flex; flex-direction: column; gap: 14px; }
.mt-hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(226,176,79,.45), rgba(226,176,79,0) 70%); pointer-events: none; }
.mt-live { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: 1.4px; color: #F2D27A; }
.mt-live i { width: 8px; height: 8px; border-radius: 50%; background: #F2C14E; animation: mt-pulse 1.8s ease-in-out infinite; }
.mt-hero h1 { margin: 0; font-size: 30px; line-height: 1.05; font-weight: 800; letter-spacing: -.8px; }
.mt-hero-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mt-hero-cell { display: flex; flex-direction: column; gap: 3px; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.08); min-width: 0; }
.mt-hero-cell span:first-child { font-size: 11px; font-weight: 600; color: #BDB8C4; }
.mt-hero-cell strong { font-size: 15px; overflow-wrap: anywhere; }
.mt-hero-cell span:last-child:not(:first-child) { font-size: 12px; color: #D9D4DE; }
.mt-stamp { position: absolute; right: 14px; top: 18px; z-index: 2; padding: 6px 12px; border: 3px solid #F2C14E; border-radius: 10px; color: #F2C14E; font-size: 18px; font-weight: 800; letter-spacing: 2px; transform: rotate(-8deg); animation: mt-stamp .5s cubic-bezier(.2,.9,.3,1.2) .2s both; }

/* ---------- cards / rows ---------- */
.mt-stack { display: flex; flex-direction: column; gap: 14px; }
.mt-card { border-radius: var(--mt-radius); background: var(--mt-fill); padding: 14px 16px; }
.mt-card--white { background: #fff; border: 1px solid var(--mt-line); }
.mt-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mt-row + .mt-row { margin-top: 8px; }
.mt-muted { color: var(--mt-muted); }
.mt-small { font-size: 12px; line-height: 1.5; }
.mt-good { color: var(--mt-green); font-weight: 600; }
.mt-bad { color: #B3261E; font-weight: 700; }
.mt-divider { height: 1px; background: #E3E3E8; margin: 10px 0; }
.mt-total { font-size: 17px; font-weight: 800; }

/* ---------- forms ---------- */
.mt-field { display: flex; flex-direction: column; gap: 6px; }
.mt-field label, .mt-label { font-size: 12px; font-weight: 600; color: var(--mt-muted); padding-left: 2px; }
.mt-input { width: 100%; min-height: 48px; padding: 0 14px; border: 1.5px solid #DADAE0; border-radius: 14px; background: #fff; font-size: 16px; font-weight: 500; }
textarea.mt-input { padding: 12px 14px; min-height: 90px; }
.mt-input:focus { outline: none; border-color: var(--mt-gold); box-shadow: 0 0 0 4px rgba(200,144,46,.18); }
.mt-input[aria-invalid="true"] { border-color: #B3261E; }
.mt-error { color: #B3261E; font-size: 13px; font-weight: 600; }
.mt-flash { padding: 12px 14px; border-radius: 14px; background: var(--mt-green-soft); color: var(--mt-green); font-size: 14px; font-weight: 600; }
.mt-flash--bad { background: var(--mt-red-soft); color: var(--mt-red); }
.mt-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

.mt-stepper { display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: #fff; }
.mt-stepper button { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--mt-fill); font-size: 22px; font-weight: 600; cursor: pointer; transition: transform .15s; }
.mt-stepper button:active { transform: scale(.9); }
.mt-stepper button.plus { background: var(--mt-gold-grad); color: var(--mt-ink); }
.mt-stepper button:disabled { opacity: .35; cursor: default; }
.mt-stepper output { min-width: 28px; text-align: center; font-size: 18px; font-weight: 800; }

.mt-switch { position: relative; width: 52px; height: 32px; flex-shrink: 0; }
.mt-switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.mt-switch span { position: absolute; inset: 0; border-radius: 999px; background: #DADAE0; transition: background .2s; }
.mt-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.2); transition: transform .2s; }
.mt-switch input:checked + span { background: #34C759; }
.mt-switch input:checked + span::after { transform: translateX(20px); }
.mt-switch input:focus-visible + span { outline: 3px solid #F2C14E; outline-offset: 2px; }

.mt-seg { display: flex; gap: 6px; }
.mt-seg label { flex: 1; position: relative; }
.mt-seg input { position: absolute; opacity: 0; }
.mt-seg span { display: flex; align-items: center; justify-content: center; min-height: 40px; border-radius: 10px; background: #fff; font-size: 13px; font-weight: 600; color: #3D3D45; cursor: pointer; }
.mt-seg input:checked + span { background: var(--mt-ink); color: #fff; }
.mt-seg input:focus-visible + span { outline: 3px solid #F2C14E; outline-offset: 2px; }

/* ---------- sticky footer bar ---------- */
.mt-bar { position: sticky; bottom: 0; z-index: 5; margin-top: auto !important; display: flex; align-items: center; gap: 14px; padding: 14px 16px calc(18px + env(safe-area-inset-bottom)); margin: 18px -16px 0; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-top: 1px solid var(--mt-line); }
.mt-bar-total { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.mt-bar-total span { font-size: 12px; color: var(--mt-muted); }
.mt-bar-total strong { font-size: 20px; font-weight: 800; }

/* ---------- tickets ---------- */
.mt-ticket { border-radius: 26px; background: var(--mt-ink); color: #fff; overflow: hidden; box-shadow: 0 20px 40px rgba(22,19,26,.25); animation: mt-rise .6s cubic-bezier(.2,.8,.2,1) both; }
.mt-ticket-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 18px 20px 14px; }
.mt-ticket-top small { display: block; font-size: 11px; font-weight: 700; letter-spacing: 1.4px; color: #F2D27A; }
.mt-ticket-top strong { display: block; font-size: 17px; margin-top: 3px; }
.mt-ticket-top span { display: block; font-size: 13px; color: #D9D4DE; }
.mt-pill { padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.12); font-size: 12px; font-weight: 700; white-space: nowrap; }
.mt-perf { border-top: 2px dashed rgba(255,255,255,.18); margin: 0 18px; }
.mt-ticket-qr { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 20px 20px; }
.mt-qr-box { padding: 12px; border-radius: 18px; background: #fff; }
.mt-qr-box svg { display: block; width: 200px; height: 200px; }
.mt-qr-box svg .qr-dark, .mt-qr-box svg path { fill: var(--mt-ink); }
.mt-ticket-no { font-size: 12px; font-weight: 600; letter-spacing: 2px; color: #BDB8C4; }
.mt-ticket.is-void { opacity: .5; }
.mt-ticket-scroller { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 20px; margin: 0 -4px; scrollbar-width: none; }
.mt-ticket-scroller::-webkit-scrollbar { display: none; }
.mt-ticket-scroller > * { scroll-snap-align: center; }
.mt-dots { display: flex; justify-content: center; gap: 6px; }
.mt-dots i { width: 6px; height: 6px; border-radius: 3px; background: #DADAE0; transition: width .25s, background .25s; }
.mt-dots i.on { width: 18px; background: var(--mt-gold); }
.mt-success { width: 56px; height: 56px; border-radius: 50%; background: var(--mt-green); display: flex; align-items: center; justify-content: center; animation: mt-pop .6s cubic-bezier(.2,.9,.3,1.2) both, mt-halo 2.4s ease-in-out .6s infinite; }
.mt-center { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.mt-center h1 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -.6px; }
.mt-center p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--mt-muted); }
.mt-spinner { width: 36px; height: 36px; border-radius: 50%; border: 4px solid var(--mt-line); border-top-color: var(--mt-gold); animation: mt-spin 1s linear infinite; }

/* ---------- admin ---------- */
.mt-admin { background: #fff; padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
.mt-admin-head { display: flex; flex-direction: column; gap: 12px; padding: 20px 0 10px; }
.mt-admin-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mt-admin-top img { height: 40px; width: auto; }
.mt-admin-top form { margin: 0; }
.mt-kicker { font-size: 11px; font-weight: 700; letter-spacing: 1.2px; color: var(--mt-muted); }
.mt-admin h1 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -.6px; }
.mt-show-picker { max-width: 60%; min-height: 36px; padding: 0 10px; border: 1px solid var(--mt-line); border-radius: 10px; background: var(--mt-fill); font-size: 13px; font-weight: 600; }
.mt-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-top: 1px solid var(--mt-line); padding: 8px 4px calc(10px + env(safe-area-inset-bottom)); }
.mt-tabbar nav { max-width: 520px; margin: 0 auto; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.mt-tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 44px; color: var(--mt-muted); font-size: 10px; font-weight: 600; text-decoration: none; }
.mt-tabbar a[aria-current="page"] { color: var(--mt-gold-text); font-weight: 700; }
.mt-tabbar svg { width: 24px; height: 24px; }
.mt-list { border-radius: 16px; border: 1px solid var(--mt-line); overflow: hidden; background: #fff; }
.mt-list > * { display: flex; align-items: center; gap: 10px; padding: 11px 14px; color: var(--mt-text) !important; text-decoration: none; }
.mt-list > * + * { border-top: 1px solid var(--mt-line); }
.mt-list-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.mt-list-main strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-list-main span { font-size: 12px; color: var(--mt-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-tag { padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; background: var(--mt-fill); color: #3D3D45; }
.mt-tag--paid { background: var(--mt-green-soft); color: var(--mt-green); }
.mt-tag--comp, .mt-tag--admin { background: var(--mt-gold-soft); color: #6B430C; }
.mt-tag--refunded, .mt-tag--cancelled { background: var(--mt-fill); color: #3D3D45; }
.mt-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.mt-chip { flex-shrink: 0; display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border-radius: 999px; background: var(--mt-fill); color: #3D3D45 !important; font-size: 12px; font-weight: 600; text-decoration: none; }
.mt-chip[aria-current="true"] { background: var(--mt-ink); color: #fff !important; }
.mt-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mt-stat { display: flex; flex-direction: column; gap: 3px; padding: 14px; border-radius: 16px; background: var(--mt-fill); }
.mt-stat span { font-size: 12px; font-weight: 600; color: var(--mt-muted); }
.mt-stat strong { font-size: 22px; font-weight: 800; }
.mt-stat small { font-size: 14px; font-weight: 600; color: var(--mt-muted); }
.mt-ring-card { display: flex; align-items: center; gap: 18px; padding: 18px; border-radius: 22px; background: var(--mt-ink); color: #fff; }
.mt-ring-card svg { flex-shrink: 0; animation: mt-glow 3.2s ease-in-out infinite; }
.mt-ring-card .ring { animation: mt-fill 1.2s cubic-bezier(.2,.8,.2,1) both; }
.mt-settings { border-radius: 16px; background: #fff; overflow: hidden; }
.mt-settings > * { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 8px 14px; }
.mt-settings > * + * { border-top: 1px solid var(--mt-line); }
.mt-settings label:not(.mt-switch) { font-size: 15px; font-weight: 600; }
.mt-settings .mt-input { min-height: 40px; max-width: 58%; text-align: right; border-color: transparent; background: var(--mt-fill); font-size: 15px; }
.mt-settings-wrap { background: var(--mt-fill); }
.mt-avatar { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--mt-ink); color: #F2D27A; font-weight: 800; font-size: 14px; flex-shrink: 0; }
.mt-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mt-actions form { margin: 0; display: contents; }
.mt-actions .mt-icon-btn { width: 100%; }
.mt-dark-card { padding: 14px; border-radius: 18px; background: var(--mt-ink); color: #fff; display: flex; flex-direction: column; gap: 10px; }
.mt-dark-card .mt-input { background: rgba(255,255,255,.1); border-color: transparent; color: #fff; min-height: 44px; }
.mt-dark-card .mt-input::placeholder { color: #A7A2AE; }
.mt-code-chip { padding: 4px 8px; border-radius: 8px; border: 1.5px dashed var(--mt-gold); font-size: 13px; font-weight: 800; letter-spacing: 1px; }
.mt-code-chip.off { border-color: #C9C9D0; color: var(--mt-muted); }
.mt-pager { display: flex; justify-content: space-between; gap: 10px; }
details.mt-more summary { list-style: none; cursor: pointer; }
details.mt-more summary::-webkit-details-marker { display: none; }

/* ---------- door scanner (dark) ---------- */
.mt-scan { background: #000; color: #fff; min-height: 100vh; min-height: 100dvh; overflow: hidden; }
.mt-scan a { color: #F2D27A; }
.mt-scan-shell { position: fixed; inset: 0; display: flex; flex-direction: column; }
.mt-scan video, .mt-scan-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mt-scan-backdrop { background: radial-gradient(120% 80% at 50% 45%, #3A3340 0%, #1A161E 55%, #08070A 100%); }
.mt-scan-top { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: calc(14px + env(safe-area-inset-top)) 16px 10px; background: linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,0)); }
.mt-scan-show small { display: block; font-size: 11px; font-weight: 700; letter-spacing: 1.2px; color: #F2D27A; }
.mt-scan-show select, .mt-scan-show strong { font-size: 15px; font-weight: 700; background: transparent; border: 0; color: #fff; padding: 0; max-width: 46vw; }
.mt-scan-show select option { color: #000; }
.mt-count { display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; background: rgba(255,255,255,.14); backdrop-filter: blur(8px); }
.mt-count b { font-size: 16px; font-weight: 800; }
.mt-count b span { font-weight: 500; color: #BDB8C4; }
.mt-count small { display: block; font-size: 10px; font-weight: 600; color: #BDB8C4; }
.mt-offline { position: relative; display: none; align-items: center; gap: 8px; margin: 4px 16px 0; padding: 10px 14px; border-radius: 14px; background: rgba(242,193,78,.18); border: 1px solid rgba(242,193,78,.45); font-size: 13px; font-weight: 600; color: #F6D98A; backdrop-filter: blur(8px); }
.mt-offline.show { display: flex; }
.mt-scan-mid { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; }
.mt-frame { position: relative; width: min(66vw, 280px); aspect-ratio: 1; }
.mt-frame i { position: absolute; width: 46px; height: 46px; border: 5px solid #fff; }
.mt-frame i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 22px; }
.mt-frame i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 22px; }
.mt-frame i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 22px; }
.mt-frame i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 22px; }
.mt-frame b { position: absolute; left: 16px; right: 16px; height: 3px; border-radius: 2px; background: #F2C14E; box-shadow: 0 0 18px 4px rgba(242,193,78,.7); animation: mt-sweep 2.6s ease-in-out infinite; }
.mt-hint { padding: 8px 16px; border-radius: 999px; background: rgba(0,0,0,.5); font-size: 14px; font-weight: 600; text-align: center; }
.mt-scan-bottom { position: relative; display: flex; justify-content: space-around; padding: 14px 24px calc(24px + env(safe-area-inset-bottom)); background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,.55)); }
.mt-round { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 64px; padding: 0; border: 0; background: transparent; color: #fff !important; font-size: 11px; font-weight: 600; cursor: pointer; text-decoration: none; }
.mt-round span { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.16); backdrop-filter: blur(8px); }
.mt-round[aria-pressed="true"] span { background: #F2C14E; color: var(--mt-ink); }
.mt-round svg { width: 22px; height: 22px; }

.mt-result { position: fixed; inset: 0; z-index: 30; display: none; flex-direction: column; color: #fff; }
.mt-result.show { display: flex; animation: mt-fade .15s ease-out both; }
.mt-result--ok { background: radial-gradient(90% 60% at 50% 40%, #22B861 0%, #0B7A3E 70%); }
.mt-result--bad { background: radial-gradient(90% 60% at 50% 40%, #E3343E 0%, #A3121B 70%); }
.mt-result-body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 0 24px; text-align: center; }
.mt-result-icon { width: 150px; height: 150px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 60px rgba(255,255,255,.45); }
.mt-result--ok .mt-result-icon { animation: mt-pop .5s cubic-bezier(.2,.9,.3,1.3) both; color: #0B7A3E; }
.mt-result--bad .mt-result-icon { animation: mt-pop .3s ease-out both, mt-shake .45s ease-in-out .3s both; color: #B3161F; }
.mt-result-icon svg { width: 78px; height: 78px; }
.mt-result h2 { margin: 0; font-size: 44px; font-weight: 800; letter-spacing: -1.2px; line-height: 1; }
.mt-result-name { font-size: 20px; font-weight: 700; }
.mt-result-pill { padding: 7px 16px; border-radius: 999px; background: rgba(255,255,255,.2); font-size: 16px; font-weight: 800; }
.mt-result-msg { font-size: 16px; font-weight: 600; line-height: 1.4; }
.mt-result-sub { font-size: 13px; opacity: .85; }
.mt-result-foot { padding: 14px 24px calc(28px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.mt-result-foot button { min-height: 56px; border: 0; border-radius: 18px; background: #fff; font-size: 16px; font-weight: 800; cursor: pointer; }
.mt-result-foot button:focus { outline: none; }
.mt-result-foot button:focus-visible { outline: 3px solid rgba(255,255,255,.7); outline-offset: 3px; }
.mt-result--ok .mt-result-foot button { color: #0B7A3E; }
.mt-result--bad .mt-result-foot button { color: #B3161F; }
.mt-result-foot small { text-align: center; font-size: 12px; opacity: .85; }

.mt-sheet { position: fixed; inset: 0; z-index: 20; display: none; flex-direction: column; background: #0E0C11; }
.mt-sheet.show { display: flex; animation: mt-up .25s cubic-bezier(.2,.8,.2,1) both; }
.mt-sheet-head { display: flex; flex-direction: column; gap: 14px; padding: calc(14px + env(safe-area-inset-top)) 16px 12px; }
.mt-sheet-head h2 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -.6px; }
.mt-search { display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 14px; border-radius: 14px; background: rgba(255,255,255,.08); border: 1.5px solid rgba(242,193,78,.55); }
.mt-search input { flex: 1; min-width: 0; border: 0; background: transparent; color: #fff; font-size: 16px; outline: none; }
.mt-sheet-list { flex: 1; overflow-y: auto; padding: 4px 16px 30px; display: flex; flex-direction: column; gap: 10px; }
.mt-guest { padding: 14px; border-radius: 18px; background: rgba(255,255,255,.07); display: flex; flex-direction: column; gap: 10px; }
.mt-guest-name { font-size: 16px; font-weight: 700; }
.mt-guest-sub { font-size: 13px; color: #BDB8C4; }
.mt-guest-tickets { display: flex; flex-wrap: wrap; gap: 8px; }
.mt-guest-tickets button, .mt-guest-tickets span { min-height: 40px; padding: 0 12px; border: 0; border-radius: 12px; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.mt-guest-tickets button { background: var(--mt-gold-grad); color: var(--mt-ink); cursor: pointer; }
.mt-guest-tickets span { background: rgba(74,222,128,.15); color: #4ADE80; }
.mt-guest-tickets span.void { background: rgba(255,255,255,.08); color: #A7A2AE; text-decoration: line-through; }
.mt-comp { margin-left: 4px; padding: 2px 7px; border-radius: 6px; background: rgba(242,193,78,.18); color: #F2D27A; font-size: 10px; font-weight: 800; letter-spacing: .8px; vertical-align: 2px; }
.mt-back { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); color: #fff; cursor: pointer; }
.mt-manual { display: flex; gap: 8px; padding: 0 16px; }
.mt-toast { position: fixed; left: 50%; bottom: calc(110px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 40; padding: 10px 16px; border-radius: 999px; background: rgba(0,0,0,.8); color: #fff; font-size: 13px; font-weight: 600; opacity: 0; transition: opacity .2s; pointer-events: none; max-width: 90vw; text-align: center; }
.mt-toast.show { opacity: 1; }

/* scan login */
.mt-login { background: #0E0C11; color: #fff; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; overflow: hidden; position: relative; }
.mt-login::before { content: ""; position: absolute; left: 50%; top: 18%; width: 320px; height: 320px; margin-left: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(200,144,46,.4), rgba(200,144,46,0) 70%); animation: mt-breathe 4s ease-in-out infinite; }
.mt-login .mt-wrap { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 28px; padding-top: 30px; padding-bottom: 40px; }
.mt-login h1 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -.6px; }
.mt-login p { margin: 0; font-size: 15px; line-height: 1.45; color: #BDB8C4; }
.mt-login .mt-input { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); color: #fff; min-height: 54px; }
.mt-login label { color: #BDB8C4; }
.mt-login .mt-error { color: #FF9A9A; }
.mt-code-input { letter-spacing: 10px; text-align: center; font-size: 26px !important; font-weight: 800 !important; }

/* ---------- motion ---------- */
@keyframes mt-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(242,193,78,.55); } 50% { box-shadow: 0 0 0 6px rgba(242,193,78,0); } }
@keyframes mt-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes mt-pop { 0% { transform: scale(.3); opacity: 0; } 60% { transform: scale(1.12); opacity: 1; } 100% { transform: scale(1); } }
@keyframes mt-halo { 0%,100% { box-shadow: 0 0 0 0 rgba(15,122,61,.35); } 50% { box-shadow: 0 0 0 12px rgba(15,122,61,0); } }
@keyframes mt-shake { 0%,100% { transform: translateX(0); } 20% { transform: translateX(-12px); } 40% { transform: translateX(10px); } 60% { transform: translateX(-7px); } 80% { transform: translateX(4px); } }
@keyframes mt-sweep { 0% { top: 8%; } 50% { top: 88%; } 100% { top: 8%; } }
@keyframes mt-stamp { 0% { transform: rotate(-8deg) scale(1.6); opacity: 0; } 70% { transform: rotate(-8deg) scale(.95); opacity: 1; } 100% { transform: rotate(-8deg) scale(1); } }
@keyframes mt-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes mt-up { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes mt-spin { to { transform: rotate(360deg); } }
@keyframes mt-breathe { 0%,100% { opacity: .55; transform: scale(1); } 50% { opacity: .9; transform: scale(1.08); } }
@keyframes mt-glow { 0%,100% { filter: drop-shadow(0 0 4px rgba(242,193,78,.35)); } 50% { filter: drop-shadow(0 0 12px rgba(242,193,78,.7)); } }
@keyframes mt-fill { from { stroke-dasharray: 0 302; } }
@media (prefers-reduced-motion: reduce) {
  .mt *, .mt *::before, .mt *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Checkout: "I'd rather not be on camera" (checkout.blade.php). */
.mt-check { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--mt-line); border-radius: 16px; background: var(--mt-fill); cursor: pointer; }
.mt-check:has(input:checked) { border-color: var(--mt-gold); background: var(--mt-gold-soft); }
.mt-check input { flex-shrink: 0; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--mt-gold-text); }
.mt-check span { display: flex; flex-direction: column; gap: 2px; }
.mt-check strong { color: var(--mt-text); font-size: 15px; }
.mt-check small { color: var(--mt-muted); font-size: 13px; line-height: 1.4; }

/* Admin guest list / order: the buyer asked to stay off camera. */
.mt-tag--offcam { background: #EDEDF0; color: #3A3A42; }
