/* ============================================
   JESTINY GUIDE — STYLESHEET (Kayak-style wide)
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700;800&display=swap');

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

:root {
  --maroon:        #410E17;
  --maroon-deep:   #2A0305;
  --gold:          #C9A24B;
  --gold-bright:   #E3C274;
  --teal:          #2E7D74;
  --color-bg:      #FFFFFF;
  --color-soft:    #FBF6F0;
  --color-surface: #FFFFFF;
  --color-primary: #410E17;
  --color-accent:  #2E7D74;
  --color-danger:  #B23A48;
  --color-text:    #2B2320;
  --color-muted:   #897F77;
  --color-border:  #E7DED4;
  --radius-sm:     10px;
  --radius-md:     16px;
  --radius-lg:     22px;
  --shadow-card:   0 4px 24px rgba(65,14,23,0.07);
  --shadow-btn:    0 6px 18px rgba(65,14,23,0.20);
  --font-display:  'Fraunces', Georgia, serif;
  --font-body:     'Inter', system-ui, -apple-system, sans-serif;
  --maxw:          1180px;
  --transition:    0.2s ease;
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- HEADER (Kayak-style, logo left) ---------- */
.site-header {
  background: var(--maroon);
  width: 100%;
}
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1.5rem;
}
.logo { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.logo-img {
  height: 78px;
  width: auto;
  display: block;
}
.logo-wordmark {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
  line-height: 1;
}
.logo-wordmark-guide {
  color: var(--gold-bright);
  font-weight: 600;
  margin-left: 0.15em;
}
.header-nav { display: flex; gap: 1.5rem; }
.header-nav a {
  color: var(--gold-bright);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color var(--transition);
}
.header-nav a:hover { color: #fff; }

/* ---------- MAIN ---------- */
#app-container { flex: 1; width: 100%; }
.view-panel { display: none; }
.view-panel.active { display: block; }
.content-wrap { max-width: var(--maxw); margin: 0 auto; padding: 1.5rem; }

/* ---------- HERO BAND (wide, left aligned) ---------- */
.hero-band {
  background: var(--color-soft);
  width: 100%;
  border-bottom: 1px solid var(--color-border);
}
.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 3rem 1.5rem 3.5rem;
  text-align: left;
}
.hero-title {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.05;
  color: var(--maroon);
  letter-spacing: -0.5px;
}
.hero-sub {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  font-style: italic;
  color: var(--gold);
  margin: 0.4rem 0 1rem;
}
.screen-subtitle {
  font-size: 1rem;
  color: var(--color-muted);
  line-height: 1.6;
  max-width: 620px;
  margin-bottom: 2.5rem;   /* more space before search (your #8) */
}

/* ---------- SEARCH ---------- */
.search-row { position: relative; max-width: 720px; }
.input-container {
  display: flex;
  align-items: center;
  width: 100%;
  background: #fff;
  border: 2px solid var(--maroon);
  border-radius: 50px;
  padding: 0.75rem 0.9rem 0.75rem 1.25rem;
  gap: 0.7rem;
  box-shadow: var(--shadow-card);
}
.search-icon { font-size: 1.05rem; color: var(--color-muted); }
#airport-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 1.02rem;
  background: transparent;
  color: var(--color-text);
}
#airport-search-input::placeholder { color: var(--color-muted); }
#mic-access-btn {
  background: var(--maroon);
  border: none; cursor: pointer; color: #fff;
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition), transform var(--transition);
  flex-shrink: 0; padding: 0;
}
#mic-access-btn svg { display: block; }
#mic-access-btn:hover { background: var(--maroon-deep); transform: scale(1.05); }
#mic-access-btn.listening { background: var(--color-danger); animation: pulse 1.2s infinite; }

#chat-mic-btn {
  background: var(--maroon);
  border: none; cursor: pointer; color: #fff;
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition), transform var(--transition);
  flex-shrink: 0; padding: 0;
}
#chat-mic-btn svg { display: block; }
#chat-mic-btn:hover { background: var(--maroon-deep); transform: scale(1.05); }
#chat-mic-btn.listening { background: var(--color-danger); animation: pulse 1.2s infinite; }
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(178,58,72,0.5); }
  50% { box-shadow: 0 0 0 8px rgba(178,58,72,0); }
}

