/* =============================================================================
   Guide Portal — design system
   Port of the retired Angular guide-portal (Tailwind v4) look into plain CSS.
   Loaded dead-last in App.razor so it wins over Bootstrap/AdminLTE/Aqua vars.

   Everything is scoped under .gp-login (auth screen) or .gp-app (inner pages)
   so the Aqua theme variables that the host also loads never bleed in and we
   never bleed out onto the shared shell components.
   ========================================================================== */

.gp-app,
.gp-login {
  /* ── Palette (Tailwind slate/cyan/rose scale used by the Angular portal) ── */
  --gp-bg: #eef2f7;
  --gp-ink: #0f172a;
  --gp-slate-50: #f8fafc;
  --gp-slate-100: #f1f5f9;
  --gp-slate-200: #e2e8f0;
  --gp-slate-300: #cbd5e1;
  --gp-slate-400: #94a3b8;
  --gp-slate-500: #64748b;
  --gp-slate-600: #475569;
  --gp-slate-700: #334155;
  --gp-slate-800: #1e293b;
  --gp-slate-900: #0f172a;
  --gp-cyan-50: #ecfeff;
  --gp-cyan-200: #a5f3fc;
  --gp-cyan-600: #0891b2;
  --gp-cyan-700: #0e7490;
  --gp-rose-50: #fff1f2;
  --gp-rose-200: #fecdd3;
  --gp-rose-600: #e11d48;
  --gp-rose-700: #be123c;
  --gp-emerald-600: #059669;

  --gp-card-border: rgba(226, 232, 240, 0.8);
  --gp-shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --gp-shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.12);
  --gp-shadow-xl: 0 20px 40px -12px rgba(15, 23, 42, 0.2);

  /* Canonical Aqua gradients — tied to the panel's Aqua theme tokens so the guide
     portal shares the exact palette. Buttons/pills/avatar use the panel action
     gradient; the hero + login brand use the panel navbar gradient. Literals are
     the token fallbacks (identical to what the panel resolves to). */
  --gp-aqua: var(--rd-btn-primary-bg, linear-gradient(135deg, #0e7490 0%, #2979b0 60%, #1abc9c 100%));
  --gp-aqua-deep: linear-gradient(135deg, #0b5c73 0%, #1f6191 60%, #149a7f 100%);
  --gp-hero: linear-gradient(110deg, #0c4a6e 0%, #155e86 42%, #0e7490 76%, #117e76 100%);
  --gp-login-brand: linear-gradient(110deg, #0c4a6e 0%, #155e86 42%, #0e7490 76%, #117e76 100%);

  --gp-radius: 8px;
  --gp-radius-lg: 12px;
  --gp-radius-xl: 16px;

  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--gp-ink);
  -webkit-font-smoothing: antialiased;
  font-size: 13px;
  line-height: 1.45;
}

/* -----------------------------------------------------------------------------
   App shell — inner (authenticated) pages
   -------------------------------------------------------------------------- */
html:has(.gp-app),
body:has(.gp-app) {
  display: block;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 100vh;
  overflow-x: hidden;
  background: #eef2f7;
}

.guide-home-theme-host,
.guide-ticket-create-theme-host,
.guide-transfer-guests-theme-host,
.guide-tour-sale-detail-theme-host,
.guide-airport-check-in-confirm-theme-host {
  display: block;
  width: 100vw;
  max-width: none;
  min-width: 0;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  flex: 0 0 100%;
  align-self: stretch;
}

.gp-app {
  display: flex;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  align-self: stretch;
  min-height: 100vh;
  flex-direction: column;
  background-color: var(--gp-bg);
  background-image:
    radial-gradient(at 0% 0%, rgba(56, 130, 246, 0.06) 0, transparent 50%),
    radial-gradient(at 100% 0%, rgba(99, 102, 241, 0.05) 0, transparent 50%);
}

/* AquaChat launcher for the guide shell, which intentionally has no shared
   bottom footer. It also acts as the widget bubble's optional dock target. */
.guide-aquachat-launcher {
  position: fixed;
  right: 20px;
  bottom: 18px;
  z-index: 1045;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: var(--gp-aqua, linear-gradient(135deg, #0e7490 0%, #2979b0 60%, #1abc9c 100%));
  box-shadow: 0 8px 24px rgba(8, 145, 178, 0.32);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.guide-aquachat-launcher:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(8, 145, 178, 0.4);
}

.guide-aquachat-launcher.aquachat-bubble-drag-target {
  box-shadow: 0 0 0 7px rgba(103, 227, 249, 0.22), 0 12px 28px rgba(8, 145, 178, 0.4);
}

.guide-aquachat-launcher.aquachat-bubble-drop-hover {
  box-shadow: 0 0 0 9px rgba(50, 213, 131, 0.3), 0 0 22px rgba(50, 213, 131, 0.7);
}

@media (max-width: 640px) {
  .guide-aquachat-launcher {
    right: 14px;
    bottom: 14px;
  }
}

.gp-app *,
.gp-app *::before,
.gp-app *::after,
.gp-login *,
.gp-login *::before,
.gp-login *::after {
  box-sizing: border-box;
}

.gp-main {
  flex: 1 1 auto;
  /* Full-bleed flex item; the centered 1536px content column is created by
     symmetric inline padding (calc), NOT width + auto-margins. This is immune to
     the flex-item auto-margin shrink-to-fit quirk, so every tab renders an
     identical-width, identically-positioned column regardless of its content. */
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 24px max(16px, calc((100% - 1536px) / 2));
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.gp-main--narrow {
  padding-inline: max(16px, calc((100% - 1280px) / 2));
}

/* -----------------------------------------------------------------------------
   Header — sticky translucent bar with pill nav + locale + profile
   -------------------------------------------------------------------------- */
.gp-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background-image: var(--gp-aqua);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 10px 24px -18px rgba(15, 23, 42, 0.55);
}

.gp-header__inner {
  max-width: 1536px;
  margin: 0 auto;
  padding: 0 16px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

@media (min-width: 1024px) {
  .gp-header__inner { padding: 0 24px; }
}

.gp-header__left {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.gp-brand {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.gp-brand img {
  height: 40px;
  max-width: 150px;
  object-fit: contain;
}

@media (min-width: 640px) {
  .gp-brand img { max-width: 180px; }
}

.gp-brand__name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
  white-space: nowrap;
}

/* Pill nav (desktop) */
.gp-nav {
  display: none;
  align-items: center;
  gap: 6px;
}

@media (min-width: 1100px) {
  .gp-nav { display: flex; }
}

.gp-header .gp-nav .gp-nav__link {
  border-radius: 9999px;
  padding: 8px 15px;
  font-size: 13px;
  font-weight: 700;
  color: #fff !important;
  text-decoration: none;
  transition: color 0.15s, background-color 0.15s, box-shadow 0.15s;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(8, 47, 73, 0.28);
}

.gp-header .gp-nav .gp-nav__link:visited,
.gp-header .gp-nav .gp-nav__link:focus {
  color: #fff !important;
}

.gp-header .gp-nav .gp-nav__link:hover {
  background-color: rgba(255, 255, 255, 0.16);
  color: #fff !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.gp-header .gp-nav .gp-nav__link.is-active {
  background: rgba(255, 255, 255, 0.28);
  color: #fff !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.36), var(--gp-shadow-sm);
}

.gp-header .gp-nav .gp-nav__link.is-active:hover {
  color: #fff !important;
}

/* Right cluster */
.gp-header__right {
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (min-width: 640px) {
  .gp-header__right { gap: 12px; }
}

/* Locale pill group */
.gp-lang {
  display: none;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
  padding: 2px;
}

@media (min-width: 480px) {
  .gp-lang { display: inline-flex; }
}

.gp-lang__opt {
  border: 0;
  background: transparent;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.15s, background-color 0.15s;
}

.gp-lang__opt:hover { color: #fff; }

.gp-lang__opt.is-active {
  background: rgba(255, 255, 255, 0.92);
  color: var(--gp-cyan-700);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: var(--gp-shadow-sm);
}

/* Profile chip + dropdown */
.gp-profile { position: relative; }

.gp-profile__btn {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.14);
  padding: 4px 6px 4px 4px;
  transition: background-color 0.15s, box-shadow 0.15s;
}

@media (min-width: 640px) {
  .gp-profile__btn { padding-right: 12px; }
}

.gp-profile__btn:hover { background: rgba(255, 255, 255, 0.22); }
.gp-profile__btn.is-open {
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.18);
}

.gp-avatar {
  display: grid;
  place-items: center;
  height: 32px;
  width: 32px;
  flex-shrink: 0;
  border-radius: 9999px;
  background-image: var(--gp-aqua);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.gp-avatar--lg { height: 44px; width: 44px; font-size: 14px; }

.gp-profile__meta {
  display: none;
  line-height: 1.15;
  min-width: 0;
  text-align: left;
}

@media (min-width: 640px) {
  .gp-profile__meta { display: block; }
}

.gp-profile__name {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gp-profile__role {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.72);
}

.gp-profile__caret {
  display: none;
  color: rgba(255, 255, 255, 0.72);
  transition: transform 0.15s;
}

@media (min-width: 640px) {
  .gp-profile__caret { display: block; }
}

.gp-profile__btn.is-open .gp-profile__caret { transform: rotate(180deg); }

.gp-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  border: 0;
  background: transparent;
  cursor: default;
}

.gp-menu {
  position: absolute;
  right: 0;
  margin-top: 8px;
  z-index: 50;
  width: 256px;
  max-width: calc(100vw - 1.5rem);
  overflow: hidden;
  border-radius: var(--gp-radius-xl);
  border: 1px solid var(--gp-slate-200);
  background: #fff;
  box-shadow: var(--gp-shadow-xl);
}

.gp-menu__head {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--gp-slate-100);
  background: rgba(248, 250, 252, 0.7);
  padding: 16px;
}

.gp-menu__name {
  font-size: 13px;
  font-weight: 600;
  color: var(--gp-slate-900);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gp-menu__email {
  font-size: 12px;
  color: var(--gp-slate-500);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gp-menu__badge {
  margin-top: 4px;
  display: inline-block;
  border-radius: 9999px;
  background: var(--gp-cyan-50);
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--gp-cyan-700);
}

.gp-menu__nav {
  border-bottom: 1px solid var(--gp-slate-100);
  padding: 6px;
}

@media (min-width: 768px) {
  .gp-menu__nav { display: none; }
}

.gp-menu__link {
  display: block;
  border-radius: var(--gp-radius);
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gp-slate-600);
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s;
}

.gp-menu__link:hover { background: var(--gp-slate-50); }
.gp-menu__link.is-active { background: var(--gp-cyan-50); color: var(--gp-cyan-700); }

.gp-menu__lang {
  border-bottom: 1px solid var(--gp-slate-100);
  padding: 10px;
}

@media (min-width: 480px) {
  .gp-menu__lang { display: none; }
}

.gp-menu__lang .gp-lang {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  border-color: var(--gp-slate-200);
  background: var(--gp-slate-50);
  overflow: visible;
}

.gp-menu__lang .gp-lang__opt {
  flex: 1;
  color: var(--gp-slate-500);
  text-align: center;
  text-shadow: none;
}

.gp-menu__lang .gp-lang__opt:hover {
  color: var(--gp-slate-800);
}

.gp-menu__lang .gp-lang__opt.is-active {
  background: #fff;
  color: var(--gp-cyan-700);
  border-color: var(--gp-slate-200);
}

.gp-menu__lang .gp-lang-more {
  position: static;
}

.gp-menu__lang .gp-lang-more[open] {
  flex-basis: 100%;
  width: 100%;
}

.gp-menu__lang .gp-lang-more[open] > .gp-lang-more__trigger {
  width: 100%;
  margin-top: 6px;
}

.gp-menu__lang .gp-lang-more__menu {
  position: static;
  display: none;
  width: 100%;
  min-width: 0;
  margin-top: 6px;
  box-shadow: none;
}

.gp-menu__foot { padding: 6px; }

.gp-menu__logout {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  border-radius: var(--gp-radius);
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gp-rose-600);
  text-decoration: none;
  transition: background-color 0.15s;
}

.gp-menu__logout:hover { background: var(--gp-rose-50); }

/* Hidden language <select> the menu items submit through */
.gp-lang-form { margin: 0; }

@media (max-width: 767.98px) {
  .gp-header__inner {
    height: 58px;
    padding-inline: 12px;
    gap: 8px;
  }

  .gp-header__left {
    flex: 1 1 auto;
    min-width: 0;
  }

  .gp-header__right {
    flex: 0 0 auto;
    gap: 8px;
  }

  .gp-brand img {
    height: 36px;
    max-width: 120px;
  }

  .gp-profile__btn {
    min-height: 38px;
    padding: 3px;
  }

  .gp-avatar {
    height: 30px;
    width: 30px;
  }

  .gp-menu {
    position: fixed;
    top: 64px;
    right: 12px;
    left: 12px;
    width: auto;
    max-width: none;
    max-height: calc(100dvh - 76px);
    margin-top: 0;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .gp-menu__nav {
    display: block;
  }

  .gp-menu__link {
    padding: 10px 12px;
    font-size: 14px;
  }
}

@media (max-width: 479.98px) {
  .gp-header__inner {
    height: 56px;
    padding-inline: 10px;
  }

  .gp-brand img {
    height: 34px;
    max-width: 104px;
  }

  .gp-menu {
    top: 60px;
    right: 10px;
    left: 10px;
  }
}

/* -----------------------------------------------------------------------------
   Hero band
   -------------------------------------------------------------------------- */
.gp-hero {
  background-image: var(--gp-hero);
}

.gp-hero__inner {
  max-width: 1536px;
  margin: 0 auto;
  padding: 32px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

@media (min-width: 1024px) {
  .gp-hero__inner { padding: 40px 40px; }
}

.gp-hero__kicker {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gp-cyan-200);
}

.gp-hero__title {
  margin: 4px 0 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 1024px) {
  .gp-hero__title { font-size: 30px; }
}

.gp-hero__accent {
  margin-top: 4px;
  height: 4px;
  width: 40px;
  border-radius: 9999px;
  background: #67e8f9;
}

.gp-hero__sub {
  margin: 8px 0 0;
  font-size: 13px;
  color: #cffafe;
}

.gp-hero__chip {
  border-radius: var(--gp-radius-lg);
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.gp-hero__chip-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gp-cyan-200);
}

.gp-hero__chip-value {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

/* -----------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.gp-card {
  border-radius: var(--gp-radius-xl);
  background: #fff;
  border: 1px solid var(--gp-card-border);
  box-shadow: var(--gp-shadow-sm);
}

.gp-card--pad {
  padding: 16px;
}

@media (min-width: 1024px) {
  .gp-card--pad { padding: 20px; }
}

.gp-card--clip { overflow: hidden; }

.gp-card__title {
  padding: 11px 16px;
  border-bottom: 0;
  background-image: var(--gp-aqua);
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.16);
}

.gp-section-head {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  background-image: var(--gp-aqua);
  border-radius: var(--gp-radius-xl) var(--gp-radius-xl) 0 0;
  margin: -16px -16px 16px;
  padding: 11px 16px;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.16);
}

@media (min-width: 1024px) {
  .gp-card--pad > .gp-section-head {
    margin: -20px -20px 20px;
    padding-inline: 20px;
  }
}

.gp-card--pad.gp-stack > .gp-section-head + * {
  margin-top: 0;
}

.gp-section-head i { color: rgba(255, 255, 255, 0.92); }

.gp-section-head h2 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
}

/* Vertical rhythm helpers */
.gp-stack > * + * { margin-top: 16px; }
.gp-stack-sm > * + * { margin-top: 8px; }
.gp-stack-lg > * + * { margin-top: 24px; }

/* -----------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.gp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .gp-grid--2 { grid-template-columns: repeat(2, 1fr); }
  .gp-grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .gp-grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.gp-label {
  margin-bottom: 6px;
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--gp-slate-600);
}

.gp-field {
  width: 100%;
  height: 40px;
  border-radius: var(--gp-radius);
  border: 1px solid var(--gp-slate-300);
  background: #fff;
  padding: 0 12px;
  font-size: 13px;
  color: var(--gp-slate-900);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.gp-field:focus {
  outline: none;
  border-color: var(--gp-cyan-600);
  box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.1);
}

.gp-field:disabled {
  background: var(--gp-slate-50);
  color: var(--gp-slate-400);
}

textarea.gp-field {
  height: auto;
  padding: 8px 12px;
  line-height: 1.5;
  resize: vertical;
}

.gp-field--sm { height: 36px; }
.gp-field--inline { height: 36px; }

select.gp-field {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 34px;
}

.gp-check {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid var(--gp-slate-300);
  accent-color: var(--gp-cyan-700);
  vertical-align: middle;
}

.gp-check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gp-slate-600);
}

.gp-radio-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  color: var(--gp-slate-600);
}

.gp-radio-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-weight: 400;
}

.gp-radio-row input[type="radio"] { accent-color: var(--gp-cyan-700); }

.gp-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.gp-form-actions--end { justify-content: flex-end; }

/* -----------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.gp-btn {
  display: inline-flex;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: var(--gp-radius);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 20px;
  transition: background-color 0.15s, box-shadow 0.15s, color 0.15s, opacity 0.15s;
  text-decoration: none;
  line-height: 1.2;
}

.gp-btn:disabled { cursor: not-allowed; opacity: 0.6; }

.gp-btn--primary {
  background-image: var(--gp-aqua);
  color: #fff;
  box-shadow: 0 1px 2px 0 rgba(14, 116, 144, 0.2);
}

.gp-btn--primary:hover { background-image: var(--gp-aqua-deep); box-shadow: var(--gp-shadow-md); }

.gp-btn--outline {
  background: #fff;
  color: var(--gp-slate-600);
  border: 1px solid var(--gp-slate-200);
  font-weight: 500;
  box-shadow: var(--gp-shadow-sm);
}

.gp-btn--outline:hover { background: var(--gp-slate-50); color: var(--gp-slate-900); }

.gp-btn--sm { padding: 5px 12px; font-size: 11px; }
.gp-btn--link {
  background: none;
  border: 0;
  color: var(--gp-slate-400);
  font-size: 12px;
  padding: 0;
  cursor: pointer;
}
.gp-btn--link:hover { color: var(--gp-slate-700); }

.gp-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--gp-slate-500);
  text-decoration: none;
}
.gp-back:hover { color: var(--gp-slate-800); }

/* -----------------------------------------------------------------------------
   Tables
   -------------------------------------------------------------------------- */
.gp-table-scroll { overflow-x: auto; }

.gp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.gp-table--nowrap { white-space: nowrap; }

@media (min-width: 1024px) {
  .gp-card--guest-traffic-table {
    width: calc(100vw - 32px);
    max-width: none;
    margin-left: calc(50% - 50vw + 16px);
    margin-right: calc(50% - 50vw + 16px);
  }

  .gp-card--tour-sales-table {
    width: calc(100vw - 32px);
    max-width: none;
    margin-left: calc(50% - 50vw + 16px);
    margin-right: calc(50% - 50vw + 16px);
  }

  .gp-table-scroll--guest-traffic {
    overflow-x: visible;
  }

  .gp-table-scroll--tour-sales {
    overflow-x: visible;
  }

  .gp-table--guest-traffic {
    table-layout: fixed;
    font-size: 11px;
    line-height: 1.25;
    white-space: normal;
  }

  .gp-table--tour-sales {
    table-layout: fixed;
    font-size: 11px;
    line-height: 1.25;
    white-space: normal;
  }

  .gp-table--guest-traffic th,
  .gp-table--guest-traffic td {
    padding: 6px 7px;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .gp-table--tour-sales th,
  .gp-table--tour-sales td {
    padding: 6px 7px;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .gp-table--tour-sales th:nth-child(1),
  .gp-table--tour-sales td:nth-child(1) {
    width: 5%;
  }

  .gp-table--tour-sales th:nth-child(2),
  .gp-table--tour-sales td:nth-child(2),
  .gp-table--tour-sales th:nth-child(5),
  .gp-table--tour-sales td:nth-child(5),
  .gp-table--tour-sales th:nth-child(6),
  .gp-table--tour-sales td:nth-child(6),
  .gp-table--tour-sales th:nth-child(10),
  .gp-table--tour-sales td:nth-child(10),
  .gp-table--tour-sales th:nth-child(12),
  .gp-table--tour-sales td:nth-child(12) {
    width: 4.4%;
  }

  .gp-table--tour-sales th:nth-child(3),
  .gp-table--tour-sales td:nth-child(3),
  .gp-table--tour-sales th:nth-child(4),
  .gp-table--tour-sales td:nth-child(4),
  .gp-table--tour-sales th:nth-child(7),
  .gp-table--tour-sales td:nth-child(7),
  .gp-table--tour-sales th:nth-child(8),
  .gp-table--tour-sales td:nth-child(8),
  .gp-table--tour-sales th:nth-child(9),
  .gp-table--tour-sales td:nth-child(9),
  .gp-table--tour-sales th:nth-child(11),
  .gp-table--tour-sales td:nth-child(11) {
    width: 7%;
  }

  .gp-table--tour-sales th:nth-child(13),
  .gp-table--tour-sales td:nth-child(13),
  .gp-table--tour-sales th:nth-child(14),
  .gp-table--tour-sales td:nth-child(14),
  .gp-table--tour-sales th:nth-child(15),
  .gp-table--tour-sales td:nth-child(15),
  .gp-table--tour-sales th:nth-child(16),
  .gp-table--tour-sales td:nth-child(16),
  .gp-table--tour-sales th:nth-child(17),
  .gp-table--tour-sales td:nth-child(17),
  .gp-table--tour-sales th:nth-child(18),
  .gp-table--tour-sales td:nth-child(18) {
    width: 4.7%;
  }

  .gp-table--guest-traffic th:nth-child(1),
  .gp-table--guest-traffic td:nth-child(1) {
    width: 4%;
  }

  .gp-table--guest-traffic th:nth-child(2),
  .gp-table--guest-traffic td:nth-child(2) {
    width: 6%;
  }

  .gp-table--guest-traffic th:nth-child(3),
  .gp-table--guest-traffic td:nth-child(3),
  .gp-table--guest-traffic th:nth-child(5),
  .gp-table--guest-traffic td:nth-child(5),
  .gp-table--guest-traffic th:nth-child(6),
  .gp-table--guest-traffic td:nth-child(6),
  .gp-table--guest-traffic th:nth-child(7),
  .gp-table--guest-traffic td:nth-child(7),
  .gp-table--guest-traffic th:nth-child(10),
  .gp-table--guest-traffic td:nth-child(10),
  .gp-table--guest-traffic th:nth-child(11),
  .gp-table--guest-traffic td:nth-child(11),
  .gp-table--guest-traffic th:nth-child(13),
  .gp-table--guest-traffic td:nth-child(13),
  .gp-table--guest-traffic th:nth-child(17),
  .gp-table--guest-traffic td:nth-child(17) {
    width: 4.5%;
  }

  .gp-table--guest-traffic th:nth-child(4),
  .gp-table--guest-traffic td:nth-child(4),
  .gp-table--guest-traffic th:nth-child(8),
  .gp-table--guest-traffic td:nth-child(8),
  .gp-table--guest-traffic th:nth-child(14),
  .gp-table--guest-traffic td:nth-child(14),
  .gp-table--guest-traffic th:nth-child(15),
  .gp-table--guest-traffic td:nth-child(15),
  .gp-table--guest-traffic th:nth-child(16),
  .gp-table--guest-traffic td:nth-child(16) {
    width: 5.8%;
  }

  .gp-table--guest-traffic th:nth-child(9),
  .gp-table--guest-traffic td:nth-child(9),
  .gp-table--guest-traffic th:nth-child(12),
  .gp-table--guest-traffic td:nth-child(12),
  .gp-table--guest-traffic th:nth-child(18),
  .gp-table--guest-traffic td:nth-child(18) {
    width: 8.333%;
  }
}

.gp-table thead {
  background: var(--gp-slate-50);
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--gp-slate-400);
}

.gp-table th {
  padding: 8px 12px;
  font-weight: 600;
}

.gp-table tbody tr { border-top: 1px solid var(--gp-slate-100); }
.gp-table tbody tr:hover { background: rgba(248, 250, 252, 0.6); }

.gp-table td {
  padding: 8px 12px;
  color: var(--gp-slate-600);
  vertical-align: middle;
}

.gp-table td.gp-strong { font-weight: 500; color: var(--gp-slate-800); }
.gp-table .gp-center { text-align: center; }
.gp-table .gp-right { text-align: right; }
.gp-table .gp-num { font-variant-numeric: tabular-nums; }

.gp-cell-link {
  font-weight: 600;
  color: var(--gp-cyan-700);
  text-decoration: none;
}
.gp-cell-link:hover { text-decoration: underline; }

.gp-empty {
  padding: 32px 12px;
  text-align: center;
  color: var(--gp-slate-400);
}

.gp-row-selected { background: var(--gp-cyan-50) !important; }
.gp-row-muted { opacity: 0.5; }

/* -----------------------------------------------------------------------------
   Detail / key-value grids, badges, notes, alerts
   -------------------------------------------------------------------------- */
.gp-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  font-size: 13px;
}

@media (min-width: 640px) {
  .gp-facts--4 { grid-template-columns: repeat(4, 1fr); }
}

.gp-fact__label {
  display: block;
  font-size: 11px;
  color: var(--gp-slate-400);
}

.gp-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.gp-detail-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--gp-slate-900);
}

.gp-detail-sub {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--gp-slate-500);
}

.gp-badge {
  border-radius: 9999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
}

.gp-badge--danger {
  background: var(--gp-rose-50);
  border: 1px solid var(--gp-rose-200);
  color: var(--gp-rose-700);
}

.gp-note {
  border-radius: var(--gp-radius);
  background: var(--gp-slate-50);
  border: 1px solid rgba(226, 232, 240, 0.7);
  padding: 8px 12px;
  font-size: 13px;
  color: var(--gp-slate-600);
}

.gp-preview {
  border-radius: var(--gp-radius-lg);
  border: 1px solid var(--gp-cyan-200);
  background: rgba(236, 254, 255, 0.5);
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  font-size: 13px;
}

@media (min-width: 640px) {
  .gp-preview { grid-template-columns: repeat(4, 1fr); }
}

.gp-file-btn {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 8px;
  border-radius: var(--gp-radius);
  border: 1px solid var(--gp-slate-200);
  background: #fff;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--gp-slate-600);
  cursor: pointer;
  text-align: left;
}
.gp-file-btn:hover { background: var(--gp-slate-50); }

.gp-alert {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--gp-radius);
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
}

.gp-alert--danger {
  background: var(--gp-rose-50);
  border: 1px solid var(--gp-rose-200);
  color: var(--gp-rose-700);
}

.gp-alert--success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: var(--gp-emerald-600);
}

.gp-alert--warning {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #b45309;
}

.gp-state {
  border-radius: var(--gp-radius-xl);
  background: #fff;
  border: 1px solid var(--gp-card-border);
  padding: 40px;
  text-align: center;
  color: var(--gp-slate-400);
}

.gp-state--error {
  border-color: var(--gp-rose-200);
  color: var(--gp-rose-700);
}

.gp-saved {
  font-size: 13px;
  font-weight: 500;
  color: var(--gp-emerald-600);
}

/* -----------------------------------------------------------------------------
   Login — split-screen brand panel + form
   -------------------------------------------------------------------------- */
.gp-login {
  display: grid;
  min-height: 100vh;
  width: 100%;
  grid-template-columns: 1fr;
  background: #fff;
}

@media (min-width: 1024px) {
  .gp-login { grid-template-columns: 1fr 1fr; }
}

.gp-login__brand {
  position: relative;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background-image: var(--gp-login-brand);
  padding: 48px;
  color: #fff;
}

@media (min-width: 1024px) {
  .gp-login__brand { display: flex; }
}

.gp-login__dots {
  pointer-events: none;
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background-image: radial-gradient(circle at 1px 1px, #fff 1px, transparent 0);
  background-size: 28px 28px;
}

.gp-login__brand-top,
.gp-login__brand-mid,
.gp-login__brand-foot { position: relative; }

.gp-login__brand-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gp-login__brand-logo {
  border-radius: var(--gp-radius-lg);
  background: rgba(255, 255, 255, 0.1);
  padding: 6px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
}

.gp-login__brand-logo img { height: 36px; max-width: 120px; object-fit: contain; }
.gp-login__brand-logo i { font-size: 28px; color: #fff; }

.gp-login__brand-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.gp-login__brand-kicker {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gp-cyan-200);
}

.gp-login__brand-mid { max-width: 28rem; }

.gp-login__tagline {
  font-size: 30px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0;
}

.gp-login__highlights {
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gp-login__highlights li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  color: #cffafe;
}

.gp-login__hl-check {
  margin-top: 2px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.15);
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 10px;
  color: #fff;
}

.gp-login__foot {
  font-size: 12px;
  color: rgba(165, 243, 252, 0.6);
}

.gp-login__form-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #fff;
}

