/* Trip Planner — styles that supplement Tailwind (animations, map, mobile chrome). */

:root {
  --primary: #2563eb;
  --brand-yellow: #ffc83d;
}

html {
  -webkit-tap-highlight-color: transparent;
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* iOS safe-area helpers (Stack.md §16)
 * pb-safe keeps a sensible base padding on desktop (where env(safe-area-inset-bottom)=0)
 * and adds device safe-area inset on iOS PWAs with home indicator.
 */
.pb-safe {
  padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
}

.pt-safe {
  padding-top: max(1rem, env(safe-area-inset-top));
}

.h-safe-nav {
  height: calc(64px + env(safe-area-inset-bottom));
}

/* Thin / hidden scrollbars */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.thin-scrollbar::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.thin-scrollbar::-webkit-scrollbar-thumb {
  background: #e2e8f0;
  border-radius: 999px;
}

.thin-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #cbd5e1;
}

/* Itinerary timeline rail */
.timeline-item {
  position: relative;
  padding-left: 4.25rem;
}

.timeline-rail {
  position: relative;
}

.timeline-rail::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 6px;
  bottom: 6px;
  width: 4px;
  background: repeating-linear-gradient(#94a3b8 0 8px, transparent 8px 15px);
  border-radius: 999px;
}

@media (max-width: 1023px) {
  .timeline-mobile-marker {
    position: absolute;
    left: 0;
    top: 12px;
    width: 44px;
    display: grid;
    justify-items: center;
    gap: 4px;
    z-index: 3;
  }

  .timeline-mobile-marker .seq-badge {
    box-shadow: 0 6px 16px -8px rgba(15, 23, 42, .45);
  }
}

.timeline-marker-time,
.timeline-marker-duration {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border-radius: 999px;
  border: 1px solid rgba(226, 232, 240, .95);
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 6px 18px -14px rgba(15, 23, 42, .5);
}

.timeline-marker-time {
  min-width: 54px;
  padding: 3px 7px;
  font-size: 11px;
  font-weight: 800;
  color: #2563eb;
}

.timeline-marker-duration {
  min-width: 48px;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
}

@media (min-width: 1024px) {
  .timeline-item {
    padding-left: 0;
  }

  .timeline-rail::before {
    left: 79px;
    width: 2px;
    background: repeating-linear-gradient(#e2e8f0 0 6px, transparent 6px 12px);
  }
}

/* Leaflet polish */
.leaflet-container {
  border-radius: 1rem;
  font-family: inherit;
  background: #eaf1f6;
  z-index: 0;
}

.leaflet-bar a {
  border-radius: 8px !important;
}

.map-pin {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  border: 2px solid #fff;
  box-shadow: 0 4px 10px -2px rgba(15, 23, 42, .4);
}

/* Mascot bob */
@keyframes bob {

  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }

  50% {
    transform: translateY(-6px) rotate(2deg);
  }
}

.mascot-bob {
  animation: bob 4s ease-in-out infinite;
}

/* Toasts — glass style spring bounce */
@keyframes toast-in {
  0% {
    opacity: 0;
    transform: translateY(16px) scale(.92);
  }

  50% {
    opacity: 1;
    transform: translateY(-4px) scale(1.02);
  }

  100% {
    opacity: 1;
    transform: none;
  }
}

.toast-enter {
  animation: toast-in .4s cubic-bezier(.34, 1.56, .64, 1) both;
}

/* SortableJS states */
.sortable-ghost {
  opacity: .4;
}

.sortable-chosen {
  box-shadow: 0 12px 32px -10px rgba(37, 99, 235, .45) !important;
}

.sortable-drag {
  cursor: grabbing;
}

/* Reveal-on-load */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.rise {
  animation: rise .4s ease both;
}

/* Hand-drawn underline accent (matches the reference hero) */
.scribble-underline {
  position: relative;
  display: inline-block;
}

.scribble-underline::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 8px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='12' viewBox='0 0 200 12'%3E%3Cpath d='M2 8 C 50 2, 150 2, 198 7' stroke='%231e8bff' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}

/* Liquid Glass Blue design system (overview.md §18) */
:root {
  --primary: #0f72e6;
  --liquid-1: #1e8bff;
  --liquid-2: #38d5ff;
}

.app-bg {
  background: linear-gradient(180deg, #d6ecff 0%, #e9f5ff 38%, #f6fbff 100%);
  background-attachment: fixed;
}

.app-bg::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(42rem 42rem at 8% -12%, rgba(56, 213, 255, .42), transparent 60%),
    radial-gradient(44rem 44rem at 98% 2%, rgba(30, 139, 255, .34), transparent 62%),
    radial-gradient(38rem 38rem at 82% 96%, rgba(124, 92, 255, .22), transparent 60%);
}

@media (prefers-reduced-motion: no-preference) {
  .app-bg::before {
    animation: blob-drift 26s ease-in-out infinite alternate;
  }
}

@keyframes blob-drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(0, -2%, 0) scale(1.05);
  }
}

.glass {
  background: rgba(255, 255, 255, .64);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, .6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .65), 0 18px 50px -26px rgba(15, 80, 160, .38);
}

.glass-strong {
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 14px 40px -22px rgba(15, 80, 160, .35);
}

.glass-tint {
  background: linear-gradient(150deg, rgba(255, 255, 255, .85), rgba(224, 242, 255, .7));
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid rgba(132, 194, 255, .45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 22px 60px -28px rgba(15, 80, 160, .45);
}

.glass-airy {
  background: rgba(255, 255, 255, .42);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  backdrop-filter: blur(10px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, .5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 16px 44px -24px rgba(15, 80, 160, .32);
}

/* Raised "3D" glass — tactile depth for icon pills (topbar search/bell).
   Scoped to mobile, where these render as glass pills; on >=640px the bell
   becomes a flat ghost button and the search pill is hidden, so depth there
   would only produce a stray floating shadow. */
@media (max-width: 639.98px) {
  .glass-raised {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .9),
      inset 0 -2px 4px rgba(15, 80, 160, .10),
      0 1px 2px rgba(15, 80, 160, .12),
      0 6px 12px -3px rgba(15, 80, 160, .26),
      0 14px 26px -10px rgba(15, 80, 160, .30);
    transition: box-shadow .2s ease, transform .15s ease;
  }
  .glass-raised:hover {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .95),
      inset 0 -2px 5px rgba(15, 80, 160, .12),
      0 2px 4px rgba(15, 80, 160, .14),
      0 10px 18px -4px rgba(15, 80, 160, .30),
      0 20px 36px -12px rgba(15, 80, 160, .34);
    transform: translateY(-1px);
  }
  .glass-raised:active {
    transform: translateY(1px) scale(.96);
    box-shadow:
      inset 0 2px 5px rgba(15, 80, 160, .20),
      inset 0 1px 0 rgba(255, 255, 255, .5),
      0 1px 2px rgba(15, 80, 160, .12);
  }
}

