/* ── Site header ────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 800;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.site-header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-lockup img {
  width: 38px;
  height: 38px;
}

.brand-copy strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-copy span {
  display: block;
  color: var(--text-subtle);
  font-size: 0.82rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background var(--transition), color var(--transition);
}

.site-nav a:hover {
  color: var(--text);
  background: var(--tint);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px;
}

.menu-toggle svg {
  width: 18px;
  height: 18px;
}

/* ── Buttons ────────────────────────────────────────────────────── */
.ghost-button,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: var(--radius);
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), box-shadow var(--transition);
}

.ghost-button {
  background: transparent;
  color: var(--primary);
  border-color: var(--border);
}

.ghost-button:hover {
  background: var(--tint);
  border-color: color-mix(in srgb, var(--primary) 24%, transparent 76%);
}

.primary-button {
  background: var(--primary);
  color: white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

.primary-button:hover {
  box-shadow: 0 3px 10px rgba(0,0,0,0.18);
  filter: brightness(1.08);
}

.ghost-button:disabled,
.primary-button:disabled {
  opacity: 0.45;
  cursor: default;
  box-shadow: none;
  filter: none;
}

/* ── Landing page ───────────────────────────────────────────────── */
.landing-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
}

.landing-shell {
  text-align: center;
}

.landing-shell img {
  width: 88px;
  height: 88px;
  margin: 0 auto 18px;
}

.landing-shell h1 {
  margin: 0;
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.landing-shell p {
  color: var(--text-muted);
  margin: 10px auto 40px;
  max-width: 600px;
  font-size: 1.05rem;
}

.landing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 230px;
  padding: 28px;
  color: white;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform var(--transition), box-shadow var(--transition);
}

.landing-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.landing-card svg {
  width: 36px;
  height: 36px;
  opacity: 0.9;
}

.landing-card img.landing-card-logo {
  width: auto;
  height: 40px;
  max-width: min(220px, 85%);
  object-fit: contain;
  align-self: center;
  opacity: 0.98;
}

.landing-card--light {
  color: #0D1B2E;
  border-color: rgba(66, 153, 244, 0.28);
}

.landing-card--light p {
  color: rgba(13, 27, 46, 0.78);
}

.landing-card--light .cta {
  color: #1a6fc9;
}

.landing-card h2 {
  margin: 0;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

.landing-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.6;
}

.landing-card .cta {
  margin-top: auto;
  font-weight: 600;
  font-size: 0.92rem;
  opacity: 0.9;
}

/* ── Hero ───────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(8, 18, 40, 0.70) 0%, rgba(8, 18, 40, 0.12) 65%, transparent 100%);
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  color: white;
  padding: 80px 0 56px;
  max-width: 620px;
}

.hero-content h1 {
  margin: 0 0 14px;
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero-content p {
  margin: 0 0 28px;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
}

/* ── Cards ──────────────────────────────────────────────────────── */
.product-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  border: 1px solid var(--border);
  transition: box-shadow var(--transition), transform var(--transition);
}

.product-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.product-card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.product-card p {
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
}

/* ── Steps ──────────────────────────────────────────────────────── */
.steps {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.step-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  border: 1px solid var(--border);
}

.step-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--tint);
  color: var(--primary);
  margin-bottom: 16px;
  font-weight: 700;
  font-size: 1rem;
}

.step-card h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 600;
}

.step-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ── FAQ ────────────────────────────────────────────────────────── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.faq-list details {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
}

.faq-list summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 18px 20px;
  user-select: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--text-subtle);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* ── Footer ─────────────────────────────────────────────────────── */
.site-footer {
  padding: 36px 0 calc(var(--chat-bar-height) + 24px);
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.site-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-subtle);
}

/* ── Metadata highlight ─────────────────────────────────────────── */
.metadata-highlight {
  animation: metadataPulse 0.8s ease;
  outline: 2px solid color-mix(in srgb, var(--primary) 35%, transparent 65%);
  outline-offset: 2px;
  border-radius: 12px;
}

@keyframes metadataPulse {
  0%   { outline-color: transparent; }
  40%  { outline-color: color-mix(in srgb, var(--primary) 50%, transparent 50%); }
  100% { outline-color: color-mix(in srgb, var(--primary) 35%, transparent 65%); }
}

