:root {
  --bg: #07080c;
  --ink: #f4efe6;
  --muted: #a59f94;
  --line: rgba(255, 255, 255, 0.09);
  --glass: rgba(14, 15, 21, 0.62);
  --glass-strong: rgba(12, 13, 18, 0.86);
  --gold: #e8c36a;
  --gold-2: #b98a2e;
  --mint: #2bffb0;
  --danger: #ff5d73;
  --radius: 18px;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
  --font: 'Vazirmatn', 'Inter', Tahoma, sans-serif;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
html[lang='en'] {
  --font: 'Inter', 'Vazirmatn', system-ui, sans-serif;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  border: 0;
  background: none;
}
#app {
  position: fixed;
  inset: 0;
}
#app canvas.three {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  outline: none;
}
.glass {
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

/* ---------- top bar ---------- */
.topbar {
  position: absolute;
  top: 14px;
  inset-inline: 14px;
  height: 64px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 14px;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brand svg {
  flex: none;
}
.brand b {
  display: block;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.2px;
  white-space: nowrap;
}
.brand small {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
}
.event-picker {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  min-width: 0;
}
.select-wrap {
  position: relative;
}
.select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 12px;
  height: 40px;
  padding: 0 14px;
  padding-inline-end: 34px;
  font-weight: 700;
  font-size: 14px;
  max-width: 340px;
  outline: none;
}
.select-wrap select option {
  background: #15161c;
}
.select-wrap::after {
  content: '';
  position: absolute;
  inset-inline-end: 13px;
  top: 16px;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(45deg);
  pointer-events: none;
}
.chips {
  display: flex;
  gap: 6px;
  overflow: auto;
  scrollbar-width: none;
}
.chip {
  height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: 0.2s;
}
.chip:hover {
  border-color: rgba(232, 195, 106, 0.5);
}
.chip.on {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #1b1406;
  border-color: transparent;
}
.top-actions {
  display: flex;
  gap: 8px;
}
.icon-btn {
  height: 40px;
  min-width: 40px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  transition: 0.2s;
}
.icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}
.icon-btn svg {
  width: 18px;
  height: 18px;
}

/* ---------- side panel ---------- */
#panel {
  position: absolute;
  top: 92px;
  bottom: 14px;
  inset-inline-end: 14px;
  width: 360px;
  border-radius: 22px;
  z-index: 15;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.panel-scroll {
  flex: 1;
  overflow: auto;
  padding: 14px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}
