/* ═══════════════════════════════════════════════════════════════
   PackWise – style.css
   ═══════════════════════════════════════════════════════════════ */

/* ── Tokens ──────────────────────────────────────────────────── */
:root {
  --accent:   #e8b86d;
  --teal:     #4ecdc4;
  --dark:     #1a1a2e;
  --bg:       #ffffff;
  --bg2:      #f8f8f8;
  --text:     #1a1a2e;
  --muted:    #888;
  --border:   #e4e4e4;
  --radius:   12px;
  --ff-head:  'Playfair Display', serif;
  --ff-body:  'DM Sans', sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:    #111118;
    --bg2:   #1c1c26;
    --text:  #f0f0f0;
    --muted: #888;
    --border:#2e2e3e;
  }
}

/* ── Reset ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--ff-body); color: var(--text); background: var(--bg); }

/* ── Layout ──────────────────────────────────────────────────── */
.app-wrap {
  max-width: 480px;
  margin: 0 auto;
  padding: 1rem 1rem 5rem;
  min-height: 100vh;
}

/* ── Screens ─────────────────────────────────────────────────── */
.screen { display: none; animation: fadeIn .35s ease; }
.screen.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ── Hero banner (screen 1) ──────────────────────────────────── */
.hero {
  position: relative; height: 210px; border-radius: 16px;
  margin-bottom: 1.5rem; overflow: hidden;
  background: linear-gradient(135deg, #0d1b2a, #1a3a5c, #0f3460);
}
.hero svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center;
  padding: 1.5rem;
}
.hero-overlay h1 { font-family: var(--ff-head); font-size: 28px; color: #fff; font-weight: 600; line-height: 1.2; }
.hero-overlay p  { color: rgba(255,255,255,.65); font-size: 13px; margin-top: .4rem; }
.logo-tag {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(232,184,109,.18); border: 1px solid rgba(232,184,109,.35);
  border-radius: 20px; padding: 4px 12px; margin-bottom: .8rem; width: fit-content;
}
.logo-tag span { color: #e8b86d; font-size: 11px; font-weight: 600; letter-spacing: 1px; }

/* ── Step bar ────────────────────────────────────────────────── */
.step-bar { display: flex; gap: 4px; margin-bottom: 1.4rem; }
.sd { flex: 1; height: 3px; border-radius: 2px; background: var(--border); transition: background .3s; }
.sd.on { background: var(--accent); }

/* ── Question labels ─────────────────────────────────────────── */
.ql { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; margin-bottom: .3rem; }
.qt { font-family: var(--ff-head); font-size: 21px; font-weight: 400; margin-bottom: 1rem; line-height: 1.3; }
.qt-sub { font-size: 13px; font-weight: 300; color: var(--muted); }

/* ── Inputs ──────────────────────────────────────────────────── */
input[type="text"], input[type="date"], select {
  width: 100%; padding: 11px 14px;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-family: var(--ff-body); font-size: 15px;
  background: var(--bg); color: var(--text); outline: none;
  transition: border-color .2s;
}
input:focus, select:focus { border-color: var(--accent); }
.field { margin-bottom: 1rem; }
.date-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: .5rem; width: 100%; overflow: hidden; }
.date-grid > div { min-width: 0; overflow: hidden; }
.date-grid input[type="date"] { width: 100%; min-width: 0; box-sizing: border-box; }
.sublabel { font-size: 11px; color: var(--muted); margin-bottom: 3px; }
.hint { font-size: 11px; color: var(--muted); margin-bottom: 5px; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn-primary {
  display: block; width: 100%; padding: 14px;
  background: var(--accent); border: none; border-radius: var(--radius);
  font-family: var(--ff-body); font-size: 15px; font-weight: 600;
  color: var(--dark); cursor: pointer; margin-top: 1rem;
  transition: opacity .2s, transform .1s;
}
.btn-primary:hover { opacity: .9; }
.btn-primary:active { transform: scale(.98); }
.btn-primary.btn-teal { background: var(--teal); }

.btn-secondary {
  display: block; width: 100%; padding: 11px;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  font-family: var(--ff-body); font-size: 14px; color: var(--text);
  cursor: pointer; margin-top: .5rem; transition: border-color .2s;
}
.btn-secondary:hover { border-color: var(--accent); }

.btn-ghost {
  display: block; width: 100%; padding: 12px;
  background: transparent; border: 1px dashed var(--border); border-radius: var(--radius);
  font-family: var(--ff-body); font-size: 13px; color: var(--muted);
  cursor: pointer; margin-top: .6rem; transition: all .2s;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--text); }

.back-btn {
  display: flex; align-items: center; gap: 5px;
  color: var(--muted); font-size: 13px; cursor: pointer;
  margin-bottom: 1rem; background: none; border: none;
  padding: 0; font-family: var(--ff-body);
}
.back-btn:hover { color: var(--text); }

/* ── Counters ────────────────────────────────────────────────── */
.counters { margin-bottom: 1rem; }
.crow { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.crow:last-child { border-bottom: none; }
.clabel { flex: 1; font-size: 14px; }
.clabel small { display: block; font-size: 11px; color: var(--muted); }
.cbtn {
  width: 32px; height: 32px; border: 1px solid var(--border); border-radius: 50%;
  background: var(--bg); cursor: pointer; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text); transition: all .2s;
}
.cbtn:hover { border-color: var(--accent); color: var(--accent); }
.cval { font-size: 16px; font-weight: 600; min-width: 24px; text-align: center; }

/* ── Travel style grid ───────────────────────────────────────── */
.style-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-bottom: 1rem; }
.tbtn {
  padding: 12px 6px; border: 1px solid var(--border); border-radius: var(--radius);
  text-align: center; cursor: pointer; transition: all .2s; background: var(--bg);
}
.tbtn:hover { border-color: var(--accent); }
.tbtn.on { border-color: var(--accent); background: rgba(232,184,109,.1); }
.ti { font-size: 22px; display: block; margin-bottom: 4px; }
.tl { font-size: 11px; font-weight: 500; color: var(--text); }