@media (prefers-reduced-motion: reduce) {
  .glass-raised { transition: none; }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {

  .glass,
  .glass-strong,
  .glass-airy {
    background: rgba(255, 255, 255, .92);
  }

  .glass-tint {
    background: linear-gradient(150deg, #ffffff, #eaf6ff);
  }
}

.btn-liquid {
  background-image: linear-gradient(135deg, var(--liquid-1) 0%, var(--liquid-2) 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .35);
  box-shadow: 0 12px 30px -10px rgba(30, 139, 255, .6), inset 0 1px 0 rgba(255, 255, 255, .45);
  transition: filter .2s ease, box-shadow .2s ease, transform .2s ease;
}

.btn-liquid:hover {
  filter: brightness(1.05);
  box-shadow: 0 16px 38px -10px rgba(30, 139, 255, .72), inset 0 1px 0 rgba(255, 255, 255, .5);
}

.btn-liquid:active {
  transform: translateY(1px);
}

.btn-liquid-danger {
  background-image: linear-gradient(135deg, #ff5a7a 0%, #e11d48 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .35);
  box-shadow: 0 12px 30px -10px rgba(225, 29, 72, .55), inset 0 1px 0 rgba(255, 255, 255, .45);
  transition: filter .2s ease, box-shadow .2s ease, transform .2s ease;
}

.btn-liquid-danger:hover {
  filter: brightness(1.05);
  box-shadow: 0 16px 38px -10px rgba(225, 29, 72, .68), inset 0 1px 0 rgba(255, 255, 255, .5);
}

.btn-liquid-danger:active {
  transform: translateY(1px);
}

.btn-liquid-danger:disabled {
  filter: grayscale(.4) brightness(.95);
  cursor: not-allowed;
  opacity: .65;
}

.btn-liquid-danger-soft {
  background: linear-gradient(135deg, rgba(255, 90, 122, .12) 0%, rgba(225, 29, 72, .14) 100%);
  color: #e11d48;
  border: 1px solid rgba(225, 29, 72, .22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 6px 16px -10px rgba(225, 29, 72, .35);
  transition: background .2s ease, box-shadow .2s ease, transform .2s ease, color .2s ease;
}

.btn-liquid-danger-soft:hover {
  background: linear-gradient(135deg, rgba(255, 90, 122, .2) 0%, rgba(225, 29, 72, .24) 100%);
  color: #be123c;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 10px 22px -10px rgba(225, 29, 72, .45);
}

.btn-liquid-danger-soft:active {
  transform: translateY(1px);
}

.btn-liquid-emerald-soft {
  background: linear-gradient(135deg, rgba(52, 211, 153, .12) 0%, rgba(16, 185, 129, .14) 100%);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, .22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 6px 16px -10px rgba(16, 185, 129, .35);
  transition: background .2s ease, box-shadow .2s ease, transform .2s ease, color .2s ease;
}

.btn-liquid-emerald-soft:active {
  transform: translateY(1px);
}

.btn-liquid-amber-soft {
  background: linear-gradient(135deg, rgba(251, 191, 36, .14) 0%, rgba(245, 158, 11, .16) 100%);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, .24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 6px 16px -10px rgba(245, 158, 11, .35);
  transition: background .2s ease, box-shadow .2s ease, transform .2s ease, color .2s ease;
}

.btn-liquid-amber-soft:hover {
  background: linear-gradient(135deg, rgba(251, 191, 36, .22) 0%, rgba(245, 158, 11, .26) 100%);
  color: #92400e;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 10px 22px -10px rgba(245, 158, 11, .45);
}

.btn-liquid-amber-soft:active {
  transform: translateY(1px);
}

.btn-liquid-primary-soft {
  background: linear-gradient(135deg, rgba(30, 139, 255, .12) 0%, rgba(56, 213, 255, .14) 100%);
  color: #0e5dc0;
  border: 1px solid rgba(30, 139, 255, .22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 6px 16px -10px rgba(30, 139, 255, .35);
  transition: background .2s ease, box-shadow .2s ease, transform .2s ease, color .2s ease;
}

.btn-liquid-primary-soft:hover {
  background: linear-gradient(135deg, rgba(30, 139, 255, .2) 0%, rgba(56, 213, 255, .24) 100%);
  color: #124c99;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 10px 22px -10px rgba(30, 139, 255, .45);
}

.btn-liquid-primary-soft:active {
  transform: translateY(1px);
}

.btn-liquid-sky-soft {
  background: linear-gradient(135deg, rgba(56, 189, 248, .12) 0%, rgba(14, 165, 233, .14) 100%);
  color: #0369a1;
  border: 1px solid rgba(14, 165, 233, .22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 6px 16px -10px rgba(14, 165, 233, .35);
  transition: background .2s ease, box-shadow .2s ease, transform .2s ease, color .2s ease;
}

.btn-liquid-sky-soft:hover {
  background: linear-gradient(135deg, rgba(56, 189, 248, .2) 0%, rgba(14, 165, 233, .24) 100%);
  color: #075985;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 10px 22px -10px rgba(14, 165, 233, .45);
}

.btn-liquid-sky-soft:active {
  transform: translateY(1px);
}

.btn-liquid-violet-soft {
  background: linear-gradient(135deg, rgba(167, 139, 250, .12) 0%, rgba(139, 92, 246, .14) 100%);
  color: #6d28d9;
  border: 1px solid rgba(139, 92, 246, .22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 6px 16px -10px rgba(139, 92, 246, .35);
  transition: background .2s ease, box-shadow .2s ease, transform .2s ease, color .2s ease;
}

.btn-liquid-violet-soft:hover {
  background: linear-gradient(135deg, rgba(167, 139, 250, .2) 0%, rgba(139, 92, 246, .24) 100%);
  color: #5b21b6;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 10px 22px -10px rgba(139, 92, 246, .45);
}

.btn-liquid-violet-soft:active {
  transform: translateY(1px);
}

.btn-liquid-lime-soft {
  background: linear-gradient(135deg, rgba(163, 230, 53, .14) 0%, rgba(132, 204, 22, .16) 100%);
  color: #4d7c0f;
  border: 1px solid rgba(132, 204, 22, .24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 6px 16px -10px rgba(132, 204, 22, .35);
  transition: background .2s ease, box-shadow .2s ease, transform .2s ease, color .2s ease;
}

.btn-liquid-lime-soft:hover {
  background: linear-gradient(135deg, rgba(163, 230, 53, .22) 0%, rgba(132, 204, 22, .26) 100%);
  color: #3f6212;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 10px 22px -10px rgba(132, 204, 22, .45);
}

.btn-liquid-lime-soft:active {
  transform: translateY(1px);
}

.btn-liquid-slate-soft {
  background: linear-gradient(135deg, rgba(148, 163, 184, .12) 0%, rgba(100, 116, 139, .14) 100%);
  color: #475569;
  border: 1px solid rgba(100, 116, 139, .22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 6px 16px -10px rgba(100, 116, 139, .3);
  transition: background .2s ease, box-shadow .2s ease, transform .2s ease, color .2s ease;
}

.btn-liquid-slate-soft:hover {
  background: linear-gradient(135deg, rgba(148, 163, 184, .2) 0%, rgba(100, 116, 139, .24) 100%);
  color: #334155;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 10px 22px -10px rgba(100, 116, 139, .4);
}

.btn-liquid-slate-soft:active {
  transform: translateY(1px);
}

a .brand-mark {
  position: relative;
  overflow: hidden;
  background-image: linear-gradient(135deg, var(--liquid-1) 0%, var(--liquid-2) 100%) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, .35) !important;
  box-shadow: 0 12px 30px -10px rgba(30, 139, 255, .6), inset 0 1px 0 rgba(255, 255, 255, .45) !important;
  transition: filter .2s ease, box-shadow .2s ease, transform .2s ease !important;
}

a .brand-mark::after {
  content: "";
  position: absolute;
  inset: -45%;
  background: linear-gradient(115deg, transparent 36%, rgba(255, 255, 255, .62) 50%, transparent 64%);
  transform: translateX(-70%) rotate(8deg);
  opacity: .8;
}

a.group:hover .brand-mark {
  filter: brightness(1.05);
  box-shadow: 0 16px 38px -10px rgba(30, 139, 255, .72), inset 0 1px 0 rgba(255, 255, 255, .5);
  transform: translateY(-1px) scale(1.04);
}

a .brand-mark-glyph {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 4px 8px rgba(6, 63, 145, .22));
}

@media (prefers-reduced-motion: no-preference) {
  a .brand-mark::after {
    animation: brand-shimmer 3.6s ease-in-out infinite;
  }

  a.group:hover .brand-mark-glyph {
    animation: brand-float .9s cubic-bezier(.34, 1.56, .64, 1) both;
  }

  a.group:hover .brand-mark-orbit {
    animation: brand-orbit .9s ease both;
  }
}

@keyframes brand-shimmer {

  0%,
  42% {
    transform: translateX(-75%) rotate(8deg);
  }

  62%,
  100% {
    transform: translateX(75%) rotate(8deg);
  }
}

@keyframes brand-float {
  0% {
    transform: rotate(0deg) scale(1);
  }

  55% {
    transform: rotate(-7deg) scale(1.08);
  }

  100% {
    transform: rotate(0deg) scale(1);
  }
}

@keyframes brand-orbit {
  from {
    stroke-dasharray: 0 120;
  }

  to {
    stroke-dasharray: 86 120;
  }
}

.fab-glow {
  background-image: linear-gradient(135deg, var(--liquid-1) 0%, var(--liquid-2) 100%);
  box-shadow: 0 14px 34px -8px rgba(30, 139, 255, .65), inset 0 1px 0 rgba(255, 255, 255, .5);
}

.fab-glow:active {
  transform: translateY(1px) scale(.97);
}

.quick-fab {
  left: calc(50% - 2.25rem);
  bottom: calc(28px + env(safe-area-inset-bottom));
  width: 4.5rem;
  height: 4.5rem;
}

.quick-fab summary::-webkit-details-marker {
  display: none;
}

.quick-fab-trigger {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100%;
  border-radius: 9999px;
  touch-action: manipulation;
  box-shadow: 0 22px 50px -10px rgba(30, 139, 255, .82), 0 0 0 6px rgba(255, 255, 255, .7), inset 0 1px 0 rgba(255, 255, 255, .6);
  transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s ease;
}

.quick-fab-glyph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  transition: opacity .28s ease, transform .35s cubic-bezier(.34, 1.56, .64, 1);
}

.quick-fab-glyph--close {
  opacity: 0;
  transform: rotate(-90deg) scale(.6);
}

.quick-fab[open] .quick-fab-glyph--plus {
  opacity: 0;
  transform: rotate(60deg) scale(.6);
}

.quick-fab[open] .quick-fab-glyph--close {
  opacity: 1;
  transform: none;
}

.quick-fab-trigger::after {
  content: "Quick";
  position: absolute;
  left: 50%;
  top: -1.4rem;
  transform: translateX(-50%);
  font-size: .625rem;
  font-weight: 800;
  letter-spacing: .04em;
  color: #0f72e6;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 999px;
  padding: .125rem .55rem;
  box-shadow: 0 10px 24px -16px rgba(15, 80, 160, .45);
  transition: opacity .18s ease, transform .24s ease;
  pointer-events: none;
}

.quick-fab[open] .quick-fab-trigger {
  transform: scale(.96);
  box-shadow: 0 24px 60px -10px rgba(30, 139, 255, .95), 0 0 0 6px rgba(255, 255, 255, .85), inset 0 1px 0 rgba(255, 255, 255, .6);
}

.quick-fab[open] .quick-fab-trigger::after {
  opacity: 0;
  transform: translateX(-50%) translateY(-4px);
}

.quick-fab-backdrop {
  position: fixed;
  inset: 0;
  background: radial-gradient(120% 80% at 50% 100%, rgba(15, 80, 160, .42) 0%, rgba(15, 80, 160, .25) 45%, rgba(15, 80, 160, 0) 80%);
  -webkit-backdrop-filter: blur(4px) saturate(140%);
  backdrop-filter: blur(4px) saturate(140%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
  z-index: 1;
}

.quick-fab[open] .quick-fab-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.quick-fab-menu {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.quick-fab[open] .quick-fab-menu {
  pointer-events: auto;
}

.quick-fab-item {
  position: fixed;
  left: 50%;
  bottom: calc(60px + env(safe-area-inset-bottom));
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: .25rem;
  width: 3.5rem;
  text-decoration: none;
  opacity: 0;
  transform: translateX(-50%) translateY(8px) scale(.4);
  /* Close transition: quick & snappy collapse */
  transition:
    left .25s cubic-bezier(.4, 0, .7, .2),
    bottom .25s cubic-bezier(.4, 0, .7, .2),
    transform .2s cubic-bezier(.4, 0, .7, .2),
    opacity .15s ease;
  transition-delay: calc(var(--close-delay, 0) * 1ms);
}

.quick-fab[open] .quick-fab-item {
  left: calc(50% + var(--x));
  bottom: calc(60px + env(safe-area-inset-bottom) + var(--y));
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
  /* Open transition: smooth spring-like expansion */
  transition:
    left .5s cubic-bezier(.22, 1.2, .36, 1),
    bottom .5s cubic-bezier(.22, 1.2, .36, 1),
    transform .45s cubic-bezier(.22, 1.2, .36, 1),
    opacity .3s ease;
  transition-delay: var(--delay);
}

.quick-fab-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 1.25rem;
  color: #0f72e6;
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: 0 18px 40px -16px rgba(15, 80, 160, .55), inset 0 1px 0 rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  transition: transform .18s ease;
}

.quick-fab-label {
  max-width: 4rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-radius: 999px;
  padding: .125rem .375rem;
  color: #08233f;
  background: rgba(255, 255, 255, .94);
  font-size: .625rem;
  font-weight: 800;
  letter-spacing: .01em;
  box-shadow: 0 10px 22px -16px rgba(15, 80, 160, .55);
}

.quick-fab-item:active .quick-fab-icon {
  transform: scale(.92);
}

.dock-notch {
  display: block;
  width: 100%;
  height: 100%;
}

@keyframes sheet-in {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(.96);
  }

  60% {
    opacity: 1;
    transform: translateY(-3px) scale(1.005);
  }

  100% {
    opacity: 1;
    transform: none;
  }
}

.sheet-in {
  animation: sheet-in .35s cubic-bezier(.34, 1.56, .64, 1) both;
}

.press {
  transition: transform .18s ease, box-shadow .18s ease;
}

.press:active {
  transform: scale(.985);
}

.leaflet-container {
  background: #dcefff;
}

.scroll-cue-right {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 2.5rem;
  pointer-events: none;
  background: linear-gradient(to left, rgba(241, 248, 255, 0.95), rgba(241, 248, 255, 0));
  border-top-right-radius: 1rem;
  border-bottom-right-radius: 1rem;
}

.mobile-sticky-bar {
  bottom: 0;
  border-radius: 1.25rem 1.25rem 0 0;
  box-shadow: 0 -8px 24px -10px rgba(15, 80, 160, 0.18);
}

@media (max-width: 1023px) {
  .mobile-sticky-bar {
    bottom: calc(72px + env(safe-area-inset-bottom));
    background: rgb(0 0 0 / 16%);
    border: 1px solid rgba(255, 255, 255, 0.34);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    backdrop-filter: blur(12px) saturate(160%);
    box-shadow:
      0 10px 28px -10px rgba(15, 80, 160, 0.32),
      inset 0 1px 0 rgba(255, 255, 255, 0.5),
      inset 0 -1px 0 rgba(255, 255, 255, 0.1);
  }
}

.country-sheet {
  max-height: 85svh;
  max-height: 85vh;
  transition: transform 0.2s ease, max-height 0.2s ease;
}

@supports (height: 100dvh) {
  .country-sheet {
    max-height: min(85dvh, 720px);
  }
}

html,
body {
  overflow-x: clip;
}

/* Gallery modal */
#gallery-modal img {
  transition: opacity .25s ease;
}

#gallery-modal:not(.hidden) {
  animation: fade-in .2s ease both;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Note editor */
.note-editor textarea {
  min-height: 3.5rem;
  max-height: 10rem;
  transition: border-color .2s ease;
}

.note-editor textarea:focus {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.note-display {
  transition: opacity .2s ease;
}

/* Line clamp utility (for photo captions etc.) */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Swipe-to-reveal actions (mobile only) ── */
/* Default: hidden on desktop */
.swipe-actions {
  display: none !important;
}

@media (max-width: 1023px) {
  .swipe-container {
    position: relative;
  }

  .swipe-actions {
    display: flex !important;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    align-items: stretch;
    gap: 2px;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 150ms ease;
  }

  .swipe-actions.visible {
    pointer-events: auto;
    opacity: 1;
  }

  .swipe-actions button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 72px;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    border: none;
    cursor: pointer;
  }

  .swipe-actions button:first-child {
    border-radius: 0;
  }

  .swipe-actions button:last-child {
    border-radius: 0 1rem 1rem 0;
  }

  .swipe-action-edit {
    background: #2563eb;
  }

  .swipe-action-delete {
    background: #ef4444;
  }

  .swipe-content {
    position: relative;
    z-index: 2;
    background: #fff;
    transition: transform 250ms cubic-bezier(.34, 1.56, .64, 1);
    will-change: transform;
  }

  .swipe-content.swiping {
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) {

  .active\:scale-95:active,
  .active\:scale-\[\.99\]:active,
  .quick-fab-trigger,
  .quick-fab-item,
  .sheet-in,
  .toast-enter {
    transform: none !important;
    animation: none !important;
  }
}

/* ──────────────────────────────────────────────────────────────────────────
   Trip Portfolio Calendar (plan-2c)
   ────────────────────────────────────────────────────────────────────────── */
.trip-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.trip-calendar-grid > .trip-day {
  position: relative;
  min-width: 0;
  display: flex;
  align-self: stretch;
  min-height: 56px;
}

@media (min-width: 1024px) {
  .trip-calendar-grid > .trip-day {
    min-height: var(--week-min, 88px);
  }
}

.trip-day-btn {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 56px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .58);
  border: 1px solid rgba(255, 255, 255, .6);
  text-align: left;
  padding: 6px 6px 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  transition: background .15s ease, transform .12s ease, box-shadow .15s ease, border-color .15s ease;
  color: #08233f;
}

@media (min-width: 1024px) {
  .trip-day-btn {
    padding: 8px 8px 6px;
    border-radius: 16px;
  }
}

.trip-day-btn:hover {
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 8px 24px -16px rgba(15, 80, 160, .35);
}

.trip-day-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(56, 213, 255, .55);
}

.trip-day--out {
  opacity: .42;
}

.trip-day--out .trip-day-btn {
  background: rgba(255, 255, 255, .25);
  border-color: transparent;
}

.trip-day--today .trip-day-btn {
  box-shadow: inset 0 0 0 2px rgba(15, 114, 230, .9);
}

.trip-day--selected .trip-day-btn {
  background: linear-gradient(160deg, rgba(30, 139, 255, .92), rgba(56, 213, 255, .88));
  color: #fff;
  border-color: rgba(255, 255, 255, .5);
  box-shadow: 0 16px 34px -14px rgba(30, 139, 255, .55);
}

.trip-day--selected .trip-day-num {
  color: #fff;
}

.trip-day-num {
  font-size: 13px;
  font-weight: 700;
  color: #1f3960;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 22px;
  padding: 0 5px;
  border-radius: 999px;
}

.trip-day--today .trip-day-num {
  background: #0f72e6;
  color: #fff;
}

.trip-event-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  min-height: 24px;
  padding: 4px 8px 4px 11px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  border-radius: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border: 1px solid transparent;
  box-shadow: 0 10px 18px -16px rgba(15, 35, 65, .35);
  transition: box-shadow .15s ease, transform .12s ease, border-color .15s ease;
}

.trip-event-bar::before {
  content: "";
  position: absolute;
  inset: 4px auto 4px 4px;
  width: 3px;
  border-radius: 999px;
  background: currentColor;
  opacity: .82;
}

.trip-event-bar:hover {
  box-shadow: 0 13px 24px -15px rgba(15, 35, 65, .5);
  transform: translateY(-1px);
}

.trip-event-bar:active {
  transform: translateY(0);
}

.trip-event-bar:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(56, 213, 255, .55), 0 13px 24px -15px rgba(15, 35, 65, .5);
}

.trip-event-meta {
  flex: 0 0 auto;
  margin-left: auto;
  padding: 3px 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .58);
  color: inherit;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  opacity: .84;
}

.trip-event-bar--planning {
  background: linear-gradient(180deg, #ecf6ff, #d8ebff);
  color: #0e5dc0;
  border-color: #b6dbff;
}

.trip-event-bar--confirmed {
  background: linear-gradient(180deg, #ecfdf5, #d1fae5);
  color: #047857;
  border-color: #a7f3d0;
}

.trip-event-bar--traveling {
  background: linear-gradient(180deg, #eef2ff, #e0e7ff);
  color: #4338ca;
  border-color: #c7d2fe;
}

.trip-event-bar--draft {
  background: linear-gradient(180deg, #fffbeb, #fef3c7);
  color: #b45309;
  border-color: #fde68a;
}

.trip-event-bar--completed {
  background: linear-gradient(180deg, #f5f3ff, #ede9fe);
  color: #6d28d9;
  border-color: #ddd6fe;
}

.trip-event-bar--slate {
  background: linear-gradient(180deg, #f8fafc, #f1f5f9);
  color: #475569;
  border-color: #e2e8f0;
}

/* Mobile compact dots inside day cells */
.trip-event-dots {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-wrap: wrap;
}

.trip-event-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 999px;
}

.trip-event-dot--planning  { background: #1e8bff; }
.trip-event-dot--confirmed { background: #10b981; }
.trip-event-dot--traveling { background: #6366f1; }
.trip-event-dot--draft     { background: #f59e0b; }
.trip-event-dot--completed { background: #8b5cf6; }
.trip-event-dot--slate     { background: #94a3b8; }

.trip-day--selected .trip-event-dot {
  background: rgba(255, 255, 255, .92) !important;
}

/* Multi-day spans (desktop overlay) */
.trip-week-row {
  position: relative;
  min-height: 56px;
}

@media (min-width: 1024px) {
  .trip-week-row {
    min-height: var(--week-min, 88px);
  }
}

.trip-calendar-grid {
  height: 100%;
}

.trip-week-spans {
  position: absolute;
  inset: 0;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  column-gap: 4px;
  padding-top: 32px;
  padding-bottom: 6px;
  grid-auto-rows: 24px;
  row-gap: 4px;
  pointer-events: none;
}

.trip-week-spans > * {
  pointer-events: auto;
  min-width: 0;
  align-self: start;
}

[data-view="cards"] .pane-calendar,
[data-view="cards"] .pane-mobile-snapshot,
[data-view="cards"] .pane-desktop-snapshot {
  display: none !important;
}

@media (min-width: 1280px) {
  .pane-desktop-snapshot {
    max-height: calc(100vh - 6rem);
    overflow-y: auto;
    scrollbar-width: thin;
  }
}

/* Snapshot donut */
.trip-snapshot-donut {
  position: relative;
  width: 132px;
  height: 132px;
  border-radius: 999px;
  background: var(--donut-bg, conic-gradient(#e2e8f0 0 100%));
  display: grid;
  place-items: center;
}

.trip-snapshot-donut::after {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
}

.trip-snapshot-donut > .donut-center {
  position: relative;
  z-index: 1;
  text-align: center;
}

/* Mobile segmented control (Calendar | Cards) */
.trip-segmented {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .65);
  border: 1px solid rgba(255, 255, 255, .6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .65);
}

.trip-segmented [role="tab"] {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
  min-height: 36px;
}

.trip-segmented [role="tab"][aria-selected="true"] {
  background: linear-gradient(135deg, var(--liquid-1) 0%, var(--liquid-2) 100%);
  color: #fff;
  box-shadow: 0 10px 26px -12px rgba(30, 139, 255, .55), inset 0 1px 0 rgba(255, 255, 255, .45);
}

/* Stat card */
.trip-stat-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 14px 12px;
  border-radius: 22px;
  min-width: 132px;
}

@media (max-width: 639px) {
  .trip-stat-card {
    min-width: 124px;
    padding: 12px 12px 10px;
    border-radius: 18px;
  }
}

.trip-stat-card .icon-tile {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 8px 18px -10px rgba(15, 80, 160, .55), inset 0 1px 0 rgba(255, 255, 255, .45);
}

.icon-tile--blue   { background: linear-gradient(135deg, #1e8bff, #38d5ff); }
.icon-tile--green  { background: linear-gradient(135deg, #10b981, #34d399); }
.icon-tile--violet { background: linear-gradient(135deg, #8b5cf6, #c084fc); }
.icon-tile--amber  { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.icon-tile--rose   { background: linear-gradient(135deg, #f43f5e, #fb7185); }

/* Mobile horizontal scroll cue */
.trip-stat-rail {
  scroll-snap-type: x mandatory;
}

.trip-stat-rail > * {
  scroll-snap-align: start;
}

/* Calendar weekday header */
.trip-weekday-row {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #64748b;
  padding: 4px 0;
}

.trip-weekday-row > span {
  text-align: center;
}

/* Reset filters button */
.trip-reset-filters {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #0e5dc0;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(216, 235, 255, .6);
  border: 1px solid rgba(132, 194, 255, .4);
  transition: background .18s ease;
}

.trip-reset-filters:hover {
  background: rgba(216, 235, 255, .9);
}

/* Section heading row */
.trip-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.trip-section-head h2 {
  font-size: 16px;
  font-weight: 800;
  color: #08233f;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

@media (min-width: 640px) {
  .trip-section-head h2 {
    font-size: 18px;
  }
}

.trip-section-head .count-pill {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(216, 235, 255, .6);
  color: #0e5dc0;
}

/* Mobile list item (Upcoming list) */
.trip-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 20px;
  transition: transform .12s ease, box-shadow .15s ease;
}

.trip-list-item:active {
  transform: scale(.992);
}

.trip-list-item .thumb {
  width: 72px;
  height: 56px;
  border-radius: 14px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #1e8bff, #38d5ff);
  overflow: hidden;
  position: relative;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.trip-list-item .thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (prefers-reduced-motion: reduce) {
  .trip-day-btn,
  .trip-event-bar,
  .trip-list-item,
  .trip-segmented [role="tab"] {
    transition: none !important;
  }
}

[data-trip-portfolio] {
  position: relative;
}

[data-portfolio-pane] {
  transition: opacity .15s ease;
}

[data-trip-portfolio][data-loading="true"] [data-portfolio-pane] {
  opacity: .55;
  pointer-events: none;
}

.portfolio-pane-fade-enter {
  opacity: 0;
}

.portfolio-toast {
  position: fixed;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(15, 35, 60, .94);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 20px 50px -16px rgba(8, 35, 63, .6), inset 0 1px 0 rgba(255, 255, 255, .15);
  animation: portfolio-toast-rise .3s cubic-bezier(.34, 1.56, .64, 1);
  max-width: calc(100vw - 32px);
}

@media (max-width: 1023px) {
  .portfolio-toast {
    bottom: calc(96px + env(safe-area-inset-bottom));
  }
}

.portfolio-toast-retry {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--liquid-1), var(--liquid-2));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: filter .15s ease, transform .15s ease;
}

.portfolio-toast-retry:hover { filter: brightness(1.1); }
.portfolio-toast-retry:active { transform: translateY(1px); }

@keyframes portfolio-toast-rise {
  from { opacity: 0; transform: translate(-50%, 16px) scale(.94); }
  to   { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

/* Trip timeline liquid-glass actions */
.trip-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72), 0 10px 22px -18px rgba(15, 80, 160, .4);
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}

.trip-action-btn:hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 14px 28px -18px rgba(15, 80, 160, .52);
}

.trip-action-btn:active {
  transform: scale(.97);
}

.trip-action-btn--maps {
  color: #047857;
  background: linear-gradient(135deg, rgba(236, 253, 245, .82), rgba(209, 250, 229, .62));
  border-color: rgba(167, 243, 208, .64);
}

.trip-action-btn--maps:hover {
  background: linear-gradient(135deg, rgba(209, 250, 229, .92), rgba(187, 247, 208, .74));
}

.trip-action-btn--maps-edit {
  color: #059669;
  background: linear-gradient(135deg, rgba(236, 253, 245, .74), rgba(209, 250, 229, .48));
  border-color: rgba(167, 243, 208, .54);
}

.trip-action-btn--copy {
  color: #475569;
  background: linear-gradient(135deg, rgba(248, 250, 252, .84), rgba(241, 245, 249, .62));
  border-color: rgba(226, 232, 240, .68);
}

.trip-action-btn--copy:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, .9), rgba(241, 245, 249, .78));
}

.trip-action-btn--copied {
  color: #059669;
  background: linear-gradient(135deg, rgba(236, 253, 245, .92), rgba(209, 250, 229, .72));
  border-color: rgba(167, 243, 208, .74);
}

.trip-action-btn--gallery {
  color: #7c3aed;
  background: linear-gradient(135deg, rgba(245, 243, 255, .86), rgba(237, 233, 254, .62));
  border-color: rgba(221, 214, 254, .68);
}

.trip-action-btn--gallery:hover {
  background: linear-gradient(135deg, rgba(237, 233, 254, .94), rgba(221, 214, 254, .74));
}

.trip-action-btn--photo {
  color: #0284c7;
  background: linear-gradient(135deg, rgba(240, 249, 255, .86), rgba(224, 242, 254, .62));
  border-color: rgba(186, 230, 253, .68);
}

.trip-action-btn--photo:hover {
  background: linear-gradient(135deg, rgba(224, 242, 254, .94), rgba(186, 230, 253, .74));
}

/* Share activity cards */
.share-activity-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .76), rgba(238, 247, 255, .58));
  border: 1px solid rgba(255, 255, 255, .78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72), 0 16px 34px -28px rgba(15, 80, 160, .48);
}

.share-activity-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 16px;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .42), 0 12px 22px -16px rgba(15, 35, 65, .5);
}

.share-activity-icon--mail {
  background: linear-gradient(135deg, #1e8bff, #38d5ff);
}

.share-activity-icon--joined {
  background: linear-gradient(135deg, #06c755, #34d399);
}

.share-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  text-transform: capitalize;
}

.share-status-pill--sent {
  color: #0e5dc0;
  background: rgba(216, 235, 255, .72);
}

.share-status-pill--joined {
  color: #047857;
  background: rgba(209, 250, 229, .78);
}

.share-delete-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 14px;
  color: #e11d48;
  background: linear-gradient(135deg, rgba(255, 90, 122, .12) 0%, rgba(225, 29, 72, .14) 100%);
  border: 1px solid rgba(225, 29, 72, .22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .68), 0 8px 18px -14px rgba(225, 29, 72, .42);
  font-size: 14px;
  font-weight: 700;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease, transform .12s ease;
}

.share-delete-btn:hover {
  color: #be123c;
  background: linear-gradient(135deg, rgba(255, 90, 122, .2) 0%, rgba(225, 29, 72, .24) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72), 0 12px 24px -16px rgba(225, 29, 72, .52);
}

.share-delete-btn:active {
  transform: scale(.96);
}

.share-delete-btn:disabled {
  opacity: .55;
  cursor: wait;
}

@media (max-width: 639px) {
  .trip-stat-rail {
    -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 28px), transparent 100%);
            mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 28px), transparent 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-portfolio-pane],
  .portfolio-toast,
  .portfolio-pane-fade-enter {
    transition: none !important;
    animation: none !important;
  }
}

[data-trip-portfolio][data-loading="true"]::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--liquid-1), var(--liquid-2), transparent);
  animation: portfolio-loading-slide 1.1s ease-in-out infinite;
  z-index: 100;
  pointer-events: none;
}

@keyframes portfolio-loading-slide {
  from { transform: translateX(-40%); }
  to   { transform: translateX(40%); }
}

@media (prefers-reduced-motion: reduce) {
  [data-trip-portfolio][data-loading="true"]::after {
    animation: none;
    background: var(--liquid-1);
  }
}

.notification-tab {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0 0.875rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 800;
  color: #64748b;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.68);
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.notification-tab:hover {
  background: rgba(255, 255, 255, 0.86);
  color: #0f172a;
}

.notification-tab.is-active {
  color: #fff;
  background-image: linear-gradient(135deg, var(--liquid-1), var(--liquid-2));
  border-color: transparent;
  box-shadow: 0 10px 24px -14px rgba(30, 139, 255, 0.7);
}

.notification-row {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.58);
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.notification-row:hover {
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 32px -24px rgba(15, 80, 160, 0.45);
}

.notification-row:active {
  transform: scale(0.985);
}

.notification-row[data-unread="true"] {
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.92), rgba(225, 242, 255, 0.78));
}

.notification-unread-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: #0f72e6;
  box-shadow: 0 0 0 3px rgba(15, 114, 230, 0.12);
}

@keyframes bounce-card-in-mobile {
  0%   { transform: translateY(120%) scale(0.94); opacity: 0; }
  60%  { transform: translateY(-8px) scale(1.02); opacity: 1; }
  80%  { transform: translateY(2px) scale(0.99); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes bounce-card-in-desktop {
  0%   { transform: translateX(120%) scale(0.96); opacity: 0; }
  60%  { transform: translateX(-6px) scale(1.02); opacity: 1; }
  100% { transform: translateX(0) scale(1); opacity: 1; }
}

@keyframes bounce-card-out-mobile {
  to { transform: translateY(120%) scale(0.94); opacity: 0; }
}

@keyframes bounce-card-out-desktop {
  to { transform: translateX(120%) scale(0.96); opacity: 0; }
}

@keyframes bounce-card-progress-deplete {
  from { transform: scaleX(1); }
  to   { transform: scaleX(0); }
}

.bounce-card-in {
  animation: bounce-card-in-mobile 520ms cubic-bezier(.34, 1.56, .64, 1) both;
}

.bounce-card-out {
  animation: bounce-card-out-mobile 320ms ease-in both;
}

@media (min-width: 769px) {
  .bounce-card-in {
    animation-name: bounce-card-in-desktop;
  }
  .bounce-card-out {
    animation-name: bounce-card-out-desktop;
  }
}

.bounce-card-progress-anim {
  animation: bounce-card-progress-deplete var(--bc-duration, 5000ms) linear forwards;
}

@media (prefers-reduced-motion: reduce) {
  .bounce-card-in,
  .bounce-card-out {
    animation: none !important;
    transition: opacity 200ms ease !important;
  }
  .bounce-card-progress-anim {
    animation: none !important;
  }
  .notification-row,
  .notification-tab {
    transition: none !important;
  }
}

.dashboard-hero-glow {
  background:
    radial-gradient(28rem 20rem at 12% 0%, rgba(56, 213, 255, .28), transparent 65%),
    radial-gradient(24rem 18rem at 92% 12%, rgba(30, 139, 255, .22), transparent 70%);
}

.dashboard-chip-scroll {
  scroll-padding-inline: 1rem;
}

.dashboard-chip-fade {
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 1.25rem, #000 calc(100% - 1.25rem), transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 1.25rem, #000 calc(100% - 1.25rem), transparent 100%);
}

@media (min-width: 640px) {
  .dashboard-chip-fade {
    -webkit-mask-image: none;
            mask-image: none;
  }
}

.dashboard-status-chip {
  white-space: nowrap;
}

.dashboard-status-chip--active {
  color: #ffffff;
  background-image: linear-gradient(135deg, #1e8bff 0%, #38d5ff 100%);
  box-shadow: 0 6px 18px -6px rgba(30, 139, 255, .5);
}

.dashboard-progress {
  overflow: hidden;
  transform: translateZ(0);
}

.dashboard-progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background-image: linear-gradient(135deg, #1e8bff 0%, #38d5ff 100%);
  transition: width .6s cubic-bezier(.16, 1, .3, 1);
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-progress > span {
    transition: none;
  }
}

.checklist-complete-pulse {
  animation: checklist-complete-pulse 700ms cubic-bezier(.34, 1.56, .64, 1);
}

@keyframes checklist-complete-pulse {
  0%   { transform: scaleY(1); filter: brightness(1); }
  40%  { transform: scaleY(1.8); filter: brightness(1.25); }
  100% { transform: scaleY(1); filter: brightness(1); }
}

@media (prefers-reduced-motion: reduce) {
  .checklist-complete-pulse {
    animation: none;
  }
}

/* ============================================================
   Settings Hub (Phase 23.4 — Travel Settings Hub)
   ============================================================ */

.settings-page {
  --settings-liquid-1: #f8fcff;
  --settings-liquid-2: #aee7ff;
  --settings-liquid-3: #a78bfa;
  --settings-champagne: #f6d68c;
  --settings-ring: rgba(125, 211, 252, .72);
}

.settings-stats-rail {
  scroll-snap-type: x mandatory;
}
.settings-stats-rail > * {
  scroll-snap-align: start;
}

@media (max-width: 639px) {
  .settings-stats-rail {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
  }
}

.settings-tab-active {
  background-image: linear-gradient(135deg, var(--liquid-1) 0%, var(--liquid-2) 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .35);
  box-shadow: 0 12px 30px -10px rgba(30, 139, 255, .6), inset 0 1px 0 rgba(255, 255, 255, .45);
  transition: filter .2s ease, box-shadow .2s ease, transform .2s ease;
}

.settings-progress-bar {
  background-image: linear-gradient(135deg, var(--settings-liquid-2) 0%, var(--settings-liquid-3) 68%, var(--settings-champagne) 100%);
  transition: width .8s cubic-bezier(.16, 1, .3, 1);
}

@media (prefers-reduced-motion: reduce) {
  .settings-progress-bar { transition: none; }
}

.settings-toggle {
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease;
}
.settings-toggle:focus-visible {
  outline: 2px solid var(--settings-ring);
  outline-offset: 2px;
}
.settings-toggle-knob {
  transition: transform .2s cubic-bezier(.34, 1.56, .64, 1), background-color .2s ease;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .settings-toggle-knob { transition: none; }
}

.settings-calendar-day {
  min-height: 40px;
  -webkit-tap-highlight-color: transparent;
}
.settings-calendar-day:focus-visible {
  outline: 2px solid var(--settings-ring);
  outline-offset: 2px;
}

.settings-category-card {
  transition: transform .18s ease, box-shadow .18s ease;
}
.settings-category-card:focus-visible {
  outline: 2px solid var(--settings-ring);
  outline-offset: 2px;
}

.settings-level-badge {
  position: relative;
  overflow: hidden;
  color: #14283f;
  border-color: rgba(255, 255, 255, .72) !important;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 255, 255, .9), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, .78) 0%, rgba(232, 247, 255, .68) 52%, rgba(246, 214, 140, .34) 100%) !important;
  box-shadow: 0 12px 30px -20px rgba(30, 139, 255, .5), inset 0 1px 0 rgba(255, 255, 255, .78);
  backdrop-filter: blur(18px) saturate(1.18);
}

.settings-level-badge > span:first-child {
  color: #fffaf0 !important;
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, .88), transparent 28%),
    linear-gradient(135deg, #f8d78d 0%, #d7a843 45%, #a78bfa 100%) !important;
  box-shadow: 0 10px 20px -12px rgba(168, 120, 30, .8), inset 0 1px 0 rgba(255, 255, 255, .58);
}

.settings-level-badge .text-slate-500 {
  color: rgba(20, 40, 63, .62) !important;
}

.settings-quick-action {
  transition: transform .18s ease, box-shadow .18s ease;
}

.settings-next-trip-card {
  position: relative;
  overflow: hidden;
  color: #10233a !important;
  border: 1px solid rgba(255, 255, 255, .58);
  background:
    radial-gradient(circle at 14% 12%, rgba(255, 255, 255, .78), transparent 30%),
    radial-gradient(circle at 92% 8%, rgba(246, 214, 140, .5), transparent 34%),
    linear-gradient(135deg, #f8fcff 0%, #b9ecff 34%, #a78bfa 74%, #f6d68c 100%) !important;
  box-shadow: 0 18px 42px -22px rgba(30, 139, 255, .62), 0 12px 30px -24px rgba(139, 92, 246, .55), inset 0 1px 0 rgba(255, 255, 255, .72);
  transition: filter .18s ease, transform .18s ease, box-shadow .18s ease;
}

.settings-next-trip-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 48px -22px rgba(30, 139, 255, .72), 0 14px 34px -24px rgba(139, 92, 246, .65), inset 0 1px 0 rgba(255, 255, 255, .82);
}

@media (prefers-reduced-motion: reduce) {
  .settings-category-card,
  .settings-quick-action,
  .settings-next-trip-card {
    transition: none;
  }
}

/* Mobile pane swap (Overview / Calendar tabs).
   `xl:` (1280px) and up always shows both panes side-by-side. */
@media (max-width: 1279px) {
  [data-pane-hidden-mobile] { display: none; }
}

/* User-forced reduce-motion (via Settings toggle) — supersedes media query. */
.reduce-motion-forced *,
.reduce-motion-forced *::before,
.reduce-motion-forced *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
  scroll-behavior: auto !important;
}

/* Settings calendar AJAX swap states */
[data-settings-target][data-loading="true"] {
  position: relative;
  opacity: .6;
  pointer-events: none;
  filter: blur(.4px);
}
[data-settings-target][data-loading="true"]::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent);
  background-size: 200% 100%;
  animation: settings-skeleton-shimmer 1.1s linear infinite;
  pointer-events: none;
  border-radius: inherit;
}

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

