/* ============================================================
   DestinationAGo — app.css
   Design Direction: Refined Expedition
   Palette:
     Main 1: Deep Navy  #0D1B2A  (primary background)
     Main 2: Slate Blue #1B3A5C  (card/panel background)
     Main 3: Warm Sand  #F5EFE6  (light surface / text)
     Accent 1: Saffron  #F4A335  (CTA, highlights)
     Accent 2: Jade     #2EC4A9  (success, active, links)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:wght@300;400;500&display=swap');

/* ── TOKENS — matched to indexTB.html reference ─────────── */
:root {
  /* Backgrounds */
  --bg:          linear-gradient(to right, #e58c1f, #FFF95B);
  --bg-body:     linear-gradient(to right, #e58c1f, #FFF95B);
  --bg2:         #111827;
  --bg3:         #1a2235;
  --navy:        #111827;
  --slate2:      #1e2840;

  /* Cards */
  --card:        linear-gradient(135deg, #3c6bbd 0%, #1a4a8a 100%);
  --slate:       linear-gradient(135deg, #3c6bbd 0%, #1a4a8a 100%);
  --card2:       #1e2840;

  /* Accents */
  --accent:      #00d4a1;
  --accent2:     #00b489;
  --accent-glow: rgba(0,212,161,0.15);
  --jade:        #00d4a1;
  --jade2:       #00b489;
  --jade-glow:   rgba(0,212,161,0.15);
  --saffron:     #f5a623;
  --saffron2:    #d4891a;
  --amber:       #f5a623;
  --blue:        #4f8ef7;
  --danger:      #ff6b9d;
  --pink:        #ff6b9d;
  --purple:      #a78bfa;
  --text4:       #3c6bbd;

  /* Text */
  --text:         #f0f4ff;
  --text-primary: #f0f4ff;
  --text2:        #ffffff;
  --white:        #ffffff;
  --text3:        rgba(255,255,255,0.6);
  --text-muted:   rgba(255,255,255,0.6);
  --text-dim:     rgba(255,255,255,0.35);
  --text-dark:    #111827;

  /* Borders */
  --border:      rgba(255,255,255,0.07);
  --border2:     rgba(0,212,161,0.25);

  /* Radii */
  --r:     16px;
  --r2:    12px;
  --r3:    24px;
  --r-sm:  12px;
  --r-md:  16px;
  --r-lg:  16px;
  --r-xl:  24px;

  /* Typography */
  --font-display: 'Syne', sans-serif;
  --font-head:    'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  /* Shadows */
  --shadow-card:  0 4px 24px rgba(0,0,0,0.35), 0 1px 4px rgba(0,0,0,0.2);
  --shadow-glow:  0 0 60px rgba(0,212,161,0.06);
  --transition:   0.22s cubic-bezier(0.4,0,0.2,1);
}

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box; margin: 0; padding: 0;
  -webkit-tap-highlight-color: transparent;
}
html { scroll-behavior: smooth; }
html, body { height: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg-body);
  color: var(--text-primary);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ── PHONE SHELL ─────────────────────────────────────────── */
.phone {
  width: 390px;
  height: 844px;
  background: var(--bg-body);
  border-radius: 44px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 0 0 1px rgba(245,239,230,0.06),
    0 40px 120px rgba(0,0,0,0.7),
    var(--shadow-glow);
}
.phone-bg-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(245,239,230,0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

/* Dynamic island */
.island {
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  width: 118px; height: 34px;
  background: #000;
  border-radius: 20px;
  z-index: 100;
}

/* Status bar */
.status-bar {
  height: 52px;
  display: flex; align-items: flex-end;
  justify-content: space-between;
  padding: 0 28px 8px;
  flex-shrink: 0;
  position: relative; z-index: 10;
}
.status-time {
  font-family: var(--font-body);
  font-size: 14px; font-weight: 700;
  color: var(--text-primary);
}
.status-icons { display: flex; align-items: center; gap: 6px; }
.status-icons svg { width: 15px; height: 15px; fill: var(--text-primary); }
.battery {
  width: 24px; height: 12px;
  border: 1.5px solid var(--text-primary);
  border-radius: 3px; position: relative;
}
.battery::after {
  content: ''; position: absolute;
  right: -4px; top: 3px;
  width: 2px; height: 5px;
  background: var(--text-primary); border-radius: 1px;
}
.battery-fill {
  height: 100%; width: 70%;
  background: var(--jade); border-radius: 1px;
}

/* ── SCREENS ──────────────────────────────────────────────── */
.screens { flex: 1; overflow: hidden; position: relative; z-index: 1; }
.screen {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  transition: transform var(--transition), opacity 0.25s;
  background: #111827;
}
.screen.hidden      { transform: translateX(100%); opacity: 0; pointer-events: none; }
.screen.slide-left  { transform: translateX(-30%); opacity: 0; pointer-events: none; }

/* Scrollable area */
.scroll-area {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}
.scroll-area::-webkit-scrollbar { width: 4px; }
.scroll-area::-webkit-scrollbar-track { background: transparent; }
.scroll-area::-webkit-scrollbar-thumb { background: rgba(245,239,230,0.12); border-radius: 99px; }

/* ── BOTTOM NAV ──────────────────────────────────────────── */
.bottom-nav {
  height: 72px;
  background: #111827;
  border-top: 1px solid var(--border);
  display: flex; align-items: flex-start;
  padding-top: 8px;
  flex-shrink: 0; z-index: 50;
  position: relative;
}
.nav-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; gap: 2px;
  cursor: pointer; padding: 2px 0;
  transition: var(--transition);
  min-width: 0;
}
.nav-icon {
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 7px;
  transition: var(--transition);
  font-size: 13px;
}
.nav-item.active .nav-icon { background: var(--jade-glow); }
.nav-label {
  font-size: 7px; font-weight: 600;
  color: var(--text-dim);
  transition: color var(--transition);
  font-family: var(--font-body);
  white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; max-width: 42px;
  text-align: center;
  letter-spacing: 0.3px;
}
.nav-item.active .nav-label { color: var(--jade); }

/* ── SCREEN HEADER ───────────────────────────────────────── */
.screen-header {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px 12px;
  flex-shrink: 0;
  background: #111827;
  border-bottom: 1px solid var(--border);
}
.back-btn {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, #3c6bbd 0%, #1a4a8a 100%);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 16px;
  color: var(--jade);
  transition: var(--transition);
  flex-shrink: 0;
}
.back-btn:active { background: var(--slate2); }
.screen-title {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 700;
  color: var(--text-primary);
  flex: 1;
  letter-spacing: -0.3px;
}

/* ── HOME SCREEN ─────────────────────────────────────────── */
.home-header {
  padding: 14px 20px 0;
  position: relative; z-index: 2;
}
.home-header-row {
  display: flex; justify-content: space-between; align-items: center;
}
.home-greeting {
  font-size: 12px; color: var(--jade);
  font-weight: 600; letter-spacing: 1.2px;
  text-transform: uppercase; margin-bottom: 3px;
}
.home-title {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  letter-spacing: -0.5px;
}
.home-title em { color: var(--saffron); font-style: normal; }
.avatar-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--saffron) 0%, var(--jade) 100%);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-body);
  font-size: 11px; font-weight: 800;
  color: var(--navy);
  cursor: pointer; flex-shrink: 0;
  letter-spacing: 0.5px;
}

