*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Strong overrides to ensure modal styles take effect */
.itinerary-modal-overlay {
  background: rgba(2, 6, 23, 0.65) !important;
  backdrop-filter: blur(5px) !important;
}

.itinerary-modal {
  background: linear-gradient(180deg, #ffffff 0%, #fbf5ff 100%) !important;
  color: #0f172a !important;
  border-radius: 20px !important;
  box-shadow: 0 18px 60px rgba(12, 18, 52, 0.45) !important;
}

.itinerary-modal h2,
.itinerary-modal h3,
.itinerary-modal p,
.itinerary-modal li {
  color: #111827 !important;
}

.itinerary-modal .itinerary-chip {
  -webkit-appearance: none !important;
  appearance: none !important;
  border: 2px solid #bfd0ff !important;
  background: transparent !important;
  color: #1763ff !important;
  padding: 10px 18px !important;
  border-radius: 18px !important;
  font-size: 16px !important;
}

.itinerary-modal .itinerary-chip.active {
  background: linear-gradient(100deg, #1268ff 0%, #b000f5 100%) !important;
  color: #fff !important;
  border-color: transparent !important;
}

.itinerary-modal .itinerary-close {
  top: 14px !important;
  right: 14px !important;
  left: auto !important;
  color: #374151 !important;
  background: rgba(0, 0, 0, 0.04) !important;
}

/* Ensure overlay and modal are on top */
.itinerary-modal-overlay {
  z-index: 99999 !important;
}

/* small screens tweaks */
@media (max-width: 640px) {
  .itinerary-modal {
    width: 98% !important;
    border-radius: 14px !important
  }

  .preference-modal {
    padding: 20px !important
  }

  .create-itinerary-btn {
    min-height: 64px !important
  }
}

:root {
  --purple: #9810FA;
  --main: #500EAF;
  --gold: #F5C842;
  --white: #ffffff;
  --text: #1a1a2e;
  --border: #e5e7eb;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
  --radius: 20px;
}

html {
  height: 100%;
}

body {
  font-family: 'Satoshi', sans-serif;
  color: var(--white);
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

a {
  text-decoration: none;
}

/* ════════════════════════════════════════
   DESKTOP NAVBAR overrides
   (base styles come from navbar-desktop.css)
════════════════════════════════════════ */
.navbar {
  /* Keep sticky, but allow centre content */
  display: grid !important;
  grid-template-columns: auto 1fr auto !important;
  align-items: center !important;
  padding: 0 32px !important;
  height: 62px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── Logo ── */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 1rem;
  color: #1a1a2e;
  text-decoration: none;
  white-space: nowrap;
}

.nav-logo .logo-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #6B48E8, #4A90D9);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}


.nav-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
}

.nav-bid-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-bid-title {
  font-size: 0.97rem;
  font-weight: 800;
  color: var(--text);
}

.nav-bid-timer {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #eef2ff;
  border: 1.5px solid #c7d4ff;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--main);
}

.nav-bid-sub {
  font-size: 0.75rem;
  color: #6b7280;
  text-align: center;
}

/* ════════════════════════════════════════
   MOBILE HEADER
════════════════════════════════════════ */
.mob-bid-header {
  display: none;
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px 10px;
  align-items: flex-start;
  gap: 10px;
}

.mob-back-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f3f4f6;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  flex-shrink: 0;
  margin-top: 2px;
}

.mob-bid-header-text {
  flex: 1;
}

.mob-bid-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.25;
}

.mob-bid-sub {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 2px;
}

.mob-overall-timer {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #eef2ff;
  border: 1.5px solid #c7d4ff;
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--main);
  flex-shrink: 0;
  white-space: nowrap;
}

