/* ═══════════════════════════════════════════════════════════════
   LayoverGuide — Travel Design System v3
   Global Cabin Crew Layover App
   Mobile-first · Light travel theme · PWA-ready
═══════════════════════════════════════════════════════════════ */

/* ── TOKENS ─────────────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg:         #f0f6ff;
  --bg-surface: #ffffff;
  --bg-card:    #ffffff;
  --bg-card2:   #f8faff;
  --bg-raised:  #eef4ff;
  --bg-overlay: rgba(255,255,255,0.94);

  /* Borders */
  --bdr:        #e2eaf5;
  --bdr-2:      #d0ddf0;
  --bdr-3:      #b8cce4;

  /* Brand — sky blue */
  --sky:        #0284c7;
  --sky-dim:    rgba(2,132,199,0.08);
  --sky-glow:   rgba(2,132,199,0.18);
  --sky-text:   #0369a1;
  --sky-dark:   #075985;
  --sky-light:  #e0f2fe;

  /* Coral accent */
  --coral:      #f97316;
  --coral-dim:  rgba(249,115,22,0.08);
  --coral-text: #ea580c;

  /* Accent red (legacy compat) */
  --tk-red:     #e63946;
  --tk-red-dim: rgba(230,57,70,0.08);

  /* Status */
  --green:      #16a34a;
  --green-dim:  rgba(22,163,74,0.08);
  --amber:      #d97706;
  --amber-dim:  rgba(217,119,6,0.08);
  --red:        #dc2626;
  --red-dim:    rgba(220,38,38,0.08);
  --purple:     #7c3aed;
  --purple-dim: rgba(124,58,237,0.08);

  /* Region colours */
  --c-turkey:      #ef4444;
  --c-europe:      #3b82f6;
  --c-mideast:     #f59e0b;
  --c-africa:      #f97316;
  --c-asia:        #0d9488;
  --c-centralasia: #8b5cf6;
  --c-americas:    #16a34a;

  /* Text */
  --txt:    #0f1e2e;
  --txt-2:  #4a6380;
  --txt-3:  #8da4bc;
  --txt-inv:#ffffff;

  /* Radius */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 32px;

  /* Spacing */
  --gap:    16px;
  --gap-sm: 10px;
  --gap-lg: 24px;

  /* Layout */
  --nav-h:  56px;
  --bnav-h: 64px;
  --max-w:  780px;

  /* Shadows */
  --shadow-sm:  0 1px 4px rgba(15,30,46,0.07), 0 1px 2px rgba(15,30,46,0.04);
  --shadow-md:  0 4px 16px rgba(15,30,46,0.09), 0 1px 4px rgba(15,30,46,0.05);
  --shadow-lg:  0 8px 32px rgba(15,30,46,0.12), 0 2px 8px rgba(15,30,46,0.06);
}

/* ── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; height: 100%; }
body {
  font-family: 'Plus Jakarta Sans', -apple-system, 'SF Pro Text', 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--txt);
  min-height: 100%;
  overscroll-behavior-y: contain;
  padding-bottom: calc(var(--bnav-h) + env(safe-area-inset-bottom) + 8px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
* { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; border: none; background: none; color: inherit; font: inherit; }
a     { color: inherit; text-decoration: none; }
input, textarea { font: inherit; background: none; border: none; outline: none; color: inherit; }

/* ── SCROLLBAR ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bdr-2); border-radius: 4px; }

/* ── TRANSITIONS ────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0);    }
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0);    }
}
@keyframes pulse {
  0%,100% { opacity: 1; }
  50%      { opacity: .5; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position:  400px 0; }
}

.anim-up { animation: fadeUp  .35s cubic-bezier(.25,.46,.45,.94) both; }
.anim-in { animation: slideIn .28s cubic-bezier(.25,.46,.45,.94) both; }

/* ── PAGE WRAPPER ───────────────────────────────────────────── */
#root { min-height: 100vh; }

/* ── TOP NAV ────────────────────────────────────────────────── */
.top-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: calc(env(safe-area-inset-top) + 10px) var(--gap) 10px;
  background: var(--bg-overlay);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--bdr);
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--nav-h);
  box-shadow: 0 1px 0 var(--bdr), 0 2px 8px rgba(15,30,46,0.04);
}
.nav-back {
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  background: var(--bg-raised);
  border: 1px solid var(--bdr);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  transition: background .15s;
  color: var(--sky);
}
.nav-back:active { background: var(--sky-light); }
.nav-title {
  font-size: 17px; font-weight: 700;
  flex: 1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: var(--txt);
}
.nav-title .nav-flag { margin-right: 6px; }
.nav-action {
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  background: var(--bg-raised);
  border: 1px solid var(--bdr);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  transition: background .15s;
}
.nav-action:active { background: var(--sky-light); }
.nav-fav-btn.active { color: #d97706; background: var(--amber-dim); border-color: rgba(217,119,6,0.25); }

/* ── BOTTOM NAV ─────────────────────────────────────────────── */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: calc(var(--bnav-h) + env(safe-area-inset-bottom));
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--bdr);
  box-shadow: 0 -4px 20px rgba(15,30,46,0.07);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  padding-bottom: env(safe-area-inset-bottom);
  z-index: 100;
}
.bnav-7 { grid-template-columns: repeat(7, 1fr); }
.bnav-prof-img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; border: 2px solid currentColor; }
.bnav-btn {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2px;
  padding: 6px 2px;
  font-size: 10px; font-weight: 500;
  color: var(--txt-3);
  transition: color .15s;
}
.bnav-btn .icon { font-size: 20px; line-height: 1; }
.bnav-btn.active { color: var(--sky); }
.bnav-btn.active .icon {
  background: var(--sky-dim);
  border-radius: 10px;
  padding: 3px 7px;
}
.bnav-btn:active { opacity: .7; }

/* Crew live dot on bottom nav */
.bnav-crew-wrap {
  position: relative;
  display: inline-block;
  line-height: 1;
}
.bnav-crew-wrap::after {
  content: '';
  position: absolute;
  top: -1px; right: -4px;
  width: 8px; height: 8px;
  background: #22c55e;
  border-radius: 50%;
  border: 2px solid #fff;
  animation: crew-nav-pulse 2.4s ease-in-out infinite;
}
@keyframes crew-nav-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: .75; }
}

/* ── PAGE CONTENT ───────────────────────────────────────────── */
.page-content {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--gap);
  padding-bottom: 40px;
}

/* ══════════════════════════════════════════════════════════════
   HOME PAGE
══════════════════════════════════════════════════════════════ */

/* Hero banner */
.home-hero-banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0c4a6e 0%, #0369a1 40%, #0284c7 70%, #38bdf8 100%);
  padding: calc(env(safe-area-inset-top) + 20px) var(--gap) 28px;
  min-height: 220px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.home-hero-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.home-hero-banner::after {
  content: '✈';
  position: absolute;
  right: -10px; top: 30px;
  font-size: 120px;
  opacity: 0.06;
  transform: rotate(-20deg);
  pointer-events: none;
  line-height: 1;
}
.home-nav-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
  position: relative; z-index: 2;
}
.home-nav-logo {
  display: flex; align-items: center; gap: 10px;
}
.home-nav-logo .app-icon {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.2);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.25);
}
.home-nav-logo .app-name {
  font-size: 18px; font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.03em;
}
.home-search-btn {
  width: 38px; height: 38px;
  border-radius: 12px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  backdrop-filter: blur(10px);
  color: white;
  transition: background .2s;
}
.home-search-btn:active { background: rgba(255,255,255,0.28); }

.home-hero-content { position: relative; z-index: 2; }
.home-hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: #e0f2fe;
  font-size: 11px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
  margin-bottom: 10px;
  backdrop-filter: blur(10px);
}
.home-headline {
  font-size: 32px; font-weight: 900;
  color: #ffffff;
  line-height: 1.12;
  letter-spacing: -0.04em;
  margin-bottom: 8px;
}
.home-headline em { color: #7dd3fc; font-style: italic; }
.home-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.72);
  line-height: 1.5;
}
.home-stats-row {
  display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap;
}
.home-stat-chip {
  display: flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9);
  font-size: 12px; font-weight: 600;
  padding: 5px 10px; border-radius: 999px;
  backdrop-filter: blur(10px);
}

/* Legacy compat for old home hero */
.home-hero {
  padding: 0;
}
.home-logo { display: none; }
.tk-badge { display: none; }

/* Search bar on home */
.home-search-wrap {
  padding: 16px var(--gap) 8px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.home-search-box {
  display: flex; align-items: center; gap: 12px;
  background: #ffffff;
  border: 1.5px solid var(--bdr);
  border-radius: var(--r-lg);
  padding: 13px 18px;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}
.home-search-box:hover { border-color: var(--sky); box-shadow: 0 0 0 3px var(--sky-dim), var(--shadow-md); }
.home-search-box .ico { font-size: 18px; color: var(--sky); flex-shrink: 0; }
.home-search-box .ph { color: var(--txt-3); font-size: 15px; }

/* ── SEARCH (standalone page) ──────────────────────────────── */
.search-wrap {
  padding: 0 var(--gap) var(--gap-sm);
  max-width: var(--max-w); margin: 0 auto;
}
.search-box {
  display: flex; align-items: center; gap: 10px;
  background: #ffffff;
  border: 1.5px solid var(--bdr);
  border-radius: var(--r-lg);
  padding: 13px 16px;
  box-shadow: var(--shadow-sm);
  transition: border-color .2s, box-shadow .2s;
}
.search-box:focus-within {
  border-color: var(--sky);
  box-shadow: 0 0 0 3px var(--sky-dim);
}
.search-box .ico { font-size: 18px; color: var(--sky); flex-shrink: 0; }
.search-box input {
  flex: 1; font-size: 16px;
  color: var(--txt); background: transparent;
}
.search-box input::placeholder { color: var(--txt-3); }
.search-clear {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--bg-raised);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--txt-3);
  flex-shrink: 0;
}

/* ── SEARCH RESULTS ─────────────────────────────────────────── */
.search-results { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gap); }
.search-result-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid var(--bdr);
  border-radius: var(--r-md);
  margin-bottom: 8px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform .15s, box-shadow .15s;
}
.search-result-item:active { transform: scale(.99); box-shadow: none; }
.search-result-item .flag { font-size: 28px; flex-shrink: 0; }
.search-result-item .info { flex: 1; min-width: 0; }
.search-result-item .name { font-weight: 700; font-size: 15px; color: var(--txt); }
.search-result-item .meta { font-size: 12px; color: var(--txt-2); margin-top: 1px; }
.search-result-item .iata {
  font-size: 11px; font-weight: 700;
  background: var(--bg-raised);
  border: 1px solid var(--bdr-2);
  padding: 3px 8px; border-radius: var(--r-xs);
  color: var(--txt-2);
}
.search-result-item.status-full .iata {
  color: var(--sky); border-color: rgba(2,132,199,.25);
  background: var(--sky-dim);
}
.search-empty { text-align: center; padding: 48px 16px; color: var(--txt-3); }
.search-empty .ico { font-size: 40px; margin-bottom: 12px; display: block; }
.search-empty p { font-size: 15px; }

/* ── SECTION HEADER ─────────────────────────────────────────── */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.section-title {
  font-size: 16px; font-weight: 800;
  color: var(--txt); letter-spacing: -0.02em;
}
.section-link { font-size: 13px; color: var(--sky); font-weight: 600; }

/* ── FEATURED CARDS (horizontal scroll) ─────────────────────── */
.featured-strip {
  display: flex; gap: 14px;
  overflow-x: auto;
  padding: 4px var(--gap) 20px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.featured-strip::-webkit-scrollbar { display: none; }

.feat-card {
  flex-shrink: 0;
  width: 158px;
  height: 210px;
  border-radius: var(--r-lg);
  cursor: pointer;
  scroll-snap-align: start;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15,30,46,0.18), 0 2px 6px rgba(15,30,46,0.1);
  transition: transform .22s cubic-bezier(.25,.46,.45,.94), box-shadow .22s;
  position: relative;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.feat-card:active {
  transform: scale(.96);
  box-shadow: 0 4px 12px rgba(15,30,46,0.14);
}

/* Dark gradient scrim — photo readable at bottom */
.feat-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0)     0%,
    rgba(0,0,0,0.04)  35%,
    rgba(0,0,0,0.55)  70%,
    rgba(0,0,0,0.80)  100%
  );
  pointer-events: none;
  z-index: 1;
}

/* Large emoji for cards without a photo */
.feat-card-emoji {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 58px;
  z-index: 0;
  opacity: .9;
}

/* Text info at bottom */
.feat-card-info {
  position: relative; z-index: 2;
  padding: 0 12px 13px;
  display: flex; flex-direction: column; gap: 3px;
}
.feat-card-iata {
  display: inline-block; width: fit-content;
  font-size: 9px; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
  background: rgba(255,255,255,0.22);
  border: 1px solid rgba(255,255,255,0.35);
  color: rgba(255,255,255,0.95);
  padding: 2px 7px; border-radius: 5px;
  backdrop-filter: blur(6px);
  margin-bottom: 3px;
}
.feat-card-name {
  font-size: 14px; font-weight: 800;
  color: #ffffff; line-height: 1.2;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}
.feat-card-ctry {
  font-size: 11px; font-weight: 500;
  color: rgba(255,255,255,0.72);
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

/* Hide old classes that are replaced */
.feat-card-photo { display: none; }
.feat-card-body  { display: none; }

/* ── REGION GRID ────────────────────────────────────────────── */
.regions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 0 var(--gap) var(--gap);
  max-width: var(--max-w); margin: 0 auto;
}
.region-card {
  background: #ffffff;
  border: 1px solid var(--bdr);
  border-radius: var(--r-md);
  padding: 16px 14px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
  overflow: hidden;
  position: relative;
}
.region-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: var(--rcolor, var(--sky));
  border-radius: var(--r-md) var(--r-md) 0 0;
}
.region-card:active { transform: scale(.98); box-shadow: none; }
.region-card .ricon { font-size: 28px; margin-bottom: 8px; display: block; }
.region-card .rinfo .rname { font-size: 14px; font-weight: 800; color: var(--txt); }
.region-card .rinfo .rcount { font-size: 11px; color: var(--txt-2); margin-top: 2px; }
.region-card .rbar {
  height: 3px; border-radius: 3px; margin-top: 10px; opacity: 0.5;
}

