/* ======================================================================
   BEING ASSETS LIBRARY - MASTER STYLESHEET
   Design language based on Library Seat Booking DEMO
   Colors: Navy / Orange / Green / Amber / Slate
   Typography: Archivo (Headings), IBM Plex Mono (Codes), Source Sans 3 (Body)
   ====================================================================== */

:root {
  --ground: #F4F6FA;
  --surface: #FFFFFF;
  --surface-2: #EDF1F7;
  --surface-card: #FFFFFF;
  --ink: #141F35;
  --ink-2: #4A586F;
  --ink-3: #7C8AA1;
  --line: #DEE4EE;
  
  --accent: #D9520B;
  --accent-2: #FF7C2B;
  --accent-ink: #FFFFFF;
  
  --hall-1: #12244A;
  --hall-2: #0A1631;
  --hall-ink: #DCE5F5;
  --hall-dim: #8497BC;
  
  --free: #12925C;
  --free-bg: #DDF3E8;
  --free-ink: #0A5738;
  
  --part: #B57400;
  --part-bg: #FFE6A6;
  --part-ink: #6B4400;
  
  --gone: #8A94A6;
  --gone-bg: #E3E7EF;
  --gone-ink: #5A6577;
  
  --danger: #D93025;
  --danger-bg: #FCE8E6;
  --info: #1A73E8;
  --info-bg: #E8F0FE;

  --shadow: 0 1px 3px rgba(20,31,53,.06), 0 8px 24px -12px rgba(20,31,53,.18);
  --shadow-lg: 0 12px 36px -8px rgba(20,31,53,.22);
  --r: 12px;
}

[data-theme="dark"] {
  --ground: #0A1220;
  --surface: #111C2E;
  --surface-2: #16233A;
  --surface-card: #142035;
  --ink: #E7EDF8;
  --ink-2: #A8B6CC;
  --ink-3: #7C8CA6;
  --line: #26344B;
  
  --accent: #FF7C2B;
  --accent-2: #FF9A55;
  --accent-ink: #20120A;
  
  --hall-1: #0E1C39;
  --hall-2: #070F22;
  --hall-ink: #DCE5F5;
  --hall-dim: #7B8EB4;
  
  --free: #38C08A;
  --free-bg: #123A2B;
  --free-ink: #8FE9C4;
  
  --part: #E8AE2E;
  --part-bg: #453313;
  --part-ink: #FFD98A;
  
  --gone: #6B7791;
  --gone-bg: #1B2739;
  --gone-ink: #8494AC;
  
  --shadow: 0 2px 8px rgba(0,0,0,.4), 0 12px 30px -10px rgba(0,0,0,.7);
  --shadow-lg: 0 16px 40px -10px rgba(0,0,0,.85);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  font-size: 15.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, .ui {
  font-family: "Archivo", "Segoe UI", system-ui, sans-serif;
  text-wrap: balance;
  color: var(--ink);
}

.mono {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
}

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 18px;
}

.wrap-wide {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 18px;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color .15s;
}
a:hover {
  color: var(--accent-2);
}

button {
  font: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ======================================================================
   NAVBAR & MASTHEAD
   ====================================================================== */
.top-nav {
  background: var(--hall-2);
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-size: 13.5px;
  color: var(--hall-dim);
}
.top-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 18px;
  flex-wrap: wrap;
  gap: 10px;
}
.top-nav a {
  color: var(--hall-dim);
}
.top-nav a:hover {
  color: #fff;
}

.mast {
  background: var(--hall-2);
  color: var(--hall-ink);
  border-bottom: 3px solid var(--accent);
}
.mast .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  flex-wrap: wrap;
}
.mark {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, var(--accent-2), var(--accent));
  color: #fff;
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -.5px;
  box-shadow: 0 4px 14px rgba(217,82,11,.35);
}
.mast h1 {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -.2px;
  color: #FFFFFF;
}
.mast p {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--hall-dim);
}
.mast .sp { flex: 1; }

.mast-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}
.nav-links a {
  color: var(--hall-ink);
  font-family: "Archivo", sans-serif;
  font-weight: 600;
  font-size: 13.5px;
  padding: 6px 10px;
  border-radius: 6px;
  transition: all .15s;
}
.nav-links a:hover, .nav-links a.active {
  color: #fff;
  background: rgba(255,255,255,.08);
}

