/* ==========================================================================
   FMATOUR - modern surface and motion layer
   Loaded after the base design system. Progressive enhancement only.
   ========================================================================== */

:root {
  --grad-brand: linear-gradient(135deg, #a11bff 0%, #7c00cb 46%, #4a008d 100%);
  --grad-brand-soft: linear-gradient(135deg, rgba(161, 27, 255, 0.14), rgba(74, 0, 141, 0.04));
  --grad-gold: linear-gradient(135deg, #ffe3a3 0%, #e0a62d 55%, #b97a06 100%);
  --grad-ink: linear-gradient(155deg, #22112f 0%, #190b24 55%, #120718 100%);
  --grad-sheen: linear-gradient(115deg, transparent 18%, rgba(255, 255, 255, 0.34) 44%, transparent 62%);
  --glow-brand: 0 24px 50px -22px rgba(134, 1, 218, 0.55);
  --glow-gold: 0 18px 40px -20px rgba(201, 138, 18, 0.55);
  --ease-spring: cubic-bezier(0.34, 1.46, 0.64, 1);
  --ring-brand: 0 0 0 4px rgba(134, 1, 218, 0.14);
}

body {
  background:
    radial-gradient(1100px 520px at 88% -8%, rgba(134, 1, 218, 0.07), transparent 62%),
    radial-gradient(820px 460px at -8% 18%, rgba(201, 138, 18, 0.055), transparent 62%),
    var(--canvas);
}

::selection {
  background: #8601da;
  color: #fff;
}

/* Scroll progress ---------------------------------------------------------- */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 300;
  height: 3px;
  pointer-events: none;
  background: transparent;
}

.scroll-progress span {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, #a11bff, #e0a62d 60%, #ff7ac2);
  box-shadow: 0 0 14px rgba(161, 27, 255, 0.6);
  transition: transform 80ms linear;
}

/* Keyframes ---------------------------------------------------------------- */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}

@keyframes revealUp {
  from { opacity: 0; transform: translateY(26px); filter: blur(5px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes kenburns {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to { transform: scale(1.12) translate3d(-1.5%, -1.5%, 0); }
}

@keyframes borderFlow {
  0%, 100% { background-position: 0 0, 0% 50%; }
  50% { background-position: 0 0, 100% 50%; }
}

@keyframes heroDrift {
  0% { transform: scale(1.08) translate3d(0, 0, 0); }
  50% { transform: scale(1.16) translate3d(-2.2%, -1.4%, 0); }
  100% { transform: scale(1.1) translate3d(1.6%, 1.1%, 0); }
}

@keyframes aurora {
  0% { transform: translate3d(-3%, 0, 0) scale(1); opacity: 0.75; }
  50% { opacity: 1; }
  100% { transform: translate3d(4%, -3%, 0) scale(1.08); opacity: 0.8; }
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(11, 143, 106, 0.45); }
  60% { box-shadow: 0 0 0 14px rgba(11, 143, 106, 0); }
}

@keyframes shine {
  from { transform: translateX(-130%) skewX(-18deg); }
  to { transform: translateX(230%) skewX(-18deg); }
}

@keyframes shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

@keyframes rippleOut {
  from { transform: scale(0); opacity: 0.5; }
  to { transform: scale(1); opacity: 0; }
}

@keyframes drawLine {
  from { stroke-dashoffset: 2600; }
  to { stroke-dashoffset: 0; }
}

@keyframes popDot {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes growBar {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

@keyframes badgePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.03); opacity: 0.86; }
}

@keyframes ringSpin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

/* Buttons ------------------------------------------------------------------ */
.btn {
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.24s var(--ease-spring),
    box-shadow 0.28s var(--ease),
    background 0.24s ease,
    border-color 0.24s ease,
    color 0.24s ease;
}

.btn-primary {
  --btn-bg: var(--grad-brand);
  border-color: transparent;
  box-shadow: 0 10px 24px -10px rgba(134, 1, 218, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #b02dff 0%, #8a0dde 46%, #5900a8 100%);
  transform: translateY(-2px);
  box-shadow: 0 26px 46px -18px rgba(134, 1, 218, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.btn-primary:active,
.btn:active {
  transform: translateY(0) scale(0.985);
}

.btn-primary::after,
.btn-secondary::after,
.btn-white::after {
  content: "";
  position: absolute;
  top: -60%;
  left: 0;
  z-index: 1;
  width: 42%;
  height: 220%;
  background: var(--grad-sheen);
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.btn-primary:hover::after,
.btn-secondary:hover::after,
.btn-white:hover::after {
  opacity: 0.85;
  animation: shine 0.85s var(--ease);
}

.btn .ripple {
  position: absolute;
  z-index: 1;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.2;
  pointer-events: none;
  animation: rippleOut 0.65s ease-out forwards;
}

.btn-lg {
  letter-spacing: -0.01em;
}

.icon-btn,
.btn-icon {
  transition: background 0.2s, color 0.2s, transform 0.24s var(--ease-spring);
}

.icon-btn:hover,
.btn-icon:hover {
  transform: translateY(-1px) scale(1.05);
}

.icon-btn:active,
.btn-icon:active {
  transform: scale(0.94);
}

/* Links -------------------------------------------------------------------- */
.link-arrow {
  transition: gap 0.2s var(--ease), color 0.2s;
}

.link-arrow:hover {
  gap: 7px;
}

/* Header ------------------------------------------------------------------- */
.site-header {
  border-bottom-color: transparent;
  background: rgba(252, 250, 255, 0.72);
  backdrop-filter: blur(20px) saturate(150%);
  transition: background 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 40px -28px rgba(26, 16, 37, 0.45);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 5px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.3s var(--ease);
}

.site-nav a:hover::after,
.site-nav a.active::after {
  transform: scaleX(1);
}

.site-nav a.active {
  color: var(--primary-700);
}

.logo {
  transition: transform 0.3s var(--ease-spring);
}

.logo:hover {
  transform: translateY(-1px) scale(1.02);
}

/* Hero --------------------------------------------------------------------- */
.home-hero {
  isolation: isolate;
}

.home-hero-bg {
  transform-origin: 58% 48%;
  will-change: transform;
  animation: heroDrift 22s ease-in-out infinite;
}

.home-hero-bg::before {
  content: "";
  position: absolute;
  inset: -18%;
  background:
    radial-gradient(34% 44% at 22% 32%, rgba(161, 27, 255, 0.55), transparent 68%),
    radial-gradient(30% 38% at 82% 18%, rgba(224, 166, 45, 0.35), transparent 70%),
    radial-gradient(40% 40% at 62% 82%, rgba(255, 122, 194, 0.22), transparent 70%);
  mix-blend-mode: screen;
  animation: aurora 20s ease-in-out infinite alternate;
}

.home-hero h1 em {
  font-style: italic;
  background: linear-gradient(100deg, #ffe3a3, #fff 30%, #d8a6ff 62%, #ffe3a3);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 9s linear infinite;
}

.home-hero h1 {
  text-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.home-hero .hero-kicker,
.home-hero h1,
.home-hero .hero-copy > p,
.home-hero .hero-actions,
.home-hero .hero-trust,
.home-hero .hero-rating {
  animation: riseIn 0.9s var(--ease) both;
}

.home-hero .hero-kicker { animation-delay: 40ms; }
.home-hero h1 { animation-delay: 120ms; }
.home-hero .hero-copy > p { animation-delay: 220ms; }
.home-hero .hero-actions { animation-delay: 320ms; }
.home-hero .hero-trust { animation-delay: 400ms; }
.home-hero .hero-rating { animation-delay: 470ms; }

.home-hero::after {
  animation: floatY 9s ease-in-out infinite;
}

.hero-kicker {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 12px 28px -20px rgba(0, 0, 0, 0.8);
}

.hero-search-wrap {
  animation: riseIn 1s var(--ease) 480ms both;
}

/* Floating hero showcase */
.hero-showcase {
  display: none;
}

@media (min-width: 1120px) {
  .home-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 54px;
    align-items: center;
  }

  .hero-showcase {
    position: relative;
    display: block;
    height: 420px;
  }
}

.hero-showcase::before {
  content: "";
  position: absolute;
  inset: 8% -6% 6% 4%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(161, 27, 255, 0.4), transparent 66%);
  filter: blur(38px);
  opacity: 0.7;
}

.showcase-card,
.showcase-chip {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(24, 13, 34, 0.62);
  box-shadow: 0 34px 70px -34px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px) saturate(140%);
  color: #fff;
}

.showcase-main {
  position: absolute;
  top: 18px;
  right: 0;
  width: 300px;
  overflow: hidden;
  border-radius: 22px;
  animation: floatY 8s ease-in-out infinite;
}

.showcase-media {
  position: relative;
  height: 128px;
  background-size: cover;
  background-position: center;
}

.showcase-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(24, 13, 34, 0.92), rgba(24, 13, 34, 0.06) 62%);
}

.showcase-flag {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  backdrop-filter: blur(8px);
}

.showcase-body {
  padding: 15px 18px 18px;
}

.showcase-label {
  display: block;
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.showcase-body > strong {
  display: block;
  font-size: 0.92rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.showcase-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.63rem;
}

.showcase-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.showcase-price {
  margin-top: 10px;
  color: #fff;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.showcase-price small {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.6rem;
  font-weight: 600;
}

.showcase-card .progress {
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.14);
}

.showcase-card .progress > span {
  background: var(--grad-gold);
}

.showcase-seat {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.6rem;
}

.showcase-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border-radius: 14px;
  font-size: 0.64rem;
}

.showcase-chip strong {
  color: #fff;
}

.showcase-chip span {
  color: rgba(255, 255, 255, 0.6);
}

.showcase-chip-rating {
  top: 2px;
  left: -18px;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  animation: floatY 6.5s ease-in-out 0.4s infinite;
}

.showcase-chip-rating .stars {
  display: flex;
  gap: 1px;
  color: #ffd166;
}

.showcase-chip-rating strong {
  display: inline-flex;
  align-items: baseline;
  color: #fff;
  font-size: 0.86rem;
  line-height: 1;
}

.showcase-chip-rating strong em {
  margin-left: 1px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.6rem;
  font-style: normal;
  font-weight: 600;
}

.showcase-chip-rating .showcase-rating-count {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.62rem;
  white-space: nowrap;
}

.showcase-chip-jamaah {
  bottom: 74px;
  left: -34px;
  animation: floatY 7.4s ease-in-out 0.9s infinite;
}

.showcase-chip-jamaah .chip-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--grad-brand);
  color: #fff;
}

