
/* Prevent layout shift caused by scrollbars across different pages */
html {
  scrollbar-gutter: stable;
}
.logo-img {
  height: 34px;      /* compact header sizing */
  width: auto;
}
/* Header Layout & Container */
header {
  background-color: #0a192f;   /* Dark navy header background */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 32px;          /* Uniform padding for equal header height */
  height: 58px;                /* Compact header size on all screens */
  box-sizing: border-box;
  position: relative;
}

/* Logo Image Styling */
.site-logo {
  height: 32px;                /* Fixed logo height preventing scale shift */
  width: auto;
  display: block;
  object-fit: contain;
}

/* Navigation Header Layout */
header {
  background-color: #0a192f;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 32px;
  height: 58px;
  box-sizing: border-box;
  position: relative;
}

/* Nav Link Container */
nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Nav Links */
nav a {
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;

  padding: 0 12px;
  height: 34px;            /* Fixed height prevents vertical shifting */
  box-sizing: border-box;
  text-align: center;
  white-space: nowrap;

  transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out;
}

/* ==========================================================================
   Inline icon set (replaces emoji for a more consistent, professional look)
   ========================================================================== */
.icon-svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  vertical-align: middle;
}

.icon-svg-lg {
  width: 30px;
  height: 30px;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Hover & Active States */
nav a:hover,
nav a.active {
  color: #38bdf8 !important;
}
/* Footer Container */
.site-footer {
  background-color: #0a192f;
  color: #cbd5e1;
  padding-top: 26px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin-top: auto;
}

/* Brand mark at the top of the footer, shown at every viewport size */
.footer-logo {
  display: block;
  height: 42px;
  width: auto;
  margin: 0 auto 20px;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  padding: 0 20px 20px;
}

/* Footer Column Styling */
.footer-column h3 {
  color: #ffffff;
  font-size: 15px;
  margin-bottom: 10px;
  font-weight: 600;
}

.footer-column p {
  font-size: 13px;
  margin-bottom: 5px;
  color: #94a3b8;
  line-height: 1.3;
}

/* Social & Legal Links */
.social-links,
.legal-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.social-links a,
.legal-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease-in-out;
}

.social-links a:hover,
.legal-links a:hover {
  color: #38bdf8; /* Light blue accent match */
}

/* Bottom Copyright Bar */
.footer-bottom {
  border-top: 1px solid #1e293b;
  padding: 12px;
  text-align: center;
  font-size: 12px;
  color: #64748b;
}

.footer-bottom a {
  color: #94a3b8;
  text-decoration: none;
  margin: 0 5px;
}

.footer-bottom a:hover {
  color: #38bdf8;
}
/* Container positioning for background element */
body {
  position: relative;
  background-color: #f8fafc; /* Your light background color */
  min-height: 100vh;
}

/* Semi-transparent Watermark Logo in Background */
body::before {
  content: "";
  position: fixed;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%); /* Centers the image */
  
  width: 600px;                      /* Size of watermark */
  height: 600px;
  
  background-image: url('../images/logo.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  
  opacity: 0.04;                     /* Very faint watermark (3% to 5% recommended) */
  pointer-events: none;              /* Prevents background image from blocking clicks */
  z-index: 0;                        /* Places behind page content */
}

