/* /kh/ticketing - design-ref parity, scoped to .kht-root */
.kht-root {
  --kht-bg: #f5f1e6;
  --kht-fg: #171512;
  --kht-muted: #6e6759;
  --kht-inv: #171512;
  --kht-inv-fg: #f5f1e6;
  --kht-inv-mute: #c9c3b4;
  --kht-inv-dim: #a39e90;
  --kht-card: #fffdf7;
  --kht-line: rgba(23, 21, 18, 0.1);
  --kht-line2: rgba(23, 21, 18, 0.12);
  --kht-accent: #f0a63a;
  --kht-red: #e1492f;
  --kht-green: #218071;
  --kht-lime: #9cb23e;
  --kht-beige: #ece4cf;
  --kht-on-accent: #171512;
  --kht-solid-bg: #171512;
  --kht-solid-fg: #f5f1e6;
  --kht-cream-bg: #fff8ec;
  --kht-cream-fg: #171512;
  --kht-ticket-paper: #f5f1e6;
  --kht-ticket-paper-fg: #171512;
  --kht-ticket-paper-muted: #6e6759;
  background: var(--kht-bg);
  color: var(--kht-fg);
  opacity: 1 !important;
  transition: background 0.25s ease, color 0.25s ease;
}

body.page-ticketing.kh-shell .kht-root {
  color: var(--kht-fg);
}

body.page-ticketing.kh-shell .kht-root a:not(.kht-btn) {
  color: inherit;
}

body.page-ticketing .kht-root section {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

.kht-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 64px);
  box-sizing: border-box;
}

.kht-eb {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.kht-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font: 800 15px "Plus Jakarta Sans", system-ui, sans-serif;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  box-sizing: border-box;
}
.kht-btn--accent { background: var(--kht-accent); color: var(--kht-on-accent); }
.kht-btn--outline {
  background: transparent;
  color: var(--kht-inv-fg);
  border: 1.5px solid rgba(245, 241, 230, 0.35);
}
.kht-btn--dark { background: var(--kht-solid-bg); color: var(--kht-solid-fg); }
.kht-btn--cream { background: var(--kht-cream-bg); color: var(--kht-cream-fg); }