/* ── Chips ───────────────────────────────────────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 1rem; }
.chip {
  padding: 9px 14px; border: 1px solid var(--border); border-radius: 20px;
  font-size: 13px; cursor: pointer; transition: all .2s;
  background: var(--bg); user-select: none; line-height: 1.3;
}
.chip small { font-size: 10px; color: var(--muted); }
.chip:hover { border-color: var(--accent); }
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--dark); font-weight: 500; }
.chip.on small { color: rgba(26,26,46,.7); }

.opt-badge { font-size: 10px; background: var(--bg2); color: var(--muted); padding: 2px 8px; border-radius: 10px; margin-left: 6px; }

/* ── Loading ─────────────────────────────────────────────────── */
.loading-box { text-align: center; padding: 4rem 1rem; }
.spinner {
  width: 44px; height: 44px; border: 3px solid var(--border);
  border-top-color: var(--accent); border-radius: 50%;
  animation: spin 1s linear infinite; margin: 0 auto 1.2rem;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-box strong { display: block; font-size: 17px; margin-bottom: .3rem; }
.loading-box p { font-size: 14px; color: var(--muted); }

/* ── Country banner ──────────────────────────────────────────── */
.cbanner {
  position: relative; height: 220px; border-radius: 16px;
  margin-bottom: 1rem; overflow: hidden;
  background: linear-gradient(135deg, #0d1b2a, #1a3a5c);
}
.banner-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  /* fade-in when loaded */
  opacity: 0; transition: opacity .6s;
}
.banner-photo.loaded { opacity: 1; }
.banner-svg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  transition: opacity .4s;
}
.cbadge {
  position: absolute; bottom: 12px; left: 12px;
  background: rgba(0,0,0,.55); backdrop-filter: blur(6px);
  border-radius: 10px; padding: 7px 13px; color: #fff;
}
.cbadge strong { display: block; font-size: 18px; font-family: var(--ff-head); }
.cbadge span   { font-size: 12px; opacity: .8; }
.photo-credit  { font-size: 10px; color: var(--muted); text-align: right; margin-top: -6px; margin-bottom: 1rem; }
.photo-credit a { color: var(--muted); }

/* ── Info cards ──────────────────────────────────────────────── */
.card { background: var(--bg2); border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: 1rem; }
.card-title { font-size: 10px; text-transform: uppercase; letter-spacing: .7px; color: var(--muted); margin-bottom: .7rem; }
.facts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fact { display: flex; align-items: flex-start; gap: 8px; }
.fact-icon {
  width: 30px; height: 30px; border-radius: 8px;
  background: rgba(232,184,109,.14); display: flex; align-items: center;
  justify-content: center; font-size: 15px; flex-shrink: 0;
}
.fact-text strong { display: block; font-size: 10px; color: var(--muted); font-weight: 400; }
.fact-text span   { font-size: 12px; font-weight: 500; }