@media (min-width: 640px) {
  .gp-login__form-wrap { padding: 48px; }
}

.gp-login__form {
  width: 100%;
  max-width: 24rem;
}

.gp-login__topbar {
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gp-login__mini-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

@media (min-width: 1024px) {
  .gp-login__mini-brand { display: none; }
}

.gp-login__mini-brand img { height: 32px; max-width: 120px; object-fit: contain; }
.gp-login__mini-brand span { font-size: 16px; font-weight: 600; color: var(--gp-slate-900); }

.gp-login__lang {
  margin-left: auto;
  display: inline-flex;
  border-radius: 9999px;
  border: 1px solid var(--gp-slate-200);
  background: #fff;
  padding: 2px;
  box-shadow: var(--gp-shadow-sm);
}

.gp-login__title {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--gp-slate-900);
  margin: 0;
}

.gp-login__subtitle {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--gp-slate-500);
}

.gp-login__fields {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.gp-login__label {
  margin-bottom: 6px;
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--gp-slate-700);
}

.gp-login__input {
  width: 100%;
  height: 44px;
  border-radius: var(--gp-radius);
  border: 1px solid var(--gp-slate-300);
  background: #fff;
  padding: 0 14px;
  font-size: 13px;
  color: var(--gp-slate-900);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.gp-login__input::placeholder { color: var(--gp-slate-400); }

.gp-login__input:focus {
  outline: none;
  border-color: var(--gp-cyan-600);
  box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.1);
}