/* ════════════════════════════════════════
   MAIN STAGE
════════════════════════════════════════ */
.bid-main {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 32px 24px 120px;
  overflow: hidden;

  /* Galaxy background */
  background:
    radial-gradient(ellipse 70% 50% at 30% 40%, rgba(200, 160, 255, 0.55) 0%, transparent 60%),
    radial-gradient(ellipse 60% 45% at 75% 55%, rgba(160, 120, 255, 0.45) 0%, transparent 55%),
    radial-gradient(ellipse 80% 60% at 50% 80%, rgba(140, 100, 240, 0.5) 0%, transparent 65%),
    linear-gradient(135deg, #c8b0f0 0%, #a090e8 25%, #9080e0 50%, #b8a0f0 75%, #c0b0f8 100%);
}

/* ── Animated glow beams ── */
.bid-bg-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bid-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: glowPulse 6s ease-in-out infinite;
}

.bid-glow-1 {
  width: 600px;
  height: 300px;
  background: rgba(255, 255, 255, 0.18);
  top: -80px;
  left: -100px;
  transform: rotate(-30deg);
  animation-delay: 0s;
}

.bid-glow-2 {
  width: 500px;
  height: 250px;
  background: rgba(255, 255, 255, 0.12);
  top: 30%;
  right: -120px;
  transform: rotate(20deg);
  animation-delay: 2s;
}

.bid-glow-3 {
  width: 400px;
  height: 200px;
  background: rgba(255, 200, 255, 0.1);
  bottom: 10%;
  left: 20%;
  animation-delay: 4s;
}

@keyframes glowPulse {

  0%,
  100% {
    opacity: 0.6;
    transform: scaleX(1) rotate(var(--rot, 0deg));
  }

  50% {
    opacity: 1;
    transform: scaleX(1.15) rotate(var(--rot, 0deg));
  }
}

.bid-sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

@keyframes bdSpark {

  0%,
  100% {
    opacity: 0.1;
    transform: scale(0.6);
  }

  50% {
    opacity: 0.9;
    transform: scale(1);
  }
}

/* ════════════════════════════════════════
   NEXT UPDATE SECTION
════════════════════════════════════════ */
.update-section {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-bottom: 16px;
}

.update-label {
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 4px;
  letter-spacing: 0.01em;
}

/* Arc + number */
.update-arc-wrap {
  position: relative;
  width: 130px;
  height: 80px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.arc-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 130px;
  height: 80px;
}

.arc-progress {
  stroke-dasharray: 172;
  stroke-dashoffset: 0;
  background-color: var(--purple);
  transition: stroke-dashoffset 0.9s linear;
}

.update-number-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  margin-bottom: -3vh;
}

.update-number {
  font-size: 3rem;
  font-weight: 800;
  color: #9B3DE8;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.update-sec {
  font-size: 0.85rem;
  font-weight: 600;
  color: #9B3DE8;
  margin-top: 2px;
}

/* Decorative stars around the arc */
.star-sparks {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 120px;
  pointer-events: none;
}

.star-spark {
  position: absolute;
  font-size: 1.1rem;
  color: var(--gold);
  animation: starSpin 3s ease-in-out infinite;
}

.s1 {
  top: 10px;
  left: 10px;
  animation-delay: 0s;
  font-size: 1.4rem;
}

.s2 {
  top: 0px;
  left: 50px;
  animation-delay: 0.8s;
  font-size: 0.8rem;
}

.s3 {
  top: 10px;
  right: 10px;
  animation-delay: 1.5s;
  font-size: 1.1rem;
}

.s4 {
  top: -2px;
  right: 48px;
  animation-delay: 2.2s;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.8);
}

@keyframes starSpin {

  0%,
  100% {
    opacity: 0.5;
    transform: scale(0.8) rotate(0deg);
  }

  50% {
    opacity: 1;
    transform: scale(1.2) rotate(20deg);
  }
}

/* ════════════════════════════════════════
   GLASS PANEL + CARDS
════════════════════════════════════════ */
.bid-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 600px;
  height: 100%;
  max-height: 80vh;
  background: rgba(255, 255, 255, 0);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 28px;
  padding: 32px 28px 28px;
  box-shadow: 0 8px 40px rgba(100, 60, 200, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  margin-top: 5vh;
}