/* Hero */
.kht-hero--dark {
  background: var(--kht-inv);
  color: var(--kht-inv-fg);
  overflow: hidden;
  position: relative;
  padding: clamp(40px, 6vw, 60px) 0 clamp(56px, 8vw, 90px);
}
.kht-hero__grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.kht-hero__copy { max-width: 600px; flex: 1 1 320px; }
.kht-hero__eyebrow { color: var(--kht-accent); margin: 0; }
.kht-hero__title {
  margin: 18px 0 0;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 800;
  color: var(--kht-inv-fg);
}
.kht-hero__title .kht-dot { color: var(--kht-red); }
.kht-hero__lead {
  margin: 22px 0 0;
  font-size: 18px;
  line-height: 1.55;
  color: var(--kht-inv-mute);
  max-width: 520px;
}
.kht-hero__ctas { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.kht-hero__trust {
  display: flex;
  gap: 22px;
  margin-top: 30px;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 600;
  color: var(--kht-inv-dim);
}
.kht-hero__trust span { display: flex; align-items: center; gap: 6px; }
.kht-hero__trust svg { color: var(--kht-lime); flex: none; }

.kht-hero__visual {
  position: relative;
  flex: none;
  width: min(520px, 100%);
  height: clamp(360px, 42vw, 460px);
}
.kht-hero__glow {
  position: absolute;
  inset: 20px 0 0 20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(225, 73, 47, 0.45), transparent 65%);
  pointer-events: none;
}
.kht-hero__ticket-stage {
  position: relative;
  padding-top: clamp(40px, 8vw, 90px);
  padding-left: clamp(0px, 4vw, 40px);
}
.kht-ticket-card {
  display: flex;
  width: min(420px, 100%);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
  transform: rotate(-4deg);
}
.kht-ticket-card__body {
  flex: 1;
  background: var(--kht-ticket-paper);
  color: var(--kht-ticket-paper-fg);
  padding: 22px 22px 20px;
}
.kht-ticket-card__eyebrow {
  color: var(--kht-red);
  font-size: 11px;
  margin: 0;
}
.kht-ticket-card__title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 10px 0 0;
  line-height: 1.1;
}
.kht-ticket-card__meta {
  font-size: 13px;
  color: var(--kht-ticket-paper-muted);
  margin: 8px 0 0;
}
.kht-ticket-card__stats {
  display: flex;
  gap: 18px;
  margin-top: 18px;
  font-size: 12px;
  color: var(--kht-ticket-paper-muted);
}
.kht-ticket-card__stats b {
  display: block;
  color: var(--kht-ticket-paper-fg);
  font-size: 16px;
  font-weight: 800;
}
.kht-ticket-card__stub {
  width: 120px;
  background: var(--kht-accent);
  border-left: 2px dashed rgba(23, 21, 18, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: none;
}
.kht-ticket-card__qr {
  display: grid;
  grid-template-columns: repeat(9, 7px);
  grid-auto-rows: 7px;
  gap: 1px;
}
.kht-ticket-card__qr i { display: block; background: var(--kht-fg); }
.kht-ticket-card__qr i:nth-child(6n),
.kht-ticket-card__qr i:nth-child(6n+3),
.kht-ticket-card__qr i:nth-child(9n+5),
.kht-ticket-card__qr i:nth-child(11n+8) { background: transparent; }
.kht-ticket-card__live {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
}
.kht-checkin-chip {
  position: absolute;
  left: 0;
  bottom: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--kht-inv);
  color: var(--kht-inv-fg);
  border: 1px solid rgba(245, 241, 230, 0.14);
  border-radius: 16px;
  padding: 12px 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  margin: 0;
}
.kht-checkin-chip__icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--kht-green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.kht-checkin-chip__title { display: block; font-size: 14px; font-weight: 800; }
.kht-checkin-chip__sub { font-size: 12px; color: var(--kht-inv-dim); }

/* Pay strip */
.kht-pay {
  padding: 26px 0;
  border-bottom: 1px solid var(--kht-line);
}
.kht-pay__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.kht-pay__label {
  color: var(--kht-muted);
  margin: 0;
  margin-right: 8px;
}
/* Payment logos — match webapp footer / ticket checkout strip */
.kht-pay .accepted-payment-logos {
  --pay-logo-w: 67px;
  --pay-logo-h: 40px;
  --pay-logo-gap: 8px;
  --pay-logo-radius: 6px;
  margin: 0;
  flex: 1;
  min-width: 0;
  align-items: center;
  gap: var(--pay-logo-gap);
}
.kht-pay .accepted-payment-logos__strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--pay-logo-gap);
}
.kht-pay .accepted-payment-logos__slot {
  box-sizing: border-box;
  width: var(--pay-logo-w);
  height: var(--pay-logo-h);
  flex: 0 0 var(--pay-logo-w);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--pay-logo-radius);
  background: transparent;
}
.kht-pay .accepted-payment-logos__slot--white {
  background: #fff;
  border: 1px solid var(--kht-line2);
}
.kht-pay .accepted-payment-logos__slot--khqr {
  background: #e1232e;
}
/* Card marks are large PNGs/SVGs; ABA/KHQR masters are only 67×40px — never upscale. */
.kht-pay .accepted-payment-logos__slot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  box-sizing: border-box;
}
.kht-pay .accepted-payment-logos__slot--khqr img,
.kht-pay .accepted-payment-logos__slot--aba img,
.kht-pay .accepted-payment-logos__slot--wallet img {
  padding: 0;
  object-fit: cover;
  border-radius: inherit;
}
.kht-pay .accepted-payment-logos__slot--white img {
  padding: 4px 5px;
}

