/* =====================================================
   A LOAD A DAY — design system
   Day & Night themes for sun & sleeper-cab driving.
   ===================================================== */

/* ---- Theme tokens ---- */
:root,
html[data-theme="dark"] {
  --bg: #0b0d12;
  --bg-2: #11141c;
  --panel: #161a24;
  --panel-2: #1c2230;
  --line: #242a38;
  --text: #e8ecf3;
  --muted: #8a93a6;
  --brand: #ff7a1a;
  --brand-2: #ff3d00;
  --good: #2ecc71;
  --warn: #f5c542;
  --bad: #ff5470;
  --blue: #4ea3ff;
  --pink: #ff3d96;
  --purple: #c89dff;
  --shadow: 0 10px 30px rgba(0,0,0,.45);
}

html[data-theme="light"] {
  --bg: #f7f8fb;
  --bg-2: #ffffff;
  --panel: #ffffff;
  --panel-2: #f1f3f8;
  --line: #e2e6ee;
  --text: #0f1320;
  --muted: #5b6478;
  --brand: #ff5e00;
  --brand-2: #ff3d00;
  --good: #1f9d55;
  --warn: #b58900;
  --bad: #d11149;
  --blue: #1e6dd9;
  --pink: #d61d72;
  --purple: #7a4dff;
  --shadow: 0 8px 22px rgba(15,19,32,.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; transition: background-color .2s ease, color .2s ease; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; }

/* ---- Hide google translate junk while keeping it functional ---- */
.goog-te-banner-frame, .skiptranslate { display: none !important; }
body { top: 0 !important; }
.goog-tooltip, .goog-tooltip:hover { display: none !important; }
.goog-text-highlight { background: transparent !important; box-shadow: none !important; }

/* ===== NAV ===== */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); background: color-mix(in srgb, var(--bg) 85%, transparent); border-bottom: 1px solid var(--line); }
.nav-inner { max-width: 1280px; margin: 0 auto; padding: 12px 18px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.01em; cursor: pointer; }
.logo-mark { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); display: grid; place-items: center; box-shadow: 0 6px 18px rgba(255,122,26,.3); color: #fff; font-weight: 900; font-size: 17px; }
.logo-text { font-size: 15.5px; line-height: 1.05; }
.logo-text small { display: block; font-weight: 500; font-size: 10.5px; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }

.search-wrap { flex: 1; min-width: 220px; max-width: 460px; position: relative; }
.search-input { width: 100%; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 38px 10px 36px; color: var(--text); font-size: 13.5px; outline: none; }
.search-input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
.search-icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-kbd { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: var(--panel); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; font-size: 11px; color: var(--muted); font-family: ui-monospace, monospace; }
.search-results { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); max-height: 460px; overflow-y: auto; z-index: 100; display: none; }
.search-results.open { display: block; }
.search-section { padding: 6px 0; border-bottom: 1px solid var(--line); }
.search-section:last-child { border-bottom: 0; }
.search-section h5 { margin: 8px 14px 4px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.search-item { display: flex; gap: 12px; align-items: center; padding: 9px 14px; cursor: pointer; border-left: 2px solid transparent; }
.search-item:hover, .search-item.focused { background: var(--panel-2); border-left-color: var(--brand); }
.search-item .ico { width: 32px; height: 32px; border-radius: 8px; background: var(--bg-2); display: grid; place-items: center; flex-shrink: 0; font-size: 15px; }
.search-item .t { font-size: 13.5px; font-weight: 600; }
.search-item .s { font-size: 12px; color: var(--muted); margin-top: 1px; }
.search-item .meta { margin-left: auto; font-size: 11.5px; color: var(--muted); }
.search-empty { padding: 22px; text-align: center; color: var(--muted); font-size: 13px; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border-radius: 10px; font-weight: 600; font-size: 13.5px; border: 1px solid var(--line); color: var(--text); background: var(--panel); cursor: pointer; transition: transform .08s, background .2s, border-color .2s; }
.btn:hover { background: var(--panel-2); }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); border-color: transparent; color: #fff; box-shadow: 0 8px 22px color-mix(in srgb, var(--brand) 25%, transparent); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost { background: transparent; }
.btn-sm { padding: 6px 10px; font-size: 12.5px; border-radius: 8px; }