.dropdown-hide { display: none; }
#search-dropdown {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px);
  background: #fff; border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-card);
  max-height: 280px; overflow-y: auto; z-index: 50; text-align: left;
}
.dropdown-item {
  padding: 0.8rem 1.1rem; cursor: pointer; font-size: 0.95rem;
  border-bottom: 1px solid var(--color-border);
  display: flex; align-items: center; gap: 0.6rem; transition: background var(--transition);
}
.dropdown-item:last-child { border-bottom: none; }
.dropdown-item:hover, .dropdown-item.focused { background: var(--color-soft); }
.dropdown-item .airport-code { font-weight: 700; color: var(--maroon); min-width: 42px; }

/* Real flag images — used instead of flag emoji, which render unreliably on Windows */
.flag-icon {
  display: inline-block; vertical-align: middle; border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.08); margin-right: 0.15rem;
}

.airport-chips { display: flex; gap: 0.7rem; margin-top: 1.5rem; flex-wrap: wrap; }
.chip {
  background: #fff; border: 1.5px solid var(--color-border); border-radius: 50px;
  padding: 0.55rem 1.1rem; font-size: 0.88rem; font-weight: 600;
  color: var(--maroon); cursor: pointer; transition: all var(--transition); white-space: nowrap;
  display: inline-flex; align-items: center; gap: 0.45rem;
}
.chip:hover { border-color: var(--gold); background: var(--color-soft); transform: translateY(-1px); }

/* ---------- VALUE STRIP (3 cols) ---------- */
.value-strip {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem;
  padding: 3rem 1.5rem;
}
.value-col {
  border-left: 3px solid var(--gold); padding-left: 1.1rem;
}
.value-col h3 {
  font-family: var(--font-display); font-size: 1.25rem; color: var(--maroon);
  margin-bottom: 0.4rem; font-weight: 600;
}
.value-col p { font-size: 0.95rem; color: var(--color-muted); line-height: 1.6; }

/* ---------- SECTION HEADINGS (highlighted) ---------- */
.section-heading {
  font-family: var(--font-display); font-size: 1.9rem; font-weight: 700;
  color: var(--maroon); margin: 0 0 1.75rem; letter-spacing: -0.3px; text-align: left;
}
.heading-accent { position: relative; display: inline-block; padding: 0 0.15em; }
.heading-accent::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.08em; height: 0.4em;
  background: linear-gradient(120deg, rgba(201,162,75,0.45), rgba(227,194,116,0.6));
  z-index: -1; border-radius: 3px;
}

/* ---------- TIPS (full width, left, no boxes) ---------- */
.tips-section, .faq-section, .rate-tips {
  max-width: var(--maxw); margin: 0 auto; padding: 3rem 1.5rem;
}
.rate-tips { padding: 2.5rem 0 1rem; }
.tips-list { display: flex; flex-direction: column; gap: 1.75rem; }
.tip-row {
  display: flex; gap: 1.5rem; align-items: flex-start;
  padding-bottom: 1.75rem; border-bottom: 1px solid var(--color-border);
}
.tip-row:last-child { border-bottom: none; }
.tip-num {
  font-family: var(--font-display); font-size: 2rem; font-weight: 700;
  color: var(--gold); line-height: 1; flex-shrink: 0; min-width: 2.5rem;
}
.tip-row p { font-size: 1.08rem; line-height: 1.75; color: var(--color-text); max-width: 900px; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 0.85rem; max-width: 900px; }
.faq-item {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-sm); padding: 0.2rem 1.25rem; transition: border-color var(--transition);
}
.faq-item[open] { border-color: var(--gold); }
.faq-item summary {
  font-weight: 600; font-size: 1.05rem; color: var(--maroon); cursor: pointer;
  padding: 1rem 0; list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--gold); }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { font-size: 1rem; line-height: 1.7; color: var(--color-text); padding: 0 0 1.1rem; }

/* ---------- BACK BUTTON ---------- */
.back-btn {
  background: none; border: none; color: var(--color-muted); font-size: 0.9rem;
  cursor: pointer; margin-bottom: 1.25rem; display: inline-flex; align-items: center; gap: 0.3rem;
}
.back-btn:hover { color: var(--maroon); }