.mobile-actions {
  display: none;
  align-items: center;
  gap: 10px;
}

/* Mobile Hamburger Toggle */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  padding: 8px 7px;
  cursor: pointer;
  transition: all .2s ease;
  flex-shrink: 0;
}
.menu-toggle:hover {
  background: rgba(255,255,255,.16);
}
.menu-toggle .bar {
  width: 100%;
  height: 2.5px;
  background: #fff;
  border-radius: 2px;
  transition: all .25s ease;
  transform-origin: 1px;
}
.menu-toggle.open .bar:nth-child(1) {
  transform: rotate(45deg) translate(1px, -1px);
}
.menu-toggle.open .bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.menu-toggle.open .bar:nth-child(3) {
  transform: rotate(-45deg) translate(1px, 1px);
}

/* Mobile Off-Canvas Drawer Navigation */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 14, 26, 0.72);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 99998;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(340px, 86vw);
  background: var(--surface);
  color: var(--ink);
  z-index: 99999;
  transform: translateX(105%);
  transition: transform .32s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -8px 0 32px rgba(0,0,0,.35);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-drawer.open {
  transform: translateX(0);
}
.drawer-header {
  padding: 18px 20px;
  background: var(--hall-2);
  color: var(--hall-ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--accent);
}
.drawer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.drawer-close {
  background: rgba(255,255,255,.1);
  border: none;
  color: #fff;
  font-size: 26px;
  line-height: 1;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .15s;
}
.drawer-close:hover {
  background: rgba(255,255,255,.22);
}
.drawer-links {
  padding: 20px 18px 30px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.drawer-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 9px;
  color: var(--ink);
  text-decoration: none;
  font-family: "Archivo", sans-serif;
  font-weight: 600;
  font-size: 14.5px;
  transition: background .15s, color .15s;
}
.drawer-links a i {
  width: 20px;
  text-align: center;
  color: var(--ink-3);
  font-size: 16px;
}
.drawer-links a:hover, .drawer-links a.active {
  background: var(--surface-2);
  color: var(--accent);
}
.drawer-links a:hover i, .drawer-links a.active i {
  color: var(--accent);
}
.drawer-links a.drawer-cta {
  background: var(--accent);
  color: #fff;
  margin-top: 4px;
  box-shadow: 0 4px 14px rgba(217,82,11,.3);
}
.drawer-links a.drawer-cta i {
  color: #fff;
}
.drawer-links a.drawer-cta:hover {
  background: var(--accent-2);
  color: #fff;
}

/* Responsive Grid Utilities */
.responsive-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 768px) {
  .responsive-grid-2 {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

.responsive-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 960px) {
  .responsive-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .responsive-grid-3 { grid-template-columns: 1fr; }
}

.touch-scroll-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding-bottom: 4px;
}

.scroll-hint {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent-2);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: .8px;
}
@media (max-width: 768px) {
  .scroll-hint { display: flex; }
}

.banner {
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--ink-2);
}
.banner .wrap {
  padding: 11px 18px;
}
.banner b { color: var(--ink); }

/* ======================================================================
   CARDS & STEPS
   ====================================================================== */
.step, .card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 22px;
  margin: 20px 0;
}
.step > h2, .card-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  color: var(--ink-3);
}
.step > h2 i {
  font-family: "IBM Plex Mono", monospace;
  font-style: normal;
  font-size: 12px;
  background: var(--accent);
  color: var(--accent-ink);
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  align-self: center;
}

/* ======================================================================
   PLANS
   ====================================================================== */