select.gp-login__input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.gp-login__submit {
  width: 100%;
  height: 44px;
  border: 0;
  border-radius: var(--gp-radius);
  background-image: var(--gp-aqua);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 2px 0 rgba(14, 116, 144, 0.2);
  transition: background-image 0.15s, box-shadow 0.15s, opacity 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.gp-login__submit:hover { background-image: var(--gp-aqua-deep); box-shadow: var(--gp-shadow-md); }
.gp-login__submit:disabled { opacity: 0.6; cursor: not-allowed; }

.gp-login__error {
  border-radius: var(--gp-radius);
  background: var(--gp-rose-50);
  border: 1px solid var(--gp-rose-200);
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gp-rose-700);
}

/* visually-hidden honeypot */
.gp-hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.gp-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* -----------------------------------------------------------------------------
   Popup status/badge/alert compatibility
   The three popup ThemeBases (TourSaleDetail / TransferGuests / AirportCheckInConfirm)
   emit dynamic CSS class names for status alerts and badges. The markup keeps those
   bindings verbatim; these rules make the emitted classes match the gp-* look.
   -------------------------------------------------------------------------- */
.gp-app .guide-confirm-alert,
.gp-app .guide-transfer-alert {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--gp-radius);
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  background: var(--gp-slate-50);
  border: 1px solid var(--gp-slate-200);
  color: var(--gp-slate-700);
}