/* Hero card */
.hero-card {
  margin: 16px 20px;
  background: linear-gradient(135deg, #3c6bbd 0%, #1a4a8a 100%);
  border-radius: var(--r-xl);
  padding: 22px 20px;
  position: relative; overflow: hidden;
  border: 1px solid var(--border2);
  box-shadow: var(--shadow-card);
}
.hero-card::before {
  content: '';
  position: absolute; top: -30px; right: -30px;
  width: 140px; height: 140px; border-radius: 50%;
  background: radial-gradient(circle, rgba(46,196,169,0.18) 0%, transparent 70%);
}
.hero-card::after {
  content: '✈️';
  position: absolute; right: 20px; top: 50%;
  transform: translateY(-50%);
  font-size: 54px; opacity: 0.5;
}
.hero-tag {
  font-size: 10px; font-weight: 700;
  color: var(--jade); letter-spacing: 1.8px;
  text-transform: uppercase; margin-bottom: 6px;
}
.hero-dest {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 800;
  color: var(--text-primary); margin-bottom: 3px;
  letter-spacing: -0.3px;
}
.hero-date { font-size: 12px; color: var(--text-muted); margin-bottom: 18px; }
.hero-stats { display: flex; gap: 24px; }
.hero-stat .val {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700;
  color: var(--saffron);
}
.hero-stat .lbl {
  font-size: 9px; color: var(--text-muted);
  margin-top: 1px; text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* Section titles */
.section-title {
  font-family: var(--font-body);
  font-size: 11px; font-weight: 700;
  color: var(--text-muted);
  padding: 0 20px;
  margin-bottom: 10px;
  text-transform: uppercase; letter-spacing: 1.4px;
}
.section-title.pt-4 { padding-top: 14px; }

/* Quick chip grid */
.chips-scroll {
  display: flex; gap: 8px;
  padding: 0 20px; overflow-x: auto;
  margin-bottom: 20px;
}
.chips-scroll::-webkit-scrollbar { display: none; }
.chip {
  display: flex; flex-direction: column;
  align-items: center; gap: 6px;
  cursor: pointer; flex-shrink: 0;
  transition: transform var(--transition);
}
.chip:active { transform: scale(0.92); }
.chip-icon {
  width: 54px; height: 54px;
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  background: linear-gradient(135deg, #3c6bbd 0%, #1a4a8a 100%);
  border: 1px solid var(--border);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.chip:active .chip-icon { border-color: var(--jade); box-shadow: 0 0 0 2px var(--jade-glow); }
.chip-label {
  font-size: 10px; color: var(--text-muted);
  font-weight: 600; text-align: center;
  max-width: 58px; line-height: 1.2;
}

/* Feature cards grid */
.feature-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px; padding: 0 20px 24px;
}
.feat-card {
  background: linear-gradient(135deg, #3c6bbd 0%, #1a4a8a 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px;
  cursor: pointer;
  transition: var(--transition);
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-card);
}
.feat-card:active { transform: scale(0.97); }
.feat-card.accent-border { border-color: rgba(244,163,53,0.35); }
.feat-icon { font-size: 26px; margin-bottom: 10px; }
.feat-title {
  font-family: var(--font-body);
  font-size: 13px; font-weight: 700;
  color: var(--text-primary); margin-bottom: 4px;
}
.feat-sub { font-size: 11px; color: var(--text-muted); line-height: 1.4; }
.feat-badge {
  position: absolute; top: 12px; right: 12px;
  font-size: 9px; font-weight: 700;
  padding: 3px 8px; border-radius: 99px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.badge-jade   { background: rgba(46,196,169,0.15); color: var(--jade); }
.badge-saffron { background: rgba(244,163,53,0.15); color: var(--saffron); }
.badge-green  { background: rgba(46,196,169,0.15); color: var(--jade); }
.badge-blue   { background: rgba(79,142,247,0.15); color: #4f8ef7; }
.badge-orange { background: rgba(244,163,53,0.12); color: var(--saffron); }

/* ── CHECKLIST ───────────────────────────────────────────── */
.trip-seg {
  display: flex; margin: 0 20px 14px;
  background: linear-gradient(135deg, #3c6bbd 0%, #1a4a8a 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 4px;
  flex-shrink: 0;
}
.seg-btn {
  flex: 1; padding: 9px 8px;
  border-radius: 10px;
  font-size: 12px; font-weight: 600;
  text-align: center; cursor: pointer;
  transition: var(--transition);
  color: var(--text-muted);
  font-family: var(--font-body);
}
.seg-btn.active { background: var(--jade); color: var(--navy); }

.progress-wrap { padding: 0 20px 16px; flex-shrink: 0; }
.progress-info { display: flex; justify-content: space-between; margin-bottom: 8px; }
.progress-info span { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.progress-info strong { font-size: 12px; color: var(--jade); font-weight: 700; }
.prog-bar { height: 5px; background: #1e2840; border-radius: 99px; overflow: hidden; }
.prog-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--jade) 0%, var(--saffron) 100%);
  border-radius: 99px;
  transition: width 0.4s cubic-bezier(0.4,0,0.2,1);
}

.check-group { margin: 0 20px 10px; border-radius: var(--r-md); overflow: hidden; }
.group-header {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 14px;
  background: linear-gradient(135deg, #3c6bbd 0%, #1a4a8a 100%);
  cursor: pointer;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  transition: var(--transition);
  user-select: none;
}
.group-header.open {
  border-radius: var(--r-md) var(--r-md) 0 0;
  border-color: var(--border2);
  background: var(--slate2);
}
.group-icon { font-size: 18px; flex-shrink: 0; }
.group-name { font-size: 13px; font-weight: 700; color: var(--text-primary); flex: 1; }
.group-count { font-size: 11px; color: var(--jade); font-weight: 600; }
.group-chevron {
  width: 24px; height: 24px;
  border-radius: 7px;
  background: rgba(245,239,230,0.06);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: var(--text-muted);
  transition: transform 0.25s, background var(--transition);
}
.group-header.open .group-chevron {
  transform: rotate(180deg);
  background: var(--jade-glow);
  color: var(--jade); border-color: var(--jade);
}
.group-body {
  background: linear-gradient(135deg, #3c6bbd 0%, #1a4a8a 100%);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--r-md) var(--r-md);
  overflow: hidden; max-height: 0;
  transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1);
}
.group-body.open { max-height: 600px; }
.check-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.check-item:last-child { border-bottom: none; }
.check-item:active { background: var(--slate2); }
.chk {
  width: 22px; height: 22px;
  border-radius: 7px;
  border: 1.5px solid rgba(245,239,230,0.25);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.chk.on { background: var(--jade); border-color: var(--jade); }
.chk.on::after {
  content: '';
  display: block; width: 6px; height: 10px;
  border: 2px solid var(--navy);
  border-top: none; border-left: none;
  transform: rotate(45deg) translateY(-1px);
}
.chk-text { font-size: 13px; color: var(--text-primary); flex: 1; line-height: 1.4; }
.chk-text.done { text-decoration: line-through; color: var(--text-dim); }
.intl-pill {
  font-size: 9px; font-weight: 700;
  background: rgba(244,163,53,0.15); color: var(--saffron);
  padding: 2px 7px; border-radius: 99px;
  text-transform: uppercase; letter-spacing: 0.5px;
  flex-shrink: 0;
}
.check-group-inline { margin: 0; padding: 0; }

/* ── CURRENCY ────────────────────────────────────────────── */
.currency-hero {
  margin: 0 20px 20px;
  background: linear-gradient(135deg, #3c6bbd 0%, #1a4a8a 100%);
  border-radius: var(--r-xl); padding: 20px;
  border: 1px solid rgba(244,163,53,0.25);
  box-shadow: var(--shadow-card);
}
.cur-label {
  font-size: 10px; color: var(--saffron);
  font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.4px; margin-bottom: 8px;
}
.cur-input-wrap { position: relative; margin-bottom: 14px; }
.cur-input-wrap input {
  width: 100%;
  background: rgba(245,239,230,0.06);
  border: 1px solid rgba(245,239,230,0.12);
  border-radius: var(--r-md);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 30px; font-weight: 700;
  padding: 12px 16px; outline: none;
}
.cur-input-wrap input:focus { border-color: var(--saffron); }
.cur-selects { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.cur-selects select {
  flex: 1;
  background: rgba(245,239,230,0.07);
  border: 1px solid rgba(245,239,230,0.12);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 13px; padding: 10px 12px;
  outline: none; font-family: var(--font-body);
  -webkit-appearance: none;
}
.swap-btn {
  width: 36px; height: 36px;
  background: rgba(244,163,53,0.15);
  border: 1px solid var(--saffron);
  border-radius: 10px; color: var(--saffron);
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
  transition: var(--transition);
}
.swap-btn:active { background: rgba(244,163,53,0.3); }
.cur-result {
  text-align: center; padding: 14px;
  background: rgba(46,196,169,0.08);
  border-radius: var(--r-md);
  border: 1px solid rgba(46,196,169,0.2);
}
.cur-result .big {
  font-family: var(--font-display);
  font-size: 34px; font-weight: 800;
  color: var(--jade);
}
.cur-result .note { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.rate-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 8px; padding: 0 20px 24px;
}
.rate-chip {
  background: linear-gradient(135deg, #3c6bbd 0%, #1a4a8a 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px 10px; text-align: center;
  cursor: pointer; transition: var(--transition);
}
.rate-chip:active { border-color: var(--jade); background: var(--slate2); }
.rate-chip .flag { font-size: 20px; margin-bottom: 4px; }
.rate-chip .code { font-size: 11px; font-weight: 700; color: var(--text-primary); }
.rate-chip .val { font-size: 12px; color: var(--jade); font-weight: 600; margin-top: 2px; }

/* ── LANGUAGE ────────────────────────────────────────────── */
.lang-selector {
  display: flex; gap: 8px;
  padding: 0 20px 14px; overflow-x: auto;
  flex-shrink: 0;
}
.lang-selector::-webkit-scrollbar { display: none; }
.lang-scr-btn { padding: 0 20px 10px; font-size: 11px; color: var(--text-muted); }
.lang-chip {
  padding: 8px 14px; border-radius: 99px;
  font-size: 12px; font-weight: 600;
  border: 1.5px solid var(--border);
  background: linear-gradient(135deg, #3c6bbd 0%, #1a4a8a 100%);
  color: var(--text-muted);
  cursor: pointer; white-space: nowrap;
  transition: var(--transition);
  font-family: var(--font-body);
}
.lang-chip.active { background: var(--jade); border-color: var(--jade); color: var(--navy); }
.phrase-card {
  margin: 0 20px 10px;
  background: linear-gradient(135deg, #3c6bbd 0%, #1a4a8a 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-md); overflow: hidden;
}
.phrase-row {
  display: flex; align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  cursor: pointer; gap: 10px;
  transition: background var(--transition);
}
.phrase-row:last-child { border-bottom: none; }
.phrase-row:active { background: var(--slate2); }
.phrase-en { font-size: 12px; color: var(--text-muted); width: 36%; flex-shrink: 0; }
.phrase-trans { font-size: 13px; color: var(--jade); font-weight: 600; flex: 1; }
.phrase-copy { font-size: 10px; color: var(--text-dim); padding: 3px 8px; }
.lang-tip { padding: 0 20px 12px; font-size: 12px; color: var(--text-muted); line-height: 1.6; }

/* ── DISCOVER / EXPERIENCE SCREEN ────────────────────────── */
.search-bar {
  margin: 0 20px 12px;
  background: linear-gradient(135deg, #3c6bbd 0%, #1a4a8a 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  display: flex; align-items: center;
  padding: 0 14px; gap: 10px;
  transition: border-color var(--transition);
}
.search-bar:focus-within { border-color: var(--jade); }
.search-bar span { font-size: 15px; display: inline-block; }
.search-bar span.spinning { animation: spin 1s linear infinite; }
.search-bar input {
  flex: 1; background: none; border: none;
  color: var(--text-primary);
  font-size: 14px; padding: 14px 0;
  outline: none; font-family: var(--font-body);
}
.search-bar input::placeholder { color: var(--text-dim); }

.disc-search-row {
  display: flex; gap: 8px;
  padding: 0 20px 12px; flex-shrink: 0;
}
.disc-search-btn {
  flex: 1; padding: 12px 0;
  border: none; border-radius: var(--r-md);
  font-size: 13px; font-weight: 700;
  cursor: pointer; font-family: var(--font-body);
  transition: var(--transition);
}
.disc-search-btn:active { opacity: 0.85; transform: scale(0.98); }
.disc-search-btn.primary { background: var(--jade); color: var(--navy); }
.disc-search-btn.secondary {
  background: rgba(245,239,230,0.06);
  color: var(--saffron);
  border: 1.5px solid var(--saffron);
}
.disc-search-btn.searching {
  background: rgba(46,196,169,0.2); color: var(--text-dim);
  cursor: not-allowed; pointer-events: none;
}
.disc-status {
  padding: 0 20px 8px; font-size: 12px;
  color: var(--text-dim); min-height: 18px; flex-shrink: 0;
}
.disc-status-searching {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 20px 8px;
  background: rgba(46,196,169,0.07);
  border-left: 3px solid var(--jade);
  margin: 0 20px 8px;
  border-radius: 0 8px 8px 0;
  font-size: 12px; color: var(--text-muted);
  font-weight: 600; flex-shrink: 0;
}

@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Accordion cards */
.disc-list {
  display: flex; flex-direction: column;
  gap: 8px; padding: 0 20px 24px;
}
.disc-card {
  background: linear-gradient(135deg, #3c6bbd 0%, #1a4a8a 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-md); overflow: hidden;
  transition: border-color var(--transition);
}
.disc-card.open { border-color: rgba(46,196,169,0.4); }
.disc-header {
  display: flex; align-items: center;
  padding: 14px 14px 14px 16px;
  cursor: pointer; gap: 12px;
  -webkit-user-select: none; user-select: none;
}
.disc-header:active { opacity: 0.8; }
.disc-header-icon { font-size: 22px; flex-shrink: 0; }
.disc-header-text { flex: 1; }
.disc-header-name {
  font-family: var(--font-body);
  font-size: 13px; font-weight: 700;
  color: var(--text-primary); margin-bottom: 2px;
}
.disc-header-sub { font-size: 11px; color: var(--text-muted); }
.disc-arrow {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: rgba(245,239,230,0.05);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: var(--text-dim);
  flex-shrink: 0;
  transition: transform 0.25s, background var(--transition), color var(--transition);
}
.disc-card.open .disc-arrow {
  transform: rotate(180deg);
  background: var(--jade-glow); color: var(--jade);
  border-color: var(--jade);
}
.disc-body {
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1);
  border-top: 0px solid var(--jade);
}
.disc-card.open .disc-body { max-height: 520px; border-top-width: 1px; }
.disc-body-inner {
  padding: 10px 14px 12px;
  display: flex; flex-direction: column; gap: 8px;
  overflow-y: auto; max-height: 510px;
}

/* Result items */
.disc-result-item {
  background: rgba(245,239,230,0.04);
  border: 1px solid rgba(245,239,230,0.07);
  border-radius: 10px; padding: 10px 12px;
  transition: border-color var(--transition);
}
.disc-result-item:hover { border-color: rgba(46,196,169,0.2); }
.disc-result-name {
  font-family: var(--font-body);
  font-size: 13px; font-weight: 700;
  color: var(--text-primary); margin-bottom: 2px;
}
.disc-result-cat {
  font-size: 10px; color: var(--jade);
  margin-bottom: 3px;
  text-transform: uppercase; letter-spacing: 0.5px;
  font-weight: 600;
}
.disc-result-dist { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.disc-empty-msg {
  padding: 14px 0 6px; font-size: 12px;
  color: var(--text-dim); text-align: center; line-height: 1.6;
}
.disc-loading {
  padding: 14px 0 6px; font-size: 12px;
  color: var(--text-dim); text-align: center;
}
.disc-source-note {
  font-size: 10px; color: var(--text-dim);
  padding: 4px 0 2px; text-align: right;
}

/* Share row */
.disc-share-row { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.disc-share-btns { display: flex; align-items: center; gap: 6px; }
.disc-share-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 10px; font-weight: 700;
  cursor: pointer; border: none;
  font-family: var(--font-body);
  text-decoration: none;
  transition: opacity var(--transition), transform var(--transition);
  flex-shrink: 0; letter-spacing: 0.2px;
}
.disc-share-btn:active { opacity: 0.75; transform: scale(0.96); }
.disc-share-btn.maps {
  background: rgba(79,142,247,0.18); color: #4f8ef7;
  border: 1px solid rgba(79,142,247,0.3);
}
.disc-share-btn.rideshare {
  background: rgba(244,163,53,0.15); color: var(--saffron);
  border: 1px solid rgba(244,163,53,0.3);
}
.disc-share-hint {
  font-size: 9px; color: var(--text-dim);
  line-height: 1.5; font-style: italic;
}

/* Toast */
.disc-toast {
  position: fixed; bottom: 90px; left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--jade); color: var(--navy);
  font-size: 12px; font-weight: 700;
  padding: 9px 20px; border-radius: 99px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 999; white-space: nowrap;
  font-family: var(--font-body);
}
.disc-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── WEATHER ─────────────────────────────────────────────── */
.wx-loc-bar { display: flex; gap: 8px; padding: 0 20px 12px; flex-shrink: 0; }
.wx-loc-input {
  flex: 1;
  background: linear-gradient(135deg, #3c6bbd 0%, #1a4a8a 100%); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text-primary);
  font-size: 13px; padding: 9px 12px; outline: none;
  font-family: var(--font-body);
}
.wx-loc-input::placeholder { color: var(--text-dim); }
.wx-loc-input:focus { border-color: var(--jade); }
.wx-loc-btn {
  background: var(--jade); border: none; border-radius: 10px;
  color: var(--navy); font-size: 12px; font-weight: 700;
  padding: 0 14px; cursor: pointer; font-family: var(--font-body);
  transition: var(--transition);
}
.wx-loc-btn:active { background: var(--jade2); }
.wx-seg {
  display: flex; margin: 0 20px 12px;
  background: linear-gradient(135deg, #3c6bbd 0%, #1a4a8a 100%);
  border-radius: 10px; padding: 3px;
  border: 1px solid var(--border); flex-shrink: 0;
}
.wx-seg-btn {
  flex: 1; padding: 7px 4px;
  border-radius: 7px; font-size: 11px; font-weight: 600;
  text-align: center; cursor: pointer;
  color: var(--text-dim); font-family: var(--font-body);
  transition: var(--transition);
}
.wx-seg-btn.active { background: var(--jade); color: var(--navy); }
.wx-hero {
  margin: 0 20px 14px;
  background: linear-gradient(135deg, #3c6bbd 0%, #1a4a8a 100%);
  border-radius: 20px; padding: 20px;
  border: 1px solid rgba(79,142,247,0.25);
  position: relative; overflow: hidden;
}
.wx-hero::before {
  content: ''; position: absolute; top: -30px; right: -30px;
  width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(79,142,247,0.2) 0%, transparent 70%);
}
.wx-city { font-size: 10px; color: var(--text-muted); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 1.2px; }
.wx-big-temp {
  font-family: var(--font-display);
  font-size: 54px; font-weight: 800;
  color: var(--text-primary); line-height: 1; margin-bottom: 4px;
}
.wx-condition { font-size: 14px; color: rgba(245,239,230,0.8); margin-bottom: 14px; }
.wx-details { display: flex; gap: 16px; }
.wx-detail { font-size: 11px; color: var(--text-dim); }
.wx-detail span { display: block; font-size: 13px; font-weight: 600; color: var(--text-primary); margin-bottom: 2px; }
.wx-day-row { display: flex; gap: 8px; padding: 0 20px 14px; overflow-x: auto; }
.wx-day-row::-webkit-scrollbar { display: none; }
.wx-day-card {
  background: linear-gradient(135deg, #3c6bbd 0%, #1a4a8a 100%); border: 1px solid var(--border);
  border-radius: 12px; padding: 10px 8px;
  text-align: center; flex-shrink: 0; width: 64px;
}
.wx-day-card.today { border-color: var(--jade); background: var(--jade-glow); }
.wx-day-name { font-size: 10px; color: var(--text-muted); font-weight: 600; margin-bottom: 6px; }
.wx-day-icon { font-size: 20px; margin-bottom: 6px; }
.wx-day-hi { font-size: 13px; font-weight: 700; color: var(--text-primary); }
.wx-day-lo { font-size: 10px; color: var(--text-dim); margin-top: 2px; }
.wx-outlook-card {
  margin: 0 20px 12px;
  background: rgba(245,239,230,0.03);
  border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden;
}
.wx-outlook-row {
  display: flex; align-items: center;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border); gap: 10px;
}
.wx-outlook-row:last-child { border-bottom: none; }
.wx-out-date { font-size: 12px; color: var(--text-muted); width: 80px; flex-shrink: 0; }
.wx-out-icon { font-size: 18px; flex-shrink: 0; }
.wx-out-bar-wrap { flex: 1; height: 6px; background: rgba(245,239,230,0.07); border-radius: 3px; overflow: hidden; }
.wx-out-bar { height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--jade), var(--saffron)); }
.wx-out-temps { font-size: 12px; font-weight: 600; color: var(--saffron); text-align: right; width: 60px; flex-shrink: 0; }
.wx-section-label { font-size: 11px; font-weight: 700; color: var(--text-muted); padding: 0 20px; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 1.2px; }
.wx-section-label--top { padding-top: 4px; }
.wx-loading { padding: 40px 20px; text-align: center; color: var(--text-muted); font-size: 13px; }
.wx-error { padding: 32px 20px; text-align: center; color: var(--text-muted); font-size: 13px; line-height: 1.8; }
.wx-extended-note { padding: 0 20px 10px; font-size: 12px; color: var(--text-dim); }
.wx-footer { padding: 8px 20px 4px; font-size: 10px; color: var(--text-dim); }

/* ── TIMEZONE ────────────────────────────────────────────── */
.tz-card {
  margin: 0 20px 14px;
  background: linear-gradient(135deg, #3c6bbd 0%, #1a4a8a 100%); border-radius: 20px;
  padding: 20px; border: 1px solid rgba(167,139,250,0.25);
  box-shadow: var(--shadow-card);
}
.tz-label { font-size: 10px; color: var(--jade); font-weight: 700; text-transform: uppercase; letter-spacing: 1.4px; margin-bottom: 12px; }
.tz-input-row { display: flex; gap: 8px; margin-bottom: 10px; align-items: center; }
.tz-input-row input {
  flex: 1;
  background: rgba(245,239,230,0.06); border: 1px solid rgba(245,239,230,0.12);
  border-radius: 10px; color: var(--text-primary);
  font-size: 13px; padding: 8px 12px;
  outline: none; font-family: var(--font-body);
}
.tz-input-row input:focus { border-color: var(--jade); }
.tz-input-row input::placeholder { color: var(--text-dim); }
.tz-swap {
  width: 34px; height: 34px;
  background: rgba(46,196,169,0.1); border: 1px solid var(--jade);
  border-radius: 9px; color: var(--jade); font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
  transition: var(--transition);
}
.tz-calc-btn {
  width: 100%; background: var(--slate2);
  border: 1.5px solid var(--jade); border-radius: 10px;
  color: var(--text-primary); font-size: 13px;
  padding: 11px; cursor: pointer;
  font-family: var(--font-body); margin-bottom: 12px;
  transition: var(--transition);
}
.tz-calc-btn:active { background: var(--jade-glow); }
.tz-result { background: rgba(245,239,230,0.04); border-radius: 12px; padding: 14px; margin-top: 4px; }
.tz-result-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.tz-result-row:last-child { margin-bottom: 0; }
.tz-loc-name { font-size: 12px; color: var(--text-muted); }
.tz-loc-time { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--text-primary); }
.tz-loc-tz { font-size: 10px; color: var(--jade); margin-top: 2px; }
.tz-divider { height: 1px; background: rgba(245,239,230,0.07); margin: 8px 0; }
.tz-diff-box {
  text-align: center; padding: 12px;
  background: rgba(46,196,169,0.08);
  border-radius: 10px; border: 1px solid rgba(46,196,169,0.2); margin-top: 4px;
}
.tz-diff-val { font-family: var(--font-display); font-size: 22px; font-weight: 800; color: var(--jade); }
.tz-diff-label { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.tz-clock-row { display: flex; gap: 12px; padding: 0 20px 14px; }
.tz-clock {
  flex: 1; background: linear-gradient(135deg, #3c6bbd 0%, #1a4a8a 100%);
  border: 1px solid var(--border);
  border-radius: 14px; padding: 14px; text-align: center;
}
.tz-clock-face { font-family: var(--font-display); font-size: 28px; font-weight: 800; color: var(--text-primary); letter-spacing: 1px; }
.tz-clock-label { font-size: 10px; color: var(--text-muted); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.8px; }
.tz-clock-sub { font-size: 11px; color: var(--jade); margin-top: 3px; }
.tz-tip { margin: 0 20px 14px; background: linear-gradient(135deg, #3c6bbd 0%, #1a4a8a 100%); border: 1px solid var(--border); border-radius: 12px; padding: 14px; font-size: 12px; color: var(--text-muted); line-height: 1.6; }
.tz-world { margin: 0 20px 14px; }
.tz-world-title { font-size: 11px; font-weight: 700; color: var(--text-muted); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 1.2px; }
.tz-world-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); }
.tz-world-row:last-child { border-bottom: none; }
.tz-world-city { font-size: 13px; color: var(--text-primary); }
.tz-world-info { text-align: right; }
.tz-world-time { font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--text-primary); }
.tz-world-offset { font-size: 10px; color: var(--jade); margin-top: 1px; }

/* ── SIM SCREEN ──────────────────────────────────────────── */
.sim-section { padding: 0 20px 16px; }
.sim-section-title { font-size: 10px; color: var(--text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: 1.4px; margin-bottom: 10px; }
.sim-card {
  background: linear-gradient(135deg, #3c6bbd 0%, #1a4a8a 100%); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 14px; margin-bottom: 8px;
  display: flex; align-items: center; gap: 12px;
  cursor: pointer; transition: var(--transition);
}
.sim-card:active { border-color: var(--jade); }
.sim-logo {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.sim-logo-teal   { background: rgba(46,196,169,0.12); }
.sim-logo-blue   { background: rgba(79,142,247,0.12); }
.sim-logo-purple { background: rgba(167,139,250,0.12); }
.sim-logo-amber  { background: rgba(244,163,53,0.12); }
.sim-logo-pink   { background: rgba(255,107,157,0.12); }
.sim-info { flex: 1; }
.sim-name { font-family: var(--font-body); font-size: 14px; font-weight: 700; color: var(--text-primary); margin-bottom: 2px; }
.sim-desc { font-size: 11px; color: var(--text-muted); line-height: 1.4; }
.sim-type { font-size: 10px; font-weight: 700; padding: 4px 10px; border-radius: 99px; flex-shrink: 0; text-transform: uppercase; letter-spacing: 0.5px; }
.esim     { background: rgba(46,196,169,0.12); color: var(--jade); }
.physical { background: rgba(244,163,53,0.12); color: var(--saffron); }

/* ── DESTINATION / INFO CARDS ────────────────────────────── */
.info-card {
  background: linear-gradient(135deg, #3c6bbd 0%, #1a4a8a 100%); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 14px;
}
.info-card-text { font-size: 12px; color: var(--text-muted); line-height: 1.7; }
.info-card-title { font-size: 12px; color: var(--text-primary); margin-bottom: 10px; font-weight: 600; }
.info-card-list { display: flex; flex-direction: column; gap: 8px; }
.info-card-item { font-size: 12px; color: var(--text-muted); }
.tip-strong { color: var(--text-primary); font-weight: 700; }
.tip-highlight { color: var(--saffron); }

/* ── UTILITIES ───────────────────────────────────────────── */
.spacer-20 { height: 20px; }
.spacer-24 { height: 24px; }
.spacer-30 { height: 30px; }
.pad-home  { padding: 0 20px 8px; }
.pad-outer { padding: 0 20px 30px; }
.mb-12     { margin-bottom: 12px; }
.mt-10     { margin-top: 10px; }

/* ── EXPORT TOOLBAR ─────────────────────────────────────────── */
.export-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px 6px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
  background: var(--navy);
}
.export-bar-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  flex: 1;
}
.export-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
  transition: opacity 0.15s, transform 0.1s;
  letter-spacing: 0.2px;
  flex-shrink: 0;
}
.export-btn:active { opacity: 0.75; transform: scale(0.96); }
.export-btn.pdf {
  background: rgba(228, 77, 77, 0.15);
  color: #e44d4d;
  border: 1px solid rgba(228, 77, 77, 0.35);
}
.export-btn.docx {
  background: rgba(46, 116, 181, 0.15);
  color: #4f8ef7;
  border: 1px solid rgba(46, 116, 181, 0.35);
}
.export-btn.print {
  background: rgba(46,196,169,0.12);
  color: var(--jade);
  border: 1px solid rgba(46,196,169,0.3);
}

/* ── PRINT STYLES ────────────────────────────────────────────
   When window.print() is called, we inject a hidden #print-area
   div into the body. These rules style that area and hide
   everything else so the user gets a clean printed page.
   ─────────────────────────────────────────────────────────── */
@media print {
  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }

  body > *:not(#print-area) { display: none !important; }

  #print-area {
    display: block !important;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11pt;
    color: #111;
    background: #fff;
    padding: 0;
    margin: 0;
  }

  .print-doc { padding: 20px; }

  .print-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #1B3A5C;
    padding-bottom: 10px;
    margin-bottom: 18px;
  }
  .print-logo {
    font-size: 18pt;
    font-weight: 800;
    color: #1B3A5C;
    letter-spacing: -0.5px;
  }
  .print-logo em { color: #F4A335; font-style: normal; }
  .print-meta { font-size: 9pt; color: #666; text-align: right; }

  .print-title {
    font-size: 16pt;
    font-weight: 800;
    color: #0D1B2A;
    margin-bottom: 4px;
  }
  .print-subtitle { font-size: 10pt; color: #666; margin-bottom: 18px; }

  .print-section {
    margin-bottom: 16px;
    break-inside: avoid;
  }
  .print-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #1B3A5C;
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 11pt;
    font-weight: 700;
    margin-bottom: 6px;
  }
  .print-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 5px 10px;
    border-bottom: 1px solid #eee;
    font-size: 10pt;
    break-inside: avoid;
  }
  .print-item:last-child { border-bottom: none; }
  .print-checkbox {
    width: 14px; height: 14px;
    border: 1.5px solid #aaa;
    border-radius: 3px;
    flex-shrink: 0;
    margin-top: 1px;
    display: inline-block;
  }
  .print-checkbox.checked {
    background: #2EC4A9;
    border-color: #2EC4A9;
  }
  .print-checkbox.checked::after {
    content: '✓';
    display: block;
    color: #fff;
    font-size: 9pt;
    line-height: 14px;
    text-align: center;
  }
  .print-item-text { flex: 1; line-height: 1.4; }
  .print-item-text.done { text-decoration: line-through; color: #aaa; }
  .print-intl-pill {
    font-size: 7pt; font-weight: 700;
    background: #fff3cd; color: #856404;
    padding: 1px 5px; border-radius: 99px;
    border: 1px solid #ffc107;
    flex-shrink: 0;
  }
  .print-footer {
    margin-top: 20px;
    padding-top: 8px;
    border-top: 1px solid #ddd;
    font-size: 8pt;
    color: #aaa;
    text-align: center;
  }

  /* SIM card print layout */
  .print-sim-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 7px 10px;
    border-bottom: 1px solid #eee;
    break-inside: avoid;
  }
  .print-sim-item:last-child { border-bottom: none; }
  .print-sim-name { font-weight: 700; font-size: 10pt; margin-bottom: 2px; }
  .print-sim-desc { font-size: 9pt; color: #555; }
  .print-sim-badge {
    font-size: 8pt; font-weight: 700;
    padding: 2px 7px; border-radius: 99px;
    flex-shrink: 0; margin-top: 2px;
  }
  .print-sim-esim    { background: #d4f0ea; color: #0a6b57; border: 1px solid #2EC4A9; }
  .print-sim-physical { background: #fef3e2; color: #7a4400; border: 1px solid #F4A335; }

  @page { margin: 0.75in; }
}

/* Hide the print area when not printing */
#print-area { display: none; }

/* ══════════════════════════════════════════════════════════════
   WEBSITE MODE  — <html data-mode="web">
   Mobile-first: full-viewport, bottom nav pinned.
   Desktop ≥860px: left sidebar + content fills right side.
   KEY FIX: .phone uses height:100vh directly so .screens
            (flex:1) always has a resolved parent height for
            position:absolute children.
   ══════════════════════════════════════════════════════════════ */

html[data-mode="web"] body {
  background: var(--bg-body);
  margin: 0;
  padding: 0;
  overflow: hidden;
  height: 100vh;
  display: block;
}

/* .phone = the full app shell */
html[data-mode="web"] .phone {
  width: 100%;
  height: 100vh;
  border-radius: 0;
  box-shadow: none;
  background: var(--bg2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Hide phone chrome */
html[data-mode="web"] .island,
html[data-mode="web"] .phone-bg-dots,
html[data-mode="web"] .status-bar {
  display: none;
}

/* .screens fills the phone above the bottom nav */
html[data-mode="web"] .screens {
  flex: 1;
  min-height: 0;
  position: relative;
  overflow: hidden;
}

/* Every screen fills .screens absolutely — nav switching works */
html[data-mode="web"] .screen {
  position: absolute;
  inset: 0;
  background: var(--bg2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: opacity 0.18s ease;
}

/* Override phone-style slide transitions for web mode.
   .slide-left leaves the departing screen stuck at opacity:0
   translateX(-30%) — override both to simple fade/hide. */
html[data-mode="web"] .screen.hidden {
  transform: none !important;
  opacity: 0 !important;
  pointer-events: none;
  visibility: hidden;
}
html[data-mode="web"] .screen.slide-left {
  transform: none !important;
  opacity: 0 !important;
  pointer-events: none;
  visibility: hidden;
}

/* Bottom nav — mobile: pinned strip at the bottom */
html[data-mode="web"] .bottom-nav {
  flex-shrink: 0;
  height: 64px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(13,18,30,0.97);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  padding-top: 8px;
}

/* ── DESKTOP ≥ 860px ──────────────────────────────────────────── */
@media (min-width: 860px) {

  /* Body becomes a row: sidebar | content */
  html[data-mode="web"] body {
    display: flex;
    flex-direction: row;
    height: 100vh;
    overflow: hidden;
  }

  /* Sidebar nav — left column */
  html[data-mode="web"] .bottom-nav {
    order: 1;
    flex-shrink: 0;
    width: 210px;
    height: 100vh;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0;
    padding-bottom: 0;
    border-top: none;
    border-right: 1px solid rgba(255,255,255,0.1);
    background: rgba(13,18,30,0.97);
    overflow-y: auto;
  }

  /* Brand title in sidebar */
  html[data-mode="web"] .bottom-nav::before {
    content: 'DestinationAGo';
    display: block;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 800;
    color: var(--text-primary);
    padding: 24px 20px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    letter-spacing: -0.3px;
    flex-shrink: 0;
  }

  html[data-mode="web"] .nav-item {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 13px 20px;
    border-radius: 0;
    flex: none;
    min-width: 0;
    border-left: 3px solid transparent;
    transition: background var(--transition), border-color var(--transition);
  }
  html[data-mode="web"] .nav-item:hover { background: rgba(255,255,255,0.04); }
  html[data-mode="web"] .nav-item.active {
    background: rgba(0,212,161,0.07);
    border-left-color: var(--jade);
  }
  html[data-mode="web"] .nav-icon {
    width: 34px; height: 34px;
    font-size: 16px; border-radius: 10px;
    flex-shrink: 0;
    background: rgba(255,255,255,0.04);
  }
  html[data-mode="web"] .nav-item.active .nav-icon { background: var(--jade-glow); }
  html[data-mode="web"] .nav-label {
    font-size: 13px; font-weight: 600;
    color: var(--text-muted);
    max-width: none; overflow: visible;
    white-space: nowrap; letter-spacing: 0;
  }
  html[data-mode="web"] .nav-item.active .nav-label { color: var(--jade); }

  /* .phone fills the remaining width */
  html[data-mode="web"] .phone {
    order: 2;
    flex: 1;
    width: auto;
    height: 100vh;
    min-width: 0;
    background: var(--bg2);
  }

  /* .screens fills 100% of .phone height */
  html[data-mode="web"] .screens {
    width: 100%;
    height: 100%;
    flex: none;
  }

  /* Desktop content padding */
  html[data-mode="web"] .home-hero       { padding: 48px 40px 40px; }
  html[data-mode="web"] .home-hero-title { font-size: 52px; }
  html[data-mode="web"] .home-hero-sub   { font-size: 17px; }
  html[data-mode="web"] .home-hero-globe { font-size: 120px; right: 40px; }
  html[data-mode="web"] .home-section-head { padding: 28px 40px 12px; }
  html[data-mode="web"] .home-quick-grid {
    grid-template-columns: repeat(6,1fr);
    padding: 0 40px 6px; gap: 12px;
  }
  html[data-mode="web"] .home-feat-grid {
    grid-template-columns: repeat(4,1fr);
    padding: 0 40px 6px; gap: 14px;
  }
  html[data-mode="web"] .home-feat-card  { padding: 24px 18px 18px; }
  html[data-mode="web"] .hfc-icon        { font-size: 32px; }
  html[data-mode="web"] .home-why-grid   {
    padding: 0 40px 6px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  }
  html[data-mode="web"] .home-footer-cta { margin: 24px 40px 0; padding: 32px; }
  html[data-mode="web"] .home-stats-strip { padding: 18px 40px; }
  html[data-mode="web"] .home-stat-val   { font-size: 32px; }

  html[data-mode="web"] .screen-header  { padding: 24px 40px 18px; }
  html[data-mode="web"] .screen-title   { font-size: 26px; }
  html[data-mode="web"] .trip-seg,
  html[data-mode="web"] .progress-wrap,
  html[data-mode="web"] .export-bar,
  html[data-mode="web"] .check-group,
  html[data-mode="web"] .currency-hero,
  html[data-mode="web"] .rate-grid,
  html[data-mode="web"] .wx-loc-bar,
  html[data-mode="web"] .wx-seg,
  html[data-mode="web"] .tz-card,
  html[data-mode="web"] .tz-clock-row,
  html[data-mode="web"] .tz-world,
  html[data-mode="web"] .lang-selector,
  html[data-mode="web"] .phrase-card,
  html[data-mode="web"] .lang-tip,
  html[data-mode="web"] .lang-scr-btn,
  html[data-mode="web"] .disc-list,
  html[data-mode="web"] .disc-search-row,
  html[data-mode="web"] .search-bar,
  html[data-mode="web"] .disc-status,
  html[data-mode="web"] .disc-status-searching,
  html[data-mode="web"] .section-title,
  html[data-mode="web"] .pad-outer,
  html[data-mode="web"] .sim-section {
    margin-left: 40px;
    margin-right: 40px;
    max-width: none;
  }
  html[data-mode="web"] .rate-grid { grid-template-columns: repeat(6,1fr); }
  html[data-mode="web"] .lang-selector { flex-wrap: wrap; overflow-x: visible; }
}

/* ══════════════════════════════════════════════════════════════
   CAPACITOR / APP MODE  — <html data-mode="app">
   Running inside a native WebView. Hide the phone shell chrome,
   respect safe-area insets for notch & home indicator.
   ══════════════════════════════════════════════════════════════ */

html[data-mode="app"] body {
  background: #111827;
  display: block;
  overflow: hidden;
  height: 100%;
  height: 100dvh;
}

html[data-mode="app"] .phone {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  border-radius: 0;
  box-shadow: none;
  background: #111827;
}

/* Hide simulated chrome — OS provides real status bar */
html[data-mode="app"] .island,
html[data-mode="app"] .phone-bg-dots,
html[data-mode="app"] .status-bar {
  display: none;
}

/* Push content below native status bar */
html[data-mode="app"] .screens {
  flex: 1;
  overflow: hidden;
  /* Safe area for notch at top */
  padding-top: env(safe-area-inset-top, 0px);
}

/* Home indicator clearance at bottom */
html[data-mode="app"] .bottom-nav {
  padding-bottom: env(safe-area-inset-bottom, 0px);
  height: calc(64px + env(safe-area-inset-bottom, 0px));
  flex-shrink: 0;
}

/* Disable hover states on touch — prevents sticky :hover on mobile */
@media (hover: none) {
  html[data-mode="app"] .feat-card:hover,
  html[data-mode="app"] .disc-card:hover,
  html[data-mode="app"] .check-item:hover,
  html[data-mode="app"] .disc-result-item:hover {
    border-color: var(--border);
  }
}

/* ══════════════════════════════════════════════════════════════
   HOME SCREEN — new web layout
   ══════════════════════════════════════════════════════════════ */

/* HERO BANNER */
.home-hero {
  background: var(--card);
  padding: 36px 24px 30px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border2);
}
.home-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(0,212,161,0.12) 0%, transparent 60%);
  pointer-events: none;
}
.home-hero-inner { position: relative; z-index: 1; max-width: 560px; }
.home-hero-tag {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  color: var(--accent); letter-spacing: 1.2px;
  text-transform: uppercase;
  background: rgba(0,212,161,0.1);
  border: 1px solid rgba(0,212,161,0.25);
  border-radius: 99px;
  padding: 4px 12px;
  margin-bottom: 14px;
}
.home-hero-title {
  font-family: var(--font-display);
  font-size: 38px; font-weight: 800;
  color: #fff;
  line-height: 1.05;
  letter-spacing: -1px;
  margin-bottom: 12px;
}
.home-hero-a { color: var(--saffron); }
.home-hero-sub {
  font-size: 15px; color: rgba(255,255,255,0.75);
  line-height: 1.6; margin-bottom: 24px;
  max-width: 420px;
}
.home-hero-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.home-cta-primary {
  background: var(--accent);
  color: #0a1a12;
  font-family: var(--font-body);
  font-size: 14px; font-weight: 700;
  padding: 12px 22px;
  border: none; border-radius: 10px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 16px rgba(0,212,161,0.35);
}
.home-cta-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,212,161,0.45); }
.home-cta-secondary {
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px; font-weight: 600;
  padding: 12px 22px;
  border: 1px solid rgba(255,255,255,0.2); border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s;
}
.home-cta-secondary:hover { background: rgba(255,255,255,0.16); }
.home-hero-globe {
  position: absolute; right: 20px; top: 50%;
  transform: translateY(-50%);
  font-size: 80px; opacity: 0.18;
  pointer-events: none;
  user-select: none;
}

/* STATS STRIP */
.home-stats-strip {
  display: flex; align-items: center; justify-content: space-around;
  background: rgba(0,0,0,0.25);
  border-bottom: 1px solid var(--border);
  padding: 16px 20px;
}
.home-stat-item { text-align: center; flex: 1; }
.home-stat-val {
  font-family: var(--font-display);
  font-size: 26px; font-weight: 800;
  color: var(--saffron);
  line-height: 1;
}
.home-stat-lbl { font-size: 10px; color: var(--text-muted); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.8px; }
.home-stat-divider { width: 1px; height: 36px; background: var(--border); }

/* SECTION HEADERS */
.home-section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 22px 20px 10px;
}
.home-section-title {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 700;
  color: #fff;
}
.home-section-sub { font-size: 11px; color: var(--text-muted); }

/* QUICK ACCESS GRID */
.home-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 0 20px 6px;
}
.home-quick-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 10px 12px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s;
}
.home-quick-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.hqc-icon { font-size: 26px; margin-bottom: 8px; }
.hqc-label { font-size: 11px; font-weight: 600; color: var(--text-muted); }

/* FEATURE CARDS GRID */
.home-feat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 20px 6px;
}
.home-feat-card {
  border-radius: 16px;
  padding: 20px 16px 16px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.15s;
  border: 1px solid transparent;
}
.home-feat-card:hover { transform: translateY(-2px); }
.hfc-blue   { background: linear-gradient(135deg, #1a4a8a 0%, #0d2d5e 100%); border-color: rgba(79,142,247,0.3); }
.hfc-teal   { background: linear-gradient(135deg, #0a4a3a 0%, #003d30 100%); border-color: rgba(0,212,161,0.3); }
.hfc-amber  { background: linear-gradient(135deg, #5a3600 0%, #3d2400 100%); border-color: rgba(245,166,35,0.3); }
.hfc-purple { background: linear-gradient(135deg, #2d1a5e 0%, #1e0f45 100%); border-color: rgba(167,139,250,0.3); }
.hfc-badge {
  position: absolute; top: 12px; right: 12px;
  font-size: 9px; font-weight: 700;
  padding: 3px 8px; border-radius: 99px;
  text-transform: uppercase; letter-spacing: 0.5px;
  background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.8);
}
.hfc-icon { font-size: 28px; margin-bottom: 10px; }
.hfc-title { font-family: var(--font-display); font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 5px; }
.hfc-desc { font-size: 11px; color: rgba(255,255,255,0.6); line-height: 1.4; margin-bottom: 12px; }
.hfc-arrow { font-size: 16px; color: rgba(255,255,255,0.4); }

/* WHY SECTION */
.home-why-grid {
  display: flex; flex-direction: column; gap: 2px;
  padding: 0 20px 6px;
}
.home-why-item {
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
}
.hwy-icon { font-size: 22px; flex-shrink: 0; margin-top: 1px; }
.hwy-title { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 2px; }
.hwy-desc { font-size: 12px; color: var(--text-muted); line-height: 1.4; }

/* FOOTER CTA */
.home-footer-cta {
  margin: 20px 20px 0;
  background: linear-gradient(135deg, rgba(0,212,161,0.12) 0%, rgba(245,166,35,0.08) 100%);
  border: 1px solid rgba(0,212,161,0.2);
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
}
.home-footer-text { font-size: 15px; color: rgba(255,255,255,0.8); margin-bottom: 14px; font-weight: 500; }
.home-bottom-space { height: 24px; }

/* ── Desktop overrides for home screen ─── */
@media (min-width: 860px) {
  .home-hero { padding: 48px 40px 40px; }
  .home-hero-title { font-size: 52px; }
  .home-hero-sub { font-size: 17px; }
  .home-hero-globe { font-size: 120px; right: 40px; }
  .home-section-head { padding: 28px 40px 12px; }
  .home-quick-grid { grid-template-columns: repeat(6,1fr); padding: 0 40px 6px; gap: 12px; }
  .home-feat-grid { grid-template-columns: repeat(4,1fr); padding: 0 40px 6px; gap: 14px; }
  .home-feat-card { padding: 24px 18px 18px; }
  .hfc-icon { font-size: 32px; }
  .home-why-grid { padding: 0 40px 6px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .home-footer-cta { margin: 24px 40px 0; padding: 32px; }
  .home-stats-strip { padding: 18px 40px; }
  .home-stat-val { font-size: 32px; }
}