.plans {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 992px) {
  .plans { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .plans { grid-template-columns: 1fr; }
}
.plan {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 16px 12px;
  text-align: center;
  transition: all .15s;
  color: inherit;
}
.plan:hover {
  border-color: var(--accent-2);
  transform: translateY(-2px);
}
.plan .n {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .7px;
  color: var(--ink-2);
}
.plan .r {
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-size: 23px;
  color: var(--accent);
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
}
.plan .u {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 2px;
}
.plan[aria-pressed="true"] {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
  box-shadow: 0 0 0 2px var(--accent);
}
.plan[aria-pressed="true"] .n { color: var(--ink); }

/* ======================================================================
   FIELDS & CHIPS
   ====================================================================== */
.fields {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.field {
  flex: 1;
  min-width: 180px;
}
label {
  display: block;
  font-family: "Archivo", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
}
input, select, textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  transition: border-color .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 6px;
}
.chip {
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  border-radius: 8px;
  padding: 7px 11px;
  font-size: 12.5px;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 500;
  white-space: nowrap;
  transition: all .12s;
}
.chip:hover:not(:disabled) {
  border-color: var(--accent-2);
  color: var(--ink);
}
.chip[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}
.picked {
  font-size: 13.5px;
  color: var(--ink-2);
  margin: 12px 0 0;
}
.picked b { color: var(--ink); }

/* ======================================================================
   VIEWING PERIOD BANNER
   ====================================================================== */
.viewing {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: -6px 0 16px;
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--surface));
  border-left: 4px solid var(--accent);
  border-radius: 9px;
  padding: 11px 16px;
  font-size: 14px;
  color: var(--ink-2);
}
.viewing .v-lab {
  font-family: "Archivo", sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--ink-3);
}
.viewing .v-plan, .viewing .v-when {
  color: var(--accent);
  font-weight: 700;
}
.viewing .v-sep { color: var(--ink-3); }
.viewing .v-note {
  margin-left: auto;
  background: var(--hall-2);
  color: #E7EDF8;
  border-radius: 99px;
  padding: 3px 12px;
  font-family: "Archivo", sans-serif;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

/* ======================================================================
   HALL: REAL SEAT MAP
   ====================================================================== */
.hall {
  background: linear-gradient(178deg, var(--hall-1), var(--hall-2));
  border-radius: 14px;
  padding: 20px 14px 22px;
  overflow-x: auto;
  text-align: center;
}
.plan-wrap {
  display: inline-block;
  text-align: left;
  position: relative;
  border: 2.5px solid #43598B;
  border-radius: 10px;
  padding: 0 12px 12px;
}
.topband {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 36px;
  border-bottom: 1.5px dashed #4F6088;
  margin-bottom: 14px;
}
.topband .entrance {
  font-family: "Archivo", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #FFB07A;
  border: 1px solid #A9622E;
  border-radius: 99px;
  padding: 3px 10px;
  white-space: nowrap;
}
.topband .tb-line {
  flex: 1;
  border-top: 1.5px dashed #4F6088;
}
.topband .tb-cap {
  font-family: "Archivo", sans-serif;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--hall-dim);
}
.botwall {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}
.botwall::before, .botwall::after {
  content: "";
  flex: 1;
  border-top: 3px solid #43598B;
}
.botwall span {
  font-family: "Archivo", sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #B7C6E2;
}

.plan-cols {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 6px;
  flex-shrink: 0;
}
.colcap {
  font-family: "Archivo", sans-serif;
  font-size: 9.5px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--hall-dim);
  text-align: center;
  margin-bottom: 4px;
  height: 14px;
  white-space: nowrap;
}
.cshort { display: none; }
.slot { height: 34px; }

.seat {
  width: 44px;
  height: 34px;
  border-radius: 7px;
  border: 1.5px solid;
  flex-shrink: 0;
  padding: 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  display: grid;
  place-items: center;
  position: relative;
  transition: transform .1s, background .12s, box-shadow .12s;
  cursor: pointer;
}
.seat.free {
  background: var(--free-bg);
  border-color: var(--free);
  color: var(--free-ink);
}
.seat.free:hover {
  background: var(--free);
  color: #fff;
  transform: translateY(-2px);
}
.seat.part {
  background: var(--part-bg);
  border-color: var(--part);
  color: var(--part-ink);
}
.seat.part:hover {
  transform: translateY(-2px);
}
.seat.gone {
  background: var(--gone-bg);
  border-color: var(--gone);
  color: var(--gone-ink);
  opacity: .65;
}
.seat.gone::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 5px;
  background: repeating-linear-gradient(45deg, transparent 0 4px, rgba(0,0,0,.14) 4px 8px);
}
.seat.on {
  box-shadow: 0 0 0 3px var(--accent-2);
  z-index: 2;
  transform: scale(1.08);
}