/* ── DESTINATION LIST ───────────────────────────────────────── */
.dest-list { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gap); }
.dest-group-header {
  font-size: 12px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .07em;
  color: var(--txt-3);
  padding: 14px 2px 6px;
  border-bottom: 1px solid var(--bdr);
  margin-bottom: 6px;
}
.dest-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  background: #ffffff;
  border: 1px solid transparent;
  cursor: pointer;
  margin-bottom: 6px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .15s, border-color .15s;
}
.dest-item:active { box-shadow: none; border-color: var(--bdr); }
.dest-item .d-flag { font-size: 26px; flex-shrink: 0; }
.dest-item .d-info { flex: 1; min-width: 0; }
.dest-item .d-name { font-size: 15px; font-weight: 700; color: var(--txt); }
.dest-item .d-meta { font-size: 12px; color: var(--txt-2); margin-top: 1px; }
.dest-item .d-iata {
  font-size: 10px; font-weight: 700;
  padding: 3px 7px; border-radius: 4px;
  background: var(--bg-raised); color: var(--txt-3);
  border: 1px solid var(--bdr);
}
.dest-item.full .d-iata {
  color: var(--sky); border-color: rgba(2,132,199,.2);
  background: var(--sky-dim);
}
.dest-item .d-arrow { color: var(--txt-3); font-size: 16px; }

/* ══════════════════════════════════════════════════════════════
   CITY PAGE
══════════════════════════════════════════════════════════════ */

/* City hero — full photo style */
.city-hero {
  position: relative;
  min-height: 240px;
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden;
  background: linear-gradient(135deg, #0c4a6e, #0284c7);
}
.city-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: brightness(0.55) saturate(1.2);
  transition: opacity .3s;
}
.city-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,20,40,0.85) 0%, rgba(10,20,40,0.3) 60%, transparent 100%);
}
.city-hero-inner {
  position: relative; z-index: 2;
  padding: 20px var(--gap) 20px;
  max-width: var(--max-w); margin: 0 auto; width: 100%;
}
.city-hero .emoji {
  font-size: 44px; display: block; margin-bottom: 6px; line-height: 1;
}
.city-hero h1 {
  font-size: 34px; font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.03em; line-height: 1.05;
}
.city-hero .country-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 4px 10px; border-radius: 999px;
  font-size: 13px; color: rgba(255,255,255,0.9);
  margin-top: 8px;
  backdrop-filter: blur(8px);
}
.city-hero .tagline {
  font-size: 13px; color: rgba(255,255,255,0.72);
  margin-top: 8px; line-height: 1.5;
}
.city-hero-stats {
  display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap;
}
.hero-stat {
  display: flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 5px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; color: #fff;
  backdrop-filter: blur(8px);
}
.hero-stat .ico { font-size: 14px; }

/* ── QUICK INFO BAR ─────────────────────────────────────────── */
.quick-info {
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: #ffffff;
  border-bottom: 1px solid var(--bdr);
  box-shadow: 0 1px 4px rgba(15,30,46,0.05);
}
.qi-cell {
  padding: 13px 10px; text-align: center;
  border-right: 1px solid var(--bdr);
}
.qi-cell:last-child { border-right: none; }
.qi-label {
  font-size: 10px; color: var(--txt-3);
  text-transform: uppercase; letter-spacing: .04em; margin-bottom: 3px;
}
.qi-val { font-size: 14px; font-weight: 700; color: var(--txt); }

/* ── TAB BAR ────────────────────────────────────────────────── */
.tab-bar {
  display: flex; overflow-x: auto;
  background: #ffffff;
  border-bottom: 1px solid var(--bdr);
  box-shadow: 0 1px 4px rgba(15,30,46,0.04);
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  position: sticky; top: var(--nav-h); z-index: 90;
}
.tab-bar::-webkit-scrollbar { display: none; }
.tab-btn {
  flex-shrink: 0;
  padding: 12px 16px;
  font-size: 13px; font-weight: 600;
  color: var(--txt-3);
  border-bottom: 2.5px solid transparent;
  scroll-snap-align: start;
  white-space: nowrap;
  transition: color .15s, border-color .15s;
}
.tab-btn.active { color: var(--sky); border-bottom-color: var(--sky); }

/* ── TAB CONTENT ────────────────────────────────────────────── */
#tab-content { animation: fadeUp .25s cubic-bezier(.25,.46,.45,.94) both; }

/* ── CARDS BASE ─────────────────────────────────────────────── */
.card {
  background: #ffffff;
  border: 1px solid var(--bdr);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}
.card-body { padding: 16px; }
.card-title {
  font-size: 15px; font-weight: 700;
  margin-bottom: 4px;
  display: flex; align-items: flex-start; gap: 8px;
  color: var(--txt);
}
.card-title .ico { font-size: 20px; flex-shrink: 0; margin-top: 1px; }
.card-sub { font-size: 13px; color: var(--txt-2); line-height: 1.5; }
.card-footer {
  padding: 10px 16px;
  background: var(--bg-card2);
  border-top: 1px solid var(--bdr);
  font-size: 12px; color: var(--txt-2);
  display: flex; align-items: center; gap: 8px;
}

/* ── RESTAURANT / VENUE CARDS ───────────────────────────────── */
.venue-card {
  background: #ffffff;
  border: 1px solid var(--bdr);
  border-radius: var(--r-md);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s;
}
.venue-card:hover { box-shadow: var(--shadow-md); }
.venue-card-head {
  padding: 14px 16px 10px;
  display: flex; align-items: flex-start; gap: 12px;
}
.venue-ico { font-size: 30px; flex-shrink: 0; }
.venue-info { flex: 1; min-width: 0; }
.venue-name { font-size: 15px; font-weight: 800; line-height: 1.2; color: var(--txt); }
.venue-type { font-size: 12px; color: var(--txt-2); margin-top: 2px; }
.venue-badges { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; align-items: center; }
.badge {
  display: inline-flex; align-items: center;
  font-size: 10px; font-weight: 700;
  padding: 3px 8px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: .04em;
}
.badge.green  { background: var(--green-dim);  color: var(--green);  border: 1px solid rgba(22,163,74,.2);  }
.badge.blue   { background: var(--sky-dim);    color: var(--sky);    border: 1px solid rgba(2,132,199,.2); }
.badge.amber  { background: var(--amber-dim);  color: var(--amber);  border: 1px solid rgba(217,119,6,.2); }
.badge.red    { background: var(--red-dim);    color: var(--red);    border: 1px solid rgba(220,38,38,.2);  }
.badge.purple { background: var(--purple-dim); color: var(--purple); border: 1px solid rgba(124,58,237,.2);}
.price-badge-budget  { background: var(--green-dim);  color: var(--green);  font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.price-badge-mid     { background: var(--amber-dim);  color: var(--amber);  font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.price-badge-premium { background: var(--purple-dim); color: var(--purple); font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }

.venue-highlight {
  padding: 0 16px 10px;
  font-size: 13px; color: var(--txt-2); line-height: 1.5;
}
.venue-footer {
  border-top: 1px solid var(--bdr);
  padding: 8px 16px;
  background: var(--bg-card2);
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  flex-wrap: wrap;
}
.venue-footer-left {
  display: flex; align-items: center; gap: 10px;
  flex: 1; min-width: 0;
}
.venue-footer .loc  {
  font-size: 11px; color: var(--txt-3);
  display: flex; align-items: center; gap: 4px;
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.venue-footer .hours { font-size: 11px; color: var(--txt-3); white-space: nowrap; }
.crew-note {
  margin: 0 16px 12px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--r-sm);
  padding: 8px 12px;
  font-size: 12px; color: #1e40af; line-height: 1.5;
  display: flex; gap: 6px;
}
.crew-note::before { content: '✈'; flex-shrink: 0; color: var(--sky); }

/* ── GOOGLE MAPS BUTTON ──────────────────────────────────────── */
.maps-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--sky-dim);
  border: 1px solid rgba(2,132,199,0.22);
  color: var(--sky-text);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .15s, border-color .15s;
  -webkit-tap-highlight-color: transparent;
}
.maps-btn:hover, .maps-btn:active {
  background: rgba(2,132,199,0.16);
  border-color: rgba(2,132,199,0.4);
}
.maps-btn .maps-pin { font-size: 13px; }

/* Maps row that sits inside shop-card / car-rental-item */
.maps-row {
  padding: 8px 14px 10px;
  border-top: 1px solid var(--bdr);
  background: var(--bg-card2);
  display: flex; justify-content: flex-end;
}

/* ── PLAN STEPS ─────────────────────────────────────────────── */
.plan-selector {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 8px; margin-bottom: 20px;
}
.plan-btn {
  background: #ffffff;
  border: 1.5px solid var(--bdr);
  border-radius: var(--r-sm);
  padding: 10px 6px; text-align: center; cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: border-color .15s, background .15s;
}
.plan-btn .dur { font-size: 17px; font-weight: 800; color: var(--txt); }
.plan-btn .lbl { font-size: 10px; color: var(--txt-3); margin-top: 2px; }
.plan-btn.active {
  background: var(--sky-dim);
  border-color: var(--sky);
}
.plan-btn.active .dur { color: var(--sky); }
.plan-btn.active .lbl { color: var(--sky-text); }

.plan-meta {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border: 1px solid #bfdbfe;
  border-radius: var(--r-md);
  padding: 14px 16px; margin-bottom: 16px;
}
.plan-meta .vibe { font-size: 14px; font-weight: 700; color: #1e40af; margin-bottom: 4px; }
.plan-meta .suitable { font-size: 12px; color: #3b82f6; }

.plan-steps { position: relative; }
.plan-step { display: flex; gap: 14px; margin-bottom: 4px; position: relative; }
.plan-step-line {
  display: flex; flex-direction: column; align-items: center;
  flex-shrink: 0; width: 36px;
}
.plan-step-num {
  width: 36px; height: 36px;
  background: var(--sky);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(2,132,199,0.3);
}
.plan-step-connector {
  width: 2px; flex: 1; min-height: 16px;
  background: linear-gradient(to bottom, var(--sky-dim), transparent);
  margin: 4px 0;
}
.plan-step-body {
  flex: 1;
  background: #ffffff;
  border: 1px solid var(--bdr);
  border-radius: var(--r-md);
  padding: 12px 14px; margin-bottom: 6px;
  box-shadow: var(--shadow-sm);
}
.plan-step-what   { font-size: 14px; font-weight: 700; color: var(--txt); }
.plan-step-detail { font-size: 12px; color: var(--txt-2); margin-top: 4px; line-height: 1.5; }
.plan-step-chips  { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.plan-chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600;
  padding: 3px 8px; border-radius: 999px;
  background: var(--bg-raised); color: var(--txt-2);
}
.plan-chip.time { background: var(--sky-dim); color: var(--sky-text); }
.plan-chip.cost { background: var(--green-dim); color: var(--green); }

.plan-tip {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--r-md);
  padding: 12px 16px; font-size: 13px; color: #92400e; line-height: 1.5; margin-top: 12px;
}

/* ── WEATHER GRID ───────────────────────────────────────────── */
.weather-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.weather-card {
  background: #ffffff; border: 1px solid var(--bdr);
  border-radius: var(--r-md); padding: 14px;
  box-shadow: var(--shadow-sm);
}
.weather-season { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--txt-2); margin-bottom: 4px; }
.weather-months { font-size: 11px; color: var(--txt-3); margin-bottom: 6px; }
.weather-temp   { font-size: 22px; font-weight: 800; color: var(--sky); margin-bottom: 4px; }
.weather-feel   { font-size: 12px; color: var(--txt-2); line-height: 1.4; margin-bottom: 6px; }
.weather-pack   { font-size: 11px; color: var(--txt-3); font-style: italic; line-height: 1.4; }