/* Ensures form, cards, and text stay clearly visible on top */
header,
.hero-search,
.search-card,
#resultsContainer,
.site-footer {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Header currency selector (shared across every page)
   ========================================================================== */
.header-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.currency-select {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 12px;
  font-weight: 600;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  cursor: pointer;
}

.currency-select:hover {
  border-color: #38bdf8;
}

.currency-select option {
  color: #0a192f;
  background: #ffffff;
}

/* ==========================================================================
   Mobile/tablet hamburger nav
   ========================================================================== */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.hamburger-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.hamburger-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.open span:nth-child(2) { opacity: 0; }
.hamburger-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .hamburger-btn {
    display: flex;
  }

  /* Phone header: only the logo and hamburger stay on the top row (they
     always fit). Everything else — language, currency, nav links — lives
     in a single dropdown panel opened by the hamburger, instead of trying
     to cram selects onto the header row where they'd overflow or force the
     logo onto its own line. */
  header {
    height: auto;
    padding: 10px 16px;
    position: relative;
  }

  .header-right {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #0a192f;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .header-right.open {
    max-height: 420px;
    overflow-y: auto;
  }

  .header-right .currency-select {
    width: calc(100% - 32px);
    max-width: none;
    margin: 10px 16px 0;
    font-size: 15px;
    padding: 11px 12px;
  }

  /* Footer: 2 columns instead of every column stacking full-width, so the
     footer stays compact on phones (Contact Us + Follow Us side by side,
     Legal & Support wraps to its own row). */
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 24px 16px;
  }

  /* "No Hidden Fees / Flexible Itineraries / Local Currency Pricing" cards
     were squeezed 3-across on phones. Stack them one per row instead. */
  .why-us {
    grid-template-columns: 1fr;
  }

  .header-right nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 10px;
  }

  .header-right nav a {
    width: 100%;
    height: auto;
    justify-content: flex-start;
    padding: 14px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }

  /* Trip-type radios (Round Trip / One Way / Multi-City) were being
     flex-shrunk narrower than their text at phone widths, wrapping each
     label into two lines and overlapping its neighbour. Let them wrap as
     whole units onto a new row instead, with a tighter gap. */
  .trip-type-group {
    flex-wrap: wrap;
    gap: 10px 18px;
  }

  /* Multi-city leg rows (FROM / TO / DATE) were squeezed into ~70px-wide
     grid columns on phones. Stack each field full-width instead. */
  .leg-row {
    grid-template-columns: 24px 1fr;
    row-gap: 10px;
  }

  .leg-row .form-group {
    grid-column: 1 / -1;
  }

  .leg-row .leg-number {
    grid-row: 1;
  }

  .leg-row .leg-remove-btn {
    grid-row: 1;
    justify-self: end;
  }
}

/* ==========================================================================
   Trust badges (hero strip)
   ========================================================================== */
.trust-strip {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 22px;
  font-size: 13px;
  color: #cbd5e1;
}

.trust-strip span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   Multi-city leg builder
   ========================================================================== */
.legs-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

.leg-row {
  position: relative;
  display: grid;
  grid-template-columns: 28px repeat(3, 1fr) auto;
  gap: 12px;
  align-items: end;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 14px 14px 14px 10px;
}

.leg-row .leg-number {
  align-self: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #0a192f;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.leg-remove-btn {
  align-self: center;
  background: transparent;
  border: none;
  color: #b91c1c;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
  padding: 6px 8px;
}

.leg-remove-btn:hover {
  color: #ef4444;
}

/* ==========================================================================
   Travellers / cabin / preference row on the search form
   ========================================================================== */
.search-options-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.traveller-field {
  position: relative;
}

.traveller-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background: #fff;
  font-size: 14px;
  font-family: inherit;
  color: #333;
  cursor: pointer;
  text-align: left;
}

.traveller-toggle:hover {
  border-color: #0a192f;
}

.traveller-toggle .icon-svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #64748b;
}

.traveller-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  min-width: 280px;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(10, 25, 47, 0.18);
  padding: 16px;
  z-index: 1200;
}

.pax-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid #f1f5f9;
}

.pax-row:last-of-type {
  border-bottom: none;
}