.vdiv {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  flex-shrink: 0;
  position: relative;
}
.vdiv span {
  writing-mode: vertical-rl;
  font-family: "Archivo", sans-serif;
  font-size: 9px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--hall-dim);
  white-space: nowrap;
  background: var(--hall-1);
  padding: 6px 2px;
  border-radius: 3px;
}
.vdiv.wall { width: 18px; }
.vdiv.wall::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  border-left: 3px solid #43598B;
}
.vdiv.wall span { color: #B7C6E2; font-weight: 600; }
.vdiv.pathway { width: 28px; }
.vdiv.pathway::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  border-left: 1.5px dashed #4F6088;
}
.vdiv.pathway.wide { width: 78px; }
.vdiv.partition { width: 28px; }
.vdiv.partition::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  border-left: 2px dotted #C08246;
}
.vdiv.partition span { color: #D9A26A; padding: 6px 2px; }

.hallnote {
  max-width: 580px;
  margin: 18px auto 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--hall-dim);
  text-align: center;
}
.legend {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--hall-dim);
}
.legend i {
  width: 13px;
  height: 13px;
  border-radius: 4px;
  display: inline-block;
  vertical-align: -2px;
  margin-right: 6px;
  border: 1.5px solid;
}
.lf i { background: var(--free-bg); border-color: var(--free); }
.lp i { background: var(--part-bg); border-color: var(--part); }
.lg i { background: var(--gone-bg); border-color: var(--gone); opacity: .65; }

/* ======================================================================
   SEAT INFO INSPECTION CARD
   ====================================================================== */
.seatinfo {
  max-width: 540px;
  margin: 18px auto 0;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 14px;
  color: #E8EEF9;
  text-align: left;
}
.seatinfo .si-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.seatinfo .si-head b {
  font-family: "Archivo", sans-serif;
  font-size: 18px;
  color: var(--accent-2);
}
.si-tag {
  font-family: "Archivo", sans-serif;
  font-size: 11px;
  font-weight: 700;
  border-radius: 99px;
  padding: 3px 11px;
}
.si-tag.free { background: var(--free-bg); color: var(--free-ink); }
.si-tag.part { background: var(--part-bg); color: var(--part-ink); }
.si-tag.gone { background: #3A4761; color: #D3DCEC; }
.seatinfo p {
  margin: 6px 0;
  line-height: 1.55;
  color: #CBD8EE;
}
.si-btn {
  margin-top: 12px;
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 9px;
  padding: 10px 18px;
  font-family: "Archivo", sans-serif;
  font-weight: 600;
  font-size: 14px;
  transition: background .15s;
}
.si-btn:hover { background: var(--accent-2); }
.si-btn.ghost {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,.32);
  color: #E8EEF9;
}
.si-btn.ghost:hover {
  background: rgba(255,255,255,.1);
}

/* ======================================================================
   COUNTS & PILLS
   ====================================================================== */
.counts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.pill {
  border-radius: 99px;
  padding: 5px 14px;
  font-size: 12.5px;
  font-weight: 600;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
}
.pill.f { background: var(--free-bg); border-color: var(--free); color: var(--free-ink); }
.pill.p { background: var(--part-bg); border-color: var(--part); color: var(--part-ink); }

/* ======================================================================
   STICKY SUMMARY BAR
   ====================================================================== */