.settings-pane-fade-enter {
  animation: settings-pane-fade .24s ease-out;
}

@keyframes settings-pane-fade {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  [data-settings-target][data-loading="true"]::after { animation: none; }
  .settings-pane-fade-enter { animation: none; }
}

.vip-tier-rail {
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.vip-tier-rail::-webkit-scrollbar { display: none; }
.vip-tier-card { scroll-snap-align: center; }

.vip-tabs {
  scrollbar-width: none;
}
.vip-tabs::-webkit-scrollbar { display: none; }

.vip-tab-btn {
  position: relative;
  padding: 0.55rem 0.95rem;
  border-radius: 0.875rem;
  font-weight: 700;
  font-size: 0.875rem;
  color: rgb(100 116 139);
  background: transparent;
  border: 1px solid transparent;
  transition: color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
  min-height: 2.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  cursor: pointer;
}
.vip-tab-btn:hover {
  color: rgb(15 23 42);
  background: rgb(255 255 255 / .55);
}
.vip-tab-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgb(30 139 255 / .55);
}
.vip-tab-active {
  color: rgb(15 23 42);
  background: linear-gradient(135deg, rgb(255 255 255 / .92), rgb(255 255 255 / .72));
  border-color: rgb(255 255 255 / .7);
  box-shadow: 0 10px 22px -10px rgba(30, 139, 255, .35), inset 0 1px 0 rgba(255, 255, 255, .55);
}

