/* ============================================================
   Smart Trip Planner - Core Styles (Black + Gold Premium Theme)
   ============================================================ */

* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--stp-nav-h) + 16px);
  overflow-x: hidden;
  background: var(--color-bg);
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  overflow-x: hidden;
  min-width: 0;
  line-height: 1.55;
  background-image:
    radial-gradient(1100px 700px at 80% -10%, rgba(245,197,24,0.06), transparent 60%),
    radial-gradient(800px 500px at -10% 110%, rgba(212,160,23,0.05), transparent 60%);
  background-attachment: fixed;
}

::selection { background: var(--color-gold); color: #000; }

/* Typography */
h1, .h1, h2, .h2, h3, .h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.018em;
  color: var(--color-text-strong);
}
h4, .h4, h5, .h5, h6, .h6 { font-weight: 700; color: var(--color-text-strong); }
.lead { color: var(--color-muted); }
.text-muted { color: var(--color-muted) !important; }

a { color: var(--color-gold); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--color-gold-200); }

/* Section spacing */
.section-space { padding: 6rem 0; position: relative; }
.section-space-sm { padding: 4rem 0; }
.nav-spacer { height: var(--stp-nav-h); }

/* Landing section photo backdrops */
.landing-photo-bg {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.landing-photo-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: saturate(95%) brightness(0.6);
  transform: scale(1.02);
}
.landing-photo-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(8, 8, 10, 0.78) 0%, rgba(8, 8, 10, 0.85) 48%, rgba(8, 8, 10, 0.9) 100%),
    radial-gradient(900px 460px at 75% 10%, rgba(245, 197, 24, 0.12), transparent 62%);
}
.landing-photo-bg > .container {
  position: relative;
  z-index: 1;
}
.landing-photo-bg-how::before {
  background-image: url("../images/sections/how-it-works.jpg");
}
.landing-photo-bg-why::before {
  background-image: url("../images/sections/why-smarttrip.jpg");
}
.landing-photo-bg-cta::before {
  background-image: url("../images/sections/ready-cta.jpg");
}

/* Eyebrow */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--color-gold);
  margin-bottom: 0.85rem;
}
.eyebrow::before {
  content: ""; width: 28px; height: 2px;
  background: linear-gradient(90deg, var(--color-gold), transparent);
  border-radius: 2px;
}

.section-title { font-size: clamp(1.9rem, 3.4vw, 2.9rem); margin-bottom: 0.85rem; line-height: 1.18; }
.section-sub  { color: #c0c3ce; max-width: 40rem; margin-bottom: 0; line-height: 1.68; }
.text-gradient-gold {
  background: var(--grad-gold);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ===========================================================
   NAVBAR
   =========================================================== */
.stp-navbar {
  background: rgba(8, 8, 10, 0.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease, padding .25s ease;
  min-height: var(--stp-nav-h);
  padding: 0.6rem 0;
}
.stp-navbar.scrolled {
  background: rgba(8, 8, 10, 0.92);
  border-bottom-color: var(--color-border);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
}

.stp-navbar .navbar-brand {
  display: inline-flex; align-items: center; gap: 0.65rem;
  color: var(--color-text-strong);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
.stp-navbar .brand-mark {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: var(--grad-gold);
  color: #000;
  box-shadow: 0 6px 20px rgba(245, 197, 24, 0.35);
  transition: transform .25s var(--ease-spring);
}
.stp-navbar .navbar-brand:hover .brand-mark { transform: rotate(-8deg) scale(1.05); }
.stp-navbar .brand-mark svg { width: 22px; height: 22px; }
.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.brand-mark.brand-mark-logo {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}
.stp-navbar .navbar-brand:hover .brand-mark.brand-mark-logo {
  transform: none;
}
.brand-name-accent { color: var(--color-gold); }

.navbar .nav-link {
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 10px;
  min-height: var(--stp-touch-min);
  display: inline-flex; align-items: center;
  position: relative;
  transition: color .2s ease, background .2s ease;
}
.navbar .nav-link::after {
  content: none;
}
.navbar .nav-link:hover { color: var(--color-text); }
.navbar .nav-link:hover::after,
.navbar .nav-link.nav-link-active::after,
.navbar .nav-link[aria-current="page"]::after { transform: none; }
.navbar .nav-link.nav-link-active,
.navbar .nav-link[aria-current="page"] { color: var(--color-text); }

.stp-navbar-toggler {
  border: 1px solid var(--color-border-strong);
  border-radius: 0.7rem;
  padding: 0.5rem 0.62rem;
  background: rgba(245,197,24,0.06);
  color: var(--color-gold);
  box-shadow: none;
}
.stp-navbar-toggler:focus { outline: none; box-shadow: 0 0 0 0.2rem rgba(245,197,24,0.2); }
.stp-navbar-toggler i { font-size: 1.2rem; }

@media (max-width: 991.98px) {
  .stp-navbar-collapse {
    margin-top: 0.5rem;
    padding: 0.85rem;
    border-radius: var(--radius-lg);
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    max-height: calc(100vh - var(--stp-nav-h) - 1.25rem);
    overflow-y: auto;
  }
  #primaryNavLinks .nav-link { padding: 0.7rem 0.85rem; font-size: 1.02rem; width: 100%; }
  #primaryNavLinks .nav-item { width: 100%; }
  .stp-nav-auth .btn { min-height: var(--stp-touch-min); justify-content: center; }
}
.stp-nav-auth.flex-lg-row .btn { white-space: nowrap; }

/* ===========================================================
   BUTTONS
   =========================================================== */
.btn {
  font-weight: 600;
  border-radius: 0.85rem;
  padding: 0.65rem 1.25rem;
  letter-spacing: 0.01em;
  transition: transform .2s var(--ease-out), box-shadow .25s ease, background .25s ease, color .2s ease, border-color .25s ease;
}
.btn-lg { padding: 0.9rem 1.65rem; font-size: 1rem; border-radius: 1rem; }
.btn-sm { padding: 0.45rem 0.85rem; font-size: 0.82rem; border-radius: 0.7rem; }

.btn-brand {
  background: var(--grad-gold);
  color: #15110a;
  border: 1px solid transparent;
  box-shadow: 0 8px 24px rgba(245, 197, 24, 0.25);
  position: relative;
  overflow: hidden;
}
.btn-brand::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%);
  transform: translateX(-110%);
  transition: transform .65s var(--ease-out);
}
.btn-brand:hover { color: #15110a; transform: translateY(-2px); box-shadow: 0 14px 34px rgba(245,197,24,0.4); }
.btn-brand:hover::before { transform: translateX(110%); }
.btn-brand:focus { box-shadow: 0 0 0 0.25rem rgba(245,197,24,0.25); color: #15110a; }

.btn-outline-brand {
  background: transparent;
  border: 1px solid var(--color-border-strong);
  color: var(--color-gold);
}
.btn-outline-brand:hover {
  background: rgba(245,197,24,0.1);
  border-color: var(--color-gold);
  color: var(--color-gold-200);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--color-border-soft);
  color: var(--color-text);
}
.btn-ghost:hover { background: rgba(245,197,24,0.08); border-color: var(--color-border); color: var(--color-gold); }

.btn-danger {
  background: rgba(255, 93, 82, 0.95);
  border-color: rgba(255, 93, 82, 0.95);
  color: #fff;
}
.btn-danger:hover { background: #e64236; border-color: #e64236; }
.btn-outline-danger {
  background: transparent; border: 1px solid rgba(255,93,82,0.5); color: #ff7a72;
}
.btn-outline-danger:hover { background: rgba(255,93,82,0.12); color: #ff5d52; }

.btn-link { color: var(--color-gold); }

/* ===========================================================
   HERO (Home)
   =========================================================== */
.hero {
  position: relative;
  min-height: 90vh;
  padding: 8rem 0 5.5rem;
  background:
    radial-gradient(1000px 560px at 85% 8%, rgba(154, 112, 36, 0.2), transparent 64%),
    radial-gradient(760px 520px at 15% 100%, rgba(96, 82, 42, 0.16), transparent 65%),
    linear-gradient(135deg, #0e0f12 0%, #15161c 55%, #111217 100%);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(transparent 94%, rgba(201, 163, 92, 0.08) 95%),
    linear-gradient(90deg, transparent 94%, rgba(201, 163, 92, 0.08) 95%);
  background-size: 34px 34px;
  opacity: 0.2;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px 0;
  height: 140px;
  background: linear-gradient(180deg, transparent, rgba(6, 7, 9, 0.82));
  pointer-events: none;
}
.hero-grid { position: relative; z-index: 2; }
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(163, 127, 63, 0.15);
  border: 1px solid rgba(204, 173, 111, 0.35);
  color: #d9bf89;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero-tag .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cda760;
  box-shadow: 0 0 0 0 rgba(205, 167, 96, 0.45);
  animation: pulse-ring 2.4s infinite;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 4.2vw, 3.65rem);
  line-height: 1.11;
  letter-spacing: -0.01em;
  margin-bottom: 1.2rem;
  color: var(--color-text-strong);
}
.hero-sub {
  color: #c8cbd6;
  font-size: clamp(1.01rem, 1.15vw, 1.13rem);
  max-width: 36rem;
  margin-bottom: 1.8rem;
  line-height: 1.74;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-bottom: 1.5rem; }
.hero-cta .btn-brand { box-shadow: 0 10px 26px rgba(245, 197, 24, 0.24); }
.hero-cta .btn-outline-brand {
  border-color: rgba(245, 197, 24, 0.38);
  color: #f5e6bd;
}
.hero-cta .btn-outline-brand:hover {
  border-color: rgba(245, 197, 24, 0.65);
  background: rgba(245, 197, 24, 0.09);
}

.hero-benefits {
  display: grid;
  gap: 0.7rem;
  max-width: 32rem;
}
.hero-benefits li {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #e2e4eb;
  font-size: 0.94rem;
  padding: 0.52rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.72rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
}
.hero-benefits li i {
  color: #d2ab5f;
  font-size: 0.96rem;
}
/* ===========================================================
   HERO ORBIT SCENE
   =========================================================== */
.hero-orbit-scene {
  position: relative;
  width: 100%;
  min-height: 620px;
  border-radius: 1.75rem;
  border: 1px solid rgba(200, 168, 82, 0.14);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(500px 390px at 62% 32%, rgba(165, 126, 52, 0.26), transparent 70%),
    radial-gradient(340px 280px at 25% 80%, rgba(95, 74, 28, 0.18), transparent 70%),
    linear-gradient(148deg, #17191f 0%, #0d0e13 60%, #131418 100%);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Subtle map-grid texture */
.hero-map-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(200, 168, 82, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 168, 82, 0.055) 1px, transparent 1px);
  background-size: 38px 38px;
}
.hero-map-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 65% 65% at 50% 50%, transparent 30%, rgba(13, 14, 19, 0.78) 100%);
}

/* Warm spotlight behind traveler */
.hero-bg-glow {
  position: absolute;
  left: 50%;
  bottom: -10%;
  transform: translateX(-50%);
  width: 65%;
  height: 72%;
  border-radius: 50% 50% 0 0;
  background: radial-gradient(ellipse 100% 100% at 50% 100%, rgba(168, 130, 52, 0.28), transparent 72%);
  z-index: 1;
  pointer-events: none;
  animation: softPulse 6s ease-in-out infinite;
}

/* Route SVG layer */
.hero-route-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  overflow: visible;
}
.hero-route-path-bg {
  fill: none;
  stroke: rgba(195, 158, 75, 0.18);
  stroke-width: 5;
  stroke-linecap: round;
}
.hero-route-path {
  fill: none;
  stroke: rgba(208, 170, 90, 0.8);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 8 12;
  animation: routeDashMove 18s linear infinite;
}
.hero-route-dot {
  fill: #d4ad66;
  filter: drop-shadow(0 0 5px rgba(210, 173, 100, 0.55));
  animation: routeDotPulse 3.8s ease-in-out infinite;
}
.hero-route-dot-mid { animation-delay: -1.8s; }
.hero-plane-svg { filter: drop-shadow(0 2px 8px rgba(210, 173, 90, 0.5)); }

/* Individual floating travel objects */
.hero-object {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(32, 34, 44, 0.92), rgba(20, 21, 29, 0.88));
  border: 1px solid rgba(205, 170, 82, 0.28);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #d0a95e;
  font-size: 1.15rem;
}
.hero-passport-obj { top:  7%; left:  6%; animation: heroFloat 6.5s ease-in-out infinite; }
.hero-ticket-obj   { top:  7%; right: 7%; animation: heroFloat 8.2s ease-in-out infinite -1.4s; }
.hero-suitcase-obj { bottom: 20%; left: 4%; animation: heroFloat 7.8s ease-in-out infinite -3.0s; }
.hero-pin-obj      { top: 30%; right: 5%; width: 40px; height: 40px; animation: heroFloat 5.6s ease-in-out infinite -0.7s; }