.pax-label {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.pax-label strong {
  font-size: 14px;
  color: #0a192f;
}

.pax-label span {
  font-size: 11px;
  color: #64748b;
}

.pax-stepper {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.pax-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #0a192f;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pax-btn:hover:not(:disabled) {
  border-color: #0a192f;
  background: #f8fafc;
}

.pax-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.pax-count {
  min-width: 18px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: #0a192f;
}

.pax-note {
  font-size: 11px;
  color: #64748b;
  line-height: 1.45;
  margin: 12px 0 0;
}

.pax-done-btn {
  width: 100%;
  margin-top: 12px;
  padding: 9px;
  border: none;
  border-radius: 6px;
  background: #0a192f;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

.pax-done-btn:hover {
  background: #17335c;
}

@media (max-width: 520px) {
  .traveller-panel {
    min-width: 0;
  }
}

.add-leg-btn {
  background: #ffffff;
  border: 1.5px dashed #94a3b8;
  color: #0a192f;
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 20px;
  transition: border-color 0.2s, color 0.2s;
}

.add-leg-btn:hover:not(:disabled) {
  border-color: #38bdf8;
  color: #0284c7;
}

.add-leg-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ==========================================================================
   Search results page
   ========================================================================== */
.results-shell {
  max-width: 1200px;
  margin: 30px auto 60px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 860px) {
  .results-shell {
    grid-template-columns: 1fr;
  }
}

.filters-panel {
  background: #ffffff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 6px 20px rgba(10, 25, 47, 0.08);
  position: sticky;
  top: 20px;
}

.filters-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.filters-panel h3 {
  font-size: 16px;
  color: #0a192f;
}

.filters-close-btn {
  display: none;
  background: transparent;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  padding: 4px 8px;
}

.filters-close-btn:hover {
  color: #0a192f;
}

/* On phones the sticky sidebar filter panel sat inline in the stacked
   single-column layout and scrolled over the flight cards beneath it.
   Turn it into a full-screen drawer instead, opened on demand by the
   Filters icon button in the results header, so it never overlaps
   content — it's either fully off, or fully covering the screen. This
   must come after the base .filters-panel rule above so its overrides
   (position, top, border-radius) win the cascade on mobile. */
@media (max-width: 860px) {
  .filters-panel {
    display: none;
    position: fixed;
    inset: 0;
    top: 0;
    z-index: 2500;
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
    overflow-y: auto;
    box-sizing: border-box;
  }

  .filters-panel.open {
    display: block;
  }

  body.filters-open {
    overflow: hidden;
  }

  .filters-close-btn {
    display: inline-flex !important;
  }
}

.filter-group {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid #eef2f7;
}

.filter-group:last-child {
  border-bottom: none;
}

.filter-group h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  margin-bottom: 10px;
}

.filter-price-value {
  font-size: 13px;
  font-weight: 700;
  color: #0a192f;
  margin-bottom: 8px;
}

.filter-group input[type="range"] {
  width: 100%;
}

.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #334155;
  margin-bottom: 8px;
  cursor: pointer;
}

.reset-filters-btn {
  width: 100%;
  background: transparent;
  border: 1px solid #cbd5e1;
  color: #334155;
  border-radius: 6px;
  padding: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.reset-filters-btn:hover {
  border-color: #0a192f;
}

.leg-section {
  margin-bottom: 34px;
}

.leg-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.leg-section-header h2 {
  font-size: 20px;
  color: #0a192f;
}

.leg-section-header .leg-meta {
  font-size: 13px;
  color: #64748b;
}

.sort-select {
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 13px;
  color: #334155;
  background: #fff;
}

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

.flight-result-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 18px;
  align-items: center;
  box-shadow: 0 2px 6px rgba(10, 25, 47, 0.05);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.flight-result-card:hover {
  box-shadow: 0 8px 22px rgba(10, 25, 47, 0.12);
  border-color: #38bdf8;
}

.flight-result-card.is-selected {
  border-color: #0a192f;
  box-shadow: 0 0 0 2px #0a192f;
}

@media (max-width: 640px) {
  .flight-result-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* ==========================================================================
   Flight details: baggage chips + expandable segment/layover breakdown
   ========================================================================== */
.cabin-note {
  margin-top: 4px;
  font-size: 11px;
  color: #94a3b8;
}

/* Footer + detail body span the card's full grid width */
.flight-card-footer,
.flight-details-body {
  grid-column: 1 / -1;
}

.flight-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid #eef2f7;
}

.baggage-chips,
.cart-baggage-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cart-baggage-chips {
  margin-top: 12px;
}

.bag-chip {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 20px;
  white-space: nowrap;
}

.bag-chip.included {
  background: #dcfce7;
  color: #15803d;
}

.bag-chip.excluded {
  background: #f1f5f9;
  color: #64748b;
}

.details-toggle-btn {
  background: transparent;
  border: none;
  color: #0284c7;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  padding: 4px 6px;
}

.details-toggle-btn:hover {
  text-decoration: underline;
}

.flight-details-body {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #eef2f7;
}

.details-section-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-bottom: 12px;
  text-align: left;
}

.segment-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 6px 18px;
  padding: 12px 0;
  text-align: left;
  border-left: 3px solid #38bdf8;
  padding-left: 14px;
  margin-bottom: 4px;
}