.vip-panel[hidden] { display: none !important; }

.vip-badge--premium img {
  transition: transform .35s ease, filter .35s ease;
}
.vip-badge--premium:hover img {
  transform: translateY(-2px) scale(1.015);
  filter: brightness(1.04);
}

/* ── Premium polish: diagonal light sweep on hover ──────────── */
.premium-sheen { position: relative; }
.premium-sheen::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 5;
  background: linear-gradient(115deg,
    transparent 32%,
    rgba(255, 255, 255, .12) 44%,
    rgba(255, 255, 255, .55) 50%,
    rgba(255, 255, 255, .12) 56%,
    transparent 68%);
  transform: translateX(-130%);
  opacity: 0;
}
.premium-sheen:hover::after,
.group:hover .premium-sheen::after {
  animation: premium-sweep 1.05s cubic-bezier(.25, .6, .3, 1) forwards;
}
@keyframes premium-sweep {
  0%   { transform: translateX(-130%); opacity: 0; }
  18%  { opacity: 1; }
  100% { transform: translateX(130%); opacity: 0; }
}

/* Metallic gold gradient text for premium tier labels */
.text-metallic-gold {
  background: linear-gradient(135deg, #9a6b16 0%, #e7bf63 24%, #fff6da 46%, #e2b24e 62%, #a9761c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .35));
}

/* Rotating conic gold rim behind the profile avatar */
.premium-avatar-ring::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 9999px;
  z-index: 0;
  background: conic-gradient(from 140deg,
    #c8902f, #f6dd92, #fffbe9, #e6b94f, #b07e22, #f6dd92, #c8902f);
  opacity: .95;
  animation: premium-ring-spin 9s linear infinite;
}
.premium-avatar-ring > * { position: relative; z-index: 1; }
@keyframes premium-ring-spin { to { transform: rotate(360deg); } }

.sapphire-spotlight {
  position: absolute;
  pointer-events: none;
  border-radius: 9999px;
  background:
    radial-gradient(ellipse at 35% 45%,
      rgba(255, 255, 255, .22) 0%,
      rgba(125, 211, 252, .18) 28%,
      rgba(99, 102, 241, .14) 48%,
      transparent 68%);
  filter: blur(28px);
  mix-blend-mode: screen;
}

.vip-halo-glow { position: relative; }
.vip-halo-glow::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: inherit;
  background: radial-gradient(ellipse at 50% 55%,
    rgba(245, 205, 120, .4) 0%,
    rgba(245, 205, 120, .14) 38%,
    transparent 72%);
  filter: blur(16px);
  z-index: -1;
  opacity: .85;
  pointer-events: none;
  transition: opacity .35s ease, transform .35s ease;
}
.vip-halo-glow:hover::before { opacity: 1; transform: scale(1.02); }