.warn-card {
  border-left: 3px solid var(--accent); background: rgba(232,184,109,.07);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: .9rem 1rem; margin-bottom: 1rem;
}
.warn-card strong { display: block; font-size: 13px; margin-bottom: .3rem; }
.warn-card p { font-size: 13px; line-height: 1.6; }
.body-text { font-size: 13px; line-height: 1.75; }

/* ── Reviews ─────────────────────────────────────────────────── */
.reviews-section { margin-bottom: 5rem; }
.section-label { font-size: 10px; text-transform: uppercase; letter-spacing: .7px; color: var(--muted); margin-bottom: .8rem; }
.rev-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; margin-bottom: .6rem; }
.rev-head { display: flex; align-items: center; gap: 8px; margin-bottom: .4rem; }
.rev-av   { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 600; }
.rev-name { font-size: 13px; font-weight: 500; flex: 1; }
.rev-stars{ font-size: 11px; color: var(--accent); }
.rev-text { font-size: 13px; color: var(--muted); line-height: 1.55; }

/* ── Checklist ───────────────────────────────────────────────── */
.cl-head { margin-bottom: 1rem; }
.cl-head h2 { font-family: var(--ff-head); font-size: 22px; font-weight: 400; }
.muted { color: var(--muted); font-size: 13px; margin-top: .2rem; }
.prog-wrap { background: var(--bg2); border-radius: 6px; height: 6px; margin: 1rem 0; overflow: hidden; }
.prog-fill { height: 100%; background: var(--teal); border-radius: 6px; transition: width .4s; width: 0%; }
.prog-label { font-size: 12px; color: var(--muted); text-align: right; margin-top: .2rem; }

.cl-sec { margin-bottom: 1.5rem; }
.cl-sec-title {
  font-size: 10px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted);
  padding: .4rem 0; border-bottom: 1px solid var(--border); margin-bottom: .6rem;
}
.cl-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.cl-item:last-of-type { border-bottom: none; }
.cl-cb {
  width: 20px; height: 20px; border: 1.5px solid var(--border); border-radius: 5px;
  cursor: pointer; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; transition: all .2s;
}
.cl-cb.done { background: var(--teal); border-color: var(--teal); }
.cl-cb.done::after {
  content: ''; width: 5px; height: 9px;
  border: 2px solid #fff; border-top: none; border-left: none;
  transform: rotate(45deg); margin-top: -2px;
}
.cl-txt { flex: 1; font-size: 14px; transition: all .2s; }
.cl-txt.done { color: var(--muted); text-decoration: line-through; }
.cl-del { color: var(--muted); cursor: pointer; font-size: 18px; opacity: 0.4; transition: opacity .2s; background: none; border: none; padding: 4px; line-height: 1; }
.cl-item:hover .cl-del { opacity: 1; }
.add-row { display: flex; gap: 7px; margin-top: .5rem; }
.add-row input { flex: 1; padding: 8px 12px; font-size: 13px; }
.add-btn { padding: 8px 12px; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; cursor: pointer; font-size: 12px; white-space: nowrap; transition: all .2s; color: var(--text); }
.add-btn:hover { border-color: var(--accent); }
.cl-actions { margin-bottom: 6rem; }

/* ── Packed screen ───────────────────────────────────────────── */
.packed-wrap { text-align: center; padding: 2.5rem 1rem 6rem; }
.packed-icon { width: 80px; height: 80px; background: rgba(78,205,196,.12); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; font-size: 38px; }
.confetti-row { display: flex; justify-content: center; gap: 6px; margin: 1rem 0; font-size: 20px; }
.packed-wrap h2 { font-family: var(--ff-head); font-size: 26px; font-weight: 400; margin-bottom: .5rem; }
.packed-wrap p  { color: var(--muted); font-size: 14px; line-height: 1.6; }
.history-card   { margin: 2rem 0; background: var(--bg2); border-radius: var(--radius); padding: 1rem; text-align: left; }
.history-label  { font-size: 10px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin-bottom: .4rem; }