.showcase-chip-jamaah div {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.showcase-chip-jamaah strong {
  font-size: 0.8rem;
}

.showcase-chip-badge {
  right: 4px;
  bottom: 4px;
  animation: floatY 8.4s ease-in-out 0.2s infinite;
}

@media (max-width: 1119px) {
  .hero-showcase {
    display: none;
  }
}

.search-ribbon {
  position: absolute;
  top: -15px;
  left: 30px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--grad-brand);
  color: #fff;
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 14px 26px -12px rgba(134, 1, 218, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.search-panel {
  position: relative;
  border: 2px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(120deg, #a11bff 0%, #ff7ac2 38%, #ffc247 68%, #a11bff 100%) border-box;
  background-size: auto, 240% 100%;
  background-position: 0 0, 0% 50%;
  box-shadow:
    0 34px 80px -34px rgba(26, 16, 37, 0.5),
    0 18px 44px -24px rgba(134, 1, 218, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  animation: borderFlow 9s ease-in-out infinite;
}

.search-panel:hover {
  transform: translateY(-3px);
  box-shadow:
    0 40px 90px -34px rgba(26, 16, 37, 0.55),
    0 24px 54px -22px rgba(134, 1, 218, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.search-panel:focus-within {
  transform: translateY(-3px);
  box-shadow:
    0 44px 96px -36px rgba(134, 1, 218, 0.55),
    0 0 0 4px rgba(134, 1, 218, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.search-field {
  border-radius: 12px;
  transition: background 0.2s ease;
}

.search-field:hover {
  background: var(--primary-50);
}

.search-field:focus-within {
  background: var(--primary-50);
}

.search-field:focus-within label {
  color: var(--primary-700);
}

.search-panel .btn {
  min-width: 150px;
  font-size: 0.92rem;
  box-shadow: 0 16px 32px -12px rgba(134, 1, 218, 0.65);
}

.hero-trust span {
  transition: color 0.2s, transform 0.2s;
}

.hero-trust span:hover {
  color: #fff;
  transform: translateY(-1px);
}

.partner-strip span {
  transition: color 0.25s, opacity 0.25s, transform 0.25s var(--ease-spring);
}

.partner-strip span:hover {
  color: var(--primary-700);
  opacity: 1;
  transform: translateY(-2px);
}

/* Page and microsite heroes ------------------------------------------------ */
.page-hero {
  isolation: isolate;
  background-image:
    radial-gradient(60% 80% at 90% 0%, rgba(161, 27, 255, 0.35), transparent 60%),
    radial-gradient(40% 60% at 10% 100%, rgba(224, 166, 45, 0.16), transparent 65%);
}

.page-hero h1,
.page-hero p,
.page-hero .breadcrumbs {
  animation: riseIn 0.8s var(--ease) both;
}

.page-hero h1 { animation-delay: 80ms; }
.page-hero p { animation-delay: 160ms; }

.page-hero::after {
  animation: floatY 11s ease-in-out infinite;
}

.micro-hero {
  isolation: isolate;
}

.micro-hero::after {
  content: "";
  position: absolute;
  right: -8%;
  top: -26%;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 166, 45, 0.22), transparent 66%);
  pointer-events: none;
}

.micro-hero::before {
  animation: kenburns 24s ease-in-out infinite alternate;
}

.micro-profile {
  animation: riseIn 0.85s var(--ease) both;
}

.micro-hero .micro-stat {
  transition: transform 0.3s var(--ease), background 0.3s, border-color 0.3s;
}

.micro-hero .micro-stat:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.1);
}

/* Page transition ---------------------------------------------------------- */
#app > * {
  animation: fadeIn 0.45s var(--ease) both;
}

/* Section headings --------------------------------------------------------- */
.section-head h2 {
  letter-spacing: -0.04em;
}

/* Cards -------------------------------------------------------------------- */
.pkg-card,
.feature-tile,
.testimonial-card,
.destination-card,
.article-card,
.chart-card,
.account-card,
.summary-card,
.record-card,
.kpi-card,
.branch-card,
.settings-card,
.table-card,
.pipeline-card {
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    border-color 0.35s ease,
    background 0.35s ease;
}

.pkg-card:hover,
.feature-tile:hover,
.testimonial-card:hover,
.destination-card:hover,
.article-card:hover,
.account-card:hover,
.record-card:hover,
.kpi-card:hover,
.branch-card:hover,
.settings-card:hover,
.pipeline-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--primary) 26%, var(--border));
  box-shadow: 0 26px 54px -30px rgba(26, 16, 37, 0.35);
}