.sumbar {
  position: sticky;
  bottom: 0;
  z-index: 20;
  background: var(--surface);
  border-top: 2.5px solid var(--accent);
  box-shadow: 0 -4px 20px -6px rgba(20,31,53,.28);
}
.sumbar .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  flex-wrap: wrap;
}
.sumbar .amt {
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -.4px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.sumbar .meta {
  font-size: 13px;
  color: var(--ink-3);
}

/* ======================================================================
   BUTTONS
   ====================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  border: 0;
  border-radius: 9px;
  padding: 11px 22px;
  font-family: "Archivo", sans-serif;
  font-weight: 600;
  font-size: 15px;
  transition: all .15s;
  cursor: pointer;
}
.btn:hover {
  background: var(--accent-2);
  color: #fff;
  transform: translateY(-1px);
}
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn.ghost:hover {
  background: var(--surface-2);
  border-color: var(--ink-3);
}
.btn.sm {
  padding: 7px 14px;
  font-size: 13px;
  border-radius: 8px;
}
.btn.wide {
  width: 100%;
  display: flex;
}
.btn.danger {
  background: var(--danger);
  color: #fff;
}
.btn.success {
  background: var(--free);
  color: #fff;
}

/* ======================================================================
   SHEET / MODAL DIALOG
   ====================================================================== */
.scrim {
  position: fixed;
  inset: 0;
  background: rgba(8,14,26,.65);
  backdrop-filter: blur(3px);
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 18px;
}
.sheet {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: sheetPop .2s ease-out;
}
@keyframes sheetPop {
  from { opacity: 0; transform: scale(.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.sheet .hd {
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
}
.sheet .hd h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}
.sheet .hd .x {
  margin-left: auto;
  background: none;
  border: 0;
  color: var(--ink-3);
  font-size: 24px;
  line-height: 1;
  padding: 2px 8px;
  border-radius: 6px;
}
.sheet .hd .x:hover {
  background: var(--surface-2);
  color: var(--ink);
}
.sheet .bd {
  padding: 20px 22px;
}
.kv {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}
.kv:last-of-type { border-bottom: 0; }
.kv .k { color: var(--ink-3); }
.kv .v { font-weight: 600; text-align: right; }
.total {
  border-top: 2px solid var(--line);
  margin-top: 10px;
  padding-top: 14px;
}
.total .v {
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: var(--accent);
}
.err {
  background: color-mix(in srgb, #D93025 12%, var(--surface));
  color: #B3261E;
  border-left: 3px solid #D93025;
  border-radius: 7px;
  padding: 10px 14px;
  font-size: 13.5px;
  margin-bottom: 14px;
}
.success-banner {
  background: var(--free-bg);
  color: var(--free-ink);
  border-left: 3px solid var(--free);
  border-radius: 7px;
  padding: 10px 14px;
  font-size: 13.5px;
  margin-bottom: 14px;
}

/* ======================================================================
   TICKET / BOOKING SLIP
   ====================================================================== */
.tk-top {
  background: var(--hall-2);
  color: var(--hall-ink);
  text-align: center;
  padding: 24px 20px 20px;
}
.tk-top .lbl {
  font-family: "Archivo", sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 2.2px;
  color: var(--hall-dim);
  text-transform: uppercase;
}
.tk-top .no {
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-size: 48px;
  color: var(--accent-2);
  line-height: 1.05;
  margin-top: 6px;
}
.perf {
  height: 16px;
  background: radial-gradient(circle at 8px 8px, var(--ground) 8px, transparent 9px) 0 0/16px 16px;
}

/* ======================================================================
   HOUR MATRIX CHART
   ====================================================================== */
.chartwrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
table.chart-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
}
table.chart-table th, table.chart-table td {
  padding: 7px 5px;
  text-align: center;
  border: 1px solid var(--line);
  white-space: nowrap;
}
table.chart-table th {
  background: var(--hall-2);
  color: var(--hall-ink);
  font-family: "Archivo", sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .4px;
}
table.chart-table td.s, table.chart-table th.s {
  background: var(--hall-2);
  color: var(--hall-ink);
  font-family: "IBM Plex Mono", monospace;
  font-weight: 600;
  position: sticky;
  left: 0;
  z-index: 2;
}
table.chart-table td.y {
  background: var(--free-bg);
  color: var(--free-ink);
  font-weight: 700;
}
table.chart-table td.n {
  background: var(--gone-bg);
  color: var(--gone-ink);
}
.toggle {
  display: flex;
  gap: 10px;
  margin: 0 0 16px;
  align-items: center;
}

/* ======================================================================
   ADMIN LAYOUT & DASHBOARD
   ====================================================================== */
.admin-shell {
  display: flex;
  min-height: 100vh;
}
.admin-sidebar {
  width: 260px;
  background: var(--hall-2);
  color: var(--hall-ink);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255,255,255,.08);
}
.admin-brand {
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.admin-menu {
  padding: 18px 12px;
  flex: 1;
  overflow-y: auto;
}
.admin-menu-section {
  font-family: "Archivo", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--hall-dim);
  padding: 14px 12px 6px;
}
.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  border-radius: 8px;
  color: var(--hall-ink);
  font-family: "Archivo", sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  transition: all .12s;
  margin-bottom: 2px;
}
.admin-nav-item i {
  width: 18px;
  text-align: center;
  color: var(--hall-dim);
}
.admin-nav-item:hover {
  background: rgba(255,255,255,.07);
  color: #fff;
}
.admin-nav-item:hover i { color: var(--accent-2); }
.admin-nav-item.active {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}
.admin-nav-item.active i { color: #fff; }

.admin-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--ground);
  min-width: 0;
}
.admin-header {
  height: 64px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  box-shadow: 0 1px 2px rgba(0,0,0,.03);
}
.admin-body {
  padding: 28px;
  flex: 1;
}