/* Planning mini-cards */
.hero-mini-card {
  position: absolute;
  z-index: 4;
  padding: 0.6rem 0.76rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(145deg, rgba(28, 30, 40, 0.92), rgba(17, 18, 25, 0.86));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  min-width: 150px;
  max-width: 196px;
  transition: transform .28s ease, border-color .22s ease, box-shadow .28s ease;
}
.hero-mini-card:hover {
  transform: translateY(-5px);
  border-color: rgba(208, 170, 82, 0.42);
  box-shadow: 0 20px 36px rgba(0, 0, 0, 0.48);
}
.mc-label {
  display: block;
  color: #bbbfd0;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 0.22rem;
}
.mc-value {
  display: block;
  color: #f4f3f8;
  font-size: 0.81rem;
  font-weight: 700;
  line-height: 1.3;
}
.route-card     { top:  5%; right:  2%; animation: heroFloat  7.0s ease-in-out infinite; }
.hotel-card     { top: 36%; left:   1%; animation: heroFloat  8.5s ease-in-out infinite -3.5s; }
.food-card      { top: 28%; right:  1%; animation: heroFloat  9.0s ease-in-out infinite -1.8s; }
.itinerary-card { bottom: 14%; left: 5%; max-width: 186px; animation: heroFloat  6.5s ease-in-out infinite -2.2s; }
.weather-card   { bottom:  9%; right: 6%; min-width: 126px; display: flex; align-items: center; gap: 0.44rem; animation: heroFloat 7.5s ease-in-out infinite -0.6s; }
.weather-card i { color: #d0ab5e; font-size: 1rem; }

/* Traveler cutout - CSS mask removes rectangular appearance */
.hero-traveler-wrap {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(372px, 58%);
  height: 92%;
  z-index: 5;
  text-align: center;
  animation: travelerFloat 9s ease-in-out infinite;
}
.hero-traveler-cutout {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
  /* Fade left + right edges and fade bottom: removes rectangular card look */
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, black 16%, black 84%, transparent 100%),
    linear-gradient(to bottom, black 0%, black 88%, transparent 100%);
  mask-image:
    linear-gradient(to right, transparent 0%, black 16%, black 84%, transparent 100%),
    linear-gradient(to bottom, black 0%, black 88%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
  filter: contrast(1.08) saturate(1.08) drop-shadow(0 28px 44px rgba(0, 0, 0, 0.62));
}
.hero-traveler-fallback {
  display: none;
  width: 100%;
  height: 100%;
  align-items: flex-end;
  justify-content: center;
}
.hero-traveler-fallback svg {
  height: 88%;
  width: auto;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.5));
}
.hero-traveler-wrap.is-fallback .hero-traveler-fallback { display: flex; }
.hero-traveler-shadow {
  position: absolute;
  inset: auto 6% -14px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.62);
  filter: blur(14px);
  z-index: -1;
}

/* ===========================================================
   TRUST STRIP
   =========================================================== */
.trust-strip {
  background: linear-gradient(135deg, rgba(20, 21, 28, 0.64), rgba(10, 11, 16, 0.5));
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px) saturate(125%);
  -webkit-backdrop-filter: blur(10px) saturate(125%);
}
.trust-strip-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  padding: 1.25rem 0;
}
.trust-item {
  display: flex; align-items: center; justify-content: center; gap: 0.65rem;
  color: var(--color-muted);
  font-weight: 600;
  font-size: 0.92rem;
  text-align: center;
}
.trust-item i { color: var(--color-gold); font-size: 1.1rem; }
.trust-item + .trust-item { border-left: 1px solid var(--color-border-soft); }