/* Features */
.kht-feat-sec { padding: clamp(64px, 8vw, 100px) 0; }
.kht-feat-sec .kht-eb { color: var(--kht-red); }
.kht-feat-sec__title {
  margin: 14px 0 0;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 800;
  max-width: 760px;
}
.kht-feat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
}
@media (max-width: 960px) { .kht-feat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .kht-feat-grid { grid-template-columns: 1fr; } }
.kht-feat-card {
  background: var(--kht-card);
  border: 1px solid var(--kht-line);
  border-radius: 22px;
  padding: 24px;
}
.kht-feat-card__icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.kht-feat-card__icon--1 { background: var(--kht-red); }
.kht-feat-card__icon--2 { background: var(--kht-accent); }
.kht-feat-card__icon--3 { background: var(--kht-green); }
.kht-feat-card__icon--4 { background: var(--kht-lime); }
.kht-feat-card__icon--5 { background: #c1663a; }
.kht-feat-card h3 {
  margin: 18px 0 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.kht-feat-card p {
  margin: 8px 0 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--kht-muted);
}

/* Seated band */
.kht-seats-band {
  background: var(--kht-inv);
  padding: clamp(64px, 8vw, 100px) 0;
}
.kht-seats-band__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px) {
  .kht-seats-band__grid { grid-template-columns: 1fr; gap: 40px; }
}
.kht-seats-band__copy { max-width: 480px; }
.kht-seats-band .kht-eb { color: var(--kht-accent); }
.kht-seats-band__title {
  margin: 14px 0 0;
  font-size: clamp(32px, 4.5vw, 50px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 800;
  color: var(--kht-inv-fg);
}
.kht-seats-band__lead {
  margin: 18px 0 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--kht-inv-mute);
}
.kht-venue-map {
  background: #1e1b18;
  border: 1px solid rgba(245, 241, 230, 0.12);
  border-radius: 24px;
  padding: 26px;
}
.kht-venue-map__screen-line {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--kht-accent), transparent);
  margin: 0 30px 8px;
}
.kht-venue-map__label {
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--kht-inv-dim);
  margin-bottom: 20px;
}
.kht-venue-map__rows { display: flex; flex-direction: column; gap: 6px; }
.kht-venue-map__row { display: flex; gap: 6px; justify-content: center; flex-wrap: nowrap; }
.kht-seat {
  width: 26px;
  height: 26px;
  border-radius: 6px 6px 3px 3px;
  background: var(--kht-green);
  flex: none;
}
.kht-seat--sold { background: rgba(245, 241, 230, 0.18); }
.kht-seat--yours { background: var(--kht-accent); }
.kht-venue-map__legend {
  display: flex;
  gap: 18px;
  justify-content: center;
  margin-top: 22px;
  font-size: 12px;
  color: var(--kht-inv-dim);
  flex-wrap: wrap;
}
.kht-venue-map__legend span { display: flex; align-items: center; gap: 6px; }
.kht-venue-map__legend i {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  display: block;
}

/* Steps */
.kht-steps-band {
  background: var(--kht-beige);
  padding: clamp(64px, 8vw, 100px) 0;
}
.kht-steps-band .kht-eb { color: var(--kht-green); }
.kht-steps-band__title {
  margin: 14px 0 0;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 800;
}
.kht-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 36px;
}
@media (max-width: 800px) { .kht-steps-grid { grid-template-columns: 1fr; gap: 28px; } }
.kht-step {
  padding: 28px 0;
  border-top: 2px solid var(--kht-fg);
}
.kht-step__n {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--kht-red);
  line-height: 1;
}
.kht-step h3 {
  margin: 14px 0 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.kht-step p {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--kht-muted);
}