.bid-cards-wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  min-height: 400px;
}

/* ── Corner cards ── */
.bid-card {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 18px;
  padding: 18px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  backdrop-filter: blur(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}

.bid-card.rotating {
  opacity: 0.35;
  transform: scale(0.95);
}

.bid-card-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.3;
  transition: opacity 0.3s;
}

.bid-card-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  transition: opacity 0.3s;
}

/* Centre overlapping card */
.center-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 25vh;
  height: 25vh;
  z-index: 5;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(14px);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  border-radius: 20px;
  padding: 18px 16px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(80, 40, 180, 0.3);
  backdrop-filter: blur(16px);
  align-items: center;
  justify-content: center;
}

.center-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  text-align: center;
  display: block;
  margin-bottom: 8px;
}

.center-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  display: block;
  text-align: center;
}

.nav-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #4b5563;
  position: relative;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  flex-shrink: 0;
}

.nav-icon-btn:hover {
  background: #ede9f8;
  color: #6B48E8;
  border-color: #c4b5fd;
}

/* ── Notification badge ── */
.notif-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #EF4444;
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  font-family: 'Satoshi', sans-serif;
}

/* ── Profile avatar button ── */
.nav-avatar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px 5px 5px;
  border-radius: 24px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  cursor: pointer;
  color: #4b5563;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  font-family: 'Satoshi', sans-serif;
}

.nav-avatar:hover {
  background: #ede9f8;
  color: #6B48E8;
  border-color: #c4b5fd;
}

/* ════════════════════════════════
     POPUP BASE
  ════════════════════════════════ */
.popup-wrap {
  position: relative;
}

.popup {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 12px 50px rgba(0, 0, 0, 0.15);
  border: 1px solid #e5e7eb;
  z-index: 300;
  overflow: hidden;
  animation: desktopPopupIn 0.18s ease;
}

.popup.open {
  display: block;
}

@keyframes desktopPopupIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ════════════════════════════════
     PROFILE POPUP
  ════════════════════════════════ */
.profile-popup {
  width: 240px;
  padding: 8px 0;
}

.profile-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  text-decoration: none;
  color: #1a1a2e;
  font-size: 1rem;
  font-weight: 500;
  transition: background 0.15s;
  font-family: 'Satoshi', sans-serif;
}

.profile-item:hover {
  background: #f7f5ff;
}

.profile-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.profile-divider {
  height: 1px;
  background: #e5e7eb;
  margin: 0 20px;
}

/* ════════════════════════════════
     NOTIFICATION POPUP
  ════════════════════════════════ */
.notif-popup {
  width: 360px;
  padding: 22px 20px 16px;
  max-height: 520px;
  overflow-y: auto;
}

.notif-popup::-webkit-scrollbar {
  width: 5px;
}

.notif-popup::-webkit-scrollbar-track {
  background: transparent;
}

.notif-popup::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 10px;
}

.popup-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 18px;
  padding: 0 2px;
  font-family: 'Satoshi', sans-serif;
}

.notif-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.notif-card {
  display: flex;
  gap: 14px;
  background: #f9f9fb;
  border: 1px solid #eeecf5;
  border-radius: 16px;
  padding: 16px 14px;
  transition: box-shadow 0.2s;
}

.notif-card:hover {
  box-shadow: 0 4px 18px rgba(107, 72, 232, 0.08);
}

.notif-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notif-icon-blue {
  background: #edf4fd;
}

.notif-icon-purple {
  background: #f0ebfe;
}

.notif-body {
  flex: 1;
  min-width: 0;
}

.notif-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.notif-heading {
  font-size: 0.97rem;
  font-weight: 700;
  color: #1a1a2e;
  font-family: 'Satoshi', sans-serif;
}

