/* ============================================================
   Corporate Travel Admin - Main Stylesheet
   ============================================================ */

/* ── Variables ───────────────────────────────────────────── */
:root {
  --sidebar-width:     260px;
  --topbar-height:     64px;

  --color-bg:          #f1f5f9;
  --color-surface:     #ffffff;
  --color-border:      #d9d9d9;

  --color-primary:     #3b82f6;
  --color-primary-dk:  #2563eb;
  --color-primary-lt:  #eff6ff;

  /* Button colour - defaults to primary, but Branding can override per-theme. */
  --color-button:      var(--color-primary);
  --color-button-dk:   var(--color-primary-dk);
  --color-success:     #10b981;
  --color-danger:      #ef4444;
  --color-warning:     #f59e0b;
  --color-info:        #6366f1;
  --color-secondary:   #64748b;

  --color-text:        #0f172a;
  --color-text-muted:  #64748b;
  --color-muted:       #64748b;

  --radius:            .75rem;

  --sidebar-bg:        #0f172a;
  --sidebar-text:      #94a3b8;
  --sidebar-active-bg: rgba(59,130,246,.12);
  --sidebar-active:    #ffffff;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:  0 4px 16px rgba(0,0,0,.08);
  --shadow-lg:  0 10px 40px rgba(0,0,0,.12);

  --radius-sm:  .5rem;
  --radius-md:  .75rem;
  --radius-lg:  1rem;
  --radius-xl:  1.25rem;

  --font-base:  'Inter', system-ui, -apple-system, sans-serif;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; }
body { font-family: var(--font-base); color: var(--color-text); line-height: 1.6; }
a    { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
svg  { display: inline-block; vertical-align: middle; }
code { font-family: 'Fira Code', 'Consolas', monospace; }
img  { max-width: 100%; }

/* ── Auth Layout (3 variants - toggled by body[data-login]) ─────────────
   - default (data-login="")         → Centered Card    (ThinkGPT style)
   - data-login="photo"              → Photo Split      (Cursorlabs style)
   - data-login="illustration"       → Illustration Split (Pouyesh style)
   The HTML in auth/login.php always renders form-side + showcase; CSS
   shows/hides the showcase and rearranges the layout per variant.
   ────────────────────────────────────────────────────────────────────── */
.auth-body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #111827;
  background: #f4f5f7;
}

.auth-shell {
  min-height: 100vh;
  display: flex;
}

/* ── Form side (shared shell - variants restyle via [data-login]) ───── */
.auth-form-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 2.25rem 2.5rem;
  background: #fff;
  position: relative;
  z-index: 1;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: #111827;
}
.auth-brand-mark {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg,#6366f1,#8b5cf6);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: .9rem;
  letter-spacing: -.02em;
}
.auth-brand-logo {
  display: block;
  max-height: 44px;
  max-width: 180px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.auth-form-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  padding: 2rem 0;
}

.auth-form-head { margin-bottom: 1.5rem; }
.auth-title    { font-size: 1.6rem; font-weight: 700; color: #111827; margin: 0 0 .35rem; letter-spacing: -.01em; }
.auth-subtitle { color: #6b7280; font-size: .9rem; margin: 0; line-height: 1.5; }

.auth-form     { display: flex; flex-direction: column; gap: 1rem; }

.auth-form .form-label {
  display: block;
  font-size: .82rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: .35rem;
}
.auth-form .form-control {
  width: 100%;
  padding: .65rem .85rem;
  font-size: .9rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  transition: border-color .15s, box-shadow .15s;
  box-sizing: border-box;
}
.auth-form .form-control:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99,102,241,.12);
}

.auth-form .checkbox-label {
  display: inline-flex;
  align-items: center;
  font-size: .82rem;
  color: #374151;
  cursor: pointer;
}

.auth-submit {
  width: 100%;
  padding: .75rem 1rem;
  font-size: .9rem;
  font-weight: 600;
  color: #fff;
  background: #111827;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-top: .5rem;
  transition: background .15s, transform .05s, box-shadow .15s;
}
.auth-submit:hover  { background: #1f2937; box-shadow: 0 4px 12px rgba(17,24,39,.18); }
.auth-submit:active { transform: translateY(1px); }

.auth-form-foot { margin-top: .75rem; text-align: center; }
.auth-link {
  color: var(--color-primary);
  font-size: .82rem;
  font-weight: 500;
  text-decoration: none;
}
.auth-link:hover { text-decoration: underline; }

.auth-foot {
  margin-top: 2rem;
  font-size: .78rem;
  color: #9ca3af;
}

/* ── Showcase side (only used by split variants) ─────────────────────── */
.auth-showcase {
  display: none;
  flex: 1;
  position: relative;
  overflow: hidden;
}
.auth-showcase-photo,
.auth-showcase-illustration {
  display: none;
  width: 100%;
  height: 100%;
  position: relative;
}

/* ─────────────────────────────────────────────────────────────────────
   VARIANT 1 - Centered Card (default, data-login="" or no attribute)
   ───────────────────────────────────────────────────────────────────── */
.auth-body[data-login=""],
.auth-body:not([data-login]),
.auth-body[data-login="centered"] {
  background: #f4f5f7;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}
.auth-body[data-login=""] .auth-shell,
.auth-body:not([data-login]) .auth-shell,
.auth-body[data-login="centered"] .auth-shell {
  width: 100%;
  max-width: 450px;
  min-height: 0;
  display: block;
}
.auth-body[data-login=""] .auth-form-side,
.auth-body:not([data-login]) .auth-form-side,
.auth-body[data-login="centered"] .auth-form-side {
  flex: none;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 2.25rem 2rem;
  box-shadow: 0 4px 24px rgba(17,24,39,.06);
}
.auth-body[data-login=""] .auth-brand,
.auth-body:not([data-login]) .auth-brand,
.auth-body[data-login="centered"] .auth-brand {
  flex-direction: column;
  align-items: center;
  gap: .85rem;
  margin-bottom: 1rem;
}
.auth-body[data-login=""] .auth-brand-mark,
.auth-body:not([data-login]) .auth-brand-mark,
.auth-body[data-login="centered"] .auth-brand-mark {
  width: 56px;
  height: 56px;
  font-size: 1.25rem;
  border-radius: 50%;
  background: var(--color-primary);
}
.auth-body[data-login=""] .auth-brand-logo,
.auth-body:not([data-login]) .auth-brand-logo,
.auth-body[data-login="centered"] .auth-brand-logo {
  max-height: 64px;
  max-width: 220px;
  margin: 0 auto;
}
.auth-body[data-login=""] .auth-form-head,
.auth-body:not([data-login]) .auth-form-head,
.auth-body[data-login="centered"] .auth-form-head {
  text-align: center;
}
.auth-body[data-login=""] .auth-form-wrap,
.auth-body:not([data-login]) .auth-form-wrap,
.auth-body[data-login="centered"] .auth-form-wrap {
  padding: 0;
  max-width: none;
}
.auth-body[data-login=""] .auth-submit,
.auth-body:not([data-login]) .auth-submit,
.auth-body[data-login="centered"] .auth-submit {
  background: var(--color-button);
  box-shadow: 0 4px 14px var(--color-primary-lt);
}
.auth-body[data-login=""] .auth-submit:hover,
.auth-body:not([data-login]) .auth-submit:hover,
.auth-body[data-login="centered"] .auth-submit:hover {
  background: var(--color-button-dk);
  box-shadow: 0 6px 20px var(--color-primary-lt);
}
.auth-body[data-login=""] .auth-foot,
.auth-body:not([data-login]) .auth-foot,
.auth-body[data-login="centered"] .auth-foot {
  text-align: center;
  margin-top: 1.25rem;
  font-size: .75rem;
  max-width: 460px;
  line-height: 1.5;
}

/* ─────────────────────────────────────────────────────────────────────
   VARIANT 2 - Photo Split (data-login="photo")
   ───────────────────────────────────────────────────────────────────── */
.auth-body[data-login="photo"] {
  background: #fff;
}
.auth-body[data-login="photo"] .auth-form-side {
  max-width: 50%;
}
.auth-body[data-login="photo"] .auth-form-wrap {
  max-width: 360px;
}
.auth-body[data-login="photo"] .auth-form-head { margin-bottom: 1.75rem; }
.auth-body[data-login="photo"] .auth-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.auth-body[data-login="photo"] .auth-showcase {
  display: block;
  background:
    linear-gradient(135deg, rgba(15,23,42,.15) 0%, rgba(15,23,42,.55) 100%),
    radial-gradient(circle at 70% 35%, #d4c5b3 0%, #6e5f50 60%, #2d2620 100%);
}
.auth-body[data-login="photo"] .auth-showcase-photo { display: block; height: 100%; position: relative; }

/* Inline background video - fills the right panel, plays muted on a loop. */
.auth-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  background: #000;
}
.auth-bg-video:empty { display: none; }
.auth-bg-video video,
.auth-bg-video iframe {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 100%; height: 100%;
  object-fit: cover;
  border: none;
  pointer-events: none;
}
/* For YouTube/Vimeo iframes the 16:9 aspect needs to overscale to cover. */
.auth-bg-video iframe {
  min-width: 100%;
  min-height: 100%;
  width: 177.77vh;   /* 16:9 of full height */
  height: 56.25vw;   /* 16:9 of full width  */
}

.auth-body[data-login="photo"] .auth-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 64px; height: 64px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.85);
  color: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: transform .15s, background .15s;
  z-index: 2;
}
.auth-body[data-login="photo"] .auth-play:hover {
  background: #fff;
  transform: translate(-50%,-50%) scale(1.06);
}
.auth-body[data-login="photo"] .auth-play svg { width: 22px; height: 22px; margin-left: 2px; }

/* ─────────────────────────────────────────────────────────────────────
   VARIANT 3 - Illustration Split (data-login="illustration")
   ───────────────────────────────────────────────────────────────────── */
.auth-body[data-login="illustration"] .auth-shell { flex-direction: row-reverse; }

.auth-body[data-login="illustration"] .auth-form-side {
  max-width: 50%;
}
.auth-body[data-login="illustration"] .auth-form-wrap {
  max-width: 360px;
}
.auth-body[data-login="illustration"] .auth-submit {
  background: var(--color-primary-dk);
}
.auth-body[data-login="illustration"] .auth-submit:hover { background: #1d4ed8; }

.auth-body[data-login="illustration"] .auth-showcase {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg,var(--color-primary) 0%,#1e40af 100%);
  color: #fff;
  padding: 3rem 2.5rem;
  border-radius: 0 24px 24px 0;
}
.auth-body[data-login="illustration"] .auth-showcase-illustration {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 32rem;
}
.auth-illu-title {
  font-size: 1.85rem;
  font-weight: 700;
  margin: 0 0 .65rem;
  letter-spacing: -.01em;
}
.auth-illu-sub {
  font-size: .95rem;
  color: rgba(255,255,255,.75);
  margin: 0 0 2.5rem;
  line-height: 1.55;
}
.auth-illu-art {
  position: relative;
  width: 100%;
  max-width: 380px;
  height: 240px;
}
.auth-illu-card {
  position: absolute;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
  padding: .85rem;
  display: flex;
  flex-direction: column;
  gap: .45rem;
}
.auth-illu-card--lg {
  width: 75%;
  height: 80%;
  top: 0;
  left: 0;
  transform: rotate(-2deg);
}
.auth-illu-card--sm {
  width: 55%;
  bottom: 0;
  right: 0;
  transform: rotate(3deg);
}
.auth-illu-card-bar {
  height: 8px;
  background: var(--color-primary);
  border-radius: 999px;
  width: 35%;
  margin-bottom: .35rem;
}
.auth-illu-card-row {
  height: 6px;
  background: #e5e7eb;
  border-radius: 4px;
  width: 100%;
}

.auth-illu-img {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  max-height: 320px;
  object-fit: contain;
  filter: drop-shadow(0 12px 30px rgba(0,0,0,.18));
}

/* The hero copy is only meant for the Hero variant. Hide it on every other variant. */
.auth-showcase-hero { display: none; }

/* ─────────────────────────────────────────────────────────────────────
   VARIANT 4 - Hero Photo  (data-login="hero")
   Full-bleed photo background, marketing copy on the left, white form
   card floating on the right. Uses the Login illustration URL setting
   (login_illustration_url) as the background image; falls back to a
   dark gradient when none is set.
   ───────────────────────────────────────────────────────────────────── */
.auth-body[data-login="hero"] {
  background: #0f172a;
  display: block;
  padding: 0;
}

.auth-body[data-login="hero"] .auth-shell {
  position: relative;
  min-height: 100vh;
  /* HTML order is form-side first then showcase; reverse so marketing copy sits left */
  flex-direction: row-reverse;
  align-items: stretch;
  background:
    linear-gradient(135deg, rgba(15,23,42,.78) 0%, rgba(15,23,42,.45) 50%, rgba(15,23,42,.65) 100%),
    var(--auth-hero-bg, linear-gradient(135deg,#1e293b 0%,#475569 60%,#334155 100%));
  background-size: cover;
  background-position: center;
}

/* Marketing copy on the left (hugs the right edge of its box, closer to the form card) */
.auth-body[data-login="hero"] .auth-showcase {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 3rem 4rem;
  background: transparent;
  flex: 1 1 55%;
  border-radius: 0;
}
.auth-body[data-login="hero"] .auth-showcase-photo,
.auth-body[data-login="hero"] .auth-showcase-illustration { display: none; }
.auth-body[data-login="hero"] .auth-showcase-hero {
  display: block;
  max-width: 560px;
  color: #fff;
}
.auth-hero-tag {
  display: inline-block;
  font-size: .82rem;
  font-weight: 700;
  color: #f87171;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 1.25rem;
}
.auth-hero-title {
  font-size: clamp(2.2rem, 4.4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.02em;
  margin: 0 0 1.25rem;
  color: #fff;
}
.auth-hero-sub {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255,255,255,.85);
  margin: 0;
  max-width: 480px;
}

/* Form card floats on the right with breathing room on both sides */
.auth-body[data-login="hero"] .auth-form-side {
  flex: 0 0 auto;
  width: 460px;
  max-width: calc(100% - 9rem);
  background: #fff;
  border-radius: 16px;
  margin: auto 9rem;
  padding: 2.5rem 2.25rem;
  box-shadow: 0 24px 60px rgba(0,0,0,.30);
  border: none;
}
.auth-body[data-login="hero"] .auth-brand {
  margin: 0 0 1.5rem;
  align-items: flex-start;
  justify-content: flex-start;
  gap: .5rem;
}
.auth-body[data-login="hero"] .auth-brand-logo {
  max-height: 56px;
  max-width: 200px;
  margin: 0;
}
.auth-body[data-login="hero"] .auth-brand-mark {
  width: 56px; height: 56px;
  font-size: 1.25rem;
  border-radius: 50%;
  background: var(--color-primary);
}
.auth-body[data-login="hero"] .auth-form-head {
  display: none;
}
.auth-body[data-login="hero"] .auth-form-wrap {
  padding: 0;
  max-width: none;
}
.auth-body[data-login="hero"] .auth-submit {
  background: var(--color-button);
  box-shadow: 0 4px 14px var(--color-primary-lt);
}
.auth-body[data-login="hero"] .auth-submit:hover {
  background: var(--color-button-dk);
  box-shadow: 0 6px 20px var(--color-primary-lt);
}
.auth-body[data-login="hero"] .auth-foot {
  color: rgba(255,255,255,.65);
}

/* Decorative bars under the logo - only render on the hero variant */
.auth-hero-bars { display: none; }
.auth-body[data-login="hero"] .auth-hero-bars {
  display: flex;
  gap: .4rem;
  margin: -.75rem 0 1.5rem;
  max-width: 60%;
}
.auth-body[data-login="hero"] .auth-hero-bars span {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: #dc2626;
}
.auth-body[data-login="hero"] .auth-hero-bars span:last-child {
  background: #e5e7eb;
}

/* ── Corporate-video modal (Photo Split play button) ─────────────────── */
.auth-video-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.78);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1.5rem;
  animation: authVideoFade .15s ease-out;
}
.auth-video-modal[hidden] { display: none; }
@keyframes authVideoFade { from { opacity: 0; } to { opacity: 1; } }

.auth-video-frame {
  position: relative;
  width: 100%;
  max-width: 960px;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0,0,0,.5);
  overflow: hidden;
}
.auth-video-slot { width: 100%; height: 100%; }
.auth-video-slot iframe,
.auth-video-slot video { width: 100%; height: 100%; display: block; }

.auth-video-close {
  position: absolute;
  top: -2.4rem;
  right: 0;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 .25rem;
  opacity: .85;
  transition: opacity .15s, transform .15s;
}
.auth-video-close:hover { opacity: 1; transform: scale(1.08); }

/* ── Responsive - collapse split layouts to single column on small screens ─ */
@media (max-width: 900px) {
  .auth-body[data-login="photo"] .auth-shell,
  .auth-body[data-login="illustration"] .auth-shell {
    flex-direction: column;
  }
  .auth-body[data-login="photo"] .auth-form-side,
  .auth-body[data-login="illustration"] .auth-form-side {
    max-width: 100%;
  }
  .auth-body[data-login="photo"] .auth-showcase,
  .auth-body[data-login="illustration"] .auth-showcase {
    display: none;
  }

  /* Hero variant: stack copy above the form, shrink padding, keep the photo */
  .auth-body[data-login="hero"] .auth-shell {
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.5rem;
  }
  .auth-body[data-login="hero"] .auth-showcase {
    padding: 0;
    flex: 0 0 auto;
    text-align: left;
  }
  .auth-body[data-login="hero"] .auth-showcase-hero { color: #fff; max-width: 100%; }
  .auth-body[data-login="hero"] .auth-form-side {
    width: 100%;
    margin: 0;
    padding: 1.75rem 1.5rem;
  }
}

/* ── App Shell ───────────────────────────────────────────── */
.app-body { background: var(--color-bg); min-height: 100vh; }

/* ── Sidebar ─────────────────────────────────────────────── */
.sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  z-index: 200;
  transition: transform .25s ease;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #1e293b transparent;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: .875rem;
  padding: 1.5rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--sidebar-bg);
}

.sidebar-logo-icon {
  width: 40px; height: 40px;
  background: var(--color-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.sidebar-logo-name { display: block; font-size: .85rem; font-weight: 700; color: var(--sidebar-active); line-height: 1.2; }
.sidebar-logo-sub  { display: block; font-size: .7rem; color: var(--sidebar-text); }

.sidebar-nav { flex: 1; padding: 1rem 0; }

.nav-section-label {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #475569;
  padding: 1rem 1.25rem .4rem;
}

.nav-group { display: flex; flex-direction: column; }

.nav-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .6rem 1.25rem;
  color: var(--sidebar-text);
  font-size: .875rem;
  font-weight: 500;
  border-radius: 0;
  transition: background .15s, color .15s;
  text-decoration: none;
  position: relative;
}

.nav-item:hover {
  background: rgba(255,255,255,.06);
  color: #cbd5e1;
  text-decoration: none;
}

.nav-item.active {
  background: var(--sidebar-active-bg);
  color: var(--sidebar-active);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 4px; bottom: 4px;
  width: 3px;
  background: var(--color-primary);
  border-radius: 0 4px 4px 0;
}

.nav-icon {
  width: 18px; height: 18px;
  flex-shrink: 0;
  opacity: .7;
}

.nav-item.active .nav-icon, .nav-item:hover .nav-icon { opacity: 1; }

/* Collapsible nav sections */
.nav-group.collapsed { display: none; }
.nav-section-toggle.collapsed .nav-toggle-arrow { transform: rotate(-90deg); }
.nav-toggle-arrow { opacity: .5; }
.nav-section-toggle:hover .nav-toggle-arrow { opacity: 1; }

.sidebar-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(255,255,255,.06);
  display: flex;
  align-items: center;
  gap: .75rem;
}

.sidebar-user     { flex: 1; min-width: 0; display: flex; align-items: center; gap: .625rem; }
.sidebar-user-avatar {
  width: 34px; height: 34px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.sidebar-user-info { min-width: 0; }
.sidebar-user-name  { font-size: .8rem; font-weight: 600; color: #e2e8f0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-email { font-size: .7rem; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.sidebar-logout {
  color: #475569;
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: color .15s, background .15s;
  flex-shrink: 0;
}
.sidebar-logout:hover { color: var(--color-danger); background: rgba(239,68,68,.1); text-decoration: none; }
.sidebar-logout svg   { width: 18px; height: 18px; }

/* ── Main Wrapper ────────────────────────────────────────── */
.main-wrapper {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: margin-left .25s ease;
}

/* ── Topbar ──────────────────────────────────────────────── */
.topbar {
  height: var(--topbar-height);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.topbar-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-muted);
  padding: .4rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
}
.topbar-toggle:hover { background: var(--color-bg); }
.topbar-toggle svg   { width: 20px; height: 20px; }

.topbar-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
  flex: 0 0 auto;
  white-space: nowrap;
}

.topbar-search {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  margin: 0 1rem;
}
.topbar-search form { width: 100%; max-width: 520px; margin: 0; }
.topbar-search input.form-control {
  width: 100%;
  background: #f5f6f8;
  border: 1px solid transparent;
  border-radius: 50rem;
  padding: .55rem 1rem;
  font-size: .85rem;
  box-shadow: none;
  color: var(--color-text);
  transition: background .15s, border-color .15s, box-shadow .15s;
}
.topbar-search input.form-control::placeholder { color: #94a3b8; }
.topbar-search input.form-control:focus {
  background: #fff;
  border-color: var(--color-border);
  box-shadow: 0 0 0 3px rgba(59,130,246,.12);
  outline: none;
}

.topbar-actions { display: flex; align-items: center; gap: .5rem; }

.topbar-avatar {
  width: 36px; height: 36px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
}

/* ── Page Content ────────────────────────────────────────── */
.page-content {
  flex: 1;
  padding: 2rem;
  max-width: 1400px;
  width: 100%;
}

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.page-title    { font-size: 1.5rem; font-weight: 700; color: var(--color-text); line-height: 1.2; }
.page-subtitle { color: var(--color-text-muted); font-size: .875rem; margin-top: .25rem; }
.page-subtitle a { color: var(--color-primary); }

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow .2s;
}

.card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
}

.card-body { padding: 1.5rem; }
.card-body.p-0 { padding: 0; }

/* ── Stats Grid ──────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.stat-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .75rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.stat-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.stat-icon svg { width: 22px; height: 22px; }

.stat-icon-blue   { background: #eff6ff; color: var(--color-primary); }
.stat-icon-green  { background: #f0fdf4; color: #10b981; }
.stat-icon-purple { background: #f5f3ff; color: #8b5cf6; }
.stat-icon-orange { background: #fff7ed; color: #f59e0b; }

.stat-value { font-size: 1.75rem; font-weight: 700; color: var(--color-text); line-height: 1.2; }
.stat-label { font-size: .82rem; color: var(--color-text-muted); margin-top: .1rem; font-weight: 500; }

/* ── Tables ──────────────────────────────────────────────── */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
}

.table thead tr {
  background: #f8fafc;
  border-bottom: 2px solid var(--color-border);
}

.table th {
  padding: .875rem 1.25rem;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--color-text-muted);
  text-align: left;
  white-space: nowrap;
}

.table td {
  padding: .875rem 1.25rem;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
  color: var(--color-text);
}

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

.table tbody tr:hover { background: #fafbfc; }

.table-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: .875rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .15s;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.4;
}
.btn:hover { text-decoration: none; opacity: .9; }
.btn svg   { width: 16px; height: 16px; }

.btn-primary   { background: var(--color-button);    color: #fff;                   border-color: var(--color-button); }
.btn-primary:hover { background: var(--color-button-dk); }

.btn-secondary { background: var(--color-bg);        color: var(--color-text);       border-color: var(--color-border); }
.btn-secondary:hover { background: #e2e8f0; }

.btn-ghost     { background: transparent;             color: var(--color-text-muted); border-color: transparent; }
.btn-ghost:hover { background: var(--color-bg); color: var(--color-text); }

.btn-danger    { background: var(--color-danger);     color: #fff;                    border-color: var(--color-danger); }

.btn-block { width: 100%; justify-content: center; padding: .75rem; font-size: 1rem; }

.btn-icon {
  width: 32px; height: 32px;
  padding: 0;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .15s;
  color: var(--color-text-muted);
  text-decoration: none;
}
.btn-icon:hover            { background: #e2e8f0; color: var(--color-text); text-decoration: none; }
.btn-icon svg              { width: 15px; height: 15px; }
.btn-icon-danger:hover     { background: #fef2f2; color: var(--color-danger); border-color: #fecaca; }

/* ── Forms ───────────────────────────────────────────────── */
.form-group   { display: flex; flex-direction: column; gap: .4rem; }
.form-row     { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-bottom: 1.25rem; }
.form-row .form-group { margin-bottom: 0; }

.form-label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--color-text);
}
.form-label.required::after {
  content: ' *';
  color: var(--color-danger);
}

.form-control {
  padding: .625rem .875rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-surface);
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
  line-height: 1.5;
}
.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(59,130,246,.12);
}
.form-control.is-invalid  { border-color: var(--color-danger); }
.form-control::placeholder { color: #94a3b8; }

select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 90px; }

.form-hint        { font-size: .75rem; color: var(--color-text-muted); margin-top: .25rem; }
.invalid-feedback { font-size: .75rem; color: var(--color-danger); margin-top: .25rem; }

.form-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
  justify-content: flex-end;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
}

.form-layout-split {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 1.5rem;
  align-items: start;
}

.settings-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  align-items: flex-start;
  gap: 1rem;
  padding: .875rem 0;
  border-bottom: 1px solid var(--color-border);
}
.settings-row:last-child { border-bottom: none; }

.checkbox-label {
  display: flex;
  align-items: center;
  gap: .625rem;
  font-size: .875rem;
  font-weight: 500;
  cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--color-primary);
  cursor: pointer;
}

/* ── Search Form ─────────────────────────────────────────── */
.search-form {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}
.search-form .form-control { max-width: 320px; }

/* ── Alerts ──────────────────────────────────────────────── */
.alert {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .875rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: .875rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
  position: relative;
}
.alert svg     { width: 18px; height: 18px; flex-shrink: 0; }
.alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.alert-error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-close   {
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  font-size: 1.25rem;
  line-height: 1;
  opacity: .6;
  padding: 0 .25rem;
}
.alert-close:hover { opacity: 1; }