/* GPS hot button — extra prominent */
.gps-btn { background: linear-gradient(135deg, #1e6dd9, #4ea3ff); border-color: transparent; color: #fff; box-shadow: 0 6px 18px rgba(78,163,255,.28); font-weight: 700; }
.gps-btn:hover { transform: translateY(-1px); }

/* Theme toggle */
.theme-toggle { display: inline-flex; gap: 0; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; padding: 2px; background: var(--panel); }
.theme-toggle button { background: transparent; border: 0; padding: 6px 10px; color: var(--muted); cursor: pointer; font-size: 12px; border-radius: 999px; display: inline-flex; align-items: center; gap: 4px; }
.theme-toggle button.on { background: var(--panel-2); color: var(--text); }
.nav-cta { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* Language picker */
.lang-wrap { position: relative; }
.lang-btn { background: var(--panel); border: 1px solid var(--line); padding: 6px 10px; border-radius: 8px; cursor: pointer; font-size: 12.5px; display: inline-flex; align-items: center; gap: 6px; color: var(--text); }
.lang-btn:hover { background: var(--panel-2); }

/* ===== Layout ===== */
section { padding: 36px 18px; }
.section-inner { max-width: 1280px; margin: 0 auto; }
.section-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 20px; gap: 16px; flex-wrap: wrap; }
.section-head h2 { margin: 0; font-size: 26px; letter-spacing: -.01em; }
.section-head p { color: var(--muted); margin: 6px 0 0; max-width: 620px; font-size: 14px; }
.kicker { color: var(--brand); font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }

.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1080px) { .grid-5 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 880px)  { .grid-5, .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); } .hero-inner { grid-template-columns: 1fr !important; } }
@media (max-width: 600px)  { .grid-5, .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } .nav-inner { gap: 8px; } .search-wrap { order: 99; flex-basis: 100%; max-width: 100%; } }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px; transition: transform .15s, border-color .15s; }
.card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }
.card .ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); margin-bottom: 10px; font-size: 18px; }
.card h3 { margin: 0 0 6px; font-size: 16px; }
.card p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.cb-embed { min-height: 520px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--bg-2); }
.cb-loading { min-height: 520px; display: grid; place-items: center; color: var(--muted); font-size: 14px; padding: 24px; text-align: center; }

.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 4px color-mix(in srgb, var(--good) 18%, transparent); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 6px; font-size: 11.5px; background: var(--bg-2); border: 1px solid var(--line); color: var(--muted); }
.badge.good { color: var(--good); border-color: color-mix(in srgb, var(--good) 30%, transparent); background: color-mix(in srgb, var(--good) 10%, transparent); }
.badge.warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 30%, transparent); background: color-mix(in srgb, var(--warn) 10%, transparent); }
.badge.blue { color: var(--blue); border-color: color-mix(in srgb, var(--blue) 30%, transparent); background: color-mix(in srgb, var(--blue) 10%, transparent); }
.badge.pink { color: var(--pink); border-color: color-mix(in srgb, var(--pink) 30%, transparent); background: color-mix(in srgb, var(--pink) 10%, transparent); }
.badge.purple { color: var(--purple); border-color: color-mix(in srgb, var(--purple) 30%, transparent); background: color-mix(in srgb, var(--purple) 10%, transparent); }
.row-flex { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ===== Hero ===== */
.hero { padding: 56px 18px 30px; background: radial-gradient(900px 380px at 80% -10%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 60%), radial-gradient(700px 360px at 0% 20%, color-mix(in srgb, var(--blue) 12%, transparent), transparent 60%); }
.hero-inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1.05fr .95fr; gap: 28px; align-items: center; }
h1 { font-size: clamp(30px, 4.4vw, 52px); line-height: 1.05; margin: 14px 0 12px; letter-spacing: -.025em; }
h1 span { background: linear-gradient(135deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--muted); font-size: 16px; max-width: 580px; line-height: 1.55; }