/* Stat KPI Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 16px;
}
.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 20px;
  flex-shrink: 0;
}
.stat-icon.orange { background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent); }
.stat-icon.green  { background: color-mix(in srgb, var(--free) 15%, transparent); color: var(--free); }
.stat-icon.blue   { background: color-mix(in srgb, var(--info) 15%, transparent); color: var(--info); }
.stat-icon.purple { background: rgba(142,68,173,.15); color: #8E44AD; }
.stat-val {
  font-family: "Archivo", sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.1;
}
.stat-lbl {
  font-size: 12.5px;
  color: var(--ink-3);
  margin-top: 3px;
}

/* Data Tables */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
table.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}
table.data-table th {
  background: var(--surface-2);
  color: var(--ink-2);
  font-family: "Archivo", sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
table.data-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
table.data-table tr:hover td {
  background: color-mix(in srgb, var(--accent) 3%, var(--surface));
}

/* Status Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 700;
  font-family: "Archivo", sans-serif;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.badge.paid, .badge.active, .badge.confirmed {
  background: var(--free-bg);
  color: var(--free-ink);
}
.badge.pending, .badge.held {
  background: var(--part-bg);
  color: var(--part-ink);
}
.badge.cancelled, .badge.expired, .badge.failed {
  background: var(--danger-bg);
  color: var(--danger);
}
.badge.maintenance {
  background: #FFF3CD;
  color: #856404;
}

/* Filter bar */
.filter-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 18px;
}

/* ======================================================================
   FOOTER
   ====================================================================== */
footer {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding: 28px 0 44px;
  font-size: 13px;
  color: var(--ink-3);
  text-align: center;
}
footer .fbar {
  height: 3px;
  width: 84px;
  margin: 0 auto 16px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.hide { display: none !important; }

/* ======================================================================
   RESPONSIVE DESIGN SYSTEM (DESKTOP, TABLET, MOBILE)
   ====================================================================== */

/* --- Tablet / Small Laptop Breakpoint (<= 1024px) --- */
@media (max-width: 1024px) {
  .wrap { padding: 0 16px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important; }
}

/* --- Mobile Navigation Switch (<= 920px) --- */
@media (max-width: 920px) {
  .nav-links.desktop-only { display: none !important; }
  .mobile-actions { display: flex !important; }
  
  .mast .wrap {
    padding: 12px 16px;
  }
  .mast-brand {
    gap: 10px;
  }
  .mast h1 {
    font-size: 18px;
  }
  .mast p {
    font-size: 11.5px;
  }
  .mark {
    width: 38px;
    height: 38px;
    font-size: 14px;
    border-radius: 9px;
  }

  /* Admin Responsive Shell */
  .admin-shell {
    flex-direction: column;
    position: relative;
  }
  .admin-sidebar {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(300px, 85vw);
    z-index: 99990;
    transform: translateX(-105%);
    transition: transform .3s ease;
    box-shadow: 8px 0 24px rgba(0,0,0,.4);
  }
  .admin-sidebar.open {
    transform: translateX(0);
  }
  .admin-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    backdrop-filter: blur(4px);
    z-index: 99989;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
  }
  .admin-backdrop.open {
    opacity: 1;
    pointer-events: auto;
  }
  .admin-header {
    padding: 0 16px;
  }
  .admin-body {
    padding: 18px 16px;
  }
}