.gp-app .guide-confirm-alert--success,
.gp-app .guide-transfer-alert--success {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #047857;
}

.gp-app .guide-confirm-alert--danger,
.gp-app .guide-transfer-alert--danger {
  background: var(--gp-rose-50);
  border-color: var(--gp-rose-200);
  color: var(--gp-rose-700);
}

.gp-app .guide-confirm-status,
.gp-app .guide-transfer-status,
.gp-app .guide-sale-detail-status {
  display: inline-block;
  border-radius: 9999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  background: var(--gp-slate-100);
  color: var(--gp-slate-600);
  white-space: nowrap;
}

.gp-app .guide-confirm-status--success,
.gp-app .guide-transfer-status--success,
.gp-app .guide-sale-detail-status--success {
  background: #ecfdf5;
  color: #047857;
}

.gp-app .guide-confirm-status--danger,
.gp-app .guide-transfer-status--danger,
.gp-app .guide-sale-detail-status--danger {
  background: var(--gp-rose-50);
  color: var(--gp-rose-700);
}

.gp-app .guide-sale-detail-row--danger td {
  color: var(--gp-rose-700);
  opacity: 0.75;
}

/* Tour sale detail — full-page version of the old popup view */
.guide-sale-detail-page {
  gap: 18px;
}

.guide-sale-detail-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--gp-radius-xl);
  background: rgba(255, 255, 255, 0.9);
  padding: 10px 12px;
  box-shadow: var(--gp-shadow-sm);
}