/* ===========================================================
   SURFACES & PANELS
   =========================================================== */
.surface-panel,
.planner-surface,
.sticky-summary,
.side-card {
  background: linear-gradient(145deg, rgba(17, 18, 25, 0.72), rgba(10, 11, 17, 0.58));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(14px) saturate(125%);
  -webkit-backdrop-filter: blur(14px) saturate(125%);
  padding: 1.5rem;
  position: relative;
}
.surface-panel::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: var(--grad-card); pointer-events: none;
  opacity: 0.6;
}
.surface-panel > * { position: relative; z-index: 1; }

.sticky-summary { position: sticky; top: calc(var(--stp-nav-h) + 16px); }

/* Glass card variant */
.glass-card {
  background: var(--color-surface-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
}

/* ===========================================================
   FEATURES GRID
   =========================================================== */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.feature-card {
  background: linear-gradient(145deg, rgba(20, 21, 29, 0.65), rgba(12, 13, 20, 0.56));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px) saturate(122%);
  -webkit-backdrop-filter: blur(12px) saturate(122%);
  transition: transform .35s var(--ease-out), border-color .25s ease, box-shadow .35s ease;
}
.feature-card::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(400px 200px at 100% -20%, rgba(245,197,24,0.18), transparent 60%);
  opacity: 0; transition: opacity .35s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-border);
  box-shadow: var(--shadow-card);
}
.feature-card:hover::after { opacity: 1; }
.feature-card .feature-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: rgba(245,197,24,0.1);
  border: 1px solid var(--color-border);
  color: var(--color-gold);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.55rem;
  margin-bottom: 1.2rem;
  transition: transform .3s var(--ease-spring);
}
.feature-card:hover .feature-icon { transform: rotate(-6deg) scale(1.05); }
.feature-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.feature-card p { color: #c2c5cf; margin: 0; font-size: 0.92rem; line-height: 1.58; }

/* ===========================================================
   HOW IT WORKS
   =========================================================== */
.steps-rail { position: relative; padding-left: 0; }
.step-row {
  position: relative;
  padding: 1.5rem 1.5rem 1.5rem 5rem;
  background: linear-gradient(145deg, rgba(17, 18, 24, 0.65), rgba(10, 11, 16, 0.5));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
  backdrop-filter: blur(11px) saturate(120%);
  -webkit-backdrop-filter: blur(11px) saturate(120%);
  transition: transform .35s var(--ease-out), border-color .25s ease;
}
.step-row:hover { border-color: var(--color-border); transform: translateX(4px); }
.step-row .step-num {
  position: absolute; left: 1.25rem; top: 1.25rem;
  width: 3rem; height: 3rem; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--grad-gold);
  color: #000;
  font-family: var(--font-display);
  font-weight: 800; font-size: 1.15rem;
  box-shadow: 0 8px 22px rgba(245,197,24,0.3);
}
.step-row h4 { margin-bottom: 0.35rem; font-size: 1.1rem; }
.step-row p { color: var(--color-muted); margin: 0; font-size: 0.93rem; }

/* ===========================================================
   FORM CONTROLS
   =========================================================== */
.form-control, .form-select {
  background-color: var(--color-surface-2);
  border: 1px solid var(--color-border-soft);
  color: var(--color-text);
  border-radius: 0.75rem;
  padding: 0.7rem 0.95rem;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.form-control::placeholder { color: var(--color-muted-2); }
.form-control:focus, .form-select:focus {
  background-color: var(--color-surface-2);
  border-color: var(--color-gold);
  color: var(--color-text);
  box-shadow: 0 0 0 0.2rem rgba(245,197,24,0.18);
  outline: 0;
}
.form-control[type="date"], input[type="date"].form-control { color-scheme: dark; }
.form-control[disabled], .form-select[disabled] { opacity: 0.6; }
.form-label { font-weight: 600; color: var(--color-text); margin-bottom: 0.4rem; font-size: 0.92rem; }
.form-control-lg { padding: 0.85rem 1.05rem; border-radius: 0.85rem; font-size: 1rem; }
.input-group-text {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border-soft);
  color: #f5d77a;
  border-radius: 0.75rem 0 0 0.75rem;
  font-weight: 700;
}
.input-group > .form-control {
  border-left: 0;
  border-radius: 0 0.75rem 0.75rem 0;
}

.form-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23f5c518' d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506.001z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 0.72rem auto;
}
.form-select::-ms-expand { display: none; }
.form-select:focus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23f5c518' d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506.001z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 0.72rem auto;
}

/* Input group */
.input-group .btn { z-index: 4; }
.input-group .form-control { background-color: var(--color-surface-2); }

/* ===========================================================
   PLANNER (Trip Builder)
   =========================================================== */
.trip-builder-section {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}
.trip-builder-section .builder-bg-shape {
  position: absolute; border-radius: 50%; pointer-events: none;
  filter: blur(60px); opacity: 0.55;
}
.trip-builder-section .builder-bg-1 {
  width: 540px; height: 540px; top: -200px; right: -160px;
  background: radial-gradient(circle, rgba(245,197,24,0.18), transparent 65%);
}
.trip-builder-section .builder-bg-2 {
  width: 420px; height: 420px; bottom: -100px; left: -120px;
  background: radial-gradient(circle, rgba(212,160,23,0.14), transparent 65%);
}

.builder-stepper {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.5rem;
  padding: 1.05rem 1.25rem;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
}
.stepper-node {
  display: flex; flex-direction: column; align-items: center; gap: 0.3rem;
  flex: 0 0 auto;
  color: #b8bcc9;
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.stepper-node span {
  width: 2.4rem; height: 2.4rem;
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--color-bg-soft);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--color-text);
  font-weight: 700;
  font-family: var(--font-display);
}
.stepper-node.is-done span,
.stepper-node.active span,
.stepper-node:hover span {
  background: var(--grad-gold); color: #000;
  border-color: transparent;
  box-shadow: 0 9px 22px rgba(245,197,24,0.38);
}
.stepper-node.is-done,
.stepper-node.active { color: var(--color-gold); }
.stepper-node.is-current:not(.is-done) span {
  border-color: rgba(245,197,24,0.55);
  box-shadow: 0 0 0 2px rgba(245,197,24,0.12);
}
.stepper-node.is-current:not(.is-done) { color: rgba(245,197,24,0.75); }
.stepper-line {
  display: none;
}
.stepper-line.is-done {
  display: none;
}

.stepper-node.is-completed span::after {
  content: none;
}

.wizard-panels {
  position: relative;
  min-height: 360px;
}
.wizard-step {
  display: none;
  opacity: 0;
  transform: translateX(16px);
  padding: 1.35rem 0.15rem;
  border-top: 1px dashed var(--color-border-soft);
  pointer-events: none;
}
.wizard-step.is-active {
  display: block;
  opacity: 1;
  transform: none;
  pointer-events: auto;
  animation: wizardEnter .32s cubic-bezier(.22, 1, .36, 1);
}
.wizard-step.is-enter-backward { animation-name: wizardEnterBack; }
.wizard-step.is-exit-forward,
.wizard-step.is-exit-backward {
  display: block;
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}
.wizard-step.is-exit-forward { animation: wizardExit .2s ease both; }
.wizard-step.is-exit-backward { animation: wizardExitBack .2s ease both; }

.wizard-meta {
  padding-top: 1rem;
  border-top: 1px dashed var(--color-border-soft);
}
.wizard-step-message {
  color: #d0d3dd !important;
}
.wizard-step-message.is-error {
  color: var(--color-danger) !important;
}

.wizard-actions {
  justify-content: space-between;
}
.wizard-actions .btn {
  min-width: 150px;
}