/* ── Toast notifications ─────────────────────────────────── */
.toast-stack {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  max-width: min(380px, calc(100vw - 2rem));
  pointer-events: none;
}
.toast-stack .toast {
  pointer-events: auto;
  margin-bottom: 0;
  box-shadow: 0 10px 30px rgba(0,0,0,.12), 0 2px 6px rgba(0,0,0,.06);
  animation: toastIn .28s cubic-bezier(.2,.7,.3,1) both;
}
.toast .toast-msg { flex: 1; }
.alert-warning { background: #fffbeb; color: #854d0e; border: 1px solid #fcd34d; }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}

@media (max-width: 560px) {
  .toast-stack { top: .75rem; right: .75rem; left: .75rem; max-width: none; }
}

/* ── Badges ──────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: .2rem .6rem;
  border-radius: 2rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  line-height: 1.4;
}
.badge-success   { background: #dcfce7; color: #166534; }
.badge-danger    { background: #fee2e2; color: #991b1b; }
.badge-warning   { background: #fef9c3; color: #854d0e; }
.badge-info      { background: #ede9fe; color: #5b21b6; }
.badge-secondary { background: #f1f5f9; color: #475569; }

/* ── Utility ─────────────────────────────────────────────── */
.text-muted { color: var(--color-text-muted) !important; }

.user-cell {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.user-avatar-sm {
  width: 34px; height: 34px;
  background: var(--color-primary-lt);
  color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.code-pill {
  background: #f1f5f9;
  padding: .15rem .5rem;
  border-radius: .375rem;
  font-size: .8rem;
  color: #475569;
  border: 1px solid #e2e8f0;
}

/* ── Permissions Grid ────────────────────────────────────── */
.permissions-grid  { display: flex; flex-direction: column; gap: 1rem; max-height: 520px; overflow-y: auto; }
.perm-module       { border: 1px solid var(--color-border); border-radius: var(--radius-sm); overflow: hidden; }
.perm-module-header { background: #f8fafc; padding: .625rem 1rem; border-bottom: 1px solid var(--color-border); }
.perm-module-label  { display: flex; align-items: center; gap: .5rem; font-size: .8rem; font-weight: 700; color: var(--color-text); cursor: pointer; }
.perm-module-label input { accent-color: var(--color-primary); }
.perm-items         { display: flex; flex-wrap: wrap; gap: .5rem; padding: .75rem 1rem; }
.perm-item          { display: flex; align-items: center; gap: .4rem; font-size: .8rem; cursor: pointer; background: var(--color-bg); padding: .3rem .7rem; border-radius: 2rem; border: 1px solid var(--color-border); }
.perm-item:hover    { border-color: var(--color-primary); }
.perm-item input    { accent-color: var(--color-primary); width: 14px; height: 14px; }

/* ── Empty State ─────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--color-text-muted);
}
.empty-state svg { width: 48px; height: 48px; margin: 0 auto 1rem; display: block; opacity: .35; }
.empty-state p   { margin-bottom: 1.5rem; font-size: .95rem; }

/* ── Detail Grid (booking show) ──────────────────────────── */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.detail-list { display: flex; flex-direction: column; gap: .5rem; }
.detail-row  { display: grid; grid-template-columns: 140px 1fr; gap: .5rem; align-items: baseline; }
.detail-row dt { font-size: .8rem; font-weight: 600; color: var(--color-text-muted); }
.detail-row dd { font-size: .875rem; color: var(--color-text); }

/* ── Approval Steps ───────────────────────────────────────── */
.approval-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
  transition: background .15s;
}
.approval-step:last-child { border-bottom: none; }
.approval-step.approved   { background: #f0fdf4; }
.approval-step.rejected   { background: #fef2f2; }
.approval-step.pending    { background: #fffbeb; }

.approval-step-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: .8rem;
  font-weight: 700;
}
.approved .approval-step-icon  { background: #dcfce7; color: #166534; }
.rejected .approval-step-icon  { background: #fee2e2; color: #991b1b; }
.pending  .approval-step-icon  { background: #fef9c3; color: #854d0e; }
.skipped  .approval-step-icon  { background: #f1f5f9; color: #64748b; }
.approval-step-icon svg { width: 16px; height: 16px; }
.approval-step-info { flex: 1; }

/* ── Notes ────────────────────────────────────────────────── */
.note-item {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
}
.note-item:last-of-type { border-bottom: none; }
.note-meta {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  color: var(--color-text-muted);
  margin-bottom: .4rem;
}
.note-meta strong { color: var(--color-text); }
.note-text { font-size: .875rem; line-height: 1.6; }

/* ── Status Pills ─────────────────────────────────────────── */
.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem 1rem;
  border-radius: 2rem;
  font-size: .8rem;
  font-weight: 600;
  border: 1.5px solid transparent;
  text-decoration: none;
  transition: all .15s;
  color: var(--color-text-muted);
  background: var(--color-surface);
  border-color: var(--color-border);
}
.stat-pill:hover, .stat-pill.active { text-decoration: none; }
.stat-pill strong { font-size: 1rem; font-weight: 800; }
.stat-pill-success.active { background: #f0fdf4; border-color: #86efac; color: #166534; }
.stat-pill-danger.active  { background: #fef2f2; border-color: #fca5a5; color: #991b1b; }
.stat-pill-warning.active { background: #fffbeb; border-color: #fcd34d; color: #854d0e; }
.stat-pill-info.active    { background: #ede9fe; border-color: #c4b5fd; color: #5b21b6; }
.stat-pill-secondary.active { background: #f1f5f9; border-color: #94a3b8; color: #334155; }

/* ── Modal ────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.modal-box {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: 2rem;
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-lg);
}

/* ── Bootstrap-compatible Modal (no jQuery) ──────────────── */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1050;
  overflow-x: hidden;
  overflow-y: auto;
  background: rgba(0,0,0,.5);
  opacity: 0;
  transition: opacity .2s ease;
}
.modal.show { display: block; opacity: 1; }
.modal.fade { display: none; }
.modal.fade.show { display: block; opacity: 1; }
.modal-dialog {
  position: relative;
  margin: 2rem auto;
  max-width: 500px;
  pointer-events: none;
}
.modal-dialog.modal-sm { max-width: 360px; }
.modal-dialog.modal-lg { max-width: 720px; }
.modal-dialog.modal-xl { max-width: 960px; }
.modal-content {
  position: relative;
  pointer-events: auto;
  background: var(--color-surface, #fff);
  border-radius: var(--radius-lg, .5rem);
  box-shadow: 0 10px 40px rgba(0,0,0,.2);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--color-border, #e5e7eb);
}
.modal-header .modal-title { margin: 0; font-size: 1.05rem; font-weight: 600; }
.modal-header .close {
  background: none;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  padding: 0 .25rem;
  cursor: pointer;
  color: var(--color-muted, #6b7280);
  opacity: .7;
}
.modal-header .close:hover { opacity: 1; }
.modal-body { padding: 1.25rem; }
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .5rem;
  padding: .75rem 1.25rem;
  border-top: 1px solid var(--color-border, #e5e7eb);
}
body.modal-open { overflow: hidden; }

/* ── Step Cards (workflow form) ───────────────────────────── */
.step-card {
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1rem;
  background: var(--color-bg);
}
.step-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .875rem;
}

/* ── Urgent row ───────────────────────────────────────────── */
.row-urgent { background: #fff8f8 !important; }

/* ── Desktop sidebar collapse (toggled via topbar hamburger) ─ */
@media (min-width: 901px) {
  body.sidebar-collapsed .sidebar    { transform: translateX(-100%); }
  body.sidebar-collapsed .main-wrapper { margin-left: 0; }
  /* Lift the 1400px cap so content can fill the freed sidebar space. */
  body.sidebar-collapsed .page-content { max-width: none; }
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .main-wrapper {
    margin-left: 0;
  }
  .form-layout-split {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .page-content { padding: 1.25rem; }
  .stats-grid   { grid-template-columns: 1fr; }
  .page-header  { flex-direction: column; }
  .auth-card    { padding: 1.75rem; }
  .settings-row { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════
   Hotel Extranet - Property Detail Layout
   ═══════════════════════════════════════════════════════════ */

/* Property detail: sidebar + content */
.property-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 900px) {
  .property-layout { grid-template-columns: 1fr; }
}

/* Property sidebar nav */
.property-nav {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: calc(var(--topbar-height) + 1.5rem);
  overflow: hidden;
}
.property-nav__header {
  padding: 1.25rem 1rem 1rem;
  border-bottom: 1px solid var(--color-border);
}
.property-nav__name {
  font-size: .95rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 .25rem;
  line-height: 1.3;
}
.property-nav__meta {
  font-size: .75rem;
  color: var(--color-muted);
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-wrap: wrap;
}
.property-nav__score {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
}
.property-nav__score-ring {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.property-nav__score-ring circle {
  fill: none;
  stroke-width: 3.5;
}
.property-nav__score-ring .ring-bg {
  stroke: var(--color-border);
}
.property-nav__score-ring .ring-fg {
  stroke: var(--color-success);
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  transition: stroke-dashoffset .4s ease;
}
.property-nav__score-label {
  font-size: .75rem;
  color: var(--color-muted);
  line-height: 1.3;
}
.property-nav__score-value {
  font-size: .95rem;
  font-weight: 700;
  color: var(--color-text);
}
.property-nav__links {
  list-style: none;
  margin: 0;
  padding: .5rem 0;
}
.property-nav__links li {
  margin: 0;
}
.property-nav__link {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .55rem 1rem;
  font-size: .82rem;
  font-weight: 500;
  color: var(--color-muted);
  text-decoration: none;
  transition: all .15s ease;
  border-left: 3px solid transparent;
}
.property-nav__link:hover {
  color: var(--color-text);
  background: var(--color-bg);
}
.property-nav__link.active {
  color: var(--color-primary);
  background: var(--color-primary-lt);
  border-left-color: var(--color-primary);
  font-weight: 600;
}
.property-nav__link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: .6;
}
.property-nav__link.active svg {
  opacity: 1;
}
.property-nav__link .nav-count {
  margin-left: auto;
  background: var(--color-bg);
  color: var(--color-muted);
  font-size: .7rem;
  font-weight: 600;
  padding: .1rem .45rem;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}
.property-nav__link.active .nav-count {
  background: var(--color-primary);
  color: #fff;
}
.property-nav__divider {
  height: 1px;
  background: var(--color-border);
  margin: .35rem 0;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .3rem;
  font-size: .78rem;
  color: var(--color-muted);
  margin-bottom: .75rem;
}
.breadcrumb a {
  color: var(--color-primary);
  text-decoration: none;
}
.breadcrumb a:hover {
  text-decoration: underline;
}
.breadcrumb__sep {
  color: var(--color-border);
}

/* Fieldset card - form section */
.fieldset-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  background: var(--color-surface);
}
.fieldset-card__header {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--color-border);
}
.fieldset-card__icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--color-primary-lt);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.fieldset-card__icon svg {
  width: 16px;
  height: 16px;
  color: var(--color-primary);
}
.fieldset-card__title {
  font-size: .88rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
}
.fieldset-card__subtitle {
  font-size: .72rem;
  color: var(--color-muted);
  margin: .1rem 0 0;
}

/* 3-column form grid */
.form-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.form-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
@media (max-width: 900px) {
  .form-grid-3, .form-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .form-grid-3, .form-grid-4, .form-grid-2 { grid-template-columns: 1fr; }
}
.form-full { grid-column: 1 / -1; }

/* Amenity Grid */
.amenity-category {
  margin-bottom: 1.5rem;
}
.amenity-category__title {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .82rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: .6rem;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.amenity-category__icon {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-sm);
  background: var(--color-primary-lt);
  display: flex;
  align-items: center;
  justify-content: center;
}
.amenity-category__icon svg {
  width: 14px;
  height: 14px;
  color: var(--color-primary);
}
.amenity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .4rem;
}
.amenity-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem .6rem;
  border-radius: var(--radius-sm);
  font-size: .82rem;
  color: var(--color-text);
  transition: background .12s ease;
  cursor: pointer;
}
.amenity-item:hover {
  background: var(--color-bg);
}
.amenity-item input[type="checkbox"] {
  accent-color: var(--color-primary);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.amenity-item.is-popular {
  font-weight: 600;
}
.amenity-item .amenity-popular-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-warning);
  flex-shrink: 0;
}
.amenity-detail-input {
  width: 100%;
  max-width: 200px;
  padding: .2rem .4rem;
  font-size: .75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  margin-left: auto;
}

/* Stat card v2 */
.stat-card-v2 {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem 1.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.stat-card-v2__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.stat-card-v2__icon svg {
  width: 22px;
  height: 22px;
  color: #fff;
}
.stat-card-v2__icon--primary { background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dk)); }
.stat-card-v2__icon--success { background: linear-gradient(135deg, #10b981, #059669); }
.stat-card-v2__icon--warning { background: linear-gradient(135deg, #f59e0b, #d97706); }
.stat-card-v2__icon--danger  { background: linear-gradient(135deg, #ef4444, #dc2626); }
.stat-card-v2__icon--info    { background: linear-gradient(135deg, #6366f1, #4f46e5); }
.stat-card-v2__body {
  flex: 1;
  min-width: 0;
}
.stat-card-v2__value {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.2;
}
.stat-card-v2__label {
  font-size: .72rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: .03em;
  font-weight: 600;
}

/* Contact card */
.contact-card {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  transition: box-shadow .15s ease;
}
.contact-card:hover {
  box-shadow: var(--shadow-sm);
}
.contact-card__icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-primary-lt);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-card__icon svg {
  width: 16px;
  height: 16px;
  color: var(--color-primary);
}
.contact-card__body {
  flex: 1;
  min-width: 0;
}
.contact-card__type {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--color-primary);
  margin-bottom: .2rem;
}
.contact-card__name {
  font-size: .88rem;
  font-weight: 600;
  color: var(--color-text);
}
.contact-card__detail {
  font-size: .78rem;
  color: var(--color-muted);
}
.contact-card__actions {
  display: flex;
  gap: .3rem;
  flex-shrink: 0;
}

/* Overview info rows */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: .75rem;
}
.info-item {
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.info-item__label {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--color-muted);
}
.info-item__value {
  font-size: .88rem;
  color: var(--color-text);
  font-weight: 500;
}

/* Tag pills (for amenity display) */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}
.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .2rem .55rem;
  font-size: .72rem;
  font-weight: 500;
  border-radius: 20px;
  background: var(--color-bg);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.tag-pill--primary {
  background: var(--color-primary-lt);
  color: var(--color-primary);
  border-color: transparent;
}

/* Form hint block */
.form-hint-block {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: .6rem .8rem;
  font-size: .75rem;
  color: var(--color-muted);
  margin-top: .5rem;
}

/* Property status pill in index */
.property-type-pill {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .15rem .5rem;
  font-size: .7rem;
  font-weight: 500;
  border-radius: 4px;
  background: var(--color-bg);
  color: var(--color-muted);
  border: 1px solid var(--color-border);
  text-transform: capitalize;
}

/* ── Form Grid 4-column ─────────────────────────────── */
.form-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
@media (max-width: 900px) {
  .form-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .form-grid-4 { grid-template-columns: 1fr; }
}

/* ── Form Hint (small helper text under inputs) ─────── */
.form-hint {
  font-size: .75rem;
  color: var(--color-muted);
  margin-top: .2rem;
}

/* ── Btn Small ──────────────────────────────────────── */
.btn-sm {
  padding: .25rem .6rem;
  font-size: .78rem;
}
.btn-success {
  background: var(--color-success);
  color: #fff;
}
.btn-success:hover {
  opacity: .9;
}

/* ── Dashboard KPI Cards ───────────────────────────── */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}
@media (max-width: 900px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .kpi-grid { grid-template-columns: 1fr; }
}
.kpi-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: .85rem;
}
.kpi-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.kpi-card__value {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-text);
}
.kpi-card__label {
  font-size: .8rem;
  color: var(--color-muted);
  margin-top: .15rem;
}

/* ── Two Column Layout ─────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.two-col--wide-left {
  grid-template-columns: 2fr 1fr;
}
@media (max-width: 768px) {
  .two-col, .two-col--wide-left { grid-template-columns: 1fr; }
}

/* ── Editable Cell (inventory calendar) ────────────── */
.editable-cell {
  cursor: pointer;
  transition: background .15s;
}
.editable-cell:hover {
  background: #eff6ff !important;
}
.editable-cell input {
  width: 70px;
  padding: .15rem .3rem;
  border: 1px solid var(--color-primary);
  border-radius: 3px;
  font-size: .82rem;
  text-align: center;
  outline: none;
}

/* ═══════════════════════════════════════════════════════════
   Bootstrap-compatible Utility Classes
   ═══════════════════════════════════════════════════════════ */

/* ── Spacing Utilities ────────────────────────────────────── */
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: .25rem !important; }
.mb-2 { margin-bottom: .5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: .25rem !important; }
.mt-2 { margin-top: .5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }

.ml-0 { margin-left: 0 !important; }
.ml-1 { margin-left: .25rem !important; }
.ml-2 { margin-left: .5rem !important; }
.ml-3 { margin-left: 1rem !important; }
.ml-auto { margin-left: auto !important; }

.mr-0 { margin-right: 0 !important; }
.mr-1 { margin-right: .25rem !important; }
.mr-2 { margin-right: .5rem !important; }
.mr-3 { margin-right: 1rem !important; }
.mr-auto { margin-right: auto !important; }

.mx-auto { margin-left: auto !important; margin-right: auto !important; }

.p-0 { padding: 0 !important; }
.p-1 { padding: .25rem !important; }
.p-2 { padding: .5rem !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }

.pt-0 { padding-top: 0 !important; }
.pt-2 { padding-top: .5rem !important; }
.pt-3 { padding-top: 1rem !important; }
.pb-0 { padding-bottom: 0 !important; }
.pb-2 { padding-bottom: .5rem !important; }
.pb-3 { padding-bottom: 1rem !important; }
.pl-0 { padding-left: 0 !important; }
.pr-0 { padding-right: 0 !important; }
.px-2 { padding-left: .5rem !important; padding-right: .5rem !important; }
.px-3 { padding-left: 1rem !important; padding-right: 1rem !important; }
.py-2 { padding-top: .5rem !important; padding-bottom: .5rem !important; }
.py-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }

/* ── Text Utilities ───────────────────────────────────────── */
.text-left    { text-align: left !important; }
.text-center  { text-align: center !important; }
.text-right   { text-align: right !important; }

.text-primary { color: var(--color-primary) !important; }
.text-success { color: var(--color-success) !important; }
.text-danger  { color: var(--color-danger) !important; }
.text-warning { color: #b45309 !important; }
.text-info    { color: var(--color-info) !important; }
.text-secondary { color: var(--color-secondary) !important; }
.text-white   { color: #fff !important; }

.font-weight-bold   { font-weight: 700 !important; }
.font-weight-normal { font-weight: 400 !important; }
.text-uppercase     { text-transform: uppercase !important; }
.text-nowrap        { white-space: nowrap !important; }

.small, small { font-size: .8rem; }

/* ── Display Utilities ────────────────────────────────────── */
.d-none          { display: none !important; }
.d-inline        { display: inline !important; }
.d-inline-block  { display: inline-block !important; }
.d-block         { display: block !important; }
.d-flex          { display: flex !important; }

.flex-wrap       { flex-wrap: wrap !important; }
.flex-column     { flex-direction: column !important; }
.flex-grow-1     { flex-grow: 1 !important; }
.flex-shrink-0   { flex-shrink: 0 !important; }

.align-items-start   { align-items: flex-start !important; }
.align-items-center  { align-items: center !important; }
.align-items-end     { align-items: flex-end !important; }

.justify-content-start   { justify-content: flex-start !important; }
.justify-content-center  { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-end     { justify-content: flex-end !important; }

.gap-1 { gap: .25rem !important; }
.gap-2 { gap: .5rem !important; }
.gap-3 { gap: 1rem !important; }

.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }

.overflow-auto   { overflow: auto !important; }
.overflow-hidden { overflow: hidden !important; }

/* ── Border Utilities ─────────────────────────────────────── */
.border         { border: 1px solid var(--color-border) !important; }
.border-top     { border-top: 1px solid var(--color-border) !important; }
.border-bottom  { border-bottom: 1px solid var(--color-border) !important; }
.border-left    { border-left: 1px solid var(--color-border) !important; }
.border-right   { border-right: 1px solid var(--color-border) !important; }
.border-0       { border: 0 !important; }
.rounded        { border-radius: var(--radius-sm) !important; }
.rounded-0      { border-radius: 0 !important; }

.border-primary { border-color: var(--color-primary) !important; }
.border-success { border-color: var(--color-success) !important; }
.border-danger  { border-color: var(--color-danger) !important; }
.border-warning { border-color: var(--color-warning) !important; }

/* ── Responsive Grid (Bootstrap-like) ─────────────────────── */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -.75rem;
  margin-right: -.75rem;
}
.row > [class*="col"] {
  padding-left: .75rem;
  padding-right: .75rem;
  width: 100%;
}

.col    { flex: 1 0 0%; }
.col-1  { flex: 0 0 8.333%; max-width: 8.333%; }
.col-2  { flex: 0 0 16.667%; max-width: 16.667%; }
.col-3  { flex: 0 0 25%; max-width: 25%; }
.col-4  { flex: 0 0 33.333%; max-width: 33.333%; }
.col-5  { flex: 0 0 41.667%; max-width: 41.667%; }
.col-6  { flex: 0 0 50%; max-width: 50%; }
.col-7  { flex: 0 0 58.333%; max-width: 58.333%; }
.col-8  { flex: 0 0 66.667%; max-width: 66.667%; }
.col-9  { flex: 0 0 75%; max-width: 75%; }
.col-10 { flex: 0 0 83.333%; max-width: 83.333%; }
.col-11 { flex: 0 0 91.667%; max-width: 91.667%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }

@media (min-width: 768px) {
  .col-md-1  { flex: 0 0 8.333%; max-width: 8.333%; }
  .col-md-2  { flex: 0 0 16.667%; max-width: 16.667%; }
  .col-md-3  { flex: 0 0 25%; max-width: 25%; }
  .col-md-4  { flex: 0 0 33.333%; max-width: 33.333%; }
  .col-md-5  { flex: 0 0 41.667%; max-width: 41.667%; }
  .col-md-6  { flex: 0 0 50%; max-width: 50%; }
  .col-md-7  { flex: 0 0 58.333%; max-width: 58.333%; }
  .col-md-8  { flex: 0 0 66.667%; max-width: 66.667%; }
  .col-md-9  { flex: 0 0 75%; max-width: 75%; }
  .col-md-10 { flex: 0 0 83.333%; max-width: 83.333%; }
  .col-md-11 { flex: 0 0 91.667%; max-width: 91.667%; }
  .col-md-12 { flex: 0 0 100%; max-width: 100%; }
}

@media (min-width: 992px) {
  .col-lg-1  { flex: 0 0 8.333%; max-width: 8.333%; }
  .col-lg-2  { flex: 0 0 16.667%; max-width: 16.667%; }
  .col-lg-3  { flex: 0 0 25%; max-width: 25%; }
  .col-lg-4  { flex: 0 0 33.333%; max-width: 33.333%; }
  .col-lg-5  { flex: 0 0 41.667%; max-width: 41.667%; }
  .col-lg-6  { flex: 0 0 50%; max-width: 50%; }
  .col-lg-7  { flex: 0 0 58.333%; max-width: 58.333%; }
  .col-lg-8  { flex: 0 0 66.667%; max-width: 66.667%; }
  .col-lg-9  { flex: 0 0 75%; max-width: 75%; }
  .col-lg-10 { flex: 0 0 83.333%; max-width: 83.333%; }
  .col-lg-11 { flex: 0 0 91.667%; max-width: 91.667%; }
  .col-lg-12 { flex: 0 0 100%; max-width: 100%; }
}

/* ── Button Variants ──────────────────────────────────────── */
.btn-xs {
  padding: .15rem .45rem;
  font-size: .7rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: .75rem 1.75rem;
  font-size: 1rem;
}

.btn-info {
  background: var(--color-info);
  color: #fff;
  border-color: var(--color-info);
}

.btn-warning {
  background: var(--color-warning);
  color: #fff;
  border-color: var(--color-warning);
}

.btn-light {
  background: #f8fafc;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn-light:hover { background: #e2e8f0; }

.btn-outline-primary {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-outline-primary:hover { background: var(--color-primary); color: #fff; }

.btn-outline-secondary {
  background: transparent;
  color: var(--color-secondary);
  border-color: var(--color-secondary);
}
.btn-outline-secondary:hover { background: var(--color-secondary); color: #fff; }

.btn-outline-danger {
  background: transparent;
  color: var(--color-danger);
  border-color: var(--color-danger);
}
.btn-outline-danger:hover { background: var(--color-danger); color: #fff; }

.btn-outline-success {
  background: transparent;
  color: var(--color-success);
  border-color: var(--color-success);
}
.btn-outline-success:hover { background: var(--color-success); color: #fff; }

.btn-outline-info {
  background: transparent;
  color: var(--color-info);
  border-color: var(--color-info);
}
.btn-outline-info:hover { background: var(--color-info); color: #fff; }

.btn-outline-warning {
  background: transparent;
  color: #b45309;
  border-color: var(--color-warning);
}
.btn-outline-warning:hover { background: var(--color-warning); color: #fff; }

/* ── Badge Variants ───────────────────────────────────────── */
.badge-primary { background: #dbeafe; color: #1e40af; }
.badge-light   { background: #f8fafc; color: #475569; border: 1px solid var(--color-border); }

/* ── Table Variants ───────────────────────────────────────── */
.table-sm th,
.table-sm td {
  padding: .4rem .75rem;
}

.table-hover tbody tr:hover { background: #f1f5f9; }

.table-striped tbody tr:nth-child(odd) { background: #fafbfc; }

.table-bordered {
  border: 1px solid var(--color-border);
}
.table-bordered th,
.table-bordered td {
  border: 1px solid var(--color-border);
}

.table-responsive {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-plain {
  border: none;
  box-shadow: none;
}
.table-plain th,
.table-plain td {
  padding: .5rem .75rem;
  border-bottom: 1px solid var(--color-border);
}
.table-plain thead tr {
  background: none;
  border-bottom: 2px solid var(--color-border);
}

.thead-dark th {
  background: #1e293b;
  color: #e2e8f0;
  border-color: #334155;
}

/* ── Form Variants ────────────────────────────────────────── */
.form-control-sm {
  padding: .3rem .6rem;
  font-size: .78rem;
  border-radius: var(--radius-sm);
}

.form-check {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .15rem 0;
}
.form-check-input {
  width: 16px;
  height: 16px;
  accent-color: var(--color-primary);
  cursor: pointer;
  flex-shrink: 0;
}
.form-check-label {
  font-size: .875rem;
  cursor: pointer;
}

.input-group {
  display: flex;
  align-items: stretch;
}
.input-group .form-control {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}
.input-group-append .btn,
.input-group-text {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.input-group-text {
  padding: .625rem .875rem;
  font-size: .875rem;
  background: #f8fafc;
  border: 1.5px solid var(--color-border);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
}

/* ── Alert Variants ───────────────────────────────────────── */
.alert-info {
  background: #ede9fe;
  color: #5b21b6;
  border: 1px solid #c4b5fd;
}

.alert-warning {
  background: #fffbeb;
  color: #854d0e;
  border: 1px solid #fcd34d;
}

.alert-danger {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* ── Card Footer ──────────────────────────────────────────── */
.card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--color-border);
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .75rem;
}

/* ── Row Number (table index cell) ────────────────────────── */
.row-num {
  width: 40px;
  text-align: center;
  color: var(--color-text-muted);
  font-size: .75rem;
  font-weight: 600;
}

/* ── Tabs (excursion show page) ───────────────────────────── */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--color-border);
  margin-bottom: 1.25rem;
}
.tab-link {
  padding: .6rem 1.25rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color .15s, border-color .15s;
}
.tab-link:hover {
  color: var(--color-text);
  text-decoration: none;
}
.tab-link.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.tab-content > .tab-pane { display: none; }
.tab-content > .tab-pane.active { display: block; }

/* ── Slot Calendar (excursions) ───────────────────────────── */
.cal-cell {
  min-height: 80px;
  padding: .5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  cursor: pointer;
  transition: background .12s, box-shadow .12s;
  font-size: .78rem;
}
.cal-cell:hover { background: #f8fafc; }
.cal-selectable { cursor: pointer; }
.cal-selected {
  background: var(--color-primary-lt) !important;
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 0 2px rgba(59,130,246,.15);
}

/* ── Progress Bar ─────────────────────────────────────────── */
.progress {
  display: flex;
  height: .75rem;
  overflow: hidden;
  background: var(--color-bg);
  border-radius: 2rem;
  border: 1px solid var(--color-border);
}
.progress-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .65rem;
  font-weight: 700;
  color: #fff;
  background: var(--color-primary);
  border-radius: 2rem;
  transition: width .4s ease;
}
.progress-bar-success { background: var(--color-success); }
.progress-bar-danger  { background: var(--color-danger); }
.progress-bar-warning { background: var(--color-warning); }
.progress-bar-info    { background: var(--color-info); }

/* ── List Group ───────────────────────────────────────────── */
.list-group {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.list-group-item {
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--color-border);
  font-size: .875rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.list-group-item:last-child { border-bottom: none; }
.list-group-item.active {
  background: var(--color-primary-lt);
  color: var(--color-primary);
  font-weight: 600;
}

/* ── Nav Pills / Tabs ─────────────────────────────────────── */
.nav {
  display: flex;
  gap: .25rem;
  flex-wrap: wrap;
  list-style: none;
}
.nav-pills .nav-link {
  padding: .4rem .9rem;
  font-size: .82rem;
  font-weight: 500;
  color: var(--color-text-muted);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all .15s;
}
.nav-pills .nav-link:hover { background: var(--color-bg); color: var(--color-text); }
.nav-pills .nav-link.active { background: var(--color-primary); color: #fff; }

/* ── Pax Row (booking forms) ─────────────────────────────── */
.pax-row {
  display: grid;
  grid-template-columns: 50px 1fr 1fr 1fr 40px;
  gap: .5rem;
  align-items: center;
  padding: .5rem 0;
  border-bottom: 1px solid var(--color-border);
}
.pax-row:last-child { border-bottom: none; }

/* ── Responsive Helpers ───────────────────────────────────── */
@media (max-width: 768px) {
  .row { margin-left: -.5rem; margin-right: -.5rem; }
  .row > [class*="col"] { padding-left: .5rem; padding-right: .5rem; }
  .d-md-none { display: none !important; }
  .pax-row { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .d-sm-none { display: none !important; }
}

/* ============================================================
   B2B Search - Search Bar, Results, Filters, Detail, Cart
   ============================================================ */

/* ── Search Bar ── */
.search-bar-wrap {
  background: linear-gradient(135deg, #0f2942 0%, #1a4a8a 50%, var(--color-primary-dk) 100%);
  background-image:
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(135deg, #0f2942 0%, #1a4a8a 50%, var(--color-primary-dk) 100%);
  border-radius: .75rem;
  box-shadow: 0 8px 32px rgba(37,99,235,.3), 0 2px 8px rgba(0,0,0,.1);
  padding: 1.5rem 1.75rem 1.25rem;
  margin-bottom: 1.5rem;
  position: relative;
}
.search-bar {
  display: flex;
  gap: .65rem;
  align-items: flex-end;
  flex-wrap: wrap;
  position: relative;
}
.sb-field { flex: 1; min-width: 120px; position: relative; }
.sb-field label {
  display: block;
  font-size: .65rem;
  font-weight: 700;
  color: rgba(255,255,255,.9);
  margin-bottom: .35rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.sb-field .form-control {
  background: rgba(255,255,255,.97);
  border: 2px solid rgba(255,255,255,.2);
  border-radius: .5rem;
  font-size: .85rem;
  height: 42px;
  transition: border-color .15s, box-shadow .15s;
  color: #1e293b;
}
.sb-field .form-control:focus {
  border-color: #fbbf24;
  box-shadow: 0 0 0 3px rgba(251,191,36,.3);
  outline: none;
}
.sb-field--dest { flex: 2; min-width: 180px; }
.sb-field--pax  { flex: 1; min-width: 140px; }
.sb-field--agent { flex: 1.5; min-width: 160px; }
.sb-field--btn { flex: 0 0 auto; }
.btn-search {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .6rem 2rem;
  font-weight: 700;
  height: 42px;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  border: none;
  color: #fff;
  border-radius: .5rem;
  font-size: .9rem;
  box-shadow: 0 4px 12px rgba(245,158,11,.4);
  transition: all .2s;
  text-shadow: 0 1px 1px rgba(0,0,0,.1);
}
.btn-search:hover { background: linear-gradient(135deg, #fbbf24, #fb923c); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(245,158,11,.5); }

/* Pax trigger */
.pax-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .5rem .75rem;
  border: 2px solid rgba(255,255,255,.2);
  border-radius: .5rem;
  cursor: pointer;
  background: rgba(255,255,255,.97);
  font-size: .85rem;
  height: 42px;
  color: #1e293b;
  transition: border-color .15s, box-shadow .15s;
}
.pax-trigger:hover { border-color: #fbbf24; box-shadow: 0 0 0 3px rgba(251,191,36,.3); }

/* Advanced Search Toggle & Panel */
.adv-toggle-row {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-top: .75rem;
  padding-top: .6rem;
  border-top: 1px solid rgba(255,255,255,.12);
}
.adv-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 2rem;
  padding: .3rem .85rem;
  color: rgba(255,255,255,.9);
  font-size: .75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  letter-spacing: .03em;
}
.adv-toggle-btn:hover {
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.35);
  color: #fff;
}
.adv-toggle-btn.is-open {
  background: rgba(251,191,36,.2);
  border-color: rgba(251,191,36,.4);
  color: #fbbf24;
}
.adv-chevron { transition: transform .25s ease; }
.adv-toggle-btn.is-open .adv-chevron { transform: rotate(180deg); }

.adv-active-badge {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  background: rgba(251,191,36,.2);
  color: #fbbf24;
  font-size: .68rem;
  font-weight: 700;
  padding: .2rem .6rem;
  border-radius: 2rem;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.adv-panel {
  overflow: hidden;
  transition: max-height .35s ease, opacity .25s ease;
}
.adv-panel-inner {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  flex-wrap: wrap;
  padding-top: .85rem;
  margin-top: .5rem;
}
.adv-filter-group {
  display: flex;
  align-items: center;
  gap: .45rem;
}
.adv-filter-label {
  display: flex;
  align-items: center;
  gap: .3rem;
  font-size: .68rem;
  font-weight: 700;
  color: rgba(255,255,255,.85);
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: nowrap;
}
.adv-price-inputs {
  display: flex;
  align-items: center;
  gap: .3rem;
}
.adv-price-inputs .form-control {
  width: 80px;
  height: 32px;
  font-size: .8rem;
  background: rgba(255,255,255,.95);
  border: 1.5px solid rgba(255,255,255,.25);
  border-radius: .4rem;
  color: #1e293b;
  text-align: center;
}
.adv-price-inputs .form-control:focus {
  border-color: #fbbf24;
  box-shadow: 0 0 0 2px rgba(251,191,36,.25);
  outline: none;
}
.adv-sep { color: rgba(255,255,255,.5); font-size: .8rem; }

.adv-star-chips { display: flex; gap: .3rem; }
.adv-chip {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .25rem .65rem;
  border-radius: 2rem;
  font-size: .75rem;
  font-weight: 600;
  cursor: pointer;
  background: rgba(255,255,255,.1);
  border: 1.5px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.85);
  transition: all .2s;
  white-space: nowrap;
  user-select: none;
}
.adv-chip input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.adv-chip:hover {
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.35);
  color: #fff;
}
.adv-chip--active,
.adv-chip--active:hover {
  background: rgba(251,191,36,.2);
  border-color: rgba(251,191,36,.5);
  color: #fbbf24;
}
.adv-chip--toggle {
  padding: .3rem .75rem;
  font-size: .75rem;
}
.adv-star-icon { color: #fbbf24; font-size: .85rem; line-height: 1; }

/* Pax dropdown */
.pax-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  min-width: 240px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: .5rem;
  box-shadow: 0 12px 36px rgba(0,0,0,.15);
  padding: .85rem;
  z-index: 100;
}
.pax-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .45rem 0;
  font-size: .88rem;
}
.pax-stepper { display: flex; align-items: center; gap: .5rem; }
.pax-btn {
  width: 30px;
  height: 30px;
  border: 1.5px solid var(--color-border);
  border-radius: 50%;
  background: var(--color-white);
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
  color: #1e293b;
  font-weight: 600;
}
.pax-btn:hover { background: #eff6ff; border-color: var(--color-primary-dk); color: var(--color-primary-dk); }

/* Autocomplete dropdown */
.ac-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: .5rem;
  box-shadow: 0 12px 36px rgba(0,0,0,.18);
  max-height: 320px;
  overflow-y: auto;
  z-index: 500;
  color: #1e293b;
}
.ac-item {
  padding: .65rem .85rem;
  cursor: pointer;
  border-bottom: 1px solid #f1f5f9;
  transition: background .1s;
  background: #ffffff;
  color: #1e293b;
  line-height: 1.35;
}
.ac-item:last-child { border-bottom: none; }
.ac-item:hover,
.ac-item.active { background: #eff6ff; color: #1e40af; }
.ac-item strong { color: #0f172a; font-weight: 600; display: block; font-size: .88rem; }
.ac-item small { color: #64748b; font-size: .72rem; display: block; margin-top: 2px; }
.ac-item:hover strong { color: #1e40af; }

/* Rich AC item (transfers / hotels with image + kind badge) */
.ac-item--rich { display: flex; align-items: center; gap: .65rem; }
.ac-item--rich .ac-thumb {
  flex: 0 0 34px; width: 34px; height: 34px; border-radius: .4rem;
  object-fit: cover; background: #f1f5f9; border: 1px solid #e2e8f0;
}
.ac-item--rich .ac-body { flex: 1 1 auto; min-width: 0; }
.ac-item--rich .ac-body strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-kind {
  flex: 0 0 auto; font-size: .6rem; font-weight: 700;
  padding: 2px 6px; border-radius: .25rem; text-transform: uppercase;
  letter-spacing: .02em; color: #475569; background: #e2e8f0;
}
.ac-kind--hotel    { background: #fef3c7; color: #92400e; }
.ac-kind--airport  { background: #dbeafe; color: #1e40af; }
.ac-kind--station  { background: #fee2e2; color: #991b1b; }
.ac-kind--landmark { background: #dcfce7; color: #166534; }
.ac-kind--area     { background: #e0e7ff; color: #3730a3; }

/* ── Shared search landing hero (pre-search state across modules) ── */
.search-landing {
  background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 50%, #f0f9ff 100%);
  border-radius: 1rem; padding: 2.5rem 1.5rem; margin-top: 1rem;
  text-align: center;
}
.search-landing--hotel     { background: linear-gradient(135deg, #fff7ed 0%, #fde68a 50%, #fef3c7 100%); }
.search-landing--flight    { background: linear-gradient(135deg, #ecfeff 0%, #bae6fd 50%, #e0f2fe 100%); }
.search-landing--transfer  { background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 50%, #f0f9ff 100%); }
.search-landing--bus       { background: linear-gradient(135deg, #fef2f2 0%, #fecaca 50%, #fff1f2 100%); }
.search-landing--excursion { background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 50%, #ecfeff 100%); }
.search-landing--insurance { background: linear-gradient(135deg, #faf5ff 0%, #e9d5ff 50%, #f5f3ff 100%); }
.search-landing--car       { background: linear-gradient(135deg, #ecfdf5 0%, #a7f3d0 50%, #d1fae5 100%); }
.search-bar-wrap--car      { background-image: linear-gradient(135deg, #064e3b 0%, #047857 55%, #059669 100%); }
.search-bar-wrap--bus      { background-image: linear-gradient(135deg, #7f1d1d 0%, #b91c1c 55%, #dc2626 100%); }
.search-landing--package   { background: linear-gradient(135deg, #fff7ed 0%, #fed7aa 50%, #ffe4e6 100%); }
.search-bar-wrap--package  { background-image: linear-gradient(135deg, #9a3412 0%, #c2410c 55%, #ea580c 100%); }
.search-landing--insurance { background: linear-gradient(135deg, #f5f3ff 0%, #ddd6fe 50%, #ede9fe 100%); }
.search-bar-wrap--insurance { background-image: linear-gradient(135deg, #5b21b6 0%, #7c3aed 55%, #8b5cf6 100%); }
.search-landing--visa      { background: linear-gradient(135deg, #f0fdfa 0%, #99f6e4 50%, #ccfbf1 100%); }
.search-bar-wrap--visa     { background-image: linear-gradient(135deg, #115e59 0%, #0d9488 55%, #14b8a6 100%); }
.search-landing--cruise    { background: linear-gradient(135deg, #ecfeff 0%, #a5f3fc 50%, #e0f2fe 100%); }
.search-landing--cruise .search-landing-hero h2 { color: #164e63; }
.search-landing--cruise .search-landing-icon { color: #0891b2; }
.search-landing--cruise .search-landing-chip { border-color: #67e8f9; color: #155e75; }
.search-landing--ferry     { background: linear-gradient(135deg, #f0f9ff 0%, #bae6fd 50%, #e0f2fe 100%); }
.search-landing--ferry .search-landing-hero h2 { color: #0c4a6e; }
.search-landing--ferry .search-landing-icon { color: #0284c7; }
.search-landing--ferry .search-landing-chip { border-color: #7dd3fc; color: #075985; }

.search-landing-icon {
  width: 96px; height: 96px; margin: 0 auto 1rem;
  background: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(15,23,42,.12);
}
.search-landing-hero h2 { margin: 0 0 .5rem; color: #1e293b; font-size: 1.5rem; font-weight: 700; }
.search-landing-hero p  { color: #475569; max-width: 640px; margin: 0 auto 1.25rem; }
.search-landing-chips   { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.search-landing-chip {
  background: #fff; padding: .45rem .85rem; border-radius: 999px;
  font-size: .82rem; color: #334155; border: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}

/* ── Results Layout ── */
.search-results-layout {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.search-filters {
  flex: 0 0 260px;
  background: var(--color-white);
  border-radius: .75rem;
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
  padding: 1.25rem;
  position: sticky;
  top: 1rem;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
}
.search-filters::-webkit-scrollbar { width: 4px; }
.search-filters::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid #f1f5f9;
}
.filter-header h3 { font-size: 1.05rem; margin: 0; font-weight: 700; color: #1e293b; }
.filter-clear-link { font-size: .75rem; color: #ef4444; text-decoration: none; font-weight: 500; }
.filter-clear-link:hover { text-decoration: underline; }
.filter-group {
  margin-bottom: 1.15rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f1f5f9;
}
.filter-group:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.filter-group h4 {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #64748b;
  margin-bottom: .55rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.filter-group h4 svg { color: #94a3b8; }
.filter-check {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .25rem 0;
  cursor: pointer;
  font-size: .82rem;
  color: #334155;
  transition: color .1s;
}
.filter-check:hover { color: #1e293b; }
.filter-check input[type="checkbox"] {
  margin: 0;
  width: 15px;
  height: 15px;
  accent-color: var(--color-primary-dk);
  cursor: pointer;
}
.filter-count {
  margin-left: auto;
  font-size: .7rem;
  color: #94a3b8;
  font-weight: 500;
}
.filter-stars-display { display: flex; gap: 1px; }
.star-icon { font-size: .8rem; color: #f59e0b; }
.star-icon.star-empty { color: #e2e8f0; }

/* Price Range Filter */
.filter-price-range {
  display: flex;
  gap: .4rem;
  align-items: center;
  margin-bottom: .5rem;
}
.filter-price-range input {
  width: 0;
  flex: 1;
  font-size: .8rem;
  padding: .35rem .5rem;
  border-radius: .4rem;
}
.filter-price-sep { color: #94a3b8; font-size: .8rem; }
.filter-price-presets {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
}
.filter-preset {
  padding: .2rem .5rem;
  font-size: .68rem;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  background: var(--color-white);
  color: #64748b;
  cursor: pointer;
  transition: all .15s;
  font-weight: 500;
}
.filter-preset:hover { border-color: var(--color-primary-dk); color: var(--color-primary-dk); background: #eff6ff; }

/* Show more amenities */
.filter-show-more {
  border: none;
  background: none;
  color: var(--color-primary-dk);
  font-size: .78rem;
  cursor: pointer;
  padding: .2rem 0;
  font-weight: 500;
}
.filter-show-more:hover { text-decoration: underline; }

.search-results { flex: 1; min-width: 0; }

/* Results Toolbar */
.results-toolbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: .85rem;
  flex-wrap: wrap;
  padding: .6rem 1rem;
  background: var(--color-white);
  border-radius: .5rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.results-count { font-weight: 700; font-size: .9rem; color: #1e293b; }
.results-sort {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin-left: auto;
  font-size: .82rem;
}
.results-sort label { margin: 0; white-space: nowrap; color: #64748b; font-weight: 500; }
.results-sort select { max-width: 180px; font-size: .82rem; }
.cart-btn-top {
  display: flex;
  align-items: center;
  gap: .35rem;
  white-space: nowrap;
  font-weight: 600;
  margin-left: auto;
}

/* ── Hotel Cards ── */
.hotel-cards { display: flex; flex-direction: column; gap: .85rem; }

.hotel-card {
  display: flex;
  background: var(--color-white);
  border-radius: .75rem;
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
  overflow: hidden;
  transition: all .2s;
  border: 1px solid transparent;
}
.hotel-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,.1);
  border-color: #e2e8f0;
  transform: translateY(-1px);
}

.hc-image {
  flex: 0 0 220px;
  min-height: 180px;
  position: relative;
  overflow: hidden;
  background: #f1f5f9;
}
.hc-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.hotel-card:hover .hc-image img { transform: scale(1.03); }
.hc-no-image {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: .5rem;
  width: 100%;
  height: 100%;
  color: #94a3b8;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
}
.hc-promo-badge {
  position: absolute;
  top: .75rem;
  left: .75rem;
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  padding: .25rem .7rem;
  border-radius: 1rem;
  box-shadow: 0 2px 6px rgba(5,150,105,.3);
  letter-spacing: .02em;
}

.hc-body {
  flex: 1;
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}
.hc-top { flex: 1; }
.hc-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 .3rem;
  color: #1e293b;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hc-meta-row {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .35rem;
  flex-wrap: wrap;
}
.hc-stars { color: #f59e0b; font-size: .85rem; flex-shrink: 0; }
.star { margin-right: 1px; }
.hc-chain {
  font-size: .65rem;
  font-weight: 600;
  color: #6366f1;
  background: #eef2ff;
  padding: .1rem .4rem;
  border-radius: .3rem;
}
.hc-proptype-badge {
  font-size: .62rem;
  font-weight: 600;
  color: #64748b;
  background: #f1f5f9;
  padding: .1rem .4rem;
  border-radius: .3rem;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.hc-location {
  font-size: .78rem;
  color: #64748b;
  margin-bottom: .6rem;
  display: flex;
  align-items: center;
  gap: .25rem;
}
.hc-location svg { flex-shrink: 0; color: #94a3b8; }

.hc-details { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: auto; }
.hc-tag {
  display: inline-flex;
  align-items: center;
  font-size: .68rem;
  padding: .2rem .55rem;
  border-radius: 1rem;
  background: #f1f5f9;
  color: #475569;
  font-weight: 500;
}
.hc-tag--meal { background: #eff6ff; color: var(--color-primary-dk); }
.hc-tag--refund { background: #ecfdf5; color: #059669; }
.hc-tag--nonref { background: #fef2f2; color: #dc2626; }

.hc-right {
  flex: 0 0 175px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  text-align: right;
  border-left: 1px solid #f1f5f9;
  padding: 1rem 1.15rem;
  background: #fafbfd;
}
.hc-pricing { }
.hc-price-main { font-size: 1.35rem; font-weight: 800; color: #1e293b; line-height: 1.2; }
.hc-price-main small { font-size: .68rem; font-weight: 400; color: #94a3b8; }
.hc-price-total { font-size: .75rem; color: #64748b; margin-top: .2rem; }
.hc-price-net {
  font-size: .65rem;
  color: #94a3b8;
  margin-top: .15rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .05rem;
}
.hc-actions { display: flex; flex-direction: column; gap: .35rem; align-items: stretch; margin-top: auto; width: 100%; }
.hc-actions .btn { font-size: .78rem; text-align: center; }

/* Spinner for add to cart */
.spinner-sm {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .5s linear infinite;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Pagination */
.pagination-bar {
  display: flex;
  gap: .4rem;
  justify-content: center;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

/* ── Hotel Detail Page ── */
.hotel-gallery {
  margin-bottom: 1.25rem;
  border-radius: .75rem;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 200px 200px;
  gap: 4px;
  background: #fff;
  max-height: 404px;
}
.hg-hero {
  grid-row: 1 / 3;
  grid-column: 1;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}
.hg-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.hg-hero:hover img { transform: scale(1.02); }
.hg-thumbs {
  display: contents;
}
.hg-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: opacity .15s, transform .3s;
  opacity: .95;
}
.hg-thumb:hover { opacity: 1; transform: scale(1.03); }
.hg-more-overlay {
  position: relative;
  overflow: hidden;
}
.hg-more-overlay::after {
  content: attr(data-count) ' + more';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .02em;
  pointer-events: none;
}
@media (max-width: 900px) {
  .hotel-gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 200px 100px;
    max-height: 304px;
  }
  .hg-hero { grid-column: 1 / 3; grid-row: 1; }
}

/* Lightbox */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.gallery-lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: .5rem;
  box-shadow: 0 10px 40px rgba(0,0,0,.5);
}
.gl-close, .gl-prev, .gl-next {
  position: absolute;
  color: #fff;
  cursor: pointer;
  user-select: none;
  font-family: Arial, sans-serif;
  transition: background .15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gl-close {
  top: 1rem; right: 1.5rem;
  font-size: 2.5rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
}
.gl-prev, .gl-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
}
.gl-prev { left: 1.5rem; }
.gl-next { right: 1.5rem; }
.gl-close:hover, .gl-prev:hover, .gl-next:hover { background: rgba(255,255,255,.3); }
.gl-counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: .85rem;
  background: rgba(0,0,0,.5);
  padding: .4rem 1rem;
  border-radius: 1rem;
}

/* ── Detail Page Two-Column Layout ── */
.detail-content-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.25rem;
  margin-top: 1rem;
  align-items: start;
}
.detail-main { min-width: 0; display: flex; flex-direction: column; gap: 1rem; }
.detail-sidebar { display: flex; flex-direction: column; gap: 1rem; position: sticky; top: 1rem; }

.detail-card {
  border-radius: .75rem;
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
  overflow: hidden;
}
.detail-card .card-header {
  padding: .85rem 1.15rem;
  border-bottom: 1px solid #f1f5f9;
  background: #fafbfd;
}
.detail-card .card-title {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}
.detail-card .card-title svg { color: var(--color-primary-dk); }
.detail-card .card-body { padding: 1.1rem 1.15rem; }

/* Description */
.hotel-description {
  font-size: .88rem;
  line-height: 1.65;
  color: #334155;
  margin: 0 0 .5rem;
  max-height: 5em;
  overflow: hidden;
  position: relative;
}
.hotel-description.expanded { max-height: none; }
.hotel-description:not(.expanded)::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2em;
  background: linear-gradient(transparent, #fff);
}
.btn-link-sm {
  background: none;
  border: none;
  color: var(--color-primary-dk);
  font-size: .8rem;
  cursor: pointer;
  padding: 0;
  font-weight: 600;
  margin-bottom: .5rem;
}
.btn-link-sm:hover { text-decoration: underline; }

/* Property Facts */
.prop-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed #e2e8f0;
}
.fact {
  display: flex;
  gap: .5rem;
  align-items: flex-start;
  padding: .5rem;
  background: #f8fafc;
  border-radius: .5rem;
}
.fact svg { color: var(--color-primary-dk); flex-shrink: 0; margin-top: 2px; }
.fact small { display: block; font-size: .68rem; color: #64748b; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.fact strong { display: block; font-size: .85rem; color: #1e293b; font-weight: 600; margin-top: 2px; }
.fact em { font-style: normal; font-size: .7rem; font-weight: 400; }

/* Amenity Grid */
.amenity-grid-display {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: .55rem;
}
.amenity-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem .65rem;
  background: #f8fafc;
  border-radius: .4rem;
  font-size: .82rem;
  color: #334155;
}
.amenity-item svg { flex-shrink: 0; }

/* Policies */
.policy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
}
.policy-item {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  padding: .65rem;
  background: #fef9e7;
  border-left: 3px solid #f59e0b;
  border-radius: .3rem;
}
.policy-item svg { color: #f59e0b; flex-shrink: 0; margin-top: 2px; }
.policy-item small { display: block; font-size: .68rem; color: #64748b; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.policy-item strong { display: block; font-size: .78rem; color: #1e293b; font-weight: 500; margin-top: 2px; line-height: 1.4; }
.policy-notes {
  margin-top: .85rem;
  padding: .7rem;
  background: #f1f5f9;
  border-radius: .4rem;
  color: #475569;
  line-height: 1.5;
}

/* Sidebar: Contact */
.contact-row {
  display: flex;
  gap: .5rem;
  align-items: flex-start;
  padding: .35rem 0;
  font-size: .82rem;
  color: #334155;
  line-height: 1.4;
}
.contact-row svg { flex-shrink: 0; margin-top: 3px; }
.contact-row a { color: var(--color-primary-dk); text-decoration: none; }
.contact-row a:hover { text-decoration: underline; }

/* Landmark list */
.landmark-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.landmark-list li {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem 1.15rem;
  border-bottom: 1px solid #f1f5f9;
  font-size: .8rem;
}
.landmark-list li:last-child { border-bottom: none; }
.landmark-type {
  font-size: .6rem;
  font-weight: 700;
  padding: .15rem .4rem;
  border-radius: .25rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.landmark-type--airport { background: #dbeafe; color: #1e40af; }
.landmark-type--attraction { background: #fce7f3; color: #be185d; }
.landmark-type--dining { background: #fed7aa; color: #9a3412; }
.landmark-type--shopping { background: #e9d5ff; color: #6b21a8; }
.landmark-type--transport { background: #cffafe; color: #0e7490; }
.landmark-type--beach { background: #fef3c7; color: #92400e; }
.landmark-type--hospital { background: #fecaca; color: #991b1b; }
.landmark-type--station { background: #d1fae5; color: #065f46; }
.landmark-name { flex: 1; color: #1e293b; font-weight: 500; }
.landmark-dist { color: #64748b; font-weight: 600; font-size: .75rem; }

@media (max-width: 900px) {
  .detail-content-grid { grid-template-columns: 1fr; }
  .detail-sidebar { position: static; }
  .prop-facts { grid-template-columns: repeat(2, 1fr); }
  .policy-grid { grid-template-columns: 1fr; }
}

/* Stay Info Bar */
.stay-info-bar {
  display: flex;
  gap: 1.5rem;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  padding: .75rem 1.25rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.sib-item { display: flex; flex-direction: column; }
.sib-item strong {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--color-text-muted);
}
.sib-item span { font-size: .95rem; font-weight: 600; }

/* Amenity tags */
.amenity-tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.amenity-tag {
  padding: .25rem .65rem;
  border-radius: 1rem;
  background: var(--color-bg);
  font-size: .8rem;
  color: var(--color-text);
}

/* Room Options */
.room-options { display: flex; flex-direction: column; }
.room-option {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--color-border);
  gap: 1rem;
}
.room-option:last-child { border-bottom: none; }
.ro-info { flex: 1; }
.ro-name { font-size: .95rem; margin: 0 0 .4rem; }
.ro-tags { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: .4rem; }
.ro-promo { color: var(--color-success); font-size: .8rem; font-weight: 600; margin-top: .3rem; }
.ro-cancel-policy { margin-top: .3rem; }
.ro-pricing { text-align: right; flex: 0 0 auto; min-width: 160px; }
.ro-price-main { font-size: 1.15rem; font-weight: 700; }
.ro-price-main small { font-size: .75rem; font-weight: 400; color: var(--color-text-muted); }
.ro-price-total { font-size: .82rem; color: var(--color-text-muted); }
.ro-price-net { font-size: .72rem; color: var(--color-text-muted); margin-bottom: .5rem; }
.ro-actions { display: flex; gap: .4rem; justify-content: flex-end; flex-wrap: wrap; }

/* ── Cart Page ── */
.cart-layout {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.cart-items { flex: 1; min-width: 0; }
.cart-checkout {
  flex: 0 0 340px;
  position: sticky;
  top: 1rem;
}

.cart-group { margin-bottom: 1rem; }
.cart-group-header {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem 0;
  border-bottom: 2px solid var(--color-primary);
  margin-bottom: .5rem;
}
.cart-group-header h3 { font-size: .95rem; margin: 0; }
.cart-group-icon { color: var(--color-primary); }

.cart-item {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  margin-bottom: .5rem;
  overflow: hidden;
}
.ci-body {
  display: flex;
  justify-content: space-between;
  padding: .85rem 1rem;
  gap: 1rem;
}
.ci-info { flex: 1; }
.ci-title { font-size: .95rem; margin: 0 0 .2rem; }
.ci-subtitle { font-size: .82rem; color: var(--color-text-muted); }
.ci-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: .4rem;
  font-size: .8rem;
  color: var(--color-text-muted);
}
.ci-supplier { margin-top: .25rem; }
.ci-pricing { text-align: right; flex: 0 0 auto; }
.ci-price-sell { font-size: 1.1rem; font-weight: 700; }
.ci-price-break { font-size: .72rem; color: var(--color-text-muted); display: flex; flex-direction: column; }
.ci-remove { margin-top: .4rem; }

/* Cart Summary */
.cart-summary-list { margin: 0; }
.cs-row {
  display: flex;
  justify-content: space-between;
  padding: .35rem 0;
  font-size: .9rem;
}
.cs-row dt { font-weight: 400; color: var(--color-text-muted); }
.cs-row dd { margin: 0; font-weight: 600; }
.cs-row--total {
  border-top: 2px solid var(--color-border);
  margin-top: .35rem;
  padding-top: .5rem;
}
.cs-row--total dt, .cs-row--total dd { font-size: 1.05rem; font-weight: 700; }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .hc-image { flex: 0 0 180px; }
  .hc-right { flex: 0 0 150px; padding: .75rem; }
}
@media (max-width: 900px) {
  .search-bar { flex-direction: column; }
  .sb-field { min-width: 100%; }
  .search-results-layout { flex-direction: column; }
  .search-filters { flex: none; width: 100%; position: static; max-height: none; }
  .hotel-card { flex-direction: column; }
  .hc-image { flex: none; height: 200px; }
  .hc-right { flex: none; flex-direction: row; align-items: center; justify-content: space-between; text-align: left; border-left: none; border-top: 1px solid #f1f5f9; width: 100%; }
  .hc-actions { flex-direction: row; width: auto; }
  .cart-layout { flex-direction: column; }
  .cart-checkout { flex: none; width: 100%; position: static; }
}
@media (max-width: 600px) {
  .hc-right { flex-direction: column; align-items: flex-start; }
  .room-option { flex-direction: column; }
  .ro-pricing { text-align: left; }
  .ro-actions { justify-content: flex-start; }
}

/* ═══════════════════════════════════════════════════════════
   REVIEW / BOOKING PAGE
   ═══════════════════════════════════════════════════════════ */
.review-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 1.5rem;
  align-items: start;
  margin-top: 1rem;
}
.review-main { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.review-sidebar { position: sticky; top: 1rem; }

/* ── Hotel summary card ── */
.rv-hotel {
  display: flex;
  gap: 1rem;
  align-items: stretch;
  padding: 1rem;
}
.rv-hotel-thumb {
  flex: 0 0 180px;
  height: 140px;
  border-radius: 10px;
  overflow: hidden;
  background: #f1f5f9;
  position: relative;
}
.rv-hotel-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rv-hotel-info { flex: 1; display: flex; flex-direction: column; gap: .5rem; min-width: 0; }
.rv-hotel-name { font-size: 1.15rem; font-weight: 700; color: #0f172a; margin: 0; }
.rv-hotel-meta { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; color: #64748b; font-size: .85rem; }
.rv-stars { color: #f59e0b; letter-spacing: 1px; font-size: .9rem; }
.rv-hotel-location { color: #64748b; font-size: .85rem; display: flex; align-items: center; gap: .3rem; }
.rv-tags { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: auto; }
.rv-tags .tag {
  display: inline-block;
  padding: .2rem .55rem;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: .72rem;
  font-weight: 600;
  border-radius: 12px;
}

/* ── Stay facts grid ── */
.rv-stay-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .75rem;
  padding: 1rem;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}
.rv-fact {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  padding: .6rem .7rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}
.rv-fact > svg { color: #1d4ed8; flex: 0 0 16px; margin-top: .15rem; }
.rv-fact > div { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.rv-fact small { font-size: .7rem; color: #64748b; text-transform: uppercase; letter-spacing: .4px; font-weight: 600; }
.rv-fact strong { font-size: .85rem; color: #0f172a; font-weight: 600; line-height: 1.3; }

/* ── Guest rows ── */
.rv-guest-row {
  padding: 1rem 1.1rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  margin-bottom: .75rem;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.rv-guest-row:hover { border-color: #cbd5e1; box-shadow: 0 2px 8px rgba(15, 23, 42, .04); }
.rv-guest-row:last-child { margin-bottom: 0; }
.rv-guest-header {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .85rem;
  flex-wrap: wrap;
}
.rv-guest-num {
  flex: 0 0 26px;
  height: 26px;
  width: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e3a8a, #1d4ed8);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .78rem;
  font-weight: 700;
}
.rv-guest-label {
  font-size: .9rem;
  font-weight: 600;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.rv-lead-badge {
  display: inline-block;
  padding: .1rem .45rem;
  background: #dcfce7;
  color: #166534;
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
  border-radius: 10px;
}
.rv-saved-select {
  margin-left: auto;
  padding: .4rem .65rem;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: .8rem;
  background: #f8fafc;
  color: #334155;
  cursor: pointer;
  max-width: 220px;
  font-family: inherit;
}
.rv-saved-select:hover { border-color: #1d4ed8; }

.rv-guest-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 140px;
  gap: .7rem;
}
.rv-contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 1fr;
  gap: .7rem;
}

/* Unified field styling */
.rv-field {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  min-width: 0;
}
.rv-field-label {
  font-size: .72rem;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.rv-input {
  width: 100%;
  padding: .55rem .7rem;
  border: 1px solid #d1d5db;
  border-radius: 7px;
  font-size: .9rem;
  color: #0f172a;
  background: #fff;
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color .15s, box-shadow .15s;
}
.rv-input:focus {
  outline: none;
  border-color: #1d4ed8;
  box-shadow: 0 0 0 3px rgba(29, 78, 216, .12);
}
.rv-input::placeholder { color: #9ca3af; }
textarea.rv-input { resize: vertical; min-height: 60px; }

/* ── Pricing card (sidebar) ── */
.rv-pricing-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(15, 23, 42, .05);
}
.rv-price-section {
  padding: .9rem 1rem;
  border-bottom: 1px solid #f1f5f9;
}
.rv-price-section:last-child { border-bottom: none; }
.rv-section-label {
  font-size: .7rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .5px;
  font-weight: 700;
  margin-bottom: .5rem;
}
.rv-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .3rem 0;
  font-size: .88rem;
  color: #334155;
}
.rv-price-row--sub { font-size: .8rem; color: #64748b; }
.rv-price-row strong { color: #0f172a; font-weight: 600; }
.rv-promo {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .25rem .55rem;
  background: #dcfce7;
  color: #166534;
  font-size: .72rem;
  font-weight: 600;
  border-radius: 12px;
  margin-top: .3rem;
}
.rv-price-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: .75rem 1rem;
  background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 100%);
  color: #fff;
}
.rv-price-total .label { font-size: .85rem; opacity: .9; }
.rv-price-total .value { font-size: 1.35rem; font-weight: 700; }

/* ── Wallet info ── */
.rv-wallet-info {
  display: flex;
  justify-content: space-between;
  padding: .5rem .7rem;
  background: #eff6ff;
  border-radius: 6px;
  font-size: .82rem;
  color: #1e3a8a;
  margin-top: .4rem;
}
.rv-wallet-warn { background: #fef3c7; color: #92400e; }

/* ── Hold / deposit ── */
.rv-hold-check {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  padding: .6rem;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 6px;
  font-size: .82rem;
  color: #78350f;
  margin-top: .5rem;
  cursor: pointer;
}
.rv-hold-check input { margin-top: .15rem; }
.rv-deposit-note {
  font-size: .78rem;
  color: #64748b;
  margin-top: .5rem;
  padding: .5rem;
  background: #f8fafc;
  border-radius: 6px;
}

/* ── Confirm button ── */
.rv-confirm-btn {
  width: 100%;
  padding: .85rem 1rem;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  transition: transform .15s, box-shadow .15s;
}
.rv-confirm-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(5, 150, 105, .35);
}
.rv-secure-note {
  text-align: center;
  font-size: .75rem;
  color: #64748b;
  margin-top: .5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .3rem;
}

/* ── Cancellation table ── */
.rv-cancel-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
}
.rv-cancel-table th, .rv-cancel-table td {
  padding: .55rem .7rem;
  text-align: left;
  border-bottom: 1px solid #f1f5f9;
}
.rv-cancel-table th {
  background: #f8fafc;
  color: #64748b;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  font-weight: 700;
}
.rv-cancel-table tr:last-child td { border-bottom: none; }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .review-layout { grid-template-columns: 1fr; }
  .review-sidebar { position: static; }
}
@media (max-width: 850px) {
  .rv-stay-facts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .rv-hotel { flex-direction: column; }
  .rv-hotel-thumb { flex: none; width: 100%; height: 180px; }
  .rv-guest-grid { grid-template-columns: 1fr 1fr; }
  .rv-guest-grid .rv-field--type { grid-column: 1 / -1; }
  .rv-contact-grid { grid-template-columns: 1fr; }
  .rv-saved-select { margin-left: 0; width: 100%; max-width: none; }
}
@media (max-width: 480px) {
  .rv-stay-facts { grid-template-columns: 1fr; }
  .rv-guest-grid { grid-template-columns: 1fr; }
  .rv-guest-grid .rv-field--type { grid-column: auto; }
}

/* ═══════════════════════════════════════════════════════════
   BOOKING DETAIL PAGE
   ═══════════════════════════════════════════════════════════ */
.bk-hero {
  position: relative;
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.25rem;
  border-radius: 14px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  overflow: hidden;
  background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 55%, var(--color-primary-dk) 100%);
  box-shadow: 0 8px 24px rgba(29, 78, 216, .2);
}
.bk-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 85% 20%, rgba(255,255,255,.14) 0, transparent 35%),
    radial-gradient(circle at 15% 90%, rgba(255,255,255,.08) 0, transparent 40%);
  pointer-events: none;
}
.bk-hero--success { background: linear-gradient(135deg, #064e3b 0%, #047857 55%, #059669 100%); box-shadow: 0 8px 24px rgba(5, 150, 105, .22); }
.bk-hero--warning { background: linear-gradient(135deg, #78350f 0%, #b45309 55%, #d97706 100%); box-shadow: 0 8px 24px rgba(217, 119, 6, .22); }
.bk-hero--danger  { background: linear-gradient(135deg, #7f1d1d 0%, #b91c1c 55%, #dc2626 100%); box-shadow: 0 8px 24px rgba(220, 38, 38, .22); }

.bk-hero-left { position: relative; z-index: 1; flex: 1 1 auto; min-width: 0; }
.bk-back {
  display: inline-flex; align-items: center; gap: .3rem;
  color: rgba(255,255,255,.85); text-decoration: none;
  font-size: .8rem; font-weight: 600;
  padding: .3rem .7rem;
  background: rgba(255,255,255,.15);
  border-radius: 20px;
  margin-bottom: .75rem;
  transition: background .15s;
}
.bk-back:hover { background: rgba(255,255,255,.25); color: #fff; }

.bk-hero-title h1 {
  margin: 0 0 .5rem;
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.02em;
}
.bk-ref {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-weight: 700;
  background: rgba(255,255,255,.18);
  padding: .1rem .55rem;
  border-radius: 6px;
  font-size: 1.3rem;
  margin-left: .25rem;
}
.bk-hero-meta {
  display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
  color: rgba(255,255,255,.92); font-size: .88rem;
}
.bk-hero-dot { opacity: .5; }
.bk-product-tag {
  text-transform: uppercase;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .6px;
  padding: .15rem .5rem;
  background: rgba(255,255,255,.2);
  border-radius: 4px;
}
.bk-pnr { font-size: .82rem; }
.bk-pnr strong { font-family: 'JetBrains Mono', ui-monospace, monospace; background: rgba(0,0,0,.18); padding: .1rem .4rem; border-radius: 4px; }
.bk-status {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .2rem .55rem;
  background: rgba(255,255,255,.22);
  color: #fff;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.bk-hold-banner {
  display: inline-flex; align-items: center; gap: .4rem;
  margin-top: .75rem;
  padding: .4rem .75rem;
  background: rgba(0,0,0,.2);
  border-radius: 6px;
  font-size: .82rem;
}

.bk-hero-actions {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; gap: .5rem;
  align-items: center;
}
.bk-hero-actions .btn {
  padding: .5rem .9rem;
  font-size: .85rem;
  border-radius: 7px;
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 600;
}
.bk-hero-actions .btn-light { background: rgba(255,255,255,.95); color: #0f172a; border: none; }
.bk-hero-actions .btn-light:hover { background: #fff; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.15); }
.bk-hero-actions .btn-success { background: #fff; color: #047857; border: none; }
.bk-hero-actions .btn-success:hover { background: #ecfdf5; }
.bk-hero-actions .btn-danger-outline:hover { background: #fef2f2; color: #b91c1c; }

/* Layout */
.bk-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.25rem;
  align-items: start;
}
.bk-main { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.bk-sidebar { position: sticky; top: 1rem; display: flex; flex-direction: column; gap: 1rem; }

/* Product card */
.bk-product-card {
  display: flex; gap: 1rem; align-items: flex-start;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 1rem;
}
.bk-product-img {
  flex: 0 0 160px;
  width: 160px; height: 120px;
  border-radius: 10px;
  object-fit: cover;
  background: #f1f5f9;
}
.bk-product-img--ph { display: flex; align-items: center; justify-content: center; color: #94a3b8; }
.bk-product-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .5rem; }
.bk-product-name { margin: 0; font-size: 1.15rem; font-weight: 700; color: #0f172a; }
.bk-product-meta { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; color: #64748b; font-size: .85rem; }
.bk-product-loc { display: inline-flex; align-items: center; gap: .3rem; }

/* Stay/travel grid */
.bk-stay-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: .6rem;
}
.bk-fact {
  display: flex; gap: .55rem; align-items: flex-start;
  padding: .65rem .75rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}
.bk-fact > svg { color: #1d4ed8; flex: 0 0 16px; margin-top: .15rem; }
.bk-fact > div { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.bk-fact small { font-size: .7rem; color: #64748b; text-transform: uppercase; letter-spacing: .4px; font-weight: 600; }
.bk-fact strong { font-size: .85rem; color: #0f172a; font-weight: 600; line-height: 1.3; }

/* Items */
.bk-items { display: flex; flex-direction: column; }
.bk-item {
  display: flex; gap: .85rem; align-items: center;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid #f1f5f9;
}
.bk-item:last-child { border-bottom: none; }
.bk-item-icon {
  flex: 0 0 40px; width: 40px; height: 40px;
  background: #eff6ff; color: #1d4ed8;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.bk-item-main { flex: 1; min-width: 0; }
.bk-item-title { font-weight: 600; color: #0f172a; font-size: .95rem; }
.bk-item-desc { color: #64748b; font-size: .82rem; margin-top: .15rem; }
.bk-item-req {
  display: inline-flex; align-items: center; gap: .3rem;
  margin-top: .35rem;
  padding: .2rem .5rem;
  background: #fffbeb;
  color: #92400e;
  border-radius: 12px;
  font-size: .75rem;
}
.bk-item-price { text-align: right; flex: 0 0 auto; }
.bk-item-total { font-weight: 700; color: #0f172a; font-size: 1rem; }

/* Pax grid */
.bk-count {
  display: inline-block;
  margin-left: .4rem;
  padding: .1rem .5rem;
  background: #eff6ff;
  color: #1d4ed8;
  border-radius: 10px;
  font-size: .72rem;
  font-weight: 700;
}
.bk-pax-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: .6rem;
}
.bk-pax-card {
  display: flex; gap: .75rem; align-items: center;
  padding: .75rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  transition: border-color .15s;
}
.bk-pax-card:hover { border-color: #cbd5e1; }
.bk-pax-avatar {
  flex: 0 0 36px; width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e3a8a, #1d4ed8);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.bk-pax-info { flex: 1; min-width: 0; }
.bk-pax-name { font-weight: 600; color: #0f172a; font-size: .9rem; }
.bk-pax-meta { color: #64748b; font-size: .78rem; display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .1rem; }
.bk-pax-type { color: #1d4ed8; font-weight: 600; }

/* Contact */
.bk-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: .75rem;
}
.bk-contact-item { display: flex; flex-direction: column; gap: .15rem; }
.bk-contact-item small { font-size: .7rem; color: #64748b; text-transform: uppercase; letter-spacing: .4px; font-weight: 600; }
.bk-contact-item strong { font-size: .9rem; color: #0f172a; }
.bk-contact-item a { color: #1d4ed8; text-decoration: none; }
.bk-remarks {
  margin-top: .85rem;
  padding: .75rem;
  background: #f8fafc;
  border-left: 3px solid #1d4ed8;
  border-radius: 6px;
  font-size: .88rem;
  color: #334155;
  line-height: 1.5;
}

/* Agent */
.bk-agent-card {
  display: flex; gap: .75rem; align-items: center;
  padding-bottom: .75rem;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: .75rem;
}
.bk-agent-avatar {
  flex: 0 0 44px; width: 44px; height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1d4ed8, var(--color-primary));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}
.bk-agent-name { font-weight: 700; color: #0f172a; font-size: .95rem; }
.bk-agent-code { color: #64748b; font-size: .78rem; margin-top: .15rem; }
.bk-agent-contact { display: flex; flex-direction: column; gap: .4rem; }
.bk-agent-contact > div {
  display: flex; align-items: center; gap: .4rem;
  color: #475569; font-size: .82rem;
}
.bk-agent-contact svg { color: #94a3b8; }

/* Timeline */
.bk-timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.bk-timeline::before {
  content: ''; position: absolute;
  left: 6px; top: 6px; bottom: 6px;
  width: 2px; background: #e2e8f0;
}
.bk-tl {
  position: relative;
  padding-left: 1.5rem;
  padding-bottom: .85rem;
  display: flex; gap: .75rem;
}
.bk-tl:last-child { padding-bottom: 0; }
.bk-tl-dot {
  position: absolute; left: 0; top: 4px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #cbd5e1;
  z-index: 1;
}
.bk-tl.done .bk-tl-dot { background: #059669; border-color: #059669; box-shadow: 0 0 0 3px rgba(5, 150, 105, .15); }
.bk-tl.cancelled .bk-tl-dot { background: #dc2626; border-color: #dc2626; box-shadow: 0 0 0 3px rgba(220, 38, 38, .15); }
.bk-tl > div { display: flex; flex-direction: column; gap: .1rem; }
.bk-tl strong { font-size: .88rem; color: #0f172a; }
.bk-tl small { font-size: .75rem; color: #64748b; }

/* Cancel modal */
.bk-modal {
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, .65);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(4px);
}
.bk-modal-dialog {
  background: #fff;
  border-radius: 14px;
  max-width: 560px; width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
.bk-modal-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e2e8f0;
  background: linear-gradient(135deg, #fef2f2 0%, #fff 100%);
}
.bk-modal-head h2 { margin: 0; font-size: 1.1rem; font-weight: 700; color: #0f172a; }
.bk-modal-close {
  background: none; border: none;
  font-size: 1.5rem; line-height: 1;
  color: #64748b; cursor: pointer;
  padding: 0 .25rem;
}
.bk-modal-close:hover { color: #0f172a; }
.bk-modal-body { padding: 1.25rem; overflow-y: auto; }
.bk-modal-foot {
  display: flex; justify-content: flex-end; gap: .5rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
}
.bk-cancel-preview { display: flex; flex-direction: column; gap: .4rem; }
.bk-cancel-row {
  display: flex; justify-content: space-between;
  padding: .5rem .75rem;
  background: #f8fafc;
  border-radius: 6px;
  font-size: .9rem;
  color: #334155;
}
.bk-cancel-row strong { color: #0f172a; }
.bk-cancel-total {
  display: flex; justify-content: space-between; align-items: center;
  padding: .75rem 1rem;
  margin-top: .4rem;
  background: linear-gradient(135deg, #064e3b, #059669);
  color: #fff;
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 600;
}
.bk-cancel-total strong { color: #fff; font-size: 1.1rem; }
.bk-cancel-grid { margin-top: 1rem; }

@media (max-width: 1100px) {
  .bk-layout { grid-template-columns: 1fr; }
  .bk-sidebar { position: static; }
}
@media (max-width: 700px) {
  .bk-hero { padding: 1rem 1.1rem; }
  .bk-hero-title h1 { font-size: 1.3rem; }
  .bk-ref { font-size: 1rem; }
  .bk-hero-actions { width: 100%; }
  .bk-product-card { flex-direction: column; }
  .bk-product-img { flex: none; width: 100%; height: 180px; }
  .bk-item { flex-wrap: wrap; }
  .bk-item-price { margin-left: auto; }
}

/* ═══════════════════════════════════════════════════════════
   FLIGHT SEARCH & REVIEW
   ═══════════════════════════════════════════════════════════ */

.search-bar-wrap--flight { background-image: linear-gradient(135deg, #0c4a6e 0%, #0369a1 55%, #0284c7 100%); }
.sb-swap {
  align-self: center;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: #1d4ed8;
  transition: transform .2s;
  flex-shrink: 0;
  margin: 0 -.5rem;
  z-index: 2;
}
.sb-swap:hover { transform: rotate(180deg); background: #eff6ff; }


/* Flight card */
.flight-list { display: flex; flex-direction: column; gap: .75rem; }
.flight-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  display: grid;
  grid-template-columns: 180px 1fr 200px;
  gap: 1.25rem;
  align-items: center;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.flight-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 6px 20px rgba(15, 23, 42, .06);
  transform: translateY(-1px);
}

.flight-airline { display: flex; align-items: center; gap: .75rem; }
.airline-badge {
  width: 44px; height: 44px;
  border-radius: 10px;
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .5px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.airline-name { font-weight: 600; color: #0f172a; font-size: .92rem; }

/* Flight route display */
.flight-route {
  display: grid;
  grid-template-columns: 70px 1fr 70px;
  gap: .5rem;
  align-items: center;
}
.flight-end { text-align: center; }
.fe-time { font-size: 1.35rem; font-weight: 700; color: #0f172a; line-height: 1.1; }
.fe-code { font-size: .82rem; color: #64748b; font-weight: 600; letter-spacing: .5px; margin-top: .15rem; }
.flight-timeline { text-align: center; position: relative; }
.ft-duration { font-size: .75rem; color: #64748b; margin-bottom: .25rem; font-weight: 600; }
.ft-line {
  position: relative;
  height: 2px;
  background: linear-gradient(90deg, #cbd5e1 0%, #cbd5e1 100%);
  margin: .5rem 0;
  display: flex; align-items: center; justify-content: space-between;
}
.ft-dot { width: 8px; height: 8px; background: #1d4ed8; border-radius: 50%; flex-shrink: 0; }
.ft-plane {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  color: #1d4ed8;
  padding: 0 .35rem;
}
.ft-stops { font-size: .7rem; color: #059669; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; }

.flight-features {
  grid-column: 1 / -2;
  display: flex; gap: .35rem; flex-wrap: wrap;
  margin-top: .5rem;
  padding-top: .75rem;
  border-top: 1px dashed #e2e8f0;
}

/* Flight price block */
.flight-price {
  grid-row: 1 / span 2;
  grid-column: 3;
  text-align: center;
  padding-left: 1rem;
  border-left: 1px solid #f1f5f9;
  display: flex; flex-direction: column; align-items: center; gap: .1rem;
}
.fp-currency { font-size: .7rem; color: #64748b; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.fp-amount { font-size: 1.5rem; font-weight: 700; color: #0f172a; line-height: 1.1; }
.fp-per { font-size: .72rem; color: #64748b; margin-bottom: .25rem; }
.fp-net { font-size: .72rem; color: #94a3b8; text-decoration: line-through; margin-bottom: .4rem; }
.fp-book { width: 100%; margin-top: .4rem; }

/* Filter variants for flights */
.filter-price-range input[type=range] { width: 100%; margin-top: .4rem; accent-color: #1d4ed8; }
#priceLabel { font-size: .85rem; font-weight: 600; color: #1d4ed8; }

.airline-dot {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 5px;
  color: #fff; font-size: .65rem; font-weight: 700;
  flex-shrink: 0;
}
.filter-airline-name { flex: 1; font-size: .85rem; }

.filter-time-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: .4rem;
}
.filter-time-card {
  position: relative;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: .55rem .6rem;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  background: #fff;
}
.filter-time-card input { position: absolute; opacity: 0; }
.filter-time-card > div { display: flex; flex-direction: column; gap: .05rem; }
.filter-time-card .ft-icon { font-size: 1rem; }
.filter-time-card strong { font-size: .78rem; color: #0f172a; }
.filter-time-card small { font-size: .68rem; color: #64748b; }
.filter-time-card:has(input:checked) { border-color: #1d4ed8; background: #eff6ff; }

/* Review page - flight specifics */
.rv-flight-head {
  display: flex; gap: 1rem; align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 1rem;
}
.rv-flight-head .airline-badge { width: 52px; height: 52px; font-size: 1rem; border-radius: 12px; }
.rv-flight-info { flex: 1; min-width: 0; }
.rv-flight-date { text-align: right; }
.rv-flight-date small { display: block; font-size: .7rem; color: #64748b; text-transform: uppercase; letter-spacing: .5px; font-weight: 600; }
.rv-flight-date strong { font-size: .95rem; color: #0f172a; font-weight: 600; }

.rv-route {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 1rem;
}
.rv-route-end { text-align: center; }
.rv-route-time { font-size: 1.75rem; font-weight: 700; color: #0f172a; line-height: 1; }
.rv-route-code { font-size: 1rem; color: #1d4ed8; font-weight: 700; letter-spacing: 1px; margin-top: .2rem; }
.rv-route-end small { font-size: .72rem; color: #64748b; display: block; margin-top: .15rem; }
.rv-route-mid { text-align: center; }
.rv-route-duration { font-size: .8rem; color: #64748b; font-weight: 600; margin-bottom: .3rem; }
.rv-route-line {
  position: relative;
  height: 2px;
  background: #cbd5e1;
  display: flex; align-items: center; justify-content: space-between;
  margin: 0 .5rem;
}
.rv-route-line .ft-plane { color: #1d4ed8; background: #fff; }
.rv-route-stops { font-size: .72rem; color: #059669; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; margin-top: .4rem; }

/* Pax grid for flights (6 fields) */
.rv-flight-pax-grid {
  display: grid;
  grid-template-columns: 90px 1.4fr 1.4fr 130px;
  grid-template-areas:
    "title first last type"
    "dob   dob   pass  pass";
  gap: .6rem .75rem;
}
.rv-flight-pax-grid .rv-field--title    { grid-area: title; }
.rv-flight-pax-grid .rv-field--first    { grid-area: first; }
.rv-flight-pax-grid .rv-field--last     { grid-area: last; }
.rv-flight-pax-grid .rv-field--type     { grid-area: type; }
.rv-flight-pax-grid .rv-field--dob      { grid-area: dob; }
.rv-flight-pax-grid .rv-field--passport { grid-area: pass; }

@media (max-width: 1200px) {
  .rv-flight-pax-grid {
    grid-template-columns: 80px 1fr 1fr 120px;
    grid-template-areas:
      "title first last type"
      "dob   dob   pass  pass";
  }
}
@media (max-width: 1000px) {
  .flight-card { grid-template-columns: 160px 1fr; }
  .flight-price { grid-row: auto; grid-column: 1 / -1; border-left: none; border-top: 1px solid #f1f5f9; padding: .75rem 0 0; flex-direction: row; justify-content: space-between; padding-left: 0; margin-top: .5rem; }
  .flight-price .fp-book { width: auto; }
}
@media (max-width: 700px) {
  .flight-card { grid-template-columns: 1fr; gap: .75rem; }
  .flight-features { grid-column: 1; }
  .rv-route { grid-template-columns: 1fr; gap: .5rem; }
  .rv-route-mid { order: 2; }
  .rv-route-line { margin: 0; }
  .rv-flight-pax-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "title title"
      "first last"
      "type  dob"
      "pass  pass";
  }
  .filter-time-grid { grid-template-columns: 1fr; }
  .rv-flight-head { flex-wrap: wrap; }
  .rv-flight-date { flex: 1 0 100%; text-align: left; }
}

/* ═══════════════════════════════════════════════════════════
   FLIGHT - Trip type tabs, multi-city, pax popover
   ═══════════════════════════════════════════════════════════ */

.trip-tabs {
  display: flex;
  gap: .35rem;
  padding: .35rem;
  background: rgba(255, 255, 255, .12);
  border-radius: 999px;
  width: fit-content;
  margin-bottom: .9rem;
  backdrop-filter: blur(6px);
}
.trip-tab {
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, .82);
  font-size: .85rem;
  font-weight: 600;
  padding: .45rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s, color .15s;
  letter-spacing: .2px;
}
.trip-tab:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.trip-tab--active {
  background: #ffffff;
  color: #0c4a6e;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}

/* Autocomplete wrapper (relative context for dropdown) */
.sb-control {
  position: relative;
  display: flex;
  align-items: center;
}
.sb-control .sb-icon {
  position: absolute;
  left: .75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  pointer-events: none;
  z-index: 2;
}
.sb-control .form-control {
  padding-left: 2.25rem;
  width: 100%;
}
.sb-field--sm { flex: 0 1 110px; min-width: 90px; }
.sb-field--sm .sb-control .form-control,
.sb-field--sm .sb-control select { padding-left: .75rem; }
.sb-submit {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: 0 1.4rem;
  height: 42px;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  border: none;
  color: #fff;
  font-weight: 700;
  font-size: .88rem;
  border-radius: .5rem;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  align-self: flex-end;
  box-shadow: 0 4px 12px rgba(249, 115, 22, .35);
}
.sb-submit:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(249, 115, 22, .5); }
.sb-field--ac .sb-control .ac-dropdown {
  top: calc(100% + 6px);
  min-width: 280px;
  max-width: 360px;
}

/* IATA input styling - uppercase, tracked */
.ac-input[data-ac-type="airport"] {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

/* Multi-city bar */
.fl-multi-bar {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  background: #ffffff;
  border-radius: 12px;
  padding: .9rem 1rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
}
.fl-multi-row {
  display: grid;
  grid-template-columns: 28px 1fr 1fr 180px 32px;
  gap: .65rem;
  align-items: end;
}
.fl-multi-num {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: #eff6ff;
  color: #1d4ed8;
  border-radius: 50%;
  font-weight: 700;
  font-size: .82rem;
  margin-bottom: .35rem;
}
.fl-multi-remove {
  width: 32px; height: 32px;
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #b91c1c;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: .25rem;
  transition: all .15s;
}
.fl-multi-remove:hover { background: #fee2e2; transform: scale(1.08); }
.fl-multi-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding-top: .4rem;
  border-top: 1px dashed #e2e8f0;
}
.fl-multi-spacer { flex: 1; }

/* Pax popover - detached positioning */
.pax-dropdown--flight {
  position: absolute;
  z-index: 600;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .18);
  padding: 1rem;
  min-width: 320px;
  color: #1e293b;
}
.pax-dropdown--flight .pax-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .55rem 0;
  border-bottom: 1px solid #f1f5f9;
}
.pax-dropdown--flight .pax-row:last-of-type { border-bottom: 0; }
.pax-dropdown--flight .pax-row strong {
  display: block;
  font-size: .9rem;
  color: #0f172a;
  font-weight: 600;
}
.pax-dropdown--flight .pax-row small {
  color: #64748b;
  font-size: .75rem;
}
.pax-cabin {
  margin-top: .75rem;
  padding-top: .75rem;
  border-top: 1px solid #e2e8f0;
}
.pax-cabin > label {
  display: block;
  font-size: .78rem;
  color: #64748b;
  margin-bottom: .45rem;
  font-weight: 600;
}
.pax-cabin-opts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .4rem;
}
.pax-cabin-opt {
  border: 1px solid #e2e8f0;
  background: #ffffff;
  border-radius: 8px;
  padding: .5rem .65rem;
  font-size: .82rem;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
  transition: all .15s;
}
.pax-cabin-opt:hover { border-color: var(--color-primary-dk); color: #1d4ed8; }
.pax-cabin-opt--active {
  background: linear-gradient(135deg, var(--color-primary-dk), #0284c7);
  border-color: var(--color-primary-dk);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(37, 99, 235, .25);
}

/* Pax trigger on flight bar */
.sb-field--pax .pax-trigger {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: .55rem .75rem;
  cursor: pointer;
  color: #1e293b;
  font-size: .88rem;
  font-weight: 500;
  min-height: 40px;
  transition: border-color .15s;
}
.sb-field--pax .pax-trigger:hover { border-color: var(--color-primary-dk); }
.sb-field--pax .pax-trigger > svg:first-child { color: #64748b; flex-shrink: 0; }
.sb-field--pax .pax-trigger > svg:last-child { margin-left: auto; color: #64748b; }
.sb-field--pax #paxLabel {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Round-trip / multi-city segmented result blocks */
.fl-segments {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.fl-segment {
  background: transparent;
}
.fl-segment-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 0 .65rem;
  margin-bottom: .85rem;
  border-bottom: 2px solid #e2e8f0;
}
.fl-segment-label {
  display: inline-block;
  background: linear-gradient(135deg, #0369a1, #0284c7);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: .25rem .6rem;
  border-radius: 4px;
  margin-bottom: .4rem;
}
.fl-segment-head h2 {
  font-size: 1.15rem;
  color: #0f172a;
  margin: 0;
  font-weight: 700;
}
.fl-segment-head small {
  color: #64748b;
  font-size: .82rem;
  display: block;
  margin-top: .2rem;
}

/* Price range slider variant (flight only - single slider + label) */
.filter-price-range--slider {
  display: block;
  margin-bottom: 0;
}
.filter-price-range--slider > span {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: #1d4ed8;
  margin-bottom: .4rem;
}
.filter-price-range--slider input[type="range"] {
  width: 100%;
  flex: none;
  padding: 0;
  border: none;
  background: transparent;
  accent-color: var(--color-primary-dk);
  cursor: pointer;
}

/* Airline row tweaks */
.filter-check--airline { gap: .55rem; }
.filter-check--airline .airline-dot {
  width: 28px; height: 20px;
  border-radius: 4px;
  color: #fff;
  font-weight: 700;
  font-size: .66rem;
  letter-spacing: .4px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,.18);
}
.filter-airline-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.filter-count--price {
  color: #1e293b;
  font-weight: 600;
  font-size: .75rem;
}

/* Results toolbar - add count wrap + route line */
.results-count-wrap {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  line-height: 1.2;
}
.results-route {
  color: #64748b;
  font-size: .74rem;
}

/* Flight card price actions - stack Book + Add */
.flight-price .fp-actions {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  width: 100%;
  margin-top: .5rem;
}
.flight-price .fp-actions .btn { width: 100%; justify-content: center; display: inline-flex; align-items: center; gap: .3rem; }
.flight-price .fp-actions .fp-book { margin-top: 0; }

/* Time-of-day filter grid polish */
.filter-time-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .4rem;
  margin-top: .25rem;
}
.filter-time-card {
  position: relative;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: .5rem .55rem;
  cursor: pointer;
  transition: all .15s;
  background: #ffffff;
  display: block;
}
.filter-time-card input { position: absolute; opacity: 0; pointer-events: none; }
.filter-time-card:hover { border-color: var(--color-primary-dk); background: #f8fafc; }
.filter-time-card:has(input:checked) {
  border-color: var(--color-primary-dk);
  background: #eff6ff;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, .12);
}
.filter-time-card > div { display: flex; flex-direction: column; gap: .1rem; }
.filter-time-card .ft-icon { font-size: 1.1rem; line-height: 1; }
.filter-time-card strong { font-size: .82rem; color: #0f172a; font-weight: 600; }
.filter-time-card small { font-size: .68rem; color: #64748b; }

/* Results head legacy compat (if any old view still uses) */
.results-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .85rem; }

/* Multi-city responsive */
@media (max-width: 860px) {
  .fl-multi-row {
    grid-template-columns: 28px 1fr 1fr;
    gap: .5rem;
  }
  .fl-multi-row .sb-field:nth-child(4) { grid-column: 2 / span 2; }
  .fl-multi-remove { grid-column: 3; grid-row: 1; justify-self: end; }
}
@media (max-width: 560px) {
  .trip-tabs { width: 100%; justify-content: space-between; }
  .trip-tab { flex: 1; padding: .45rem .5rem; font-size: .78rem; }
  .fl-multi-row { grid-template-columns: 28px 1fr; }
  .fl-multi-row .sb-field { grid-column: 2; }
  .fl-multi-remove { grid-column: 2; justify-self: end; }
  .pax-dropdown--flight { min-width: calc(100vw - 2rem); left: 1rem !important; right: 1rem; }
}

/* ═══ Per-segment filter panels ═══ */
.filter-segment {
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: .75rem;
  margin-bottom: .75rem;
}
.filter-segment:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.filter-segment-head {
  display: flex;
  align-items: center;
  margin: .25rem 0 .75rem;
}
.filter-seg-pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .25rem .6rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  border-radius: 999px;
  color: #fff;
}
.filter-seg-pill--out { background: #0ea5e9; }
.filter-seg-pill--ret { background: #f97316; }
.filter-seg-pill--mc0 { background: var(--color-primary-dk); }
.filter-seg-pill--mc1 { background: #8b5cf6; }
.filter-seg-pill--mc2 { background: #ec4899; }
.filter-seg-pill--mc3 { background: #14b8a6; }
.filter-seg-pill--mc4 { background: #f59e0b; }
.filter-seg-pill--mc5 { background: #ef4444; }

/* ═══ Segment labels on flight sections ═══ */
.fl-segment-label--out { background: #0ea5e9; color: #fff; }
.fl-segment-label--ret { background: #f97316; color: #fff; }

/* ═══ Combo-mode radio on flight card ═══ */
.flight-card--combo { position: relative; padding-left: 2.5rem; }
.fc-radio {
  position: absolute;
  left: .75rem;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  display: inline-block;
}
.fc-radio input { display: none; }
.fc-radio-dot {
  display: block;
  width: 20px;
  height: 20px;
  border: 2px solid #cbd5e1;
  border-radius: 50%;
  background: #fff;
  transition: all .15s;
}
.fc-radio input:checked + .fc-radio-dot {
  border-color: var(--color-primary-dk);
  background: radial-gradient(circle, var(--color-primary-dk) 0 6px, #fff 7px);
}
.flight-card--combo:has(.combo-radio:checked) {
  border-color: var(--color-primary-dk);
  box-shadow: 0 0 0 2px rgba(37,99,235,.15);
}

/* ═══ Bus combo-mode radio ═══ */
.bus-combo-card { position: relative; padding-left: 2.5rem; }
.bus-combo-card .fc-radio {
  position: absolute;
  left: .75rem;
  top: 50%;
  transform: translateY(-50%);
}
.bus-combo-card:has(.combo-radio:checked) {
  border-color: var(--color-primary-dk);
  box-shadow: 0 0 0 2px rgba(37,99,235,.15);
}

/* ═══ Combo bar (floating bottom) ═══ */
@keyframes comboBarRise {
  from { transform: translate(-50%, 120%); opacity: 0; }
  to   { transform: translate(-50%, 0);    opacity: 1; }
}
@keyframes comboLegPop {
  from { transform: scale(.92); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}
.combo-bar {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
  max-width: 1040px;
  background:
    linear-gradient(135deg, rgba(37,99,235,.04) 0%, rgba(255,255,255,.98) 40%, rgba(255,255,255,.98) 60%, rgba(16,185,129,.04) 100%),
    #fff;
  border: 1px solid rgba(37,99,235,.15);
  border-radius: 18px;
  box-shadow:
    0 24px 48px -12px rgba(15,23,42,.25),
    0 0 0 1px rgba(255,255,255,.6) inset,
    0 1px 0 rgba(255,255,255,.8) inset;
  padding: .95rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  z-index: 1000;
  backdrop-filter: blur(12px);
  animation: comboBarRise .35s cubic-bezier(.2,.8,.2,1);
}
.combo-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 18px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(37,99,235,.3), transparent 30%, transparent 70%, rgba(16,185,129,.3));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

.combo-legs {
  display: flex;
  align-items: stretch;
  gap: .6rem;
  flex: 1;
  min-width: 0;
}
.combo-leg {
  position: relative;
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .5rem .7rem .5rem .55rem;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-size: .8rem;
  min-width: 0;
  flex: 1;
  transition: all .2s;
  animation: comboLegPop .25s cubic-bezier(.2,.8,.2,1);
}
.combo-leg:not(.combo-leg--empty) {
  background: linear-gradient(135deg, #f0f9ff 0%, #fff 100%);
  border-color: #bfdbfe;
  box-shadow: 0 1px 2px rgba(37,99,235,.06);
}
.combo-leg--empty {
  color: #94a3b8;
  font-style: italic;
  border-style: dashed;
  justify-content: center;
}
.combo-leg-ph { font-size: .74rem; }

/* Connector arrow between legs */
.combo-leg + .combo-leg::before {
  content: '→';
  position: absolute;
  left: -.65rem;
  top: 50%;
  transform: translateY(-50%);
  color: #cbd5e1;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1;
}

.combo-leg-dot {
  width: 34px; height: 24px;
  border-radius: 6px;
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .02em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(0,0,0,.15);
}
.combo-leg-body { min-width: 0; flex: 1; }
.combo-leg strong {
  display: block;
  font-size: .82rem;
  line-height: 1.15;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.combo-leg small {
  display: block;
  color: #64748b;
  font-size: .7rem;
  line-height: 1.2;
  margin-top: .05rem;
}

.combo-total {
  text-align: right;
  padding: 0 .25rem 0 .5rem;
  border-left: 1px solid #e5e7eb;
  padding-left: 1rem;
  flex-shrink: 0;
}
.combo-total-price {
  font-size: 1.55rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
  letter-spacing: -.02em;
  background: linear-gradient(135deg, #0f172a 0%, var(--color-primary-dk) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}
.combo-total-sub {
  font-size: .7rem;
  color: #64748b;
  margin-top: .2rem;
}
.combo-layover {
  font-size: .72rem;
  margin-top: .25rem;
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .15rem .45rem;
  border-radius: 999px;
  font-weight: 500;
}
.combo-layover--ok    { background: rgba(16,185,129,.1);  color: #059669; }
.combo-layover--warn  { background: rgba(245,158,11,.12); color: #d97706; }
.combo-layover--error { background: rgba(239,68,68,.12);  color: #dc2626; font-weight: 600; }

.combo-actions { flex-shrink: 0; }
.combo-actions .btn {
  padding: .7rem 1.4rem;
  font-weight: 600;
  font-size: .88rem;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--color-primary-dk) 0%, #1d4ed8 100%);
  border: 0;
  color: #fff;
  box-shadow: 0 4px 12px -2px rgba(37,99,235,.45);
  transition: all .2s;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.combo-actions .btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px -2px rgba(37,99,235,.55);
}
.combo-actions .btn:disabled {
  background: #e2e8f0;
  color: #94a3b8;
  box-shadow: none;
  cursor: not-allowed;
}

@media (max-width: 780px) {
  .combo-bar {
    flex-direction: column;
    align-items: stretch;
    gap: .7rem;
    padding: .8rem .9rem;
    border-radius: 14px;
  }
  .combo-legs { flex-direction: column; }
  .combo-leg + .combo-leg::before {
    left: 50%;
    top: -.55rem;
    transform: translateX(-50%) rotate(90deg);
  }
  .combo-total {
    text-align: left;
    border-left: 0;
    border-top: 1px solid #e5e7eb;
    padding: .6rem 0 0;
  }
  .combo-total-price { font-size: 1.4rem; }
  .combo-actions .btn { width: 100%; justify-content: center; }
}

/* Give some room below results so combo bar doesn't cover last card */
.fl-segments { padding-bottom: 7rem; }

/* ═══ Segment tabs ═══ */
.seg-tabs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: .6rem;
  margin: 0 0 1rem;
}
.seg-tab {
  position: relative;
  text-align: left;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: .8rem .95rem;
  cursor: pointer;
  transition: all .18s;
  font: inherit;
  color: inherit;
  min-width: 0;
}
.seg-tab:hover { border-color: #cbd5e1; box-shadow: 0 2px 6px rgba(15,23,42,.05); }
.seg-tab--active {
  border-color: var(--color-primary-dk);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
  background: linear-gradient(180deg, #f0f7ff 0%, #fff 60%);
}
.seg-tab--done { border-color: #10b981; }
.seg-tab--done.seg-tab--active { border-color: var(--color-primary-dk); }

.seg-tab-head {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin-bottom: .35rem;
}
.seg-tab-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e5e7eb;
  color: #475569;
  font-size: .7rem;
  font-weight: 700;
  flex-shrink: 0;
}
.seg-tab--active .seg-tab-num { background: var(--color-primary-dk); color: #fff; }
.seg-tab--done  .seg-tab-num { background: #10b981; color: #fff; }
.seg-tab-pill {
  display: inline-flex;
  padding: .12rem .5rem;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  border-radius: 999px;
  color: #fff;
}
.seg-tab-pill--out { background: #0ea5e9; }
.seg-tab-pill--ret { background: #f97316; }
.seg-tab-pill--mc0 { background: var(--color-primary-dk); }  /* blue */
.seg-tab-pill--mc1 { background: #8b5cf6; }  /* purple */
.seg-tab-pill--mc2 { background: #ec4899; }  /* pink */
.seg-tab-pill--mc3 { background: #14b8a6; }  /* teal */
.seg-tab-pill--mc4 { background: #f59e0b; }  /* amber */
.seg-tab-pill--mc5 { background: #ef4444; }  /* red */
.seg-tab-check {
  margin-left: auto;
  color: #10b981;
  display: none;
}
.seg-tab--done .seg-tab-check { display: inline-flex; }

.seg-tab-route {
  font-weight: 700;
  font-size: .95rem;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.seg-tab-arrow { color: #94a3b8; margin: 0 .2rem; }
.seg-tab-meta {
  font-size: .72rem;
  color: #64748b;
  margin-top: .1rem;
}
.seg-tab-dot { margin: 0 .3rem; }
.seg-tab-selected {
  display: block;
  margin-top: .4rem;
  padding-top: .35rem;
  border-top: 1px dashed #e5e7eb;
  font-size: .72rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.seg-tab-selected-label { color: #94a3b8; margin-right: .25rem; }
.seg-tab-selected-value { color: #0f172a; font-weight: 600; }
.seg-tab--done .seg-tab-selected-value { color: #059669; }

.fl-segment--hidden,
.filter-segment--hidden { display: none !important; }

@media (max-width: 780px) {
  .seg-tabs { grid-auto-flow: row; grid-auto-columns: auto; }
  .seg-tab-route { font-size: .88rem; }
}

/* ═══ Per-passenger ancillaries (seat / meal / baggage) ═══ */
.rv-pax-ancillaries {
  display: grid;
  grid-template-columns: 1fr;
  gap: .75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed #e5e7eb;
}
.rv-anc-tile {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: .75rem .85rem;
}
.rv-anc-head {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .6rem;
  color: #0f172a;
}
.rv-anc-head strong { font-size: .85rem; }
.rv-anc-sub { color: #94a3b8; font-size: .72rem; margin-left: auto; }
.rv-anc-opts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .5rem;
}
.rv-anc-opt {
  position: relative;
  display: block;
  cursor: pointer;
}
.rv-anc-opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.rv-anc-opt-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
  padding: .6rem .4rem;
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  transition: all .15s;
  text-align: center;
}
.rv-anc-opt:hover .rv-anc-opt-body { border-color: #cbd5e1; }
.rv-anc-opt input:checked + .rv-anc-opt-body {
  border-color: var(--color-primary-dk);
  background: linear-gradient(180deg, #eff6ff 0%, #fff 80%);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.rv-anc-opt-body strong {
  font-size: .78rem;
  font-weight: 600;
  color: #0f172a;
}
.rv-anc-opt-body small {
  font-size: .68rem;
  color: #64748b;
}
.rv-anc-opt-icon,
.rv-anc-opt-emoji {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  margin-bottom: .15rem;
}
.rv-anc-opt-emoji { font-size: 16px; background: #fff; border: 1px solid #e5e7eb; }
.rv-anc-opt input:checked + .rv-anc-opt-body .rv-anc-opt-icon {
  background: #dbeafe;
  color: var(--color-primary-dk);
}
.rv-anc-opt-icon--bag { position: relative; }
.rv-anc-bag-plus {
  position: absolute;
  top: -4px;
  right: -6px;
  background: var(--color-primary-dk);
  color: #fff;
  font-size: .6rem;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 6px;
  line-height: 1.2;
}

@media (max-width: 680px) {
  .rv-anc-opts { grid-template-columns: repeat(2, 1fr); }
}

/* ═══ Travel add-ons grid ═══ */
.rv-addon-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .6rem;
}
.rv-addon-card {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: .75rem;
  padding: .75rem .85rem;
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  cursor: pointer;
  transition: all .18s;
}
.rv-addon-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(15,23,42,.06);
}
.rv-addon-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.rv-addon-card:has(input:checked) {
  border-color: var(--color-primary-dk);
  background: linear-gradient(135deg, #eff6ff 0%, #fff 70%);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.rv-addon-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-dk);
}
.rv-addon-card:has(input:checked) .rv-addon-icon {
  background: linear-gradient(135deg, var(--color-primary-dk) 0%, #1d4ed8 100%);
  color: #fff;
}
.rv-addon-body { min-width: 0; }
.rv-addon-body strong {
  display: block;
  font-size: .88rem;
  color: #0f172a;
  line-height: 1.25;
}
.rv-addon-body small {
  display: block;
  font-size: .72rem;
  color: #64748b;
  margin-top: .1rem;
}
.rv-addon-fee {
  font-size: .82rem;
  font-weight: 700;
  color: #059669;
}
.rv-addon-check {
  position: absolute;
  top: .5rem;
  right: .5rem;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-primary-dk);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
}
.rv-addon-card:has(input:checked) .rv-addon-check { display: flex; }

@media (max-width: 780px) {
  .rv-addon-grid { grid-template-columns: 1fr; }
}

/* ═══ Sidebar ancillary rows ═══ */
.rv-price-section--anc {
  background: linear-gradient(135deg, #f0fdf4 0%, transparent 100%);
  margin: 0 -1.1rem;
  padding: .6rem 1.1rem;
  border-top: 1px dashed #bbf7d0;
  border-bottom: 1px dashed #bbf7d0;
}
.rv-price-row--head { font-weight: 600; color: #0f172a; }
.rv-price-row--head small { color: #64748b; font-weight: 400; }

/* ═══════════════════════════════════════════════
   TRANSFERS - search & review
   ═══════════════════════════════════════════════ */
.search-bar-wrap--transfer { --primary: #0891b2; }

.tf-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1rem;
  margin-top: 1rem;
}
@media (max-width: 960px) {
  .tf-layout { grid-template-columns: 1fr; }
}

.tf-filters .card { position: sticky; top: 80px; padding: 1rem; }
.tf-filter-seg { padding: .5rem 0; border-top: 1px dashed #e2e8f0; }
.tf-filter-seg:first-of-type { border-top: 0; padding-top: 0; }
.tf-filter-seg-label {
  display: flex; align-items: center; gap: .5rem;
  margin-bottom: .5rem; font-size: .8rem; color: #475569;
}
.tf-filter-seg-label small { font-family: ui-monospace, SFMono-Regular, monospace; }

.tf-seg-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  color: #fff;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .02em;
}

.tf-seg-tabs {
  display: flex;
  gap: .5rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 0;
}
.tf-seg-tab {
  flex: 1;
  text-align: left;
  padding: .75rem 1rem;
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  color: #475569;
  cursor: pointer;
  font-size: .9rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: all .15s;
}
.tf-seg-tab small { color: #94a3b8; font-size: .72rem; }
.tf-seg-tab:hover { background: #f8fafc; }
.tf-seg-tab--active {
  border-bottom-color: var(--pill, #0891b2);
  color: #0f172a;
  font-weight: 600;
}
.tf-seg-tab--active small { color: #64748b; }

.tf-segment--hidden { display: none; }

.tf-list { display: flex; flex-direction: column; gap: .75rem; }

.tf-card {
  display: grid;
  grid-template-columns: 200px 1fr 180px;
  gap: 1rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem;
  transition: all .15s;
  position: relative;
}
.tf-card:hover {
  border-color: #0891b2;
  box-shadow: 0 6px 20px rgba(8, 145, 178, .12);
  transform: translateY(-1px);
}
@media (max-width: 800px) {
  .tf-card { grid-template-columns: 1fr; }
}

.tf-card--combo { padding-left: 3rem; }
.tf-card--combo .fc-radio {
  position: absolute;
  top: 1.1rem; left: 1rem;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
}
.tf-card--combo .fc-radio input { display: none; }
.tf-card--combo .fc-radio-dot {
  display: block;
  width: 18px; height: 18px;
  border: 2px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
}
.tf-card--combo .fc-radio input:checked + .fc-radio-dot {
  border-color: #0891b2;
  background: radial-gradient(circle, #0891b2 45%, #fff 50%);
}

.tf-image {
  position: relative;
  background:
    linear-gradient(135deg, #eef2ff 0%, #dbeafe 100%)
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' width='64' height='64'><path fill='%23cbd5e1' d='M12 40h40v-8l-6-12H18l-6 12v8zm6 8a4 4 0 108 0 4 4 0 00-8 0zm24 0a4 4 0 108 0 4 4 0 00-8 0z'/></svg>") center/40px no-repeat;
  background-blend-mode: overlay;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  overflow: hidden;
}
.tf-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tf-class-badge {
  position: absolute;
  top: 6px; left: 6px;
  padding: 2px 8px;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #fff;
  border-radius: 4px;
  background: #0f172a;
}
.tf-class-badge--premium { background: linear-gradient(135deg, #0f172a, #334155); }
.tf-class-badge--standard { background: #0891b2; }
.tf-class-badge--group { background: #ea580c; }
.tf-class-badge--eco { background: #059669; }

.tf-body { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.tf-title { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.tf-title h3 { margin: 0; font-size: 1.05rem; color: #0f172a; }
.tf-model { color: #64748b; font-size: .85rem; }

.tf-route {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  color: #334155;
}
.tf-route-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.tf-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  font-size: .78rem;
  color: #64748b;
}
.tf-meta { display: inline-flex; align-items: center; gap: 3px; }
.tf-meta--highlight { color: #0891b2; font-weight: 600; }

.tf-features {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.tf-feature {
  font-size: .72rem;
  background: #f1f5f9;
  color: #475569;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
}

.tf-fare-rules { color: #64748b; }
.tf-fare-rules small { font-size: .72rem; }

.tf-price-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  gap: .5rem;
  border-left: 1px dashed #e2e8f0;
  padding-left: 1rem;
}
@media (max-width: 800px) {
  .tf-price-col { border-left: 0; padding-left: 0; align-items: stretch; }
}
.tf-price-stack { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.tf-price { font-size: 1.4rem; font-weight: 700; color: #0f172a; }

/* Review page vehicle summary */
.tf-rv-head {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}
.tf-rv-image {
  width: 180px; height: 100px;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  border-radius: 10px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 180px;
}
.tf-rv-image img { width: 100%; height: 100%; object-fit: contain; }
.tf-rv-info { flex: 1; min-width: 0; }
.tf-meta-hl { color: #0891b2; font-weight: 600; }

.tf-rv-route {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  border-top: 1px dashed #e2e8f0;
  border-bottom: 1px dashed #e2e8f0;
  margin: 1rem 0;
}
.tf-rv-end { display: flex; flex-direction: column; gap: 2px; }
.tf-rv-end:last-child { text-align: right; align-items: flex-end; }
.tf-rv-time { font-size: 1.3rem; font-weight: 700; color: #0f172a; }
.tf-rv-point { font-size: .95rem; color: #334155; font-weight: 600; }
.tf-rv-mid { text-align: center; color: #64748b; font-size: .8rem; }
.tf-rv-line {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; margin: .25rem 0;
}
.tf-rv-line .ft-dot {
  width: 8px; height: 8px; background: #0891b2; border-radius: 999px;
}
.tf-rv-line .tf-rv-car { font-size: 1.1rem; }
.tf-rv-duration { font-weight: 600; color: #0f172a; }
.tf-rv-stops { font-size: .75rem; color: #94a3b8; }

/* Review add-ons grid */
.tf-addons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: .6rem;
}
.tf-addon {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .75rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
  transition: all .12s;
  background: #fff;
}
.tf-addon:hover { border-color: #0891b2; background: #f0f9ff; }
.tf-addon input { accent-color: #0891b2; }
.tf-addon input:checked ~ .tf-addon-body,
.tf-addon:has(input:checked) { border-color: #0891b2; background: #f0f9ff; }
.tf-addon-icon { font-size: 1.35rem; }
.tf-addon-body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.tf-addon-body strong { font-size: .85rem; color: #0f172a; }
.tf-addon-body small { color: #0891b2; font-size: .78rem; font-weight: 600; }

/* Segment pill color variables (reuse flight segment palette) */
:root {
  --out: #0891b2;
  --ret: #ea580c;
}


/* ═══ Excursions ═══ */
.exc-list { display: flex; flex-direction: column; gap: 1rem; }
.exc-card {
  display: grid;
  grid-template-columns: 240px 1fr 200px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow .15s, transform .15s;
}
.exc-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.08); transform: translateY(-2px); }
.exc-image {
  position: relative;
  display: block;
  background: linear-gradient(135deg, #14b8a6, #0d9488);
  min-height: 180px;
  text-decoration: none;
}
.exc-image img { width: 100%; height: 100%; object-fit: cover; min-height: 180px; }
.exc-category-badge {
  position: absolute; top: 8px; left: 8px;
  background: rgba(15, 23, 42, .85); color: #fff;
  padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 600;
}
.exc-category-badge--inline {
  position: static; display: inline-block;
  background: #ecfeff; color: #0e7490; border: 1px solid #67e8f9;
}
.exc-instant-badge {
  position: absolute; top: 8px; right: 8px;
  background: #fef3c7; color: #92400e;
  padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 600;
}
.exc-body { padding: 1rem 1.25rem; display: flex; flex-direction: column; gap: .5rem; }
.exc-head { display: flex; justify-content: space-between; gap: .75rem; align-items: flex-start; }
.exc-head h3 { margin: 0; font-size: 1.05rem; line-height: 1.3; }
.exc-head h3 a { color: #0f172a; text-decoration: none; }
.exc-head h3 a:hover { color: #0d9488; }
.exc-rating { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.exc-rating-score {
  background: #0d9488; color: #fff; font-weight: 700;
  padding: 2px 8px; border-radius: 6px; font-size: 13px;
}
.exc-rating-stars { color: #f59e0b; font-size: 12px; letter-spacing: -2px; }
.exc-desc { color: #475569; font-size: 13px; line-height: 1.5; margin: 0; }
.exc-meta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: auto; }
.exc-meta { display: inline-flex; align-items: center; gap: 4px; color: #475569; font-size: 12px; }
.exc-cancel small { color: #16a34a; font-weight: 500; }
.exc-price-col {
  padding: 1rem;
  border-left: 1px solid #f1f5f9;
  display: flex; flex-direction: column; gap: .25rem; align-items: stretch; justify-content: center;
  background: linear-gradient(180deg, #f8fafc, #fff);
}
.exc-price { font-size: 1.4rem; font-weight: 700; color: #0d9488; }
.exc-price-col .btn { margin-top: .5rem; }

@media (max-width: 768px) {
  .exc-card { grid-template-columns: 1fr; }
  .exc-image { min-height: 220px; }
  .exc-price-col { border-left: 0; border-top: 1px solid #f1f5f9; }
}

/* Detail page */
.exc-detail-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.5rem;
  align-items: start;
}
.exc-detail-main { display: flex; flex-direction: column; gap: 1rem; }
.exc-detail-side { display: flex; flex-direction: column; gap: 1rem; position: sticky; top: 1rem; }
.exc-hero {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, #14b8a6, #0d9488);
  min-height: 320px;
}
.exc-hero img { width: 100%; height: 100%; max-height: 420px; object-fit: cover; display: block; }
.exc-hero-rating {
  position: absolute; bottom: 12px; left: 12px;
  background: rgba(255,255,255,.95);
  padding: 8px 14px; border-radius: 10px;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.exc-stat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem;
}
.exc-stat {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 10px;
  padding: .75rem; text-align: center;
  display: flex; flex-direction: column; gap: 2px;
}
.exc-stat strong { font-size: 14px; color: #0f172a; }
.exc-stat small { color: #64748b; font-size: 11px; text-transform: uppercase; letter-spacing: .03em; }
.exc-checklist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .35rem; }
.exc-checklist li { color: #334155; font-size: 14px; }
.exc-checklist--sm li { font-size: 13px; }

.exc-slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .5rem; }
.exc-slot {
  border: 1px solid #e5e7eb; border-radius: 8px;
  padding: .5rem; text-align: center;
  display: flex; flex-direction: column; gap: 2px;
  background: #fff;
}
.exc-slot--active { border-color: #0d9488; background: #f0fdfa; box-shadow: 0 0 0 2px rgba(13,148,136,.15); }
.exc-slot strong { font-size: 13px; }
.exc-slot small { font-size: 11px; color: #64748b; }

.exc-book-card .exc-price-lg {
  font-size: 1.8rem; font-weight: 700; color: #0d9488; margin-top: 4px;
}
.exc-book-row {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .35rem 0; font-size: 14px; color: #475569;
}
.exc-book-row strong { color: #0f172a; }
.exc-book-row--total { font-size: 16px; padding-top: .5rem; border-top: 1px solid #e5e7eb; }
.exc-book-row--total strong { font-size: 18px; color: #0d9488; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem 1rem; }
.form-grid .form-group--full { grid-column: 1 / -1; }

@media (max-width: 900px) {
  .exc-detail-layout { grid-template-columns: 1fr; }
  .exc-detail-side { position: static; }
  .exc-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
}

.search-landing--excursion .search-landing-hero h2 { color: #134e4a; }
.search-landing--excursion .search-landing-icon { color: #0d9488; }
.search-landing--excursion .search-landing-chip { border-color: #99f6e4; color: #115e59; }

/* =========================================================================
   AI Providers - premium settings UI
   ========================================================================= */

/* Hero ---------------------------------------------------------------- */
.ai-hero {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #312e81 100%);
  color: #f8fafc;
  box-shadow: 0 10px 40px -10px rgba(15, 23, 42, .35);
}
.ai-hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(800px 300px at 90% -20%, rgba(217,119,87,.35), transparent 60%),
    radial-gradient(600px 250px at -10% 120%, rgba(16,163,127,.30), transparent 60%),
    radial-gradient(400px 200px at 50% 50%, rgba(99,102,241,.20), transparent 70%);
  pointer-events: none;
}
.ai-hero__inner {
  position: relative;
  display: flex; align-items: center; gap: 1.25rem;
  padding: 1.75rem 2rem;
}
.ai-hero__icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 14px;
  color: #fff; backdrop-filter: blur(10px);
}
.ai-hero__icon svg { width: 28px; height: 28px; }
.ai-hero__body { flex: 1; min-width: 0; }
.ai-hero__title { margin: 0; font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.ai-hero__sub   { margin: 4px 0 0; font-size: .9rem; color: rgba(248, 250, 252, .75); max-width: 720px; }
.ai-hero__meta  { display: flex; gap: .5rem; flex-wrap: wrap; }

.ai-pill {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: 5px 11px; border-radius: 999px;
  font-size: .72rem; font-weight: 600;
}
.ai-pill--ghost {
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(248,250,252,.92);
}
.ai-pill__k { opacity: .6; font-weight: 500; margin-right: 2px; }

/* KPIs ---------------------------------------------------------------- */
.ai-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .85rem;
  margin-bottom: 1.25rem;
}
.ai-kpi {
  display: flex; align-items: center; gap: .85rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: .9rem 1.1rem;
  transition: transform .15s ease, box-shadow .15s ease;
}
.ai-kpi:hover { transform: translateY(-2px); box-shadow: 0 8px 20px -10px rgba(15,23,42,.15); }
.ai-kpi__icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center; flex-shrink: 0;
}
.ai-kpi__label { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: #64748b; font-weight: 600; }
.ai-kpi__value { font-size: 1.35rem; font-weight: 800; color: #0f172a; line-height: 1.2; letter-spacing: -.02em; }
.ai-kpi__sub   { font-size: .72rem; color: #94a3b8; font-weight: 500; margin-left: 6px; }

/* Provider grid + cards ---------------------------------------------- */
.ai-providers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(460px, 1fr));
  gap: 1.25rem;
}
.ai-card {
  position: relative;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  display: flex; flex-direction: column;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.ai-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--accent, #6366f1);
  opacity: 0; transition: opacity .18s ease;
}
.ai-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -18px rgba(15, 23, 42, .18);
  border-color: #d1d5db;
}
.ai-card:hover::before { opacity: 1; }
.ai-card.is-configured { border-color: #d1d5db; }
.ai-card.is-configured::before { opacity: .5; }

.ai-card__brandbar {
  display: flex; align-items: center; gap: .9rem;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid rgba(15,23,42,.06);
}
.ai-card__logo {
  width: 44px; height: 44px;
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 12px;
  display: grid; place-items: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px -4px rgba(15,23,42,.15);
}
.ai-card__logo svg { width: 22px; height: 22px; }
.ai-card__brandinfo { flex: 1; min-width: 0; }
.ai-card__name {
  font-size: 1rem; font-weight: 700; color: #0f172a;
  display: flex; align-items: center; gap: .5rem;
}
.ai-card__tag {
  font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  background: rgba(255,255,255,.85); color: var(--accent);
  padding: 2px 8px; border-radius: 999px;
  border: 1px solid currentColor;
}
.ai-card__tagline { font-size: .78rem; color: #475569; margin-top: 2px; }

.ai-card__body {
  padding: 1.1rem 1.25rem;
  display: flex; flex-direction: column; gap: 1rem;
  flex: 1;
}

.ai-card__foot {
  padding: .9rem 1.25rem;
  background: #fafbfc;
  border-top: 1px solid #f1f5f9;
  display: flex; justify-content: space-between; align-items: center; gap: .5rem;
}
.ai-card__foot-left { display: flex; gap: .4rem; }

/* Status pill -------------------------------------------------------- */
.ai-status {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .72rem; font-weight: 700;
  padding: 5px 11px; border-radius: 999px;
  flex-shrink: 0;
  background: rgba(255,255,255,.85);
  border: 1px solid transparent;
}
.ai-status__dot { width: 8px; height: 8px; border-radius: 50%; }
.ai-status--ok      { color: #047857; border-color: #a7f3d0; }
.ai-status--ok      .ai-status__dot { background: #10b981; box-shadow: 0 0 0 3px rgba(16,185,129,.20); animation: ai-pulse 2s infinite; }
.ai-status--fail    { color: #b91c1c; border-color: #fecaca; }
.ai-status--fail    .ai-status__dot { background: #ef4444; }
.ai-status--never,
.ai-status--unset   { color: #475569; border-color: #e2e8f0; }
.ai-status--never .ai-status__dot,
.ai-status--unset .ai-status__dot { background: #94a3b8; }
.ai-status--testing { color: #1d4ed8; border-color: #bfdbfe; }
.ai-status--testing .ai-status__dot { background: var(--color-primary); animation: ai-pulse 1s infinite; }

@keyframes ai-pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: .5; transform: scale(1.4); }
}

/* Form fields -------------------------------------------------------- */
.ai-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ai-field__label {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .75rem; font-weight: 600; color: #334155;
  text-transform: uppercase; letter-spacing: .04em;
}
.ai-field__suffix    { font-size: .65rem; color: #94a3b8; font-weight: 500; text-transform: none; letter-spacing: 0; }
.ai-field__hint-link { font-size: .7rem; color: var(--accent, var(--color-primary-dk)); font-weight: 600; text-decoration: none; text-transform: none; letter-spacing: 0; }
.ai-field__hint-link:hover { text-decoration: underline; }

.ai-field-row { display: grid; grid-template-columns: 1.5fr 1fr; gap: .75rem; }
.ai-field-row--3 { grid-template-columns: 1fr 1fr 1fr; }

.ai-input,
.ai-select select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  background: #fff;
  font-size: .88rem;
  color: #0f172a;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.ai-input:focus,
.ai-select select:focus {
  outline: none;
  border-color: var(--accent, #6366f1);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent, #6366f1) 18%, transparent);
}
.ai-input::placeholder { color: #94a3b8; }

.ai-select { position: relative; }
.ai-select select { appearance: none; padding-right: 32px; cursor: pointer; }
.ai-select::after {
  content: ''; position: absolute; right: 12px; top: 50%;
  width: 8px; height: 8px;
  border-right: 2px solid #64748b; border-bottom: 2px solid #64748b;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

/* API key input ------------------------------------------------------- */
.ai-key {
  position: relative;
  display: flex; align-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  background: #f8fafc;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.ai-key:focus-within {
  border-color: var(--accent, #6366f1);
  background: #fff;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent, #6366f1) 18%, transparent);
}
.ai-key__icon { color: #94a3b8; padding: 0 10px; flex-shrink: 0; display: grid; place-items: center; }
.ai-key__input {
  flex: 1; min-width: 0;
  border: 0; background: transparent; padding: 10px 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .82rem; color: #0f172a; letter-spacing: .02em;
}
.ai-key__input:focus { outline: none; }
.ai-key__input::placeholder { color: #94a3b8; font-family: inherit; }
.ai-key__eye {
  background: transparent; border: 0; padding: 8px 12px; cursor: pointer;
  color: #94a3b8; transition: color .15s;
}
.ai-key__eye:hover, .ai-key__eye.is-on { color: var(--accent, #475569); }

/* Toggle ------------------------------------------------------------- */
.ai-toggle { display: flex; align-items: center; height: 38px; }
.ai-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.ai-toggle label {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-size: .85rem; color: #475569; font-weight: 600;
}
.ai-toggle label span {
  width: 36px; height: 20px; border-radius: 999px; background: #cbd5e1;
  position: relative; transition: background .2s;
}
.ai-toggle label span::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 16px; height: 16px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
  transition: transform .2s;
}
.ai-toggle input:checked + label span { background: #10b981; }
.ai-toggle input:checked + label span::after { transform: translateX(16px); }

/* Advanced disclosure ------------------------------------------------ */
.ai-advanced { border-top: 1px dashed #e2e8f0; padding-top: .85rem; }
.ai-advanced summary {
  cursor: pointer; font-size: .78rem; color: #475569; font-weight: 600;
  list-style: none; display: inline-flex; align-items: center; gap: 4px;
  user-select: none;
}
.ai-advanced summary::-webkit-details-marker { display: none; }
.ai-advanced summary svg { transition: transform .2s; }
.ai-advanced[open] summary svg { transform: rotate(180deg); }
.ai-advanced summary:hover { color: var(--accent, #0f172a); }
.ai-advanced__inner { margin-top: .75rem; }

/* Stats strip on configured cards ------------------------------------ */
.ai-stats {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .75rem;
  padding: .85rem; background: #f8fafc; border-radius: 10px;
  border: 1px solid #f1f5f9;
}
.ai-stat { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ai-stat--wide { grid-column: span 1; }
.ai-stat__label { font-size: .65rem; text-transform: uppercase; color: #94a3b8; letter-spacing: .05em; font-weight: 600; }
.ai-stat__value { font-size: .9rem; font-weight: 700; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai-stat__sub   { font-size: .7rem; color: #64748b; }

/* Buttons ------------------------------------------------------------ */
.ai-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 9px;
  font-size: .82rem; font-weight: 600; cursor: pointer;
  border: 1px solid transparent;
  transition: transform .1s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.ai-btn:active { transform: translateY(1px); }
.ai-btn:disabled { opacity: .6; cursor: not-allowed; }
.ai-btn--primary {
  color: #fff;
  background: var(--accent, var(--color-primary-dk));
  box-shadow: 0 4px 12px -4px color-mix(in srgb, var(--accent, var(--color-primary-dk)) 60%, transparent);
}
.ai-btn--primary:hover { filter: brightness(1.06); box-shadow: 0 6px 16px -4px color-mix(in srgb, var(--accent, var(--color-primary-dk)) 70%, transparent); }
.ai-btn--ghost {
  color: #475569; background: #fff; border-color: #e2e8f0;
}
.ai-btn--ghost:hover { background: #f8fafc; border-color: #cbd5e1; color: #0f172a; }
.ai-btn--danger-ghost {
  color: #b91c1c; background: #fff; border-color: #fecaca;
}
.ai-btn--danger-ghost:hover { background: #fef2f2; }

.ai-spinner {
  width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid currentColor; border-top-color: transparent;
  animation: ai-spin .7s linear infinite;
  display: inline-block;
}
@keyframes ai-spin { to { transform: rotate(360deg); } }

/* Toast -------------------------------------------------------------- */
.ai-toast-host {
  position: fixed; bottom: 24px; right: 24px;
  display: flex; flex-direction: column; gap: 8px;
  z-index: 9999; pointer-events: none;
}
.ai-toast {
  pointer-events: auto;
  padding: 12px 16px;
  background: #0f172a; color: #f8fafc;
  border-radius: 10px;
  font-size: .85rem; font-weight: 500;
  box-shadow: 0 12px 28px -8px rgba(15, 23, 42, .45);
  max-width: 420px;
  transform: translateX(120%);
  transition: transform .3s cubic-bezier(.2, .8, .2, 1);
  border-left: 3px solid #6366f1;
}
.ai-toast.is-shown { transform: translateX(0); }
.ai-toast--ok  { border-left-color: #10b981; }
.ai-toast--err { border-left-color: #ef4444; }

/* Responsive --------------------------------------------------------- */
@media (max-width: 1100px) {
  .ai-kpis { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .ai-hero__inner { flex-direction: column; align-items: flex-start; padding: 1.25rem; }
  .ai-providers-grid { grid-template-columns: 1fr; }
  .ai-field-row, .ai-field-row--3 { grid-template-columns: 1fr; }
  .ai-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .ai-kpis { grid-template-columns: 1fr; }
  .ai-stats { grid-template-columns: 1fr; }
}

/* =========================================================================
   Itinerary Builder
   ========================================================================= */

/* Shared button (scoped) */
.itn-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px; border-radius: 9px;
  font-size: .85rem; font-weight: 600; cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: transform .1s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease, opacity .15s;
}
.itn-btn:active { transform: translateY(1px); }
.itn-btn:disabled { opacity: .55; cursor: not-allowed; }
.itn-btn--primary {
  color: #fff;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  box-shadow: 0 6px 16px -6px rgba(99,102,241,.55);
}
.itn-btn--primary:hover { filter: brightness(1.06); box-shadow: 0 8px 22px -6px rgba(99,102,241,.65); }
.itn-btn--ghost { background: #fff; border-color: #e2e8f0; color: #475569; }
.itn-btn--ghost:hover:not(:disabled) { background: #f8fafc; border-color: #cbd5e1; color: #0f172a; }

/* AI action - branded magic-wand pill */
.itn-btn--ai {
  color: #fff;
  background: linear-gradient(135deg, #f97316 0%, #ec4899 55%, #8b5cf6 100%);
  box-shadow: 0 6px 18px -6px rgba(236,72,153,.6);
  border: none;
}
.itn-btn--ai:hover:not(:disabled) { filter: brightness(1.07); box-shadow: 0 10px 24px -8px rgba(236,72,153,.7); }
.itn-inline-form { display: inline; margin: 0; }

/* Danger button variant */
.itn-btn--danger {
  color: #fff;
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  box-shadow: 0 4px 12px -4px rgba(185,28,28,.5);
}
.itn-btn--danger:hover:not(:disabled) { filter: brightness(1.08); }

/* Modal */
.itn-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 24px; }
.itn-modal[hidden] { display: none; }
.itn-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(15,23,42,.55);
  backdrop-filter: blur(3px);
}
.itn-modal__card {
  position: relative;
  width: 100%; max-width: 620px; max-height: 90vh;
  background: #fff; border-radius: 14px;
  box-shadow: 0 24px 60px -12px rgba(15,23,42,.35);
  display: flex; flex-direction: column;
  animation: itnModalIn .2s ease;
}
@keyframes itnModalIn {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to   { opacity: 1; transform: none; }
}
.itn-modal__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #e2e8f0;
}
.itn-modal__head h3 { margin: 0; font-size: 1.05rem; color: #0f172a; }
.itn-modal__x {
  width: 30px; height: 30px; border-radius: 8px; border: none;
  background: transparent; font-size: 22px; line-height: 1; color: #64748b; cursor: pointer;
}
.itn-modal__x:hover { background: #f1f5f9; color: #0f172a; }
.itn-modal__body { padding: 18px 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.itn-modal__foot {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 20px; border-top: 1px solid #e2e8f0; background: #f8fafc;
  border-radius: 0 0 14px 14px;
}

/* Item cards clickable + draggable */
.itn-item[data-itn-edit] { cursor: grab; transition: transform .12s, box-shadow .15s, opacity .12s; }
.itn-item[data-itn-edit]:hover { transform: translateY(-1px); box-shadow: 0 4px 12px -4px rgba(15,23,42,.15); }
.itn-item[draggable="true"]:active { cursor: grabbing; }
.itn-item--dragging { opacity: .35; transform: scale(.98); }
.itn-day__items { min-height: 60px; transition: background .15s, outline-color .15s; outline: 2px dashed transparent; outline-offset: -4px; border-radius: 10px; }
.itn-day__items--over { background: rgba(99,102,241,.06); outline-color: #818cf8; }

/* Markup editor */
.itn-markup { max-width: 960px; margin: 0 auto; }
.itn-mk__lead { color: #64748b; margin: 4px 0 18px; }
.itn-mk__card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 18px 20px; margin-bottom: 14px; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.itn-mk__card h3 { margin: 0 0 4px; font-size: 1rem; color: #0f172a; }
.itn-mk__hint { color: #64748b; font-size: .85rem; margin: 0 0 14px; }
.itn-mk__table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.itn-mk__table th { text-align: left; padding: 8px 10px; color: #475569; font-weight: 600; border-bottom: 1px solid #e2e8f0; }
.itn-mk__table td { padding: 8px 10px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.itn-grid-3 { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 12px; }
@media (max-width: 700px) { .itn-grid-3 { grid-template-columns: 1fr; } }

/* Per-day + button enabled */
.itn-day__add:not(:disabled) { cursor: pointer; }
.itn-day__add:not(:disabled):hover { background: #6366f1; color: #fff; border-color: #6366f1; }

/* AI brief callout below action bar */
.itn-show__brief {
  margin-top: 14px;
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #fef3c7 0%, #fce7f3 100%);
  border: 1px solid #fbcfe8;
  border-radius: 10px;
  font-size: .88rem; color: #7c2d12; line-height: 1.5;
}
.itn-show__brief svg { flex-shrink: 0; margin-top: 2px; color: #db2777; }
.itn-btn--lg { padding: 11px 20px; font-size: .9rem; }
.itn-input {
  width: 100%; padding: 10px 12px; border: 1px solid #e2e8f0; border-radius: 9px;
  font-size: .9rem; background: #fff; color: #0f172a;
  transition: border-color .15s, box-shadow .15s;
}
.itn-input:focus {
  outline: none; border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99,102,241,.18);
}
.itn-link-btn {
  background: none; border: 0; color: #6366f1; font-weight: 600;
  cursor: pointer; padding: 6px 0; font-size: .85rem;
}
.itn-link-btn:hover { text-decoration: underline; }

/* Hero --------------------------------------------------------------- */
.itn-hero {
  position: relative; border-radius: 20px; overflow: hidden;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, #312e81 0%, #6d28d9 50%, #be185d 100%);
  color: #fff;
  box-shadow: 0 14px 40px -16px rgba(49, 46, 129, .55);
}
.itn-hero__bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(700px 280px at 100% -10%, rgba(255,255,255,.18), transparent 60%),
    radial-gradient(500px 250px at -10% 110%, rgba(236,72,153,.30), transparent 60%);
}
.itn-hero__inner {
  position: relative; display: flex; align-items: center; gap: 1.25rem;
  padding: 1.75rem 2rem;
}
.itn-hero__icon {
  width: 56px; height: 56px; display: grid; place-items: center;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.20);
  border-radius: 14px; backdrop-filter: blur(10px);
}
.itn-hero__icon svg { width: 30px; height: 30px; }
.itn-hero__body { flex: 1; min-width: 0; }
.itn-hero__title { margin: 0; font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.itn-hero__sub   { margin: 4px 0 0; font-size: .9rem; color: rgba(255,255,255,.78); max-width: 640px; }
.itn-hero__actions { display: flex; gap: 8px; align-items: center; }

.itn-toggle {
  display: flex; gap: 8px; align-items: flex-start;
  padding: 8px 0; cursor: pointer; user-select: none;
  font-size: .88rem; color: #334155;
}
.itn-toggle input[type="checkbox"] { margin-top: 3px; }

/* Phase 3: approval card + share banner on the itinerary show page. */
.itn-share-banner {
  display: flex; gap: 8px; align-items: center;
  margin: 14px 0 0; padding: 10px 14px;
  background: #f0f9ff; border: 1px solid #bae6fd; border-radius: 10px;
  font-size: .88rem; color: #0c4a6e;
}
.itn-share-banner strong { white-space: nowrap; }

.itn-story-bar {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin: 10px 0 0; padding: 12px 14px;
  background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px;
}
.itn-story-bar__field {
  display: flex; flex-direction: column; gap: 6px;
}
.itn-story-bar__field label {
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  color: #78350f;
}
.itn-story-bar__field .itn-input { font-size: .85rem; }
.itn-story-bar__meta {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  font-size: .82rem; color: #78350f;
}
.itn-story-bar__label { font-weight: 700; }
.itn-story-bar__time { color: #92400e; }
.itn-pill {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  font-size: .72rem; font-weight: 700; letter-spacing: .02em;
}
.itn-pill--warn { background: #fbbf24; color: #422006; }
@media (max-width: 800px) {
  .itn-story-bar { grid-template-columns: 1fr; }
}
.itn-approval {
  margin: 14px 0 0; padding: 14px 18px;
  border-radius: 10px; border: 1px solid;
  display: flex; flex-direction: column; gap: 10px;
}
.itn-approval--pending  { background: #fef3c7; border-color: #fcd34d; color: #78350f; }
.itn-approval--approved { background: #d1fae5; border-color: #6ee7b7; color: #065f46; }
.itn-approval--rejected { background: #fee2e2; border-color: #fca5a5; color: #991b1b; }
.itn-approval__head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.itn-approval__time { font-size: .78rem; opacity: .82; }
.itn-approval__comment { font-style: italic; font-size: .9rem; }
.itn-approval__form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.itn-approval__form input { flex: 1; min-width: 200px; }

/* Stats -------------------------------------------------------------- */
.itn-stats {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: .75rem;
  margin-bottom: 1rem;
}
.itn-stat {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
  padding: .85rem 1rem;
}
.itn-stat__label { font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: #64748b; font-weight: 600; }
.itn-stat__value { font-size: 1.35rem; font-weight: 800; color: #0f172a; line-height: 1.2; letter-spacing: -.02em; margin-top: 4px; }
.itn-stat--accent { background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%); border-color: #c4b5fd; }
.itn-stat--accent .itn-stat__value { color: #5b21b6; }

/* Filters ------------------------------------------------------------ */
.itn-filters {
  display: flex; gap: .6rem; margin-bottom: 1rem;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
  padding: .75rem;
}
.itn-filters .itn-input { flex: 1; max-width: 320px; }

/* Card grid ---------------------------------------------------------- */
.itn-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
}
.itn-card {
  display: block; background: #fff; border: 1px solid #e5e7eb; border-radius: 14px;
  padding: 1.1rem; text-decoration: none; color: inherit;
  transition: transform .18s, box-shadow .18s, border-color .18s;
  position: relative; overflow: hidden;
}
.itn-card, .itn-card:hover, .itn-card:focus, .itn-card:active,
.itn-card *, .itn-card *:hover { text-decoration: none !important; }
.itn-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6, #ec4899);
  opacity: 0; transition: opacity .18s;
}
.itn-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -14px rgba(15,23,42,.18);
  border-color: #c4b5fd;
}
.itn-card:hover::before { opacity: 1; }
.itn-card__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: .5rem; }
.itn-card__code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .72rem; color: #64748b; font-weight: 600; }
.itn-card__badge { font-size: .68rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: .03em; }
.itn-card__title { margin: 0 0 .4rem; font-size: 1.05rem; font-weight: 700; color: #0f172a; line-height: 1.3; }
.itn-card__route { font-size: .8rem; color: #475569; display: flex; align-items: center; gap: 4px; margin-bottom: .5rem; }
.itn-card__meta { font-size: .78rem; color: #64748b; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.itn-dot { color: #cbd5e1; }
.itn-card__foot {
  margin-top: .85rem; padding-top: .75rem; border-top: 1px dashed #e2e8f0;
  display: flex; justify-content: space-between; align-items: flex-end;
}
.itn-card__label { font-size: .65rem; text-transform: uppercase; color: #94a3b8; font-weight: 600; letter-spacing: .05em; display: block; }
.itn-card__value { font-size: 1.05rem; font-weight: 700; color: #0f172a; }
.itn-card__bits { display: flex; gap: 8px; font-size: .72rem; color: #64748b; }
.itn-card__bits span { display: inline-flex; align-items: center; gap: 3px; }

/* Empty state -------------------------------------------------------- */
.itn-empty {
  background: #fff; border: 2px dashed #e2e8f0; border-radius: 16px;
  padding: 3rem 1.5rem; text-align: center;
}
.itn-empty__icon { color: #cbd5e1; margin-bottom: 1rem; }
.itn-empty h3 { font-size: 1.15rem; color: #0f172a; margin: 0 0 .35rem; }
.itn-empty p  { color: #64748b; margin: 0 auto 1.25rem; max-width: 420px; font-size: .9rem; }

/* Wizard ------------------------------------------------------------- */
.itn-wiz { max-width: 880px; margin: 0 auto; }
.itn-wiz__head { margin-bottom: 1.5rem; }
.itn-wiz__back {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .82rem; color: #6366f1; text-decoration: none; font-weight: 600;
  margin-bottom: .75rem;
}
.itn-wiz__back:hover { text-decoration: underline; }
.itn-wiz__head h1 { margin: 0; font-size: 1.6rem; font-weight: 800; color: #0f172a; letter-spacing: -.02em; }
.itn-wiz__head p { margin: 4px 0 0; color: #64748b; }

.itn-step {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 14px;
  margin-bottom: 1rem; overflow: hidden;
}
.itn-step__head {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: linear-gradient(180deg, #fafbff 0%, #fff 100%);
  border-bottom: 1px solid #f1f5f9;
}
.itn-step__num {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff; font-weight: 800; font-size: 1.05rem;
  display: grid; place-items: center; flex-shrink: 0;
  box-shadow: 0 4px 10px -3px rgba(99,102,241,.45);
}
.itn-step__head h2 { margin: 0; font-size: 1.05rem; font-weight: 700; color: #0f172a; }
.itn-step__head p  { margin: 2px 0 0; font-size: .82rem; color: #64748b; }
.itn-step__body { padding: 1.25rem; display: flex; flex-direction: column; gap: 1rem; }

.itn-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.itn-field { display: flex; flex-direction: column; gap: 6px; }
.itn-field > label {
  font-size: .78rem; font-weight: 600; color: #334155;
  display: flex; justify-content: space-between; align-items: center;
}
.itn-opt { font-size: .68rem; color: #94a3b8; font-weight: 500; }
.itn-req { color: #dc2626; }
.itn-hint { font-size: .75rem; color: #64748b; margin-top: 2px; }

/* Destination list */
.itn-dest-list { display: flex; flex-direction: column; gap: 6px; }
.itn-dest { display: flex; gap: 6px; align-items: stretch; }
.itn-dest .itn-input { flex: 1; }
.itn-dest__del {
  width: 38px; border: 1px solid #e2e8f0; background: #fff; border-radius: 9px;
  cursor: pointer; color: #94a3b8; font-size: 1.2rem; line-height: 1;
}
.itn-dest__del:hover { background: #fef2f2; color: #dc2626; border-color: #fecaca; }

/* Pax steppers */
.itn-pax { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; align-items: end; }
.itn-pax__item { display: flex; flex-direction: column; gap: 6px; }
.itn-pax__item label { font-size: .78rem; font-weight: 600; color: #334155; }
.itn-pax__item small { font-size: .7rem; color: #94a3b8; }
.itn-pax__item--ages { grid-column: span 4; }
.itn-stepper {
  display: flex; align-items: stretch; height: 42px;
  border: 1px solid #e2e8f0; border-radius: 9px; overflow: hidden;
}
.itn-stepper__btn {
  width: 38px; background: #f8fafc; border: 0; cursor: pointer;
  font-size: 1.1rem; font-weight: 700; color: #475569;
  transition: background .15s;
}
.itn-stepper__btn:hover { background: #e2e8f0; color: #0f172a; }
.itn-stepper input {
  flex: 1; border: 0; text-align: center; font-weight: 700; font-size: .95rem; color: #0f172a;
  background: #fff; min-width: 0;
}
.itn-stepper input:focus { outline: none; }

/* Chips (radio + checkbox style) */
.itn-chips {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.itn-chips input { position: absolute; opacity: 0; pointer-events: none; }
.itn-chips label {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid #e2e8f0; background: #fff;
  font-size: .82rem; font-weight: 500; color: #475569; cursor: pointer;
  transition: all .15s;
}
.itn-chip__emo { font-size: 1rem; line-height: 1; }
.itn-chips label:hover { border-color: #c7d2fe; color: #4338ca; }
.itn-chips input:checked + label {
  background: linear-gradient(135deg, #eef2ff 0%, #ede9fe 100%);
  border-color: #8b5cf6; color: #5b21b6; font-weight: 600;
  box-shadow: 0 2px 6px -2px rgba(139, 92, 246, .35);
}

/* Segmented control */
.itn-seg {
  display: inline-flex; border: 1px solid #e2e8f0; border-radius: 9px; overflow: hidden; background: #f8fafc;
}
.itn-seg input { position: absolute; opacity: 0; pointer-events: none; }
.itn-seg label {
  padding: 9px 16px; cursor: pointer; font-size: .82rem; font-weight: 600; color: #64748b;
  border-right: 1px solid #e2e8f0; background: transparent; transition: all .15s;
}
.itn-seg label:last-of-type { border-right: 0; }
.itn-seg label:hover { color: #334155; }
.itn-seg input:checked + label {
  background: #fff; color: #6366f1;
  box-shadow: inset 0 -2px 0 #6366f1;
}

.itn-wiz__actions {
  display: flex; justify-content: flex-end; gap: .6rem;
  margin-top: 1.25rem; padding: 1rem;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 14px;
  position: sticky; bottom: 16px; z-index: 5;
  box-shadow: 0 -4px 16px -8px rgba(15,23,42,.10);
}

/* Builder show page -------------------------------------------------- */
.itn-show__crumb { font-size: .8rem; color: #64748b; margin-bottom: .75rem; display: flex; gap: 6px; align-items: center; }
.itn-show__crumb a { color: #6366f1; text-decoration: none; font-weight: 600; }
.itn-show__crumb a:hover { text-decoration: underline; }

.itn-show__head {
  background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
  border: 1px solid #e5e7eb; border-radius: 16px;
  padding: 1.5rem; margin-bottom: 1.25rem;
}
.itn-show__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.itn-show__badges { display: flex; gap: 6px; align-items: center; margin-bottom: .35rem; }
.itn-show__status { font-size: .68rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: .03em; }
.itn-show__code { font-family: ui-monospace, monospace; font-size: .75rem; color: #64748b; font-weight: 600; }
.itn-show__ver { font-size: .7rem; color: #94a3b8; background: #f1f5f9; padding: 2px 8px; border-radius: 999px; font-weight: 600; }
.itn-show__title { margin: 0; font-size: 1.6rem; font-weight: 800; color: #0f172a; letter-spacing: -.02em; }
.itn-show__sub { margin-top: .5rem; display: flex; gap: 1rem; flex-wrap: wrap; font-size: .85rem; color: #475569; }
.itn-show__bit { display: inline-flex; align-items: center; gap: 4px; }
.itn-show__price { text-align: right; }
.itn-show__price-label { font-size: .68rem; text-transform: uppercase; color: #94a3b8; font-weight: 600; letter-spacing: .05em; }
.itn-show__price-value { font-size: 1.7rem; font-weight: 800; color: #0f172a; line-height: 1.1; letter-spacing: -.02em; }
.itn-show__price-sub { font-size: .72rem; color: #64748b; margin-top: 2px; }
.itn-show__actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px dashed #e2e8f0; }

/* Day canvas */
.itn-canvas {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem; align-items: start;
}
.itn-day {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 14px;
  display: flex; flex-direction: column; min-height: 220px;
  transition: border-color .15s, box-shadow .15s;
}
.itn-day:hover { border-color: #c7d2fe; box-shadow: 0 6px 16px -8px rgba(99,102,241,.18); }
.itn-day__head {
  display: flex; justify-content: space-between; align-items: center;
  padding: .85rem 1rem;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  border-bottom: 1px solid #f1f5f9;
  border-radius: 14px 14px 0 0;
}
.itn-day__num { font-size: .85rem; font-weight: 700; color: #0f172a; }
.itn-day__date { font-size: .72rem; color: #64748b; margin-top: 1px; }
.itn-day__add {
  width: 28px; height: 28px; border-radius: 50%;
  background: #eef2ff; color: #6366f1; border: 0;
  font-size: 1.1rem; font-weight: 700; cursor: pointer;
  display: grid; place-items: center; transition: all .15s;
}
.itn-day__add:hover:not(:disabled) { background: #6366f1; color: #fff; transform: scale(1.05); }
.itn-day__add:disabled { opacity: .5; cursor: not-allowed; }
.itn-day__city { padding: .5rem 1rem 0; font-size: .78rem; color: #475569; font-weight: 500; }
.itn-day__ai { padding: .5rem 1rem 0; font-size: .78rem; color: #64748b; font-style: italic; }

.itn-day__items { padding: .75rem; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.itn-day__empty {
  border: 2px dashed #e2e8f0; border-radius: 10px;
  padding: 1.25rem .75rem; text-align: center;
  display: flex; flex-direction: column; gap: 4px;
  color: #94a3b8;
}
.itn-day__empty span  { font-size: .85rem; font-weight: 600; }
.itn-day__empty small { font-size: .72rem; }

.itn-item {
  display: flex; background: #fff; border: 1px solid #e5e7eb; border-radius: 10px;
  overflow: hidden; transition: transform .12s, box-shadow .12s, border-color .12s; cursor: grab;
}
.itn-item:hover { transform: translateX(2px); border-color: #cbd5e1; box-shadow: 0 4px 10px -4px rgba(15,23,42,.12); }
.itn-item__bar { width: 4px; flex-shrink: 0; }
.itn-item__body { flex: 1; padding: .6rem .75rem; min-width: 0; }
.itn-item__top { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-bottom: 4px; }
.itn-item__slot {
  font-size: .65rem; font-weight: 700; padding: 2px 7px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: .03em;
}
.itn-item__time { font-size: .7rem; color: #64748b; font-weight: 600; }
.itn-item__title { font-size: .85rem; font-weight: 600; color: #0f172a; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.itn-item__sub   { font-size: .72rem; color: #64748b; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.itn-item__price { font-size: .8rem; color: #0f172a; font-weight: 700; margin-top: 4px; }

.itn-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; }
.itn-note {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 1rem;
}
.itn-note h4 { margin: 0 0 .4rem; font-size: .82rem; font-weight: 700; color: #334155; text-transform: uppercase; letter-spacing: .03em; }
.itn-note p  { margin: 0; font-size: .88rem; color: #475569; line-height: 1.5; }

@media (max-width: 1100px) {
  .itn-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .itn-hero__inner { flex-direction: column; align-items: flex-start; padding: 1.25rem; }
  .itn-grid-2 { grid-template-columns: 1fr; }
  .itn-pax { grid-template-columns: repeat(2, 1fr); }
  .itn-pax__item--ages { grid-column: span 2; }
  .itn-stats { grid-template-columns: 1fr; }
  .itn-show__top { flex-direction: column; }
  .itn-show__price { text-align: left; }
  .itn-notes { grid-template-columns: 1fr; }
}

/* Itinerary inventory shop modal */
.itn-modal__card--wide { max-width: 960px; width: 95vw; }
.itn-day__act { display: flex; gap: 4px; }
.itn-shop__tabs { display: flex; gap: 6px; margin-bottom: 1rem; flex-wrap: wrap; border-bottom: 1px solid #e5e7eb; padding-bottom: .5rem; }
.itn-shop__tab {
  background: #f1f5f9; border: 1px solid transparent; border-radius: 999px;
  padding: .5rem .9rem; font-size: .85rem; font-weight: 600; color: #475569;
  cursor: pointer; transition: all .15s;
}
.itn-shop__tab:hover { background: #e2e8f0; }
.itn-shop__tab.is-active { background: #6366f1; color: #fff; border-color: #4f46e5; }
.itn-shop__actions { display: flex; align-items: center; gap: 1rem; margin: 1rem 0 .75rem; padding-top: .75rem; border-top: 1px dashed #e5e7eb; }
.itn-shop__hint { color: #64748b; font-size: .82rem; }
.itn-shop__results { display: flex; flex-direction: column; gap: .6rem; max-height: 420px; overflow-y: auto; padding: .25rem; }
.itn-shop__loading, .itn-shop__empty { padding: 1.5rem; text-align: center; color: #64748b; font-size: .9rem; }
.itn-shop__card {
  display: flex; gap: 1rem; padding: .9rem 1rem; background: #fff;
  border: 1px solid #e5e7eb; border-radius: 10px; transition: all .15s;
}
.itn-shop__card:hover { border-color: #6366f1; box-shadow: 0 4px 12px rgba(99,102,241,.08); }
.itn-shop__card-body { flex: 1; min-width: 0; }
.itn-shop__supp { font-size: .72rem; font-weight: 700; color: #6366f1; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 2px; }
.itn-shop__title { font-size: .95rem; font-weight: 600; color: #0f172a; margin-bottom: 3px; }
.itn-shop__sub { font-size: .82rem; color: #64748b; }
.itn-shop__policy { font-size: .75rem; color: #94a3b8; margin-top: 4px; font-style: italic; }
.itn-shop__card-side { display: flex; flex-direction: column; gap: .5rem; align-items: flex-end; justify-content: space-between; min-width: 140px; }
.itn-shop__price { font-size: 1.05rem; font-weight: 700; color: #0f172a; white-space: nowrap; }

/* Itinerary shop - collapsed-filter layout */
.itn-btn--sm { padding: 6px 12px; font-size: .8rem; }
.itn-input--inline { width: auto; min-width: 200px; display: inline-block; padding: 6px 10px; font-size: .85rem; }
.itn-shop__filterbar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .75rem 1rem; margin-bottom: .75rem;
  background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 10px;
}
.itn-shop__filterbar-actions { display: flex; gap: .5rem; align-items: center; }
.itn-shop__summary { font-size: .88rem; color: #475569; flex: 1; min-width: 0; }
.itn-shop__sum-prod { font-weight: 700; color: #0f172a; }
.itn-shop__sum-crit { color: #64748b; }
.itn-shop__filters {
  padding: 1rem; margin-bottom: 1rem;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 10px;
}

.itn-day__add--danger { color: #b91c1c; }
.itn-day__add--danger:hover { background: #fee2e2; border-color: #fecaca; color: #991b1b; }

/* AI button spinner */
.itn-btn.is-loading { opacity: .9; cursor: progress; }
.itn-spinner {
  display: inline-block; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.4); border-top-color: #fff;
  animation: itnspin .7s linear infinite; vertical-align: middle;
}
@keyframes itnspin { to { transform: rotate(360deg); } }

/* ============================================================
   Theme variants - applied via [data-theme="..."] on <body>.
   Picker in topbar persists choice in localStorage. Default
   (no attribute) keeps the original blue/slate look.
   ============================================================ */

/* ============================================================
   1. GLASS - Glassmorphism. Translucent cards with backdrop blur,
      vivid gradient page bg, soft neon shadows.
   ============================================================ */
[data-theme="glass"] {
  --color-primary:     #6366f1;
  --color-primary-dk:  #4f46e5;
  --color-primary-lt:  #eef2ff;
  --color-info:        #ec4899;
  --color-bg:          transparent;
  --color-surface:     rgba(255,255,255,.65);
  --color-border:      rgba(255,255,255,.35);
  --sidebar-bg:        rgba(15,23,42,.78);
  --sidebar-text:      #cbd5e1;
  --sidebar-active-bg: rgba(99,102,241,.30);
  --sidebar-active:    #ffffff;
  --radius:            18px;
  --radius-md:         18px;
  --radius-lg:         24px;
  --shadow-md:         0 8px 32px rgba(99,102,241,.18), 0 2px 8px rgba(236,72,153,.10);
  --shadow-lg:         0 16px 48px rgba(99,102,241,.22);
}
[data-theme="glass"] body.app-body,
[data-theme="glass"].app-body {
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(236,72,153,.20), transparent 60%),
    radial-gradient(900px 600px at 0% 100%, rgba(99,102,241,.22), transparent 60%),
    linear-gradient(135deg, #f0f4ff 0%, #fef3f9 100%);
  min-height: 100vh;
}
[data-theme="glass"] .sidebar { backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-right: 1px solid rgba(255,255,255,.10); }
[data-theme="glass"] .topbar  { background: rgba(255,255,255,.55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255,255,255,.4); }
[data-theme="glass"] .card    { backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); background: rgba(255,255,255,.55); border: 1px solid rgba(255,255,255,.45); box-shadow: 0 8px 32px rgba(99,102,241,.10); }
[data-theme="glass"] .btn     { backdrop-filter: blur(8px); }
[data-theme="glass"] .btn-primary { background: linear-gradient(135deg, var(--color-button), var(--color-button-dk)); border: none; box-shadow: 0 4px 16px rgba(99,102,241,.35); }
[data-theme="glass"] .stat-value { background: linear-gradient(135deg, #6366f1, #ec4899); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ============================================================
   2. NEUMORPHIC - Soft monochrome with inset/outset shadows.
   ============================================================ */
[data-theme="neumorphic"] {
  --color-primary:     #6366f1;
  --color-primary-dk:  #4f46e5;
  --color-primary-lt:  #e0e7ff;
  --color-bg:          #e6e9f0;
  --color-surface:     #e6e9f0;
  --color-border:      transparent;
  --sidebar-bg:        #e6e9f0;
  --sidebar-text:      #64748b;
  --sidebar-active-bg: #d1d6e3;
  --sidebar-active:    #4f46e5;
  --radius:            18px;
  --radius-sm:         12px;
  --radius-md:         18px;
  --radius-lg:         24px;
}
[data-theme="neumorphic"] .sidebar { box-shadow: inset -8px 0 16px -8px rgba(163,177,198,.4); border: none; }
[data-theme="neumorphic"] .topbar  { background: #e6e9f0; box-shadow: 0 4px 12px rgba(163,177,198,.35), 0 -8px 0 -4px rgba(255,255,255,.6); border: none; }
[data-theme="neumorphic"] .card    { background: #e6e9f0; border: none; box-shadow: 8px 8px 16px rgba(163,177,198,.45), -8px -8px 16px rgba(255,255,255,.85); }
[data-theme="neumorphic"] .btn     { background: #e6e9f0; border: none; box-shadow: 4px 4px 10px rgba(163,177,198,.45), -4px -4px 10px rgba(255,255,255,.85); color: var(--color-text); }
[data-theme="neumorphic"] .btn:active { box-shadow: inset 3px 3px 6px rgba(163,177,198,.55), inset -3px -3px 6px rgba(255,255,255,.85); }
[data-theme="neumorphic"] .btn-primary { color: #fff; background: linear-gradient(145deg, var(--color-button), var(--color-button-dk)); }
[data-theme="neumorphic"] .form-control { background: #e6e9f0; border: none; box-shadow: inset 4px 4px 8px rgba(163,177,198,.45), inset -4px -4px 8px rgba(255,255,255,.85); }
[data-theme="neumorphic"] .table { background: transparent; }
[data-theme="neumorphic"] .table th, [data-theme="neumorphic"] .table td { border: none; }

/* ============================================================
   3. COMPACT PRO - Bloomberg-terminal density.
   ============================================================ */
[data-theme="compact-pro"] {
  --color-primary:     #f59e0b;
  --color-primary-dk:  #d97706;
  --color-primary-lt:  #fffbeb;
  --color-info:        #10b981;
  --color-bg:          #0f172a;
  --color-surface:     #1e293b;
  --color-border:      #334155;
  --color-text:        #e2e8f0;
  --color-text-muted:  #94a3b8;
  --sidebar-bg:        #020617;
  --sidebar-text:      #94a3b8;
  --sidebar-active-bg: rgba(245,158,11,.15);
  --sidebar-active:    #fbbf24;
  --sidebar-width:     200px;
  --radius:            2px;
  --radius-sm:         2px;
  --radius-md:         2px;
  --radius-lg:         4px;
  --font-base:         'JetBrains Mono', 'SF Mono', Consolas, monospace;
  --shadow-sm: none;
  --shadow-md: none;
}
[data-theme="neumorphic"] .sidebar-logo-name{    color: #000;}
[data-theme="neumorphic"] .nav-item:hover{     background: var(--color-primary);}
[data-theme="compact-pro"] body.app-body { background: #0f172a; }
[data-theme="compact-pro"] .topbar  { height: 44px; background: #020617; border-bottom: 1px solid #334155; }
[data-theme="compact-pro"] .card    { background: #1e293b; border: 1px solid #334155; box-shadow: none; }
[data-theme="compact-pro"] .card-body { padding: .5rem .75rem; }
[data-theme="compact-pro"] .page-title { font-size: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: #fbbf24; }
[data-theme="compact-pro"] .stat-value { font-size: 1.25rem; font-family: var(--font-base); color: #10b981; }
[data-theme="compact-pro"] .stat-label { font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; }
[data-theme="compact-pro"] .table { font-size: .75rem; }
[data-theme="compact-pro"] .table th { background: #0f172a; color: #fbbf24; text-transform: uppercase; font-size: .65rem; letter-spacing: .06em; border-bottom: 1px solid #334155; padding: .35rem .5rem; }
[data-theme="compact-pro"] .table td { padding: .3rem .5rem; border-bottom: 1px solid #1e293b; }
[data-theme="compact-pro"] .table tr:hover td { background: #0f172a; }
[data-theme="compact-pro"] .btn { padding: .25rem .65rem; font-size: .75rem; border-radius: 2px; }
[data-theme="compact-pro"] .btn-primary { background: #f59e0b; color: #0f172a; font-weight: 700; }

/* ============================================================
   4. FLOAT - Heavy elevated cards with thick shadows + whitespace.
   ============================================================ */
[data-theme="float"] {
  --color-primary:     #06b6d4;
  --color-primary-dk:  #0891b2;
  --color-primary-lt:  #ecfeff;
  --color-info:        #8b5cf6;
  --color-bg:          #f8fafc;
  --color-surface:     #ffffff;
  --color-border:      transparent;
  --sidebar-bg:        #ffffff;
  --sidebar-text:      #64748b;
  --sidebar-active-bg: #ecfeff;
  --sidebar-active:    #06b6d4;
  --radius:            24px;
  --radius-sm:         16px;
  --radius-md:         24px;
  --radius-lg:         32px;
  --shadow-sm: 0 4px 12px rgba(15,23,42,.06);
  --shadow-md: 0 16px 40px rgba(15,23,42,.10), 0 4px 12px rgba(15,23,42,.05);
  --shadow-lg: 0 32px 80px rgba(15,23,42,.14);
}
[data-theme="float"] .sidebar { box-shadow: 4px 0 24px rgba(15,23,42,.04); border: none; }
[data-theme="float"] .topbar  { background: #ffffff; box-shadow: 0 1px 0 #f1f5f9; border: none; }
[data-theme="float"] .card    { padding: 4px; border-radius: 24px; box-shadow: 0 16px 40px rgba(15,23,42,.10), 0 4px 12px rgba(15,23,42,.05); border: none; transition: transform .2s, box-shadow .2s; }
[data-theme="float"] .card:hover { transform: translateY(-4px); box-shadow: 0 24px 60px rgba(15,23,42,.14); }
[data-theme="float"] .card-body { padding: 1.5rem; }
[data-theme="float"] .btn { padding: .65rem 1.25rem; font-weight: 600; border-radius: 14px; }
[data-theme="float"] .btn-primary { background: linear-gradient(135deg, var(--color-button), var(--color-button-dk)); border: none; box-shadow: 0 8px 20px rgba(6,182,212,.30); }
[data-theme="float"] .page-content { padding: 2rem 2.5rem; }

/* ============================================================
   5. MATERIAL 3 - Vivid filled tonal surfaces, pill buttons.
   ============================================================ */
[data-theme="material-3"] {
  --color-primary:     #6750a4;
  --color-primary-dk:  #4f378b;
  --color-primary-lt:  #eaddff;
  --color-info:        #006a6a;
  --color-bg:          #fef7ff;
  --color-surface:     #fffbfe;
  --color-border:      #e7e0ec;
  --sidebar-bg:        #ece6f0;
  --sidebar-text:      #49454f;
  --sidebar-active-bg: #eaddff;
  --sidebar-active:    #21005d;
  --radius:            28px;
  --radius-sm:         12px;
  --radius-md:         16px;
  --radius-lg:         28px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.05);
  --shadow-md: 0 2px 6px rgba(0,0,0,.08);
}
[data-theme="material-3"] .sidebar { border-right: none; }
[data-theme="material-3"] .topbar  { background: #fef7ff; border: none; box-shadow: none; }
[data-theme="material-3"] .card    { background: #f3edf7; border-radius: 28px; border: none; box-shadow: none; }
[data-theme="material-3"] .card-body { padding: 1.25rem 1.5rem; }
[data-theme="material-3"] .btn { padding: .65rem 1.5rem; border-radius: 9999px; font-weight: 600; text-transform: none; letter-spacing: .01em; }
[data-theme="material-3"] .btn-primary { background: #6750a4; color: #ffffff; box-shadow: 0 1px 3px rgba(103,80,164,.30); }
[data-theme="material-3"] .btn-secondary { background: #eaddff; color: #21005d; border: none; }
[data-theme="material-3"] .form-control { background: #f3edf7; border-radius: 8px 8px 0 0; border: none; border-bottom: 2px solid #79747e; }
[data-theme="material-3"] .form-control:focus { border-bottom-color: #6750a4; box-shadow: none; }
[data-theme="material-3"] .stat-value { font-weight: 500; }

/* ============================================================
   6. BRUTAL MONO - Mono fonts, hard borders, sharp corners,
      zero shadows, retro terminal feel.
   ============================================================ */
[data-theme="brutal-mono"] {
  --color-primary:     #000000;
  --color-primary-dk:  #000000;
  --color-primary-lt:  #f5f5f5;
  --color-info:        var(--color-primary-dk);
  --color-bg:          #fafaf9;
  --color-surface:     #ffffff;
  --color-border:      #000000;
  --color-text:        #000000;
  --sidebar-bg:        #ffffff;
  --sidebar-text:      #000000;
  --sidebar-active-bg: #fef08a;
  --sidebar-active:    #000000;
  --radius:            0;
  --radius-sm:         0;
  --radius-md:         0;
  --radius-lg:         0;
  --shadow-sm: 4px 4px 0 #000;
  --shadow-md: 6px 6px 0 #000;
  --shadow-lg: 8px 8px 0 #000;
  --font-base: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
}
[data-theme="brutal-mono"] body.app-body { background: #fafaf9; }
[data-theme="brutal-mono"] .sidebar { border-right: 3px solid #000; }
[data-theme="brutal-mono"] .topbar  { background: #ffffff; border-bottom: 3px solid #000; box-shadow: none; }
[data-theme="brutal-mono"] .card    { background: #ffffff; border: 2.5px solid #000; box-shadow: 6px 6px 0 #000; }
[data-theme="brutal-mono"] .card:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 #000; }
[data-theme="brutal-mono"] .btn     { border: 2.5px solid #000; box-shadow: 3px 3px 0 #000; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; transition: transform .1s, box-shadow .1s; }
[data-theme="brutal-mono"] .btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 #000; }
[data-theme="brutal-mono"] .btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #000; }
[data-theme="brutal-mono"] .btn-primary { background: #fef08a; color: #000; }
[data-theme="brutal-mono"] .btn-secondary { background: #ffffff; color: #000; }
[data-theme="brutal-mono"] .form-control { border: 2.5px solid #000; border-radius: 0; box-shadow: 3px 3px 0 #000; }
[data-theme="brutal-mono"] .table th { background: #000; color: #fef08a; text-transform: uppercase; }
[data-theme="brutal-mono"] .table td { border-bottom: 1.5px solid #000; }
[data-theme="brutal-mono"] .page-title { text-transform: uppercase; letter-spacing: -.02em; font-weight: 900; }
[data-theme="brutal-mono"] .stat-value { font-weight: 900; }

/* Picker dropdown swatches */
.theme-picker-panel {
  position: absolute; top: calc(100% + .25rem); right: 0;
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-md);
  padding: .5rem; min-width: 200px; z-index: 300;
}
.theme-swatch {
  display: flex; align-items: center; gap: .5rem; padding: .5rem;
  border-radius: 6px; cursor: pointer; font-size: .8rem;
  border: 2px solid transparent; transition: background .15s;
}
.theme-swatch:hover { background: var(--color-bg); }
.theme-swatch.active { border-color: var(--color-primary); background: var(--color-primary-lt); }
.theme-swatch__dot {
  width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.6);
}

/* ============================================================
   7. RUBICK - Midone-inspired. Light bg, crisp white cards with
   soft shadows, pill-shaped search, gradient KPI icon tiles,
   slim sidebar with clean typography. Feels like Midone Rubick.
   ============================================================ */
/* Rubick uses Roboto - import at theme scope so it only loads when active */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

[data-theme="rubick"] {
  --color-primary:     #1e40af;
  --color-primary-dk:  #1e3a8a;
  --color-primary-lt:  #e0edff;
  --color-info:        var(--color-primary);
  --color-success:     #22c55e;
  --color-warning:     #facc15;
  --color-danger:      #ef4444;
  --color-bg:          #f1f5f8;
  --color-surface:     #ffffff;
  --color-border:      #e1e7ef;
  --color-text:        #1e293b;
  --color-text-muted:  #64748b;
  --sidebar-bg:        #1e40af;
  --sidebar-text:      #b2c3e4;
  --sidebar-active-bg: transparent;
  --sidebar-active:    #ffffff;
  --radius:            .5rem;
  --radius-sm:         .375rem;
  --radius-md:         .5rem;
  --radius-lg:         .75rem;
  --radius-xl:         1rem;
  --shadow-sm: 0 3px 20px #0000000b;
  --shadow-md: 0 3px 20px #0000000d;
  --shadow-lg: 0 3px 20px #00000012;
  --font-base: 'Roboto', system-ui, -apple-system, sans-serif;
}
[data-theme="rubick"] body.app-body,
[data-theme="rubick"].app-body,
html[data-theme="rubick"] body {
  background: var(--color-primary);
  font-family: 'Roboto', sans-serif;
  padding: 20px;
}

/* ─── Sidebar (Midone Rubick - solid royal blue + curved active "tab") ─── */
[data-theme="rubick"] .sidebar {
  border-right: none;
  box-shadow: none;
  padding: 0;
  overflow-x: hidden;
}

/* Logo block at top - sticky, full-bleed background so curved active-item
   pseudos don't bleed up into it when Dashboard scrolls underneath. */
[data-theme="rubick"] .sidebar-logo {
  padding: 1.5rem 1.5rem 1.25rem;
  background: var(--sidebar-bg);
  border-bottom: 1px solid rgba(255,255,255,.08);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: .75rem;
}
[data-theme="rubick"] .sidebar-logo-icon {
  background: rgba(255,255,255,.15);
  color: #fff;
  border-radius: .5rem;
  font-weight: 500;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
[data-theme="rubick"] .sidebar-logo-name { color: #fff; font-weight: 500; font-size: 1rem; letter-spacing: .01em; }
[data-theme="rubick"] .sidebar-logo-sub  { color: rgba(255,255,255,.55); font-weight: 300; font-size: .72rem; }

/* Section labels */
[data-theme="rubick"] .nav-section-label {
  color: rgba(255,255,255,.5);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 1.25rem 1.5rem .5rem;
}

/* Nav items - base state */
[data-theme="rubick"] .nav-group { padding: .25rem 0; }
[data-theme="rubick"] .nav-item {
  position: relative;
  color: rgba(255, 255, 255, .8);
  font-weight: 400;
  font-size: 13px;
  padding: 0.9rem 1.5rem;
  margin: .15rem 0;
  border-radius: 0;
  display: flex;
  align-items: center;
  gap: .85rem;
  transition: background .15s, color .15s;
}
[data-theme="rubick"] .nav-item .nav-icon,
[data-theme="rubick"] .nav-item svg {
  width: 18px; height: 18px;
  stroke: currentColor;
  stroke-width: 1.8;
  flex-shrink: 0;
  opacity: .9;
}
[data-theme="rubick"] .nav-item:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
}

/* Active item - curved "tab" built from SVG-shaped pseudo-elements
   that carve into the content area. */
[data-theme="rubick"] .nav-item.active {
  background: #f1f5f8;
  color: #000;
  font-weight: 600;
  border-radius: 9999px 0 0 9999px;
  margin-left: .75rem;
  margin-right: -1px;
  padding-right: 1.5rem;
  z-index: 1;
}
[data-theme="rubick"] .nav-item.active .nav-icon,
[data-theme="rubick"] .nav-item.active svg { stroke: #1e3a8a; opacity: 1; }

[data-theme="rubick"] .nav-item.active::before {
content: "";
    position: absolute;
    width: 30px;
    height: 30px;
  margin-top: -30.6px;
    transform: rotate(90deg);
    background-size: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='259.51' height='259.52' viewBox='0 0 259.51 259.52'%3E%3Cpath id='Path_143' data-name='Path 143' d='M8659.507,423.965c-.167-2.608.05-5.319-.19-8.211-.084-1.012-.031-2.15-.118-3.12-.113-1.25-.1-2.682-.236-4.061-.172-1.722-.179-3.757-.365-5.394-.328-2.889-.478-5.857-.854-8.61-.509-3.714-.825-7.252-1.38-10.543-.934-5.535-2.009-11.312-3.189-16.692-.855-3.9-1.772-7.416-2.752-11.2-1.1-4.256-2.394-8.149-3.687-12.381-1.1-3.615-2.366-6.893-3.623-10.493-1.3-3.739-2.917-7.26-4.284-10.7-1.708-4.295-3.674-8.078-5.485-12.023-1.145-2.493-2.5-4.932-3.727-7.387-1.318-2.646-2.9-5.214-4.152-7.518-1.716-3.16-3.517-5.946-5.274-8.873-1.692-2.818-3.589-5.645-5.355-8.334-2.326-3.542-4.637-6.581-7.039-9.848-2.064-2.809-4.017-5.255-6.088-7.828-2.394-2.974-4.937-5.936-7.292-8.589-3.027-3.411-6.049-6.744-9.055-9.763-2.4-2.412-4.776-4.822-7.108-6.975-3-2.767-5.836-5.471-8.692-7.854-3.332-2.779-6.657-5.663-9.815-8.028-2.958-2.216-5.784-4.613-8.7-6.6-3.161-2.159-6.251-4.414-9.219-6.254-3.814-2.365-7.533-4.882-11.168-6.89-4.213-2.327-8.513-4.909-12.478-6.834-4.61-2.239-9.234-4.619-13.51-6.416-4.1-1.725-8.11-3.505-11.874-4.888-4.5-1.652-8.506-3.191-12.584-4.47-6.045-1.9-12.071-3.678-17.431-5-9.228-2.284-17.608-3.757-24.951-4.9-7.123-1.112-13.437-1.64-18.271-2.035l-2.405-.2c-1.638-.136-3.508-.237-4.633-.3a115.051,115.051,0,0,0-12.526-.227h259.51Z' transform='translate(-8399.997 -164.445)' fill='%23f1f5f8'/%3E%3C/svg%3E%0A"); right: 0;
    margin-right: 0;
    pointer-events: none;
       left: inherit;
    top: 0;
    bottom: 0;
}

[data-theme="rubick"] .nav-item.active::after {
  content: "";
  position: absolute;
  width: 30px;
  height: 30px;
  margin-top: 48px;
  transform: scale(1.04);
  background-size: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='259.51' height='259.52' viewBox='0 0 259.51 259.52'%3E%3Cpath id='Path_143' data-name='Path 143' d='M8659.507,423.965c-.167-2.608.05-5.319-.19-8.211-.084-1.012-.031-2.15-.118-3.12-.113-1.25-.1-2.682-.236-4.061-.172-1.722-.179-3.757-.365-5.394-.328-2.889-.478-5.857-.854-8.61-.509-3.714-.825-7.252-1.38-10.543-.934-5.535-2.009-11.312-3.189-16.692-.855-3.9-1.772-7.416-2.752-11.2-1.1-4.256-2.394-8.149-3.687-12.381-1.1-3.615-2.366-6.893-3.623-10.493-1.3-3.739-2.917-7.26-4.284-10.7-1.708-4.295-3.674-8.078-5.485-12.023-1.145-2.493-2.5-4.932-3.727-7.387-1.318-2.646-2.9-5.214-4.152-7.518-1.716-3.16-3.517-5.946-5.274-8.873-1.692-2.818-3.589-5.645-5.355-8.334-2.326-3.542-4.637-6.581-7.039-9.848-2.064-2.809-4.017-5.255-6.088-7.828-2.394-2.974-4.937-5.936-7.292-8.589-3.027-3.411-6.049-6.744-9.055-9.763-2.4-2.412-4.776-4.822-7.108-6.975-3-2.767-5.836-5.471-8.692-7.854-3.332-2.779-6.657-5.663-9.815-8.028-2.958-2.216-5.784-4.613-8.7-6.6-3.161-2.159-6.251-4.414-9.219-6.254-3.814-2.365-7.533-4.882-11.168-6.89-4.213-2.327-8.513-4.909-12.478-6.834-4.61-2.239-9.234-4.619-13.51-6.416-4.1-1.725-8.11-3.505-11.874-4.888-4.5-1.652-8.506-3.191-12.584-4.47-6.045-1.9-12.071-3.678-17.431-5-9.228-2.284-17.608-3.757-24.951-4.9-7.123-1.112-13.437-1.64-18.271-2.035l-2.405-.2c-1.638-.136-3.508-.237-4.633-.3a115.051,115.051,0,0,0-12.526-.227h259.51Z' transform='translate(-8399.997 -164.445)' fill='%23f1f5f8'/%3E%3C/svg%3E");
  top: 0;
  right: 0;
  pointer-events: none;
}

/* Sidebar footer (user + logout) */
[data-theme="rubick"] .sidebar-footer {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1rem 1.5rem;
}
[data-theme="rubick"] .sidebar-user-avatar {
  background: rgba(255,255,255,.15);
  color: #fff;
}
[data-theme="rubick"] .sidebar-user-name  { color: #fff; font-weight: 500; }
[data-theme="rubick"] .sidebar-user-email { color: rgba(255,255,255,.55); }
[data-theme="rubick"] .sidebar-logout     { color: rgba(255,255,255,.55); }
[data-theme="rubick"] .sidebar-logout:hover { color: #fff; background: rgba(255,255,255,.08); }

/* Hide the sidebar scrollbar but keep it scrollable */
[data-theme="rubick"] .sidebar::-webkit-scrollbar { width: 0; display: none; }
[data-theme="rubick"] .sidebar { scrollbar-width: none; -ms-overflow-style: none; }

/* Main wrapper - rounded card floating on the blue body bg */
[data-theme="rubick"] .main-wrapper {
  background: #f1f5f8;
  border-radius: 20px;
  overflow: hidden;
  min-height: calc(100vh - 40px);
  margin-left: 240px;
}

/* ─── Topbar (transparent - blends into page bg) ─── */
[data-theme="rubick"] .topbar {
  background: #f1f5f8;
  border-bottom: none;
  box-shadow: none;
  padding: 1rem 2rem;
  height: auto;
  border-radius: 0;
}
[data-theme="rubick"] .topbar-title { font-size: 1.5rem; font-weight: 600; color: #1e293b; letter-spacing: -.01em; }
[data-theme="rubick"] .topbar input.form-control {
  background: rgba(255,255,255,.7);
  border: 1px solid transparent;
  border-radius: .5rem;
  padding: .6rem 1rem .6rem 2.5rem;
  font-size: .85rem;
  box-shadow: none;
  color: #334155;
}
[data-theme="rubick"] .topbar input.form-control::placeholder { color: #94a3b8; }
[data-theme="rubick"] .topbar input.form-control:focus { background: #fff; border-color: #e1e7ef; box-shadow: 0 3px 20px #0000000b; }

[data-theme="rubick"] .topbar-avatar {
  background: linear-gradient(135deg, #1e40af, var(--color-primary));
  box-shadow: 0 3px 20px rgba(30,64,175,.25);
}

/* ─── Page ─── */
[data-theme="rubick"] .page-content { padding: 0 2rem 2rem; background: #f1f5f8; }
[data-theme="rubick"] .page-header {
  padding: 1rem 0 1.25rem;
  border-bottom: none;
  margin-bottom: 1rem;
}
[data-theme="rubick"] .page-title {
  font-size: 1.125rem;
  font-weight: 500;
  color: #1e293b;
  letter-spacing: 0;
}
[data-theme="rubick"] .page-subtitle { font-size: .8rem; color: #94a3b8; margin-top: .15rem; }

/* ─── Cards (white, faint all-sides shadow, 8px radius) ─── */
[data-theme="rubick"] .card {
  background: #ffffff;
  border: none;
  border-radius: .5rem;
  box-shadow: 0 3px 20px #0000000b;
  transition: box-shadow .2s;
}
[data-theme="rubick"] .card:hover { box-shadow: 0 3px 20px #00000014; }
[data-theme="rubick"] .card-header {
  background: transparent;
  border-bottom: 1px dashed #e1e7ef;
  padding: 1rem 1.25rem;
  font-weight: 500;
}
[data-theme="rubick"] .card-body { padding: 1.25rem; }

/* ─── KPI tiles: colored icon top-left, number, label ─── */
[data-theme="rubick"] .stat-card { position: relative; padding: 1.25rem; }
[data-theme="rubick"] .stat-value { font-size: 1.65rem; font-weight: 500; color: #1e293b; letter-spacing: -.01em; line-height: 1.2; }
[data-theme="rubick"] .stat-label { font-size: .8rem; color: #94a3b8; font-weight: 400; text-transform: none; letter-spacing: 0; margin-top: .15rem; }

/* ─── Buttons ─── */
[data-theme="rubick"] .btn {
  padding: .5rem 1rem;
  border-radius: .375rem;
  font-weight: 500;
  font-size: .85rem;
  font-family: 'Roboto', sans-serif;
  box-shadow: none;
  transition: background .15s, border-color .15s, color .15s;
}
[data-theme="rubick"] .btn-primary { background: var(--color-button); color: #fff; border: 1px solid var(--color-button); }
[data-theme="rubick"] .btn-primary:hover { background: var(--color-button-dk); border-color: var(--color-button-dk); }
[data-theme="rubick"] .btn-secondary {
  background: #f1f5f8;
  color: #1e293b;
  border: 1px solid #e1e7ef;
}
[data-theme="rubick"] .btn-secondary:hover { background: #e2e8ef; }

/* ─── Tables (dashed separators - Midone's signature) ─── */
[data-theme="rubick"] .table { border-collapse: separate; border-spacing: 0; background: transparent; }
[data-theme="rubick"] .table th {
  background: transparent;
  border-top: 1px dashed #e1e7ef;
  border-bottom: 1px dashed #e1e7ef;
  color: #94a3b8;
  text-transform: uppercase;
  font-size: .7rem;
  letter-spacing: .04em;
  font-weight: 500;
  padding: .75rem 1rem;
}
[data-theme="rubick"] .table td {
  background: transparent;
  border-bottom: 1px dashed #e1e7ef;
  padding: .85rem 1rem;
  font-size: .875rem;
  color: #1e293b;
}
[data-theme="rubick"] .table tr:hover td { background: rgba(241,245,248,.5); }
[data-theme="rubick"] .table tr:last-child td { border-bottom: none; }

/* ─── Form controls ─── */
[data-theme="rubick"] .form-control {
  background: #fff;
  border: 1px solid #e1e7ef;
  border-radius: .375rem;
  padding: .55rem .85rem;
  font-size: .875rem;
  font-family: 'Roboto', sans-serif;
  color: #1e293b;
  box-shadow: none;
  transition: border-color .15s, box-shadow .15s;
}
[data-theme="rubick"] .form-control:focus {
  border-color: #1e40af;
  box-shadow: 0 0 0 3px rgba(30,64,175,.12);
  outline: none;
}
[data-theme="rubick"] .form-label { font-size: .8rem; font-weight: 500; color: #1e293b; }

/* Badges / pills */
[data-theme="rubick"] .badge {
  font-size: .7rem;
  padding: .2rem .6rem;
  border-radius: 9999px;
  font-weight: 500;
}

/* ─── RUBICK showcase utilities - apply to dashboards that want the
       Midone Rubick KPI-tile / transactions-list look. ───────────── */
[data-theme="rubick"] .rb-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
[data-theme="rubick"] .rb-kpi {
  position: relative;
  background: #fff;
  border-radius: .5rem;
  padding: 1.25rem;
  box-shadow: 0 3px 20px #0000000b;
  transition: box-shadow .2s;
}
[data-theme="rubick"] .rb-kpi:hover { box-shadow: 0 3px 20px #00000014; }
[data-theme="rubick"] .rb-kpi__icon {
  width: 48px; height: 48px;
  border-radius: 9999px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: .75rem;
}
[data-theme="rubick"] .rb-kpi__icon svg { width: 22px; height: 22px; color: #fff; stroke: #fff; }
[data-theme="rubick"] .rb-kpi__icon--primary  { background: linear-gradient(135deg, var(--color-primary), #1e40af); }
[data-theme="rubick"] .rb-kpi__icon--danger   { background: linear-gradient(135deg, #f87171, #dc2626); }
[data-theme="rubick"] .rb-kpi__icon--warning  { background: linear-gradient(135deg, #fbbf24, #d97706); }
[data-theme="rubick"] .rb-kpi__icon--success  { background: linear-gradient(135deg, #34d399, #059669); }
[data-theme="rubick"] .rb-kpi__icon--purple   { background: linear-gradient(135deg, #a78bfa, #7c3aed); }
[data-theme="rubick"] .rb-kpi__icon--pink     { background: linear-gradient(135deg, #f472b6, #db2777); }

[data-theme="rubick"] .rb-kpi__badge {
  position: absolute; top: 1.25rem; right: 1.25rem;
  display: inline-flex; align-items: center; gap: .2rem;
  padding: .2rem .55rem;
  border-radius: 9999px;
  font-size: .72rem;
  font-weight: 500;
}
[data-theme="rubick"] .rb-kpi__badge--up   { background: #dcfce7; color: #166534; }
[data-theme="rubick"] .rb-kpi__badge--down { background: #fee2e2; color: #991b1b; }
[data-theme="rubick"] .rb-kpi__badge svg   { width: 12px; height: 12px; }
[data-theme="rubick"] .rb-kpi__value {
  font-size: 1.75rem;
  font-weight: 500;
  color: #1e293b;
  letter-spacing: -.02em;
  line-height: 1.1;
}
[data-theme="rubick"] .rb-kpi__label {
  font-size: .82rem;
  color: #94a3b8;
  margin-top: .25rem;
}

/* Transactions-style right rail list */
[data-theme="rubick"] .rb-txn-list { display: flex; flex-direction: column; gap: .25rem; }
[data-theme="rubick"] .rb-txn {
  display: flex; align-items: center; gap: .75rem;
  padding: .65rem 0;
  border-bottom: 1px dashed #e1e7ef;
}
[data-theme="rubick"] .rb-txn:last-child { border-bottom: none; }
[data-theme="rubick"] .rb-txn__avatar {
  width: 38px; height: 38px; border-radius: 9999px;
  background: linear-gradient(135deg, var(--color-primary), #1e40af);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 500;
  flex-shrink: 0;
}
[data-theme="rubick"] .rb-txn__body { flex: 1; min-width: 0; }
[data-theme="rubick"] .rb-txn__name { font-size: .85rem; font-weight: 500; color: #1e293b; }
[data-theme="rubick"] .rb-txn__meta { font-size: .72rem; color: #94a3b8; }
[data-theme="rubick"] .rb-txn__amt { font-weight: 500; font-size: .9rem; color: #16a34a; }
[data-theme="rubick"] .rb-txn__amt--neg { color: #dc2626; }

/* Breadcrumb styled like Midone's subtle "Application / Dashboard" */
[data-theme="rubick"] .rb-breadcrumb {
  display: flex; align-items: center; gap: .5rem;
  font-size: .8rem; color: #94a3b8;
  padding: 1rem 0 .5rem;
}
[data-theme="rubick"] .rb-breadcrumb a { color: #94a3b8; text-decoration: none; }
[data-theme="rubick"] .rb-breadcrumb .sep { color: #cbd5e1; }
[data-theme="rubick"] .rb-breadcrumb .current { color: #1e293b; font-weight: 500; }

/* ================================================================
   NEXLINK THEME
   Inspired by NexLink CRM - clean white sidebar, indigo primary,
   Instrument Sans font, generous radius, light violet tints.
   ================================================================ */
[data-theme="nexlink"] {
  --color-primary:     #5955D1;
  --color-primary-dk:  #4845B2;
  --color-primary-lt:  #EEEDFA;
  --color-info:        #7008E7;
  --color-success:     #009966;
  --color-warning:     #F5A70D;
  --color-danger:      #F83636;
  --color-secondary:   #696981;
  --color-bg:          #FDFDFF;
  --color-surface:     #ffffff;
  --color-border:      #EEEEF3;
  --color-text:        #0C243C;
  --color-text-muted:  #696981;
  --color-muted:       #696981;
  --sidebar-bg:        #ffffff;
  --sidebar-text:      #696981;
  --sidebar-active-bg: #5955D1;
  --sidebar-active:    #ffffff;
  --sidebar-width:     260px;
  --radius:            .625rem;
  --radius-sm:         .375rem;
  --radius-md:         .625rem;
  --radius-lg:         1rem;
  --radius-xl:         1.25rem;
  --shadow-sm:  0 1px 3px rgba(89,85,209,.06);
  --shadow-md:  0 4px 16px rgba(89,85,209,.08);
  --shadow-lg:  0 .26rem 1.126rem rgba(45,42,60,.15);
  --font-base:  'Instrument Sans', 'Inter', system-ui, -apple-system, sans-serif;
}

/* ─── Body ─── */
[data-theme="nexlink"] body.app-body,
[data-theme="nexlink"].app-body,
html[data-theme="nexlink"] body {
  background: #FDFDFF;
  font-family: var(--font-base);
}

/* ─── Sidebar ─── */
[data-theme="nexlink"] .sidebar {
  background: #ffffff;
  border-right: 1px solid #EEEEF3;
  box-shadow: none;
  padding: .5rem 0;
}

[data-theme="nexlink"] .sidebar-logo {
  padding: 1.25rem 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  border-bottom: 1px solid #EEEEF3;
  margin-bottom: .5rem;
}
[data-theme="nexlink"] .sidebar-logo-icon {
  background: linear-gradient(135deg, #5955D1, #7008E7);
  color: #fff;
  border-radius: .5rem;
  font-weight: 600;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
}
[data-theme="nexlink"] .sidebar-logo-name { color: #0C243C; font-weight: 600; font-size: 1rem; }
[data-theme="nexlink"] .sidebar-logo-sub  { color: #696981; font-weight: 400; font-size: .72rem; }

/* Section labels */
[data-theme="nexlink"] .nav-section-label {
  color: #696981;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 1.25rem 1.25rem .4rem;
}

/* Nav items */
[data-theme="nexlink"] .nav-group { padding: .15rem 0; }
[data-theme="nexlink"] .nav-item {
  position: relative;
  color: #696981;
  font-weight: 500;
  font-size: .875rem;
  padding: .6rem 1rem;
  margin: .1rem .75rem;
  border-radius: 50rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  transition: background .15s, color .15s;
}
[data-theme="nexlink"] .nav-item .nav-icon,
[data-theme="nexlink"] .nav-item svg {
  width: 20px; height: 20px;
  stroke: currentColor;
  stroke-width: 1.8;
  flex-shrink: 0;
  opacity: .7;
}
[data-theme="nexlink"] .nav-item:hover {
  background: #F2F2F6;
  color: #0C243C;
  text-decoration: none;
}
[data-theme="nexlink"] .nav-item:hover .nav-icon,
[data-theme="nexlink"] .nav-item:hover svg { opacity: 1; }

/* Active item - pill with primary bg */
[data-theme="nexlink"] .nav-item.active {
  background: #5955D1;
  color: #ffffff;
  font-weight: 600;
  border-radius: 50rem;
  box-shadow: 0 2px 8px rgba(89,85,209,.3);
}
[data-theme="nexlink"] .nav-item.active::before,
[data-theme="nexlink"] .nav-item.active::after { display: none; }
[data-theme="nexlink"] .nav-item.active .nav-icon,
[data-theme="nexlink"] .nav-item.active svg { stroke: #ffffff; opacity: 1; }

/* Sidebar footer */
[data-theme="nexlink"] .sidebar-footer {
  border-top: 1px solid #EEEEF3;
  padding: 1rem 1.25rem;
}
[data-theme="nexlink"] .sidebar-user-avatar {
  background: linear-gradient(135deg, #5955D1, #7008E7);
  color: #fff;
}
[data-theme="nexlink"] .sidebar-user-name  { color: #0C243C; font-weight: 500; }
[data-theme="nexlink"] .sidebar-user-email { color: #696981; }
[data-theme="nexlink"] .sidebar-logout     { color: #696981; }
[data-theme="nexlink"] .sidebar-logout:hover { color: #5955D1; background: #EEEDFA; }

/* ─── Main wrapper ─── */
[data-theme="nexlink"] .main-wrapper {
  background: #FDFDFF;
  min-height: 100vh;
}

/* ─── Topbar ─── */
[data-theme="nexlink"] .topbar {
  background: #FDFDFF;
  border-bottom: 1px solid #EEEEF3;
  box-shadow: none;
  padding: .75rem 1.5rem;
  height: auto;
}
[data-theme="nexlink"] .topbar-title { font-size: 1.15rem; font-weight: 600; color: #0C243C; }
[data-theme="nexlink"] .topbar input.form-control {
  background: #F2F2F6;
  border: 1px solid transparent;
  border-radius: 50rem;
  padding: .55rem 1rem .55rem 2.5rem;
  font-size: .85rem;
  box-shadow: none;
  color: #0C243C;
}
[data-theme="nexlink"] .topbar input.form-control::placeholder { color: #696981; }
[data-theme="nexlink"] .topbar input.form-control:focus {
  background: #fff;
  border-color: #5955D1;
  box-shadow: 0 0 0 3px rgba(89,85,209,.12);
}
[data-theme="nexlink"] .topbar-avatar {
  background: linear-gradient(135deg, #5955D1, #7008E7);
  box-shadow: 0 2px 8px rgba(89,85,209,.25);
}

/* ─── Page content ─── */
[data-theme="nexlink"] .page-content { padding: 1.5rem; background: #FDFDFF; }
[data-theme="nexlink"] .page-header {
  padding: .5rem 0 1rem;
  border-bottom: none;
  margin-bottom: 1rem;
}
[data-theme="nexlink"] .page-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #0C243C;
  letter-spacing: -.01em;
}
[data-theme="nexlink"] .page-subtitle { font-size: .82rem; color: #696981; margin-top: .15rem; }

/* ─── Cards ─── */
[data-theme="nexlink"] .card {
  background: #ffffff;
  border: 1px solid #EEEEF3;
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 3px rgba(89,85,209,.04);
  transition: box-shadow .2s, transform .2s;
}
[data-theme="nexlink"] .card:hover {
  box-shadow: 0 4px 16px rgba(89,85,209,.1);
}
[data-theme="nexlink"] .card-header {
  background: transparent;
  border-bottom: 1px solid #EEEEF3;
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: .9rem;
  color: #0C243C;
}
[data-theme="nexlink"] .card-body { padding: 1.25rem; }

/* ─── KPI / Stat cards ─── */
[data-theme="nexlink"] .stat-card { position: relative; padding: 1.25rem; }
[data-theme="nexlink"] .stat-value {
  font-size: 1.75rem; font-weight: 700; color: #0C243C;
  letter-spacing: -.02em; line-height: 1.2;
}
[data-theme="nexlink"] .stat-label {
  font-size: .8rem; color: #696981; font-weight: 500;
  text-transform: none; margin-top: .15rem;
}

/* ─── Buttons ─── */
[data-theme="nexlink"] .btn {
  padding: .532rem 1.2rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: .875rem;
  box-shadow: none;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
}
[data-theme="nexlink"] .btn-primary {
  background: var(--color-button); color: #fff; border: 1px solid var(--color-button);
}
[data-theme="nexlink"] .btn-primary:hover {
  background: var(--color-button-dk); border-color: var(--color-button-dk);
  box-shadow: 0 2px 8px rgba(89,85,209,.3);
}
[data-theme="nexlink"] .btn-secondary {
  background: #F2F2F6; color: #29294B; border: 1px solid #EEEEF3;
}
[data-theme="nexlink"] .btn-secondary:hover { background: #E8E8EE; }
[data-theme="nexlink"] .btn-success { background: #009966; border-color: #009966; color: #fff; }
[data-theme="nexlink"] .btn-danger  { background: #F83636; border-color: #F83636; color: #fff; }
[data-theme="nexlink"] .btn-warning { background: #F5A70D; border-color: #F5A70D; color: #fff; }

/* ─── Tables ─── */
[data-theme="nexlink"] .table { border-collapse: separate; border-spacing: 0; background: transparent; }
[data-theme="nexlink"] .table th {
  background: #F2F2F6;
  border: none;
  color: #696981;
  text-transform: uppercase;
  font-size: .72rem;
  letter-spacing: .04em;
  font-weight: 600;
  padding: .7rem 1rem;
}
[data-theme="nexlink"] .table th:first-child { border-radius: .5rem 0 0 .5rem; }
[data-theme="nexlink"] .table th:last-child  { border-radius: 0 .5rem .5rem 0; }
[data-theme="nexlink"] .table td {
  background: transparent;
  border-bottom: 1px solid #EEEEF3;
  padding: .85rem 1rem;
  font-size: .875rem;
  color: #0C243C;
}
[data-theme="nexlink"] .table tr:hover td { background: #F9F9FC; }
[data-theme="nexlink"] .table tr:last-child td { border-bottom: none; }

/* ─── Form controls ─── */
[data-theme="nexlink"] .form-control {
  background: #fff;
  border: 1px solid #EEEEF3;
  border-radius: .375rem;
  padding: .55rem .85rem;
  font-size: .875rem;
  color: #0C243C;
  box-shadow: none;
  transition: border-color .15s, box-shadow .15s;
}
[data-theme="nexlink"] .form-control:focus {
  border-color: #5955D1;
  box-shadow: 0 0 0 3px rgba(89,85,209,.12);
  outline: none;
}
[data-theme="nexlink"] .form-label { font-size: .82rem; font-weight: 500; color: #29294B; }

/* ─── Badges ─── */
[data-theme="nexlink"] .badge {
  font-size: .72rem;
  padding: .25rem .65rem;
  border-radius: 50rem;
  font-weight: 600;
}
[data-theme="nexlink"] .badge-success,
[data-theme="nexlink"] .badge.bg-success { background: #E6F5EE !important; color: #009966 !important; }
[data-theme="nexlink"] .badge-danger,
[data-theme="nexlink"] .badge.bg-danger  { background: #FEE9E9 !important; color: #F83636 !important; }
[data-theme="nexlink"] .badge-warning,
[data-theme="nexlink"] .badge.bg-warning { background: #FEF4E0 !important; color: #C78500 !important; }
[data-theme="nexlink"] .badge-info,
[data-theme="nexlink"] .badge.bg-info    { background: #F0E6FD !important; color: #7008E7 !important; }

/* ─── Scrollbar ─── */
[data-theme="nexlink"] .sidebar::-webkit-scrollbar { width: 4px; }
[data-theme="nexlink"] .sidebar::-webkit-scrollbar-track { background: transparent; }
[data-theme="nexlink"] .sidebar::-webkit-scrollbar-thumb { background: #EEEEF3; border-radius: 50rem; }

/* ─── Responsive ─── */
@media (max-width: 768px) {
  [data-theme="nexlink"] .page-content { padding: 1rem; }
}

/* ================================================================
   SIDEBAR STYLES (data-sidebar attribute on <body>)
   8 different sidebar designs, PID-based.
   ================================================================ */

/* ─── 1. LIGHT ─── White bg, grey text, blue active */
[data-sidebar="light"] .sidebar {
  background: #ffffff;
  border-right: 1px solid #e5e7eb;
  scrollbar-color: #e5e7eb transparent;
}
[data-sidebar="light"] .sidebar-logo { border-bottom: 1px solid #e5e7eb; }
[data-sidebar="light"] .sidebar-logo-icon { background: var(--color-primary); }
[data-sidebar="light"] .sidebar-logo-name { color: #1f2937; }
[data-sidebar="light"] .sidebar-logo-sub  { color: #9ca3af; }
[data-sidebar="light"] .nav-section-label { color: #9ca3af; }
[data-sidebar="light"] .nav-item { color: #6b7280; }
[data-sidebar="light"] .nav-item:hover { background: #f3f4f6; color: #1f2937; }
[data-sidebar="light"] .nav-item.active { background: #eff6ff; color: var(--color-primary); }
[data-sidebar="light"] .nav-item.active::before { background: var(--color-primary); }
[data-sidebar="light"] .sidebar-footer { border-top: 1px solid #e5e7eb; }
[data-sidebar="light"] .sidebar-user-name { color: #1f2937; }
[data-sidebar="light"] .sidebar-user-email { color: #9ca3af; }
[data-sidebar="light"] .sidebar-logout { color: #9ca3af; }
[data-sidebar="light"] .sidebar-logout:hover { color: var(--color-danger); background: rgba(239,68,68,.08); }
[data-sidebar="light"] .sidebar::-webkit-scrollbar-thumb { background: #e5e7eb; }

/* ─── 2. BORDERED ─── White bg, bordered active with dot */
[data-sidebar="bordered"] .sidebar {
  background: #ffffff;
  border-right: 1px solid #e5e7eb;
}
[data-sidebar="bordered"] .sidebar-logo { border-bottom: 1px solid #e5e7eb; }
[data-sidebar="bordered"] .sidebar-logo-icon { background: var(--color-primary); }
[data-sidebar="bordered"] .sidebar-logo-name { color: #111827; }
[data-sidebar="bordered"] .sidebar-logo-sub  { color: #9ca3af; }
[data-sidebar="bordered"] .nav-section-label { color: #9ca3af; }
[data-sidebar="bordered"] .nav-item {
  color: #6b7280; margin: 2px .75rem; border-radius: 8px;
  border: 1.5px solid transparent; padding: .5rem .85rem;
}
[data-sidebar="bordered"] .nav-item:hover { background: #f9fafb; border-color: #e5e7eb; color: #374151; }
[data-sidebar="bordered"] .nav-item.active {
  background: #fff; border-color: var(--color-primary);
  color: var(--color-primary); font-weight: 600;
  box-shadow: 0 1px 4px rgba(59,130,246,.1);
}
[data-sidebar="bordered"] .nav-item.active::before { display: none; }
[data-sidebar="bordered"] .sidebar-footer { border-top: 1px solid #e5e7eb; }
[data-sidebar="bordered"] .sidebar-user-name { color: #111827; }
[data-sidebar="bordered"] .sidebar-user-email { color: #9ca3af; }
[data-sidebar="bordered"] .sidebar-logout { color: #9ca3af; }

/* ─── 3. PILL ─── Dark bg, pill-shaped active */
[data-sidebar="pill"] .sidebar { background: #0f172a; }
[data-sidebar="pill"] .sidebar-logo { border-bottom: 1px solid rgba(255,255,255,.06); }
[data-sidebar="pill"] .sidebar-logo-name { color: #fff; }
[data-sidebar="pill"] .sidebar-logo-sub { color: #64748b; }
[data-sidebar="pill"] .nav-section-label { color: #475569; }
[data-sidebar="pill"] .nav-item {
  color: #94a3b8; margin: 2px .75rem; border-radius: 50rem; padding: .55rem 1rem;
}
[data-sidebar="pill"] .nav-item:hover { background: rgba(255,255,255,.06); color: #e2e8f0; }
[data-sidebar="pill"] .nav-item.active {
  background: var(--color-primary); color: #fff; font-weight: 600;
  box-shadow: 0 2px 8px rgba(59,130,246,.3);
}
[data-sidebar="pill"] .nav-item.active::before { display: none; }
[data-sidebar="pill"] .nav-item.active .nav-icon { opacity: 1; }
[data-sidebar="pill"] .sidebar-footer { border-top: 1px solid rgba(255,255,255,.06); }
[data-sidebar="pill"] .sidebar-user-name { color: #e2e8f0; }
[data-sidebar="pill"] .sidebar-user-email { color: #64748b; }
[data-sidebar="pill"] .sidebar-logout { color: #475569; }

/* ─── 4. GRADIENT ─── Deep gradient from indigo to purple */
[data-sidebar="gradient"] .sidebar {
  background: linear-gradient(180deg, #312e81 0%, #4c1d95 50%, #581c87 100%);
}
[data-sidebar="gradient"] .sidebar-logo { border-bottom: 1px solid rgba(255,255,255,.1); }
[data-sidebar="gradient"] .sidebar-logo-icon { background: rgba(255,255,255,.15); }
[data-sidebar="gradient"] .sidebar-logo-name { color: #fff; }
[data-sidebar="gradient"] .sidebar-logo-sub { color: rgba(255,255,255,.5); }
[data-sidebar="gradient"] .nav-section-label { color: rgba(255,255,255,.4); }
[data-sidebar="gradient"] .nav-item { color: rgba(255,255,255,.7); }
[data-sidebar="gradient"] .nav-item:hover { background: rgba(255,255,255,.08); color: #fff; }
[data-sidebar="gradient"] .nav-item.active {
  background: rgba(255,255,255,.15); color: #fff; font-weight: 600;
  border-radius: 8px; margin: 2px .5rem; padding: .55rem 1rem;
}
[data-sidebar="gradient"] .nav-item.active::before { background: #a78bfa; }
[data-sidebar="gradient"] .sidebar-footer { border-top: 1px solid rgba(255,255,255,.1); }
[data-sidebar="gradient"] .sidebar-user-name { color: #fff; }
[data-sidebar="gradient"] .sidebar-user-email { color: rgba(255,255,255,.5); }
[data-sidebar="gradient"] .sidebar-user-avatar { background: rgba(255,255,255,.15); }
[data-sidebar="gradient"] .sidebar-logout { color: rgba(255,255,255,.4); }
[data-sidebar="gradient"] .sidebar-logout:hover { color: #fff; background: rgba(255,255,255,.08); }

/* ─── 5. MINIMAL ─── Ultra-clean, text-only, no icons emphasis */
[data-sidebar="minimal"] .sidebar {
  background: #fafafa; border-right: 1px solid #f0f0f0;
}
[data-sidebar="minimal"] .sidebar-logo { border-bottom: none; padding-bottom: .75rem; }
[data-sidebar="minimal"] .sidebar-logo-icon { background: #111; border-radius: 50%; }
[data-sidebar="minimal"] .sidebar-logo-name { color: #111; font-weight: 700; }
[data-sidebar="minimal"] .sidebar-logo-sub { color: #aaa; }
[data-sidebar="minimal"] .nav-section-label { color: #bbb; font-size: .6rem; letter-spacing: .15em; }
[data-sidebar="minimal"] .nav-item {
  color: #888; font-size: .82rem; padding: .5rem 1.25rem;
}
[data-sidebar="minimal"] .nav-item .nav-icon { opacity: .3; width: 16px; height: 16px; }
[data-sidebar="minimal"] .nav-item:hover { background: transparent; color: #111; }
[data-sidebar="minimal"] .nav-item:hover .nav-icon { opacity: .6; }
[data-sidebar="minimal"] .nav-item.active {
  background: transparent; color: #111; font-weight: 700;
}
[data-sidebar="minimal"] .nav-item.active .nav-icon { opacity: 1; }
[data-sidebar="minimal"] .nav-item.active::before {
  width: 2px; background: #111; border-radius: 0;
}
[data-sidebar="minimal"] .sidebar-footer { border-top: 1px solid #f0f0f0; }
[data-sidebar="minimal"] .sidebar-user-name { color: #111; }
[data-sidebar="minimal"] .sidebar-user-email { color: #aaa; }
[data-sidebar="minimal"] .sidebar-logout { color: #ccc; }

/* ─── 6. FLOATING ─── Detached sidebar with rounded corners + shadow */
[data-sidebar="floating"] .sidebar {
  background: #0f172a;
  top: 12px; left: 12px; bottom: 12px;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,.2);
  width: calc(var(--sidebar-width) - 12px);
}
[data-sidebar="floating"] .sidebar-logo { border-bottom: 1px solid rgba(255,255,255,.08); }
[data-sidebar="floating"] .sidebar-logo-name { color: #fff; }
[data-sidebar="floating"] .sidebar-logo-sub { color: #64748b; }
[data-sidebar="floating"] .nav-section-label { color: #475569; }
[data-sidebar="floating"] .nav-item {
  color: #94a3b8; margin: 1px .65rem; border-radius: 10px; padding: .55rem .85rem;
}
[data-sidebar="floating"] .nav-item:hover { background: rgba(255,255,255,.06); color: #e2e8f0; }
[data-sidebar="floating"] .nav-item.active {
  background: rgba(59,130,246,.15); color: #fff; font-weight: 600;
}
[data-sidebar="floating"] .nav-item.active::before { display: none; }
[data-sidebar="floating"] .sidebar-footer { border-top: 1px solid rgba(255,255,255,.08); }
[data-sidebar="floating"] .sidebar-user-name { color: #e2e8f0; }
[data-sidebar="floating"] .sidebar-user-email { color: #64748b; }
[data-sidebar="floating"] .sidebar-logout { color: #475569; }
[data-sidebar="floating"] .main-wrapper { margin-left: var(--sidebar-width); }
[data-sidebar="floating"] .sidebar::-webkit-scrollbar { width: 0; display: none; }
[data-sidebar="floating"] .sidebar { scrollbar-width: none; }

/* ─── 7. ACCENT ─── Dark with colored left border + glow on active */
[data-sidebar="accent"] .sidebar { background: #111827; }
[data-sidebar="accent"] .sidebar-logo { border-bottom: 1px solid rgba(255,255,255,.06); }
[data-sidebar="accent"] .sidebar-logo-icon { background: linear-gradient(135deg, var(--color-primary), #8b5cf6); }
[data-sidebar="accent"] .sidebar-logo-name { color: #fff; }
[data-sidebar="accent"] .sidebar-logo-sub { color: #6b7280; }
[data-sidebar="accent"] .nav-section-label { color: #4b5563; }
[data-sidebar="accent"] .nav-item { color: #9ca3af; }
[data-sidebar="accent"] .nav-item:hover { background: rgba(255,255,255,.04); color: #e5e7eb; }
[data-sidebar="accent"] .nav-item.active {
  background: rgba(59,130,246,.08); color: #60a5fa;
}
[data-sidebar="accent"] .nav-item.active::before {
  width: 3px; background: linear-gradient(180deg, var(--color-primary), #8b5cf6);
  border-radius: 0 3px 3px 0;
  box-shadow: 0 0 8px rgba(59,130,246,.4), 0 0 20px rgba(59,130,246,.15);
  top: 6px; bottom: 6px;
}
[data-sidebar="accent"] .nav-item.active .nav-icon { opacity: 1; color: #60a5fa; }
[data-sidebar="accent"] .sidebar-footer { border-top: 1px solid rgba(255,255,255,.06); }
[data-sidebar="accent"] .sidebar-user-name { color: #e5e7eb; }
[data-sidebar="accent"] .sidebar-user-email { color: #6b7280; }
[data-sidebar="accent"] .sidebar-user-avatar { background: linear-gradient(135deg, var(--color-primary), #8b5cf6); }
[data-sidebar="accent"] .sidebar-logout { color: #4b5563; }
[data-sidebar="accent"] .sidebar-logout:hover { color: #ef4444; background: rgba(239,68,68,.08); }

/* ─── 8. RUBICK ─── Royal blue + curved tab active (Midone-inspired) */
[data-sidebar="rubick"] .sidebar {
  background: #1e40af; border-right: none; box-shadow: none;
  padding: 1.5rem 0; overflow-x: hidden;
}
[data-sidebar="rubick"] .sidebar-logo {
  padding: 0 1.5rem 2rem; display: flex; align-items: center; gap: .75rem;
  border-bottom: none;
}
[data-sidebar="rubick"] .sidebar-logo-icon {
  background: rgba(255,255,255,.15); color: #fff; border-radius: .5rem;
  font-weight: 500; width: 36px; height: 36px;
}
[data-sidebar="rubick"] .sidebar-logo-name { color: #fff; font-weight: 500; font-size: 1rem; }
[data-sidebar="rubick"] .sidebar-logo-sub  { color: rgba(255,255,255,.55); font-weight: 300; font-size: .72rem; }
[data-sidebar="rubick"] .nav-section-label {
  color: rgba(255,255,255,.5); font-size: .7rem; font-weight: 500;
  letter-spacing: .04em; text-transform: uppercase; padding: 1.25rem 1.5rem .5rem;
}
[data-sidebar="rubick"] .nav-group { padding: .25rem 0; }
[data-sidebar="rubick"] .nav-item {
  position: relative; color: rgba(255,255,255,.8); font-weight: 400;
  font-size: 13px; padding: 0.9rem 1.5rem; margin: .15rem 0;
  border-radius: 0; display: flex; align-items: center; gap: .85rem;
}
[data-sidebar="rubick"] .nav-item .nav-icon,
[data-sidebar="rubick"] .nav-item svg {
  width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.8; opacity: .9;
}
[data-sidebar="rubick"] .nav-item:hover { background: rgba(255,255,255,.08); color: #fff; }
[data-sidebar="rubick"] .nav-item.active {
  background: var(--color-bg, #f1f5f8); color: #000; font-weight: 600;
  border-radius: 9999px 0 0 9999px; margin-left: .75rem; margin-right: -1px;
  padding-right: 1.5rem; z-index: 1;
}
[data-sidebar="rubick"] .nav-item.active .nav-icon,
[data-sidebar="rubick"] .nav-item.active svg { stroke: #1e3a8a; opacity: 1; }
[data-sidebar="rubick"] .nav-item.active::before {
  content: ""; position: absolute; width: 30px; height: 30px;
  margin-top: -31px; transform: rotate(90deg); background-size: 100%;
  background-image: url(data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='259.51' height='259.52' viewBox='0 0 259.51 259.52'%3E%3Cpath id='Path_143' data-name='Path 143' d='M8659.507,423.965c-.167-2.608.05-5.319-.19-8.211-.084-1.012-.031-2.15-.118-3.12-.113-1.25-.1-2.682-.236-4.061-.172-1.722-.179-3.757-.365-5.394-.328-2.889-.478-5.857-.854-8.61-.509-3.714-.825-7.252-1.38-10.543-.934-5.535-2.009-11.312-3.189-16.692-.855-3.9-1.772-7.416-2.752-11.2-1.1-4.256-2.394-8.149-3.687-12.381-1.1-3.615-2.366-6.893-3.623-10.493-1.3-3.739-2.917-7.26-4.284-10.7-1.708-4.295-3.674-8.078-5.485-12.023-1.145-2.493-2.5-4.932-3.727-7.387-1.318-2.646-2.9-5.214-4.152-7.518-1.716-3.16-3.517-5.946-5.274-8.873-1.692-2.818-3.589-5.645-5.355-8.334-2.326-3.542-4.637-6.581-7.039-9.848-2.064-2.809-4.017-5.255-6.088-7.828-2.394-2.974-4.937-5.936-7.292-8.589-3.027-3.411-6.049-6.744-9.055-9.763-2.4-2.412-4.776-4.822-7.108-6.975-3-2.767-5.836-5.471-8.692-7.854-3.332-2.779-6.657-5.663-9.815-8.028-2.958-2.216-5.784-4.613-8.7-6.6-3.161-2.159-6.251-4.414-9.219-6.254-3.814-2.365-7.533-4.882-11.168-6.89-4.213-2.327-8.513-4.909-12.478-6.834-4.61-2.239-9.234-4.619-13.51-6.416-4.1-1.725-8.11-3.505-11.874-4.888-4.5-1.652-8.506-3.191-12.584-4.47-6.045-1.9-12.071-3.678-17.431-5-9.228-2.284-17.608-3.757-24.951-4.9-7.123-1.112-13.437-1.64-18.271-2.035l-2.405-.2c-1.638-.136-3.508-.237-4.633-.3a115.051,115.051,0,0,0-12.526-.227h259.51Z' transform='translate(-8399.997 -164.445)' fill='%23f1f5f8'/%3E%3C/svg%3E);
  top: 0; right: 0; margin-right: 0; pointer-events: none; left: inherit;
}
[data-sidebar="rubick"] .nav-item.active::after {
  content: ""; position: absolute; width: 30px; height: 30px;
  margin-top: 48px; transform: scale(1.04); background-size: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='259.51' height='259.52' viewBox='0 0 259.51 259.52'%3E%3Cpath id='Path_143' data-name='Path 143' d='M8659.507,423.965c-.167-2.608.05-5.319-.19-8.211-.084-1.012-.031-2.15-.118-3.12-.113-1.25-.1-2.682-.236-4.061-.172-1.722-.179-3.757-.365-5.394-.328-2.889-.478-5.857-.854-8.61-.509-3.714-.825-7.252-1.38-10.543-.934-5.535-2.009-11.312-3.189-16.692-.855-3.9-1.772-7.416-2.752-11.2-1.1-4.256-2.394-8.149-3.687-12.381-1.1-3.615-2.366-6.893-3.623-10.493-1.3-3.739-2.917-7.26-4.284-10.7-1.708-4.295-3.674-8.078-5.485-12.023-1.145-2.493-2.5-4.932-3.727-7.387-1.318-2.646-2.9-5.214-4.152-7.518-1.716-3.16-3.517-5.946-5.274-8.873-1.692-2.818-3.589-5.645-5.355-8.334-2.326-3.542-4.637-6.581-7.039-9.848-2.064-2.809-4.017-5.255-6.088-7.828-2.394-2.974-4.937-5.936-7.292-8.589-3.027-3.411-6.049-6.744-9.055-9.763-2.4-2.412-4.776-4.822-7.108-6.975-3-2.767-5.836-5.471-8.692-7.854-3.332-2.779-6.657-5.663-9.815-8.028-2.958-2.216-5.784-4.613-8.7-6.6-3.161-2.159-6.251-4.414-9.219-6.254-3.814-2.365-7.533-4.882-11.168-6.89-4.213-2.327-8.513-4.909-12.478-6.834-4.61-2.239-9.234-4.619-13.51-6.416-4.1-1.725-8.11-3.505-11.874-4.888-4.5-1.652-8.506-3.191-12.584-4.47-6.045-1.9-12.071-3.678-17.431-5-9.228-2.284-17.608-3.757-24.951-4.9-7.123-1.112-13.437-1.64-18.271-2.035l-2.405-.2c-1.638-.136-3.508-.237-4.633-.3a115.051,115.051,0,0,0-12.526-.227h259.51Z' transform='translate(-8399.997 -164.445)' fill='%23f1f5f8'/%3E%3C/svg%3E");
  top: 0; right: 0; pointer-events: none;
}
[data-sidebar="rubick"] .sidebar-footer {
  border-top: 1px solid rgba(255,255,255,.08); padding: 1rem 1.5rem;
}
[data-sidebar="rubick"] .sidebar-user-avatar { background: rgba(255,255,255,.15); color: #fff; }
[data-sidebar="rubick"] .sidebar-user-name  { color: #fff; font-weight: 500; }
[data-sidebar="rubick"] .sidebar-user-email { color: rgba(255,255,255,.55); }
[data-sidebar="rubick"] .sidebar-logout     { color: rgba(255,255,255,.55); }
[data-sidebar="rubick"] .sidebar-logout:hover { color: #fff; background: rgba(255,255,255,.08); }
[data-sidebar="rubick"] .sidebar::-webkit-scrollbar { width: 0; display: none; }
[data-sidebar="rubick"] .sidebar { scrollbar-width: none; }

.reg-showcase-bg {
    position: absolute;
    inset: 0;
    background: url(https://cdn.pixabay.com/photo/2026/04/20/14/39/14-39-57-2_1280.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}