/* ── Floating action buttons ─────────────────────────────────── */
.fab {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  border: none; border-radius: 24px; padding: 14px 28px;
  font-family: var(--ff-body); font-size: 14px; font-weight: 600;
  cursor: pointer; white-space: nowrap; z-index: 100; transition: opacity .2s;
}
.fab:hover { opacity: .9; }
.fab-main   { background: var(--accent); color: var(--dark); box-shadow: 0 4px 20px rgba(232,184,109,.35); }
.fab-remind { background: var(--bg); color: var(--text); border: 1px solid var(--border) !important; box-shadow: 0 2px 12px rgba(0,0,0,.08); }

/* ── Reminder sheet ──────────────────────────────────────────── */
#remind-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.5); z-index: 200; align-items: flex-end;
}
#remind-overlay.open { display: flex; }
.remind-sheet { background: var(--bg); border-radius: 16px 16px 0 0; padding: 1.5rem; width: 100%; max-width: 480px; margin: 0 auto; }
.remind-title { font-weight: 600; margin-bottom: .3rem; }
.remind-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: .5rem; }
.rchip { padding: 7px 13px; border: 1px solid var(--border); border-radius: 16px; font-size: 12px; cursor: pointer; background: var(--bg); transition: all .2s; }
.rchip:hover, .rchip.on { background: var(--accent); border-color: var(--accent); color: var(--dark); }

/* ═══════════════════════════════════════════════════════════════
   Slideshow (Screen 1)
   ═══════════════════════════════════════════════════════════════ */
.slideshow-wrap {
  position: relative;
  height: 230px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  background: #0d1b2a;
}
.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.slide.active { opacity: 1; }

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.15) 0%,
    rgba(0,0,0,.5)  100%
  );
}
.slide-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.5rem;
}
.slide-content h1 {
  font-family: var(--ff-head);
  font-size: 28px;
  color: #fff;
  font-weight: 600;
  line-height: 1.2;
}
.slide-content p {
  color: rgba(255,255,255,.7);
  font-size: 13px;
  margin-top: .3rem;
}
.slide-dots {
  position: absolute;
  bottom: 10px;
  right: 14px;
  display: flex;
  gap: 5px;
}
.slide-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  transition: background .3s;
  cursor: pointer;
}
.slide-dot.active { background: #e8b86d; }

/* ═══════════════════════════════════════════════════════════════
   Question screen banners (Screens 2-5)
   ═══════════════════════════════════════════════════════════════ */
.q-banner {
  position: relative;
  height: 160px;
  background-size: cover;
  background-position: center;
  /* negative margins to bleed to edge */
  margin: -1rem -1rem 0 -1rem;
  transition: opacity .6s;
}
.q-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.1) 0%,
    rgba(0,0,0,.45) 100%
  );
}
.back-btn-banner {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(6px);
  border: none;
  border-radius: 20px;
  color: #fff;
  font-size: 13px;
  padding: 6px 14px;
  cursor: pointer;
  font-family: var(--ff-body);
  transition: background .2s;
}
.back-btn-banner:hover { background: rgba(0,0,0,.55); }

/* Body padding for screens that have a q-banner */
.screen-body {
  padding-top: 1.2rem;
}

/* ═══════════════════════════════════════════════════════════════
   Quantity controls
   ═══════════════════════════════════════════════════════════════ */
.qty-ctrl {
  display: flex; align-items: center; gap: 4px; margin-left: auto; margin-right: 6px;
}
.qty-btn {
  width: 22px; height: 22px; border: 1px solid var(--border); border-radius: 50%;
  background: var(--bg); cursor: pointer; font-size: 14px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  color: var(--text); transition: all .2s; flex-shrink: 0;
}
.qty-btn:hover { border-color: var(--accent); color: var(--accent); }
.qty-val { font-size: 13px; font-weight: 600; min-width: 16px; text-align: center; }

/* ═══════════════════════════════════════════════════════════════
   Item notes
   ═══════════════════════════════════════════════════════════════ */
.cl-item { flex-wrap: wrap; }
.item-note-wrap { width: 100%; padding: 4px 0 6px 30px; }
.item-note-input {
  width: 100%; padding: 6px 10px; font-size: 12px;
  border: 1px dashed var(--border); border-radius: 8px;
  background: var(--bg2); color: var(--muted);
  font-family: var(--ff-body); outline: none;
  transition: border-color .2s;
}
.item-note-input:focus { border-color: var(--accent); color: var(--text); }

/* ═══════════════════════════════════════════════════════════════
   Leave-at-home checkbox style
   ═══════════════════════════════════════════════════════════════ */