.trip-builder-form .form-control.is-invalid-soft,
.trip-builder-form .form-select.is-invalid-soft {
  border-color: rgba(255, 107, 129, 0.72);
  box-shadow: 0 0 0 2px rgba(255, 107, 129, 0.12);
}
.trip-builder-form .form-control:focus,
.trip-builder-form .form-select:focus {
  border-color: rgba(245, 197, 24, 0.54);
  box-shadow: 0 0 0 0.2rem rgba(245, 197, 24, 0.15);
}

.autocomplete-wrap {
  position: relative;
  z-index: 30;
}

.help-checklist li {
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.help-checklist li.is-focus {
  border-color: rgba(245, 197, 24, 0.62);
  background: linear-gradient(135deg, rgba(245, 197, 24, 0.2), rgba(245, 197, 24, 0.08));
  border-radius: 0.7rem;
  padding-inline: 0.78rem;
  transform: translateX(2px);
  box-shadow: inset 0 0 0 1px rgba(245, 197, 24, 0.24), 0 10px 18px rgba(0, 0, 0, 0.2);
}
.help-checklist li.is-focus strong {
  color: #f5d77a;
}
.help-checklist li.is-focus span {
  color: #ece6c8;
}

.builder-step-block {
  padding: 1.4rem 0;
  border-bottom: 1px dashed var(--color-border-soft);
}
.builder-step-block:last-of-type { border-bottom: 0; }
.builder-step-head {
  display: flex; gap: 0.85rem; align-items: flex-start;
  margin-bottom: 1rem;
}
.builder-step-num {
  flex: 0 0 2.35rem; height: 2.35rem;
  border-radius: 0.85rem;
  background: rgba(245,197,24,0.12);
  border: 1px solid var(--color-border);
  color: var(--color-gold);
  font-weight: 800; font-size: 0.95rem;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
}
.builder-step-title { font-size: 1.05rem; font-weight: 700; margin: 0; color: var(--color-text-strong); }
.builder-step-hint { color: var(--color-muted); font-size: 0.85rem; margin: 0; }

.interest-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.activity-chip, .interest-pill {
  border: 1px solid var(--color-border-soft);
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  display: inline-flex; align-items: center; gap: 0.45rem;
  cursor: pointer;
  background: var(--color-surface-2);
  color: var(--color-text);
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
  font-weight: 600;
  font-size: 0.88rem;
}
.activity-chip input { display: none; }
.activity-chip:hover { border-color: var(--color-border); transform: translateY(-1px); }
.activity-chip:has(input:checked) {
  background: rgba(245,197,24,0.14);
  border-color: var(--color-gold);
  color: var(--color-gold-200);
}

.builder-cta { gap: 1rem; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--color-border-soft); }
.badge-soft {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(245,197,24,0.08);
  color: var(--color-gold-200);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.78rem; font-weight: 600;
}

.helper-text { color: var(--color-muted); font-size: 0.85rem; }
.inline-error { color: var(--color-danger); font-size: 0.85rem; margin-top: 0.3rem; }
.btn-loading { opacity: 0.85; pointer-events: none; }
.btn-fluid-sm { width: auto; max-width: 100%; }
@media (max-width: 575.98px) { .btn-fluid-sm { width: 100%; } }

@keyframes wizardEnter {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes wizardEnterBack {
  from { opacity: 0; transform: translateX(-16px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes wizardExit {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(-10px); }
}
@keyframes wizardExitBack {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(10px); }
}

.help-checklist li {
  padding: 0.85rem 0;
  border-bottom: 1px dashed var(--color-border-soft);
}
.help-checklist li:last-child { border-bottom: 0; }
.help-checklist strong {
  display: block; font-size: 0.95rem; color: var(--color-text-strong);
  margin-bottom: 0.25rem;
}
.help-checklist span { display: block; font-size: 0.9rem; color: #c0c3cd; line-height: 1.55; }

.help-visual {
  border: 1px solid var(--color-border-soft) !important;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 1rem;
}
.help-visual img { display: block; }
.help-visual .help-visual-cap {
  padding: 0.85rem 1rem;
  background: var(--color-surface-2);
  font-size: 0.89rem; color: #c4c8d3;
}

/* ===========================================================
   GALLERY / DESTINATIONS
   =========================================================== */
.dest-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.dest-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  border: 1px solid rgba(255, 255, 255, 0.11);
  transition: transform .42s var(--ease-out), box-shadow .42s var(--ease-out), border-color .3s ease;
}
.dest-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease-out);
  filter: brightness(0.72) saturate(112%);
}
.dest-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(185deg, rgba(6, 6, 10, 0.1) 35%, rgba(0,0,0,0.88) 100%);
}
.dest-card .dest-info {
  position: absolute; left: 1rem; right: 1rem; bottom: 1rem;
  z-index: 2;
}
.dest-card .dest-name { font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; color: #fff; text-shadow: 0 6px 20px rgba(0,0,0,0.5); }
.dest-card .dest-meta { font-size: 0.79rem; color: #ffd979; text-transform: uppercase; letter-spacing: 0.08em; }
.dest-card:hover { transform: translateY(-7px); box-shadow: 0 18px 28px rgba(0,0,0,0.42); border-color: rgba(245,197,24,0.28); }
.dest-card:hover img { transform: scale(1.08); }

/* ===========================================================
   TIMELINE (How it works alt)
   =========================================================== */
.timeline-vertical {
  position: relative;
  padding-left: 1.6rem;
  margin-left: 0.7rem;
  border-left: 2px dashed var(--color-border);
}
.timeline-vertical .step { position: relative; margin-bottom: 1.4rem; }
.timeline-vertical .step::before {
  content: ""; width: 12px; height: 12px; border-radius: 50%;
  background: var(--color-gold);
  box-shadow: 0 0 0 4px rgba(245,197,24,0.18);
  position: absolute; left: -1.95rem; top: 0.35rem;
}
.timeline-vertical .step h6 { color: var(--color-text-strong); margin-bottom: 0.25rem; }
.timeline-vertical .step p { color: var(--color-muted); margin: 0; font-size: 0.92rem; }

/* ===========================================================
   ACCORDION (FAQ)
   =========================================================== */
.accordion-item {
  background: var(--color-surface);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-md) !important;
  margin-bottom: 0.7rem;
  overflow: hidden;
}
.accordion-button {
  background: var(--color-surface);
  color: var(--color-text-strong);
  font-weight: 700;
  font-size: 1rem;
  padding: 1.14rem 1.32rem;
  border-radius: 0 !important;
}
.accordion-button:not(.collapsed) {
  background: linear-gradient(135deg, rgba(245,197,24,0.08), rgba(255,255,255,0.01)), var(--color-surface-2);
  color: var(--color-gold);
  box-shadow: none;
}
.accordion-button:focus { box-shadow: 0 0 0 0.2rem rgba(245,197,24,0.18); }
.accordion-button::after {
  filter: invert(83%) sepia(53%) saturate(2000%) hue-rotate(355deg) brightness(102%) contrast(95%);
}
.accordion-body { color: #c1c5d0; padding: 1rem 1.3rem 1.3rem; background: var(--color-surface); line-height: 1.62; }

/* ===========================================================
   AUTH PAGES
   =========================================================== */
.auth-shell {
  min-height: 100vh;
  padding: calc(var(--stp-nav-h) + 1.5rem) 0 4rem;
  background: var(--grad-hero);
  position: relative;
  overflow: hidden;
}
.auth-shell::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(245,197,24,0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at 50% 30%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 20%, transparent 70%);
  pointer-events: none;
}
.auth-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  padding: 2.25rem;
  position: relative;
}
.auth-side {
  background: linear-gradient(180deg, rgba(245,197,24,0.08), transparent),
              var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  min-height: 100%;
}
.auth-side .auth-side-image {
  display: block; width: 100%; aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  object-fit: cover;
  margin: 1rem 0;
  border: 1px solid var(--color-border-soft);
  filter: saturate(110%) brightness(0.85);
}
.auth-side ul { padding-left: 0; list-style: none; }
.auth-side ul li {
  display: flex; gap: 0.55rem; align-items: flex-start;
  padding: 0.5rem 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}