/* ===== Leaflet map containers ===== */
.leaflet-map { height: 280px; border-radius: 12px; border: 1px solid var(--line); margin-top: 12px; overflow: hidden; }
.leaflet-map.gps-map-large { height: 540px; }
.gps-page-grid { display: grid; grid-template-columns: minmax(320px, 480px) 1fr; gap: 18px; align-items: start; }
@media (max-width: 980px) { .gps-page-grid { grid-template-columns: 1fr; } .leaflet-map.gps-map-large { height: 380px; } }
/* Make the Leaflet attribution legible on dark mode */
html[data-theme="dark"] .leaflet-container { background: #1c2230; }
html[data-theme="dark"] .leaflet-control-attribution { background: rgba(11,13,18,.85) !important; color: #c0c8d8 !important; }
html[data-theme="dark"] .leaflet-control-attribution a { color: #ff9a4f !important; }

/* ===== GPS prominent card (hero right) ===== */
.gps-card { background: linear-gradient(180deg, color-mix(in srgb, var(--blue) 10%, var(--panel)), var(--panel)); border: 1px solid color-mix(in srgb, var(--blue) 25%, var(--line)); border-radius: 18px; padding: 18px; box-shadow: var(--shadow); }
.gps-card h3 { margin: 0 0 10px; font-size: 19px; }
.gps-card .row-input { display: grid; grid-template-columns: 1fr; gap: 8px; margin-bottom: 8px; }
.gps-card input, .gps-card select { width: 100%; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; color: var(--text); font-size: 14px; outline: none; }
.gps-card input:focus, .gps-card select:focus { border-color: var(--blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 18%, transparent); }
.gps-card .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.map-preview { margin-top: 12px; height: 180px; border-radius: 12px; border: 1px solid var(--line); position: relative; overflow: hidden; background: radial-gradient(420px 220px at 28% 30%, color-mix(in srgb, var(--blue) 15%, transparent), transparent 60%), radial-gradient(360px 200px at 72% 70%, color-mix(in srgb, var(--brand) 15%, transparent), transparent 60%), repeating-linear-gradient(0deg, color-mix(in srgb, var(--text) 4%, transparent) 0 1px, transparent 1px 30px), repeating-linear-gradient(90deg, color-mix(in srgb, var(--text) 4%, transparent) 0 1px, transparent 1px 30px), var(--bg-2); }
.map-preview .pin { position: absolute; padding: 4px 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; font-size: 11px; box-shadow: var(--shadow); }
.map-preview .route-line { position: absolute; height: 3px; background: linear-gradient(90deg, var(--blue), var(--brand)); border-radius: 3px; }

/* ===== Stats ===== */
.stats { display: flex; gap: 22px; margin-top: 22px; flex-wrap: wrap; }
.stat .v { font-weight: 800; font-size: 22px; }
.stat .l { color: var(--muted); font-size: 12.5px; }

/* ===== Category nav (homepage chip cloud) ===== */
.cat-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.cat-chip { background: var(--panel); border: 1px solid var(--line); padding: 9px 14px; border-radius: 10px; cursor: pointer; font-size: 13.5px; display: inline-flex; align-items: center; gap: 8px; transition: transform .1s, border-color .1s; }
.cat-chip:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.cat-chip .e { font-size: 16px; }
.cat-chip .live { font-size: 11px; color: var(--muted); margin-left: 4px; }
.cat-chip.prominent { border-width: 1.5px; font-weight: 600; box-shadow: 0 4px 12px color-mix(in srgb, var(--brand) 12%, transparent); }
.cat-chip.prominent.accent-blue { background: linear-gradient(135deg, color-mix(in srgb, var(--blue) 12%, var(--panel)), var(--panel)); border-color: color-mix(in srgb, var(--blue) 45%, var(--line)); }
.cat-chip.prominent.accent-blue .live { color: var(--blue); }
.cat-chip.prominent.accent-pink { background: linear-gradient(135deg, color-mix(in srgb, var(--pink) 12%, var(--panel)), var(--panel)); border-color: color-mix(in srgb, var(--pink) 45%, var(--line)); }
.cat-chip.prominent.accent-pink .live { color: var(--pink); }

/* ===== Team-Up homepage cards & page ===== */
.team-card { display: block; padding: 22px; border-radius: 16px; cursor: pointer; transition: transform .15s, box-shadow .15s, border-color .15s; text-decoration: none; color: inherit; border: 1.5px solid var(--line); background: var(--panel); }
.team-card:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(0,0,0,.18); }
.team-card .team-emoji { font-size: 38px; margin-bottom: 8px; }
.team-card h3 { margin: 0 0 8px; font-size: 18px; line-height: 1.3; }
.team-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.team-card .team-cta { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-weight: 700; font-size: 14px; }
.team-card-blue { background: linear-gradient(135deg, color-mix(in srgb, var(--blue) 14%, var(--panel)), var(--panel)); border-color: color-mix(in srgb, var(--blue) 40%, var(--line)); }
.team-card-blue .team-cta { color: var(--blue); }
.team-card-blue:hover { border-color: var(--blue); }
.team-card-pink { background: linear-gradient(135deg, color-mix(in srgb, var(--pink) 14%, var(--panel)), var(--panel)); border-color: color-mix(in srgb, var(--pink) 40%, var(--line)); }
.team-card-pink .team-cta { color: var(--pink); }
.team-card-pink:hover { border-color: var(--pink); }

.team-up-empty { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 40px 24px; text-align: center; }
.team-up-page[data-accent="blue"] .team-up-empty { background: linear-gradient(135deg, color-mix(in srgb, var(--blue) 12%, var(--panel)), var(--panel)); border-color: color-mix(in srgb, var(--blue) 30%, var(--line)); }
.team-up-page[data-accent="pink"] .team-up-empty { background: linear-gradient(135deg, color-mix(in srgb, var(--pink) 12%, var(--panel)), var(--panel)); border-color: color-mix(in srgb, var(--pink) 30%, var(--line)); }
.team-up-empty .team-up-emoji { font-size: 56px; margin-bottom: 8px; }
.team-up-empty h3 { margin: 6px 0 8px; font-size: 22px; }
.team-up-empty p { color: var(--muted); max-width: 600px; margin: 0 auto; font-size: 14.5px; line-height: 1.55; }
.team-up-filters { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-top: 18px; }
.team-profile-card { cursor: pointer; }
.team-profile-card:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.team-profile-card-foot { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.team-profile-modal-hero { border: 1px solid var(--line); border-radius: 16px; padding: 18px; background: var(--panel); }
.team-profile-modal-hero[data-accent="blue"] { background: linear-gradient(135deg, color-mix(in srgb, var(--blue) 10%, var(--panel)), var(--panel)); border-color: color-mix(in srgb, var(--blue) 30%, var(--line)); }
.team-profile-modal-hero[data-accent="pink"] { background: linear-gradient(135deg, color-mix(in srgb, var(--pink) 10%, var(--panel)), var(--panel)); border-color: color-mix(in srgb, var(--pink) 30%, var(--line)); }
.team-profile-modal-hero[data-accent="purple"] { background: linear-gradient(135deg, color-mix(in srgb, var(--purple) 10%, var(--panel)), var(--panel)); border-color: color-mix(in srgb, var(--purple) 30%, var(--line)); }
.team-profile-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.team-profile-detail { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.team-profile-detail-label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 8px; }
.team-profile-detail p { margin: 0; color: var(--text); font-size: 14px; line-height: 1.55; }
.inbox-shell { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 14px; min-height: 520px; }
.inbox-list { display: flex; flex-direction: column; gap: 10px; max-height: 72vh; overflow: auto; }
.inbox-thread { min-width: 0; }
.inbox-item { width: 100%; text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px; color: var(--text); cursor: pointer; }
.inbox-item.active { border-color: color-mix(in srgb, var(--brand) 55%, var(--line)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand) 25%, transparent); }
.message-thread { display: flex; flex-direction: column; gap: 10px; max-height: 48vh; overflow: auto; padding-right: 4px; }
.message-row { display: flex; }
.message-row.self { justify-content: flex-end; }
.message-row.other { justify-content: flex-start; }
.message-bubble { max-width: min(82%, 560px); background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; line-height: 1.5; }
.message-row.self .message-bubble { background: color-mix(in srgb, var(--brand) 12%, var(--panel)); border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); }
.message-meta { margin-top: 8px; color: var(--muted); font-size: 12px; }

.launch-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.launch-card[data-accent="blue"] { background: linear-gradient(135deg, color-mix(in srgb, var(--blue) 10%, var(--panel)), var(--panel)); border-color: color-mix(in srgb, var(--blue) 30%, var(--line)); }
.launch-card[data-accent="pink"] { background: linear-gradient(135deg, color-mix(in srgb, var(--pink) 10%, var(--panel)), var(--panel)); border-color: color-mix(in srgb, var(--pink) 30%, var(--line)); }
.launch-card[data-accent="purple"] { background: linear-gradient(135deg, color-mix(in srgb, var(--purple) 10%, var(--panel)), var(--panel)); border-color: color-mix(in srgb, var(--purple) 30%, var(--line)); }
.launch-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.launch-card-icon { font-size: 28px; }
.launch-card-count { font-size: 34px; line-height: 1; font-weight: 800; margin: 10px 0 8px; }
.launch-card p { font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.launch-meter-stack { display: grid; gap: 10px; }
.launch-meter { text-align: left; background: color-mix(in srgb, var(--bg-2) 88%, var(--panel)); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.launch-meter-head { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; font-weight: 700; margin-bottom: 8px; }
.launch-meter-track { height: 10px; border-radius: 999px; background: color-mix(in srgb, var(--line) 55%, transparent); overflow: hidden; }
.launch-meter-fill { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); }
.launch-meter[data-accent="blue"] .launch-meter-fill { background: linear-gradient(90deg, var(--blue), color-mix(in srgb, var(--blue) 55%, #fff)); }
.launch-meter[data-accent="pink"] .launch-meter-fill { background: linear-gradient(90deg, var(--pink), color-mix(in srgb, var(--pink) 55%, #fff)); }
.launch-meter[data-accent="purple"] .launch-meter-fill { background: linear-gradient(90deg, var(--purple), color-mix(in srgb, var(--purple) 55%, #fff)); }
.launch-meter-note { margin-top: 8px; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
@media (max-width: 600px) { .team-profile-detail-grid { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .inbox-shell { grid-template-columns: 1fr; min-height: 0; } .inbox-list { max-height: 240px; } .message-thread { max-height: 42vh; } }

/* Signed-in user pill in the nav */
.user-pill { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); font-size: 13px; }
.user-pill-avatar { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 12px; }
.user-pill-name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== City picker ===== */
.city-picker { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-top: 16px; }
.city-picker h4 { margin: 0 0 8px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.city-filter { width: 100%; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 13px; color: var(--text); font-size: 13.5px; outline: none; margin-bottom: 12px; }
.city-filter:focus { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 15%, transparent); }
.city-tabs { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.city-tab { background: var(--bg-2); border: 1px solid var(--line); padding: 7px 12px; border-radius: 8px; cursor: pointer; font-size: 12.5px; color: var(--muted); }
.city-tab.on { background: color-mix(in srgb,var(--brand) 12%,transparent); color: var(--brand); border-color: color-mix(in srgb,var(--brand) 35%,var(--line)); font-weight: 600; }
.city-region { display: none; max-height: 460px; overflow-y: auto; padding-right: 4px; }
.city-region.active { display: block; }
.city-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.city-group { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.city-group-head { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 8px; padding-bottom: 6px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 6px; }
.city-list { display: flex; flex-wrap: wrap; gap: 6px; }
.city-list-flat { display: flex; flex-wrap: wrap; gap: 6px; max-height: 440px; overflow-y: auto; padding: 4px; }
.city-item { font-size: 12.5px; padding: 4px 9px; border-radius: 6px; background: var(--bg); border: 1px solid var(--line); color: var(--muted); cursor: pointer; transition: all .12s; display: inline-block; }
.city-item:hover { color: var(--brand); border-color: var(--brand); }
.city-item.on { background: color-mix(in srgb,var(--brand) 12%,transparent); color: var(--brand); border-color: var(--brand); }
.city-item.hidden { display: none; }
.city-group.empty { display: none; }

/* ===== Predictive city picker (Photon) ===== */
.city-search { position: relative; }
.city-search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.city-search-input {
  width: 100%; background: var(--bg-2); border: 1.5px solid var(--line); border-radius: 12px;
  padding: 14px 16px 14px 40px; color: var(--text); font-size: 15px; outline: none;
}
.city-search-input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
.city-search-results {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px);
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  max-height: 380px; overflow-y: auto; z-index: 60;
  box-shadow: var(--shadow); display: none;
}
.city-search-results.open { display: block; }
.city-pred-loading { padding: 14px; color: var(--muted); font-size: 13px; }
.city-pred-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px;
  cursor: pointer; border-left: 2px solid transparent; transition: background .12s;
}
.city-pred-item:hover, .city-pred-item.focused { background: var(--panel-2); border-left-color: var(--brand); }
.city-pred-flag { font-size: 22px; flex-shrink: 0; }
.city-pred-name { font-weight: 700; font-size: 14px; }
.city-pred-sub { font-size: 12px; color: var(--muted); margin-top: 1px; }
.city-pred-type { font-size: 10.5px; padding: 2px 7px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

.city-suggestion-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; align-items: center; }
.city-suggestion-label { font-size: 12px; color: var(--muted); margin-right: 4px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }

/* ===== Boards/tables ===== */
.board { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.board-head { padding: 12px 16px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--line); }
.input { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; color: var(--text); font-size: 13.5px; outline: none; }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
.chip { padding: 6px 10px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); font-size: 12px; color: var(--muted); cursor: pointer; user-select: none; }
.chip.on { background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); border-color: color-mix(in srgb, var(--brand) 30%, transparent); }
.cb-channel-btn { text-align: left; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; background: var(--bg-2); }
tr:hover td { background: color-mix(in srgb, var(--text) 3%, transparent); }
.pay { color: var(--good); font-weight: 800; }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--purple)); display: inline-grid; place-items: center; color: #fff; font-size: 12px; font-weight: 700; }

/* ===== Listing cards ===== */
.listing { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: transform .15s, border-color .15s; }
.listing:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.listing .photo { aspect-ratio: 16/10; background: linear-gradient(135deg, var(--panel-2), var(--bg-2)); position: relative; display: grid; place-items: center; font-size: 64px; }
.listing .tag { position: absolute; top: 10px; left: 10px; background: rgba(0,0,0,.45); color: #fff; padding: 4px 9px; border-radius: 999px; font-size: 11.5px; backdrop-filter: blur(6px); }
.listing .price { position: absolute; bottom: 10px; left: 12px; color: #fff; font-weight: 800; font-size: 18px; text-shadow: 0 2px 8px rgba(0,0,0,.5); }
.listing .body { padding: 14px; }
.listing .title { font-weight: 700; margin-bottom: 4px; font-size: 14.5px; }
.listing .meta { color: var(--muted); font-size: 13px; margin-bottom: 10px; }

/* ===== Breadcrumb ===== */
.breadcrumb { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 14px 18px 0; max-width: 1280px; margin: 0 auto; color: var(--muted); font-size: 13px; }
.breadcrumb a { cursor: pointer; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb .sep { opacity: .5; }

/* ===== Auth / Modal ===== */
.modal-bd { position: fixed; inset: 0; background: rgba(0,0,0,.55); backdrop-filter: blur(6px); display: none; align-items: center; justify-content: center; z-index: 200; padding: 16px; }
.modal-bd.open { display: flex; }
.modal { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; width: 100%; max-width: 460px; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow); }
.modal-head { padding: 18px 22px 12px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.modal-head h3 { margin: 0; font-size: 18px; }
.modal-close { background: var(--bg-2); border: 1px solid var(--line); width: 30px; height: 30px; border-radius: 8px; color: var(--muted); cursor: pointer; }
.modal-body { padding: 18px 22px; }
.modal-foot { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 10px; }
.form-row { margin-bottom: 12px; }
.form-row label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.form-row input, .form-row textarea, .form-row select { width: 100%; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; color: var(--text); font-size: 14px; outline: none; }
.form-row textarea { min-height: 110px; resize: vertical; }
.form-row input:focus, .form-row textarea:focus, .form-row select:focus { border-color: var(--brand); }
.step-bar { display: flex; gap: 6px; margin-bottom: 14px; }
.step-bar div { flex: 1; height: 4px; border-radius: 2px; background: var(--bg-2); }
.step-bar div.done { background: var(--brand); }
.step { display: none; }
.step.active { display: block; }

.role-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.role-pick { background: var(--bg-2); border: 1.5px solid var(--line); border-radius: 12px; padding: 12px; cursor: pointer; text-align: left; color: var(--text); }
.role-pick:hover { border-color: var(--brand); }
.role-pick.on { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, var(--bg-2)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 15%, transparent); }
.role-pick .e { font-size: 22px; margin-bottom: 4px; }
.role-pick .t { font-weight: 700; font-size: 14px; }
.role-pick .s { color: var(--muted); font-size: 12px; }

.cat-chips-modal { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-chips-modal .cc { background: var(--bg-2); border: 1.5px solid var(--line); border-radius: 10px; padding: 7px 11px; font-size: 12.5px; cursor: pointer; user-select: none; }
.cat-chips-modal .cc.on { background: color-mix(in srgb, var(--brand) 10%, transparent); color: var(--brand); border-color: var(--brand); }

.otp { display: flex; gap: 8px; justify-content: center; margin: 14px 0 6px; }
.otp input { width: 44px; height: 52px; text-align: center; font-size: 22px; font-weight: 700; background: var(--bg-2); border: 1.5px solid var(--line); border-radius: 12px; color: var(--text); outline: none; font-family: ui-monospace, monospace; }
.otp input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 15%, transparent); }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 42px; }
.pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: transparent; border: 0; color: var(--muted); cursor: pointer; padding: 6px; font-size: 12px; }

/* ===== Pay modal ===== */
.pay-summary { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 14px; }
.pay-summary .amount { font-size: 26px; font-weight: 800; }
.pay-rails { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.pay-rail { background: var(--bg-2); border: 1.5px solid var(--line); border-radius: 12px; padding: 14px; cursor: pointer; text-align: center; }
.pay-rail.on { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, var(--bg-2)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 15%, transparent); }
.pay-rail .logo { font-size: 22px; font-weight: 800; }
.pay-rail .stripe { background: linear-gradient(135deg, #635bff, #7a73ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pay-rail .paypal { background: linear-gradient(135deg, #003087, #009cde); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pay-rail .s { font-size: 11.5px; color: var(--muted); margin-top: 4px; }

/* ===== OffDuty (dating) ===== */
.offduty-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: transform .15s, border-color .15s; }
.offduty-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--pink) 40%, var(--line)); }
.offduty-photo { aspect-ratio: 4/5; position: relative; display: grid; place-items: center; font-size: 100px; }
.offduty-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.7)); }
.offduty-photo.discreet { background: linear-gradient(135deg, #2a2a3e, #1a1a2a) !important; }
.offduty-photo.discreet::after { background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.7)), repeating-linear-gradient(45deg, rgba(255,255,255,.02) 0 6px, transparent 6px 12px); }
.offduty-name { position: absolute; bottom: 12px; left: 14px; z-index: 2; color: #fff; }
.offduty-name b { font-size: 18px; }
.offduty-name .age { font-weight: 400; opacity: .9; }
.offduty-name .loc { font-size: 12px; opacity: .85; margin-top: 2px; }
.offduty-verified { position: absolute; top: 12px; right: 12px; z-index: 2; background: color-mix(in srgb, var(--good) 18%, transparent); color: var(--good); padding: 4px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; backdrop-filter: blur(8px); border: 1px solid color-mix(in srgb, var(--good) 30%, transparent); }
.offduty-tag-discreet { position: absolute; top: 12px; left: 12px; z-index: 2; background: color-mix(in srgb, var(--purple) 18%, transparent); color: var(--purple); border: 1px solid color-mix(in srgb, var(--purple) 35%, transparent); padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.offduty-body { padding: 14px; }
.offduty-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.offduty-tag { font-size: 11.5px; padding: 4px 9px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); color: var(--muted); }
.offduty-actions { display: flex; gap: 8px; }
.offduty-pass, .offduty-like { flex: 1; padding: 9px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer; }
.offduty-like { background: linear-gradient(135deg, var(--pink), var(--brand)); border: 0; color: #fff; }

/* ===== Footer ===== */
footer { padding: 40px 18px 26px; border-top: 1px solid var(--line); margin-top: 28px; background: var(--bg-2); }
.foot-inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 26px; }
@media (max-width: 880px) { .foot-inner { grid-template-columns: 1fr 1fr; } }
.foot h4 { margin: 0 0 10px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.foot a { display: block; color: var(--muted); padding: 4px 0; font-size: 14px; cursor: pointer; }
.foot a:hover { color: var(--text); }

/* ===== Install banner ===== */
.install { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; display: none; gap: 12px; align-items: center; z-index: 60; box-shadow: var(--shadow); }
.install .ico { width: 32px; height: 32px; border-radius: 8px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); display: grid; place-items: center; color: #fff; }

/* ===== Utility ===== */
.no-listings { padding: 50px 20px; text-align: center; color: var(--muted); background: var(--panel); border: 1px dashed var(--line); border-radius: 14px; }
.no-listings .e { font-size: 36px; margin-bottom: 8px; }
.no-listings h4 { margin: 6px 0; font-size: 16px; color: var(--text); }
.divider-or { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--muted); font-size: 12px; }
.divider-or::before, .divider-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.link-btn { background: transparent; border: 0; color: var(--brand); cursor: pointer; font-weight: 600; padding: 0; font-size: 13px; }
.link-btn:hover { text-decoration: underline; }

/* Auto-detect prefers-color-scheme on first load */
@media (prefers-color-scheme: light) {
  html:not([data-theme]) {
    --bg: #f7f8fb; --bg-2: #ffffff; --panel: #ffffff; --panel-2: #f1f3f8;
    --line: #e2e6ee; --text: #0f1320; --muted: #5b6478; --shadow: 0 8px 22px rgba(15,19,32,.08);
  }
}
