/* KOSTGSV SPA navigation — progress + soft loader */
.turbo-progress-bar {
  height: 3px;
  background: linear-gradient(90deg, #4a7c2f, #fe8a3a);
  box-shadow: 0 0 12px rgba(74, 124, 47, 0.45);
}

/* Brand logo (shared) */
.kg-logo {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: 10px;
}

.kg-logo--sm {
  height: 40px;
  width: auto;
  border-radius: 8px;
}

.kg-logo--header {
  height: 48px;
  width: auto;
  border-radius: 10px;
}

.kg-logo--footer {
  height: 72px;
  width: auto;
  border-radius: 12px;
}

.kg-logo--auth {
  height: 120px;
  width: auto;
  margin-inline: auto;
  border-radius: 14px;
}

.kg-logo--ticket {
  height: 22px;
  width: 22px;
  margin: 0;
  border-radius: 6px;
}

.kg-logo--gateway {
  height: 64px;
  width: auto;
  margin: 0.35rem auto 0.75rem;
  border-radius: 10px;
}

.kg-logo--pill {
  height: 34px;
  width: auto;
  border-radius: 8px;
}

/* Live toast (semua layout) */
.kg-live-toast-host {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  width: min(22rem, calc(100vw - 2rem));
  pointer-events: none;
}

.kg-live-toast {
  background: #1f3815;
  color: #fff;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  box-shadow: 0 12px 28px rgba(31, 56, 21, 0.28);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.kg-live-toast.is-on {
  opacity: 1;
  transform: translateY(0);
}

.kg-live-toast__title {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 0.2rem;
}

.kg-live-toast__text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.4;
  opacity: 0.95;
}

/* Titik merah menu akun (di opsi Booking / Transaksi / dll) */
.kg-menu-dot,
.gl-menu-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e11d48;
  flex-shrink: 0;
  display: none;
  pointer-events: none;
}

.kg-menu-dot.is-on,
.gl-menu-dot.is-on {
  display: inline-block;
}

.kg-spa-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, visibility 0.18s ease;
  background: rgba(250, 249, 245, 0.55);
  backdrop-filter: blur(2px);
}

.kg-spa-loader.is-on {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.kg-spa-loader__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  padding: 1.15rem 1.35rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(43, 43, 43, 0.08);
  box-shadow: 0 12px 32px -8px rgba(31, 56, 21, 0.18);
  color: #1f3815;
  min-width: 140px;
}

.kg-spa-loader__spin {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 3px solid rgba(74, 124, 47, 0.18);
  border-top-color: #4a7c2f;
  animation: kg-spa-spin 0.7s linear infinite;
}

.kg-spa-loader__text {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #42493c;
}

@keyframes kg-spa-spin {
  to { transform: rotate(360deg); }
}

/* Admin template: hide competing full-page loader during SPA progress if present */
body.kg-spa-busy #global-loader {
  display: none !important;
}