.cl-cb-warn { border-color: #f59e0b; }
.cl-cb-warn.done { background: #f59e0b; border-color: #f59e0b; }

/* ═══════════════════════════════════════════════════════════════
   Weight calculator
   ═══════════════════════════════════════════════════════════════ */
.weight-card {
  background: var(--bg2); border-radius: var(--radius);
  padding: .9rem 1rem; margin: 1rem 0;
}
.weight-header {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; margin-bottom: .6rem;
}
.weight-ok   { color: var(--teal); font-weight: 600; }
.weight-warn { color: #f59e0b;     font-weight: 600; }
.weight-bar-wrap {
  background: var(--border); border-radius: 6px; height: 8px; overflow: hidden;
}
.weight-bar-fill {
  height: 100%; background: var(--teal); border-radius: 6px;
  transition: width .5s ease;
}
.weight-bar-fill.weight-bar-danger { background: #f59e0b; }
.weight-alert {
  font-size: 12px; color: #f59e0b; margin-top: .5rem;
}

/* ═══════════════════════════════════════════════════════════════
   Extra checklist actions
   ═══════════════════════════════════════════════════════════════ */
.cl-extra-actions {
  display: flex; gap: 8px; margin: .5rem 0 1rem;
}
.cl-extra-actions .btn-ghost,
.cl-extra-actions .btn-secondary {
  flex: 1; margin: 0; font-size: 13px; padding: 10px 8px;
}
.btn-active {
  border-color: var(--accent) !important;
  color: var(--accent) !important;
}

/* ═══════════════════════════════════════════════════════════════
   Dark / Light theme
   ═══════════════════════════════════════════════════════════════ */

/* Override auto dark mode — we control it manually */
@media (prefers-color-scheme: dark) {
  :root {
    --bg:    #ffffff;
    --bg2:   #f8f8f8;
    --text:  #1a1a2e;
    --muted: #888;
    --border:#e4e4e4;
  }
}

/* Dark theme class applied to <html> */
html.dark {
  --bg:    #111118;
  --bg2:   #1c1c26;
  --text:  #f0f0f0;
  --muted: #888;
  --border:#2e2e3e;
}

/* Step row — label + toggle side by side */
.step-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .3rem;
}
.step-row .ql { margin-bottom: 0; }

/* Toggle button */
.theme-toggle {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg2);
  cursor: pointer;
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: all .3s;
  flex-shrink: 0;
}
.theme-toggle:hover {
  border-color: var(--accent);
  transform: rotate(20deg);
}

/* ── Dark theme: calendar icon only ────────────────────────────── */
html.dark input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1) brightness(1.5);
  cursor: pointer;
}

/* ── Field validation ───────────────────────────────────────────── */
.field-error {
  font-size: 12px;
  color: #ef4444;
  margin-top: 5px;
  animation: fadeIn .2s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-6px); }
  40%       { transform: translateX(6px); }
  60%       { transform: translateX(-4px); }
  80%       { transform: translateX(4px); }
}

.field-shake {
  animation: shake .4s ease;
  border-color: #ef4444 !important;
}

/* ── My trips button ──────────────────────────────────────────── */
.btn-trips {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 12px;
  background: transparent;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-family: var(--ff-body); font-size: 14px; color: var(--muted);
  cursor: pointer; margin-top: .6rem; transition: all .2s;
}
.btn-trips:hover { border-color: var(--accent); color: var(--text); }

/* ── History screen ───────────────────────────────────────────── */
.history-empty {
  text-align: center; padding: 3rem 1rem; color: var(--muted);
}
.history-card-item {
  background: var(--bg2); border-radius: var(--radius);
  padding: 1rem; margin-bottom: .8rem;
  border: 1px solid var(--border);
  animation: fadeIn .3s ease;
}
.history-card-top {
  display: flex; justify-content: space-between;
  align-items: flex-start; margin-bottom: .7rem;
}
.history-country { font-size: 16px; font-weight: 600; font-family: var(--ff-head); }
.history-date    { font-size: 11px; color: var(--muted); white-space: nowrap; }
.history-progress-wrap {
  background: var(--border); border-radius: 6px; height: 6px; overflow: hidden;
}
.history-progress-fill {
  height: 100%; background: var(--teal); border-radius: 6px; transition: width .4s;
}