/* ── Chat / call bar ────────────────────────────────────────────── */
.chat-call-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-height: var(--chat-bar-height);
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 -1px 0 var(--border), 0 -6px 20px rgba(11, 31, 94, 0.06);
}

.chat-toggle-group {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
  width: min(520px, 100%);
}

.chat-toggle {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  background: transparent;
  color: var(--text-subtle);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}

.chat-toggle svg {
  width: 17px;
  height: 17px;
}

.chat-toggle.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 4px rgba(11, 31, 94, 0.10);
}

/* z-index boost for third-party widgets */
body [id*="webrtc"], body [id*="webchat"], body [id*="Webchat"],
body [id*="click-to-call"], body [class*="webrtc"], body [class*="webchat"],
body [class*="Webchat"], body [class*="click-to-call"] {
  z-index: 9400 !important;
}

/* ── XApp panel ─────────────────────────────────────────────────── */
.xapp-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 22, 40, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 9100;
}

.xapp-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.xapp-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  max-width: 100%;
  height: 100vh;
  background: var(--surface);
  box-shadow: -8px 0 28px rgba(11, 31, 94, 0.12);
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 9200;
  display: flex;
  flex-direction: column;
}

.xapp-panel.open {
  transform: translateX(0);
}

.xapp-panel-header {
  height: 56px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.xapp-panel-header button {
  border: 0;
  background: transparent;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--text-muted);
}

.xapp-panel iframe {
  width: 100%;
  height: calc(100vh - 56px);
  border: none;
}

/* ── Nav view host — replaces page sections between header and footer ── */
.nav-view-host {
  display: none;
}