@media (max-width: 640px) {
  .segment-row {
    grid-template-columns: 1fr;
  }
}

.segment-times {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.segment-time {
  font-size: 15px;
  font-weight: 700;
  color: #0a192f;
}

.segment-dur {
  font-size: 11px;
  color: #94a3b8;
  padding: 2px 0;
}

.day-offset {
  color: #b91c1c;
  font-size: 10px;
  font-weight: 700;
  margin-left: 2px;
}

.segment-places {
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 13px;
  color: #334155;
}

.segment-meta,
.segment-bags {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: #64748b;
  margin-top: 6px;
}

.segment-meta .operated-by {
  font-style: italic;
}

.layover-row {
  background: #fffbeb;
  border: 1px dashed #fcd34d;
  border-radius: 8px;
  padding: 9px 14px;
  margin: 6px 0 10px;
  font-size: 12px;
  font-weight: 600;
  color: #92400e;
  text-align: left;
}

.fare-conditions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #eef2f7;
}

.cond-chip {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  background: #f1f5f9;
  color: #475569;
}

.cond-chip.yes {
  background: #dcfce7;
  color: #15803d;
}

.cond-chip.no {
  background: #fee2e2;
  color: #b91c1c;
}

/* Cart renders the same detail markup on a light card over a dark page */
.cart-card .flight-details-body {
  border-top-color: #e2e8f0;
}

.flight-route-info {
  display: flex;
  align-items: center;
  gap: 18px;
}

.flight-endpoint .time {
  font-size: 19px;
  font-weight: 700;
  color: #0a192f;
}

.flight-endpoint .code {
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}

.flight-path {
  text-align: center;
  min-width: 130px;
}

.flight-path .duration {
  font-size: 12px;
  color: #64748b;
}

.flight-path .line {
  height: 1px;
  background: #cbd5e1;
  margin: 6px 0;
  position: relative;
}

.stop-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  margin-top: 4px;
}

.stop-badge.nonstop {
  background: #dcfce7;
  color: #15803d;
}

.stop-badge.one-stop {
  background: #fef9c3;
  color: #92400e;
}

.stop-badge.two-stop {
  background: #fee2e2;
  color: #b91c1c;
}

.flight-airline {
  font-size: 12px;
  color: #64748b;
}

.flight-price-block {
  text-align: right;
}

.flight-price-block .price {
  font-size: 22px;
  font-weight: 800;
  color: #0a192f;
}

.flight-price-block .per-note {
  font-size: 11px;
  color: #94a3b8;
}

.select-flight-btn {
  margin-top: 8px;
  background: #0a192f;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s;
}

.select-flight-btn:hover {
  background: #17335c;
}

.select-flight-btn.selected {
  background: #16a34a;
}

.no-results-msg,
.loading-msg {
  text-align: center;
  padding: 30px;
  color: #64748b;
  background: #fff;
  border-radius: 10px;
  border: 1px dashed #cbd5e1;
}

.leg-error-msg {
  text-align: center;
  padding: 30px;
  color: #7f1d1d;
  background: #fef2f2;
  border-radius: 10px;
  border: 1px solid #fecaca;
}

.leg-error-msg p {
  margin-bottom: 14px;
}

.retry-btn {
  background: #0a192f;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.retry-btn:hover {
  background: #17335c;
}

.continue-bar {
  position: sticky;
  bottom: 0;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  border-radius: 10px;
  box-shadow: 0 -6px 20px rgba(10, 25, 47, 0.08);
  margin-top: 10px;
}

.continue-bar .continue-summary {
  font-size: 13px;
  color: #334155;
}

.continue-btn {
  background: #16a34a;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 12px 26px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.continue-btn:disabled {
  background: #94a3b8;
  cursor: not-allowed;
}

/* ==========================================================================
   Support chat widget
   ========================================================================== */
.chat-widget {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.chat-toggle-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: #0a192f;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(10, 25, 47, 0.35);
  transition: background-color 0.2s, transform 0.15s;
  flex-shrink: 0;
}

.chat-toggle-btn:hover {
  background: #17335c;
  transform: translateY(-2px);
}

.chat-toggle-icon-close { display: none; }