.gradient-guest-badge {
  background: linear-gradient(135deg, #fde68a 0%, #fbbf24 50%, #f59e0b 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .55),
    inset 0 -1px 0 rgba(120, 53, 15, .25),
    0 6px 18px -6px rgba(217, 119, 6, .55);
}

@media (prefers-reduced-motion: reduce) {
  .vip-tab-btn,
  .vip-tier-card,
  .vip-badge--premium img {
    transition: none;
  }
  .vip-tier-rail { scroll-behavior: auto; }
  .premium-sheen:hover::after,
  .group:hover .premium-sheen::after { animation: none; opacity: 0; }
  .premium-avatar-ring::before { animation: none; }
  .vip-halo-glow:hover::before { transform: none; }
}

.vip-tier-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: rgb(203 213 225 / .8);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: width .25s ease, background .25s ease, box-shadow .25s ease, transform .2s ease;
  flex-shrink: 0;
}
.vip-tier-dot:hover {
  background: rgb(148 163 184);
  transform: scale(1.15);
}
.vip-tier-dot:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgb(30 139 255 / .55);
}
.vip-tier-dot-active {
  width: 1.5rem;
  background: linear-gradient(90deg, rgb(56 189 248), rgb(168 85 247));
  box-shadow: 0 4px 12px -2px rgba(30, 139, 255, .4);
}

