@font-face {
  font-family: 'Mona Sans Expanded';
  src: url('fonts/MonaSans_Expanded-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Mona Sans';
  src: url('fonts/MonaSans-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-dark: #080808;
  --dock-shadow: 0 -12px 48px rgba(0, 0, 0, 0.8);
  --bg-surface: #121212;
  --bg-surface-2: #181818;
  --bg-surface-3: #242424;
  --text-main: #f5f5f5;
  --text-muted: #9e9e9e;
  --accent-fire: #ff551a;
  --accent-gold: #f7c957;
  --accent-gold-bright: #ffe699;
  --gray-fill: #262930;
  --font-title: 'Mona Sans Expanded', sans-serif;
  --font-body: 'Mona Sans', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-radius: 0;
  border: none;
}

/* Hide all scrollbars cleanly */
html,
body,
.svg-viewport {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
.svg-viewport::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

html,
body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: clip;
}

h1, h2, h3, h4,
.detail-title,
.detail-price,
.tier-price-text,
.legend-title,
.legend-group-label,
.btc-zone-item,
.btc-price-label,
.tech-label {
  font-family: var(--font-title);
}

/* Container Fluid with 80px left/right padding (>1200px), 24px for <=1200px */
.container {
  width: 100%;
  max-width: none;
  padding-left: 80px;
  padding-right: 80px;
  margin: 0 auto;
}

@media (max-width: 1200px) {
  .container {
    padding-left: 24px;
    padding-right: 24px;
  }
}

.main-content {
  padding-top: 24px;
  padding-bottom: 48px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* ================= Toggle Switch (No background, dot = full track height) ================= */
.toolbar-toggles {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.toggle-switch {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  background: transparent;
  padding: 0;
  user-select: none;
}

.toggle-switch input {
  display: none;
}

.toggle-switch .slider {
  width: 36px;
  height: 18px;
  background: #2b2b2b;
  border-radius: 999px !important;
  position: relative;
  transition: background 0.2s ease;
}

.toggle-switch .slider::after {
  content: '';
  width: 18px;
  height: 18px;
  background: #ffffff;
  border-radius: 50% !important;
  position: absolute;
  top: 0;
  left: 0;
  transition: transform 0.2s ease;
}

.toggle-switch input:checked + .slider {
  background: var(--accent-fire);
}

.toggle-switch input:checked + .slider::after {
  transform: translateX(18px);
}

.toggle-label {
  font-size: 0.84rem;
  color: var(--text-main);
}

/* ================= WORKSPACE GRID ================= */
.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 32px;
  align-items: start;
  padding-bottom: 12px;
}

@media (max-width: 1200px) {
  .workspace-grid {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 20px;
  }
}

@media (max-width: 1023px) {
  .workspace-grid {
    grid-template-columns: 1fr;
  }
}

/* ================= SEATMAP CARD & SVG (No gray background) ================= */
.map-card {
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.map-toolbar {
  padding: 4px 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.zoom-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
}

.zoom-btn {
  background: var(--bg-surface-2);
  color: var(--text-main);
  width: 30px;
  height: 30px;
  border-radius: 999px !important;
  font-family: var(--font-title);
  cursor: pointer;
  transition: background 0.15s;
}

.zoom-btn.zoom-reset {
  width: auto;
  padding: 0 14px;
  border-radius: 999px !important;
  font-family: var(--font-body);
  font-size: 0.78rem;
}

.zoom-btn:hover {
  background: var(--bg-surface-3);
}

.zoom-level {
  font-size: 0.78rem;
  min-width: 44px;
  text-align: center;
}

.svg-viewport {
  position: relative;
  width: 100%;
  overflow: auto;
  background: transparent;
  padding: 12px 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.svg-stage-wrap {
  position: relative;
  width: 100%;
  max-width: 740px;
  margin: 0 auto;
  transition: transform 0.2s ease;
  transform-origin: top center;
}

#seatmapSvg {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
}

.stage-top-title {
  position: absolute;
  top: 6px;
  left: 49.3%;
  transform: translateX(-50%);
  width: 100%;
  text-align: center;
  font-family: var(--font-title);
  font-size: 1.45rem;
  line-height: 1.1;
  color: rgba(255, 255, 255, 0.1);
  letter-spacing: 1px;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.2s ease;
}

body.show-btc-image .stage-top-title {
  opacity: 0;
}

.stage-runway-text {
  font-family: var(--font-title);
  font-size: 4.6px;
  fill: #20242b;
}

/* Official BTC Cropped Image Overlay — Hidden by default, shown only when Toggle is ON */
.btc-image-overlay {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

body.show-btc-image .btc-image-overlay {
  opacity: 1;
}

/* Interactive Solid-Color SVG Zone Styling */
.seat-zone {
  cursor: pointer;
  outline: none;
}

.seat-zone .zone-shape,
.seat-zone .zone-pointer {
  stroke: none;
  transition: fill 0.18s ease, filter 0.18s ease, opacity 0.18s ease;
}

.seat-zone:hover .zone-shape,
.seat-zone:hover .zone-pointer {
  filter: brightness(1.18);
}

.seat-zone .zone-content {
  transition: transform 0.18s ease;
}

.seat-zone .zone-label {
  font-family: var(--font-title);
  fill: #ffffff;
  text-transform: uppercase;
  pointer-events: none;
  letter-spacing: 0.15px;
  transition: fill 0.18s ease, opacity 0.18s ease;
}

.seat-zone.dark-text .zone-label {
  fill: #12201d;
}

/* Price Pill Tag directly below centered zone text */
.zone-price-tag {
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.zone-price-tag rect {
  fill: var(--bg-dark);
  stroke: none;
}

.zone-price-tag text {
  font-family: var(--font-title);
  font-size: 6px;
  fill: #ffe484;
}

/* Show price tags & shift text+price stack up slightly so the combined block stays centered */
body.show-all-prices .seat-zone:not(.is-dimmed) .zone-price-tag,
.seat-zone.is-highlighted .zone-price-tag,
.seat-zone.is-selected .zone-price-tag,
.seat-zone:hover .zone-price-tag {
  opacity: 1;
}

body.show-all-prices .seat-zone:not(.is-dimmed) .zone-content,
.seat-zone.is-highlighted .zone-content,
.seat-zone.is-selected .zone-content,
.seat-zone:hover .zone-content {
  transform: translateY(-4.5px);
}

/* Easter Egg 0Đ LED Screen Zones: Hidden by default, revealed only when clicked or 0đ filtered */
.seat-zone.easter-egg-zone {
  opacity: 0;
  pointer-events: all;
  transition: opacity 0.22s ease;
}

.seat-zone.easter-egg-zone.is-revealed {
  opacity: 1;
}

/* ====== SOLID GRAY FILL STATE FOR NON-MATCHING ZONES ====== */
.seat-zone.is-dimmed .zone-shape,
.seat-zone.is-dimmed .zone-pointer {
  fill: #262930 !important;
  filter: none !important;
}

.seat-zone.is-dimmed .zone-label {
  fill: #727885 !important;
  opacity: 0.72;
}

.seat-zone.is-dimmed:hover .zone-shape,
.seat-zone.is-dimmed:hover .zone-pointer {
  fill: #343842 !important;
}

/* ====== SELECTED ZONE STATE ====== */
.seat-zone.is-selected .zone-shape,
.seat-zone.is-selected .zone-pointer {
  filter: brightness(1.25);
}

/* ================= RIGHT SIDEBAR (Sticky on scroll, stops before bottom border) ================= */
.inspector-panel {
  position: sticky;
  top: 24px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.filter-dock {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (max-width: 1023px) {
  .inspector-panel {
    position: static;
  }
}

.inspector-card,
.tier-summary-card {
  background: transparent;
  padding: 0;
}

.inspector-empty {
  height: 82px;
  padding: 0 18px;
  background: var(--bg-surface);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.inspector-empty[hidden],
.inspector-detail[hidden] {
  display: none !important;
}

.inspector-empty h2 {
  font-size: 1.05rem;
  line-height: 1.2;
}

.inspector-empty p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.detail-header {
  height: 82px;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 4px;
}

.detail-title-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.detail-type {
  font-family: var(--font-body);
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.88);
  background: transparent;
  padding: 0;
  flex-shrink: 0;
}

.detail-type[hidden] {
  display: none !important;
}

.detail-title {
  font-size: 1.35rem;
  line-height: 1.2;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
}

.detail-price {
  font-size: 1.2rem;
  line-height: 1.2;
  color: var(--accent-gold-bright);
  background: transparent;
  padding: 0;
}

.detail-header.dark-text .detail-type,
.detail-header.dark-text .detail-title,
.detail-header.dark-text .detail-price {
  color: #12201d;
}

.detail-body {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.detail-body[hidden],
.info-row[hidden] {
  display: none !important;
}

.info-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.info-label {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.sibling-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.zone-chip-btn {
  background: transparent;
  color: #ffffff;
  padding: 0;
  font-family: var(--font-title);
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.chip-swatch {
  display: inline-block;
  width: 9px;
  height: 9px;
  flex-shrink: 0;
}

/* Lọc theo giá Card (Price Left, Colored Dots Right) */
.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 22px;
  margin-bottom: 10px;
}

.card-title-row h3 {
  font-size: 0.96rem;
  line-height: 1;
}

.btn-reset-inline {
  background: transparent;
  color: #ff9c85;
  padding: 0;
  line-height: 1;
  font-family: var(--font-body);
  font-size: 0.8rem;
  cursor: pointer;
  transition: color 0.16s ease, opacity 0.16s ease;
}

.btn-reset-inline[hidden] {
  display: inline-block !important;
  opacity: 0;
  pointer-events: none;
}

.btn-reset-inline:hover {
  background: transparent;
  color: #ff4d30;
}

.tier-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.tier-row-btn {
  width: 100%;
  background: var(--bg-surface);
  padding: 10px 14px;
  border-radius: 999px !important;
  color: var(--text-main);
  font-family: var(--font-body);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  cursor: pointer;
  transition: background 0.16s ease;
}

.tier-row-btn:hover {
  background: var(--bg-surface-2);
}

.tier-row-btn.active {
  background: #2b160e;
}

.tier-price-text {
  font-size: 0.82rem;
  color: var(--accent-gold-bright);
  text-align: left;
  white-space: nowrap;
}

.tier-dots {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

/* Segmented Type Filter at top of sidebar with sliding pill indicator */
.type-Segmented {
  position: relative;
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--bg-surface);
  padding: 3px;
  gap: 0;
  border-radius: 999px !important;
}

.type-Segmented::before {
  content: '';
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc((100% - 6px) / 3);
  background: var(--bg-surface-3);
  border-radius: 999px !important;
  transform: translateX(calc(var(--active-tab-index, 0) * 100%));
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  z-index: 0;
}

.type-btn {
  position: relative;
  z-index: 1;
  background: transparent;
  color: var(--text-muted);
  padding: 8px 6px;
  border-radius: 999px !important;
  font-family: var(--font-body);
  font-size: 0.82rem;
  cursor: pointer;
  transition: color 0.2s ease;
  text-align: center;
}

.type-btn:hover {
  color: var(--text-main);
}

.type-btn.active {
  background: transparent;
  color: var(--accent-gold-bright);
}

/* ================= BOTTOM LEGEND CARDS (6 Cols, No gray bg, 1px top border) ================= */
.legend-section {
  background: transparent;
  padding: 28px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.legend-title {
  font-size: 1.12rem;
  letter-spacing: 0.4px;
  color: var(--accent-gold-bright);
}

.legend-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legend-group-label {
  font-size: 0.88rem;
  letter-spacing: 0.6px;
  color: #ffffff;
}

.legend-cards-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

/* ANH TÀI HÀO HOA (ĐẶC BIỆT) = width 2 col on row 2 */
.btc-card.span-2-col {
  grid-column: span 2;
}

.btc-card {
  padding: 13px 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  cursor: default;
}

.btc-zones-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.btc-zone-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 0.78rem;
  letter-spacing: 0.2px;
  padding-bottom: 3px;
}

.btc-zone-subline {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.5px;
  opacity: 0.85;
  margin-top: -2px;
}

.btc-card-footer {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  padding-top: 4px;
}

.btc-price-label {
  font-size: 1.3rem;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.btc-price-label small {
  font-size: 0.72rem;
  margin-left: 4px;
}

.btc-card.dark-text {
  color: #13211e;
}

/* ================= DISCLAIMER FOOTER (1px top border) ================= */
.disclaimer-section {
  background: transparent;
  padding: 20px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.disclaimer-text strong {
  color: var(--text-main);
}

.disclaimer-links {
  line-height: 1.5;
}

.disclaimer-links a {
  color: var(--accent-gold-bright);
  text-decoration: none;
  transition: opacity 0.16s ease;
}

.disclaimer-links a:hover {
  text-decoration: underline;
  opacity: 0.9;
}

@media (max-width: 1023px) {
  .legend-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .main-content {
    padding-top: 10px;
    padding-bottom: 260px;
    gap: 16px;
  }

  .workspace-grid {
    gap: 0;
    padding-bottom: 0;
  }

  .map-card {
    gap: 16px;
  }

  .stage-top-title {
    font-size: 1rem;
    top: 4px;
  }

  .map-toolbar {
    padding: 0;
    gap: 6px;
    flex-wrap: nowrap;
  }

  .toolbar-toggles {
    gap: 10px;
    flex-wrap: nowrap;
  }

  .toggle-switch {
    gap: 6px;
  }

  .toggle-switch .slider {
    width: 28px;
    height: 14px;
  }

  .toggle-switch .slider::after {
    width: 14px;
    height: 14px;
  }

  .toggle-switch input:checked + .slider::after {
    transform: translateX(14px);
  }

  .toggle-label {
    font-size: 0.74rem;
    white-space: nowrap;
  }

  .zoom-controls {
    gap: 4px;
  }

  .zoom-btn {
    width: 26px;
    height: 26px;
    font-size: 0.75rem;
  }

  .zoom-btn.zoom-reset {
    padding: 0 10px;
    font-size: 0.72rem;
  }

  .zoom-level {
    font-size: 0.72rem;
    min-width: 36px;
  }

  /* Fixed Bottom Dock for 360px -> 768px: Inspector Card full-width ON TOP of Filter Dock */
  .inspector-panel {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--bg-dark);
    box-shadow: var(--dock-shadow);
    padding: 0;
    gap: 0;
    display: flex;
    flex-direction: column-reverse;
  }

  .inspector-card {
    width: 100%;
    background: var(--bg-dark);
  }

  .filter-dock {
    width: 100%;
    background: var(--bg-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 10px 14px 12px;
    gap: 8px;
  }

  .type-Segmented {
    padding: 2px;
  }

  .type-Segmented::before {
    top: 2px;
    bottom: 2px;
    left: 2px;
    width: calc((100% - 4px) / 3);
  }

  .type-btn {
    padding: 5px 4px;
    font-size: 0.74rem;
  }

  .card-title-row {
    height: 18px;
    margin-bottom: 5px;
  }

  .card-title-row h3 {
    font-size: 0.82rem;
  }

  .btn-reset-inline {
    font-size: 0.74rem;
  }

  .tier-list {
    gap: 5px;
  }

  .tier-row-btn {
    padding: 11px 14px;
    gap: 4px;
  }

  .tier-price-text {
    font-size: 0.72rem;
  }

  .chip-swatch {
    width: 6px;
    height: 6px;
  }

  .tier-dots {
    gap: 2px;
  }

  .inspector-empty {
    display: none !important;
  }

  .detail-header {
    height: 56px;
    padding: 0 14px;
    gap: 2px;
  }

  .detail-type {
    font-size: 0.74rem;
    line-height: 1.15;
  }

  .detail-title {
    font-size: 0.98rem;
    line-height: 1.15;
  }

  .detail-price {
    font-size: 0.92rem;
    line-height: 1.15;
    margin-top: 0;
  }

  /* Hide Khu đối xứng on mobile */
  .detail-body {
    display: none !important;
  }

  .info-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .info-label {
    font-size: 0.72rem;
    white-space: nowrap;
  }

  .sibling-chips {
    gap: 10px;
  }

  .zone-chip-btn {
    font-size: 0.7rem;
    gap: 5px;
  }

  .legend-section {
    padding-top: 20px;
    gap: 16px;
  }

  .legend-title {
    font-size: 0.96rem;
  }

  .legend-group-label {
    font-size: 0.78rem;
  }

  .legend-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .btc-card {
    padding: 10px 11px;
    gap: 8px;
  }

  .btc-zones-list {
    gap: 4px;
  }

  .btc-zone-item {
    font-size: 0.66rem;
    letter-spacing: 0;
    padding-bottom: 1px;
    gap: 4px;
    white-space: nowrap;
  }

  .btc-zone-subline {
    font-size: 0.6rem;
  }

  .btc-card-footer {
    padding-top: 2px;
  }

  .btc-price-label {
    font-size: 1.04rem;
  }

  .btc-price-label small {
    font-size: 0.6rem;
    margin-left: 3px;
  }

  .disclaimer-section {
    font-size: 0.76rem;
  }
}

@media (max-width: 420px) {
  .legend-section {
    padding-top: 16px;
    gap: 14px;
  }

  .legend-group {
    gap: 7px;
  }

  .legend-cards-grid {
    gap: 6px;
  }

  .btc-card {
    padding: 8px 9px;
    gap: 6px;
  }

  .btc-zones-list {
    gap: 3px;
  }

  .btc-zone-item {
    font-size: 0.57rem;
    letter-spacing: 0;
    padding-bottom: 0;
    gap: 3px;
    white-space: nowrap;
  }

  .btc-zone-subline {
    font-size: 0.54rem;
    letter-spacing: 0.2px;
  }

  .btc-card-footer {
    padding-top: 1px;
  }

  .btc-price-label {
    font-size: 0.92rem;
    letter-spacing: 0;
  }

  .btc-price-label small {
    font-size: 0.54rem;
    margin-left: 2px;
  }
}