.auth-side ul li::before {
  content: "\f26b";
  font-family: "bootstrap-icons";
  color: var(--color-gold);
  font-weight: 600; flex-shrink: 0;
}
.auth-divider {
  display: flex; align-items: center; gap: 0.85rem;
  margin: 1.4rem 0;
  font-size: 0.78rem;
  color: var(--color-muted-2);
  text-transform: uppercase; letter-spacing: 0.12em;
}
.auth-divider::before, .auth-divider::after {
  content: ""; flex: 1; height: 1px;
  background: var(--color-border-soft);
}
.alert.alert-warning {
  background: rgba(245,197,24,0.08);
  border: 1px solid var(--color-border);
  color: var(--color-gold-200);
  border-radius: var(--radius-md);
}
.face-login-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}
.face-login-tabs .btn.active {
  background: rgba(245,197,24,0.12);
  border-color: var(--color-gold);
  color: var(--color-gold-200);
}
.face-cam-shell {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(140deg, rgba(17,18,25,0.95), rgba(9,10,14,0.92));
  min-height: 220px;
}
.face-cam-video {
  width: 100%;
  height: clamp(220px, 38vh, 340px);
  object-fit: cover;
  display: block;
  transform: scaleX(-1);
}
.face-status {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border-soft);
  border-radius: 0.7rem;
  padding: 0.7rem 0.85rem;
  color: var(--color-text);
  font-size: 0.9rem;
}
.face-steps {
  margin: 0;
  padding-left: 1.25rem;
}
.face-steps li {
  padding: 0.28rem 0;
  color: var(--color-text);
}
.face-post-register {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.1rem;
  margin-bottom: 1rem;
}
.face-instruction {
  border: 1px solid var(--color-border);
  background: rgba(245,197,24,0.08);
  border-radius: 0.8rem;
  padding: 0.85rem 1rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-gold-200);
}
.face-countdown {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(2.2rem, 8vw, 4rem);
  font-weight: 800;
  color: var(--color-gold);
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.75);
  background: rgba(8, 8, 10, 0.24);
}
.face-step-check {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  color: #7ae7a2;
  font-size: 1.7rem;
  animation: facePulseIn .25s ease;
}
@keyframes facePulseIn {
  from { transform: scale(0.7); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ===========================================================
   PAGE LISTING (My Trips, Saved Plans)
   =========================================================== */
.page-listing { padding-top: calc(var(--stp-nav-h) + 2rem); padding-bottom: 4rem; }

/* Static pages (About, Contact) */
.page-static { padding-top: calc(var(--stp-nav-h) + 2rem); }
.about-list {
  padding-left: 1.15rem;
  margin: 0;
  color: var(--color-muted);
}
.about-list li { margin-bottom: 0.65rem; }
.about-list li strong { color: var(--color-text-strong); }
.contact-card { padding: 1.75rem 1.25rem; }
.contact-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(245,197,24,0.12);
  border: 1px solid var(--color-border);
  color: var(--color-gold);
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

/* Profile */
.page-profile .profile-identity { padding: 1.75rem; }
.profile-avatar-wrap {
  position: relative;
  width: 112px; height: 112px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-surface-2);
  display: flex; align-items: center; justify-content: center;
}
.profile-avatar-img {
  width: 100%; height: 100%; object-fit: cover;
}
.profile-avatar-initial {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--color-gold);
}
.profile-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.1rem;
}
.profile-detail {
  padding: 0.85rem 0;
  border-bottom: 1px dashed var(--color-border-soft);
}
.profile-detail-label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 800;
  color: var(--color-muted-2);
  margin-bottom: 0.35rem;
}
.profile-detail-value {
  display: block;
  font-weight: 600;
  color: var(--color-text-strong);
  font-size: 0.95rem;
  word-break: break-word;
}

.page-header {
  margin-bottom: 2.25rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border-soft);
  display: flex; flex-wrap: wrap; gap: 1.5rem;
  justify-content: space-between; align-items: flex-end;
}
.page-header h1 { margin-bottom: 0.4rem; font-size: clamp(1.8rem, 3vw, 2.4rem); }
.page-header .page-sub { color: var(--color-muted); margin: 0; }

.trip-filters {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  padding: 0.65rem;
  margin-bottom: 1.5rem;
}
.trip-filters .form-control,
.trip-filters .form-select { background-color: var(--color-surface-2); border-color: var(--color-border-soft); }

.trip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.trip-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  transition: transform .35s var(--ease-out), border-color .25s ease, box-shadow .35s ease;
  position: relative;
  overflow: hidden;
}
.trip-card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: var(--grad-gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease-out);
}
.trip-card:hover { transform: translateY(-4px); border-color: var(--color-border); box-shadow: var(--shadow-card); }
.trip-card:hover::before { transform: scaleX(1); }
.trip-card .trip-card-head {
  display: flex; justify-content: space-between; gap: 0.85rem;
  margin-bottom: 0.85rem;
}
.trip-card .trip-card-title { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; margin: 0; color: var(--color-text-strong); }
.trip-card .trip-card-route {
  display: flex; align-items: center; gap: 0.4rem;
  color: var(--color-muted); font-size: 0.85rem; margin-top: 0.25rem;
}
.trip-card .trip-card-route i { color: var(--color-gold); }
.trip-card .trip-card-meta {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0.6rem; padding: 0.85rem 0;
  border-top: 1px dashed var(--color-border-soft);
  border-bottom: 1px dashed var(--color-border-soft);
  margin: 0.85rem 0;
}
.trip-card .meta-cell { display: flex; flex-direction: column; }
.trip-card .meta-label {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--color-muted-2); font-weight: 700;
}
.trip-card .meta-value { font-weight: 700; color: var(--color-text-strong); margin-top: 0.15rem; font-size: 0.95rem; }
.trip-card .trip-card-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.trip-card .trip-card-actions .btn { flex: 1; min-width: 0; }

/* Empty state */
.empty-state { text-align: center; padding: 3.5rem 1.25rem; color: var(--color-muted); }
.empty-state-rich { padding: 3rem 1.5rem; }
.empty-state-rich .empty-icon {
  width: 72px; height: 72px; border-radius: 18px;
  margin: 0 auto 1rem; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(245,197,24,0.1); border: 1px solid var(--color-border);
  color: var(--color-gold); font-size: 1.85rem;
}
.empty-state strong { color: var(--color-text-strong); }

/* State boxes (loading/error) */
.state-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
}
.state-loading .loading-orbit {
  width: 2.85rem; height: 2.85rem; border-radius: 50%;
  border: 3px solid var(--color-border-soft);
  border-top-color: var(--color-gold);
  animation: spin .9s linear infinite;
}
.state-error {
  border-color: rgba(255,93,82,0.32);
  background: rgba(255,93,82,0.08);
  color: #ff9b94;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===========================================================
   GENERATED PLAN DASHBOARD
   =========================================================== */
.page-generated { padding-top: calc(var(--stp-nav-h) + 1.75rem); padding-bottom: 4rem; }

.dashboard-header {
  padding: 1.85rem;
  background: linear-gradient(135deg, rgba(245,197,24,0.06), transparent 60%), var(--color-surface);
  border: 1px solid var(--color-border);
}
.dashboard-header-top {
  display: flex; flex-wrap: wrap; gap: 1.25rem;
  justify-content: space-between; align-items: flex-start;
}
.dashboard-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  font-weight: 700; letter-spacing: -0.02em;
  color: var(--color-text-strong);
}
.route-line {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 1.02rem; color: var(--color-muted); font-weight: 600;
}

