/* ==========================================================================
   PATT FKG UI 2026 — "Bayang Kelana" theme
   Night sky over Gedung Kesenian Jakarta: the street lamp's beam lights the way in.
   Shared by the landing page, the order flow and the seat map. Component classes are
   prefixed bk- so they never collide with Bootstrap on the order pages.
   ========================================================================== */

:root {
  /* Palette — sampled from the 2026 artwork */
  --bk-abyss: #071530;      /* page */
  --bk-night: #0c2552;      /* sky */
  --bk-dusk: #1d3f73;       /* lighter sky, raised surfaces */
  --bk-haze: #2c4f86;       /* borders on night */
  --bk-lamp: #efe6cf;       /* lamp head & beam: primary text and light */
  --bk-lamp-dim: #b9c1d3;   /* secondary text on night */
  --bk-beam: rgba(214, 226, 196, 0.16);
  --bk-ember: #e2622a;      /* logotype gradient */
  --bk-ember-light: #f39150;
  --bk-ember-deep: #b9451b;
  --bk-brass: #c58a2e;      /* railing: rules, focus, outlines */
  --bk-brass-light: #e0ac58;
  --bk-on-ember: #1b0b03;
  --bk-danger: #ff8a7a;
  --bk-ok: #8fd6a8;

  /* Ticket tiers (seat plan colours) */
  --bk-vip: #e0204f;
  --bk-premium: #3492f0;
  --bk-regular: #e0924a;
  --bk-tuneo: #9a9a9a;
  --bk-guest: #c07cf2;

  /* Type */
  --bk-font-display: "Josefin Sans", "Futura", "Century Gothic", sans-serif;
  --bk-font-body: "Source Serif 4", "Georgia", serif;
  --bk-step--1: clamp(0.84rem, 0.8rem + 0.15vw, 0.92rem);
  --bk-step-0: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --bk-step-1: clamp(1.2rem, 1.1rem + 0.45vw, 1.4rem);
  --bk-step-2: clamp(1.5rem, 1.3rem + 0.9vw, 2rem);
  --bk-step-3: clamp(1.9rem, 1.5rem + 1.8vw, 2.9rem);
  --bk-step-4: clamp(2.4rem, 1.7rem + 3.2vw, 4.2rem);

  /* Space & shape */
  --bk-gutter: clamp(1rem, 0.6rem + 2vw, 2rem);
  --bk-section: clamp(4rem, 3rem + 5vw, 8rem);
  --bk-radius: 6px;
  --bk-notch: 14px;         /* chamfer of the ticket-stub corners */
  --bk-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- base ---------- */
.bk-body {
  margin: 0;
  background: var(--bk-abyss);
  color: var(--bk-lamp);
  font-family: var(--bk-font-body);
  font-size: var(--bk-step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.bk-body h1, .bk-body h2, .bk-body h3, .bk-body h4,
.bk-display {
  font-family: var(--bk-font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0.01em;
  color: var(--bk-lamp);
}
.bk-body a { color: var(--bk-brass-light); text-underline-offset: 3px; }
.bk-body a:hover { color: var(--bk-lamp); }
.bk-body :focus-visible {
  outline: 2px solid var(--bk-brass-light);
  outline-offset: 3px;
  border-radius: 2px;
}
/* the hidden attribute must win over component display rules */
.bk-body [hidden] { display: none !important; }
.bk-wrap { width: min(1120px, 100% - 2 * var(--bk-gutter)); margin-inline: auto; }
.bk-muted { color: var(--bk-lamp-dim); }
.bk-sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.bk-skip {
  position: absolute; left: 1rem; top: -3rem; z-index: 2000;
  background: var(--bk-lamp); color: var(--bk-abyss); padding: .5rem 1rem; border-radius: var(--bk-radius);
  font-family: var(--bk-font-display); font-weight: 600; text-decoration: none;
}
.bk-skip:focus { top: 1rem; }

/* faint film grain over everything dark */
.bk-grain::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 1;
  opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- navigation ---------- */
.bk-nav {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(7, 21, 48, 0.72);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid rgba(197, 138, 46, 0.22);
}
.bk-nav__inner {
  display: flex; align-items: center; gap: 1rem;
  min-height: 64px;
}
.bk-brand {
  display: inline-flex; align-items: center; gap: .65rem;
  font-family: var(--bk-font-display); font-weight: 700; font-size: 1.02rem;
  color: var(--bk-lamp) !important; text-decoration: none; letter-spacing: .02em;
}
.bk-brand img { width: 40px; height: 40px; border-radius: 50%; }
.bk-brand small { display: block; font-weight: 400; font-size: .78rem; color: var(--bk-lamp-dim); letter-spacing: .01em; }
.bk-nav__links { display: flex; align-items: center; gap: .25rem; margin: 0 0 0 auto; padding: 0; list-style: none; }
.bk-nav__links a {
  display: inline-block; padding: .5rem .8rem; border-radius: var(--bk-radius);
  font-family: var(--bk-font-display); font-size: .95rem; color: var(--bk-lamp-dim); text-decoration: none;
}
.bk-nav__links a:hover, .bk-nav__links a[aria-current="page"] { color: var(--bk-lamp); background: rgba(239, 230, 207, 0.07); }
.bk-nav__toggle {
  display: none; margin-left: auto; background: none; border: 1px solid var(--bk-haze);
  color: var(--bk-lamp); border-radius: var(--bk-radius); padding: .45rem .7rem; font-family: var(--bk-font-display);
}
@media (max-width: 760px) {
  .bk-nav__toggle { display: inline-block; }
  .bk-nav__links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0; padding: .5rem var(--bk-gutter) 1rem;
    background: rgba(7, 21, 48, 0.97); border-bottom: 1px solid rgba(197, 138, 46, 0.22);
  }
  .bk-nav__links.is-open { display: flex; }
  .bk-nav__links a { padding: .8rem .4rem; }
  .bk-nav__links .bk-btn { margin-top: .5rem; text-align: center; }
}

/* ---------- buttons ---------- */
.bk-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .82rem 1.5rem; border: 0; border-radius: var(--bk-radius);
  font-family: var(--bk-font-display); font-weight: 700; font-size: 1rem; letter-spacing: .02em;
  line-height: 1.1; text-decoration: none; cursor: pointer;
  color: var(--bk-on-ember) !important;
  background: linear-gradient(100deg, var(--bk-ember-deep) 0%, var(--bk-ember) 45%, var(--bk-ember-light) 100%);
  box-shadow: 0 10px 28px -12px rgba(226, 98, 42, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition: transform .18s var(--bk-ease), box-shadow .18s var(--bk-ease), filter .18s;
}
.bk-btn:hover { transform: translateY(-1px); filter: brightness(1.06); box-shadow: 0 14px 34px -12px rgba(243, 145, 80, 0.9), inset 0 1px 0 rgba(255,255,255,.3); }
.bk-btn:active { transform: translateY(1px); filter: brightness(.96); }
.bk-btn[disabled], .bk-btn.is-disabled {
  cursor: not-allowed; filter: grayscale(.85) brightness(.7); transform: none; box-shadow: none;
}
.bk-btn--ghost {
  color: var(--bk-lamp) !important; background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--bk-brass);
}
.bk-btn--ghost:hover { background: rgba(197, 138, 46, 0.12); box-shadow: inset 0 0 0 1.5px var(--bk-brass-light); }
.bk-btn--sm { padding: .55rem 1rem; font-size: .92rem; }
.bk-btn--block { width: 100%; }

/* ---------- ticket stub frame (chamfered corners + inner cream rule, like the 2026 tickets) ---------- */
.bk-stub {
  position: relative;
  padding: clamp(1.25rem, 1rem + 1.5vw, 2.25rem);
  background: linear-gradient(160deg, rgba(29, 63, 115, 0.92), rgba(12, 37, 82, 0.94));
  clip-path: polygon(var(--bk-notch) 0, calc(100% - var(--bk-notch)) 0, 100% var(--bk-notch),
                     100% calc(100% - var(--bk-notch)), calc(100% - var(--bk-notch)) 100%,
                     var(--bk-notch) 100%, 0 calc(100% - var(--bk-notch)), 0 var(--bk-notch));
}
.bk-stub::before {
  content: ""; position: absolute; inset: 7px; pointer-events: none;
  border: 1px solid rgba(239, 230, 207, 0.55);
  clip-path: polygon(calc(var(--bk-notch) - 4px) 0, calc(100% - var(--bk-notch) + 4px) 0, 100% calc(var(--bk-notch) - 4px),
                     100% calc(100% - var(--bk-notch) + 4px), calc(100% - var(--bk-notch) + 4px) 100%,
                     calc(var(--bk-notch) - 4px) 100%, 0 calc(100% - var(--bk-notch) + 4px), 0 calc(var(--bk-notch) - 4px));
}

/* brass rule used as a section divider */
.bk-rule { height: 1px; border: 0; margin: 0; background: linear-gradient(90deg, transparent, var(--bk-brass) 18%, var(--bk-brass) 82%, transparent); opacity: .7; }

/* tier swatch */
.bk-swatch { display: inline-block; width: .9em; height: .9em; border-radius: 3px; vertical-align: -.08em; background: currentColor; }
.bk-tier-vip { --tier: var(--bk-vip); }
.bk-tier-premium { --tier: var(--bk-premium); }
.bk-tier-regular { --tier: var(--bk-regular); }

/* ---------- seat map ---------- */
.bk-seatmap { position: relative; }
.bk-seatmap__toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem;
  margin-bottom: .75rem;
}
.bk-seatmap__legend { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin: 0; padding: 0; list-style: none; font-size: var(--bk-step--1); color: var(--bk-lamp-dim); }
.bk-seatmap__legend li { display: inline-flex; align-items: center; gap: .4rem; }
.bk-seatmap__legend .bk-swatch.is-taken { background: #34415e; box-shadow: inset 0 0 0 1px #56627e; }
.bk-seatmap__legend .bk-swatch.is-selected { background: var(--bk-lamp); box-shadow: inset 0 0 0 2px var(--bk-ember); }
.bk-seatmap__zoom { display: inline-flex; gap: .35rem; }
.bk-seatmap__zoom button {
  width: 2.4rem; height: 2.4rem; border-radius: var(--bk-radius); cursor: pointer;
  background: rgba(239, 230, 207, 0.06); color: var(--bk-lamp); border: 1px solid var(--bk-haze);
  font-family: var(--bk-font-display); font-size: 1.15rem; line-height: 1;
}
.bk-seatmap__zoom button:hover { border-color: var(--bk-brass); }
.bk-seatmap__viewport {
  overflow: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  border-radius: 10px; border: 1px solid rgba(197, 138, 46, 0.25);
  background:
    radial-gradient(120% 70% at 50% -10%, rgba(214, 226, 196, 0.10), transparent 60%),
    #0a1c40;
  max-height: 86vh;
}
/* zoom 1 = whole hall visible: as wide as the box allows but never taller than the screen
   (viewBox aspect ratio is ~1.2 : 1) */
.bk-seatmap__svg {
  display: block; margin-inline: auto; height: auto; user-select: none;
  width: calc(var(--zoom, 1) * min(100%, 82vh * 1.2));
  min-width: 640px;
}
.bk-seatmap__stage { fill: #6f7682; }
.bk-seatmap__stage-label { fill: #f5f1e6; font-family: var(--bk-font-display); font-weight: 700; font-size: 26px; letter-spacing: .12em; }
.bk-seatmap__curve { fill: none; stroke: var(--bk-brass); stroke-width: 2.4; }
.bk-seatmap__rail { stroke: var(--bk-brass); stroke-width: 2.2; }
.bk-seatmap__row { fill: var(--bk-lamp-dim); font-family: var(--bk-font-display); font-weight: 700; font-size: 10.5px; text-anchor: middle; dominant-baseline: central; }
.bk-seatmap__upper { fill: var(--bk-lamp-dim); font-family: var(--bk-font-display); font-weight: 700; font-size: 11px; letter-spacing: .14em; text-anchor: middle; }

.bk-seat rect { fill: var(--seat); stroke: rgba(0, 0, 0, .35); stroke-width: .6; transition: fill .15s, opacity .15s; }
.bk-seat text {
  fill: #0d1730; font-family: var(--bk-font-display); font-weight: 700; font-size: 8.4px;
  text-anchor: middle; dominant-baseline: central; pointer-events: none;
}
.bk-seat.c-vip { --seat: var(--bk-vip); }
.bk-seat.c-vip text { fill: #fff3f5; }
.bk-seat.c-premium { --seat: var(--bk-premium); }
.bk-seat.c-regular { --seat: var(--bk-regular); }
.bk-seat.c-tuneo { --seat: var(--bk-tuneo); }
.bk-seat.c-guest { --seat: var(--bk-guest); }
.bk-seat.is-reserved { opacity: .5; }
.bk-seat.is-taken rect { fill: #34415e; stroke: #56627e; }
.bk-seat.is-taken text { fill: #7c87a1; }
.bk-seat.is-other { opacity: .32; }                     /* free, but not a tier this order is buying */
.bk-seat.is-selectable { cursor: pointer; }
.bk-seat.is-selectable:hover rect { stroke: var(--bk-lamp); stroke-width: 1.6; }
.bk-seat.is-selectable:focus { outline: none; }
.bk-seat.is-selectable:focus-visible rect { stroke: var(--bk-brass-light); stroke-width: 2.4; }
.bk-seat.is-selected rect { fill: var(--bk-lamp); stroke: var(--bk-ember); stroke-width: 2.2; }
.bk-seat.is-selected text { fill: var(--bk-ember-deep); }

/* ---------- ticket tier rows (order page + landing) ---------- */
.bk-tier {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(1rem, .6rem + 2vw, 2rem);
  align-items: center;
  padding: clamp(1rem, .8rem + 1vw, 1.5rem);
  border-radius: 10px;
  background: linear-gradient(120deg, color-mix(in srgb, var(--tier) 16%, transparent), rgba(12, 37, 82, 0.55) 55%);
  border: 1px solid color-mix(in srgb, var(--tier) 40%, transparent);
}
.bk-tier + .bk-tier { margin-top: 1rem; }
.bk-tier__art { display: block; width: 100%; height: auto; border-radius: 6px; box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .9); }
.bk-tier__name { font-family: var(--bk-font-display); font-size: var(--bk-step-2); font-weight: 700; margin: 0; line-height: 1.1; }
.bk-tier__name small { display: block; font-size: .5em; font-weight: 400; color: var(--bk-lamp-dim); margin-top: .25rem; }
.bk-tier__price { font-family: var(--bk-font-display); font-size: var(--bk-step-1); font-weight: 600; color: var(--bk-lamp); margin: .5rem 0 .2rem; }
.bk-tier__where { color: var(--bk-lamp-dim); font-size: var(--bk-step--1); margin: 0 0 .9rem; }
.bk-tier__left { font-size: var(--bk-step--1); color: var(--bk-lamp-dim); }
.bk-tier__left strong { color: var(--bk-lamp); }
.bk-tier__desc { font-size: var(--bk-step--1); color: var(--bk-lamp-dim); margin: 0 0 .8rem; }
.bk-tier__phase {
  display: inline-block; vertical-align: .2em; margin-left: .35rem; padding: .1rem .5rem;
  border: 1px solid color-mix(in srgb, var(--tier) 70%, transparent); border-radius: 999px;
  font-size: .62em; font-weight: 600; color: var(--bk-lamp); background: color-mix(in srgb, var(--tier) 22%, transparent);
}
/* price steps: one stub per step, divided by the ticket perforation */
.bk-ladder {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
  margin: .5rem 0 .9rem; padding: 0; list-style: none;
  border: 1px solid rgba(197, 138, 46, 0.35); border-radius: var(--bk-radius); overflow: hidden;
  font-size: var(--bk-step--1); line-height: 1.25;
}
.bk-ladder__step { padding: .45rem .6rem .4rem; color: var(--bk-lamp-dim); }
.bk-ladder__step + .bk-ladder__step { border-left: 1px dashed rgba(197, 138, 46, 0.45); }
.bk-ladder__step span { display: block; font-family: var(--bk-font-display); font-size: .86em; }
.bk-ladder__step b { display: block; font-family: var(--bk-font-display); font-weight: 600; color: var(--bk-lamp); white-space: nowrap; }
.bk-ladder__step em { display: block; min-height: 1.1em; font-style: normal; font-size: .8em; }
.bk-ladder__step.is-past b { color: var(--bk-lamp-dim); text-decoration: line-through; text-decoration-color: rgba(185, 193, 211, .6); }
.bk-ladder__step.is-current { background: color-mix(in srgb, var(--tier) 24%, transparent); color: var(--bk-lamp); }
.bk-ladder__step.is-current em { color: var(--bk-lamp); font-weight: 600; }
.bk-tier.is-soldout { filter: saturate(.35); }
.bk-tier.is-soldout .bk-tier__art { opacity: .55; }
.bk-soldout-stamp {
  display: inline-block; transform: rotate(-4deg);
  padding: .3rem .8rem; border: 2px solid var(--bk-danger); border-radius: 4px;
  font-family: var(--bk-font-display); font-weight: 700; letter-spacing: .14em; color: var(--bk-danger);
}
@media (max-width: 720px) {
  .bk-tier { grid-template-columns: 1fr; }
}

/* ---------- footer ---------- */
.bk-footer {
  position: relative; z-index: 2;
  border-top: 1px solid rgba(197, 138, 46, 0.22);
  background: #050f24;
  color: var(--bk-lamp-dim);
  font-size: var(--bk-step--1);
  padding: 2.5rem 0 2rem;
}
.bk-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; }
.bk-footer__brand { display: flex; align-items: center; gap: .9rem; }
.bk-footer__brand img.badge-logo { width: 46px; height: 46px; }
.bk-footer__brand .tristique-chip { background: var(--bk-lamp); border-radius: 6px; padding: 4px 10px; display: inline-flex; }
.bk-footer__brand .tristique-chip img { height: 26px; width: auto; }
.bk-footer a { color: var(--bk-lamp-dim); }
.bk-footer a:hover { color: var(--bk-lamp); }
.bk-footer__links { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin: 0; padding: 0; list-style: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