.guide-sale-detail-ticket {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  border-radius: var(--gp-radius-lg);
  background-image: var(--gp-aqua);
  color: #fff;
  padding: 8px 14px;
  box-shadow: 0 10px 24px -18px rgba(8, 47, 73, 0.65);
}

.guide-sale-detail-ticket i {
  color: rgba(255, 255, 255, 0.92);
}

.guide-sale-detail-ticket .gp-fact__label {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1;
}

.guide-sale-detail-ticket strong {
  display: block;
  line-height: 1.15;
}

.guide-sale-detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.guide-sale-detail-actions .gp-back {
  border-radius: var(--gp-radius);
  background: var(--gp-slate-50);
  border: 1px solid var(--gp-slate-200);
  color: var(--gp-cyan-700);
  font-weight: 600;
  padding: 7px 12px;
}

.guide-sale-detail-actions .gp-back:hover {
  background: var(--gp-cyan-50);
  color: var(--gp-cyan-700);
}

.guide-sale-detail-summary {
  padding: 18px;
}

@media (min-width: 1024px) {
  .guide-sale-detail-summary {
    padding: 22px;
  }
}

.guide-sale-detail-summary .gp-detail-head {
  align-items: center;
  border-bottom: 1px solid rgba(226, 232, 240, 0.75);
  padding-bottom: 14px;
}