/* --- Small Tablet / Large Mobile (<= 768px) --- */
@media (max-width: 768px) {
  h1 { font-size: 26px; }
  h2 { font-size: 20px; }
  
  .top-nav .wrap {
    flex-direction: column;
    gap: 6px;
    text-align: center;
    padding: 8px 14px;
  }
  .top-nav .top-nav-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
  }
  
  .step, .card {
    padding: 18px 16px;
    margin: 16px 0;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
    gap: 16px !important;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .stat-card {
    padding: 14px 16px;
    gap: 12px;
  }
  .stat-icon {
    width: 42px;
    height: 42px;
    font-size: 18px;
  }
  .stat-val {
    font-size: 20px;
  }
}

/* --- Mobile Breakpoint (<= 640px) --- */
@media (max-width: 640px) {
  body {
    font-size: 14.5px;
  }
  .wrap {
    padding: 0 14px;
  }
  
  /* Masthead Brand on phones */
  .mast h1 {
    font-size: 16.5px;
  }
  .mast p {
    font-size: 10.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
  }

  /* Form controls touch friendly without auto-zoom */
  input, select, textarea {
    font-size: 16px !important;
    padding: 11px 13px;
    min-height: 44px;
  }
  .fields {
    flex-direction: column;
    gap: 12px;
  }
  .field {
    min-width: 100%;
  }
  
  /* Hour Chips on Mobile */
  .chips {
    gap: 6px;
  }
  .chip {
    padding: 8px 11px;
    font-size: 12px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
  }

  /* Hall and Seat Map on Mobile */
  .hall {
    padding: 14px 8px 18px;
    border-radius: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .plan-wrap {
    padding: 0 8px 10px;
    min-width: max-content;
    margin: 0 auto;
  }
  .seat {
    width: 35px;
    height: 31px;
    font-size: 9.5px;
    border-radius: 6px;
  }
  .slot {
    height: 31px;
  }
  .col {
    gap: 5px;
    padding: 0 3px;
  }
  .colcap {
    font-size: 8.5px;
    letter-spacing: .6px;
  }
  .cfull { display: none; }
  .cshort { display: inline; }
  .vdiv.pathway.wide { width: 40px; }
  .vdiv.pathway { width: 22px; }
  .vdiv.partition { width: 20px; }
  .vdiv.wall { width: 12px; }
  .vdiv span { font-size: 8px; letter-spacing: 1px; }

  /* Seat info inspection card */
  .seatinfo {
    padding: 14px 14px;
  }
  .si-btn {
    width: 100%;
    text-align: center;
  }

  /* Sticky Summary Bar on Mobile */
  .sumbar {
    padding-bottom: max(10px, env(safe-area-inset-bottom, 10px));
  }
  .sumbar .wrap {
    padding: 10px 14px;
    gap: 10px;
  }
  .sumbar .amt {
    font-size: 20px;
  }
  .sumbar .meta {
    font-size: 11.5px;
  }

  /* Floating WhatsApp Button on Mobile */
  .floating-whatsapp {
    bottom: 78px;
    right: 16px;
    width: 48px;
    height: 48px;
    font-size: 26px;
  }
  .floating-whatsapp .wa-tooltip {
    display: none;
  }

  /* Tables on mobile */
  table.data-table th, table.data-table td {
    padding: 10px 12px;
    font-size: 13px;
  }

  /* Gallery Grid on Mobile */
  .gallery-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* Buttons on mobile */
  .btn {
    padding: 10px 18px;
    font-size: 14px;
  }
  .btn.sm {
    padding: 6px 12px;
    font-size: 12.5px;
  }

  /* Footer on mobile */
  footer {
    padding: 30px 0 35px !important;
    margin-top: 35px !important;
  }
}

/* --- Very Small Mobile (<= 380px) --- */
@media (max-width: 380px) {
  .wrap { padding: 0 10px; }
  .step, .card { padding: 14px 10px; }
  .mast h1 { font-size: 15px; }
  .mast p { display: none; }
  .mark { width: 34px; height: 34px; font-size: 12px; }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .seat {
    width: 30px;
    height: 28px;
    font-size: 8.5px;
  }
  .slot {
    height: 28px;
  }
  .vdiv.pathway.wide {
    width: 26px;
  }
}