.pkg-card:hover,
.destination-card:hover,
.article-card:hover {
  box-shadow: 0 30px 60px -28px rgba(134, 1, 218, 0.35);
}

.pkg-media img,
.destination-card img,
.article-card img {
  transition: transform 0.7s var(--ease), filter 0.7s var(--ease);
}

.pkg-card:hover .pkg-media img,
.destination-card:hover img,
.article-card:hover img {
  transform: scale(1.07);
  filter: saturate(1.08);
}

.pkg-cta {
  transition: transform 0.3s var(--ease), background 0.2s, color 0.2s;
}

.pkg-card:hover .pkg-cta {
  transform: translateX(2px);
}

/* Pointer spotlight -------------------------------------------------------- */
[data-spot] {
  position: relative;
  isolation: isolate;
}

[data-spot]::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(134, 1, 218, 0.1), transparent 64%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

[data-spot]:hover::after {
  opacity: 1;
}

.kpi-card[data-spot]::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(200px circle at var(--mx, 50%) var(--my, 50%), rgba(134, 1, 218, 0.12), transparent 62%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.kpi-card[data-spot]:hover::before {
  opacity: 1;
}

.kpi-card:hover {
  box-shadow: 0 24px 48px -26px rgba(134, 1, 218, 0.35);
}

/* Scroll reveal ------------------------------------------------------------ */
html.js-motion .reveal {
  opacity: 0;
}

html.js-motion .reveal.is-visible {
  opacity: 1;
  animation: revealUp 0.85s var(--ease) backwards;
  animation-delay: var(--reveal-delay, 0ms);
}

/* Charts ------------------------------------------------------------------- */
.chart-line {
  stroke-dasharray: 2600;
  stroke-dashoffset: 2600;
  animation: drawLine 1.8s var(--ease) 0.2s forwards;
  filter: drop-shadow(0 6px 10px rgba(134, 1, 218, 0.25));
}

.chart-dot {
  transform-origin: center;
  animation: popDot 0.5s var(--ease-spring) 1.7s both;
}

.sparkline polyline {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: drawLine 1.4s var(--ease) 0.3s forwards;
}

.bar {
  transform-origin: 50% 100%;
  animation: growBar 0.9s var(--ease) both;
}

.bar-col:nth-child(2) .bar { animation-delay: 60ms; }
.bar-col:nth-child(3) .bar { animation-delay: 120ms; }
.bar-col:nth-child(4) .bar { animation-delay: 180ms; }
.bar-col:nth-child(5) .bar { animation-delay: 240ms; }
.bar-col:nth-child(6) .bar { animation-delay: 300ms; }
.bar-col:nth-child(7) .bar { animation-delay: 360ms; }
.bar-col:nth-child(8) .bar { animation-delay: 420ms; }

.progress > span {
  transition: width 1s var(--ease);
}

/* Tables ------------------------------------------------------------------- */
.table tbody tr {
  transition: background 0.2s ease;
}

.table tbody tr:hover {
  background: linear-gradient(90deg, var(--primary-50), rgba(250, 245, 255, 0.2));
}

.table tbody tr td:first-child {
  transition: box-shadow 0.2s;
}

.table tbody tr:hover td:first-child {
  box-shadow: inset 3px 0 0 var(--primary);
}

/* Badges and status -------------------------------------------------------- */
.badge {
  transition: transform 0.2s var(--ease-spring), background 0.2s;
}

.badge-warning {
  animation: badgePulse 3.2s ease-in-out infinite;
}

.sidebar-scope .status-dot {
  position: relative;
}

.sidebar-scope .status-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid currentColor;
  opacity: 0.35;
  animation: glowPulse 3s ease-out infinite;
}