.panel-handle {
  display: none;
}
.event-card {
  position: relative;
  border-radius: 16px;
  padding: 16px;
  overflow: hidden;
  min-height: 132px;
  background: radial-gradient(120% 140% at 0% 0%, #3a1d4d 0%, #160f24 45%, #0c0c12 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.event-card .genre {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: #1b1406;
  background: var(--gold);
  padding: 3px 9px;
  border-radius: 99px;
}
.event-card h2 {
  margin: 10px 0 4px;
  font-size: 19px;
  line-height: 1.35;
  font-weight: 900;
}
.event-card p {
  margin: 0;
  color: #cfc6b8;
  font-size: 13px;
}
.event-card .when {
  margin-top: 10px;
  display: flex;
  gap: 14px;
  font-size: 12.5px;
  color: #e9dfcf;
}
.event-card .when span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.event-card .orb {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
  inset-inline-end: -50px;
  top: -60px;
  background: var(--orb, #c04dff);
  animation: float 8s ease-in-out infinite;
}
@keyframes float {
  50% {
    transform: translate(-20px, 24px) scale(1.1);
  }
}
.sec-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 2px 10px;
}
.sec-title h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
}
.sec-title small {
  color: var(--muted);
  font-size: 12px;
}
.legend {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cat {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.035);
  transition: 0.18s;
  text-align: start;
  width: 100%;
}
.cat:hover {
  background: rgba(255, 255, 255, 0.07);
}
.cat.on {
  border-color: var(--c);
  background: color-mix(in srgb, var(--c) 16%, transparent);
}
.cat .sw {
  width: 14px;
  height: 14px;
  border-radius: 5px;
  background: var(--c);
  box-shadow: 0 0 12px var(--c);
  flex: none;
}
.cat .nm {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
}
.cat .nm small {
  display: block;
  color: var(--muted);
  font-weight: 400;
  font-size: 11px;
}
.cat .pr {
  font-size: 13px;
  font-weight: 800;
  color: var(--gold);
  white-space: nowrap;
}
.status-legend {
  display: flex;
  gap: 14px;
  margin: 10px 4px 0;
  font-size: 11.5px;
  color: var(--muted);
}
.status-legend span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.status-legend i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  display: inline-block;
}
.best {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(43, 255, 176, 0.06);
  border: 1px dashed rgba(43, 255, 176, 0.35);
}
.best[hidden] {
  display: none;
}
.stepper {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.stepper button {
  width: 30px;
  height: 32px;
  font-size: 18px;
  font-weight: 700;
}
.stepper button:hover {
  background: rgba(255, 255, 255, 0.08);
}
.stepper span {
  min-width: 26px;
  text-align: center;
  font-weight: 800;
}
.best .go {
  flex: 1;
  height: 34px;
  border-radius: 10px;
  background: var(--mint);
  color: #04261a;
  font-weight: 800;
  font-size: 12.5px;
}
.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.timer {
  font-variant-numeric: tabular-nums;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--gold);
  background: rgba(232, 195, 106, 0.1);
  padding: 4px 10px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.timer.warn {
  color: #ff8f8f;
  background: rgba(255, 93, 115, 0.12);
}
.timer[hidden] {
  display: none;
}
.cart-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cart-empty {
  color: var(--muted);
  font-size: 12.5px;
  padding: 16px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 12px;
  line-height: 1.9;
}
.ci {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  animation: pop 0.35s cubic-bezier(0.2, 1.4, 0.4, 1);
}
@keyframes pop {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
}
.ci .badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 14px;
  background: var(--c);
  color: #111;
  flex: none;
}
.ci .info {
  flex: 1;
  min-width: 0;
  cursor: pointer;
}
.ci .info b {
  display: block;
  font-size: 13px;
}
.ci .info small {
  color: var(--muted);
  font-size: 11.5px;
}
.ci .p {
  font-weight: 800;
  font-size: 12.5px;
  color: var(--gold);
  white-space: nowrap;
}
.ci .act {
  display: flex;
  gap: 2px;
}
.ci .act button {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--muted);
}
.ci .act button:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}
.ci .act svg {
  width: 16px;
  height: 16px;
}
.panel-foot {
  padding: 14px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
}
.total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}
.total span {
  color: var(--muted);
  font-size: 13px;
}
.total b {
  font-size: 21px;
  font-weight: 900;
}
.cta {
  width: 100%;
  height: 52px;
  border-radius: 14px;
  font-weight: 900;
  font-size: 15.5px;
  color: #1b1406;
  background: linear-gradient(135deg, #f6dc95, var(--gold) 40%, var(--gold-2));
  box-shadow: 0 10px 30px rgba(232, 195, 106, 0.25);
  transition: 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 36px rgba(232, 195, 106, 0.38);
}
.cta:disabled {
  filter: grayscale(1) brightness(0.55);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ---------- dock ---------- */
#dock {
  position: absolute;
  bottom: 14px;
  left: calc(50% - 73px);
  transform: translateX(-50%);
  border-radius: 18px;
  padding: 7px;
  display: flex;
  gap: 4px;
  z-index: 16;
  max-width: calc(100vw - 660px);
  overflow: auto;
  scrollbar-width: none;
}
html[dir='rtl'] #dock {
  left: auto;
  right: calc(50% - 73px);
  transform: translateX(50%);
}
@media (max-width: 1320px) {
  #dock .dock-btn span.lbl {
    display: none;
  }
}
.dock-btn {
  height: 44px;
  padding: 0 13px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  color: #ddd5c8;
  transition: 0.18s;
}
.dock-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.dock-btn.on {
  background: rgba(232, 195, 106, 0.16);
  color: var(--gold);
}
.dock-btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.dock-btn.tour {
  background: linear-gradient(135deg, #f6dc95, var(--gold) 45%, var(--gold-2));
  color: #1b1406;
  font-weight: 900;
  padding: 0 16px;
}
.dock-btn.tour.on {
  background: linear-gradient(135deg, #ff8aa0, var(--danger));
  color: #fff;
}
.sep {
  width: 1px;
  background: var(--line);
  margin: 6px 3px;
  flex: none;
}

/* ---------- minimap ---------- */
#minimap {
  position: absolute;
  bottom: 14px;
  inset-inline-start: 14px;
  width: 214px;
  border-radius: 18px;
  padding: 8px;
  z-index: 14;
}
#minimap canvas {
  display: block;
  width: 198px;
  height: 178px;
  cursor: crosshair;
}
#minimap .mm-title {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  padding: 2px 4px 6px;
}
#hint {
  position: absolute;
  top: 92px;
  inset-inline-start: 14px;
  z-index: 13;
  font-size: 11.5px;
  color: #cfc6b8;
  padding: 9px 12px;
  border-radius: 12px;
  max-width: 290px;
  line-height: 1.8;
  transition: opacity 0.5s;
}
#hint b {
  color: var(--gold);
  font-weight: 700;
}
#hint .x {
  position: absolute;
  inset-inline-end: 6px;
  top: 4px;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- section labels / tooltip ---------- */
#labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  overflow: hidden;
}
.sec-label {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, -50%);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.3px;
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(10, 10, 14, 0.6);
  border: 1px solid rgba(232, 195, 106, 0.35);
  color: #f7e7c0;
  white-space: nowrap;
  will-change: transform, opacity;
  backdrop-filter: blur(6px);
}
.sec-label small {
  font-weight: 500;
  color: #cfc6b8;
  margin-inline-start: 4px;
}
#tooltip {
  position: absolute;
  z-index: 30;
  pointer-events: none;
  min-width: 190px;
  border-radius: 14px;
  padding: 11px 13px;
  background: var(--glass-strong);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.15s,
    transform 0.15s;
  font-size: 12.5px;
}
#tooltip.show {
  opacity: 1;
  transform: none;
}
#tooltip .tt-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
#tooltip .tt-top i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}
#tooltip .tt-top b {
  font-size: 13px;
}
#tooltip .tt-grid {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 4px 14px;
  margin: 6px 0;
}
#tooltip .tt-grid small {
  display: block;
  color: var(--muted);
  font-size: 10.5px;
}
#tooltip .tt-grid b {
  font-size: 15px;
}
#tooltip .tt-price {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 7px;
  margin-top: 4px;
}
#tooltip .tt-price b {
  color: var(--gold);
  font-size: 14px;
}
#tooltip .tt-hint {
  font-size: 10.5px;
  color: var(--muted);
}
#tooltip .sold {
  color: var(--danger);
  font-weight: 800;
}

/* ---------- toasts / misc ---------- */
#toasts {
  position: absolute;
  top: 92px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
}
.toast {
  padding: 11px 18px;
  border-radius: 14px;
  background: var(--glass-strong);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow);
  animation: tin 0.35s ease;
}
.toast.err {
  border-color: rgba(255, 93, 115, 0.5);
}
.toast.ok {
  border-color: rgba(43, 255, 176, 0.45);
}
@keyframes tin {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
}
#btnExitSeat {
  position: absolute;
  top: 92px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 21;
  height: 42px;
  padding: 0 18px;
  border-radius: 99px;
  font-weight: 800;
  font-size: 13px;
  background: var(--glass-strong);
  border: 1px solid rgba(232, 195, 106, 0.5);
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 8px;
}
#btnExitSeat[hidden] {
  display: none;
}
#seatChip {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 22;
  height: 36px;
  padding: 0 14px;
  border-radius: 99px;
  background: var(--glass-strong);
  border: 1px solid rgba(43, 255, 176, 0.55);
  color: var(--mint);
  font-weight: 800;
  font-size: 12.5px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow);
  white-space: nowrap;
  animation: tin 0.25s ease;
}
#seatChip[hidden] {
  display: none;
}
#seatChip:hover {
  background: rgba(43, 255, 176, 0.14);
}
.vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  background: radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(0, 0, 0, 0.55));
}

/* ---------- loader ---------- */
#loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: radial-gradient(80% 80% at 50% 40%, #1a1220, #06060a);
  transition: opacity 0.9s ease;
}
#loader.hide {
  opacity: 0;
  pointer-events: none;
}
.ld {
  text-align: center;
}
.ld svg {
  filter: drop-shadow(0 0 22px rgba(232, 195, 106, 0.45));
}
.ld h1 {
  margin: 18px 0 6px;
  font-size: 26px;
  font-weight: 900;
}
.ld p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.bar {
  width: 240px;
  height: 4px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.08);
  margin: 22px auto 10px;
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold-2), var(--gold), #fff3cf);
  transition: width 0.3s;
}
.ld .st {
  font-size: 12px;
  color: #cfc6b8;
  min-height: 18px;
}
.ld .err {
  color: #ff9a9a;
  max-width: 420px;
  line-height: 1.8;
}