.dash-badge {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.4rem 0.85rem; border-radius: 999px;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border-soft);
  color: var(--color-text);
  font-size: 0.8rem; font-weight: 600;
}
.dash-badge-sm { font-size: 0.74rem; padding: 0.22rem 0.6rem; }
.budget-pill {
  display: inline-flex; align-items: center;
  padding: 0.45rem 0.95rem; border-radius: 999px;
  font-size: 0.8rem; font-weight: 700;
}
.budget-pill.budget-within { background: rgba(74,222,128,0.12); color: #6ee7a3; border: 1px solid rgba(74,222,128,0.3); }
.budget-pill.budget-close  { background: rgba(255,176,32,0.12); color: var(--color-warning); border: 1px solid rgba(255,176,32,0.3); }
.budget-pill.budget-over   { background: rgba(255,93,82,0.12); color: #ff9b94; border: 1px solid rgba(255,93,82,0.3); }
.budget-pill.budget-unknown { background: var(--color-surface-2); color: var(--color-muted); border: 1px solid var(--color-border-soft); }

.dashboard-actions { gap: 0.5rem; }
.dashboard-actions .btn { min-height: 2.6rem; }

/* Summary strip */
.summary-strip {
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  padding: 0;
  overflow: hidden;
}
.summary-strip-inner {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}
.summary-item {
  padding: 1.1rem 1.15rem;
  border-right: 1px solid var(--color-border-soft);
  position: relative;
}
.summary-item::before {
  content: ""; position: absolute; left: 1.15rem; top: 1.1rem;
  width: 22px; height: 2px; background: var(--color-gold); border-radius: 2px;
}
.summary-item:last-child { border-right: 0; }
.summary-label {
  display: block;
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--color-muted); font-weight: 700;
  margin-top: 0.65rem;
}
.summary-value {
  display: block;
  font-size: 1rem; font-weight: 700; color: var(--color-text-strong);
  margin-top: 0.3rem;
}

.refine-panel {
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-gold);
}
.refine-chips .btn { border-radius: 999px; }

.itinerary-day-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.day-nav-btn {
  border: 1px solid var(--color-border-soft);
  background: var(--color-surface-2);
  color: var(--color-text);
  border-radius: 999px;
  padding: 0.38rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: all .2s ease;
}
.day-nav-btn:hover {
  border-color: var(--color-border);
  color: var(--color-gold);
  background: rgba(245,197,24,0.08);
}
.day-nav-btn.active {
  border-color: var(--color-gold);
  color: #15110a;
  background: var(--grad-gold);
}

/* Itinerary timeline */
.timeline-premium { display: flex; flex-direction: column; gap: 1.25rem; }
.timeline-day-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  padding: 1.4rem;
  background: linear-gradient(160deg, var(--color-surface), var(--color-surface-2));
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  transition: border-color .25s ease, transform .3s var(--ease-out);
}
.timeline-day-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--grad-gold);
  opacity: 0.55;
}
.timeline-day-card:hover { border-color: var(--color-border); transform: translateY(-2px); }
.timeline-day-marker span {
  display: flex; align-items: center; justify-content: center;
  min-width: 2.85rem; height: 2.85rem;
  border-radius: 14px;
  background: var(--grad-gold);
  color: #15110a;
  font-family: var(--font-display);
  font-weight: 800; font-size: 1.05rem;
  box-shadow: 0 6px 18px rgba(245,197,24,0.3);
}
.timeline-day-head {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem;
  margin-bottom: 0.85rem;
}
.timeline-day-title { font-size: 1.12rem; font-weight: 700; margin: 0; color: var(--color-text-strong); font-family: var(--font-display); }
.day-toggle-btn {
  border-radius: 999px;
  font-size: 0.76rem;
  padding: 0.32rem 0.68rem;
}
.timeline-day-card.is-collapsed .timeline-day-blocks,
.timeline-day-card.is-collapsed .day-food,
.timeline-day-card.is-collapsed .day-notes {
  display: none;
}
.timeline-day-card.is-collapsed .timeline-day-footer {
  margin-top: 0;
}
.theme-badge {
  font-size: 0.72rem; font-weight: 700;
  padding: 0.22rem 0.65rem; border-radius: 999px;
  background: rgba(245,197,24,0.12);
  color: var(--color-gold);
  border: 1px solid var(--color-border);
}
.time-block {
  margin-bottom: 0.75rem;
  padding: 0.75rem 0.95rem;
  border-radius: 0.85rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--color-border-soft);
}
.time-block-label {
  font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.1em;
  font-weight: 800; color: var(--color-gold);
}
.time-block-title { font-weight: 700; font-size: 0.92rem; margin-top: 0.25rem; color: var(--color-text-strong); }
.time-block-desc { color: var(--color-muted); margin-top: 0.25rem; }
.time-places { margin: 0.4rem 0 0; padding-left: 1.1rem; font-size: 0.85rem; color: var(--color-text); }
.day-food, .day-notes { margin-top: 0.85rem; padding-top: 0.85rem; border-top: 1px dashed var(--color-border-soft); }
.day-food strong { color: var(--color-text-strong); }
.timeline-day-footer { margin-top: 0.85rem; }
.day-cost { font-size: 0.92rem; color: var(--color-muted); }
.day-cost strong { color: var(--color-gold); font-family: var(--font-display); font-size: 1.05rem; }
.day-note { font-size: 0.85rem; color: var(--color-text); padding: 0.25rem 0; }
.note-tag {
  display: inline-block;
  font-size: 0.65rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--color-gold); margin-right: 0.4rem;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  background: rgba(245,197,24,0.1);
  border: 1px solid var(--color-border-soft);
}

/* Side cards */
.side-card { padding: 1.2rem 1.3rem; margin-bottom: 1rem; }
.side-title {
  font-size: 0.78rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--color-text-strong);
  margin: 0 0 0.85rem;
  display: flex; align-items: center; gap: 0.55rem;
}
.side-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 8px;
  background: rgba(245,197,24,0.12);
  color: var(--color-gold);
  font-size: 0.95rem;
}
.route-summary-line { font-size: 0.92rem; }
.route-facts li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.4rem 0; border-bottom: 1px dashed var(--color-border-soft);
  font-size: 0.88rem;
}
.route-facts li span:first-child { color: var(--color-muted); }
.route-facts li strong { color: var(--color-text-strong); }
.route-facts li:last-child { border-bottom: 0; }
.weather-head { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }
.weather-temp { font-weight: 800; color: var(--color-gold); font-family: var(--font-display); font-size: 1.1rem; }
.weather-alert {
  color: #ff9b94;
  background: rgba(255,93,82,0.08);
  border: 1px solid rgba(255,93,82,0.25);
  padding: 0.55rem 0.7rem;
  border-radius: 0.65rem; margin-top: 0.5rem;
}

.budget-meter { margin-bottom: 0.5rem; }
.budget-meter-label {
  display: flex; justify-content: space-between;
  font-size: 0.72rem; font-weight: 700;
  color: var(--color-muted); text-transform: uppercase; letter-spacing: 0.06em;
}
.budget-meter-track {
  height: 8px; border-radius: 999px; margin-top: 0.4rem;
  background: rgba(255,255,255,0.05);
  overflow: hidden;
}
.budget-meter-fill { height: 100%; border-radius: 999px; background: var(--grad-gold); transition: width .5s ease; }
.budget-meter.budget-close .budget-meter-fill { background: linear-gradient(90deg, var(--color-gold), var(--color-warning)); }
.budget-meter.budget-over .budget-meter-fill { background: linear-gradient(90deg, var(--color-warning), var(--color-danger)); }

.cost-rows .cost-row {
  display: flex; justify-content: space-between;
  padding: 0.45rem 0;
  border-bottom: 1px dashed var(--color-border-soft);
  font-size: 0.92rem;
}
.cost-rows .cost-row span:first-child { color: var(--color-muted); }
.cost-rows .cost-row span:last-child { color: var(--color-text-strong); font-weight: 600; }
.cost-row-total {
  font-size: 1rem;
  padding-top: 0.7rem !important;
  margin-top: 0.3rem;
  border-top: 2px solid var(--color-border) !important;
  border-bottom: 0 !important;
}
.cost-row-total span:first-child { color: var(--color-text-strong) !important; font-weight: 700; }
.cost-row-total span:last-child { color: var(--color-gold) !important; font-weight: 800; font-family: var(--font-display); }
.cost-neg span:last-child { color: var(--color-danger) !important; }
.cost-over-note {
  color: #ff9b94;
  background: rgba(255,93,82,0.08);
  border: 1px solid rgba(255,93,82,0.25);
  border-radius: 0.65rem; padding: 0.65rem 0.85rem;
}

.notes-list { margin: 0; padding-left: 1.1rem; color: var(--color-text); }
.notes-list li { margin-bottom: 0.4rem; font-size: 0.9rem; }