.vip-swipe-hint {
  animation: vip-swipe-pulse 1.6s ease-in-out infinite;
  transition: opacity .3s ease, transform .3s ease;
}
.vip-swipe-hint-dismissed {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
}
@keyframes vip-swipe-pulse {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(6px); }
}

.vip-tabs-wrap {
  transition: padding .2s ease;
}
.vip-tabs-stuck .vip-tabs > div {
  box-shadow: 0 14px 30px -10px rgba(30, 139, 255, .35),
              inset 0 1px 0 rgba(255, 255, 255, .55);
}

@media (prefers-reduced-motion: reduce) {
  .vip-tier-dot,
  .vip-swipe-hint,
  .vip-tabs-wrap {
    transition: none;
    animation: none;
  }
}

.vip-history-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: 9999px;
  background: rgb(255 255 255 / .65);
  border: 1px solid rgb(255 255 255 / .55);
  color: rgb(71 85 105);
  font-weight: 700;
  font-size: 0.8125rem;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
  min-height: 2.25rem;
  transition: color .2s ease, background .2s ease, box-shadow .2s ease, transform .15s ease;
}
.vip-history-chip:hover {
  background: rgb(255 255 255 / .9);
}
.vip-history-chip:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgb(30 139 255 / .55);
}
.vip-history-chip-active {
  color: rgb(15 23 42);
  background: linear-gradient(135deg, rgb(255 255 255 / .95), rgb(255 255 255 / .75));
  border-color: rgb(255 255 255 / .7);
  box-shadow: 0 10px 22px -10px rgba(30, 139, 255, .35), inset 0 1px 0 rgba(255, 255, 255, .55);
}
.vip-history-chip-empty {
  opacity: 0.55;
  cursor: not-allowed;
}
.vip-history-chip-empty:hover {
  background: rgb(255 255 255 / .65);
}
.vip-history-chip-count {
  display: inline-grid;
  place-items: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.25rem;
  border-radius: 9999px;
  background: rgb(241 245 249);
  color: rgb(100 116 139);
  font-size: 0.6875rem;
  font-weight: 800;
}
.vip-history-chip-active .vip-history-chip-count {
  background: linear-gradient(90deg, rgb(56 189 248), rgb(168 85 247));
  color: white;
}
.vip-history-filters {
  scrollbar-width: none;
}
.vip-history-filters::-webkit-scrollbar { display: none; }