/* Dashboard chrome --------------------------------------------------------- */
.dash-shell {
  background:
    radial-gradient(900px 420px at 96% -4%, rgba(134, 1, 218, 0.07), transparent 62%),
    #f6f2fa;
}

.dash-sidebar {
  background-image:
    radial-gradient(circle at 8% 0%, rgba(161, 27, 255, 0.32), transparent 34%),
    radial-gradient(circle at 100% 100%, rgba(224, 166, 45, 0.08), transparent 40%);
}

.sidebar-link {
  transition: background 0.2s, color 0.2s, transform 0.2s var(--ease);
}

.sidebar-link:hover {
  transform: translateX(2px);
}

.sidebar-link .icon {
  transition: transform 0.24s var(--ease-spring);
}

.sidebar-link:hover .icon {
  transform: scale(1.12);
}

.sidebar-link.active {
  background: linear-gradient(100deg, rgba(155, 24, 240, 0.95), rgba(93, 0, 160, 0.75));
  box-shadow: 0 12px 26px -10px rgba(134, 1, 218, 0.55);
}

.sidebar-link.active::before {
  animation: fadeIn 0.3s both;
  box-shadow: 0 0 12px rgba(216, 166, 255, 0.8);
}

.dash-topbar {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 12px 30px -30px rgba(26, 16, 37, 0.4);
}