/* Tabs (Places explorer) */
.tabs-soft {
  flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden;
  gap: 0.35rem; border-bottom: 1px solid var(--color-border-soft);
  scrollbar-width: thin; -webkit-overflow-scrolling: touch;
}
.tabs-soft::-webkit-scrollbar { height: 3px; }
.tabs-soft .nav-item { flex-shrink: 0; }
.tabs-soft .nav-link {
  border: 0;
  color: var(--color-muted);
  white-space: nowrap;
  padding: 0.65rem 1.05rem;
  border-radius: 0.65rem 0.65rem 0 0;
  font-weight: 600;
  position: relative;
}
.tabs-soft .nav-link:hover { color: var(--color-gold); background: rgba(245,197,24,0.06); }
.tabs-soft .nav-link.active {
  color: var(--color-gold);
  background: transparent;
  border-bottom: 2px solid var(--color-gold);
}

/* Recommendations */
.rec-list, .rec-stack { display: flex; flex-direction: column; gap: 0.7rem; }
.rec-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem; align-items: start;
  padding: 1rem 1.1rem;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border-soft);
  border-radius: 0.95rem;
  transition: transform .2s ease, border-color .25s ease, box-shadow .25s ease;
}
.rec-row:hover { border-color: var(--color-border); transform: translateY(-2px); box-shadow: var(--shadow-card); }
.rec-thumb {
  width: 46px; height: 46px;
  border-radius: 0.85rem;
  display: flex; align-items: center; justify-content: center;
  background: rgba(245,197,24,0.12);
  border: 1px solid var(--color-border);
  color: var(--color-gold); font-size: 1.15rem;
}
.rec-thumb-hotel { color: var(--color-gold-200); }
.rec-thumb-food { color: var(--color-gold); }
.rec-title { font-weight: 700; font-size: 0.97rem; color: var(--color-text-strong); }
.rec-meta {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1rem;
  font-size: 0.8rem; color: var(--color-muted); margin-top: 0.2rem;
}
.rec-meta span { font-weight: 600; color: var(--color-text); }
.rec-sub, .rec-note { color: var(--color-muted); margin-top: 0.3rem; font-size: 0.83rem; }
.rec-empty {
  text-align: center; padding: 2rem 1rem;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface-2);
}
.rec-empty-icon { display: block; font-size: 1.6rem; color: var(--color-gold); margin-bottom: 0.5rem; }

/* ===========================================================
   GENERATING PLAN PAGE
   =========================================================== */
.generation-page {
  background: var(--grad-hero);
  position: relative; overflow: hidden;
}
.generation-page::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(245,197,24,0.08) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(ellipse at 50% 50%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 30%, transparent 75%);
  pointer-events: none;
}
.generation-shell { max-width: 1180px; position: relative; z-index: 1; }
.generation-card {
  padding: 2rem 1.85rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
}
@media (min-width: 992px) { .generation-card { padding: 2.4rem 2.5rem; } }

.generation-progress {
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  overflow: hidden;
}
.generation-progress-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--grad-gold);
  background-size: 200% 100%;
  animation: routeFlow 2.4s linear infinite;
  transition: width .45s ease;
  box-shadow: 0 0 16px rgba(245,197,24,0.5);
}

.generation-visual {
  min-height: 360px;
  padding: 2rem 1.75rem;
  background: linear-gradient(160deg, var(--color-surface-2) 0%, var(--color-surface) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  position: relative; overflow: hidden;
}
.generation-route-line {
  position: absolute;
  left: 8%; right: 12%; top: 38%;
  height: 3px; border-radius: 999px;
  background: repeating-linear-gradient(90deg, var(--color-gold) 0 10px, transparent 10px 20px);
  opacity: 0.6;
  animation: routeFlow 3s linear infinite;
  background-size: 200% 100%;
  filter: drop-shadow(0 0 6px rgba(245,197,24,0.4));
}
.generation-pin {
  position: absolute;
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: var(--color-surface);
  border: 1px solid var(--color-gold);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--color-gold);
  box-shadow: 0 0 0 6px rgba(245,197,24,0.12), 0 8px 22px rgba(0,0,0,0.4);
  font-size: 1.15rem;
  animation: pinDrift 4s ease-in-out infinite;
}
.generation-pin.pin-a { left: 10%; top: 30%; }
.generation-pin.pin-b { right: 12%; top: 46%; animation-delay: .6s; }
.generation-travel-stack {
  position: relative;
  display: flex; justify-content: center; gap: 0.7rem;
  margin-top: 4.25rem; z-index: 1;
}
.travel-card {
  width: 3.5rem; height: 4.4rem;
  border-radius: 0.75rem;
  background: var(--color-surface-3);
  border: 1px solid var(--color-border);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(0,0,0,0.45);
  animation: travelCardNudge 3.8s ease-in-out infinite;
  color: var(--color-gold);
  font-size: 1.15rem;
}
.travel-card:nth-child(2) { animation-delay: .25s; margin-top: -0.5rem; }
.travel-card:nth-child(3) { animation-delay: .5s; }
.generation-visual-caption { max-width: 18rem; margin: 0 auto; color: var(--color-muted); }

.generation-steps { position: relative; padding-left: 0.25rem; list-style: none; margin: 0; }
.generation-steps::before {
  content: ""; position: absolute;
  left: 0.95rem; top: 0.55rem; bottom: 0.55rem;
  width: 2px; border-radius: 999px;
  background: linear-gradient(180deg, rgba(245,197,24,0.45), rgba(245,197,24,0.05));
}
.generation-step {
  display: flex; align-items: flex-start; gap: 0.95rem;
  padding: 0.45rem 0.5rem 0.45rem 0.15rem;
  border-radius: 0.85rem;
  transition: background .25s ease, transform .25s ease;
  animation: stepFadeUp .45s ease both;
}
.generation-step-icon {
  flex: 0 0 1.95rem; width: 1.95rem; height: 1.95rem;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  z-index: 1;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border-soft);
  font-size: 1rem;
  color: var(--color-muted);
}
.generation-step-text { font-weight: 600; font-size: 0.95rem; color: var(--color-text); }
.generation-step.is-pending .generation-step-text { color: var(--color-muted); font-weight: 500; }
.generation-step.is-active { background: rgba(245,197,24,0.06); transform: translateX(2px); }
.generation-step.is-active .generation-step-icon {
  border-color: var(--color-gold); background: rgba(245,197,24,0.1); color: var(--color-gold);
}
.generation-step.is-complete .generation-step-icon {
  background: rgba(74,222,128,0.12);
  border-color: rgba(74,222,128,0.32);
  color: var(--color-success);
}
.generation-step.is-complete .generation-step-text { color: var(--color-muted); font-weight: 500; }
.generation-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--color-gold); }
.generation-dot-muted { background: var(--color-muted-2); opacity: .85; }

.generation-error.generation-error-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  padding: 2rem 1.75rem;
  max-width: 32rem;
  margin: 1.5rem auto 0;
}

/* ===========================================================
   CHATBOT PAGE
   =========================================================== */
.chat-page-layout { padding-top: calc(var(--stp-nav-h) + 2rem); padding-bottom: 4rem; }
.chat-hero { margin-bottom: 1.75rem; }