.guide-sale-detail-summary .gp-detail-title {
  max-width: 900px;
  font-size: 19px;
  line-height: 1.25;
}

.guide-sale-detail-summary .gp-facts {
  gap: 10px;
}

.guide-sale-detail-summary .gp-facts > div {
  min-height: 58px;
  border: 1px solid rgba(226, 232, 240, 0.78);
  border-radius: var(--gp-radius-lg);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  padding: 10px 12px;
}

.guide-sale-detail-summary .gp-fact__label {
  margin-bottom: 4px;
  color: var(--gp-slate-400);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.guide-sale-detail-table-card {
  box-shadow: 0 12px 28px -24px rgba(15, 23, 42, 0.55);
}

.guide-sale-detail-table-card .gp-card__title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
}

.guide-sale-detail-table-card .gp-table th,
.guide-sale-detail-table-card .gp-table td {
  padding-top: 8px;
  padding-bottom: 8px;
}

.guide-sale-detail-table-card .gp-table tbody tr:hover {
  background: var(--gp-cyan-50);
}

@media (max-width: 767.98px) {
  .guide-sale-detail-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .guide-sale-detail-ticket,
  .guide-sale-detail-actions,
  .guide-sale-detail-actions .gp-back,
  .guide-sale-detail-actions .gp-btn {
    width: 100%;
  }

  .guide-sale-detail-actions {
    justify-content: stretch;
  }

  .guide-sale-detail-summary .gp-detail-head {
    align-items: flex-start;
  }

  .guide-sale-detail-summary .gp-detail-title {
    font-size: 17px;
  }
}