.nav-view-host.active {
  display: block;
  min-height: calc(100svh - var(--header-height) - 160px);
  animation: navPageIn 240ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes navPageIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Hide page sections when panel view is active */
body.panel-active > section,
body.panel-active > .hero {
  display: none !important;
}

.nav-view-head {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  border-top: 3px solid var(--primary);
  padding: 0 24px;
  height: 58px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-view-title {
  flex: 1;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.nav-view-close {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--tint);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 5px 13px 5px 9px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.nav-view-close::before {
  content: "←";
  font-size: 0.95rem;
  line-height: 1;
}

.nav-view-close:hover {
  background: color-mix(in srgb, var(--primary) 10%, white 90%);
  color: var(--primary);
  border-color: color-mix(in srgb, var(--primary) 20%, transparent 80%);
}

/* ── Demo panels (in page flow) ─────────────────────────────────── */
.demo-panel { display: none; }

.demo-panel.active {
  display: block;
  width: min(680px, calc(100% - 48px));
  margin: 36px auto 36px;
  animation: panelIn 200ms ease forwards;
}

/* ── Panel shared primitives ────────────────────────────────────── */
.panel-section {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.panel-section:last-child { border-bottom: none; }

.panel-subheading {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.panel-label {
  font-size: 0.82rem;
  color: var(--text-subtle);
}

.panel-cta-btn {
  width: 100%;
  padding: 13px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
  transition: filter var(--transition), box-shadow var(--transition);
}

.panel-cta-btn:hover {
  filter: brightness(1.08);
  box-shadow: 0 3px 10px rgba(0,0,0,0.18);
}

/* ── Account overview ───────────────────────────────────────────── */
.panel-account-card {
  background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 65%, var(--accent) 35%));
  color: white;
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 4px;
}

.panel-account-num {
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  opacity: 0.70;
  margin: 8px 0 14px;
}

.panel-balance {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.panel-txn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}

.panel-txn:last-child { border-bottom: none; }
.panel-txn .neg { color: #C0392B; font-weight: 600; }
.panel-txn .pos { color: #0A7C6E; font-weight: 600; }

/* ── Appointment scheduler ──────────────────────────────────────── */
.panel-date-grid {
  display: flex;
  gap: 8px;
}

.panel-date-btn {
  flex: 1;
  padding: 12px 4px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  font-size: 0.8rem;
  text-align: center;
  cursor: pointer;
  line-height: 1.4;
  color: var(--text-muted);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.panel-date-btn.active,
.panel-date-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.panel-time-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.panel-time-btn {
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  font-size: 0.92rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.panel-time-btn.active,
.panel-time-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* ── Pre-visit checklist ────────────────────────────────────────── */
.panel-check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  font-size: 0.92rem;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
}

.panel-check-item:last-child { border-bottom: none; }

.panel-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--tint);
  border-radius: 10px;
  padding: 12px 14px;
  line-height: 1.6;
}

/* ── Flight search summary ──────────────────────────────────────── */
.panel-flight-route-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--tint);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 4px;
}

.panel-flight-endpoint { text-align: center; }

.panel-flight-big-code {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.panel-flight-endpoint .panel-label {
  margin-top: 4px;
}

.panel-flight-route-arrow {
  font-size: 1.4rem;
  color: var(--text-subtle);
  flex-shrink: 0;
}

.panel-search-chips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.panel-search-chip {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.panel-search-chip-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.panel-search-chip-value {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}

/* ── Flight options ─────────────────────────────────────────────── */
.panel-flight-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  margin-bottom: 10px;
  cursor: pointer;
  background: var(--surface);
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.panel-flight-card:hover {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 4%, white 96%);
  box-shadow: var(--shadow-sm);
}

.panel-flight-card.selected {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 7%, white 93%);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 15%, transparent 85%);
}

.panel-flight-card-times {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.panel-flight-card-arrow {
  font-size: 0.85rem;
  color: var(--text-subtle);
  font-weight: 400;
}

.panel-flight-card-meta {
  display: flex;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.panel-flight-card-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  text-align: right;
  white-space: nowrap;
}

.panel-flight-card-num {
  font-size: 0.78rem;
  color: var(--text-subtle);
  text-align: right;
  margin-top: 2px;
}

/* ── Seat map ───────────────────────────────────────────────────── */
.panel-flight-info {
  font-size: 0.9rem;
  margin-bottom: 14px;
  color: var(--text-muted);
}

.panel-seat-grid { display: flex; flex-direction: column; gap: 4px; }

.panel-seat-row {
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: center;
}

.panel-seat-row .aisle { width: 14px; }

.panel-seat-btn {
  width: 34px;
  height: 28px;
  border-radius: 6px 6px 3px 3px;
  border: 1px solid var(--border);
  font-size: 0.66rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--tint);
  color: var(--primary);
  transition: background var(--transition);
}

.panel-seat-btn.occupied {
  background: var(--bg);
  color: var(--text-subtle);
  cursor: not-allowed;
  border-color: var(--border);
}

.panel-seat-btn.selected {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.panel-seat-legend {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  font-size: 0.75rem;
  color: var(--text-subtle);
}

.panel-seat-legend span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.panel-seat-legend span::before {
  content: '';
  width: 12px;
  height: 11px;
  border-radius: 3px 3px 2px 2px;
  border: 1px solid var(--border);
}

.panel-seat-legend .seat-avail::before { background: var(--tint); }
.panel-seat-legend .seat-sel::before   { background: var(--primary); border-color: var(--primary); }
.panel-seat-legend .seat-occ::before   { background: var(--bg); }

/* ── Itinerary viewer ───────────────────────────────────────────── */
.panel-itin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.panel-itin-route {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.panel-itin-airport { text-align: center; }

.panel-itin-code {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.panel-itin-time { font-size: 1rem; font-weight: 600; }

.panel-itin-arrow {
  font-size: 1.3rem;
  color: var(--text-subtle);
}

.panel-itin-details {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.88rem;
  color: var(--text-muted);
  background: var(--tint);
  border-radius: 10px;
  padding: 12px 14px;
}

/* ── Plan comparison ────────────────────────────────────────────── */
.panel-plan-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.panel-plan-table th {
  text-align: center;
  padding: 10px 6px;
  font-weight: 700;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border);
}

.panel-plan-table th.highlight {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.panel-plan-table th span {
  display: block;
  font-size: 1rem;
  color: inherit;
}

.panel-plan-table td {
  text-align: center;
  padding: 8px 6px;
  border-bottom: 1px solid var(--border);
}

.panel-plan-table td:first-child {
  text-align: left;
  color: var(--text-muted);
  font-weight: 600;
}

.panel-plan-table tr:last-child td { border-bottom: none; }

/* ── Order status ───────────────────────────────────────────────── */
.panel-order-ref {
  font-size: 0.9rem;
  margin-bottom: 18px;
  color: var(--text-muted);
}

.panel-progress {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 18px;
}

.panel-progress::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 0; right: 0;
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.panel-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--text-subtle);
  position: relative;
  z-index: 1;
}

.panel-step::before {
  content: '';
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--bg);
  border: 2px solid var(--border);
}

.panel-step.done { color: var(--primary); }
.panel-step.done::before { background: var(--primary); border-color: var(--primary); }

.panel-step.active::before {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 24%, white 76%);
}