.chat-shell {
  display: flex; flex-direction: column;
  min-height: min(70dvh, 620px);
  max-height: 85vh;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: var(--color-surface);
}
.chat-shell-head {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--color-border-soft);
  background: var(--color-surface-2);
  display: flex; justify-content: space-between; align-items: center;
}
.chat-context-banner {
  flex: 0 0 auto;
  background: rgba(245,197,24,0.06);
  border-color: var(--color-border-soft) !important;
  color: var(--color-gold-200);
}
.context-pill {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: 0.4rem;
  padding: 0.4rem 0.9rem; border-radius: 999px;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  color: var(--color-text); font-weight: 500;
}
.chat-messages-panel {
  flex: 1 1 auto;
  min-height: min(280px, 42dvh);
  max-height: min(54vh, 520px);
  overflow-y: auto; overflow-x: hidden;
  padding: 1.25rem 1.25rem 1.5rem;
  background:
    radial-gradient(800px 400px at 100% 0%, rgba(245,197,24,0.05), transparent 50%),
    var(--color-bg-soft);
  display: flex; flex-direction: column; gap: 0.4rem;
}
.chat-bubble-row { display: flex; width: 100%; margin-bottom: 0.65rem; }
.chat-bubble-row-user { justify-content: flex-end; }
.chat-bubble-row-bot { justify-content: flex-start; }
.chat-msg-fade { animation: chatFade .38s ease; }
@keyframes chatFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.chat-bubble {
  padding: 0.85rem 1.05rem;
  border-radius: 1.1rem;
  max-width: min(92%, 34rem);
  line-height: 1.5; font-size: 0.94rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  overflow-wrap: anywhere; word-break: break-word;
}
.chat-bubble.user {
  background: var(--grad-gold);
  color: #15110a;
  border-bottom-right-radius: 0.3rem;
}
.chat-bubble.bot {
  background: var(--color-surface-2);
  color: var(--color-text);
  border-bottom-left-radius: 0.3rem;
  border: 1px solid var(--color-border-soft);
}
.chat-bubble.bot.chat-error {
  background: rgba(255,93,82,0.1);
  border-color: rgba(255,93,82,0.32);
  color: #ff9b94;
}
.chat-bubble-content .chat-bullet-list { padding-left: 1.15rem; margin: 0 0 0.5rem; }
.chat-section-label {
  font-size: 0.72rem; letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800; color: var(--color-gold);
}
.chat-typing { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 600; color: var(--color-muted); }
.typing-text { font-style: italic; opacity: .9; font-size: 0.88rem; }
.typing-dots { display: inline-flex; gap: 3px; align-items: center; }
.typing-dots span {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--color-gold); opacity: .35;
  animation: typingBlink 1.1s infinite ease-in-out;
}
.typing-dots span:nth-child(2) { animation-delay: .15s; }
.typing-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes typingBlink {
  0%, 60%, 100% { opacity: .25; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-2px); }
}
.chat-input-panel {
  flex: 0 0 auto;
  padding: 1rem 1.15rem;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border-soft);
}
.chat-input-bundle .form-control {
  background: var(--color-surface-2);
  border-color: var(--color-border-soft);
  color: var(--color-text);
}
.chat-side-card { margin-bottom: 1rem; }
.tips-panel { font-size: 0.9rem; color: var(--color-text); }
.tips-panel ul { padding-left: 1.1rem; margin: 0; color: var(--color-muted); }
.tips-panel li { margin-bottom: 0.5rem; }
.chat-page-layout .chat-prompt {
  border-radius: 999px !important;
  font-weight: 600;
  font-size: 0.85rem;
}

/* ===========================================================
   SHARE PAGE
   =========================================================== */
.page-share { padding-top: calc(var(--stp-nav-h) + 2rem); padding-bottom: 4rem; }
.page-share-intro { background: linear-gradient(135deg, rgba(245,197,24,0.05), transparent 60%), var(--color-surface); }

/* ===========================================================
   FOOTER
   =========================================================== */
.site-footer {
  background: var(--color-bg-soft);
  border-top: 1px solid var(--color-border-soft);
  margin-top: 4rem;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  opacity: 0.4;
}
.site-footer h5 { color: var(--color-text-strong); font-family: var(--font-display); }
.site-footer h6 { color: var(--color-text-strong); font-size: 0.92rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; }
.site-footer p, .site-footer .text-muted { color: #c0c4ce !important; font-size: 0.93rem; line-height: 1.62; }
.footer-brand-row { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1rem; }
.footer-brand-row .brand-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--grad-gold);
  color: #000;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(245,197,24,0.35);
}
.footer-brand-row .brand-mark svg { width: 20px; height: 20px; }
.footer-brand-row span { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--color-text-strong); }
.footer-links { padding-left: 0; list-style: none; }
.footer-links li { margin-bottom: 0.55rem; }
.footer-links a {
  color: var(--color-muted);
  text-decoration: none;
  font-size: 0.94rem;
  transition: color .2s ease, padding-left .25s ease;
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.footer-links a::before {
  content: "›"; color: var(--color-gold); opacity: 0;
  transition: opacity .2s ease, transform .25s ease;
}
.footer-links a:hover { color: var(--color-gold); padding-left: 0.4rem; }
.footer-links a:hover::before { opacity: 1; transform: translateX(2px); }
.footer-social { display: flex; gap: 0.5rem; margin-top: 1rem; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border-soft);
  color: var(--color-muted);
  transition: color .25s ease, border-color .25s ease, background .25s ease, transform .25s ease;
}
.footer-social a:hover { color: var(--color-gold); border-color: var(--color-gold); background: rgba(245,197,24,0.08); transform: translateY(-2px); }
.footer-bottom {
  padding: 1rem 0; border-top: 1px solid var(--color-border-soft);
  display: flex; flex-wrap: wrap; gap: 0.85rem; justify-content: space-between; align-items: center;
}
.footer-bottom .copy { color: var(--color-muted-2); font-size: 0.85rem; margin: 0; }
.footer-bottom .made-with { color: #c0c4ce; font-size: 0.85rem; margin: 0; }
.footer-bottom .made-with i { color: var(--color-gold); }

.site-footer .container.py-5 {
  padding-top: 3.35rem !important;
  padding-bottom: 2.7rem !important;
}

/* ===========================================================
   AUTOCOMPLETE
   =========================================================== */
.autocomplete-wrap { position: relative; max-width: 100%; }
.autocomplete-menu {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px);
  z-index: 1080;
  max-height: min(280px, 45vh);
  max-width: min(100%, calc(100vw - 2rem));
  overflow-y: auto; overflow-x: hidden;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: 0.85rem;
  box-shadow: 0 22px 50px rgba(0,0,0,0.55);
}
.autocomplete-item {
  width: 100%; border: none; background: transparent;
  padding: 0.7rem 1rem; text-align: left;
  cursor: pointer; display: block;
  border-bottom: 1px solid var(--color-border-soft);
  transition: background .15s ease;
  color: var(--color-text);
}
.autocomplete-item:last-child { border-bottom: 0; }
.autocomplete-item:hover, .autocomplete-item.is-active { background: rgba(245,197,24,0.08); }
.autocomplete-title { display: block; font-weight: 700; color: var(--color-text-strong); }
.autocomplete-meta { display: block; font-size: 0.82rem; color: var(--color-muted); margin-top: 0.15rem; }
.autocomplete-status { color: var(--color-muted); padding: 0.7rem 1rem; }
.autocomplete-confirmation { color: var(--color-muted); }
.autocomplete-confirmation strong { color: var(--color-gold); }

/* Modal */
.modal-content {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  color: var(--color-text);
}
.modal-header, .modal-footer { border-color: var(--color-border-soft); }
.modal-title { color: var(--color-text-strong); font-family: var(--font-display); }
.btn-close {
  filter: invert(1) brightness(2);
  opacity: 0.65;
}
.btn-close:hover { opacity: 1; }

/* Toast container */
#toastContainer { z-index: 1090; max-width: 100%; }
.toast { background: var(--color-surface-2); border: 1px solid var(--color-border); color: var(--color-text); }
.toast.text-bg-success { background: rgba(74,222,128,0.15) !important; border-color: rgba(74,222,128,0.35); color: #6ee7a3; }
.toast.text-bg-danger  { background: rgba(255,93,82,0.15) !important; border-color: rgba(255,93,82,0.35); color: #ff9b94; }
.toast.text-bg-dark    { background: var(--color-surface-2) !important; color: var(--color-text); }

/* Misc */
.divider-soft { border: 0; border-top: 1px solid var(--color-border-soft); margin: 1.5rem 0; }
.text-link-gold { color: var(--color-gold); text-decoration: none; }
.text-link-gold:hover { color: var(--color-gold-200); text-decoration: underline; }

/* Floating utilities for animations */
.floating-image { animation: floatY 6s ease-in-out infinite; }
.floating-soft { animation: floatSoft 7s ease-in-out infinite; }

/* Gold scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--color-bg-soft); }
::-webkit-scrollbar-thumb { background: var(--color-surface-3); border-radius: 10px; border: 2px solid var(--color-bg-soft); }
::-webkit-scrollbar-thumb:hover { background: var(--color-gold-700); }