.notif-heading.won {
  color: #4A6CF7;
}

.notif-tag {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
  font-family: 'Satoshi', sans-serif;
}

.tag-booking {
  background: #e8edff;
  color: #4A6CF7;
}

.tag-offer {
  background: #f3ebfe;
  color: #7B5EA7;
}

.notif-time {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.76rem;
  color: #9ca3af;
  margin-bottom: 8px;
  font-family: 'Satoshi', sans-serif;
}

.notif-msg {
  font-size: 0.85rem;
  color: #1a1a2e;
  line-height: 1.55;
  margin-bottom: 12px;
  font-family: 'Satoshi', sans-serif;
}

.notif-card:last-child .notif-msg {
  margin-bottom: 0;
}

.notif-action-btn {
  display: inline-block;
  padding: 10px 28px;
  border-radius: 24px;
  background: linear-gradient(135deg, #5B3FE8, #7B5AE8);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: 'Satoshi', sans-serif;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 4px 14px rgba(91, 63, 232, 0.35);
}

.notif-action-btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

/* end @media (min-width: 769px) */

/* ════════════════════════════════════════
   FIXED BOTTOM BAR
════════════════════════════════════════ */
.bid-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 40px 18px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 200;
}

.bid-btn-itinerary {
  padding: 14px 32px;
  border-radius: 30px;
  background: var(--white);
  border: 2px solid var(--purple);
  color: var(--purple);
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.bid-btn-itinerary:hover {
  background: #f5f0ff;
}

.bid-btn-skip {
  flex: 1;
  padding: 14px 24px;
  border-radius: 30px;
  background: linear-gradient(135deg, #500EAF 0%, #9810FA 100%);
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 800;
  font-family: inherit;
  border: none;
  cursor: pointer;
  letter-spacing: 0.04em;
  box-shadow: 0 6px 24px rgba(107, 72, 232, 0.4);
  transition: opacity 0.2s, transform 0.2s;
  text-align: center;
}

.bid-btn-skip:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

/* ════════════════════════════════════════
   MOBILE  (≤768px)
════════════════════════════════════════ */
@media (max-width: 768px) {

  /* Hide desktop navbar, show mobile header */
  .navbar {
    display: none !important;
  }

  .mob-bid-header {
    display: flex;
  }

  /* Main stage: no side padding */
  .bid-main {
    padding: 24px 14px 110px;
  }

  /* Update section: bigger number */
  .update-number {
    font-size: 3.5rem;
  }

  .update-arc-wrap {
    width: 150px;
    height: 95px;
  }

  .arc-svg {
    width: 150px;
    height: 95px;
  }

  .star-sparks {
    width: 220px;
  }

  /* Panel: full width */
  .bid-panel {
    max-width: 100%;
    border-radius: 25px;
    height: 55vh;
    align-items: center;
  }

  .bid-cards-wrap {
    gap: 10px;
  }

  .bid-card {
    align-items: center;
    border-radius: 25px;
    justify-content: center;
  }

  .bid-card-name {
    font-size: 0.85rem;
  }

  .bid-card-price {
    font-size: 1.4rem;
  }

  .center-card {
    width: 50%;
    padding: 16px 12px;
    border-radius: 25px;
  }

  .center-name {
    font-size: 0.85rem;
  }

  .center-price {
    font-size: 1.55rem;
  }

  /* Bottom bar */
  .bid-bottom-bar {
    padding: 12px 14px 16px;
    gap: 12px;
  }

  .bid-btn-itinerary {
    padding: 13px 20px;
    font-size: 0.88rem;
    white-space: nowrap;
  }

  .bid-btn-skip {
    padding: 13px 16px;
    font-size: 0.88rem;
  }
}

@media (max-width: 380px) {
  .bid-card-price {
    font-size: 1.2rem;
  }

  .center-price {
    font-size: 1.35rem;
  }

  .update-number {
    font-size: 3rem;
  }

  /* Modals Design */

  /* Modal overlay & base */
  .itinerary-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(2, 6, 23, 0.55);
    backdrop-filter: blur(4px);
  }

  .itinerary-modal-overlay.active {
    display: flex;
    animation: overlayFade 220ms ease forwards;
  }

  @keyframes overlayFade {
    from {
      opacity: 0
    }

    to {
      opacity: 1
    }
  }

  /* Modal card */
  .itinerary-modal {
    position: relative;
    width: min(760px, 92%);
    max-height: 88vh;
    overflow-y: auto;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #fbf5ff 100%);
    color: #0f172a;
    box-shadow: 0 20px 60px rgba(6, 10, 30, 0.45);
    font-family: "DM Sans", sans-serif;
    transform: translateY(6px) scale(0.997);
    opacity: 0;
    transition: transform 180ms cubic-bezier(.2, .9, .2, 1), opacity 180ms ease;
    padding: 28px;
    box-sizing: border-box;
  }

  .itinerary-modal-overlay.active .itinerary-modal {
    transform: translateY(0) scale(1);
    opacity: 1;
  }

  .preference-modal {
    padding: 40px;
  }

  .result-modal {
    width: min(820px, 100%);
    background: #ffffff;
  }

  /* Close button: compact and tappable */
  .itinerary-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    border: 0;
    background: rgba(0, 0, 0, 0.06);
    color: #374151;
    font-size: 20px;
    line-height: 1;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(10, 15, 35, 0.08);
    padding: 0;
  }

  /* Heading and typography tweaks */
  .preference-modal h2,
  .result-header h2 {
    margin: 0;
    padding-right: 48px;
    font-size: clamp(20px, 3.6vw, 34px);
    font-weight: 800;
    color: #111827;
  }

  .itinerary-divider {
    height: 1px;
    margin: 28px -40px;
    background: #e6e1e8;
  }

  .itinerary-question {
    margin-bottom: 36px;
  }

  .itinerary-question h3 {
    margin: 0 0 18px;
    font-size: clamp(18px, 2.6vw, 26px);
    font-weight: 600;
    color: #000;
  }

  .itinerary-options {
    gap: 14px 12px
  }

  .itinerary-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 14px;
    border: 2px solid #bfd0ff;
    border-radius: 999px;
    background: transparent;
    color: #1763ff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    gap: 8px;
  }

  .create-itinerary-btn,
  .download-itinerary-btn {
    width: 100%;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(100deg, #1268ff 0%, #b000f5 100%);
    color: #fff;
    font-family: inherit;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(35, 93, 255, 0.14);
  }

  .create-itinerary-btn {
    min-height: 60px;
    margin-top: 24px;
    font-size: 16px
  }

  .download-itinerary-btn {
    min-height: 72px;
    margin-top: 16px;
    font-size: 16px
  }

  /* Scrollbar inside modal */
  .itinerary-modal::-webkit-scrollbar {
    width: 10px
  }

  .itinerary-modal::-webkit-scrollbar-track {
    background: transparent
  }

  .itinerary-modal::-webkit-scrollbar-thumb {
    background: #e6e1e8;
    border-radius: 10px
  }

  .preference-modal h2,
  .result-header h2 {
    margin: 0;
    padding-right: 64px;
    font-size: 36px;
    font-weight: 800;
    color: #111827;
  }

  .itinerary-divider {
    height: 1px;
    margin: 40px -52px;
    background: #e6e1e8;
  }

  .itinerary-question {
    margin-bottom: 54px;
  }

  .itinerary-question h3 {
    margin: 0 0 28px;
    font-size: 30px;
    font-weight: 500;
    color: #000;
  }

  .itinerary-options {
    display: flex;
    flex-wrap: wrap;
    gap: 28px 22px;
  }

  .itinerary-chip {
    min-height: 72px;
    padding: 0 28px;
    border: 2px solid #bfd0ff;
    border-radius: 28px;
    background: transparent;
    color: #1763ff;
    font-size: 26px;
    font-weight: 600;
    cursor: pointer;
  }

  .itinerary-chip::before {
    content: "⌘";
    margin-right: 14px;
    font-size: 28px;
  }

  .itinerary-chip.active {
    border-color: transparent;
    color: #fff;
    background: linear-gradient(100deg, #1268ff 0%, #b000f5 100%);
  }

  .create-itinerary-btn,
  .download-itinerary-btn {
    width: 100%;
    border: 0;
    border-radius: 28px;
    background: linear-gradient(100deg, #1268ff 0%, #b000f5 100%);
    color: #fff;
    font-family: inherit;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 14px 26px rgba(35, 93, 255, 0.28);
  }

  .create-itinerary-btn {
    min-height: 98px;
    margin-top: 70px;
    font-size: 30px;
  }

  .result-header {
    padding: 52px 48px 12px;
    background: #fff;
    border-radius: 44px 44px 0 0;
  }

  .result-header p {
    margin: 12px 0 0;
    font-size: 30px;
    color: #5f6b7a;
  }

  .result-modal .itinerary-divider {
    margin: 36px 0 0;
  }

  .itinerary-days {
    padding: 50px 48px 40px;
  }

  .itinerary-day {
    padding: 44px;
    margin-bottom: 48px;
    border-radius: 28px;
  }

  .itinerary-day h3 {
    margin: 0 0 24px;
    font-size: 34px;
    line-height: 1.25;
    font-weight: 800;
    color: #111827;
  }

  .itinerary-day ul {
    margin: 0;
    padding-left: 26px;
  }

  .itinerary-day li {
    margin-bottom: 20px;
    font-size: 29px;
    line-height: 1.35;
    color: #374151;
  }

  .itinerary-day.blue {
    background: #edf5ff;
  }

  .itinerary-day.green {
    background: #ebfff4;
  }

  .itinerary-day.yellow {
    background: #fff9e8;
  }

  .itinerary-day.blue li::marker {
    color: #1763ff;
  }

  .itinerary-day.green li::marker {
    color: #00a651;
  }

  .itinerary-day.yellow li::marker {
    color: #ff4b00;
  }

  .download-itinerary-btn {
    min-height: 146px;
    font-size: 38px;
    line-height: 1.45;
  }

  @media (max-width: 640px) {
    .itinerary-modal-overlay {
      padding: 12px;
    }

    .itinerary-modal {
      border-radius: 28px;
    }

    .preference-modal {
      padding: 32px 24px 36px;
    }

    .preference-modal h2,
    .result-header h2 {
      font-size: 28px;
    }

    .itinerary-close {
      top: 26px;
      right: 24px;
      font-size: 42px;
    }

    .itinerary-divider {
      margin: 28px -24px;
    }

    .itinerary-question {
      margin-bottom: 34px;
    }

    .itinerary-question h3 {
      font-size: 24px;
    }

    .itinerary-options {
      gap: 14px;
    }

    .itinerary-chip {
      min-height: 54px;
      padding: 0 18px;
      border-radius: 20px;
      font-size: 18px;
    }

    .create-itinerary-btn {
      min-height: 72px;
      margin-top: 36px;
      font-size: 22px;
    }

    .result-header {
      padding: 34px 28px 10px;
    }

    .result-header p {
      font-size: 22px;
    }

    .itinerary-days {
      padding: 32px 24px;
    }

    .itinerary-day {
      padding: 26px;
      margin-bottom: 28px;
    }

    .itinerary-day h3 {
      font-size: 24px;
    }

    .itinerary-day li {
      font-size: 20px;
    }

    .download-itinerary-btn {
      min-height: 104px;
      font-size: 26px;
    }
  }
}

/* Ensure itinerary modal overlay styles apply at all sizes */
.itinerary-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.55);
}

.itinerary-modal-overlay.active {
  display: flex;
}