/* ── Country autocomplete dropdown ───────────────────────────── */
.country-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  z-index: 50;
  overflow: hidden;
}
.country-option {
  padding: 11px 14px;
  font-size: 14px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background .15s;
  color: var(--text);
}
.country-option:last-child { border-bottom: none; }
.country-option:hover,
.country-option-active {
  background: rgba(232,184,109,.12);
  color: var(--text);
}
.country-option strong {
  color: var(--accent);
  font-weight: 600;
}

/* ── Toast notification ─────────────────────────────────────── */
.pw-toast {
  position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%);
  background: #1a1a2e; color: #fff;
  padding: 11px 20px; border-radius: 24px;
  font-size: 14px; font-family: var(--ff-body);
  box-shadow: 0 4px 20px rgba(0,0,0,.25);
  z-index: 999; white-space: nowrap;
  opacity: 0; transition: opacity .25s ease;
  pointer-events: none;
}
.pw-toast.show { opacity: 1; }

/* ── Luggage quantity card ──────────────────────────────────── */
.luggage-qty-card {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: .9rem 1rem;
  margin-bottom: .5rem; animation: fadeIn .25s ease;
}
.luggage-qty-label { font-size: 14px; }
.luggage-qty-ctrl  { display: flex; align-items: center; gap: 12px; }

/* ── Mandatory item badge ──────────────────────────────────────── */
.mandatory-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  background: rgba(232,184,109,.2);
  color: var(--accent);
  border: 1px solid rgba(232,184,109,.4);
  border-radius: 8px;
  padding: 1px 6px;
  margin-left: 6px;
  vertical-align: middle;
}

/* ═══════════════════════════════════════════════════════════════
   Suitcase packing animation
   ═══════════════════════════════════════════════════════════════ */
.suitcase-scene { display: none; }

/* ── Globe orbit scene ─────────────────────────────────────── */
.orbit-scene {
  width: 190px;
  height: 190px;
  margin: 0 auto 1.8rem;
}