.chat-widget.chat-open .chat-toggle-icon-open { display: none; }
.chat-widget.chat-open .chat-toggle-icon-close { display: block; }

.chat-panel {
  width: 340px;
  max-width: calc(100vw - 40px);
  height: 480px;
  max-height: calc(100vh - 120px);
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(10, 25, 47, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-panel[hidden] { display: none; }

.chat-panel-header {
  background: #0a192f;
  color: #ffffff;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-panel-title {
  font-size: 14px;
  font-weight: 700;
}

.chat-panel-subtitle {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
}

.chat-close-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 6px;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f8fafc;
}

.chat-msg {
  display: flex;
}

.chat-msg-bot { justify-content: flex-start; }
.chat-msg-user { justify-content: flex-end; }

.chat-bubble {
  max-width: 85%;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.45;
}

.chat-msg-bot .chat-bubble {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #1e293b;
  border-bottom-left-radius: 3px;
}

.chat-msg-user .chat-bubble {
  background: #0a192f;
  color: #ffffff;
  border-bottom-right-radius: 3px;
}

.chat-bubble-link {
  display: block;
  margin-top: 8px;
  color: #0284c7;
  font-weight: 700;
  font-size: 12px;
  text-decoration: underline;
}

.chat-msg-user .chat-bubble-link {
  color: #7dd3fc;
}

.chat-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 14px;
  border-top: 1px solid #eef2f7;
  background: #ffffff;
}

.chat-quick-reply {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  color: #0369a1;
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.chat-quick-reply:hover {
  background: #e0f2fe;
}

.chat-quick-reply-agent {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #9a3412;
}

.chat-quick-reply-agent:hover {
  background: #ffedd5;
}

.chat-input-row {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid #eef2f7;
  background: #ffffff;
}

.chat-input-row input {
  flex: 1;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  padding: 9px 14px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
}

.chat-input-row input:focus {
  border-color: #38bdf8;
}

.chat-send-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #0a192f;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-send-btn:hover {
  background: #17335c;
}

@media (max-width: 480px) {
  .chat-widget {
    right: 14px;
    bottom: 14px;
  }

  .chat-panel {
    width: calc(100vw - 28px);
    height: calc(100vh - 110px);
  }
}

/* ==========================================================================
   Sign in / sign up / forgot password
   ========================================================================== */
.auth-nav-link.is-signed-in {
  color: #38bdf8 !important;
}

.auth-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 25, 47, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  padding: 20px;
}

.auth-modal-overlay[hidden] {
  display: none;
}

.auth-modal {
  background: #ffffff;
  border-radius: 14px;
  width: 380px;
  max-width: 100%;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 32px 28px 28px;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.auth-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 22px;
  color: #64748b;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
}

.auth-modal-close:hover {
  color: #0a192f;
}

.auth-title {
  font-size: 20px;
  color: #0a192f;
  margin-bottom: 6px;
  font-weight: 700;
}

.auth-demo-notice {
  font-size: 12px;
  color: #64748b;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 16px;
  line-height: 1.4;
}

.auth-demo-code {
  font-size: 13px;
  color: #0369a1;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 16px;
  line-height: 1.5;
}

.auth-demo-code strong {
  display: block;
  font-size: 22px;
  letter-spacing: 5px;
  margin-top: 6px;
  color: #0a192f;
}

.auth-error {
  font-size: 12px;
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 16px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.auth-field input {
  font-family: inherit;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 14px;
  box-sizing: border-box;
  width: 100%;
}

.auth-field input:focus {
  outline: none;
  border-color: #38bdf8;
}

.auth-submit-btn {
  margin-top: 4px;
  background: #0a192f;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s;
}

.auth-submit-btn:hover {
  background: #17335c;
}

.auth-links {
  margin-top: 12px;
  font-size: 12px;
  text-align: right;
}

.auth-links a {
  color: #0284c7;
  text-decoration: none;
  font-weight: 600;
}

.auth-links a:hover {
  text-decoration: underline;
}

.auth-switch {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #eef2f7;
  font-size: 13px;
  color: #64748b;
  text-align: center;
}

.auth-switch a {
  color: #0284c7;
  font-weight: 700;
  text-decoration: none;
}

.auth-switch a:hover {
  text-decoration: underline;
}