/* ── SAFETY CARDS ───────────────────────────────────────────── */
.safety-item {
  display: flex; gap: 12px;
  padding: 12px 14px;
  background: #ffffff; border: 1px solid var(--bdr);
  border-radius: var(--r-md); margin-bottom: 8px;
  box-shadow: var(--shadow-sm);
}
.safety-ico  { font-size: 22px; flex-shrink: 0; }
.safety-body { flex: 1; }
.safety-title { font-size: 14px; font-weight: 700; margin-bottom: 3px; display: flex; align-items: center; gap: 8px; color: var(--txt); }
.safety-note  { font-size: 12px; color: var(--txt-2); line-height: 1.5; }
.safety-level { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.safety-level.amber { background: var(--amber); box-shadow: 0 0 0 3px var(--amber-dim); }
.safety-level.red   { background: var(--red);   box-shadow: 0 0 0 3px var(--red-dim);   }
.safety-level.info  { background: var(--sky);   box-shadow: 0 0 0 3px var(--sky-dim);   }
.safety-level.green { background: var(--green); box-shadow: 0 0 0 3px var(--green-dim); }
.safety-level.low   { background: var(--green); box-shadow: 0 0 0 3px var(--green-dim); }
.safety-level.medium{ background: var(--amber); box-shadow: 0 0 0 3px var(--amber-dim); }
.safety-level.high  { background: var(--red);   box-shadow: 0 0 0 3px var(--red-dim);   }

/* ── TRANSPORT ITEMS ────────────────────────────────────────── */
.transport-item {
  background: #ffffff; border: 1px solid var(--bdr);
  border-radius: var(--r-md); padding: 14px 16px; margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
}
.transport-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.transport-ico  { font-size: 24px; flex-shrink: 0; }
.transport-name { font-size: 15px; font-weight: 800; color: var(--txt); }
.transport-type {
  font-size: 11px; color: var(--sky); font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
}
.transport-note { font-size: 13px; color: var(--txt-2); line-height: 1.5; margin-bottom: 8px; }
.transport-chips{ display: flex; gap: 8px; flex-wrap: wrap; }
.t-chip {
  font-size: 12px; font-weight: 600;
  padding: 4px 10px; border-radius: 999px;
  background: var(--bg-raised); color: var(--txt-2);
  border: 1px solid var(--bdr);
}
.t-chip.cost { color: var(--green); border-color: rgba(22,163,74,.2); background: var(--green-dim); }
.t-chip.tip  { color: var(--amber); border-color: rgba(217,119,6,.2); background: var(--amber-dim); }

/* ── PRICE TABLE ────────────────────────────────────────────── */
.price-table {
  background: #ffffff; border: 1px solid var(--bdr);
  border-radius: var(--r-md); overflow: hidden; margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.price-row {
  display: flex; align-items: center;
  padding: 11px 14px; border-bottom: 1px solid var(--bdr); gap: 12px;
}
.price-row:last-child { border-bottom: none; }
.price-row:nth-child(even) { background: var(--bg-card2); }
.price-label { flex: 1; font-size: 13px; color: var(--txt-2); }
.price-local  { font-size: 13px; font-weight: 700; color: var(--txt); }
.price-usd    { font-size: 12px; color: var(--txt-3); margin-left: 6px; }

/* ── DELIVERY APPS ──────────────────────────────────────────── */
.delivery-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.delivery-item {
  display: flex; align-items: center; gap: 12px;
  background: #ffffff; border: 1px solid var(--bdr);
  border-radius: var(--r-md); padding: 12px 14px;
  box-shadow: var(--shadow-sm);
}
.delivery-name { font-size: 14px; font-weight: 800; color: var(--txt); }
.delivery-cat  { font-size: 11px; color: var(--txt-2); margin-top: 2px; }
.delivery-note { font-size: 12px; color: var(--txt-3); margin-top: 4px; line-height: 1.4; }

/* ── DUTY FREE ──────────────────────────────────────────────── */
.duty-section { margin-bottom: 20px; }
.duty-section h3 {
  font-size: 13px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--txt-2); margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.duty-list { list-style: none; }
.duty-list li {
  display: flex; gap: 10px;
  font-size: 13px; color: var(--txt-2); line-height: 1.5;
  padding: 9px 0; border-bottom: 1px solid var(--bdr);
}
.duty-list li:last-child { border-bottom: none; }
.duty-list li::before { content: '✓'; color: var(--green); font-weight: 800; flex-shrink: 0; }
.duty-list.avoid li::before { content: '✗'; color: var(--red); }

.duty-crew-note {
  background: #eff6ff; border: 1px solid #bfdbfe;
  border-radius: var(--r-md); padding: 14px;
  font-size: 13px; color: #1e40af; line-height: 1.6;
  display: flex; gap: 10px;
}
.duty-crew-note::before { content: '✈'; flex-shrink: 0; font-size: 16px; margin-top: 1px; color: var(--sky); }

/* ── HOTEL AREA PICKER ──────────────────────────────────────── */
.hotel-area-tabs {
  display: flex; gap: 8px; overflow-x: auto; margin-bottom: 16px;
  -webkit-overflow-scrolling: touch;
}
.hotel-area-tabs::-webkit-scrollbar { display: none; }
.hotel-area-tab {
  flex-shrink: 0; padding: 8px 16px;
  border-radius: 999px; font-size: 13px; font-weight: 600;
  background: #ffffff; border: 1.5px solid var(--bdr);
  color: var(--txt-2); cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all .15s;
}
.hotel-area-tab.active {
  background: var(--sky); border-color: var(--sky);
  color: #ffffff; box-shadow: 0 2px 8px rgba(2,132,199,0.3);
}

.hotel-area-card {
  background: #ffffff; border: 1px solid var(--bdr);
  border-radius: var(--r-md); padding: 16px; margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}
.hotel-area-title { font-size: 16px; font-weight: 800; margin-bottom: 4px; color: var(--txt); }
.hotel-area-type  { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.hotel-area-type.airport { color: var(--sky); }
.hotel-area-type.city    { color: var(--green); }
.hotel-area-desc  { font-size: 13px; color: var(--txt-2); line-height: 1.5; margin-bottom: 12px; }
.hotel-list-title { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--txt-3); margin-bottom: 6px; }
.hotel-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.hotel-tag {
  font-size: 12px; padding: 4px 10px;
  background: var(--bg-raised); border: 1px solid var(--bdr-2);
  border-radius: 999px; color: var(--txt-2);
}
.nearby-tag {
  font-size: 12px; padding: 4px 10px;
  background: var(--green-dim); border: 1px solid rgba(22,163,74,.2);
  border-radius: 999px; color: var(--green); font-weight: 600;
}

/* ── CURRENCY CONVERTER ─────────────────────────────────────── */
.currency-hero {
  background: linear-gradient(135deg, #0c4a6e, #0284c7);
  padding: 24px var(--gap) 20px;
}
.currency-hero h2 { font-size: 22px; font-weight: 800; margin-bottom: 4px; color: #fff; }
.currency-hero p  { font-size: 14px; color: rgba(255,255,255,0.75); }

/* ── CURRENCY CONVERTER ─────────────────────────────────────── */
.currency-widget {
  background: var(--bg-card); border: 1px solid var(--bdr);
  border-radius: var(--r-lg); padding: 18px; margin-bottom: 16px;
  box-shadow: var(--shadow-md);
}

/* Quick pairs */
.cur-quick-pairs { margin-bottom: 14px; }
.cur-qp-label { font-size: 10px; font-weight: 700; color: var(--txt-3); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 7px; }
.cur-qp-row { display: flex; flex-wrap: wrap; gap: 6px; }
.cur-qp-btn {
  font-size: 11px; font-weight: 700; color: var(--sky);
  background: var(--sky-dim); border: 1px solid rgba(2,132,199,.2);
  border-radius: 999px; padding: 5px 10px; cursor: pointer;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.cur-qp-btn.active,
.cur-qp-btn:active { background: var(--sky); color: #fff; }

/* Input rows */
.cur-row {
  background: var(--bg-card2); border: 1.5px solid var(--bdr);
  border-radius: var(--r-md); padding: 12px 14px; margin-bottom: 8px;
}
.cur-label { font-size: 10px; font-weight: 700; color: var(--txt-3); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.cur-input-row { display: flex; align-items: center; gap: 10px; }
.cur-amount-input {
  flex: 1; min-width: 0;
  font-size: 32px; font-weight: 800; color: var(--txt);
  background: transparent; border: none; outline: none;
  width: 100%;
}
.cur-result-display {
  flex: 1; min-width: 0;
  font-size: 32px; font-weight: 800; color: var(--sky);
  word-break: break-all;
}
.cur-select {
  flex-shrink: 0; max-width: 160px;
  background: var(--bg-raised); border: 1.5px solid var(--bdr);
  border-radius: var(--r-sm); padding: 8px 10px;
  font-size: 13px; font-weight: 700; color: var(--txt);
  cursor: pointer; -webkit-appearance: none; appearance: none;
}

/* Swap button */
.cur-swap-btn {
  display: flex; align-items: center; justify-content: center;
  margin: 4px auto 4px; padding: 9px 22px;
  background: var(--sky-dim); border: 1.5px solid rgba(2,132,199,.25);
  border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--sky);
  cursor: pointer; transition: transform .2s, background .2s;
  letter-spacing: .02em;
}
.cur-swap-btn:active { transform: scale(0.96) rotate(180deg); background: var(--sky-light); }

/* Rate bar */
.cur-rate-bar {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px;
  background: linear-gradient(135deg, var(--sky-dim), #dbeafe44);
  border: 1px solid rgba(2,132,199,.18);
  border-radius: var(--r-md); padding: 11px 14px; margin-top: 4px;
}
.cur-rate-text   { font-size: 13px; font-weight: 700; color: var(--sky); }
.cur-rate-inverse { font-size: 12px; color: var(--txt-2); }

/* Reference rates grid */
.cur-grid-title {
  font-size: 12px; font-weight: 800; color: var(--txt-2);
  text-transform: uppercase; letter-spacing: .06em;
  margin: 4px 0 10px;
}
.currency-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.currency-tile {
  background: var(--bg-card); border: 1.5px solid var(--bdr);
  border-radius: var(--r-md); padding: 12px; cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: border-color .15s, box-shadow .15s, transform .1s;
}
.currency-tile:active,
.currency-tile.active {
  border-color: var(--sky); box-shadow: 0 0 0 3px var(--sky-dim);
  transform: scale(0.97);
}
.currency-tile .ctile-flag { font-size: 13px; color: var(--txt-3); margin-bottom: 2px; }
.currency-tile .ctile-code { font-size: 17px; font-weight: 900; color: var(--sky); }
.currency-tile .ctile-name { font-size: 10px; color: var(--txt-2); margin: 2px 0 6px; line-height: 1.2; }
.currency-tile .ctile-rate { font-size: 14px; font-weight: 700; color: var(--txt); }

/* ── PRACTICAL INFO GRID ────────────────────────────────────── */
.practical-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.prac-item {
  background: #ffffff; border: 1px solid var(--bdr);
  border-radius: var(--r-md); padding: 12px 14px;
  box-shadow: var(--shadow-sm);
}
.prac-label { font-size: 10px; color: var(--txt-3); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.prac-val   { font-size: 13px; font-weight: 600; color: var(--txt); line-height: 1.4; }

/* ── AIRPORT CARD ───────────────────────────────────────────── */
.airport-card {
  background: #ffffff; border: 1px solid var(--bdr);
  border-radius: var(--r-md); padding: 16px; margin-bottom: 12px;
  display: flex; gap: 14px;
  box-shadow: var(--shadow-sm);
}
.airport-ico { font-size: 36px; flex-shrink: 0; }
.airport-body .airport-name     { font-size: 16px; font-weight: 800; color: var(--txt); }
.airport-body .airport-code     { font-size: 12px; color: var(--sky); font-weight: 700; margin-top: 2px; }
.airport-body .airport-terminal { font-size: 12px; color: var(--amber); font-weight: 600; margin-top: 2px; }
.airport-body .airport-notes    { font-size: 12px; color: var(--txt-2); line-height: 1.5; margin-top: 8px; }

/* ── LOADING STATE ──────────────────────────────────────────── */
.loading-screen {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  min-height: 60vh; gap: 16px;
}
.spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--bdr-2);
  border-top-color: var(--sky);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
.loading-screen p { font-size: 14px; color: var(--txt-2); }

/* ── PLACEHOLDER STATE ──────────────────────────────────────── */
.placeholder-screen {
  max-width: var(--max-w); margin: 0 auto;
  padding: 40px var(--gap); text-align: center;
}
.placeholder-emoji { font-size: 64px; margin-bottom: 16px; display: block; }
.placeholder-screen h3 { font-size: 22px; font-weight: 800; margin-bottom: 8px; color: var(--txt); }
.placeholder-screen p  { font-size: 14px; color: var(--txt-2); line-height: 1.6; margin-bottom: 16px; }
.coming-soon-card {
  background: #ffffff; border: 1px solid var(--bdr);
  border-radius: var(--r-md); padding: 20px; text-align: left;
  box-shadow: var(--shadow-sm);
}
.coming-soon-card .cs-label { font-size: 11px; color: var(--txt-3); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.coming-soon-card .cs-name  { font-size: 18px; font-weight: 800; margin-bottom: 4px; color: var(--txt); }
.coming-soon-card .cs-meta  { font-size: 13px; color: var(--txt-2); }

/* ── SECTION DIVIDER ────────────────────────────────────────── */
.section-divider {
  font-size: 12px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .07em;
  color: var(--txt-3);
  display: flex; align-items: center; gap: 10px;
  margin: 22px 0 12px;
}
.section-divider::after {
  content: ''; flex: 1;
  height: 1px; background: var(--bdr-2);
}

/* ── CAR RENTAL ─────────────────────────────────────────────── */
.car-rental-item {
  background: #ffffff; border: 1px solid var(--bdr);
  border-radius: var(--r-md); padding: 14px; margin-bottom: 8px;
  display: flex; gap: 12px; box-shadow: var(--shadow-sm);
}
.car-ico { font-size: 28px; flex-shrink: 0; }
.car-body .car-company  { font-size: 14px; font-weight: 800; color: var(--txt); }
.car-body .car-location { font-size: 12px; color: var(--txt-2); margin-top: 2px; }
.car-body .car-note     { font-size: 12px; color: var(--txt-3); margin-top: 6px; line-height: 1.5; }
.car-price {
  display: inline-block; margin-top: 6px;
  font-size: 12px; font-weight: 700;
  color: var(--green); background: var(--green-dim);
  border: 1px solid rgba(22,163,74,.2);
  padding: 3px 8px; border-radius: 999px;
}

/* ── SHOP CARDS ─────────────────────────────────────────────── */
.shop-card {
  background: #ffffff; border: 1px solid var(--bdr);
  border-radius: var(--r-md); padding: 14px 16px; margin-bottom: 8px;
  box-shadow: var(--shadow-sm);
}
.shop-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.shop-ico  { font-size: 24px; flex-shrink: 0; }
.shop-name { font-size: 14px; font-weight: 800; color: var(--txt); }
.shop-type { font-size: 11px; color: var(--txt-2); }
.shop-hours { font-size: 11px; color: var(--amber); font-weight: 600; margin-left: auto; white-space: nowrap; }
.shop-note  { font-size: 12px; color: var(--txt-2); line-height: 1.5; }

/* ── STAR RATING ────────────────────────────────────────────── */
.star-row { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.star-val { font-size: 22px; font-weight: 900; color: var(--amber); }
.stars { display: flex; gap: 2px; }
.stars .s { font-size: 14px; }

/* ── HIGHLIGHT PILLS ────────────────────────────────────────── */
.highlight-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.highlight-pill {
  font-size: 12px; padding: 4px 10px;
  background: var(--sky-light);
  border: 1px solid #bae6fd;
  border-radius: 999px; color: var(--sky-text); font-weight: 500;
}

/* ── EMPTY STATE ────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 40px var(--gap); color: var(--txt-3); }
.empty-state .ico { font-size: 36px; margin-bottom: 12px; display: block; }
.empty-state p { font-size: 14px; }

/* ── STATUS PILL ────────────────────────────────────────────── */
.status-pill {
  display: inline-block; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  padding: 3px 8px; border-radius: 999px;
}
.status-full        { background: var(--green-dim); color: var(--green); }
.status-placeholder { background: var(--bg-raised); color: var(--txt-3); }

/* ── FLOAT BACK ─────────────────────────────────────────────── */
.float-back {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; font-size: 13px; font-weight: 600;
  color: var(--sky); cursor: pointer;
}
.float-back:active { opacity: .7; }

/* ══════════════════════════════════════════════════════════════
   NEW FEATURE STYLES
══════════════════════════════════════════════════════════════ */

/* ── I JUST LANDED BUTTON ───────────────────────────────────── */
.just-landed-card {
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(135deg, #1e3a5f 0%, #0284c7 100%);
  border-radius: var(--r-md);
  padding: 16px 18px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(2,132,199,0.28);
  transition: transform .18s, box-shadow .18s;
  margin-bottom: 4px;
}
.just-landed-card:active { transform: scale(.98); box-shadow: 0 2px 8px rgba(2,132,199,0.2); }
.jl-left { display: flex; align-items: center; gap: 14px; }
.jl-ico  { font-size: 28px; line-height: 1; }
.jl-title { font-size: 16px; font-weight: 800; color: #ffffff; letter-spacing: -0.01em; }
.jl-sub   { font-size: 12px; color: rgba(255,255,255,0.72); margin-top: 2px; }
.jl-arrow { font-size: 22px; color: rgba(255,255,255,0.6); flex-shrink: 0; }

/* ── QUICK MODE TAB (⚡ Now) ─────────────────────────────────── */
.quick-header {
  background: linear-gradient(135deg, #0c4a6e 0%, #0284c7 100%);
  padding: 18px var(--gap) 14px;
  margin: -16px -16px 16px;
}
.quick-header-inner {
  display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
}
.quick-header-ico { font-size: 28px; line-height: 1; }
.quick-header-title { font-size: 16px; font-weight: 800; color: #fff; }
.quick-header-sub   { font-size: 12px; color: rgba(255,255,255,0.72); margin-top: 2px; }
.quick-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.qchip {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9);
  font-size: 11px; font-weight: 600;
  padding: 4px 10px; border-radius: 999px;
}

.quick-item {
  display: flex; align-items: flex-start; gap: 12px;
  background: #ffffff;
  border: 1px solid var(--bdr);
  border-radius: var(--r-md);
  padding: 14px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
}
.qi-ico  { font-size: 28px; flex-shrink: 0; line-height: 1; margin-top: 2px; }
.qi-body { flex: 1; min-width: 0; }
.qi-name { font-size: 15px; font-weight: 800; color: var(--txt); }
.qi-detail { font-size: 12px; color: var(--txt-2); margin-top: 2px; }
.qi-loc  { font-size: 11px; color: var(--txt-3); margin-top: 4px; }
.qi-tip  { font-size: 11px; color: var(--sky-text); margin-top: 5px; line-height: 1.4; background: var(--sky-dim); border-radius: var(--r-xs); padding: 5px 8px; }

.quick-taxi-bar {
  background: var(--bg-card2);
  border: 1px solid var(--bdr);
  border-radius: var(--r-sm);
  padding: 10px 14px;
  margin-bottom: 10px;
  display: flex; flex-direction: column; gap: 4px;
}
.qtb-label { font-size: 11px; color: var(--txt-3); }
.qtb-val   { font-size: 13px; font-weight: 700; color: var(--txt); }
.qtb-apps  { font-size: 12px; color: var(--sky-text); }
.qtb-warn  { font-size: 11px; color: var(--amber); margin-top: 4px; line-height: 1.4; }

/* ── CREW PICK BADGE ────────────────────────────────────────── */
.badge.crew-pick {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
  border: 1px solid #d97706;
  font-weight: 800;
}

/* ── AVOID / WATCH OUT SECTION ──────────────────────────────── */
.avoid-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.avoid-item {
  display: flex; align-items: flex-start; gap: 12px;
  background: #ffffff;
  border-radius: var(--r-sm);
  padding: 12px 14px;
  box-shadow: var(--shadow-sm);
}
.avoid-amber { border-left: 3px solid var(--amber); }
.avoid-red   { border-left: 3px solid var(--red); }
.avoid-ico   { font-size: 20px; flex-shrink: 0; line-height: 1; margin-top: 1px; }
.avoid-body  { flex: 1; min-width: 0; }
.avoid-title { font-size: 13px; font-weight: 700; color: var(--txt); line-height: 1.3; }
.avoid-note  { font-size: 12px; color: var(--txt-2); margin-top: 4px; line-height: 1.5; }

/* ── TAXI CARD (transport tab) ──────────────────────────────── */
.taxi-card {
  background: #ffffff;
  border: 1px solid var(--bdr);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.taxi-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--bdr);
  font-size: 13px;
}
.taxi-row:last-child { border-bottom: none; }
.taxi-label { color: var(--txt-2); flex-shrink: 0; }
.taxi-val   { font-weight: 700; color: var(--txt); text-align: right; }
.taxi-warn  {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 10px 16px;
  background: var(--amber-dim);
  border-top: 1px solid rgba(217,119,6,0.2);
  font-size: 12px; color: var(--amber); line-height: 1.5;
}

/* ── DELIVERY APP LINK BUTTON ───────────────────────────────── */
.delivery-item {
  display: flex; align-items: center; gap: 12px;
  background: #ffffff;
  border: 1px solid var(--bdr);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  margin-bottom: 8px;
  box-shadow: var(--shadow-sm);
}
.delivery-main { flex: 1; min-width: 0; }
.delivery-name { font-size: 14px; font-weight: 700; color: var(--txt); }
.delivery-cat  { font-size: 11px; color: var(--sky-text); font-weight: 600; margin-top: 2px; }
.delivery-note { font-size: 12px; color: var(--txt-2); margin-top: 3px; line-height: 1.4; }
.delivery-link {
  display: inline-flex; align-items: center;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--sky-dim);
  border: 1px solid rgba(2,132,199,0.22);
  color: var(--sky-text);
  font-size: 12px; font-weight: 700;
  text-decoration: none; white-space: nowrap; flex-shrink: 0;
  transition: background .15s;
}
.delivery-link:active { background: rgba(2,132,199,0.18); }

/* ── WEATHER ADVICE TAGS ────────────────────────────────────── */
.weather-season-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 2px; }
.w-advice {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 999px;
  white-space: nowrap;
}
.w-advice.hot  { background: #fee2e2; color: #991b1b; }
.w-advice.warm { background: #fef9c3; color: #854d0e; }
.w-advice.mild { background: #dcfce7; color: #166534; }
.w-advice.cool { background: #e0f2fe; color: #075985; }
.w-advice.cold { background: #eff6ff; color: #1e40af; }
.weather-season { font-size: 12px; font-weight: 700; text-transform: capitalize; color: var(--txt-2); }

/* ── HOTEL SEARCH BOX ───────────────────────────────────────── */
.hotel-search-row { margin-bottom: 12px; }
.hotel-search-box {
  display: flex; align-items: center; gap: 10px;
  background: #ffffff;
  border: 1.5px solid var(--bdr);
  border-radius: var(--r-lg);
  padding: 11px 16px;
  box-shadow: var(--shadow-sm);
  transition: border-color .2s, box-shadow .2s;
}
.hotel-search-box:focus-within {
  border-color: var(--sky);
  box-shadow: 0 0 0 3px var(--sky-dim);
}
.hotel-search-box input {
  flex: 1; font-size: 15px; background: transparent; color: var(--txt);
}
.hotel-search-box input::placeholder { color: var(--txt-3); }

/* ── PLAN IMPROVEMENTS ──────────────────────────────────────── */
.return-buffer-banner {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: var(--r-sm);
  padding: 10px 14px;
  font-size: 12px; color: #c2410c; line-height: 1.5;
  margin-bottom: 16px;
}
.plan-transport { font-size: 12px; color: var(--txt-3); margin-top: 4px; }
.plan-stats-row { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.plan-stat {
  font-size: 11px; font-weight: 600;
  background: var(--sky-dim); color: var(--sky-text);
  border-radius: 999px; padding: 3px 9px;
  border: 1px solid rgba(2,132,199,0.15);
}
.plan-step-return .plan-step-num { background: var(--amber-dim); color: var(--amber); border-color: rgba(217,119,6,0.25); }
.plan-step-return .plan-step-what { color: var(--amber); }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (min-width: 600px) {
  .regions-grid       { grid-template-columns: repeat(3, 1fr); }
  .weather-grid       { grid-template-columns: repeat(4, 1fr); }
  .practical-grid     { grid-template-columns: repeat(3, 1fr); }
  .currency-grid      { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 780px) {
  .featured-strip { padding: 4px calc((100vw - var(--max-w))/2 + var(--gap)) 16px; }
}

/* ══════════════════════════════════════════════════════════════
   MY WORLD — Stamp & Badge System
══════════════════════════════════════════════════════════════ */

/* My World card on home page */
.my-world-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #0f2744 0%, #162d50 100%);
  border: 1px solid rgba(56,189,248,0.2);
  border-radius: var(--r-md);
  padding: 14px 16px;
  margin-top: 10px;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 2px 12px rgba(56,189,248,0.08);
}
.my-world-card:active { transform: scale(0.98); }
.mw-left { display: flex; align-items: center; gap: 12px; }
.mw-ico { font-size: 28px; }
.mw-title { font-weight: 700; font-size: 15px; color: #e0f2fe; }
.mw-sub { font-size: 12px; color: #7dd3fc; margin-top: 2px; }
.mw-arrow { font-size: 20px; color: #38bdf8; font-weight: 700; }

/* Stats bar */
.mw-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 16px 0 12px;
  background: var(--bg-card);
  border-radius: var(--r-md);
  padding: 16px 8px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--bdr);
}
.mw-stat { text-align: center; }
.mw-stat-num { font-size: 24px; font-weight: 800; color: var(--sky); line-height: 1; }
.mw-stat-label { font-size: 11px; color: var(--txt-3); margin-top: 4px; font-weight: 500; }

/* World map canvas */
.mw-map-wrap {
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid rgba(56,189,248,0.15);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  margin-bottom: 14px;
  background: #0d1b2e;
}
.mw-canvas { display: block; width: 100%; height: auto; }

/* Progress */
.mw-progress-wrap {
  background: var(--bg-card);
  border-radius: var(--r-md);
  padding: 14px 16px;
  margin-bottom: 8px;
  border: 1px solid var(--bdr);
  box-shadow: var(--shadow-sm);
}
.mw-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--txt-2);
  margin-bottom: 8px;
  font-weight: 500;
}
.mw-progress-label strong { color: var(--sky); }
.mw-progress-bar {
  height: 8px;
  background: var(--bg-raised);
  border-radius: 99px;
  overflow: hidden;
}
.mw-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--sky), #38bdf8);
  border-radius: 99px;
  transition: width 0.6s ease;
}
.mw-progress-sub {
  font-size: 11px;
  color: var(--txt-3);
  margin-top: 6px;
  text-align: center;
}

/* Badges grid */
.mw-badges-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 8px;
}
.mw-badge-card {
  background: var(--bg-card);
  border: 1px solid var(--bdr);
  border-radius: var(--r-md);
  padding: 14px 8px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .15s;
}
.mw-badge-card:active { transform: scale(0.96); }
.mw-badge-card.locked {
  opacity: 0.45;
  filter: grayscale(0.5);
}
.mw-badge-icon { font-size: 28px; margin-bottom: 6px; }
.mw-badge-name { font-size: 11px; font-weight: 700; color: var(--txt); margin-bottom: 3px; }
.mw-badge-desc { font-size: 10px; color: var(--txt-3); line-height: 1.3; }

/* Recently visited */
.mw-recent-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.mw-recent-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  border: 1px solid var(--bdr);
  cursor: pointer;
  transition: background .15s;
}
.mw-recent-item:active { background: var(--bg-raised); }
.mw-recent-flag { font-size: 22px; }
.mw-recent-info { flex: 1; min-width: 0; }
.mw-recent-name { font-weight: 600; font-size: 14px; color: var(--txt); }
.mw-recent-meta { font-size: 12px; color: var(--txt-3); margin-top: 2px; }
.mw-recent-date { font-size: 11px; color: var(--txt-3); white-space: nowrap; }

/* I Was Here button */
.was-here-wrap {
  padding: 12px 0 16px;
  display: flex;
  justify-content: center;
}
.was-here-btn {
  background: linear-gradient(135deg, var(--sky) 0%, #0ea5e9 100%);
  color: white;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: var(--r-lg);
  padding: 14px 32px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(2,132,199,0.35);
  transition: transform .15s, box-shadow .15s;
  letter-spacing: 0.02em;
  width: 100%;
  max-width: 340px;
}
.was-here-btn:active { transform: scale(0.97); box-shadow: 0 2px 8px rgba(2,132,199,0.25); }
.was-here-btn.was-here-stamped {
  background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
  box-shadow: 0 4px 16px rgba(22,163,74,0.35);
}

/* Stamp toast */
.stamp-toast {
  position: fixed;
  bottom: calc(var(--bnav-h) + env(safe-area-inset-bottom) + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(0);
  background: #0f2744;
  border: 1px solid rgba(56,189,248,0.3);
  border-radius: var(--r-md);
  padding: 14px 18px;
  min-width: 280px;
  max-width: 340px;
  z-index: 9999;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  pointer-events: none;
}
.stamp-toast-in {
  animation: toast-slide-up 0.35s cubic-bezier(0.34,1.56,0.64,1) both;
}
.stamp-toast-out {
  animation: toast-fade-out 0.3s ease forwards;
}
@keyframes toast-slide-up {
  from { transform: translateX(-50%) translateY(60px); opacity: 0; }
  to   { transform: translateX(-50%) translateY(0);    opacity: 1; }
}
@keyframes toast-fade-out {
  to { transform: translateX(-50%) translateY(20px); opacity: 0; }
}
.stamp-toast-inner { display: flex; align-items: center; gap: 12px; }
.stamp-check {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 900; color: white; flex-shrink: 0;
}
.stamp-city { font-weight: 700; font-size: 15px; color: #e0f2fe; }
.stamp-sub { font-size: 12px; color: #7dd3fc; margin-top: 2px; }
.stamp-badges-row { margin-top: 10px; border-top: 1px solid rgba(56,189,248,0.15); padding-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.stamp-new-badge { font-size: 13px; color: #fbbf24; }
.stamp-new-badge strong { color: #fde68a; }

/* ── LOCATION DETECTION BANNER ───────────────────────────────── */
.location-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(135deg, #052e16 0%, #063d1f 100%);
  border-bottom: 2px solid rgba(34,197,94,0.4);
  padding: 13px 16px;
  cursor: pointer;
  position: sticky;
  top: 0;
  z-index: 200;
  animation: loc-slide-down 0.4s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes loc-slide-down {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}
.loc-left { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.loc-pin { font-size: 22px; flex-shrink: 0; }
.loc-city { font-weight: 700; font-size: 14px; color: #bbf7d0; line-height: 1.2; }
.loc-city strong { color: #4ade80; }
.loc-meta { font-size: 11px; color: #86efac; margin-top: 3px; line-height: 1.3; }
.loc-close {
  background: none;
  border: none;
  color: rgba(134,239,172,0.6);
  font-size: 17px;
  cursor: pointer;
  padding: 6px 8px;
  flex-shrink: 0;
  line-height: 1;
  border-radius: 50%;
  transition: background .15s;
}
.loc-close:active { background: rgba(34,197,94,0.15); }

/* ══════════════════════════════════════════════════════════════
   CREW CONNECT — Social Feature
══════════════════════════════════════════════════════════════ */

/* Setup screen */
.crew-setup-screen {
  text-align: center; padding: 40px 24px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.crew-setup-ico  { font-size: 52px; }
.crew-setup-title{ font-size: 22px; font-weight: 800; color: var(--txt); }
.crew-setup-sub  { font-size: 14px; color: var(--txt-2); line-height: 1.6; max-width: 300px; }
.crew-setup-btn  {
  background: linear-gradient(135deg, var(--sky), #0ea5e9);
  color: #fff; font-size: 15px; font-weight: 700;
  border: none; border-radius: var(--r-lg);
  padding: 14px 28px; cursor: pointer; width: 100%; max-width: 300px;
  box-shadow: 0 4px 16px rgba(2,132,199,.35);
  transition: transform .15s;
}
.crew-setup-btn:active { transform: scale(0.97); }
.crew-setup-note { font-size: 11px; color: var(--txt-3); }
.crew-offline { text-align: center; padding: 40px 24px; }

/* Crew tab wrapper */
.crew-tab { padding-bottom: 24px; }

/* Loading */
.crew-loading { text-align:center; color:var(--txt-3); padding:24px; font-size:14px; }
.crew-spin { display:inline-block; animation:spin .8s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }

/* Who's here cards */
.crew-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-card); border: 1px solid var(--bdr);
  border-radius: var(--r-md); padding: 12px 14px; margin-bottom: 8px;
  box-shadow: var(--shadow-sm);
}
.crew-card-me { border-color: var(--sky); background: var(--sky-dim); }
.crew-card-avi {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--sky), #0ea5e9);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0; color: #fff;
}
.crew-card-info  { flex: 1; min-width: 0; }
.crew-card-name  { font-weight: 700; font-size: 14px; color: var(--txt); }
.crew-card-meta  { font-size: 12px; color: var(--txt-2); margin-top: 2px; }
.crew-card-time  { font-size: 11px; color: var(--txt-3); margin-top: 3px; }
.crew-you-tag {
  font-size: 10px; font-weight: 800; color: var(--sky);
  background: var(--sky-dim); border-radius: 4px; padding: 1px 5px;
  margin-right: 4px; text-transform: uppercase;
}
.crew-co-btn {
  font-size: 11px; color: var(--red); background: var(--red-dim);
  border: 1px solid rgba(220,38,38,.2); border-radius: 999px;
  padding: 5px 10px; cursor: pointer; white-space: nowrap; flex-shrink: 0;
}
.crew-nobody { text-align:center; color:var(--txt-3); padding:16px; font-size:13px; }

/* Check-in bar */
.crew-checked-bar {
  background: var(--green-dim); border: 1px solid rgba(22,163,74,.25);
  border-radius: var(--r-md); padding: 12px 16px;
  font-size: 13px; font-weight: 600; color: var(--green);
  text-align: center; margin-bottom: 8px;
}
.crew-ci-prompt {
  background: var(--bg-card); border: 1.5px dashed var(--sky);
  border-radius: var(--r-md); padding: 16px; margin-bottom: 8px;
  text-align: center;
}
.crew-ci-title { font-weight: 700; font-size: 14px; color: var(--txt); margin-bottom: 4px; }
.crew-ci-sub   { font-size: 12px; color: var(--txt-2); margin-bottom: 12px; }
.crew-ci-btns  { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.crew-ci-btn {
  font-size: 12px; font-weight: 700; color: var(--sky);
  background: var(--sky-dim); border: 1px solid rgba(2,132,199,.25);
  border-radius: 999px; padding: 6px 12px; cursor: pointer;
  transition: background .15s;
}
.crew-ci-btn:active { background: var(--sky); color: #fff; }

/* Chat feed */
.crew-chat-note { font-size: 10px; font-weight: 400; color: var(--txt-3); }
.crew-chat-feed {
  min-height: 180px; max-height: 360px; overflow-y: auto;
  background: var(--bg-card2); border: 1px solid var(--bdr);
  border-radius: var(--r-md); padding: 12px; margin-bottom: 8px;
  display: flex; flex-direction: column; gap: 8px;
  scroll-behavior: smooth;
}
.crew-chat-empty { text-align:center; color:var(--txt-3); font-size:13px; padding:24px 0; }

/* Messages */
.cmsg {
  display: flex; flex-direction: column; gap: 3px;
  max-width: 88%;
}
.cmsg-me { align-self: flex-end; }
.cmsg-header {
  display: flex; align-items: center; gap: 6px;
}
.cmsg-me .cmsg-header { flex-direction: row-reverse; }
.cmsg-nick { font-size: 11px; font-weight: 700; color: var(--sky); }
.cmsg-time { font-size: 10px; color: var(--txt-3); }
.cmsg-del, .cmsg-rep {
  font-size: 10px; background: none; border: none;
  cursor: pointer; color: var(--txt-3); padding: 0 2px;
  margin-left: auto;
}
.cmsg-me .cmsg-del { margin-left: 0; margin-right: auto; }
.cmsg-del:active { color: var(--red); }
.cmsg-rep:active { color: var(--amber); }
.cmsg-text {
  font-size: 14px; color: var(--txt); line-height: 1.4;
  background: var(--bg-card); border: 1px solid var(--bdr);
  border-radius: var(--r-sm); padding: 8px 12px;
  word-break: break-word;
}
.cmsg-me .cmsg-text {
  background: var(--sky); color: #fff; border-color: var(--sky);
}
.cmsg-meetup .cmsg-text {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-color: #f59e0b; color: #92400e; font-weight: 600;
}

/* Message type badge */
.cmsg-type-badge {
  display: inline-block; font-size: 10px; font-weight: 700;
  border-radius: 999px; padding: 2px 8px; margin-bottom: 3px;
  width: fit-content;
}
.cmsg-badge-meet {
  background: #fef3c7; color: #92400e; border: 1px solid rgba(245,158,11,.4);
}
.cmsg-me .cmsg-type-badge { align-self: flex-end; }

/* Input row */
.crew-input-wrap {
  display: flex; gap: 8px; margin-bottom: 8px;
}
.crew-msg-input {
  flex: 1; background: var(--bg-card); border: 1.5px solid var(--bdr);
  border-radius: var(--r-sm); padding: 10px 14px;
  font-size: 14px; color: var(--txt); outline: none;
}
.crew-msg-input:focus { border-color: var(--sky); }
.crew-send-btn {
  background: var(--sky); color: #fff; font-weight: 700;
  border: none; border-radius: var(--r-sm); padding: 10px 18px;
  cursor: pointer; font-size: 14px; flex-shrink: 0;
  transition: opacity .15s;
}
.crew-send-btn:active { opacity: .8; }

/* Meetup button */
.crew-meetup-btn {
  width: 100%; padding: 11px; margin-bottom: 8px;
  background: #fef3c7; border: 1.5px solid #f59e0b;
  border-radius: var(--r-sm); font-size: 13px; font-weight: 700;
  color: #92400e; cursor: pointer; transition: background .15s;
}
.crew-meetup-btn:active { background: #fde68a; }
.crew-meet-row { display: flex; gap: 8px; margin-bottom: 8px; }

/* Footer */
.crew-tab-footer {
  font-size: 11px; color: var(--txt-3); text-align: center;
  padding: 8px 0 4px;
}
.crew-change-nick {
  background: none; border: none; color: var(--sky);
  font-size: 11px; cursor: pointer; text-decoration: underline; padding: 0;
}

/* Setup Modal */
.crew-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55);
  display: flex; align-items: flex-end; justify-content: center;
  z-index: 9998; padding: 0;
  animation: modal-bg-in .2s ease;
}
@keyframes modal-bg-in { from{opacity:0} to{opacity:1} }
.crew-modal {
  background: var(--bg-card); border-radius: var(--r-lg) var(--r-lg) 0 0;
  padding: 24px 20px calc(24px + env(safe-area-inset-bottom));
  width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto;
  display: flex; flex-direction: column; gap: 10px;
  animation: modal-slide-up .3s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes modal-slide-up {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
.crew-modal-title { font-size: 20px; font-weight: 800; color: var(--txt); }
.crew-modal-sub   { font-size: 13px; color: var(--txt-2); line-height: 1.5; }
.crew-modal-label { font-size: 11px; font-weight: 700; color: var(--txt-2); text-transform: uppercase; letter-spacing:.05em; margin-top: 4px; }
.crew-modal-input {
  width: 100%; background: var(--bg-card2); border: 1.5px solid var(--bdr);
  border-radius: var(--r-sm); padding: 12px 14px;
  font-size: 15px; color: var(--txt); outline: none;
}
.crew-modal-input:focus { border-color: var(--sky); }
.crew-modal-select {
  width: 100%; background: var(--bg-card2); border: 1.5px solid var(--bdr);
  border-radius: var(--r-sm); padding: 12px 14px;
  font-size: 15px; color: var(--txt);
}
.crew-modal-save {
  background: linear-gradient(135deg, var(--sky), #0ea5e9);
  color: #fff; font-size: 16px; font-weight: 700;
  border: none; border-radius: var(--r-lg); padding: 14px;
  cursor: pointer; margin-top: 6px;
  box-shadow: 0 4px 16px rgba(2,132,199,.35);
}
.crew-modal-cancel {
  background: none; border: none; color: var(--txt-3);
  font-size: 14px; cursor: pointer; padding: 8px; text-align: center;
}

/* ── INSTALL BANNER ──────────────────────────────────────────── */
.install-banner {
  position: fixed;
  bottom: calc(var(--bnav-h) + env(safe-area-inset-bottom) + 10px);
  left: 12px; right: 12px;
  background: #0f172a;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-lg);
  padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35), 0 2px 8px rgba(0,0,0,0.2);
  z-index: 9000;
  transform: translateY(20px);
  opacity: 0;
  transition: transform .35s cubic-bezier(0.34,1.56,0.64,1), opacity .3s ease;
}
.install-banner.ib-visible {
  transform: translateY(0);
  opacity: 1;
}
.ib-left {
  display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0;
}
.ib-ico { font-size: 28px; flex-shrink: 0; }
.ib-title {
  font-size: 14px; font-weight: 800;
  color: #ffffff; letter-spacing: -0.01em;
  margin-bottom: 2px;
}
.ib-sub {
  font-size: 11px; color: rgba(255,255,255,0.6); line-height: 1.4;
}
.ib-sub strong { color: rgba(255,255,255,0.9); }
.ib-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.ib-install {
  background: var(--sky); color: #fff;
  font-size: 13px; font-weight: 700;
  border: none; border-radius: 999px;
  padding: 8px 16px; cursor: pointer;
  white-space: nowrap;
}
.ib-close {
  width: 30px; height: 30px;
  background: rgba(255,255,255,0.1);
  border: none; border-radius: 50%;
  color: rgba(255,255,255,0.6);
  font-size: 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ib-close:active { background: rgba(255,255,255,0.2); }

/* ── CREW FLOATING ACTION BUTTON ────────────────────────────── */
.crew-fab {
  position: fixed;
  bottom: calc(var(--bnav-h) + env(safe-area-inset-bottom) + 14px);
  right: 16px;
  z-index: 95;
  display: flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, #15803d, #16a34a);
  color: #fff;
  font-size: 13px; font-weight: 800;
  letter-spacing: -0.01em;
  border: none;
  border-radius: 999px;
  padding: 12px 18px 12px 14px;
  box-shadow: 0 6px 24px rgba(22,163,74,0.45), 0 2px 8px rgba(0,0,0,0.15);
  cursor: pointer;
  animation: fab-pop .45s cubic-bezier(0.34,1.56,0.64,1) both;
  transition: transform .15s, box-shadow .15s;
}
.crew-fab:active {
  transform: scale(.95);
  box-shadow: 0 3px 12px rgba(22,163,74,0.35);
}
@keyframes fab-pop {
  from { transform: scale(0.4) translateY(20px); opacity: 0; }
  to   { transform: scale(1)   translateY(0);    opacity: 1; }
}
.crew-fab-dot {
  width: 9px; height: 9px; flex-shrink: 0;
  background: #bbf7d0;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(187,247,208,0.6);
  animation: fab-dot-pulse 1.8s ease-in-out infinite;
}
@keyframes fab-dot-pulse {
  0%   { box-shadow: 0 0 0 0   rgba(187,247,208,0.7); }
  60%  { box-shadow: 0 0 0 6px rgba(187,247,208,0);   }
  100% { box-shadow: 0 0 0 0   rgba(187,247,208,0);   }
}

/* ── LOCATION GATE ───────────────────────────────────────────── */
.crew-location-gate {
  text-align: center;
  padding: 36px 24px 28px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.clg-ico  { font-size: 48px; }
.clg-title {
  font-size: 20px; font-weight: 900;
  color: var(--txt); letter-spacing: -0.02em;
}
.clg-sub {
  font-size: 14px; color: var(--txt-2); line-height: 1.6;
  max-width: 300px;
}
.clg-alt-btn {
  background: linear-gradient(135deg, var(--sky), #0ea5e9);
  color: #fff; font-size: 15px; font-weight: 700;
  border: none; border-radius: var(--r-lg);
  padding: 14px 24px; cursor: pointer; width: 100%; max-width: 320px;
  box-shadow: 0 4px 16px rgba(2,132,199,.35);
}
.clg-override-btn {
  background: none;
  border: 1.5px solid var(--bdr-2);
  color: var(--txt-2); font-size: 13px; font-weight: 600;
  border-radius: var(--r-lg); padding: 11px 20px;
  cursor: pointer; width: 100%; max-width: 320px;
}
.clg-note {
  font-size: 11px; color: var(--txt-3);
}

/* ── HERO CREW BADGE ─────────────────────────────────────────── */
.hero-crew-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(34,197,94,0.2);
  border: 1.5px solid rgba(34,197,94,0.45);
  border-radius: 999px; padding: 4px 12px;
  font-size: 12px; font-weight: 700; color: #fff;
  backdrop-filter: blur(8px);
  margin-top: 8px;
  animation: fadeUp .4s ease both;
}
.hero-crew-dot {
  width: 7px; height: 7px;
  background: #4ade80; border-radius: 50%;
  animation: crew-nav-pulse 2s infinite;
  flex-shrink: 0;
}

/* ── CREW ONLINE BAR ─────────────────────────────────────────── */
.crew-online-bar {
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(135deg, rgba(2,132,199,.06), rgba(14,165,233,.08));
  border: 1px solid rgba(2,132,199,.18);
  border-radius: var(--r-md); padding: 12px 16px;
  margin-bottom: 12px;
}
.crew-online-bar.has-crew {
  background: linear-gradient(135deg, rgba(34,197,94,.07), rgba(74,222,128,.09));
  border-color: rgba(34,197,94,.25);
}
.crew-online-left {
  display: flex; align-items: center; gap: 8px;
}
.crew-live-pulse {
  width: 10px; height: 10px; flex-shrink: 0;
  background: #94a3b8; border-radius: 50%;
  display: inline-block;
  animation: crew-nav-pulse 2s infinite;
}
.crew-online-bar.has-crew .crew-live-pulse {
  background: #22c55e;
}
.crew-online-num {
  font-size: 14px; font-weight: 700; color: var(--txt-2);
}
.crew-online-bar.has-crew .crew-online-num {
  color: #15803d;
}
.crew-online-city {
  font-size: 12px; color: var(--txt-3); font-weight: 500;
}

/* ── CREW CHAT HEADER ────────────────────────────────────────── */
.crew-chat-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0 6px;
  border-bottom: 1px solid var(--bdr);
  margin-bottom: 8px;
}
.crew-chat-header-title {
  font-size: 13px; font-weight: 800; color: var(--txt);
}
.crew-chat-header-note {
  font-size: 10px; color: var(--txt-3);
}

/* ── SUGGESTION CHIPS ────────────────────────────────────────── */
.crew-suggest-chips {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin-bottom: 8px;
  padding: 4px 0;
}
.crew-chip {
  font-size: 11px; font-weight: 600;
  background: var(--bg-raised); color: var(--txt-2);
  border: 1px solid var(--bdr-2);
  border-radius: 999px; padding: 5px 11px;
  cursor: pointer; white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}
.crew-chip:active,
.crew-chip:hover { background: var(--sky-dim); color: var(--sky); border-color: rgba(2,132,199,.3); }
.crew-chip-meet {
  background: #fef3c7; color: #92400e; border-color: rgba(245,158,11,.35);
}
.crew-chip-meet:hover { background: #fde68a; color: #78350f; border-color: #f59e0b; }

/* ── CREW ACTION ROW ─────────────────────────────────────────── */
.crew-action-row { margin-bottom: 6px; }

/* ── CREW HUB PAGE ───────────────────────────────────────────── */
.crew-hub-header {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 60%, #075985 100%);
  padding: 32px 20px 28px;
  text-align: center; color: #fff;
  position: relative; overflow: hidden;
}
.crew-hub-header::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 60% 40%, rgba(255,255,255,.12) 0%, transparent 60%);
}
.crew-hub-live-ring {
  position: relative; display: inline-block;
  font-size: 42px; line-height: 1;
  margin-bottom: 10px;
}
.crew-hub-pulse {
  position: absolute; inset: -6px;
  border: 2px solid rgba(255,255,255,.35);
  border-radius: 50%;
  animation: hub-ring-pulse 2s ease-in-out infinite;
}
@keyframes hub-ring-pulse {
  0%, 100% { transform: scale(1); opacity: .5; }
  50% { transform: scale(1.18); opacity: 1; }
}
.crew-hub-title {
  font-size: 24px; font-weight: 900;
  letter-spacing: -.02em; position: relative;
}
.crew-hub-sub {
  font-size: 13px; opacity: .85; margin-top: 4px;
  position: relative;
}

/* How-it-works hint bar */
.crew-hub-how {
  background: var(--sky-dim);
  border: 1px solid rgba(2,132,199,.2);
  border-radius: var(--r-md);
  padding: 12px 16px;
  font-size: 13px; color: var(--sky-text); line-height: 1.5;
  margin-bottom: 12px;
  text-align: center;
}

/* Crew hub profile / setup cards */
.crew-hub-profile-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-card); border: 1.5px solid var(--sky);
  border-radius: var(--r-md); padding: 14px 16px;
  margin-bottom: 4px; box-shadow: var(--shadow-sm);
}
.crew-hub-profile-avi {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--sky), #0ea5e9);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #fff; flex-shrink: 0;
}
.crew-hub-profile-info { flex: 1; min-width: 0; }
.crew-hub-profile-name { font-size: 15px; font-weight: 800; color: var(--txt); }
.crew-hub-profile-meta { font-size: 12px; color: var(--txt-2); margin-top: 2px; }
.crew-hub-edit-btn {
  font-size: 12px; font-weight: 700; color: var(--sky);
  background: var(--sky-dim); border: 1px solid rgba(2,132,199,.25);
  border-radius: 999px; padding: 6px 14px; cursor: pointer; flex-shrink: 0;
}

.crew-hub-setup-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--sky-light); border: 1.5px dashed var(--sky);
  border-radius: var(--r-md); padding: 16px;
  margin-bottom: 4px;
}
.crew-hub-setup-ico { font-size: 32px; flex-shrink: 0; }
.crew-hub-setup-txt { flex: 1; min-width: 0; }
.crew-hub-setup-h { font-size: 14px; font-weight: 800; color: var(--sky-dark); }
.crew-hub-setup-p { font-size: 12px; color: var(--sky-text); margin-top: 2px; line-height: 1.4; }
.crew-hub-setup-btn {
  font-size: 13px; font-weight: 700; color: #fff;
  background: var(--sky); border: none;
  border-radius: var(--r-sm); padding: 10px 14px;
  cursor: pointer; flex-shrink: 0; white-space: nowrap;
}

/* City list rows in crew hub */
.crew-hub-city-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 4px; }
.crew-hub-city-card {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg-card); border: 1px solid var(--bdr);
  border-radius: var(--r-md); padding: 12px 14px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s;
}
.crew-hub-city-card:hover { box-shadow: var(--shadow-md); }
.crew-hub-city-left { display: flex; align-items: center; gap: 10px; }
.crew-hub-city-flag { font-size: 22px; }
.crew-hub-city-name { font-size: 14px; font-weight: 700; color: var(--txt); }
.crew-hub-city-country { font-size: 12px; color: var(--txt-2); }
.crew-hub-city-btn {
  font-size: 12px; font-weight: 700; color: var(--sky);
  background: var(--sky-dim); border: 1px solid rgba(2,132,199,.25);
  border-radius: 999px; padding: 7px 14px; cursor: pointer; flex-shrink: 0;
  transition: background .15s, color .15s;
}
.crew-hub-city-btn:active { background: var(--sky); color: #fff; }

/* Browse grid in crew hub */
.crew-hub-browse-grid {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 4px;
}
.crew-hub-browse-item {
  font-size: 13px; font-weight: 600; color: var(--txt-2);
  background: var(--bg-card); border: 1px solid var(--bdr);
  border-radius: 999px; padding: 7px 14px;
  cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.crew-hub-browse-item:hover,
.crew-hub-browse-item:active {
  background: var(--sky-dim); color: var(--sky); border-color: rgba(2,132,199,.3);
}

/* ── Avatar helpers ──────────────────────────────────────────── */
.crew-avatar-img {
  border-radius: 50%; object-fit: cover; flex-shrink: 0;
}
.crew-avatar-circle {
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; flex-shrink: 0; font-size: 16px;
  color: #fff; font-weight: 700;
}
.crew-card-avi { display:flex; align-items:center; }
.crew-dm-card-btn {
  background: var(--sky-dim); color: var(--sky); border: none;
  border-radius: 50%; width: 34px; height: 34px; font-size: 15px;
  cursor: pointer; flex-shrink: 0; display: flex; align-items: center;
  justify-content: center; margin-left: auto;
}

/* ── Chat message avatar ─────────────────────────────────────── */
.cmsg { display: flex; gap: 8px; align-items: flex-start; }
.cmsg-avi { flex-shrink: 0; padding-top: 2px; }
.cmsg-body { flex: 1; min-width: 0; }
.cmsg-nick { cursor: default; }

/* ── Page header (shared) ────────────────────────────────────── */
.page-hdr {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 16px 10px; border-bottom: 1px solid var(--bdr);
  position: sticky; top: 0; background: var(--bg); z-index: 10;
}
.page-back-btn {
  background: none; border: none; color: var(--txt-1); font-size: 20px;
  cursor: pointer; padding: 4px 8px 4px 0; flex-shrink: 0;
}
.page-hdr-title { flex: 1; font-size: 17px; font-weight: 800; color: var(--txt-1); }
.page-hdr-action {
  background: none; border: none; color: var(--sky); font-size: 14px;
  font-weight: 700; cursor: pointer; padding: 4px 0;
}

/* ── Profile page ────────────────────────────────────────────── */
.profile-top {
  display: flex; flex-direction: column; align-items: center;
  padding: 28px 16px 20px; text-align: center;
}
.profile-photo-lg {
  width: 96px; height: 96px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--bdr);
}
.profile-photo-lg.profile-emoji-lg {
  display: flex; align-items: center; justify-content: center;
  font-size: 44px; border: none;
}
.profile-name { font-size: 22px; font-weight: 800; color: var(--txt-1); margin-top: 14px; }
.profile-role-pill {
  background: var(--sky-dim); color: var(--sky); font-size: 12px;
  font-weight: 700; padding: 3px 10px; border-radius: 999px; margin-top: 6px;
}
.profile-airline-line { font-size: 14px; color: var(--txt-2); margin-top: 6px; }
.profile-base {
  background: var(--bg-card); border: 1px solid var(--bdr);
  border-radius: 4px; padding: 1px 5px; font-size: 11px;
  font-weight: 700; color: var(--txt-1); margin-left: 4px;
}
.profile-bio {
  font-size: 14px; color: var(--txt-2); margin-top: 10px;
  max-width: 280px; line-height: 1.5;
}
.profile-dm-btn, .profile-edit-full-btn {
  display: block; width: calc(100% - 32px); margin: 16px auto 0;
  padding: 14px; border-radius: var(--r-lg); border: none;
  font-size: 15px; font-weight: 700; cursor: pointer;
}
.profile-dm-btn { background: var(--sky); color: #fff; }
.profile-edit-full-btn { background: var(--bg-card); color: var(--txt-1); border: 1px solid var(--bdr); }
.profile-loading, .profile-empty { padding: 60px 20px; text-align: center; color: var(--txt-3); font-size: 14px; }
.profile-private { padding: 80px 20px; text-align: center; color: var(--txt-2); }

/* ── Profile modal — avatar grid ─────────────────────────────── */
.cm-avatar-row {
  display: flex; gap: 8px; justify-content: center;
  flex-wrap: wrap; margin: 12px 0 16px;
}
.cm-avi-opt {
  width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--bdr);
  background: var(--bg-card); font-size: 22px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .15s, transform .1s;
}
.cm-avi-opt.cm-avi-sel { border-color: var(--sky); transform: scale(1.15); }

/* ── Profile modal — photo upload ────────────────────────────── */
.cm-photo-wrap {
  display: flex; flex-direction: column; align-items: center;
  gap: 6px; margin-bottom: 12px;
}
.cm-photo-preview {
  width: 80px; height: 80px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--bdr);
}
.cm-photo-placeholder {
  width: 80px; height: 80px; border-radius: 50%; border: 2px solid var(--bdr);
  background: var(--bg-card); display: flex; align-items: center;
  justify-content: center; font-size: 36px;
}
.cm-photo-change {
  background: var(--bg-card); border: 1px solid var(--bdr);
  border-radius: 999px; padding: 4px 12px; font-size: 13px;
  cursor: pointer; color: var(--txt-2);
}

/* ── Profile modal — bio + privacy ──────────────────────────── */
.cm-bio { height: 60px; resize: none; }
.cm-privacy-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--txt-2); margin: 12px 0 4px;
}
.cm-toggle { position: relative; display: inline-block; flex-shrink: 0; }
.cm-toggle input { opacity: 0; width: 0; height: 0; }
.cm-toggle-track {
  display: block; width: 42px; height: 24px; background: var(--bdr);
  border-radius: 999px; cursor: pointer; transition: background .2s;
  position: relative;
}
.cm-toggle input:checked + .cm-toggle-track { background: var(--sky); }
.cm-toggle-thumb {
  position: absolute; top: 3px; left: 3px; width: 18px; height: 18px;
  background: #fff; border-radius: 50%; transition: transform .2s;
}
.cm-toggle input:checked + .cm-toggle-track .cm-toggle-thumb { transform: translateX(18px); }
.cm-privacy-val { font-size: 13px; font-weight: 700; color: var(--txt-1); }

/* ── Profile modal — Google sign-in ─────────────────────────── */
.cm-google-sep { text-align: center; font-size: 12px; color: var(--txt-3); margin: 16px 0 8px; }
.cm-google-btn {
  width: 100%; padding: 12px; border-radius: var(--r-lg);
  border: 1px solid var(--bdr); background: var(--bg-card);
  color: var(--txt-1); font-size: 14px; font-weight: 700;
  cursor: pointer; display: flex; align-items: center;
  justify-content: center; gap: 8px;
}
.cm-google-note { font-size: 12px; color: var(--txt-3); text-align: center; margin-top: 6px; }

/* ── DM inbox ────────────────────────────────────────────────── */
.dm-inbox-list { padding: 8px 0; }
.dm-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; cursor: pointer; transition: background .12s;
}
.dm-item:active { background: var(--bg-card); }
.dm-avi {
  width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
  object-fit: cover; display: flex; align-items: center;
  justify-content: center; font-size: 20px; font-weight: 700;
  color: #fff;
}
.dm-item-body { flex: 1; min-width: 0; }
.dm-item-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 2px; }
.dm-item-name { font-size: 15px; font-weight: 700; color: var(--txt-1); }
.dm-item-time { font-size: 12px; color: var(--txt-3); }
.dm-item-preview { font-size: 13px; color: var(--txt-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-empty { padding: 60px 20px; text-align: center; color: var(--txt-3); font-size: 14px; line-height: 1.6; }

/* ── DM chat ─────────────────────────────────────────────────── */
.dm-chat-page { display: flex; flex-direction: column; height: 100dvh; height: 100vh; }
.dm-chat-hdr {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px;
  border-bottom: 1px solid var(--bdr); background: var(--bg);
  flex-shrink: 0;
}
.dm-chat-hdr-info { flex: 1; min-width: 0; }
.dm-chat-hdr-name { font-size: 16px; font-weight: 800; color: var(--txt-1); }
.dm-chat-hdr-role { font-size: 12px; color: var(--txt-3); }
.dm-chat-hdr-profile {
  background: none; border: none; font-size: 18px; cursor: pointer; padding: 4px;
}
.dm-feed {
  flex: 1; overflow-y: auto; padding: 16px 12px;
  display: flex; flex-direction: column; gap: 8px;
}
.dm-input-bar {
  display: flex; gap: 8px; padding: 10px 12px;
  border-top: 1px solid var(--bdr); background: var(--bg);
  padding-bottom: max(10px, env(safe-area-inset-bottom));
}
.dm-input {
  flex: 1; padding: 10px 14px; border-radius: 999px;
  border: 1px solid var(--bdr); background: var(--bg-card);
  color: var(--txt-1); font-size: 15px; outline: none;
}
.dm-send-btn {
  width: 40px; height: 40px; border-radius: 50%; background: var(--sky);
  color: #fff; border: none; font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.dmmsg { display: flex; flex-direction: column; max-width: 75%; }
.dmmsg-me { align-self: flex-end; align-items: flex-end; }
.dmmsg-them { align-self: flex-start; align-items: flex-start; }
.dmmsg-bubble {
  padding: 10px 14px; border-radius: 18px; font-size: 15px;
  line-height: 1.4; word-break: break-word;
}
.dmmsg-me .dmmsg-bubble { background: var(--sky); color: #fff; border-bottom-right-radius: 4px; }
.dmmsg-them .dmmsg-bubble { background: var(--bg-card); color: var(--txt-1); border-bottom-left-radius: 4px; }
.dmmsg-time { font-size: 11px; color: var(--txt-3); margin-top: 3px; padding: 0 4px; }
.dmmsg-me .dmmsg-bubble { background: linear-gradient(135deg, #0ea5e9, #0284c7); }

/* ═══════════════════════════════════════════════════════════════
   2026 REDESIGN — Modern chat, crew cards, DM inbox
═══════════════════════════════════════════════════════════════ */

/* ── Empty state ─────────────────────────────────────────────── */
.chat-empty-v2 {
  text-align: center; color: var(--txt-3); font-size: 14px;
  padding: 48px 16px; line-height: 1.6;
}

/* ── Modern chat feed container ──────────────────────────────── */
.crew-chat-feed2 {
  min-height: 240px; max-height: 420px; overflow-y: auto;
  border: 1px solid var(--bdr);
  border-radius: 20px; padding: 14px 10px;
  margin-bottom: 10px;
  display: flex; flex-direction: column; gap: 2px;
  scroll-behavior: smooth;
  background: rgba(7,21,36,0.4);
}

/* ── Modern chat header ──────────────────────────────────────── */
.crew-chat-header2 {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px; padding: 0 2px;
}
.crew-chat-h2-left { display: flex; align-items: center; gap: 7px; }
.crew-chat-h2-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #22c55e;
  flex-shrink: 0; animation: crew-nav-pulse 2s infinite;
}
.crew-chat-h2-title { font-size: 14px; font-weight: 800; color: var(--txt); }
.crew-chat-h2-badge {
  font-size: 10px; color: var(--txt-3);
  background: var(--bg-card); border: 1px solid var(--bdr);
  border-radius: 999px; padding: 2px 8px;
}

/* ── Date separator ──────────────────────────────────────────── */
.chat-date-sep {
  display: flex; align-items: center; gap: 8px;
  margin: 10px 0; color: var(--txt-3);
}
.chat-date-sep::before, .chat-date-sep::after {
  content: ''; flex: 1; height: 1px; background: var(--bdr);
}
.chat-date-sep span {
  font-size: 11px; white-space: nowrap;
  padding: 0 4px;
}

/* ── Message groups ──────────────────────────────────────────── */
.chat-group {
  display: flex; gap: 8px; margin: 4px 0;
}
.chat-group-me {
  flex-direction: column; align-items: flex-end;
}
.chat-group-them {
  flex-direction: row; align-items: flex-end;
}
.chat-group-avi { flex-shrink: 0; }
.chat-group-content { display: flex; flex-direction: column; gap: 3px; max-width: 78%; }
.chat-group-meta {
  display: flex; align-items: center; gap: 6px; margin-bottom: 3px; padding-left: 2px;
}
.chat-nick {
  font-size: 12px; font-weight: 700; color: var(--sky);
}
.chat-nick-time { font-size: 11px; color: var(--txt-3); }
.chat-gtime {
  font-size: 11px; color: var(--txt-3);
  text-align: right; margin-top: 2px; padding-right: 2px;
}

/* ── Bubbles ─────────────────────────────────────────────────── */
.cbub {
  display: inline-block; padding: 10px 14px;
  font-size: 14px; line-height: 1.5;
  word-break: break-word; position: relative;
  max-width: 100%;
}

/* My bubbles — blue gradient, right side */
.cbub-me {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  color: #fff;
  border-radius: 20px 20px 5px 20px;
  align-self: flex-end;
  box-shadow: 0 2px 8px rgba(2,132,199,0.3);
}
.cbub-me.cbub-first { border-radius: 20px 20px 5px 20px; }
.cbub-me.cbub-mid   { border-radius: 20px 5px 5px 20px; }
.cbub-me.cbub-last  { border-radius: 20px 5px 20px 20px; }

/* Their bubbles — glass, left side */
.cbub-them {
  background: var(--bg-card);
  border: 1px solid var(--bdr);
  color: var(--txt);
  border-radius: 20px 20px 20px 5px;
}
.cbub-them.cbub-first { border-radius: 20px 20px 20px 5px; }
.cbub-them.cbub-mid   { border-radius: 5px 20px 20px 5px; }
.cbub-them.cbub-last  { border-radius: 5px 20px 20px 20px; }

/* Bubble action buttons (hidden, reveal on hover) */
.cbub-del, .cbub-rep {
  background: none; border: none; cursor: pointer;
  font-size: 10px; padding: 0 2px; margin-left: 4px;
  vertical-align: middle; opacity: 0;
  transition: opacity .15s;
}
.cbub:hover .cbub-del { opacity: 0.55; }
.cbub:hover .cbub-rep { opacity: 0.55; }
.cbub-del { color: var(--red); }
.cbub-rep { color: var(--txt-3); }
.cbub-del:active, .cbub-rep:active { opacity: 1; }

/* ── Meet-up card ────────────────────────────────────────────── */
.chat-meetup-card {
  background: linear-gradient(135deg, rgba(245,158,11,0.12), rgba(245,158,11,0.05));
  border: 1.5px solid rgba(245,158,11,0.4);
  border-radius: 16px; padding: 14px 16px; margin: 6px 0;
}
.cmc-top {
  display: flex; align-items: center; gap: 8px; margin-bottom: 6px;
}
.cmc-ico   { font-size: 20px; flex-shrink: 0; }
.cmc-label { font-size: 12px; font-weight: 800; color: #d97706; flex: 1; }
.cmc-time  { font-size: 11px; color: var(--txt-3); }
.cmc-from  { font-size: 12px; font-weight: 700; color: var(--txt-2); margin-bottom: 5px; }
.cmc-text  { font-size: 15px; font-weight: 600; color: var(--txt-1); line-height: 1.4; }
.cmc-del {
  display: block; margin-top: 10px; font-size: 11px;
  color: var(--red); background: none; border: none; cursor: pointer;
  text-align: left; padding: 0; opacity: 0.7;
}
.cmc-del:active { opacity: 1; }

/* ── Modern pill input bar ───────────────────────────────────── */
.crew-input-bar2 {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-card);
  border: 1.5px solid var(--bdr);
  border-radius: 999px;
  padding: 5px 5px 5px 16px;
  margin-bottom: 10px;
  transition: border-color .2s;
}
.crew-input-bar2:focus-within { border-color: var(--sky); }
.crew-msg-input2 {
  flex: 1; background: none; border: none; outline: none;
  font-size: 15px; color: var(--txt); padding: 5px 0;
  font-family: inherit;
}
.crew-msg-input2::placeholder { color: var(--txt-3); }
.crew-send-btn2 {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #fff; border: none; font-size: 18px; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform .1s, opacity .1s;
  box-shadow: 0 2px 8px rgba(2,132,199,0.35);
}
.crew-send-btn2:active { transform: scale(0.9); opacity: 0.85; }

/* ── Modern crew cards (v2) ──────────────────────────────────── */
.crew-card-v2 {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--bdr);
  border-radius: 18px; padding: 14px 16px;
  margin-bottom: 8px; cursor: pointer;
  transition: transform .15s, background .15s;
}
.crew-card-v2:active { transform: scale(0.98); background: var(--bg-raised); }
.crew-card-v2-me {
  background: linear-gradient(135deg, rgba(2,132,199,0.09), rgba(14,165,233,0.05));
  border-color: rgba(2,132,199,0.3);
}
.ccv-avi-wrap {
  flex-shrink: 0; border-radius: 50%;
  padding: 2.5px;
  background: linear-gradient(135deg, var(--ring, #38bdf8), rgba(56,189,248,0.25));
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06);
}
.ccv-info { flex: 1; min-width: 0; }
.ccv-name { font-weight: 800; font-size: 15px; color: var(--txt-1); }
.ccv-you {
  font-size: 10px; font-weight: 800; color: var(--sky);
  background: var(--sky-dim); border-radius: 4px;
  padding: 1px 5px; margin-right: 5px; text-transform: uppercase;
}
.ccv-role  { font-size: 12px; color: var(--txt-3); margin-top: 2px; }
.ccv-dot   { color: var(--bdr-2); margin: 0 2px; }
.ccv-departs {
  display: inline-block; font-size: 11px; font-weight: 600;
  color: #38bdf8; background: var(--sky-dim);
  border-radius: 999px; padding: 2px 9px; margin-top: 5px;
}
.ccv-action { flex-shrink: 0; }
.ccv-checkout {
  font-size: 12px; color: var(--red); background: var(--red-dim);
  border: 1px solid rgba(220,38,38,.2); border-radius: 999px;
  padding: 7px 12px; cursor: pointer; font-weight: 600;
}
.ccv-dm {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #fff; border: none; border-radius: 12px;
  padding: 9px 14px; font-size: 13px; font-weight: 700;
  cursor: pointer; white-space: nowrap;
  box-shadow: 0 2px 8px rgba(2,132,199,0.3);
  transition: opacity .15s;
}
.ccv-dm:active { opacity: 0.85; }

/* ── Google Sign-In button (upgraded) ────────────────────────── */
.cm-g-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%;
  background: #4285F4; color: #fff;
  font-size: 12px; font-weight: 900; flex-shrink: 0;
}
.cm-google-err {
  display: none; font-size: 12px; color: #f87171;
  background: rgba(220,38,38,0.08); border: 1px solid rgba(220,38,38,0.2);
  border-radius: 10px; padding: 10px 12px; text-align: center;
  line-height: 1.5; margin-top: 2px;
}

/* ── DM inbox improvements ───────────────────────────────────── */
.dm-item-v2 {
  border-bottom: 1px solid var(--bdr);
}
.dm-item-v2:last-child { border-bottom: none; }
.dm-item-chevron {
  font-size: 20px; color: var(--txt-3); flex-shrink: 0;
  margin-left: auto; padding-left: 8px;
}

/* ── DM chat — date separators ───────────────────────────────── */
.dm-feed .chat-date-sep { margin: 8px 0; }

/* ═══════════════════════════════════════════════════════════════
   PROFILE PAGE V2 — Instagram / Tinder style
═══════════════════════════════════════════════════════════════ */
.pv2-page { min-height: 100vh; background: var(--bg); }

/* cover */
.pv2-cover {
  height: 180px;
  position: relative;
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 16px;
  border-radius: 0 0 32px 32px;
  overflow: hidden;
}
.pv2-back-btn {
  width: 38px; height: 38px; border-radius: 50%;
  border: none; background: rgba(0,0,0,0.28); backdrop-filter: blur(8px);
  color: #fff; font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.pv2-edit-top-btn {
  background: rgba(0,0,0,0.28); backdrop-filter: blur(8px);
  border: none; color: #fff; font-size: 13px; font-weight: 700;
  padding: 6px 16px; border-radius: 999px; cursor: pointer;
}

/* avatar ring that overlaps cover */
.pv2-below-cover { display: flex; flex-direction: column; align-items: center; }
.pv2-avi-ring {
  width: 112px; height: 112px; border-radius: 50%;
  background: linear-gradient(135deg, var(--pcolor, #0ea5e9) 0%, transparent 100%);
  padding: 3px;
  margin-top: -56px;
  position: relative; z-index: 2;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}
.pv2-avi-inner {
  width: 100%; height: 100%; border-radius: 50%;
  overflow: hidden; background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  border: 3px solid var(--bg);
}
.pv2-photo { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.pv2-emoji-avi {
  width: 100%; height: 100%; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 46px;
}

/* content below avatar */
.pv2-content { width: 100%; padding: 12px 20px 32px; text-align: center; }
.pv2-name { font-size: 26px; font-weight: 800; color: var(--txt); margin-top: 8px; letter-spacing: -.4px; }
.pv2-role-badge {
  display: inline-block;
  background: var(--sky-dim); color: var(--sky);
  font-size: 12px; font-weight: 700;
  padding: 4px 14px; border-radius: 999px; margin-top: 6px;
  letter-spacing: .02em;
}
.pv2-bio {
  font-size: 15px; color: var(--txt-2); margin-top: 12px;
  line-height: 1.55; max-width: 300px; margin-left: auto; margin-right: auto;
}
.pv2-chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: center; margin-top: 16px;
}
.pv2-chip {
  display: flex; align-items: center; gap: 6px;
  background: var(--bg-card); border: 1px solid var(--bdr);
  border-radius: 14px; padding: 8px 16px;
  font-size: 13px; font-weight: 600; color: var(--txt-1);
}
.pv2-chip span { font-size: 16px; }
.pv2-private-badge {
  margin-top: 12px; font-size: 12px; color: var(--txt-3);
}
.pv2-private-msg { font-size: 14px; color: var(--txt-3); margin-top: 8px; }
.pv2-action-btn {
  display: block; width: 100%; max-width: 340px;
  margin: 22px auto 0; padding: 15px 24px;
  border-radius: 18px; border: none; font-size: 15px; font-weight: 700;
  cursor: pointer; transition: opacity .15s, transform .1s;
}
.pv2-action-btn:active { transform: scale(0.97); opacity: 0.85; }
.pv2-action-dm {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #fff;
  box-shadow: 0 4px 20px rgba(2,132,199,0.35);
}
.pv2-action-edit {
  background: var(--bg-card); border: 1.5px solid var(--bdr) !important;
  color: var(--txt-1);
}
.pv2-setup-cta { max-width: 300px; margin: 0 auto; }
.pv2-setup-sub { font-size: 14px; color: var(--txt-3); line-height: 1.5; margin: 8px 0 20px; }
.pv2-loading, .pv2-empty { padding: 40px; font-size: 14px; color: var(--txt-3); }

/* ═══════════════════════════════════════════════════════════════
   SETUP MODAL V2 — full-screen Instagram-style editor
═══════════════════════════════════════════════════════════════ */
.cmo-fs {
  align-items: center;
  justify-content: center;
  padding: 0;
}
.cmo-fs .crew-modal {
  width: 100%; max-width: 520px;
  height: 100vh;
  min-height: -webkit-fill-available;
  border-radius: 0;
  padding: 0; overflow: hidden;
  display: flex; flex-direction: column;
}
/* scrollable body — takes all space below topbar */
.cmo-sheet {
  flex: 1; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* topbar is a flex child of crew-modal — never scrolls */
.cmo-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px 12px;
  border-bottom: 1px solid var(--bdr);
  flex-shrink: 0; /* stays fixed, doesn't scroll */
  background: var(--bg-card);
  z-index: 10;
}
.cmo-topbar-title { font-size: 17px; font-weight: 800; color: var(--txt); }
.cmo-x-btn {
  background: var(--bg); border: none; color: var(--txt-2);
  width: 34px; height: 34px; border-radius: 50%;
  font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.cmo-save-top {
  background: var(--sky); color: #fff;
  border: none; font-size: 14px; font-weight: 700;
  padding: 7px 18px; border-radius: 999px; cursor: pointer;
  transition: opacity .15s;
}
.cmo-save-top:active { opacity: 0.8; }
.cmo-save-top:disabled { opacity: 0.45; }
/* big save button at bottom of form */
.cmo-save-bottom {
  width: 100%; padding: 16px;
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #fff; border: none; border-radius: 16px;
  font-size: 16px; font-weight: 700; cursor: pointer;
  margin-top: 8px;
  box-shadow: 0 4px 16px rgba(2,132,199,.35);
  transition: opacity .15s, transform .1s;
}
.cmo-save-bottom:active { opacity: 0.85; transform: scale(0.98); }
.cmo-save-bottom:disabled { opacity: 0.45; }

/* avatar hero */
.cmo-hero {
  display: flex; flex-direction: column; align-items: center;
  padding: 28px 20px 8px;
}
.cmo-avi-ring {
  width: 110px; height: 110px; border-radius: 50%;
  background: linear-gradient(135deg, var(--pcolor,#0ea5e9) 0%, transparent 80%);
  padding: 3px;
}
.cmo-avi-wrap {
  width: 100%; height: 100%; border-radius: 50%;
  position: relative; overflow: visible;
  background: var(--bg);
}
.cmo-avi-img {
  width: 100%; height: 100%; border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg);
}
.cmo-avi-emoji {
  width: 104px; height: 104px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; border: 3px solid var(--bg);
}
.cmo-avi-cam {
  position: absolute; bottom: 2px; right: 2px;
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  z-index: 3;
}
.cmo-avi-lock {
  position: absolute; bottom: 2px; right: 2px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg-card); border: 1px solid var(--bdr);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.cmo-hero-sub { font-size: 12px; color: var(--txt-3); margin-top: 10px; }

/* emoji row */
.cmo-emoji-row {
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: center;
}
.cmo-emoji-btn {
  width: 46px; height: 46px; border-radius: 50%;
  border: 2px solid var(--bdr); background: var(--bg-card);
  font-size: 22px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .15s, transform .1s;
}
.cmo-emoji-btn.cmo-emoji-sel {
  border-color: var(--sky); transform: scale(1.18);
  box-shadow: 0 0 0 3px var(--sky-dim);
}

/* sections */
.cmo-section {
  padding: 18px 20px 0;
}
.cmo-section-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--txt-3); margin-bottom: 8px;
  display: flex; gap: 6px; align-items: center;
}
.cmo-req { color: var(--red); font-size: 10px; font-weight: 700; }
.cmo-opt { color: var(--txt-3); font-size: 10px; font-weight: 400; text-transform: none; letter-spacing: 0; }
.cmo-inp {
  width: 100%; padding: 14px 16px;
  border-radius: 16px; border: 1.5px solid var(--bdr);
  background: var(--bg-card); color: var(--txt);
  font-size: 15px; font-family: inherit;
  outline: none; transition: border-color .2s;
  box-sizing: border-box;
}
.cmo-inp:focus { border-color: var(--sky); }
.cmo-sel { appearance: none; -webkit-appearance: none; cursor: pointer; }
.cmo-bio { height: 88px; resize: none; line-height: 1.5; }

/* privacy toggle row */
.cmo-toggle-section {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--bdr); margin-top: 20px;
  padding-top: 18px; padding-bottom: 4px;
}
.cmo-toggle-lbl { font-size: 15px; font-weight: 700; color: var(--txt); }
.cmo-toggle-sub { font-size: 12px; color: var(--txt-3); margin-top: 3px; }

/* google card */
.cmo-google-card {
  margin: 24px 20px 0;
  background: var(--bg-card); border: 1px solid var(--bdr);
  border-radius: 22px; padding: 20px;
}
.cmo-gc-row { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.cmo-gc-icon {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg,#4285f4,#34a853,#fbbc05,#ea4335);
  color: #fff; font-size: 18px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cmo-gc-title { font-size: 15px; font-weight: 700; color: var(--txt); }
.cmo-gc-sub { font-size: 12px; color: var(--txt-3); margin-top: 3px; line-height: 1.4; }
.cmo-google-btn {
  width: 100%; padding: 13px; border-radius: 14px;
  border: 1.5px solid var(--bdr); background: var(--bg);
  color: var(--txt); font-size: 15px; font-weight: 700;
  cursor: pointer; display: flex; align-items: center;
  justify-content: center; gap: 10px;
  transition: background .15s;
}
.cmo-google-btn:hover { background: var(--bg-card2); }
.cmo-google-btn:disabled { opacity: 0.5; }

/* ═══════════════════════════════════════════════════════════════
   CREW ENTRY SCREEN — profile vs anonymous choice
═══════════════════════════════════════════════════════════════ */
.crew-entry-screen {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; min-height: 70vh;
  padding: 40px 28px; text-align: center;
}
.ces-logo { font-size: 52px; margin-bottom: 8px; }
.ces-title { font-size: 28px; font-weight: 900; color: var(--txt); letter-spacing: -.5px; }
.ces-city  { font-size: 16px; font-weight: 600; color: var(--sky); margin-top: 4px; }
.ces-sub   { font-size: 14px; color: var(--txt-3); margin-top: 10px; line-height: 1.5; max-width: 300px; }
.ces-options { width: 100%; max-width: 340px; margin-top: 28px; }
.ces-profile-btn {
  width: 100%; padding: 16px;
  background: linear-gradient(135deg,#0ea5e9,#0284c7);
  color: #fff; border: none; border-radius: 18px;
  font-size: 16px; font-weight: 700; cursor: pointer;
  box-shadow: 0 6px 24px rgba(2,132,199,0.35);
  transition: transform .1s, opacity .15s;
}
.ces-profile-btn:active { transform: scale(0.97); }
.ces-or {
  display: flex; align-items: center; gap: 12px;
  margin: 20px 0 14px; color: var(--txt-3); font-size: 13px;
}
.ces-or::before, .ces-or::after {
  content: ''; flex: 1; height: 1px; background: var(--bdr);
}
.ces-anon-row { display: flex; gap: 8px; }
.ces-anon-inp {
  flex: 1; padding: 13px 16px; border-radius: 14px;
  border: 1.5px solid var(--bdr); background: var(--bg-card);
  color: var(--txt); font-size: 15px; font-family: inherit; outline: none;
}
.ces-anon-inp:focus { border-color: var(--sky); }
.ces-anon-btn {
  padding: 13px 18px; border-radius: 14px; border: none;
  background: var(--bg-card); color: var(--txt); font-size: 15px;
  font-weight: 700; cursor: pointer; white-space: nowrap;
}
.ces-note { font-size: 11px; color: var(--txt-3); margin-top: 20px; }

/* ═══════════════════════════════════════════════════════════════
   CREW TAB V2 — live bar + white chat
═══════════════════════════════════════════════════════════════ */
.crew-tab-v2 { display: flex; flex-direction: column; }

/* live bar */
.clv-live-bar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--bdr);
  padding: 12px 16px 14px;
}
.clv-bar-header {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 12px;
}
.clv-live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34,197,94,.25);
  animation: pulse-green 2s infinite;
  flex-shrink: 0;
}
@keyframes pulse-green {
  0%,100% { box-shadow: 0 0 0 3px rgba(34,197,94,.25); }
  50%      { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}
.clv-bar-title { font-size: 14px; font-weight: 700; color: var(--txt); }
.clv-bar-count  { font-size: 12px; color: var(--txt-3); margin-left: auto; }

/* horizontal avatar scroll */
.clv-avatars {
  display: flex; gap: 14px; overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}
.clv-avatars::-webkit-scrollbar { display: none; }
.clv-av-item {
  display: flex; flex-direction: column; align-items: center;
  gap: 5px; cursor: pointer; flex-shrink: 0;
  position: relative;
}
.clv-av-ring {
  position: relative;
  width: 56px; height: 56px; border-radius: 50%;
  padding: 2px;
  background: conic-gradient(var(--ring,#0ea5e9) 0%, var(--ring,#0ea5e9) 100%);
}
.clv-av-ring .crew-avatar-img,
.clv-av-ring .crew-avatar-circle {
  border: 2px solid var(--bg-card);
  border-radius: 50%;
}
.clv-green-dot {
  position: absolute; bottom: 2px; right: 2px;
  width: 13px; height: 13px; border-radius: 50%;
  background: #22c55e; border: 2px solid var(--bg-card);
}
.clv-av-name {
  font-size: 11px; color: var(--txt-2); font-weight: 600;
  max-width: 56px; text-align: center;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.clv-av-me .clv-av-ring { background: var(--sky); }
.clv-av-you-badge {
  font-size: 9px; font-weight: 700; text-transform: uppercase;
  color: var(--sky); letter-spacing: .05em;
}
.clv-spin { color: var(--txt-3); font-size: 20px; animation: spin .8s linear infinite; padding: 16px; }
.clv-nobody { font-size: 13px; color: var(--txt-3); padding: 12px 0; }

/* white chat area */
.clv-chat-wrap {
  display: flex; flex-direction: column;
  background: #fff;
  border-top: 1px solid #e8edf2;
}
.clv-chat-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px 8px;
  border-bottom: 1px solid #e8edf2;
  background: #fff;
}
.clv-chat-title { font-size: 14px; font-weight: 700; color: #1a2940; }
.clv-chat-badge {
  font-size: 11px; color: #8aabbf;
  background: #f0f4f8; padding: 3px 10px; border-radius: 999px;
}
.clv-chat-feed {
  flex: 1; overflow-y: auto; padding: 12px 12px 8px;
  min-height: 320px; max-height: 44vh;
  background: #f7f9fc;
}
.clv-chat-feed .cbub-them {
  background: #fff;
  border: 1px solid #e0e8f0;
  color: #1a2940;
}
.clv-chat-feed .cbub-me {
  background: linear-gradient(135deg,#0ea5e9,#0284c7);
  color: #fff;
}
.clv-chat-feed .chat-group-them .chat-nick { color: #0284c7; }
.clv-chat-feed .chat-date-sep span { background: #f7f9fc; color: #8aabbf; }
.clv-footer {
  font-size: 12px; color: var(--txt-3);
  padding: 6px 16px 4px;
  background: #fff;
  border-top: 1px solid #e8edf2;
}
.clv-footer button { background: none; border: none; color: var(--sky); cursor: pointer; font-size: 12px; font-weight: 600; }

/* ── Profile page green dot ──────────────────────────────────── */
.pv2-avi-wrap-outer { position: relative; display: inline-block; }
.pv2-green-dot {
  position: absolute; bottom: 6px; right: 6px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #22c55e; border: 3px solid var(--bg);
  box-shadow: 0 2px 8px rgba(34,197,94,.4);
}
.pv2-below-cover { display: flex; flex-direction: column; align-items: center; }