.dash-content > * {
  animation: fadeIn 0.45s var(--ease) both;
}

.dash-content > *:nth-child(2) { animation-delay: 40ms; }
.dash-content > *:nth-child(3) { animation-delay: 80ms; }
.dash-content > *:nth-child(4) { animation-delay: 120ms; }

.dash-title h1 {
  letter-spacing: -0.03em;
}

.dash-page-head h2 {
  background: linear-gradient(120deg, var(--ink) 0%, var(--primary-800) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.kpi-icon {
  transition: transform 0.3s var(--ease-spring);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 8px 16px -10px rgba(134, 1, 218, 0.55);
}

.kpi-card:hover .kpi-icon {
  transform: scale(1.12) rotate(-4deg);
}

.dash-search {
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.dash-search:hover {
  border-color: var(--primary-300);
  box-shadow: var(--ring-brand);
}

.demo-bar {
  background: linear-gradient(100deg, #1d0b2b, #2c0d40 60%, #3b0f52);
}

.demo-switch {
  transition: transform 0.2s var(--ease), background 0.2s;
}

.demo-switch:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.16);
}

/* Forms and inputs --------------------------------------------------------- */
.input,
.select,
.textarea {
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.input:hover,
.select:hover,
.textarea:hover {
  border-color: var(--primary-300);
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--primary);
  box-shadow: var(--ring-brand);
}

.search-field:focus-within label,
.field:focus-within .label {
  color: var(--primary-700);
}

/* Booking --------------------------------------------------------------- */
.stepper-item {
  transition: color 0.25s, transform 0.25s var(--ease);
}

.stepper-item.active {
  transform: translateY(-1px);
}

.stepper-dot {
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s, background 0.3s;
}

.stepper-item.active .stepper-dot {
  box-shadow: 0 0 0 6px rgba(134, 1, 218, 0.12), var(--glow-brand);
}

.booking-main > * {
  animation: fadeIn 0.4s var(--ease) both;
}

.summary-card {
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}

.summary-card:hover {
  box-shadow: 0 26px 54px -32px rgba(134, 1, 218, 0.4);
}

.payment-method,
.promo-card {
  transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.25s;
}

.payment-method:hover,
.promo-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px -26px rgba(26, 16, 37, 0.35);
}

.success-icon {
  animation: popDot 0.6s var(--ease-spring) both, glowPulse 2.6s ease-out 0.6s infinite;
}

.booking-code {
  animation: riseIn 0.7s var(--ease) 0.15s both;
}

/* Account ------------------------------------------------------------------ */
.account-hero {
  position: relative;
  overflow: hidden;
}

.account-hero::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -70px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  animation: floatY 9s ease-in-out infinite;
}