.vip-history-loading {
  opacity: 0.6;
  pointer-events: none;
  transition: opacity .2s ease;
}

@media (prefers-reduced-motion: reduce) {
  .vip-history-chip,
  .vip-history-loading {
    transition: none;
  }
}

.vip-history-total {
  position: relative;
  overflow: visible;
}

.vip-confetti-host {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
  z-index: 2;
}
.vip-confetti-particle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  background: var(--color, rgb(56 189 248));
  border-radius: 2px;
  opacity: 0;
  transform: translate(-50%, -50%);
  animation: vip-confetti-fly 1.1s cubic-bezier(.22, .68, .36, 1) forwards;
  will-change: transform, opacity;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .15);
}
@keyframes vip-confetti-fly {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(.5) rotate(0); }
  18%  { opacity: 1; }
  100% { opacity: 0;
         transform: translate(calc(-50% + var(--dx, 0px)), calc(-50% + var(--dy, 0px))) scale(1) rotate(var(--rot, 0deg)); }
}

@keyframes vip-banner-pulse-anim {
  0%   { transform: scale(1);     box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
  30%  { transform: scale(1.025); box-shadow: 0 14px 36px -8px rgba(30, 139, 255, .42),
                                              0 0 0 4px rgba(56, 189, 248, .2); }
  60%  { transform: scale(1.005); }
  100% { transform: scale(1);     box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
}
.vip-banner-pulse {
  animation: vip-banner-pulse-anim .75s ease-out;
  will-change: transform, box-shadow;
}

@keyframes vip-row-slide-in {
  0%   { opacity: 0; transform: translateY(-12px); box-shadow: 0 0 0 0 rgba(56, 189, 248, .5); }
  35%  { opacity: 1; transform: translateY(0);     box-shadow: 0 0 0 6px rgba(56, 189, 248, .22); }
  100% { opacity: 1; transform: translateY(0);     box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
}
.vip-history-item-new {
  animation: vip-row-slide-in 1.1s ease-out;
  will-change: transform, opacity, box-shadow;
}

.vip-sound-btn { cursor: pointer; }
.vip-sound-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgb(30 139 255 / .55);
}
.vip-sound-btn-on {
  background: linear-gradient(135deg, rgb(254 249 195), rgb(253 224 71 / .4));
  border-color: rgb(252 211 77 / .6);
  color: rgb(146 64 14);
}

@media (prefers-reduced-motion: reduce) {
  .vip-confetti-host,
  .vip-confetti-particle,
  .vip-banner-pulse,
  .vip-history-item-new {
    animation: none !important;
    transition: none !important;
  }
}

/* Phase 41 — History date-range chips + sort toggle */
.vip-history-controls {
  scrollbar-width: none;
}
.vip-history-ranges {
  scrollbar-width: none;
}
.vip-history-ranges::-webkit-scrollbar { display: none; }
.vip-history-range-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #475569;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.55);
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  flex-shrink: 0;
}
.vip-history-range-chip:hover {
  background: rgba(255, 255, 255, 0.9);
  color: #1e293b;
}
.vip-history-range-chip:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: 2px;
}
.vip-history-range-chip-active {
  background: linear-gradient(135deg, #0ea5e9, #06b6d4);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 12px -2px rgba(14, 165, 233, 0.45);
}
.vip-history-range-chip-active:hover {
  background: linear-gradient(135deg, #0284c7, #0891b2);
  color: #ffffff;
}
.vip-history-sort-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  background: transparent;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.vip-history-sort-btn:hover {
  color: #0f172a;
}
.vip-history-sort-btn:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: 2px;
}
.vip-history-sort-btn-active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}
@media (prefers-reduced-motion: reduce) {
  .vip-history-range-chip,
  .vip-history-sort-btn { transition: none; }
}

.btn-spinner {
  display: inline-block;
  width: 1em;
  height: 1em;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: btn-spin 0.7s linear infinite;
  vertical-align: -2px;
  opacity: 0.85;
}
@keyframes btn-spin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .btn-spinner { animation: none; border-top-color: currentColor; opacity: 0.5; }
}
.is-loading {
  cursor: progress;
  opacity: 0.9;
}
.is-loading > * {
  pointer-events: none;
}