/* FAQ */
.kht-faq-sec { padding: clamp(64px, 8vw, 100px) 0; }
.kht-faq-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: clamp(32px, 6vw, 80px);
}
@media (max-width: 860px) { .kht-faq-grid { grid-template-columns: 1fr; } }
.kht-faq-sec .kht-eb { color: var(--kht-red); }
.kht-faq-sec__title {
  margin: 14px 0 0;
  font-size: clamp(32px, 4.5vw, 50px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 800;
}
.kht-faq-item {
  border-top: 1px solid var(--kht-line2);
  padding: 22px 0;
}
.kht-faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 17px;
  font-weight: 800;
}
.kht-faq-item summary::-webkit-details-marker { display: none; }
.kht-faq-item__icon {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--kht-fg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}
.kht-faq-item[open] .kht-faq-item__icon { transform: rotate(45deg); }
.kht-faq-item p {
  margin: 10px 0 0;
  color: var(--kht-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* CTA */
.kht-cta-outer {
  padding: 0 clamp(20px, 4vw, 64px) clamp(64px, 8vw, 100px);
}
.kht-cta-band {
  background: var(--kht-red);
  border-radius: 28px;
  padding: clamp(40px, 6vw, 56px) clamp(28px, 5vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.kht-cta-band__orb {
  position: absolute;
  right: -60px;
  top: -60px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(240, 166, 58, 0.35);
  pointer-events: none;
}
.kht-cta-band__copy { position: relative; }
.kht-cta-band__title {
  margin: 0;
  font-size: clamp(32px, 4.5vw, 50px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 800;
  color: #fff8ec;
}
.kht-cta-band__text {
  margin: 12px 0 0;
  font-size: 17px;
  color: #ffe3d6;
}
.kht-cta-band__actions {
  position: relative;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 520px) {
  .kht-ticket-card { transform: rotate(-2deg); }
  .kht-hero__visual { height: auto; min-height: 320px; }
  .kht-checkin-chip { position: relative; bottom: auto; margin-top: 20px; }
}

/* --- Theme: light surfaces = dark type; dark surfaces = light type --- */
html:not([data-kh-theme="dark"]) .kht-root {
  color: #171512;
}

html:not([data-kh-theme="dark"]) .kht-root .kht-feat-sec,
html:not([data-kh-theme="dark"]) .kht-root .kht-pay,
html:not([data-kh-theme="dark"]) .kht-root .kht-steps-band,
html:not([data-kh-theme="dark"]) .kht-root .kht-faq-sec {
  color: var(--kht-fg);
}

html:not([data-kh-theme="dark"]) .kht-root .kht-feat-sec :is(h1, h2, h3, h4, p, summary),
html:not([data-kh-theme="dark"]) .kht-root .kht-pay :is(p, h2, h3),
html:not([data-kh-theme="dark"]) .kht-root .kht-steps-band :is(h2, h3, p),
html:not([data-kh-theme="dark"]) .kht-root .kht-faq-sec :is(h2, summary, p) {
  color: inherit;
}

html[data-kh-theme="dark"] .kht-root {
  --kht-bg: #0e0e0c;
  --kht-fg: #f4f1ea;
  --kht-muted: #c9c5bc;
  --kht-inv: #141412;
  --kht-inv-fg: #f4f1ea;
  --kht-inv-mute: #c9c5bc;
  --kht-inv-dim: #a8a49a;
  --kht-card: #1d1c19;
  --kht-line: rgba(245, 241, 230, 0.12);
  --kht-line2: rgba(245, 241, 230, 0.16);
  --kht-accent: #f0a63a;
  --kht-red: #ff5b2e;
  --kht-green: #3aa892;
  --kht-lime: #9cb23e;
  --kht-beige: #1a1714;
  --kht-on-accent: #0e0e0c;
  --kht-solid-bg: #f4f1ea;
  --kht-solid-fg: #0e0e0c;
  --kht-cream-bg: #e8e4dc;
  --kht-cream-fg: #0e0e0c;
  --kht-ticket-paper: #f4f1ea;
  --kht-ticket-paper-fg: #0e0e0c;
  --kht-ticket-paper-muted: #5a574f;
  color: #f4f1ea;
}

html[data-kh-theme="dark"] .kht-root .kht-feat-sec,
html[data-kh-theme="dark"] .kht-root .kht-pay,
html[data-kh-theme="dark"] .kht-root .kht-steps-band,
html[data-kh-theme="dark"] .kht-root .kht-faq-sec {
  color: var(--kht-fg);
}

html[data-kh-theme="dark"] body.page-ticketing.kh-shell:has(.nn-footer-reveal) > main.kht-root {
  background: var(--kht-bg);
  color: var(--kht-fg);
}

/* Ink bands: always light text (both themes) */
.kht-hero--dark,
.kht-seats-band,
.kht-checkin-chip {
  color: var(--kht-inv-fg);
}