.trip-card {
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}

.trip-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 56px -30px rgba(26, 16, 37, 0.4);
}

/* Overlays and toasts ------------------------------------------------------ */
.overlay,
.drawer-overlay,
.sheet-overlay {
  animation: fadeIn 0.22s ease both;
}

.modal,
.drawer,
.sheet {
  animation: riseIn 0.38s var(--ease) both;
}

.toast {
  animation: toastIn 0.35s var(--ease-spring) both;
}

.toast.is-out {
  animation: fadeIn 0.24s ease reverse both;
}

/* Floating helpers --------------------------------------------------------- */
.wa-float {
  animation: glowPulse 3.4s ease-out infinite;
}

.wa-float:hover {
  transform: translateY(-3px) scale(1.02);
}

.wa-float .icon,
.wa-float svg {
  transition: transform 0.3s var(--ease-spring);
}

.wa-float:hover svg {
  transform: rotate(-8deg) scale(1.08);
}

.featured-tabs button {
  transition: background 0.2s, color 0.2s, transform 0.2s var(--ease-spring);
}

.featured-tabs button:hover {
  transform: translateY(-1px);
}

.attribution-chip {
  box-shadow: 0 12px 26px -22px rgba(134, 1, 218, 0.4);
}

/* Legal and trust surfaces ------------------------------------------------- */
.legal-card,
.trust-card {
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}

.legal-card:hover,
.trust-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary-300);
  box-shadow: 0 22px 44px -30px rgba(26, 16, 37, 0.35);
}

/* Responsive tuning -------------------------------------------------------- */
@media (max-width: 640px) {
  .home-hero {
    min-height: 560px;
  }

  .btn-primary:hover,
  .btn:hover {
    transform: none;
  }

  .pkg-card:hover,
  .feature-tile:hover,
  .testimonial-card:hover,
  .destination-card:hover,
  .article-card:hover,
  .account-card:hover,
  .record-card:hover,
  .kpi-card:hover,
  .branch-card:hover,
  .settings-card:hover,
  .pipeline-card:hover {
    transform: none;
  }

  .scroll-progress {
    height: 2px;
  }
}

@media (max-width: 640px) {
  .search-ribbon {
    top: -13px;
    left: 18px;
    padding: 5px 12px;
    font-size: 0.58rem;
  }
}

/* Accessibility ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  html.js-motion .reveal,
  html.js-motion .reveal.is-visible {
    opacity: 1;
    animation: none;
  }

  .home-hero-bg,
  .home-hero-bg::before {
    animation: none;
  }

  .chart-line {
    stroke-dashoffset: 0;
  }

  .sparkline polyline {
    stroke-dashoffset: 0;
  }
}