/* -----------------------------------------------------------------------------
   Language switcher — TR/EN/RU pills + "…" dropdown for the rest
   (mirrors the operator panel's Pills mode, in the guide's light palette).
   -------------------------------------------------------------------------- */
.gp-lang-more {
  position: relative;
  display: inline-flex;
}

.gp-lang-more__trigger {
  list-style: none;
  cursor: pointer;
  min-width: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gp-lang-more__trigger::-webkit-details-marker { display: none; }

.gp-lang-more[open] > .gp-lang-more__menu { display: block; }

.gp-lang-more__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: auto;
  display: none;
  min-width: 172px;
  padding: 6px;
  z-index: 60;
  background: #fff;
  border: 1px solid var(--gp-slate-200);
  border-radius: var(--gp-radius-lg);
  box-shadow: var(--gp-shadow-xl);
}

.gp-lang-more__item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 7px 10px;
  border-radius: var(--gp-radius);
  font-size: 12px;
  font-weight: 500;
  color: var(--gp-slate-600);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.gp-lang-more__item:hover { background: var(--gp-slate-50); color: var(--gp-slate-900); }
.gp-lang-more__item.is-active { background: var(--gp-cyan-50); color: var(--gp-cyan-700); font-weight: 600; }

.gp-lang-flag {
  width: 18px;
  height: 13px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08);
}