.panel-order-detail {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.88rem;
  color: var(--text-muted);
  background: var(--tint);
  border-radius: 10px;
  padding: 12px 14px;
}

/* ── Click & collect ────────────────────────────────────────────── */
.panel-store-name { font-weight: 700; font-size: 1rem; margin-bottom: 3px; }
.panel-store-addr { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 14px; }

.panel-slot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}

.panel-slot:hover,
.panel-slot:has(input:checked) {
  border-color: var(--primary);
  background: var(--tint);
  color: var(--text);
}

/* ── Confirmation ───────────────────────────────────────────────── */
.panel-confirm-content {
  text-align: center;
  padding: 36px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.panel-confirm-icon {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: color-mix(in srgb, #0A7C6E 12%, white 88%);
  color: #0A7C6E;
  font-size: 1.6rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.panel-confirm-content strong {
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.panel-confirm-content p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ── Escalation ─────────────────────────────────────────────────── */
.panel-escalation-content {
  text-align: center;
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.panel-escalation-icon svg { width: 42px; height: 42px; color: var(--primary); }

.panel-escalation-content strong {
  font-size: 1.1rem;
}

.panel-escalation-content p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.panel-wait-badge {
  background: var(--tint);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--primary) 15%, transparent 85%);
}

/* ── Tooltip ────────────────────────────────────────────────────── */
.page-tooltip {
  position: absolute;
  inset: auto 0 calc(100% + 8px) auto;
  background: var(--text);
  color: white;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 0.82rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity var(--transition), transform var(--transition);
}

.page-tooltip.show {
  opacity: 1;
  transform: translateY(0);
}

/* ── Profile FAB + modal ────────────────────────────────────────── */
.profile-fab {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--primary);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: box-shadow var(--transition), background var(--transition);
}

.profile-fab:hover {
  background: var(--tint);
  box-shadow: var(--shadow);
}

.profile-fab svg {
  width: 20px;
  height: 20px;
}

.profile-overlay {
  position: fixed;
  left: 16px;
  bottom: calc(var(--chat-bar-height) + 10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  transform: translateY(6px);
  z-index: 9300;
}

.profile-overlay.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.profile-modal {
  background: var(--surface);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  width: 300px;
  max-width: calc(100vw - 32px);
  overflow: hidden;
}

.profile-modal-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: var(--bg);
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

.profile-card:hover {
  background: var(--tint);
  border-color: var(--border);
}

.profile-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 1px solid color-mix(in srgb, var(--primary) 15%, transparent 85%);
}

.profile-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.profile-info strong {
  font-size: 0.92rem;
}

.profile-info span {
  color: var(--text-subtle);
  font-size: 0.8rem;
}

.profile-id {
  font-family: monospace;
  color: var(--primary) !important;
  font-weight: 600;
  font-size: 0.78rem !important;
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header-inner {
    min-height: 64px;
    flex-wrap: wrap;
    padding: 10px 0;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding-bottom: 10px;
  }

  .site-nav.open {
    display: flex;
  }

  .nav-actions {
    margin-left: auto;
  }

  .hero {
    min-height: 400px;
  }

  .hero-content {
    padding: 64px 0 40px;
  }

  .hero-content h1 {
    font-size: 2.1rem;
  }

  .landing-shell h1 {
    font-size: 2.1rem;
  }

  .chat-call-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .chat-toggle-group {
    width: 100%;
  }

  .chat-toggle {
    flex: 1;
    justify-content: center;
  }

  .xapp-panel {
    width: 100%;
  }

  .demo-panel.active {
    width: calc(100% - 32px);
    margin: 20px auto 24px;
  }

  .nav-view-head {
    padding: 0 16px;
  }
}