/* ---------- CALCULATOR ---------- */
.calc-header {
  font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; color: var(--maroon);
  margin-bottom: 1.5rem; padding-bottom: 0.85rem; border-bottom: 2px solid var(--color-border);
}
.calculator-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem;
  background: var(--color-soft); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: 1.5rem; margin-bottom: 1.5rem;
}
.input-label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--color-muted); margin-bottom: 0.5rem; }
.currency-select-wrapper { position: relative; }
.currency-select {
  width: 100%; padding: 0.85rem 2.5rem 0.85rem 0.9rem; font-family: var(--font-body); font-size: 1rem;
  color: var(--color-text); background: #fff; border: 1.5px solid var(--maroon);
  border-radius: var(--radius-sm); cursor: pointer; font-weight: 600; text-align: left;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23410E17' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.9rem center;
}
.currency-select:focus { outline: none; border-color: var(--gold); }
.currency-dropdown {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px);
  background: #fff; border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-card);
  max-height: 280px; overflow-y: auto; z-index: 50; text-align: left;
}
.currency-dropdown-item .currency-flag { font-size: 1.1rem; }
.amount-input-row { display: flex; align-items: center; background: #fff; border: 1.5px solid var(--color-border); border-radius: var(--radius-sm); overflow: hidden; }
.currency-symbol { padding: 0.8rem 0.9rem; background: var(--maroon); color: #fff; font-weight: 700; font-size: 0.9rem; }
#fx-amount-input { flex: 1; border: none; outline: none; padding: 0.8rem 0.9rem; font-size: 1.05rem; font-family: var(--font-body); }

/* ---------- LOADING / ERROR ---------- */
.loading-state, .error-state { text-align: center; padding: 2rem 1rem; color: var(--color-muted); }
.spinner { width: 34px; height: 34px; border: 3px solid var(--color-border); border-top-color: var(--gold); border-radius: 50%; margin: 0 auto 0.75rem; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.error-state { background: #FDF2F2; border: 1px solid #F5C6CB; border-radius: var(--radius-sm); color: #842029; }

/* ---------- RATES BAND (highlighted, not boxes) ---------- */
.rates-band { display: flex; flex-direction: column; gap: 0; margin-bottom: 2rem; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--color-border); }
.rate-line {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.5rem 1.75rem;
}
.rate-best { background: linear-gradient(90deg, rgba(46,125,116,0.12), rgba(46,125,116,0.03)); border-left: 6px solid var(--teal); }
.rate-avoid { background: linear-gradient(90deg, rgba(178,58,72,0.10), rgba(178,58,72,0.02)); border-left: 6px solid var(--color-danger); border-top: 1px solid var(--color-border); }
.rate-line-left { display: flex; flex-direction: column; gap: 0.25rem; }
.rate-tag { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.tag-best { color: var(--teal); }
.tag-avoid { color: var(--color-danger); }
.rate-counter { font-size: 1.15rem; font-weight: 700; color: var(--color-text); }
.rate-sub { font-size: 0.85rem; color: var(--color-muted); }
.rate-line-right { text-align: right; }
.rate-value { display: block; font-size: 1.5rem; font-weight: 800; color: var(--maroon); }
.rate-saving { display: block; font-size: 0.82rem; color: var(--teal); font-weight: 600; margin-top: 0.2rem; }

/* ---------- TRADER COMPARISON TABLE ---------- */
.trader-compare { margin-bottom: 2.5rem; }
.trader-list { display: flex; flex-direction: column; gap: 0.75rem; }
.trader-row {
  display: flex; align-items: center; gap: 1rem; justify-content: space-between;
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  padding: 1rem 1.25rem; transition: box-shadow var(--transition), transform var(--transition);
}
.trader-row:hover { box-shadow: var(--shadow-card); transform: translateY(-1px); }
.trader-row.q-elite { border-left: 5px solid var(--teal); }
.trader-row.q-best  { border-left: 5px solid var(--gold); }
.trader-row.q-good  { border-left: 5px solid #6BA8A0; }
.trader-row.q-avoid { border-left: 5px solid var(--color-danger); opacity: 0.85; }
.trader-info { display: flex; flex-direction: column; gap: 0.2rem; }
.trader-name { font-weight: 700; font-size: 1.02rem; color: var(--color-text); }
.trader-loc { font-size: 0.85rem; color: var(--color-muted); }
.trader-note { font-size: 0.82rem; color: var(--teal); font-weight: 500; }
.trader-meta { text-align: right; flex-shrink: 0; }
.trader-commission { font-size: 0.8rem; font-weight: 600; padding: 0.25rem 0.6rem; border-radius: 50px; white-space: nowrap; }
.comm-zero { background: rgba(46,125,116,0.12); color: var(--teal); }
.comm-low  { background: rgba(201,162,75,0.18); color: #8a6d22; }
.comm-high { background: rgba(178,58,72,0.12); color: var(--color-danger); }

/* Real mid-market rate banner */
.midmarket-banner {
  background: linear-gradient(135deg, rgba(46,125,116,0.10), rgba(46,125,116,0.03));
  border: 1.5px solid var(--teal); border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem; margin-bottom: 1.25rem;
}
.midmarket-main { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.midmarket-label { font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--teal); }
.midmarket-rate { font-size: 1.4rem; font-weight: 800; color: var(--maroon); }
.midmarket-note { font-size: 0.85rem; line-height: 1.55; color: var(--color-muted); margin-top: 0.5rem; }
.amount-calc {
  display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
  margin-top: 0.9rem; padding-top: 0.9rem; border-top: 1px dashed rgba(46,125,116,0.3);
}
.amount-calc label { font-size: 0.88rem; font-weight: 600; color: var(--color-text); }
.amount-calc input[type="number"] {
  width: 6.5rem; padding: 0.4rem 0.6rem; border: 1.5px solid var(--teal);
  border-radius: 8px; font-size: 0.95rem; font-weight: 700; color: var(--maroon);
}
.amount-calc-currency { font-weight: 700; color: var(--teal); }
.amount-calc-hint { font-size: 0.8rem; color: var(--color-muted); }
.trader-received { font-size: 0.85rem; font-weight: 700; color: var(--maroon); margin-top: 0.15rem; }

/* Per-trader tier guidance (honest, no fake numbers) */
.trader-tier { display: block; font-size: 0.9rem; font-weight: 700; margin-bottom: 0.1rem; }
.tier-elite { color: var(--teal); }
.tier-best  { color: #8a6d22; }
.tier-good  { color: #5a8a82; }
.tier-avoid { color: var(--color-danger); }
.trader-tier-pct { display: block; font-size: 0.78rem; color: var(--color-muted); margin-bottom: 0.45rem; }
.trader-prebook {
  display: inline-block; align-self: flex-start; margin-top: 0.5rem; font-size: 0.85rem; font-weight: 700;
  color: var(--maroon); text-decoration: none; padding: 0.35rem 0.8rem;
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  border-radius: 50px; transition: filter var(--transition);
}
.trader-prebook:hover { filter: brightness(1.06); }

/* Floating "I've arrived at the counter" confirmation button */
.arrived-floating-btn {
  position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  z-index: 900; display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.5rem; font-size: 0.95rem; font-weight: 700;
  color: var(--maroon); background: #fff; border: 2px solid var(--maroon);
  border-radius: 50px; cursor: pointer;
  box-shadow: 0 8px 24px rgba(65,14,23,0.35);
  transition: transform var(--transition), box-shadow var(--transition);
}
.arrived-floating-btn:hover { transform: translateX(-50%) translateY(-2px); box-shadow: 0 10px 28px rgba(65,14,23,0.45); background: #FBF1E3; }
.arrived-floating-btn.hidden { display: none; }

/* Counter-pick list on directions page */
.nav-intro { max-width: 760px; margin-bottom: 1.5rem; }
.counter-pick { max-width: 760px; margin-bottom: 2rem; }
.counter-pick-heading {
  font-family: var(--font-display); font-size: 1.4rem; color: var(--maroon);
  margin-bottom: 1rem; font-weight: 600;
}
.counter-pick-list { display: flex; flex-direction: column; gap: 0.75rem; }
.counter-pick-item {
  display: flex; flex-direction: column; gap: 0.25rem; text-align: left;
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md);
  padding: 1rem 1.25rem; cursor: pointer; transition: all var(--transition); position: relative;
}
.counter-pick-item:hover { border-color: var(--gold); box-shadow: var(--shadow-card); transform: translateY(-1px); }
.counter-pick-item.q-elite { border-left: 5px solid var(--teal); }
.counter-pick-item.q-best  { border-left: 5px solid var(--gold); }
.counter-pick-item.q-good  { border-left: 5px solid #6BA8A0; }
.counter-pick-item.q-avoid { border-left: 5px solid var(--color-danger); }
.counter-pick-name { font-weight: 700; font-size: 1.02rem; color: var(--color-text); }
.counter-pick-loc { font-size: 0.85rem; color: var(--color-muted); }
.counter-pick-go { font-size: 0.85rem; font-weight: 700; color: var(--teal); margin-top: 0.3rem; }

/* ---------- ALERTS ---------- */
.alerts-section { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 2rem; }
.alert-item { padding: 0.85rem 1.1rem; border-radius: var(--radius-sm); font-size: 0.92rem; background: var(--color-soft); border-left: 4px solid var(--gold); }
.alert-danger { background: #FDF2F2; border-left-color: var(--color-danger); }
.alert-success { background: #F0F8F6; border-left-color: var(--teal); }

/* ---------- BUTTONS ---------- */
.btn-primary {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  width: 100%; padding: 1.1rem 1.5rem; background: var(--maroon); color: #fff;
  border: none; border-radius: var(--radius-md); font-size: 1.05rem; font-weight: 700;
  font-family: var(--font-body); cursor: pointer; transition: all var(--transition); box-shadow: var(--shadow-btn);
}
.btn-primary:hover { background: var(--maroon-deep); transform: translateY(-1px); }
.cta-arrow { font-size: 1.2rem; }
.cta-text { flex: 1; text-align: center; }
.cta-currency {
  font-size: 1.15rem; font-weight: 800; background: var(--gold);
  color: var(--maroon-deep); width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ---------- NAVIGATION SCREEN ---------- */
.action-funnel { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.5rem; max-width: 760px; }
.btn-monetize {
  display: block; width: 100%; padding: 1.1rem; text-align: center; text-decoration: none;
  background: linear-gradient(135deg, var(--gold), var(--gold-bright)); color: var(--maroon-deep);
  border-radius: var(--radius-md); font-size: 1.05rem; font-weight: 700; box-shadow: var(--shadow-btn);
  transition: all var(--transition);
}
.btn-monetize:hover { filter: brightness(1.05); transform: translateY(-1px); }

/* Highlighted note between affiliate and bot */
.nav-note {
  display: flex; gap: 0.85rem; align-items: flex-start;
  background: var(--color-soft); border: 1px dashed var(--gold);
  border-radius: var(--radius-md); padding: 1.1rem 1.25rem;
}
.nav-note-icon { font-size: 1.3rem; flex-shrink: 0; }
.nav-note p { font-size: 0.96rem; line-height: 1.6; color: var(--color-text); margin: 0; }

.btn-navigation {
  width: 100%; padding: 1.1rem; background: var(--teal); color: #fff; border: none;
  border-radius: var(--radius-md); font-size: 1.05rem; font-weight: 700; cursor: pointer;
  transition: all var(--transition);
}
.btn-navigation:hover { background: #25655E; transform: translateY(-1px); }

/* ---------- CHATBOT ---------- */
.bot-hide { display: none; }
#chatbot-workspace.active { display: block; max-width: 760px; margin-top: 1.5rem; border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; }
.chat-header { display: flex; align-items: center; gap: 0.6rem; padding: 0.9rem 1.1rem; background: var(--maroon); color: #fff; }
.chat-avatar { display: inline-flex; }
.chat-avatar svg { display: block; }
.chat-name { font-weight: 700; }
.chat-status { margin-left: auto; font-size: 0.78rem; color: #7BD4A8; }
#chat-history-log { padding: 1.1rem; min-height: 220px; max-height: 420px; overflow-y: auto; display: flex; flex-direction: column; gap: 0.75rem; background: var(--color-soft); }
.chat-bubble { padding: 0.75rem 1rem; border-radius: var(--radius-md); font-size: 0.95rem; line-height: 1.55; max-width: 85%; white-space: pre-wrap; }
.bubble-bot { background: #fff; border: 1px solid var(--color-border); align-self: flex-start; }
.bubble-user { background: var(--maroon); color: #fff; align-self: flex-end; }
.bubble-checkin {
  background: #FBF1E3; border: 1.5px solid var(--gold); align-self: flex-start;
  font-weight: 700; font-size: 1.05rem; color: var(--maroon);
}
.chat-input-area { display: flex; gap: 0.5rem; padding: 0.85rem; border-top: 1px solid var(--color-border); background: #fff; }
#chat-user-input { flex: 1; border: 1.5px solid var(--color-border); border-radius: 50px; padding: 0.7rem 1rem; font-size: 0.95rem; font-family: var(--font-body); outline: none; }
#chat-user-input:focus { border-color: var(--gold); }
#chat-send-btn { background: var(--maroon); color: #fff; border: none; border-radius: 50px; padding: 0 1.4rem; font-weight: 700; cursor: pointer; }
#chat-send-btn:hover { background: var(--maroon-deep); }
.chat-loading { display: flex; gap: 0.3rem; padding: 0.75rem 1.1rem; }
.chat-loading .dot { width: 8px; height: 8px; background: var(--gold); border-radius: 50%; animation: bounce 1.2s infinite; }
.chat-loading .dot:nth-child(2) { animation-delay: 0.2s; }
.chat-loading .dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes bounce { 0%,60%,100% { transform: translateY(0); } 30% { transform: translateY(-6px); } }
.affiliate-disclaimer { font-size: 0.78rem; color: var(--color-muted); text-align: center; }

/* ---------- REVIEW POPUP ---------- */
.review-overlay { position: fixed; inset: 0; background: rgba(42,3,5,0.55); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 1rem; }
.review-modal { background: #fff; border-radius: var(--radius-lg); padding: 2rem 1.75rem 1.75rem; max-width: 420px; width: 100%; text-align: center; position: relative; box-shadow: 0 20px 60px rgba(42,3,5,0.4); }
.review-close { position: absolute; top: 0.75rem; right: 1rem; background: none; border: none; font-size: 1.6rem; color: var(--color-muted); cursor: pointer; }
.review-title { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; color: var(--maroon); margin-bottom: 0.4rem; }
.review-text { font-size: 0.9rem; color: var(--color-muted); margin-bottom: 1.2rem; }
.star-rating { display: flex; justify-content: center; gap: 0.3rem; margin-bottom: 1.2rem; }
.star { font-size: 2.2rem; color: var(--color-border); cursor: pointer; transition: color 0.15s, transform 0.15s; }
.star:hover { transform: scale(1.15); }
.star.selected { color: var(--gold); }
.review-comment { width: 100%; min-height: 80px; padding: 0.75rem; font-family: var(--font-body); font-size: 0.9rem; border: 1.5px solid var(--color-border); border-radius: var(--radius-sm); resize: vertical; margin-bottom: 1rem; }
.review-comment:focus { outline: none; border-color: var(--gold); }
.review-thanks { color: var(--teal); font-weight: 600; margin-top: 1rem; }

/* ---------- KAYAK-STYLE FOOTER ---------- */
.site-footer { background: var(--maroon); color: #D8C3C7; margin-top: 3rem; }
.footer-cols {
  max-width: var(--maxw); margin: 0 auto; padding: 3rem 1.5rem 2rem;
  display: grid; grid-template-columns: repeat(4,1fr); gap: 2rem;
}
.footer-col h4 { color: #fff; font-size: 0.95rem; margin-bottom: 1rem; }
.footer-col a { display: block; color: #D8C3C7; text-decoration: none; font-size: 0.9rem; margin-bottom: 0.6rem; transition: color var(--transition); }
.footer-col a:hover { color: var(--gold-bright); }
.footer-blog-link { display: flex !important; align-items: center; gap: 0.5rem; }
.footer-blog-icon { flex-shrink: 0; }
.footer-brand-col .footer-slogan { font-family: var(--font-display); font-size: 1.3rem; font-style: italic; font-weight: 600; color: var(--gold-bright); margin-bottom: 0.4rem; }
.footer-tagline { font-size: 0.88rem; color: #C2A9AE; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); }
.footer-bottom p { max-width: var(--maxw); margin: 0 auto; padding: 1.25rem 1.5rem; font-size: 0.78rem; opacity: 0.8; line-height: 1.6; }

/* ---------- UTILITIES ---------- */
.hidden { display: none !important; }

/* ---------- RESPONSIVE ---------- */
/* Wide desktop is the default (left-aligned). Stack columns on smaller screens. */
@media (max-width: 880px) {
  .value-strip { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .calculator-card { grid-template-columns: 1fr; }
  .hero-title { font-size: 2.3rem; }
}
@media (max-width: 560px) {
  .logo-img { height: 64px; }
  .header-inner { padding: 0.4rem 1rem; }
  .hero-inner { padding: 2rem 1.1rem 2.5rem; }
  .hero-title { font-size: 2rem; }
  .hero-sub { font-size: 1.15rem; }
  .section-heading { font-size: 1.5rem; }
  .tip-row p { font-size: 1rem; }
  .tip-row { gap: 1rem; }
  .rate-line { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .rate-line-right { text-align: left; }
  .footer-cols { grid-template-columns: 1fr; }
  .trader-row { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
  .trader-meta { text-align: left; }
  .content-wrap, .tips-section, .faq-section { padding: 1.5rem 1.1rem; }
}
@media (prefers-reduced-motion: reduce) { .spinner, .dot { animation: none; } * { transition: none !important; } }