/* -----------------------------------------------------------------------------
   Layout stability — keep section width constant across tabs
   • Reserve the scrollbar gutter so a taller page doesn't shift/resize content.
   • Never let a wide results table stretch the page: it scrolls inside
     .gp-table-scroll instead (flex/grid children need min-width:0 to allow that).
   -------------------------------------------------------------------------- */
/* Force a permanent viewport scrollbar so section width/position never shifts
   when a tab's content is short (no scrollbar) vs tall (scrollbar). Target :root
   only — the layout nests a second <html> (LoginLayout), and a bare `html`
   selector would give that inner element a second, empty scrollbar track. */
:root { overflow-y: scroll; scrollbar-gutter: stable; }

.gp-app { overflow-x: clip; }

.gp-card { min-width: 0; }

.gp-table-scroll { max-width: 100%; }

.gp-app .gp-grid { min-width: 0; }
.gp-app .gp-grid > * { min-width: 0; }

@media (max-width: 767.98px) {
  .gp-main,
  .gp-main--narrow {
    padding: 14px 10px 20px;
    gap: 14px;
  }

  .gp-hero__inner {
    padding: 22px 12px;
    align-items: flex-start;
    gap: 12px;
  }

  .gp-hero__title {
    max-width: 100%;
    font-size: 22px;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .gp-hero__sub {
    overflow-wrap: anywhere;
  }

  .gp-hero__chip {
    width: 100%;
    padding: 8px 12px;
  }

  .gp-card {
    border-radius: var(--gp-radius-lg);
  }

  .gp-card--pad {
    padding: 14px;
  }

  .gp-card__title,
  .gp-section-head {
    border-radius: var(--gp-radius-lg) var(--gp-radius-lg) 0 0;
    padding: 10px 14px;
  }

  .gp-section-head {
    margin: -14px -14px 14px;
  }

  .gp-grid {
    gap: 12px;
  }

  .gp-facts,
  .gp-facts--4,
  .gp-preview {
    grid-template-columns: 1fr;
  }

  .gp-detail-head {
    flex-direction: column;
    align-items: stretch;
  }

  .gp-detail-title {
    font-size: 16px;
    overflow-wrap: anywhere;
  }

  .gp-form-actions {
    align-items: stretch;
    justify-content: flex-start;
  }

  .gp-form-actions .gp-btn {
    width: 100%;
  }

  .gp-radio-row,
  .gp-check-row {
    gap: 12px;
  }

  .gp-table-scroll {
    margin-inline: -1px;
    -webkit-overflow-scrolling: touch;
  }

  .gp-table {
    min-width: 720px;
    font-size: 12px;
  }

  .gp-table th,
  .gp-table td {
    padding: 7px 10px;
  }
}

@media (max-width: 479.98px) {
  .gp-main,
  .gp-main--narrow {
    padding-inline: 8px;
  }

  .gp-hero__inner {
    padding-inline: 10px;
  }

  .gp-card--pad {
    padding: 12px;
  }

  .gp-section-head {
    margin: -12px -12px 12px;
    padding-inline: 12px;
  }

  .gp-card__title {
    padding-inline: 12px;
  }

  .gp-field {
    height: 38px;
    font-size: 12px;
  }

  .gp-btn {
    min-height: 38px;
    padding-inline: 14px;
  }
}