/* Plane orbits around globe center (100,100) */
.plane-group {
  animation: orbitPlane 5s linear infinite;
  transform-origin: 100px 100px;
}
@keyframes orbitPlane {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
/* No counter-rotation — plane banks naturally like a real aircraft */
.plane-counter { /* no animation */ }

/* Sparkle dots pulse */
.sp1 { animation: spPulse 2s ease-in-out infinite; }
.sp2 { animation: spPulse 2s ease-in-out infinite .6s; }
.sp3 { animation: spPulse 2s ease-in-out infinite 1.2s; }
@keyframes spPulse {
  0%,100% { opacity:.3; r:2; }
  50%      { opacity:1;  r:3.5; }
}

.suitcase-svg { display: none; }  /* replaced by real image */

/* suitcase image removed */

/* Isometric suitcase - gentle float animation */
.suitcase-lid { display: none; }  /* no lid animation */
.suitcase-main { /* float handled by .suitcase-img */ }
@keyframes float {
  0%,100% { transform: translateY(0px);  }
  50%      { transform: translateY(-7px); }
}

/* Flying items — each from a different angle */
.fly-item {
  opacity: 0;
  animation-duration: 3s;
  animation-timing-function: cubic-bezier(.4,0,.2,1);
  animation-iteration-count: infinite;
}

.fly-shirt {
  transform: translate(165px, 10px) rotate(-20deg);
  animation-name: flyToCase1;
  animation-delay: 0.3s;
}
@keyframes flyToCase1 {
  0%   { opacity:0; transform: translate(165px, 10px) rotate(-20deg) scale(1.1); }
  15%  { opacity:1; }
  55%  { opacity:1; transform: translate(88px, 110px) rotate(10deg) scale(.7); }
  70%  { opacity:0; transform: translate(88px, 118px) rotate(10deg) scale(.5); }
  100% { opacity:0; transform: translate(165px, 10px) rotate(-20deg) scale(1.1); }
}

.fly-passport {
  transform: translate(20px, 5px) rotate(15deg);
  animation-name: flyToCase2;
  animation-delay: 0.7s;
}
@keyframes flyToCase2 {
  0%   { opacity:0; transform: translate(20px, 5px) rotate(15deg) scale(1.1); }
  15%  { opacity:1; }
  55%  { opacity:1; transform: translate(82px, 105px) rotate(-5deg) scale(.65); }
  70%  { opacity:0; transform: translate(82px, 112px) rotate(-5deg) scale(.45); }
  100% { opacity:0; transform: translate(20px, 5px) rotate(15deg) scale(1.1); }
}

.fly-phone {
  transform: translate(170px, 60px) rotate(-10deg);
  animation-name: flyToCase3;
  animation-delay: 1.1s;
}
@keyframes flyToCase3 {
  0%   { opacity:0; transform: translate(170px, 60px) rotate(-10deg) scale(1.1); }
  15%  { opacity:1; }
  55%  { opacity:1; transform: translate(95px, 108px) rotate(5deg) scale(.6); }
  70%  { opacity:0; transform: translate(95px, 115px) rotate(5deg) scale(.4); }
  100% { opacity:0; transform: translate(170px, 60px) rotate(-10deg) scale(1.1); }
}

.fly-socks {
  transform: translate(10px, 70px) rotate(20deg);
  animation-name: flyToCase4;
  animation-delay: 1.5s;
}
@keyframes flyToCase4 {
  0%   { opacity:0; transform: translate(10px, 70px) rotate(20deg) scale(1.1); }
  15%  { opacity:1; }
  55%  { opacity:1; transform: translate(78px, 112px) rotate(-15deg) scale(.65); }
  70%  { opacity:0; transform: translate(78px, 118px) rotate(-15deg) scale(.45); }
  100% { opacity:0; transform: translate(10px, 70px) rotate(20deg) scale(1.1); }
}

.fly-sun {
  transform: translate(155px, 30px) rotate(10deg);
  animation-name: flyToCase5;
  animation-delay: 1.9s;
}
@keyframes flyToCase5 {
  0%   { opacity:0; transform: translate(155px, 30px) rotate(10deg) scale(1.1); }
  15%  { opacity:1; }
  55%  { opacity:1; transform: translate(105px, 106px) rotate(-8deg) scale(.6); }
  70%  { opacity:0; transform: translate(105px, 112px) rotate(-8deg) scale(.4); }
  100% { opacity:0; transform: translate(155px, 30px) rotate(10deg) scale(1.1); }
}

.fly-camera {
  transform: translate(5px, 30px) rotate(-15deg);
  animation-name: flyToCase6;
  animation-delay: 2.3s;
}
@keyframes flyToCase6 {
  0%   { opacity:0; transform: translate(5px, 30px) rotate(-15deg) scale(1.1); }
  15%  { opacity:1; }
  55%  { opacity:1; transform: translate(85px, 109px) rotate(12deg) scale(.55); }
  70%  { opacity:0; transform: translate(85px, 115px) rotate(12deg) scale(.35); }
  100% { opacity:0; transform: translate(5px, 30px) rotate(-15deg) scale(1.1); }
}

/* Sparkles */
.sparkle {
  position: absolute;
  font-size: 14px;
  animation: sparkle 3s ease-in-out infinite;
  pointer-events: none;
}
.s1 { top: 55%; left: 25%; animation-delay: .8s; }
.s2 { top: 60%; left: 65%; animation-delay: 1.4s; }
.s3 { top: 70%; left: 45%; animation-delay: 2s; }

@keyframes sparkle {
  0%,100% { opacity: 0; transform: scale(.5) translateY(0); }
  50%      { opacity: 1; transform: scale(1)  translateY(-8px); }
}

/* Loading text */
.loading-box strong {
  font-size: 17px;
  font-family: var(--ff-head);
  display: block;
  margin-bottom: .4rem;
}
.loading-box p {
  font-size: 13px;
  color: var(--muted);
}

/* ── Privacy policy link on main screen ──────────────────────── */
.privacy-link-wrap {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; margin-top: 1.4rem; padding-bottom: .5rem;
}
.privacy-link {
  background: none; border: none; cursor: pointer;
  font-family: var(--ff-body); font-size: 11px;
  color: var(--muted); text-decoration: none;
  opacity: .6; padding: 0; transition: opacity .2s;
}
.privacy-link:hover { opacity: 1; }
.privacy-dot, .privacy-version {
  font-size: 11px; color: var(--muted); opacity: .6;
}

/* ── Privacy policy page ──────────────────────────────────────── */
.privacy-wrap {
  padding-bottom: 3rem;
}
.privacy-logo {
  font-size: 36px; text-align: center; margin: 1rem 0 .5rem;
}
.privacy-title {
  font-family: var(--ff-head); font-size: 24px; font-weight: 600;
  text-align: center; margin-bottom: .2rem;
}
.privacy-updated {
  text-align: center; font-size: 12px; color: var(--muted); margin-bottom: 1.5rem;
}
.privacy-section {
  margin-bottom: 1.4rem;
  padding: 1rem 1.1rem;
  background: var(--bg2);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
}
.privacy-section h3 {
  font-size: 14px; font-weight: 600; margin-bottom: .5rem;
  color: var(--accent);
}
.privacy-section p {
  font-size: 13px; line-height: 1.7; color: var(--text);
  margin-bottom: .5rem;
}
.privacy-section p:last-child { margin-bottom: 0; }
.privacy-section ul {
  font-size: 13px; line-height: 1.8; color: var(--text);
  padding-left: 1.2rem; margin: .4rem 0;
}
.privacy-section a {
  color: var(--accent); text-decoration: underline;
  text-underline-offset: 2px;
}
.privacy-section strong { font-weight: 600; }
.privacy-footer {
  text-align: center; font-size: 12px;
  color: var(--muted); margin-top: 2rem;
}

/* ── Review submit card ──────────────────────────────────────── */
.review-submit-card {
  background: var(--bg2);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  margin: 1rem 0 6rem;
  border: 1px solid var(--border);
}
.review-submit-title {
  font-size: 15px; font-weight: 600; margin-bottom: .2rem;
}
.review-submit-sub {
  font-size: 12px; color: var(--muted); margin-bottom: .8rem;
}
.review-textarea {
  width: 100%; padding: 10px 14px;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-family: var(--ff-body); font-size: 14px;
  background: var(--bg); color: var(--text);
  resize: vertical; min-height: 80px; outline: none;
  transition: border-color .2s;
}
.review-textarea:focus { border-color: var(--accent); }

/* ── Cookie consent banner ──────────────────────────────────── */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 12px 16px;
  display: flex; align-items: center;
  z-index: 998;
  animation: slideUp .3s ease;
  transition: opacity .4s ease;
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
.cookie-content {
  display: flex; align-items: center;
  justify-content: space-between;
  width: 100%; gap: 12px; flex-wrap: wrap;
}
.cookie-text { font-size: 12px; color: var(--muted); flex: 1; }
.cookie-btns { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.cookie-link {
  font-size: 12px; color: var(--accent);
  text-decoration: underline; text-underline-offset: 2px;
}
.cookie-btn {
  background: var(--accent); color: #1a1a2e;
  border: none; border-radius: 20px;
  padding: 6px 16px; font-size: 12px; font-weight: 600;
  cursor: pointer; font-family: var(--ff-body);
  transition: opacity .2s;
}
.cookie-btn:hover { opacity: .85; }

/* ── Welcome screen ──────────────────────────────────────────── */
#s-welcome {
  background: #0d0d1a !important;  /* always dark */
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  position: fixed;
  inset: 0;
  z-index: 9999;
}
#s-welcome.hidden, #s-welcome[style*="display: none"] {
  display: none !important;
}
.welcome-wrap {
  text-align: center;
  padding: 2rem 1.5rem;
  max-width: 360px;
  margin: 0 auto;
}
.welcome-logo {
  font-family: var(--ff-head);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--accent);
  margin-bottom: 0;
}
.welcome-title {
  font-family: var(--ff-head);
  font-size: 36px;
  font-weight: 600;
  margin-bottom: .5rem;
  color: #ffffff;
}
.welcome-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 2rem;
  line-height: 1.5;
}
.welcome-btn {
  width: 100%;
  font-size: 16px;
  padding: 16px;
  margin-bottom: .8rem;
}
.welcome-hint {
  font-size: 12px;
  color: var(--muted);
  opacity: .7;
  margin-top: 1rem;
  display: block;
}

/* ── Language menu ───────────────────────────────────────────── */
.lang-menu {
  position: absolute;
  top: 44px;
  right: 0;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
  z-index: 100;
  overflow: hidden;
  min-width: 140px;
}
.lang-menu button {
  display: block;
  width: 100%;
  padding: 10px 14px;
  text-align: left;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border);
  font-family: var(--ff-body);
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  transition: background .15s;
}
.lang-menu button:last-child { border-bottom: none; }
.lang-menu button:hover { background: rgba(232,184,109,.1); }

/* ── Lang flag button ────────────────────────────────────────── */
.lang-flag-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 6px !important;
  overflow: hidden;
  border-radius: 50%;
}
.lang-flag-btn svg { border-radius: 2px; }
.lang-menu button {
  display: flex !important;
  align-items: center;
  gap: 8px;
}
.lang-menu button svg { border-radius: 2px; flex-shrink: 0; }