/* ---------- modal ---------- */
#modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: rgba(3, 3, 6, 0.62);
  backdrop-filter: blur(6px);
  padding: 16px;
}
#modal[hidden] {
  display: none;
}
.mbox {
  width: min(560px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  border-radius: 24px;
  background: #101117;
  border: 1px solid var(--line);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
  animation: mup 0.4s cubic-bezier(0.2, 1, 0.3, 1);
}
@keyframes mup {
  from {
    transform: translateY(24px) scale(0.97);
    opacity: 0;
  }
}
.mhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.mhead h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 900;
}
.mhead button {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 20px;
  color: var(--muted);
}
.mhead button:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}
.mbody {
  padding: 18px 20px;
}
.steps {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}
.steps i {
  flex: 1;
  height: 4px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.08);
}
.steps i.on {
  background: var(--gold);
}
.sum {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  padding: 12px 14px;
  margin-bottom: 14px;
}
.sum .row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 5px 0;
}
.sum .row span {
  color: var(--muted);
}
.sum .row.big {
  border-top: 1px solid var(--line);
  margin-top: 6px;
  padding-top: 10px;
}
.sum .row.big b {
  font-size: 19px;
  color: var(--gold);
}
.field {
  display: block;
  margin-bottom: 12px;
}
.field span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}
.field input {
  width: 100%;
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  padding: 0 14px;
  outline: none;
  transition: 0.2s;
}
.field input:focus {
  border-color: var(--gold);
  background: rgba(232, 195, 106, 0.05);
}
.field input.bad {
  border-color: var(--danger);
}
.pay-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 4px 0 14px;
}
.pm {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.03);
}
.pm.on {
  border-color: var(--gold);
  background: rgba(232, 195, 106, 0.08);
}
.pm small {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 11px;
}
.demo-note {
  font-size: 11.5px;
  color: var(--muted);
  text-align: center;
  margin-top: 10px;
  line-height: 1.8;
}
.proc {
  text-align: center;
  padding: 30px 0;
}
.spinner {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.08);
  border-top-color: var(--gold);
  animation: spin 1s linear infinite;
  margin: 0 auto 18px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.okmark {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  background: rgba(43, 255, 176, 0.12);
  color: var(--mint);
}
.okmark svg {
  width: 36px;
  height: 36px;
}
.tickets {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}
.ticket {
  display: flex;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #1d1a12, #13121a);
  border: 1px solid rgba(232, 195, 106, 0.3);
  position: relative;
}
.ticket .tl {
  flex: 1;
  padding: 14px 16px;
  min-width: 0;
}
.ticket .tl small {
  color: var(--gold);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
}
.ticket .tl h4 {
  margin: 4px 0 2px;
  font-size: 15px;
}
.ticket .tl p {
  margin: 0;
  color: var(--muted);
  font-size: 11.5px;
}
.ticket .tgrid {
  display: flex;
  gap: 16px;
  margin-top: 10px;
}
.ticket .tgrid small {
  display: block;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0;
}
.ticket .tgrid b {
  font-size: 16px;
}
.ticket .tr {
  width: 118px;
  border-inline-start: 2px dashed rgba(232, 195, 106, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.02);
}
.ticket .tr canvas {
  width: 84px;
  height: 84px;
  border-radius: 6px;
  background: #fff;
}
.ticket .tr code {
  font-size: 10px;
  color: var(--muted);
}
.mfoot {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.mfoot .ghost {
  flex: 1;
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--line);
  font-weight: 800;
}
.mfoot .ghost:hover {
  background: rgba(255, 255, 255, 0.06);
}
.mfoot .cta {
  flex: 2;
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .brand small {
    display: none;
  }
  #hint {
    display: none;
  }
  #minimap {
    display: none;
  }
  #dock {
    left: calc(50% - 187px);
    max-width: calc(100vw - 404px);
  }
  html[dir='rtl'] #dock {
    right: calc(50% - 187px);
  }
}
@media (max-width: 860px) {
  .topbar {
    height: auto;
    flex-wrap: wrap;
    padding: 10px;
    gap: 8px;
    top: 10px;
    inset-inline: 10px;
  }
  .event-picker {
    order: 3;
    flex-basis: 100%;
    justify-content: flex-start;
  }
  .select-wrap select {
    max-width: 52vw;
    height: 36px;
    font-size: 13px;
  }
  .chip {
    height: 36px;
    padding: 0 10px;
  }
  .brand {
    flex: 1;
  }
  #panel {
    top: auto;
    bottom: 0;
    inset-inline: 0;
    width: auto;
    border-radius: 22px 22px 0 0;
    max-height: 48vh;
    transition: max-height 0.35s ease;
  }
  #panel.collapsed {
    max-height: 150px;
  }
  .panel-handle {
    display: flex;
    justify-content: center;
    padding: 8px 0 0;
    cursor: pointer;
  }
  .panel-handle i {
    width: 44px;
    height: 5px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.25);
  }
  .event-card {
    display: none;
  }
  #minimap {
    display: none;
  }
  #dock {
    bottom: auto;
    top: 128px;
    left: 50%;
    max-width: calc(100vw - 20px);
  }
  html[dir='rtl'] #dock {
    right: 50%;
  }
  .dock-btn span.lbl {
    display: none;
  }
  #btnExitSeat {
    top: 186px;
  }
  #toasts {
    top: 186px;
  }
}
@media print {
  body * {
    visibility: hidden;
  }
  #modal,
  #modal * {
    visibility: visible;
  }
  #modal {
    position: absolute;
    inset: 0;
    background: #fff;
    backdrop-filter: none;
  }
  .mhead,
  .mfoot,
  .okmark,
  .demo-note {
    display: none;
  }
}
