/* Lapdrop PWA — mobile-first (390px), tokens for dark + light */
@font-face{font-family:"Inter";font-style:normal;font-weight:400 800;font-display:swap;
  src:url(fonts/inter-latin.woff2) format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Inter";font-style:normal;font-weight:400 800;font-display:swap;
  src:url(fonts/inter-latin-ext.woff2) format("woff2");
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}

:root{
  --ld-ochre:#E0A526;
  --ld-ochre-glass:rgba(224,165,38,.22);
  --ld-ochre-glass-strong:rgba(224,165,38,.28);
  --ld-ochre-border:rgba(224,165,38,.45);
  --accent:#fbbf24; --accent-600:#f59e0b; --accent-ink:#0b1020;
  --s1:4px;--s2:8px;--s3:12px;--s4:16px;--s5:24px;--s6:32px;--s7:48px;
  --r-sm:10px;--r-md:14px;--r-lg:20px;--r-pill:999px;
  --header-h:64px; --tab-h:64px;
  --font:"Inter",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --ease:cubic-bezier(.2,.7,.2,1);
}
html[data-theme="dark"]{
  color-scheme:dark;
  --bg:#0a0e1a; --bg-elev:#121628; --surface:#151929; --surface-2:#1e2235;
  --line:rgba(255,255,255,.08); --text:#f2f4f7; --text-2:#aab4c3; --text-3:#7c8797;
  --chip:#151929; --shadow:0 1px 2px rgba(0,0,0,.4),0 8px 24px rgba(0,0,0,.35);
  --glass:rgba(10,14,26,.85); --accent-soft:rgba(251,191,36,.16); --secondary:#7c3aed; --secondary-soft:rgba(124,58,237,.16);
  --card:var(--surface); --border:var(--line); --h-card:var(--surface); --h-line:var(--line);
}
html[data-theme="light"]{
  color-scheme:light;
  --ld-ochre-glass:rgba(224,165,38,.18);
  --ld-ochre-glass-strong:rgba(224,165,38,.24);
  --bg:#f0f2f5; --bg-elev:#ffffff; --surface:#ffffff; --surface-2:#e8eaf0;
  --line:rgba(16,24,40,.09); --text:#101828; --text-2:#475467; --text-3:#667085;
  --chip:#ffffff; --shadow:0 1px 2px rgba(16,24,40,.06),0 6px 20px rgba(16,24,40,.08);
  --glass:rgba(255,255,255,.86); --accent-soft:rgba(251,191,36,.10);
  --card:var(--surface); --border:var(--line); --h-card:var(--surface); --h-line:var(--line);
}
html[data-theme="light"] body{
  background: linear-gradient(180deg, #e8e0f5 0%, #f0f2f5 30%, #e8e5f0 60%, #ddd8e8 100%);
}

*,*::before,*::after{box-sizing:border-box}
html{background: linear-gradient(180deg, #2d1b4e 0%, #1a1025 30%, #0f0a1a 60%, #0a0812 100%);min-height:100vh;overflow-x:hidden;}
body{font-family:var(--font);background:transparent;color:var(--text);font-size:16px;line-height:1.5;
  -webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent;
  min-height: 100vh;
  padding-bottom:calc(var(--tab-h) + env(safe-area-inset-bottom))}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
button,input,select{font:inherit;color:inherit}
svg{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.skip{position:absolute;left:-999px;top:0}
.skip:focus{left:var(--s2);z-index:100;background:var(--accent);color:#fff;padding:var(--s2) var(--s3);border-radius:var(--r-sm)}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.wrap{width:100%;max-width:1120px;margin:0 auto;padding:0 var(--s4)}

/* ---------- Header: flex + gap, wraps search to its own row on phones ---------- */
.topbar{position:sticky;top:0;z-index:40;background:transparent;backdrop-filter:saturate(1.4) blur(14px);
  -webkit-backdrop-filter:saturate(1.4) blur(14px);border-bottom:1px solid var(--line);
  padding-top:env(safe-area-inset-top)}
.topbar__inner{max-width:1120px;margin:0 auto;padding:var(--s2) var(--s4) var(--s3);
  display:flex;flex-wrap:wrap;align-items:center;gap:var(--s2) var(--s3)}
.brand{display:flex;align-items:center;gap:var(--s2);min-width:0;flex:1 1 auto;min-height:44px}
.brand__logo{width:32px;height:22px;object-fit:contain;flex:0 0 auto}
.brand__text{display:flex;flex-direction:column;min-width:0;line-height:1.15}
.brand__name{font-weight:800;font-size:20px;letter-spacing:-.02em;white-space:nowrap}
.brand__tag{font-size:12px;color:var(--text-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.iconbtn{flex:0 0 auto;width:44px;height:44px;border-radius:var(--r-pill);border:1px solid var(--line);
  background:var(--surface);display:grid;place-items:center;cursor:pointer}
.iconbtn svg{width:20px;height:20px}
html[data-theme="dark"] .i-moon,html[data-theme="light"] .i-sun{display:none}
.search{order:3;flex:1 1 100%;min-width:0;display:flex;align-items:center;gap:var(--s2);height:44px;
  padding:0 var(--s3);border-radius:var(--r-pill);background:var(--surface);border:1px solid var(--line)}
.search:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
.search__icon{width:18px;height:18px;color:var(--text-3);flex:0 0 auto}
.search input{flex:1;min-width:0;border:0;background:transparent;outline:0;font-size:16px;height:100%}
.search input::placeholder{color:var(--text-3)}
@media (min-width:640px){
  .topbar__inner{flex-wrap:nowrap;padding-bottom:var(--s2)}
  .brand{flex:0 0 auto}
  .search{order:0;flex:1 1 auto;max-width:520px;margin-left:auto}
}

/* --- premium card design (Lapdrop examples style) --- */
.card { position: relative; overflow: hidden; border-radius: 16px; border: none; background: var(--surface); box-shadow: 0 4px 16px rgba(0,0,0,0.2); transition: transform 0.2s, box-shadow 0.2s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
.card::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 60%; background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, transparent 100%); pointer-events: none; }
.card__body { position: relative; z-index: 2; }
.card__title { font-weight: 700; font-size: 18px; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.5); }
.card__meta { font-size: 12px; color: rgba(255,255,255,0.7); }
.card__price { font-weight: 700; font-size: 16px; color: var(--accent); text-shadow: 0 1px 3px rgba(0,0,0,0.5); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; padding: 8px 0; }
.hero { background: linear-gradient(135deg, #1a1a2e 0%, #2d1b4e 50%, #1a1a2e 100%); border-radius: 20px; padding: 24px; margin: 16px 0; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: 0; right: 0; width: 50%; height: 100%; background: linear-gradient(135deg, transparent, rgba(124,58,237,0.2)); }
.hero__title { font-size: 28px; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.hero__eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); font-weight: 600; }
.topbar { background: transparent; backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar__inner { max-width: 1200px; margin: 0 auto; }
.brand__name { font-weight: 800; font-size: 20px; background: linear-gradient(135deg, var(--accent), var(--secondary, #7c3aed)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.chip { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 6px 14px; font-size: 13px; color: var(--text-2); transition: all 0.2s; }
.chip.is-on { background: var(--accent); color: #000; border-color: var(--accent); font-weight: 600; }
.btn--primary { background: linear-gradient(135deg, var(--accent), #f59e0b); border: none; color: #000; font-weight: 600; border-radius: 12px; padding: 10px 20px; }
.btn--ghost { background: var(--surface-2); border: 1px solid var(--line); color: var(--text); border-radius: 12px; }
.empty { text-align: center; padding: 40px 20px; color: var(--text-3); }
.empty h3 { color: var(--text); font-size: 18px; margin-bottom: 8px; }
.hero{margin:var(--s4) 0 var(--s3);padding:var(--s5) var(--s4);border-radius:var(--r-lg);position:relative;overflow:hidden;
  background:radial-gradient(120% 140% at 100% 0%,rgba(232,51,84,.55) 0%,rgba(232,51,84,0) 55%),
             linear-gradient(135deg,#1b0f1a 0%,#121821 60%);color:#fff}
html[data-theme="light"] .hero{background:radial-gradient(120% 140% at 100% 0%,rgba(232,51,84,.95) 0%,rgba(232,51,84,0) 60%),
             linear-gradient(135deg,#2a1020 0%,#3b1424 100%)}
.hero__eyebrow{margin:0 0 var(--s2);font-size:12px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:rgba(255,255,255,.75)}
.hero__title{margin:0 0 var(--s4);font-size:26px;line-height:1.15;font-weight:800;letter-spacing:-.02em;max-width:20ch}
.stats{display:flex;flex-wrap:wrap;gap:var(--s2)}
.stat{display:flex;align-items:baseline;gap:6px;padding:6px var(--s3);border-radius:var(--r-pill);
  background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.16);font-size:13px;color:rgba(255,255,255,.85)}
.stat b{font-size:15px;color:#fff}

/* ---------- Chips (horizontal scroll, never ragged) ---------- */
.chips-bar{position:sticky;top:calc(var(--header-h) + env(safe-area-inset-top));z-index:30;background:transparent;
  padding:var(--s2) 0;border-bottom:1px solid transparent}
.chips-bar.is-stuck{border-bottom-color:var(--line)}
.chips{display:flex;gap:var(--s2);overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;
  -webkit-overflow-scrolling:touch;scrollbar-width:none;padding:2px max(var(--s4),calc((100vw - 1120px)/2 + var(--s4)))}
.chips::-webkit-scrollbar{display:none}
.chips--sub{margin-top:var(--s2)}
.chip{flex:0 0 auto;scroll-snap-align:start;display:inline-flex;align-items:center;gap:6px;height:40px;padding:0 var(--s4);
  border-radius:var(--r-pill);border:1px solid var(--line);background:var(--chip);font-size:14px;font-weight:600;
  white-space:nowrap;cursor:pointer;transition:background .15s var(--ease),border-color .15s,color .15s}
.chip small{font-weight:500;color:var(--text-3);font-size:12px}
.chip[aria-selected="true"],.chip.is-on{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}
.chip[aria-selected="true"] small,.chip.is-on small{color:rgba(255,255,255,.8)}
.chips--sub .chip{height:34px;font-size:13px;padding:0 var(--s3)}
.chip:disabled{opacity:.45;cursor:default}

/* ---------- Sections / rails ---------- */
.section-head{display:flex;align-items:center;justify-content:space-between;gap:var(--s3);margin:var(--s5) 0 var(--s2)}
.section-title{margin:var(--s5) 0 var(--s3);font-size:20px;font-weight:800;letter-spacing:-.01em}
.section-head .section-title{margin:0}
.section-sub{margin:-8px 0 var(--s3);color:var(--text-2);font-size:14px}
.rail{display:grid;grid-auto-flow:column;grid-auto-columns:78%;gap:var(--s3);overflow-x:auto;scroll-snap-type:x mandatory;
  scrollbar-width:none;margin:0 calc(-1 * var(--s4));padding:2px var(--s4) var(--s2)}
.rail::-webkit-scrollbar{display:none}
.rail > *{scroll-snap-align:start}
@media (min-width:640px){.rail{grid-auto-columns:44%}}
@media (min-width:960px){.rail{grid-auto-columns:31%}}

/* ---------- Cards ---------- */
.grid{display:grid;gap:var(--s4);grid-template-columns:minmax(0,1fr)}
.grid > *{min-width:0}
@media (min-width:560px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (min-width:780px){.grid{grid-template-columns:repeat(3,minmax(0,1fr))}.grid--compact{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (min-width:1080px){.grid{grid-template-columns:repeat(4,minmax(0,1fr))}.grid--compact{grid-template-columns:repeat(3,minmax(0,1fr))}}
.card{display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);
  overflow:hidden;box-shadow:var(--shadow);transition:transform .2s var(--ease)}
.card:active{transform:scale(.985)}
@media (hover:hover){.card:hover{transform:translateY(-2px)}}
.media{position:relative;aspect-ratio:16/10;background:var(--surface-2);overflow:hidden}
.media img{width:100%;height:100%;object-fit:cover}
.media .badges{position:absolute;left:var(--s2);top:var(--s2);display:flex;gap:6px;flex-wrap:wrap}
.badge{display:inline-flex;align-items:center;gap:4px;height:24px;padding:0 var(--s2);border-radius:var(--r-pill);
  font-size:12px;font-weight:700;background:rgba(11,15,20,.72);color:#fff;backdrop-filter:blur(6px)}
.badge--accent{background:var(--accent)}
.badge--date{background:#fff;color:#101828}
/* No-image block: solid colour + initial (never a shared stock photo) */
.initial{position:absolute;inset:0;display:grid;place-items:center;color:rgba(255,255,255,.95);
  font-size:56px;font-weight:800;letter-spacing:-.03em;background:var(--tone,#334155)}
.initial::after{content:"";position:absolute;inset:0;background:radial-gradient(90% 90% at 100% 0%,rgba(255,255,255,.18),transparent 60%)}
.initial--sm{font-size:22px;border-radius:var(--r-md)}
.card__body{display:flex;flex-direction:column;gap:6px;padding:var(--s3) var(--s4) var(--s4);flex:1}
.card__type{font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--accent)}
.card__title{margin:0;font-size:17px;font-weight:700;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.card__meta{display:flex;align-items:center;gap:6px;color:var(--text-2);font-size:14px;min-width:0}
.card__meta{display:flex;align-items:center;gap:6px;color:var(--text-2);font-size:14px;min-width:0}
.card__dot{width:8px;height:8px;border-radius:50%;background:var(--tone,var(--accent));flex:0 0 auto;margin-right:6px}
.card__cat-name{font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.card__town{font-weight:600}
.card__meta svg{width:15px;height:15px;flex:0 0 auto;color:var(--text-3)}
.card__meta span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.card__foot{margin-top:auto;padding-top:var(--s2);display:flex;align-items:center;justify-content:space-between;gap:var(--s2);
  font-size:13px;font-weight:600;color:var(--text-3)}
.card__foot .go{display:inline-flex;align-items:center;gap:4px;color:var(--accent)}
.card__foot .go svg{width:14px;height:14px}

.result-count{margin:0 0 var(--s3);color:var(--text-3);font-size:14px}
.sort select{height:40px;border-radius:var(--r-pill);border:1px solid var(--line);background:var(--surface);padding:0 var(--s3);font-size:14px;font-weight:600}
.more{display:flex;justify-content:center;padding:var(--s5) 0 var(--s6)}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:var(--s2);min-height:44px;padding:0 var(--s5);
  border-radius:var(--r-pill);font-weight:700;font-size:15px;border:1px solid transparent;cursor:pointer;white-space:nowrap}
.btn--primary{background:var(--accent);color:#fff}
.btn--primary:hover{background:var(--accent-600)}
.btn--ghost{background:var(--surface);border-color:var(--line)}
.empty{padding:var(--s6) var(--s4);text-align:center;border:1px dashed var(--line);border-radius:var(--r-lg);background:var(--bg-elev)}
.empty h3{margin:var(--s3) 0 var(--s1);font-size:18px}
.empty p{margin:0 auto var(--s4);color:var(--text-2);max-width:38ch;font-size:15px}
.empty .ico{width:56px;height:56px;margin:0 auto;border-radius:var(--r-pill);display:grid;place-items:center;background:var(--accent-soft);color:var(--accent)}
.empty .ico svg{width:26px;height:26px}
.empty .actions{display:flex;gap:var(--s2);justify-content:center;flex-wrap:wrap}
.skeleton{border-radius:var(--r-lg);background:linear-gradient(90deg,var(--surface) 0,var(--surface-2) 50%,var(--surface) 100%);background-size:200% 100%;animation:sk 1.2s infinite;height:260px}
@keyframes sk{to{background-position:-200% 0}}

/* ---------- Pages ---------- */
.page-title{margin:var(--s5) 0 var(--s1);font-size:28px;font-weight:800;letter-spacing:-.02em}
.page-sub{margin:0 0 var(--s4);color:var(--text-2);font-size:15px;max-width:60ch}
.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);padding:var(--s4);box-shadow:var(--shadow)}
.list{list-style:none;margin:0;padding:0;display:grid;gap:var(--s2);grid-template-columns:minmax(0,1fr)}
.list > li{min-width:0}
@media (min-width:780px){.list{grid-template-columns:repeat(2,minmax(0,1fr))}}
.row{min-width:0;display:flex;align-items:center;gap:var(--s3);padding:var(--s3);background:var(--surface);border:1px solid var(--line);border-radius:var(--r-md);min-height:72px}
.row__media{position:relative;width:52px;height:52px;flex:0 0 auto;border-radius:var(--r-md);overflow:hidden}
.row__media img{width:100%;height:100%;object-fit:cover}
.row__body{min-width:0;flex:1}
.row__title{margin:0;font-weight:700;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.row__meta{margin:2px 0 0;color:var(--text-2);font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.row__chev{width:18px;height:18px;color:var(--text-3);flex:0 0 auto}
.pill{display:inline-block;padding:0 6px;border-radius:6px;font-size:11px;font-weight:700;background:var(--surface-2);color:var(--text-2);margin-left:4px;vertical-align:1px}
.guest{display:grid;grid-template-columns:auto 1fr;gap:var(--s3) var(--s4);align-items:center}
.guest__avatar{width:56px;height:56px;border-radius:var(--r-pill);background:var(--accent-soft);color:var(--accent);display:grid;place-items:center}
.guest__avatar svg{width:28px;height:28px}
.guest__title{margin:0;font-weight:800;font-size:17px}
.guest__sub{margin:2px 0 0;color:var(--text-2);font-size:14px}
.guest__actions{grid-column:1/-1;display:flex;gap:var(--s2);flex-wrap:wrap}
.guest__actions .btn{flex:1 1 140px}
.seg{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;padding:4px;border-radius:var(--r-pill);background:var(--surface-2)}
.seg button{min-height:40px;border:0;border-radius:var(--r-pill);background:transparent;font-weight:700;font-size:14px;cursor:pointer;color:var(--text-2)}
.seg button[aria-checked="true"]{background:var(--surface);color:var(--text);box-shadow:var(--shadow)}
.links{list-style:none;margin:0;padding:var(--s1) var(--s4)}
.links li + li{border-top:1px solid var(--line)}
.links a{display:flex;flex-direction:column;padding:var(--s3) 0;font-weight:700;min-height:44px}
.links a span{font-weight:500;color:var(--text-2);font-size:14px}
.datainfo{font-size:14px;color:var(--text-2)}
.datainfo dl{display:grid;grid-template-columns:auto 1fr;gap:6px var(--s4);margin:0}
.datainfo dt{color:var(--text-3)}
.datainfo dd{margin:0;color:var(--text);font-weight:600;text-align:right}
#view-profile .wrap{max-width:720px;padding-bottom:var(--s6)}

/* ---------- Map ---------- */
.chips-bar--map{position:relative;top:auto}
.map-wrap {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--accent);
}
.map-wrap #map {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}
.map-radar {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 50%;
  overflow: hidden;
  pointer-events: none;
  z-index: 10;
}
.radar-drops {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
}
.radar-drop {
  position: absolute;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: drop-pulse 2s ease-in-out infinite;
  cursor: pointer;
  pointer-events: auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
}
.radar-drop__emoji {
  font-size: 18px;
  filter: drop-shadow(0 0 8px rgba(251,191,36,.6));
  pointer-events: none;
}
.radar-drop__pulse {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--accent);
  animation: pulse-ring 2s ease-out infinite;
  pointer-events: none;
}
@keyframes pulse-ring {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(2.5); opacity: 0; }
}
#map{position:absolute;inset:0;background:var(--surface-2)}
.map-badge{position:absolute;left:50%;transform:translateX(-50%);top:var(--s3);z-index:500;background:var(--glass);
  backdrop-filter:blur(10px);border:1px solid var(--line);padding:6px var(--s3);border-radius:var(--r-pill);font-size:13px;font-weight:700;white-space:nowrap}
.leaflet-container{font-family:var(--font)}
.leaflet-popup-content-wrapper{border-radius:var(--r-md);padding:0;overflow:hidden;background:var(--surface);color:var(--text)}
.leaflet-popup-tip{background:var(--surface)}
.leaflet-popup-content{margin:0;width:240px!important}
.pop .media{aspect-ratio:16/9}
.pop .initial{font-size:40px}
.pop__body{padding:var(--s3)}
.pop__title{margin:0 0 2px;font-weight:700;font-size:15px;line-height:1.3}
.pop__meta{margin:0 0 var(--s2);color:var(--text-2);font-size:13px}
.pop a.go{color:var(--accent);font-weight:700;font-size:13px}
html[data-theme="dark"] .leaflet-bar a{background:var(--surface);color:var(--text);border-color:var(--line)}
html[data-theme="dark"] .leaflet-control-attribution{background:rgba(11,15,20,.7);color:var(--text-3)}
html[data-theme="dark"] .leaflet-control-attribution a{color:var(--text-2)}

/* ---------- Global UI Polish ---------- */
.view { padding: 0 var(--s4); animation: viewFadeIn 0.25s var(--ease); }
@keyframes viewFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s4); margin: var(--s3) 0; box-shadow: var(--shadow); }
.service-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s4); text-align: center; cursor: pointer; transition: all 0.2s var(--ease); }
.service-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); margin: var(--s4) 0; }
.btn { border-radius: var(--r-pill); padding: 0 var(--s5); font-weight: 700; cursor: pointer; transition: all 0.2s var(--ease); border: 1px solid transparent; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-600); transform: translateY(-1px); }
.btn--ghost { background: var(--surface); border-color: var(--line); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); }
.btn--sm { min-height: 32px; padding: 0 var(--s3); font-size: 13px; }
.input { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s2) var(--s3); color: var(--text); font-size: 15px; transition: border-color 0.2s; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.chip { display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 var(--s3); border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s var(--ease); white-space: nowrap; }
.chip:hover { border-color: var(--accent); background: var(--accent-soft); }
.page-title { font-size: 26px; font-weight: 800; margin: var(--s5) 0 var(--s1); color: var(--text); letter-spacing: -0.02em; }
.page-sub { font-size: 15px; color: var(--text-2); margin: 0 0 var(--s4); line-height: 1.5; }
/* Loading spinner */
.loading-spinner { display: inline-block; width: 24px; height: 24px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { display: flex; align-items: center; justify-content: center; gap: var(--s2); padding: var(--s5); color: var(--text-2); font-size: 14px; }
/* Empty state improvements */
.empty { padding: var(--s6) var(--s4); text-align: center; border: 1px dashed var(--line); border-radius: var(--r-lg); background: var(--bg-elev); }
.empty .ico { width: 64px; height: 64px; margin: 0 auto var(--s3); border-radius: var(--r-pill); display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.empty .ico svg { width: 32px; height: 32px; }
.empty h3 { margin: var(--s2) 0 var(--s1); font-size: 18px; font-weight: 700; }
.empty p { margin: 0 auto var(--s4); color: var(--text-2); max-width: 38ch; font-size: 15px; line-height: 1.5; }
.empty .actions { display: flex; gap: var(--s2); justify-content: center; flex-wrap: wrap; }
/* Interest bubbles polish */
.interest-add { display: flex; gap: var(--s2); margin-bottom: var(--s3); }
.interest-add .input { flex: 1; }
.interest-suggestions { display: flex; flex-wrap: wrap; gap: var(--s1); margin-bottom: var(--s3); }
.interest-list { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s3); }
.interest-item { display: flex; align-items: center; gap: var(--s2); padding: var(--s1) var(--s3); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill); cursor: pointer; transition: all 0.2s; }
.interest-item:hover { border-color: var(--accent); transform: translateY(-1px); }
.interest-tag { font-weight: 600; color: var(--accent); }
.interest-count { font-size: 12px; color: var(--text-3); }
/* Navigation instruments polish */
.nav-tabs { display: flex; gap: var(--s2); margin-bottom: var(--s4); }
.nav-tab { padding: var(--s2) var(--s3); border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); cursor: pointer; transition: all 0.2s; font-weight: 600; font-size: 13px; }
.nav-tab:hover { border-color: var(--accent); }
.nav-tab.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
/* Bubble rooms polish */
.bubble-room { margin-top: var(--s4); }
.bubble-room-header { display: flex; align-items: center; gap: var(--s3); margin-bottom: var(--s3); flex-wrap: wrap; }
.bubble-room-header h3 { margin: 0; color: var(--accent); font-size: 20px; }
.bubble-room-meta { color: var(--text-3); font-size: 12px; margin: 0; }
.bubble-room-timeline { max-height: 320px; overflow-y: auto; margin-bottom: var(--s3); display: flex; flex-direction: column; gap: var(--s2); }
.bubble-post { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s3); }
.bubble-post--business { background: var(--accent-soft); border-color: var(--accent); }
.bubble-post__author { font-weight: 600; color: var(--secondary, #7c3aed); font-size: 13px; }
.bubble-post__text { color: var(--text); margin: var(--s1) 0; line-height: 1.5; }
.bubble-post__time { font-size: 11px; color: var(--text-3); }
.bubble-room-input { display: flex; gap: var(--s2); }
.bubble-room-input .input { flex: 1; }
/* Better mobile touch targets */
@media (max-width: 640px) {
  .tabbar a { min-width: 52px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .miniprogram-grid { grid-template-columns: repeat(2, 1fr); }
}
.tabbar{position:fixed;left:0;right:0;bottom:0;z-index:50;display:flex;overflow-x:auto;scrollbar-width:none;-ms-overflow-style:none;
  height:calc(var(--tab-h) + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);
  background:var(--glass);backdrop-filter:saturate(1.4) blur(14px);-webkit-backdrop-filter:saturate(1.4) blur(14px);border-top:1px solid var(--line)}
.tabbar::-webkit-scrollbar{display:none}
.tabbar a{flex:0 0 auto;min-width:56px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:10px;font-weight:600;color:var(--text-3);min-height:44px;position:relative}
.tabbar svg{width:22px;height:22px}
.tabbar a[aria-current="page"]{color:var(--accent)}
.tabbar a[aria-current="page"]::before{content:"";position:absolute;top:0;width:28px;height:3px;border-radius:0 0 3px 3px;background:var(--accent)}
@media (min-width:780px){
  .tabbar{left:50%;right:auto;transform:translateX(-50%);width:min(560px,calc(100% - 32px));bottom:var(--s3);
    border:1px solid var(--line);border-radius:var(--r-lg);height:var(--tab-h);padding-bottom:0;box-shadow:var(--shadow)}
  body{padding-bottom:calc(var(--tab-h) + 24px)}
  .hero{padding:var(--s6)}
  .hero__title{font-size:34px}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}

/* Compact card (no own photo): initial / date tile + text — never a stock image */
.card--compact{flex-direction:row;align-items:center;gap:var(--s3);padding:var(--s3);border-radius:var(--r-md);min-height:84px}
.card--compact .card__body{padding:0;gap:2px;min-width:0}
.card--compact .card__title{font-size:16px}
.card--compact .row__chev{margin-left:auto}
.ctile{position:relative;width:60px;height:60px;flex:0 0 auto;border-radius:var(--r-md);overflow:hidden}
.datetile{width:60px;height:60px;flex:0 0 auto;border-radius:var(--r-md);display:flex;flex-direction:column;align-items:center;justify-content:center;
  background:var(--accent-soft);color:var(--accent);line-height:1}
.datetile b{font-size:22px;font-weight:800}
.datetile span{font-size:12px;font-weight:700;text-transform:uppercase;margin-top:3px}
.pill--accent{background:var(--accent-soft);color:var(--accent)}
.card__type .pill{text-transform:none;letter-spacing:0}
.grid--compact{gap:var(--s2)}
@media (min-width:560px){.grid{align-items:start}}
.results{display:flex;flex-direction:column;gap:var(--s4)}
.results .skeleton{height:200px}
/* OSM tiles; dark theme gets a tasteful inverted basemap */
html[data-theme="dark"] .leaflet-container:not(.ld-carto) .leaflet-tile-pane{filter:invert(1) hue-rotate(180deg) brightness(.9) contrast(.88) saturate(.6)}
.map-badge[hidden]{display:none}
.offline-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #ef4444;
  color: white;
  text-align: center;
  padding: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  z-index: 9999;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* ---------- Back Office ---------- */
.bo-section{margin-bottom:var(--s5)}
.bo-section h3{font-size:16px;font-weight:700;margin:0 0 var(--s3)}
.bo-list{display:flex;flex-direction:column;gap:var(--s2)}
.bo-item{display:flex;align-items:center;gap:var(--s3);padding:var(--s3);background:var(--surface);border:1px solid var(--line);border-radius:var(--r-md)}
.bo-item__title{font-weight:600;font-size:14px;flex:1}
.bo-item__meta{font-size:12px;color:var(--text-3)}
.bo-item__status{font-size:11px;padding:2px 8px;border-radius:var(--r-pill);background:var(--chip);color:var(--text-2)}
.bo-item__status.featured{background:var(--accent-soft);color:var(--accent)}
.bo-item__actions{display:flex;gap:var(--s1)}
.bo-stats{display:flex;flex-direction:column;gap:var(--s1)}
.bo-stat{display:flex;justify-content:space-between;padding:var(--s2) var(--s3);background:var(--surface);border:1px solid var(--line);border-radius:var(--r-sm);font-size:13px}
.bo-stat__val{font-weight:700;color:var(--accent)}
.bo-msg{padding:var(--s3);background:var(--surface);border:1px solid var(--line);border-radius:var(--r-md);margin-bottom:var(--s2)}
.bo-msg__from{font-weight:600;font-size:13px;color:var(--accent)}
.bo-msg__text{font-size:14px;margin:var(--s1) 0}
.bo-msg__time{font-size:11px;color:var(--text-3)}
.bo-actions{margin-top:var(--s4)}

/* ---------- Chat Rooms ---------- */
.chat-container{display:flex;flex-direction:column;height:calc(100vh - var(--header-h) - var(--tab-h));max-height:600px}
.chat-rooms{display:flex;flex-direction:column;gap:var(--s2);padding:var(--s3);max-height:400px;overflow-y:auto}
.chat-room{display:flex;align-items:center;gap:var(--s3);padding:var(--s3);background:var(--surface);border:1px solid var(--line);border-radius:var(--r-md);cursor:pointer;transition:all .15s}
.chat-room:hover{border-color:var(--accent);background:var(--surface-2)}
.chat-room__avatar{width:40px;height:40px;border-radius:50%;background:var(--accent-soft);display:grid;place-items:center;font-size:18px;flex:0 0 auto}
.chat-room__info{flex:1;min-width:0}
.chat-room__name{font-weight:600;font-size:14px}
.chat-room__preview{font-size:12px;color:var(--text-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chat-room__badge{background:var(--accent);color:var(--accent-ink);font-size:11px;font-weight:700;padding:2px 6px;border-radius:var(--r-pill)}
.chat-messages{flex:1;overflow-y:auto;padding:var(--s3);display:flex;flex-direction:column;gap:var(--s2)}
.chat-bubble{max-width:75%;padding:var(--s2) var(--s3);border-radius:var(--r-lg);font-size:14px;line-height:1.4}
.chat-bubble--me{align-self:flex-end;background:var(--accent);color:var(--accent-ink);border-bottom-right-radius:4px}
.chat-bubble--them{align-self:flex-start;background:var(--surface-2);border:1px solid var(--line);border-bottom-left-radius:4px}
.chat-bubble__sender{font-size:11px;font-weight:600;margin-bottom:2px;opacity:.8}
.chat-input{display:flex;gap:var(--s2);padding:var(--s3);border-top:1px solid var(--line);background:var(--bg-elev)}
.chat-input input{flex:1;padding:var(--s2) var(--s3);border-radius:var(--r-pill);border:1px solid var(--line);background:var(--surface);color:var(--text)}
.chat-input button{flex:0 0 auto}

/* ---------- Services Grid ---------- */
.services-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--s3);margin-bottom:var(--s5)}
.service-card{display:flex;flex-direction:column;align-items:center;gap:var(--s1);padding:var(--s4);background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);cursor:pointer;transition:all .15s;text-align:center}
.service-card:hover{border-color:var(--accent);transform:translateY(-2px);box-shadow:var(--shadow)}
.service-icon{font-size:28px}
.service-name{font-weight:600;font-size:13px}
.service-desc{font-size:11px;color:var(--text-3)}
.service-panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);padding:var(--s4);margin-top:var(--s4)}
.service-panel h3{margin:0 0 var(--s2);font-size:18px}
.service-panel p{color:var(--text-2);font-size:14px;margin:0 0 var(--s3)}

/* ---------- QR Scanner ---------- */
.qr-viewfinder{margin:var(--s3) 0;text-align:center}
.qr-result{padding:var(--s3);background:var(--surface-2);border-radius:var(--r-md);margin:var(--s3) 0;font-size:14px;min-height:40px;display:flex;align-items:center;justify-content:center}

/* ---------- Wallet ---------- */
.wallet-balance{text-align:center;padding:var(--s4);background:var(--accent-soft);border-radius:var(--r-lg);margin:var(--s3) 0}
.wallet-balance__label{font-size:12px;color:var(--text-3);text-transform:uppercase;letter-spacing:.5px}
.wallet-balance__amount{font-size:32px;font-weight:800;color:var(--accent)}
.wallet-actions{display:flex;gap:var(--s2);justify-content:center;margin:var(--s3) 0}
.wallet-txns{display:flex;flex-direction:column;gap:var(--s1)}
.wallet-txn{display:flex;justify-content:space-between;padding:var(--s2) var(--s3);background:var(--surface-2);border-radius:var(--r-sm);font-size:13px}
.wallet-txn__amount.in{color:#22c55e;font-weight:600}
.wallet-txn__amount.out{color:#ef4444;font-weight:600}

/* ---------- Voice Call ---------- */
.call-contacts{display:flex;flex-direction:column;gap:var(--s2)}
.call-contact{display:flex;align-items:center;gap:var(--s3);padding:var(--s3);background:var(--surface-2);border-radius:var(--r-md)}
.call-contact__avatar{width:36px;height:36px;border-radius:50%;background:var(--accent);color:var(--accent-ink);display:grid;place-items:center;font-weight:700}
.call-contact__name{flex:1;font-weight:600;font-size:14px}
.call-contact__actions{display:flex;gap:var(--s1)}
.call-active{text-align:center;padding:var(--s4)}
.call-active__icon{font-size:48px;margin-bottom:var(--s2)}
.call-active__name{font-size:18px;font-weight:700;margin-bottom:var(--s1)}
.call-active__timer{font-size:24px;font-family:monospace;color:var(--accent);margin-bottom:var(--s3)}

/* ---------- Red Packet ---------- */
.redpacket-form{display:flex;flex-direction:column;gap:var(--s2)}
.redpacket-form label{font-size:13px;font-weight:600;color:var(--text-2)}
.redpacket-form .input{padding:var(--s2) var(--s3);border-radius:var(--r-md);border:1px solid var(--line);background:var(--surface-2);color:var(--text)}
.redpacket-sent{display:flex;gap:var(--s3);align-items:center;margin-top:var(--s3);padding:var(--s3);background:var(--accent-soft);border-radius:var(--r-md)}
.redpacket-envelope{font-size:48px}
.redpacket-info strong{display:block;margin-bottom:var(--s1)}
.rp-msg{font-style:italic;color:var(--text-2);font-size:13px}

/* ---------- Mini Programs ---------- */
.miniprogram-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--s2);margin:var(--s3) 0}
.miniprogram-card{display:flex;flex-direction:column;align-items:center;gap:var(--s1);padding:var(--s3);background:var(--surface-2);border:1px solid var(--line);border-radius:var(--r-md);cursor:pointer;transition:all .15s}
.miniprogram-card:hover{border-color:var(--accent)}
.miniprogram-icon{font-size:24px}
.miniprogram-name{font-weight:600;font-size:12px}
.miniprogram-desc{font-size:10px;color:var(--text-3);text-align:center}
.miniapp{padding:var(--s3);background:var(--surface-2);border-radius:var(--r-md);margin-top:var(--s3)}
.calc-result{font-size:20px;font-weight:700;color:var(--accent);margin-top:var(--s2);min-height:28px}

/* ---------- Location Sharing ---------- */
.loc-card{padding:var(--s3);background:var(--surface-2);border-radius:var(--r-md);margin-top:var(--s3)}
.loc-card__coords{font-size:14px;line-height:1.6;margin-bottom:var(--s2)}
.loc-card__actions{display:flex;gap:var(--s2)}

/* ---------- Route Planner ---------- */
.route-form{display:flex;flex-direction:column;gap:var(--s2);margin:var(--s4) 0}
.route-form .input{padding:var(--s2) var(--s3);border-radius:var(--r-md);border:1px solid var(--line);background:var(--surface);color:var(--text)}
.route-options{display:flex;flex-wrap:wrap;gap:var(--s3);margin:var(--s2) 0}
.route-options label{display:flex;align-items:center;gap:var(--s1);font-size:13px;cursor:pointer}
.route-summary{padding:var(--s3);background:var(--accent-soft);border-radius:var(--r-md);margin:var(--s3) 0}
.route-summary h3{margin:0 0 var(--s1);font-size:16px}
.route-summary p{margin:0;font-size:13px;color:var(--text-2)}
.route-section{margin:var(--s4) 0}
.route-section h4{font-size:14px;font-weight:700;margin:0 0 var(--s2)}
.route-poi{display:flex;align-items:center;gap:var(--s2);padding:var(--s2) var(--s3);background:var(--surface);border:1px solid var(--line);border-radius:var(--r-sm);margin-bottom:var(--s1)}
.route-poi__icon{font-size:18px;flex:0 0 auto}
.route-poi__info{flex:1;min-width:0}
.route-poi__name{font-weight:600;font-size:13px}
.route-poi__meta{font-size:11px;color:var(--text-3)}
.route-poi__price{font-weight:700;color:var(--accent);font-size:13px}

.interest-add { display: flex; gap: 8px; margin-bottom: 12px; }
.interest-add .input { flex: 1; padding: 8px 12px; border: 1px solid #2a2a45; border-radius: 8px; background: #1a1a2e; color: #fff; }
.interest-suggestions { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.interest-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.interest-item { display: flex; align-items: center; gap: 8px; padding: 6px 12px; background: #1a1a2e; border: 1px solid #2a2a45; border-radius: 20px; }
.interest-tag { font-weight: 600; color: #fbbf24; }
.interest-count { font-size: 12px; color: #94a3b8; }
.nav-tabs { display: flex; gap: 6px; margin-bottom: 16px; }
.nav-tool { padding: 12px; }
.compass-display { display: flex; justify-content: center; margin: 16px 0; }
.compass-circle { width: 180px; height: 180px; border-radius: 50%; border: 3px solid #fbbf24; position: relative; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle, #1a1a2e 0%, #0b1020 100%); }
.compass-needle { font-size: 48px; color: #ef4444; transition: transform 0.3s; position: absolute; top: 10px; }
.compass-label { font-size: 24px; font-weight: bold; color: #fbbf24; }
.compass-info { text-align: center; font-size: 18px; font-weight: bold; color: #fbbf24; margin: 8px 0; }
.sextant-display, .octant-display { margin: 16px 0; text-align: center; }
.sextant-scale, .octant-scale { width: 200px; height: 100px; margin: 0 auto; position: relative; border-bottom: 3px solid #2a2a45; border-left: 3px solid #2a2a45; border-right: 3px solid #2a2a45; border-radius: 0 0 100px 100px; overflow: hidden; background: #1a1a2e; }
.sextant-arc, .octant-arc { position: absolute; bottom: 0; left: 50%; width: 2px; height: 90px; background: #ef4444; transform-origin: bottom center; transition: transform 0.2s; margin-left: -1px; }
.sextant-reading, .octant-reading { font-size: 24px; font-weight: bold; color: #fbbf24; margin-top: 8px; }
.sextant-controls, .octant-controls { margin: 12px 0; }
.sextant-value, .octant-value { text-align: center; font-size: 16px; color: #94a3b8; }
.sextant-info, .octant-info { margin-top: 12px; font-size: 12px; color: #94a3b8; line-height: 1.5; }
.sextant-info p, .octant-info p { margin: 6px 0; }
.slider { width: 100%; margin: 8px 0; }

.card__fav { position: absolute; top: 8px; right: 8px; background: rgba(0,0,0,0.5); border: none; border-radius: 50%; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 16px; z-index: 10; backdrop-filter: blur(4px); transition: transform 0.2s; }
.card__fav:hover { transform: scale(1.2); }
.card__share { position: absolute; top: 8px; right: 48px; background: rgba(0,0,0,0.5); border: none; border-radius: 50%; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 14px; z-index: 10; backdrop-filter: blur(4px); transition: transform 0.2s; }
.card__share:hover { transform: scale(1.2); }
.card__pin { position: absolute; top: 8px; left: 8px; background: rgba(0,0,0,0.5); border: none; border-radius: 50%; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 14px; z-index: 10; backdrop-filter: blur(4px); }
.card__follow { position: absolute; top: 8px; left: 44px; background: rgba(0,0,0,0.5); border: none; border-radius: 50%; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 14px; z-index: 10; backdrop-filter: blur(4px); }
.card { position: relative; }
.bubble-room { margin-top: 16px; }
.bubble-room-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.bubble-room-header h3 { margin: 0; color: #fbbf24; }
.bubble-room-meta { color: #94a3b8; font-size: 12px; margin: 0; }
.bubble-room-timeline { max-height: 300px; overflow-y: auto; margin-bottom: 12px; }
.bubble-post { background: #1a1a2e; border: 1px solid #2a2a45; border-radius: 8px; padding: 10px; margin-bottom: 8px; }
.bubble-post__author { font-weight: 600; color: #7c3aed; font-size: 13px; }
.bubble-post__text { color: #e2e8f0; margin: 4px 0; }
.bubble-post__time { font-size: 11px; color: #64748b; }
.bubble-room-input { display: flex; gap: 8px; }
.bubble-room-input .input { flex: 1; padding: 8px 12px; border: 1px solid #2a2a45; border-radius: 8px; background: #1a1a2e; color: #fff; }

/* --- loyalty --- */
.loyalty-balance { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 12px; }
.loyalty-balance__icon { font-size: 32px; }
.loyalty-balance__amount { font-size: 24px; font-weight: 700; color: var(--accent); }
.loyalty-balance__label { font-size: 12px; color: var(--text-3); }
.stamp-cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.stamp-card { background: var(--surface); border: 2px solid; border-radius: var(--r-md); padding: 12px; }
.stamp-card__header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.stamp-card__icon { font-size: 28px; }
.stamp-card__name { font-weight: 600; font-size: 14px; color: var(--text); }
.stamp-card__type { font-size: 11px; color: var(--text-3); }
.stamp-card__progress { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0; }
.stamp-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); }
.stamp-dot--filled { border-color: transparent; }
.stamp-card__footer { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-3); }
.stamp-card__reward { color: var(--accent); }
.stamp-card__complete { margin-top: 8px; padding: 4px 8px; background: var(--accent-soft); color: var(--accent); border-radius: var(--r-sm); font-size: 12px; text-align: center; font-weight: 600; }
.monthly-offers { display: flex; flex-direction: column; gap: 8px; }
.monthly-offer { display: flex; align-items: center; gap: 12px; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); opacity: 0.5; }
.monthly-offer--unlocked { opacity: 1; border-color: var(--accent); }
.monthly-offer__icon { font-size: 24px; }
.monthly-offer__info { flex: 1; }
.monthly-offer__title { font-weight: 600; font-size: 13px; color: var(--text); }
.monthly-offer__desc { font-size: 11px; color: var(--text-3); }
.monthly-offer__threshold { font-size: 12px; color: var(--text-2); font-weight: 600; }
.monthly-offer__badge { font-size: 11px; color: var(--accent); font-weight: 600; }

/* --- currency wallet --- */
.currency-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.currency-card--active { box-shadow: 0 0 0 2px var(--accent); }
.currency-card { background: var(--surface); border: 2px solid; border-radius: var(--r-md); padding: 12px; display: flex; flex-direction: column; gap: 6px; transition: all 0.2s; }
.currency-card:hover { transform: translateY(-2px); }
.currency-card__symbol { font-size: 28px; font-weight: 700; }
.currency-card__name { font-weight: 600; font-size: 13px; color: var(--text); }
.currency-card__country { font-size: 11px; color: var(--text-3); }
.currency-card__balance { font-size: 20px; font-weight: 700; color: var(--text); }
.currency-card__actions { display: flex; gap: 6px; }
.wallet-balance-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; text-align: center; margin-bottom: 12px; }
.wallet-balance-card__label { font-size: 12px; color: var(--text-3); }
.wallet-balance-card__amount { font-size: 36px; font-weight: 700; color: var(--accent); }
.wallet-balance-card__sub { font-size: 12px; color: var(--text-3); }

/* --- FAQ --- */
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; cursor: pointer; }
.faq-q { padding: 12px; font-weight: 600; font-size: 14px; color: var(--text); display: flex; justify-content: space-between; align-items: center; }
.faq-toggle { font-size: 18px; color: var(--accent); transition: transform 0.2s; }
.faq-item.open .faq-toggle { transform: rotate(45deg); }
.faq-a { padding: 0 12px; max-height: 0; overflow: hidden; transition: max-height 0.3s, padding 0.3s; font-size: 13px; color: var(--text-2); line-height: 1.5; }
.faq-item.open .faq-a { max-height: 200px; padding: 0 12px 12px; }

/* --- merchant --- */
.merchant-stats { display: flex; gap: 12px; margin: 12px 0; }
.merchant-stat { flex: 1; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px; text-align: center; }
.merchant-stat__value { font-size: 24px; font-weight: 700; color: var(--accent); }
.merchant-stat__label { font-size: 11px; color: var(--text-3); }
.merchant-benefits { display: flex; flex-direction: column; gap: 6px; margin: 12px 0; }
.merchant-benefit { padding: 8px 12px; background: var(--surface); border-radius: var(--r-sm); font-size: 13px; color: var(--text); }
.merchant-form { display: flex; flex-direction: column; }

/* --- notifications --- */
.notif-badge { position: absolute; top: -4px; right: -4px; background: #ef4444; color: white; font-size: 10px; font-weight: 700; width: 16px; height: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.notif-panel { position: fixed; top: 60px; right: 12px; width: min(320px, calc(100vw - 24px)); /* notif-fit-1: a hard 320px plus a 12px margin overflows a narrow or zoomed screen */ max-height: 400px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 8px 32px rgba(0,0,0,0.3); z-index: 1000; overflow: hidden; }
.notif-panel__header { display: flex; justify-content: space-between; align-items: center; padding: 12px; border-bottom: 1px solid var(--line); }
.notif-panel__header h3 { margin: 0; font-size: 16px; color: var(--text); }
.notif-panel__list { max-height: 320px; overflow-y: auto; padding: 8px; }
.notif-item { display: flex; gap: 10px; padding: 10px; border-radius: var(--r-md); margin-bottom: 6px; background: var(--surface-2); width: 100%; text-align: left; border: 0; font: inherit; color: inherit; cursor: pointer; }
.notif-item__icon { font-size: 20px; }
.notif-item__content { flex: 1; }
.notif-item__title { font-weight: 600; font-size: 13px; color: var(--text); }
.notif-item__text { font-size: 12px; color: var(--text-2); margin: 2px 0; }
.notif-item__time { font-size: 10px; color: var(--text-3); }

/* --- map legend --- */
.map-legend { position: absolute; bottom: 12px; left: 12px; right: 12px; display: flex; flex-wrap: wrap; gap: 8px; padding: 8px; background: rgba(0,0,0,0.7); border-radius: var(--r-md); backdrop-filter: blur(4px); z-index: 500; }
.legend-item { display: flex; align-items: center; gap: 4px; font-size: 11px; color: #fff; }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; border: 1px solid #fff; }

/* --- filatelia --- */
.filatelia-stats { display: flex; gap: 12px; margin: 12px 0; }
.filatelia-stat { flex: 1; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px; text-align: center; }
.filatelia-stat__value { font-size: 24px; font-weight: 700; color: var(--accent); }
.filatelia-stat__label { font-size: 11px; color: var(--text-3); }
.stamp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.stamp-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px; text-align: center; cursor: pointer; transition: transform 0.2s; }
.stamp-item:hover { transform: scale(1.03); }
.stamp-item--owned { border-color: var(--accent); background: var(--accent-soft); }
.stamp-item__icon { font-size: 32px; margin-bottom: 6px; }
.stamp-item__name { font-weight: 600; font-size: 12px; color: var(--text); margin-bottom: 2px; }
.stamp-item__meta { font-size: 10px; color: var(--text-3); }
.stamp-item__rarity { font-size: 10px; color: var(--accent); font-weight: 600; margin: 4px 0; }
.stamp-item__value { font-size: 14px; font-weight: 700; color: var(--text); }
.page-title, .hero__title, .brand__name { text-shadow: 0 2px 8px rgba(0,0,0,.4); }
.page-sub, .hero p { text-shadow: 0 1px 4px rgba(0,0,0,.3); }
.stamp-item__owned { font-size: 11px; color: var(--accent); font-weight: 600; margin-top: 4px; }

/* --- install banner --- */
.install-banner { position: fixed; bottom: 80px; left: 12px; right: 12px; background: var(--surface); border: 1px solid var(--accent); border-radius: var(--r-lg); padding: 12px; z-index: 999; box-shadow: 0 4px 16px rgba(0,0,0,0.2); }
.install-banner__content { display: flex; flex-direction: column; gap: 8px; }
.install-banner__actions { display: flex; gap: 8px; }

/* --- sell --- */
.sell-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px; margin-bottom: 12px; }
.my-listing { display: flex; justify-content: space-between; align-items: center; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 6px; }
.my-listing__title { font-weight: 600; font-size: 14px; color: var(--text); }
.my-listing__meta { font-size: 11px; color: var(--text-3); margin-top: 2px; }

/* --- offers --- */
.currency-selector { display: flex; align-items: center; gap: 8px; margin: 12px 0; }
.offers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 12px 0; }
.offer-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px; transition: transform 0.2s; }
.offer-card:hover { transform: translateY(-2px); }
.offer-card--unaffordable { opacity: 0.5; }
.offer-card__header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.offer-card__icon { font-size: 28px; }
.offer-card__merchant { font-weight: 600; font-size: 13px; color: var(--text); }
.offer-card__country { font-size: 11px; color: var(--text-3); }
.offer-card__title { font-weight: 700; font-size: 14px; color: var(--text); margin-bottom: 4px; }
.offer-card__desc { font-size: 12px; color: var(--text-2); margin-bottom: 8px; line-height: 1.4; }
.offer-card__price { display: flex; justify-content: space-between; font-size: 12px; }
.offer-card__original { color: var(--text-3); text-decoration: line-through; }
.offer-card__converted { color: var(--accent); font-weight: 700; }

/* --- directory --- */
.dir-search { margin: 12px 0; }
.dir-categories { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; margin: 12px 0; }
.dir-cat { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 8px; border: 1px solid; border-radius: var(--r-md); cursor: pointer; transition: transform 0.2s; text-align: center; }
.dir-cat:hover { transform: scale(1.05); }
.dir-cat__icon { font-size: 24px; }
.dir-cat__name { font-size: 11px; font-weight: 600; color: var(--text); }
.dir-cat__count { font-size: 10px; color: var(--text-3); }
.dir-results { margin-top: 16px; }
.dir-result { display: flex; gap: 12px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 8px; }
.dir-result__icon { font-size: 32px; flex-shrink: 0; }
.dir-result__info { flex: 1; }
.dir-result__name { font-weight: 600; font-size: 14px; color: var(--text); }
.dir-result__cat { font-size: 11px; color: var(--accent); font-weight: 600; }
.dir-result__meta { font-size: 11px; color: var(--text-2); margin: 2px 0; }
.dir-result__hours { font-size: 11px; color: var(--text-3); }
.dir-result__actions { display: flex; flex-direction: column; gap: 4px; flex-shrink: 0; }

/* --- view switch --- */
.view-switch { display: flex; gap: 8px; margin: 12px 0; }
.view-switch__btn { flex: 1; padding: 10px 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); color: var(--text); cursor: pointer; font-weight: 600; font-size: 14px; transition: all 0.2s; }
.view-switch__btn.active { background: var(--accent); color: #000; border-color: var(--accent); }
.view-switch__btn:hover:not(.active) { border-color: var(--accent); }

/* --- economy explainer --- */
.economy-explainer { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px; margin: 12px 0; }
.economy-flow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
.economy-step { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px; background: var(--surface-2); border-radius: var(--r-sm); min-width: 80px; }
.economy-icon { font-size: 24px; }
.economy-label { font-size: 10px; color: var(--text-2); text-align: center; }
.economy-currency { font-size: 11px; font-weight: 700; color: var(--accent); }
.economy-arrow { font-size: 18px; color: var(--text-3); }

/* --- round map with radar --- */
.map-container { position: relative; margin: 0 auto; max-width: 500px; }
.map-wrap { position: relative; border-radius: 50%; overflow: hidden; aspect-ratio: 1; width: 100%; box-shadow: 0 0 0 1px var(--accent); }
.map-wrap #map { width: 100%; height: 100%; border-radius: 50%; }
.map-radar { position: absolute; top: 0; left: 0; right: 0; bottom: 0; border-radius: 50%; overflow: hidden; pointer-events: none; z-index: 10; }
.radar-sweep { position: absolute; top: 50%; left: 50%; width: 200%; height: 200%; transform-origin: center; animation: radar-sweep 4s linear infinite; background: conic-gradient(from 0deg, transparent 0deg, rgba(251,191,36,.15) 30deg, transparent 60deg); }
.radar-rings { position: absolute; top: 0; left: 0; right: 0; bottom: 0; border-radius: 50%; border: 1px solid rgba(251,191,36,.1); }
.radar-rings::before { content: ''; position: absolute; top: 25%; left: 25%; right: 25%; bottom: 25%; border-radius: 50%; border: 1px solid rgba(251,191,36,.08); }
.radar-rings::after { content: ''; position: absolute; top: 10%; left: 10%; right: 10%; bottom: 10%; border-radius: 50%; border: 1px solid rgba(251,191,36,.06); }
.radar-drops { position: absolute; top: 0; left: 0; right: 0; bottom: 0; }
.radar-drop { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); animation: drop-pulse 2s ease-in-out infinite; cursor: pointer; pointer-events: auto; }
.radar-drop::after { content: '🎁'; position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font-size: 16px; }
@keyframes radar-sweep { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes drop-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.3); opacity: .7; } }
.map-badge { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); background: var(--glass); backdrop-filter: blur(8px); padding: 4px 12px; border-radius: var(--r-pill); font-size: 11px; color: var(--text); white-space: nowrap; z-index: 20; }

/* --- street view button --- */
.streetview-btn { position: absolute; bottom: 40px; right: 10px; z-index: 20; background: var(--glass); backdrop-filter: blur(8px); border: 1px solid var(--line); color: var(--text); padding: 6px 12px; border-radius: var(--r-pill); font-size: 12px; cursor: pointer; font-weight: 600; }
.streetview-btn:hover { background: var(--accent); color: #000; }

/* --- futuristic radar enhancements --- */
.map-container { position: relative; margin: 0 auto; max-width: 500px; }
.map-wrap { 
  position: relative; border-radius: 50%; overflow: hidden; aspect-ratio: 1; width: 100%; 
  box-shadow: 0 0 0 1px var(--accent);
  background: radial-gradient(circle at center, rgba(251,191,36,.05) 0%, transparent 70%);
}
.map-wrap #map { width: 100%; height: 100%; border-radius: 50%; filter: saturate(1.2) contrast(1.1); }
.map-radar { position: absolute; top: 0; left: 0; right: 0; bottom: 0; border-radius: 50%; overflow: hidden; pointer-events: none; z-index: 10; }
.radar-sweep { 
  position: absolute; top: 50%; left: 50%; width: 200%; height: 200%; 
  transform-origin: center; animation: radar-sweep 3s linear infinite; 
  background: conic-gradient(from 0deg, transparent 0deg, rgba(251,191,36,.25) 20deg, rgba(251,191,36,.1) 40deg, transparent 60deg);
  mix-blend-mode: screen;
}
.radar-rings { position: absolute; top: 0; left: 0; right: 0; bottom: 0; border-radius: 50%; border: 1px solid rgba(251,191,36,.15); }
.radar-rings::before { content: ''; position: absolute; top: 25%; left: 25%; right: 25%; bottom: 25%; border-radius: 50%; border: 1px solid rgba(251,191,36,.1); }
.radar-rings::after { content: ''; position: absolute; top: 10%; left: 10%; right: 10%; bottom: 10%; border-radius: 50%; border: 1px solid rgba(251,191,36,.08); }
.radar-drop { 
  position: absolute; width: 36px; height: 36px; border-radius: 50%; 
  background: radial-gradient(circle, rgba(251,191,36,.3) 0%, transparent 70%);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; pointer-events: auto; z-index: 15;
  animation: drop-float 2s ease-in-out infinite;
  transition: transform 0.2s;
}
.radar-drop:hover { transform: scale(1.3); }
.radar-drop__emoji { font-size: 20px; filter: drop-shadow(0 0 8px rgba(251,191,36,.6)); }
.radar-drop__pulse { 
  position: absolute; top: 0; left: 0; right: 0; bottom: 0; border-radius: 50%;
  border: 2px solid rgba(251,191,36,.4); animation: pulse-ring 2s ease-out infinite;
}
.radar-drop.collected { opacity: 0.2; pointer-events: none; filter: grayscale(1); }
@keyframes radar-sweep { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes drop-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes pulse-ring { 0% { transform: scale(0.8); opacity: 1; } 100% { transform: scale(2); opacity: 0; } }
.map-badge { 
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); 
  background: rgba(10,14,26,.8); backdrop-filter: blur(12px); padding: 6px 16px; 
  border-radius: var(--r-pill); font-size: 11px; color: var(--text); white-space: nowrap; z-index: 20;
  border: 1px solid rgba(251,191,36,.2);
}
.streetview-btn { 
  position: absolute; bottom: 40px; right: 10px; z-index: 20; 
  background: rgba(10,14,26,.8); backdrop-filter: blur(12px); border: 1px solid rgba(251,191,36,.3); 
  color: var(--text); padding: 8px 14px; border-radius: var(--r-pill); font-size: 12px; 
  cursor: pointer; font-weight: 600; transition: all 0.2s;
}
.streetview-btn:hover { background: var(--accent); color: #000; box-shadow: 0 0 20px rgba(251,191,36,.4); }

/* --- nearby drops list --- */
.nearby-drop { 
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; 
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); 
  margin-bottom: 6px; cursor: pointer; transition: all 0.2s;
}
.nearby-drop:hover { border-color: var(--accent); transform: translateX(4px); }
.nearby-drop__emoji { font-size: 24px; }
.nearby-drop__info { flex: 1; }
.nearby-drop__name { font-weight: 600; font-size: 13px; color: var(--text); }
.nearby-drop__merchant { font-size: 11px; color: var(--text-3); }
.nearby-drop__collect { 
  background: var(--accent); color: #000; padding: 4px 10px; border-radius: var(--r-pill); 
  font-size: 11px; font-weight: 700;
}

/* --- futuristic bubble enhancements --- */
#interestCanvas { border-radius: var(--r-lg); box-shadow: 0 0 40px rgba(124,58,237,.2), 0 8px 32px rgba(0,0,0,.4); }

/* --- futuristic AI platform design --- */
:root {
  --neon-amber: #fbbf24;
  --neon-purple: #7c3aed;
  --neon-cyan: #06b6d4;
  --neon-pink: #ec4899;
  --glow-amber: 0 0 20px rgba(251,191,36,.4), 0 0 40px rgba(251,191,36,.2);
  --glow-purple: 0 0 20px rgba(124,58,237,.4), 0 0 40px rgba(124,58,237,.2);
  --glow-cyan: 0 0 20px rgba(6,182,212,.4), 0 0 40px rgba(6,182,212,.2);
}

/* particle background */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(124,58,237,.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(251,191,36,.06) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(6,182,212,.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
  animation: bg-shift 20s ease-in-out infinite;
}
@keyframes bg-shift {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.1); }
}

/* neon card borders */
.card {
  position: relative;
  background: linear-gradient(135deg, rgba(26,26,46,.95) 0%, rgba(15,15,35,.98) 100%);
  border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}
.card:hover {
  border-color: rgba(251,191,36,.3);
  box-shadow: 0 0 30px rgba(251,191,36,.1), 0 8px 32px rgba(0,0,0,.4);
  transform: translateY(-2px);
}

/* neon buttons */
.btn--primary {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #0a0e1a;
  font-weight: 700;
  box-shadow: 0 0 20px rgba(251,191,36,.3);
  border: none;
  transition: all 0.3s;
}
.btn--primary:hover {
  box-shadow: 0 0 30px rgba(251,191,36,.5), 0 0 60px rgba(251,191,36,.2);
  transform: translateY(-1px);
}

/* futuristic tab bar */
.tabbar {
  background: rgba(10,14,26,.9);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(251,191,36,.1);
  box-shadow: 0 -4px 30px rgba(0,0,0,.4);
}
.tabbar a {
  transition: all 0.2s;
  position: relative;
}
.tabbar a.active {
  color: var(--accent);
  text-shadow: 0 0 10px rgba(251,191,36,.5);
}
.tabbar a.active::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 30px; height: 2px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

/* neon text glow */
.page-title {
  background: linear-gradient(135deg, #fff 0%, #fbbf24 50%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  letter-spacing: -0.5px;
}

/* futuristic input */
.input {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  color: var(--text);
  backdrop-filter: blur(4px);
  transition: all 0.3s;
}
.input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(251,191,36,.2);
  outline: none;
}

/* neon chips */
.chip {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  transition: all 0.3s;
}
.chip:hover {
  background: rgba(251,191,36,.1);
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(251,191,36,.2);
}

/* holographic effect for special elements */
.holo {
  position: relative;
  overflow: hidden;
}
.holo::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%; width: 200%; height: 200%;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,.03) 50%, transparent 70%);
  animation: holo-sweep 3s linear infinite;
}
@keyframes holo-sweep {
  0% { transform: translateX(-100%) rotate(45deg); }
  100% { transform: translateX(100%) rotate(45deg); }
}

/* neon scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: rgba(255,255,255,.03); }
::-webkit-scrollbar-thumb { background: rgba(251,191,36,.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(251,191,36,.5); }

/* AI thinking indicator */
.ai-pulse {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: ai-pulse 1.5s ease-in-out infinite;
  box-shadow: 0 0 10px var(--accent);
}
@keyframes ai-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.5; }
}

/* futuristic badge */
.badge {
  background: linear-gradient(135deg, rgba(251,191,36,.2) 0%, rgba(124,58,237,.2) 100%);
  border: 1px solid rgba(251,191,36,.3);
  color: var(--accent);
  font-weight: 700;
  text-shadow: 0 0 5px rgba(251,191,36,.3);
}

/* map container glow */
.map-container {
  position: relative;
  margin: 0 auto;
  max-width: 420px;
  padding: 10px;
}

/* --- futuristic AI enhancements v2 --- */

/* scanline overlay */
body::after {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,.03) 2px,
    rgba(0,0,0,.03) 4px
  );
  pointer-events: none;
  z-index: 9999;
  opacity: 0.5;
}

/* holographic orb */
.ai-orb {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(251,191,36,.8) 0%, rgba(124,58,237,.6) 40%, rgba(6,182,212,.3) 70%, transparent 100%);
  box-shadow: 0 0 40px rgba(251,191,36,.4), 0 0 80px rgba(124,58,237,.3), inset 0 0 30px rgba(255,255,255,.1);
  animation: orb-pulse 3s ease-in-out infinite;
  position: relative;
}
.ai-orb::before {
  content: '';
  position: absolute;
  top: -10px; left: -10px; right: -10px; bottom: -10px;
  border-radius: 50%;
  border: 1px solid rgba(251,191,36,.3);
  animation: orb-ring 2s linear infinite;
}
.ai-orb::after {
  content: '';
  position: absolute;
  top: -20px; left: -20px; right: -20px; bottom: -20px;
  border-radius: 50%;
  border: 1px solid rgba(124,58,237,.2);
  animation: orb-ring 3s linear infinite reverse;
}
@keyframes orb-pulse {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.05); filter: brightness(1.2); }
}
@keyframes orb-ring {
  0% { transform: rotate(0deg); opacity: 1; }
  100% { transform: rotate(360deg); opacity: 0.3; }
}

/* chromatic aberration on hover */
.chroma:hover {
  text-shadow: -1px 0 rgba(255,0,0,.5), 1px 0 rgba(0,255,255,.5);
  animation: chroma-glitch 0.3s ease;
}
@keyframes chroma-glitch {
  0% { transform: translate(0); }
  25% { transform: translate(-1px, 1px); }
  50% { transform: translate(1px, -1px); }
  75% { transform: translate(-1px, -1px); }
  100% { transform: translate(0); }
}

/* holographic card */
.holo-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(26,26,46,.9) 0%, rgba(15,15,35,.95) 100%);
  border: 1px solid rgba(255,255,255,.08);
}
.holo-card::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%; width: 200%; height: 200%;
  background: linear-gradient(45deg, transparent 30%, rgba(251,191,36,.05) 45%, rgba(124,58,237,.05) 55%, transparent 70%);
  animation: holo-sweep 4s linear infinite;
  pointer-events: none;
}

/* neon border glow */
.neon-border {
  border: 1px solid rgba(251,191,36,.3);
  box-shadow: 0 0 10px rgba(251,191,36,.2), inset 0 0 10px rgba(251,191,36,.05);
}

/* AI thinking dots */
.ai-thinking {
  display: inline-flex;
  gap: 4px;
}
.ai-thinking span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: think-bounce 1.4s ease-in-out infinite;
}
.ai-thinking span:nth-child(2) { animation-delay: 0.2s; }
.ai-thinking span:nth-child(3) { animation-delay: 0.4s; }
@keyframes think-bounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
  40% { transform: scale(1); opacity: 1; }
}

/* radar enhanced */
.radar-grid {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: 
    linear-gradient(rgba(251,191,36,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(251,191,36,.05) 1px, transparent 1px);
  background-size: 40px 40px;
  border-radius: 50%;
  pointer-events: none;
}

/* bubble neural network */
.bubble-neural {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  opacity: 0.3;
}

/* floating action button */
.fab {
  position: fixed;
  bottom: 80px; left: 16px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fbbf24 0%, #7c3aed 100%);
  box-shadow: 0 0 30px rgba(251,191,36,.4), 0 4px 20px rgba(0,0,0,.4);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 50;
  transition: all 0.3s;
  border: none;
  color: #fff;
  font-size: 24px;
}
.fab:hover {
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 0 40px rgba(251,191,36,.6), 0 4px 30px rgba(0,0,0,.4);
}

/* --- view-specific backgrounds --- */
[data-theme="dark"] .view[data-view="interests"] {
  background: radial-gradient(ellipse at 50% 0%, rgba(124,58,237,.15) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 80%, rgba(251,191,36,.08) 0%, transparent 50%),
              #0a0e1a;
  min-height: 100vh;
}
.interests-fullscreen {
  min-height: 100vh;
  background: transparent;
}

[data-theme="dark"] .view[data-view="route"] {
  background: radial-gradient(ellipse at 30% 20%, rgba(6,182,212,.12) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 80%, rgba(251,191,36,.08) 0%, transparent 50%),
              #0a0e1a;
  min-height: 100vh;
}
.route-view { background: transparent; }

[data-theme="dark"] .view[data-view="nearby"] {
  background: radial-gradient(ellipse at 50% 30%, rgba(236,72,153,.1) 0%, transparent 50%),
              radial-gradient(ellipse at 20% 80%, rgba(124,58,237,.08) 0%, transparent 50%),
              #0a0e1a;
  min-height: 100vh;
}
.nearby-view { background: transparent; }

/* route map styling */
.route-map {
  background: #1a1a2e;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 0 30px rgba(6,182,212,.1);
}

/* interest canvas full screen */
#interestCanvas {
  background: transparent;
}

/* --- AI Assistant panel --- */
.ai-assistant {
  position: fixed;
  bottom: 80px; right: 16px;
  width: 360px; max-width: calc(100vw - 32px);
  height: 480px; max-height: calc(100vh - 120px);
  background: rgba(10,14,26,.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(251,191,36,.2);
  border-radius: var(--r-lg);
  box-shadow: 0 0 40px rgba(251,191,36,.2), 0 8px 32px rgba(0,0,0,.6);
  display: flex; flex-direction: column;
  z-index: 200;
  overflow: hidden;
}
.ai-assistant[hidden] { display: none; }
.ai-assistant__header {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(251,191,36,.1) 0%, rgba(124,58,237,.1) 100%);
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-weight: 700; font-size: 14px;
}
.ai-assistant__messages {
  flex: 1; overflow-y: auto; padding: 12px;
  display: flex; flex-direction: column; gap: 8px;
}
.ai-msg {
  padding: 10px 14px; border-radius: var(--r-md);
  font-size: 13px; line-height: 1.5; max-width: 85%;
}
.ai-msg--bot {
  background: rgba(124,58,237,.15);
  border: 1px solid rgba(124,58,237,.2);
  align-self: flex-start;
}
.ai-msg--user {
  background: rgba(251,191,36,.15);
  border: 1px solid rgba(251,191,36,.2);
  align-self: flex-end;
}
.ai-assistant__input {
  display: flex; gap: 8px; padding: 12px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.ai-assistant__input input {
  flex: 1; padding: 8px 12px; border-radius: var(--r-pill);
  border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.05);
  color: var(--text); font-size: 13px;
}
.ai-assistant__input input:focus {
  border-color: var(--accent); outline: none;
  box-shadow: 0 0 15px rgba(251,191,36,.2);
}

/* hero AI orb */
.hero__ai-orb {
  position: absolute; top: 16px; right: 16px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  cursor: pointer; z-index: 10;
}
.hero__ai-orb .ai-orb { width: 48px; height: 48px; }
.ai-orb__label {
  font-size: 9px; font-weight: 800; color: var(--accent);
  text-transform: uppercase; letter-spacing: 1px;
}

/* hero with AI orb */
.hero { position: relative; }

/* smart search suggestions */
.search-suggestions {
  position: absolute; top: 100%; left: 0; right: 0;
  background: rgba(10,14,26,.95); backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-md);
  max-height: 200px; overflow-y: auto; z-index: 50;
  display: none;
}
.search-suggestions.active { display: block; }
.search-suggestion {
  padding: 10px 14px; cursor: pointer; font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,.05);
  transition: background 0.2s;
}
.search-suggestion:hover {
  background: rgba(251,191,36,.1);
}
.search-suggestion__type {
  font-size: 10px; color: var(--text-3); margin-left: 8px;
}

/* recommendation cards */
.rec-card {
  background: linear-gradient(135deg, rgba(124,58,237,.1) 0%, rgba(251,191,36,.05) 100%);
  border: 1px solid rgba(124,58,237,.2);
  border-radius: var(--r-md); padding: 12px;
  margin-bottom: 8px;
}
.rec-card__title { font-weight: 700; font-size: 13px; color: var(--text); }
.rec-card__desc { font-size: 11px; color: var(--text-2); margin-top: 4px; }

/* --- For You recommendations --- */
.for-you-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.for-you-card {
  background: linear-gradient(135deg, rgba(124,58,237,.12) 0%, rgba(251,191,36,.06) 100%);
  border: 1px solid rgba(124,58,237,.2);
  border-radius: var(--r-md);
  padding: 14px;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.for-you-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 30px rgba(124,58,237,.2), 0 8px 24px rgba(0,0,0,.3);
  border-color: rgba(251,191,36,.3);
}
.for-you-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.for-you-card__badge {
  font-size: 9px; font-weight: 800; text-transform: uppercase;
  color: var(--accent); letter-spacing: 1px; margin-bottom: 6px;
}
.for-you-card__title {
  font-weight: 700; font-size: 14px; color: var(--text);
  margin-bottom: 4px;
}
.for-you-card__desc {
  font-size: 12px; color: var(--text-2); line-height: 1.4;
}
.for-you-card__meta {
  font-size: 10px; color: var(--text-3); margin-top: 8px;
  display: flex; gap: 8px;
}

/* --- Trending cards --- */
.trending-cards {
  display: flex; gap: 12px; overflow-x: auto;
  padding-bottom: 8px; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.trending-card {
  flex: 0 0 200px; scroll-snap-align: start;
  background: linear-gradient(135deg, rgba(236,72,153,.1) 0%, rgba(251,191,36,.05) 100%);
  border: 1px solid rgba(236,72,153,.2);
  border-radius: var(--r-md); padding: 12px;
  cursor: pointer; transition: all 0.3s;
}
.trending-card:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 25px rgba(236,72,153,.2);
}
.trending-card__rank {
  font-size: 10px; font-weight: 800; color: #ec4899;
  text-transform: uppercase; letter-spacing: 1px;
}
.trending-card__title {
  font-weight: 700; font-size: 13px; color: var(--text);
  margin: 6px 0 4px; line-height: 1.3;
}
.trending-card__meta {
  font-size: 10px; color: var(--text-3);
}

/* --- Better card animations --- */
.card {
  animation: card-fade-in 0.3s ease-out;
}
@keyframes card-fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- View transitions --- */
.view {
  animation: view-fade 0.25s ease-out;
}
@keyframes view-fade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Better mobile responsiveness --- */
@media (max-width: 480px) {
  .for-you-cards { grid-template-columns: 1fr; }
  .trending-card { flex: 0 0 160px; }
  .hero__title { font-size: 20px; }
  .ai-assistant { width: calc(100vw - 16px); right: 8px; bottom: 70px; }
}

/* --- Profile page --- */
.profile-card {
  display: flex; gap: 16px; align-items: center;
  padding: 20px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(124,58,237,.08) 0%, rgba(251,191,36,.04) 100%);
}
.profile-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, #fbbf24 0%, #7c3aed 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; cursor: pointer;
  box-shadow: 0 0 20px rgba(251,191,36,.3);
  transition: transform 0.3s;
  flex-shrink: 0;
}
.profile-avatar:hover { transform: scale(1.1) rotate(10deg); }
.profile-info { flex: 1; min-width: 0; }
.profile-name {
  font-size: 20px; font-weight: 800; color: var(--text);
  margin: 0 0 4px; outline: none;
  border-bottom: 1px dashed transparent;
  transition: border-color 0.2s;
}
.profile-name:focus { border-bottom-color: var(--accent); }
.profile-bio {
  font-size: 13px; color: var(--text-2); margin: 0 0 10px;
  outline: none; border-bottom: 1px dashed transparent;
  transition: border-color 0.2s;
}
.profile-bio:focus { border-bottom-color: var(--accent); }
.profile-level {
  display: flex; align-items: center; gap: 8px;
}
.level-badge {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #0a0e1a; padding: 2px 10px; border-radius: var(--r-pill);
  font-size: 11px; font-weight: 800;
}
.xp-bar {
  flex: 1; height: 6px; background: rgba(255,255,255,.1);
  border-radius: 3px; overflow: hidden;
}
.xp-fill {
  height: 100%; background: linear-gradient(90deg, #fbbf24, #7c3aed);
  border-radius: 3px; transition: width 0.5s;
}
.xp-text { font-size: 10px; color: var(--text-3); white-space: nowrap; }

.profile-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  margin-bottom: 16px;
}
.stat-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 12px; text-align: center;
}
.stat-value {
  font-size: 20px; font-weight: 800; color: var(--accent);
}
.stat-label {
  font-size: 10px; color: var(--text-3); margin-top: 2px;
  text-transform: uppercase; letter-spacing: 0.5px;
}

.badges-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 8px; margin-bottom: 16px;
}
.badge-item {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 12px 8px; text-align: center;
  transition: all 0.3s; cursor: pointer;
}
.badge-item:hover {
  transform: translateY(-3px) scale(1.05);
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(251,191,36,.2);
}
.badge-item__icon { font-size: 28px; margin-bottom: 4px; }
.badge-item__name { font-size: 9px; color: var(--text-2); font-weight: 600; }

.interest-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.interest-tag {
  background: rgba(251,191,36,.1); border: 1px solid rgba(251,191,36,.2);
  color: var(--accent); padding: 4px 10px; border-radius: var(--r-pill);
  font-size: 12px; font-weight: 600; cursor: pointer;
  transition: all 0.2s;
}
.interest-tag:hover {
  background: rgba(251,191,36,.2);
  transform: scale(1.05);
}

/* --- Service content improvements --- */
.service-content:empty::before {
  content: '👆 Tap a service above to get started';
  display: block;
  text-align: center;
  color: var(--text-3);
  padding: 40px 20px;
  font-size: 14px;
}

/* Toggle Switch */
.toggle { position: relative; display: inline-block; width: 48px; height: 24px; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
  background: var(--surface-2); border-radius: 24px; transition: .3s;
}
.toggle-slider:before {
  content: ''; position: absolute; height: 18px; width: 18px; left: 3px; bottom: 3px;
  background: white; border-radius: 50%; transition: .3s;
}
.toggle input:checked + .toggle-slider { background: var(--accent); }
.toggle input:checked + .toggle-slider:before { transform: translateX(24px); }

/* ---- QA fixes 2026-10-29 ---- */
.page-title,#view-social h2,#view-social h3,#view-profile h2,#view-profile h3{color:var(--text)!important;-webkit-text-fill-color:currentColor!important;background:none!important;text-shadow:none!important;filter:none!important;opacity:1!important}
html[data-theme="dark"]{--text-2:#c3cbd6;--text-3:#a3adbb}
/*scheme-1 dark*/html[data-theme="dark"]:not([data-theme="light"]){--text-2:#c3cbd6;--text-3:#a3adbb}
.dir-categories{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:16px}
@media (min-width:700px){.dir-categories{grid-template-columns:repeat(4,minmax(0,1fr))}}
.ld-dirtile{display:flex;flex-direction:column;gap:6px;text-align:left;padding:8px;border-radius:14px;border:1px solid var(--line);background:var(--surface);color:var(--text);cursor:pointer;font:inherit}
.ld-dirtile b{font-size:14px}.ld-dirtile span{font-size:13px;color:var(--text-2)}
.ld-dirtile.is-on{outline:2px solid var(--accent)}
.offline-banner{display:none!important}
.ld-gate{margin-top:16px}
#eventsFilter{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0 16px}
#eventsFilter .chip.active{background:var(--accent);color:#111}
[hidden]{display:none!important}
#ldToast{position:fixed;left:50%;bottom:96px;transform:translateX(-50%) translateY(20px);opacity:0;transition:.25s;background:#111827;color:#fff;padding:8px 14px;border-radius:10px;font-size:14px;z-index:10000;pointer-events:none}#ldToast.on{opacity:1;transform:translateX(-50%)}

/* b2-2: signed out = only the sign-in/register prompt on Profile and Social, no placeholder profile */
body.ld-out #view-profile .wrap > *:not(.page-title):not(.ld-gate),body.ld-out #view-social .wrap > *:not(.page-title):not(.ld-gate){display:none!important}
body.ld-out #view-profile #ldAccountBox{display:block!important;padding:0 16px}
/* b2-4 interest circles */
.ld-circles{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;padding:8px 0}
.ld-circle{width:var(--d);height:var(--d);border-radius:50%;border:0;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:6px;text-align:center;color:#fff;background:radial-gradient(circle at 30% 30%,color-mix(in srgb,var(--c) 70%,#fff),var(--c));box-shadow:0 4px 14px color-mix(in srgb,var(--c) 45%,transparent)}
.ld-circle__n{font:700 10px/1.15 Inter,sans-serif;text-shadow:0 1px 2px rgba(0,0,0,.4);overflow-wrap:normal;word-break:normal;hyphens:auto;-webkit-hyphens:auto;max-width:100%}
.ld-circle__m{font:600 10px Inter,sans-serif;opacity:.9;margin-top:2px}
/* Directory: category photos + search bar matching the top search */
.ld-catimg{width:100%;height:72px;object-fit:cover;border-radius:10px;display:block;background:var(--surface-2,#eee)}
.ld-catcredits{margin:6px 0 10px;font-size:11px;color:var(--text-3)}
.ld-catcredits summary{cursor:pointer}
.ld-catcredits ul{margin:6px 0 0;padding-left:16px;line-height:1.5}
.ld-catcredits a{color:inherit}
.search.dir-searchbar{order:0;flex:none;width:100%;max-width:none;margin:0}
/* events-1: back-to-top sits in the right gutter above the ⚡ button, small, only after scrolling, so it covers no tile labels */
button.fab[title="Back to top"]{left:auto!important;right:4px;bottom:calc(150px + env(safe-area-inset-bottom));width:34px;height:34px;font-size:16px;opacity:0;pointer-events:none;box-shadow:0 2px 10px rgba(0,0,0,.35)}
button.fab[title="Back to top"].is-on{opacity:.92;pointer-events:auto}
button.fab[title="Back to top"]:hover{transform:none}
/* events-2: event titles max 2 lines with ellipsis */
#eventsList .card__title,#eventsList .compact__title,#eventsList h3{display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;white-space:normal}
/* wallet-1 build: points */
.ld-points__bal{font:800 40px/1 Inter,sans-serif;color:var(--accent);margin:4px 0 8px}
.ld-honest{font-size:13px;color:var(--text-2);background:rgba(251,191,36,.08);border-radius:10px;padding:8px 10px}
.ld-points h4,.service-panel h4{margin:16px 0 8px}
.ld-rules{list-style:none;padding:0;margin:0;display:grid;gap:6px}
.ld-rules li{display:grid;grid-template-columns:1fr auto;gap:2px 8px;padding:8px 10px;border-radius:10px;background:rgba(127,127,127,.08);font-size:13px}
.ld-rules li b{color:var(--accent)} .ld-rules li small{grid-column:1/-1;color:var(--text-2)}
.ld-perks{display:grid;gap:6px}.ld-perk{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:13px}
.ld-faq{margin-top:8px}.ld-faq summary{cursor:pointer;font-weight:600}
.radar-drops[hidden]{display:none!important}
.ld-points textarea.input{display:block;width:100%;font-family:inherit}
.ld-points .btn[disabled]{opacity:.45;cursor:not-allowed;filter:grayscale(.6)}

/* AI chat panel: readable in the light theme */
html[data-theme="light"] .ai-assistant{background:rgba(255,255,255,.98);color:#14161c;border-color:rgba(124,58,237,.25);box-shadow:0 8px 32px rgba(20,22,28,.18)}
html[data-theme="light"] .ai-assistant__header{color:#14161c;border-bottom-color:rgba(20,22,28,.1)}
html[data-theme="light"] .ai-msg{color:#14161c}
html[data-theme="light"] .ai-msg--bot{background:#f1ecff;border-color:#d9ccff}
html[data-theme="light"] .ai-msg--user{background:#fff4d1;border-color:#f3d77a}
html[data-theme="light"] .ai-assistant__input{border-top-color:rgba(20,22,28,.1)}
html[data-theme="light"] .ai-assistant__input input{background:#fff;color:#14161c;border-color:rgba(20,22,28,.2)}
html[data-theme="light"] .ai-assistant__input input::placeholder{color:#5b6270}

.recent-rail{display:flex;gap:8px;overflow-x:auto;padding:4px 0 12px;scrollbar-width:none}
.recent-rail::-webkit-scrollbar{display:none}
.recent-chip{flex:0 0 auto;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:8px 12px;border-radius:999px;border:1px solid var(--line);background:var(--surface);color:var(--text);text-decoration:none;font-size:13px;font-weight:600}
.compare-rail{display:flex;gap:8px;overflow-x:auto;padding:4px 0 12px;scrollbar-width:none}
.card__compare{position:absolute;top:8px;right:84px;background:rgba(0,0,0,0.5);border:none;border-radius:50%;width:32px;height:32px;display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:14px;z-index:10;color:#fff}

/* Menu audit 31 Oct: light mode keeps Interests and Route readable (dark backdrop hid the titles) */
html[data-theme="light"] .view[data-view="interests"],html[data-theme="light"] .view[data-view="route"]{background:transparent}

/* Back Office: stat grid + tabs (were unstyled, 1 Nov 2026) */
.bo-stat-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin:0 0 14px}
@media (min-width:640px){.bo-stat-grid{grid-template-columns:repeat(4,1fr)}}
.bo-stat-grid .stat-card .number{font-size:22px;font-weight:800;color:var(--accent)}
.bo-stat-grid .stat-card .label{font-size:11px;color:var(--text-3);text-transform:uppercase;letter-spacing:.5px;margin-top:2px}
#boTabs.tabs{display:flex;gap:6px;overflow-x:auto;margin:0 0 12px;padding-bottom:2px;scrollbar-width:none}
#boTabs.tabs button{flex:0 0 auto;border:1px solid var(--line);background:var(--surface);color:var(--text-2);font:inherit;font-size:13px;font-weight:600;padding:8px 14px;border-radius:999px;cursor:pointer}
#boTabs.tabs button.active{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}

/* Services: LapDrop essentials on top, generic tools folded (1 Nov 2026) */
.svc-more{margin:18px 0 8px}
.svc-more>summary{cursor:pointer;list-style:none;display:flex;align-items:center;gap:8px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:var(--surface);font-weight:700;color:var(--text-2)}
.svc-more>summary::-webkit-details-marker{display:none}
.svc-more>summary::after{content:'▾';margin-left:auto;transition:transform .2s}
.svc-more[open]>summary::after{transform:rotate(180deg)}
.svc-more>.services-grid{margin-top:12px}

/* Card ⋯ menu (1 Nov 2026): one button instead of seven icons */
.card__more{position:absolute;top:8px;right:48px;background:rgba(0,0,0,.5);color:#fff;border:none;border-radius:50%;width:32px;height:32px;display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:18px;line-height:1;z-index:5}
.card__fav{z-index:5}
.card--compact{position:relative;padding-right:84px}
.card--compact .card__more{top:50%;right:8px;transform:translateY(-50%);background:var(--surface-2);color:var(--text)}
.card--compact .card__fav{top:50%;right:46px;transform:translateY(-50%)}
.ld-cmenu{position:fixed;inset:0;z-index:4000;background:rgba(5,8,20,.45);display:flex;align-items:flex-end;justify-content:center}
.ld-cmenu__sheet{width:100%;max-width:480px;background:var(--surface);color:var(--text);border-radius:18px 18px 0 0;padding:10px 12px calc(14px + env(safe-area-inset-bottom));box-shadow:0 -8px 30px rgba(0,0,0,.25)}
.ld-cmenu__t{margin:6px 6px 8px;font-weight:700;font-size:14px;color:var(--text-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ld-cmenu__sheet button{display:flex;align-items:center;gap:12px;width:100%;padding:13px 10px;border:0;background:none;color:inherit;font:inherit;font-size:15px;text-align:left;border-radius:10px;cursor:pointer}
.ld-cmenu__sheet button:hover,.ld-cmenu__sheet button:focus-visible{background:var(--surface-2)}
.ld-cmenu__sheet button span{width:22px;text-align:center}
.ld-cmenu__sheet .ld-cmenu__x{justify-content:center;margin-top:4px;font-weight:700;background:var(--surface-2)}

/* LD-20261109-1800 Feed tab */
.ld-feed-toggle{display:flex;gap:8px;justify-content:center;padding:10px 12px 0;position:sticky;top:0;z-index:5;background:var(--bg,var(--surface-2,#f6f6f6))}
.ld-feed-toggle .chip.is-on{background:var(--accent);color:#111;font-weight:700}


/* polish-clips-1 topbar: icons stay one row @390; search on its own row */
.topbar__inner{flex-wrap:wrap}
.topbar .brand{flex:1 1 auto;min-width:0;max-width:calc(100% - 200px)}
.topbar .brand__tag{display:none}
.topbar .lang-selector{flex:0 0 auto;order:1}
.topbar .lang-selector select{min-height:36px;padding:0 6px;font-size:12px;border-radius:999px;border:1px solid var(--line);background:var(--surface);color:var(--text)}
.topbar .iconbtn{flex:0 0 auto;order:2;width:40px;height:40px}
.topbar #themeBtn{order:2}
.topbar #ldAvatarBtn{order:2}
.topbar #notifBtn{order:2;position:relative}
.topbar .search{order:3;flex:1 1 100%;margin-top:2px}
@media (max-width:420px){
  .topbar .brand__name{font-size:17px}
  .topbar__inner{gap:6px 8px;flex-wrap:wrap}
  .topbar .brand{max-width:calc(100% - 168px)}
}

/* polish-clips-1: FAB must not cover profile stats / last cards */
#view-profile.ldprof-on,
#view-profile.ldprof-on .wrap{
  padding-bottom:calc(120px + env(safe-area-inset-bottom))!important;
}
#view-profile.ldprof-on #ldprofRoot.ldprof{padding-bottom:calc(100px + env(safe-area-inset-bottom))!important}
/* polish-clips-1b: hide ⚡ FAB on profile so it never covers stats */
#view-profile:not([hidden]) ~ .fab,
body:has(#view-profile:not([hidden])) .fab,
#view-profile.ldprof-on ~ .fab,
.fab.ld-fab-hide-profile{display:none!important;pointer-events:none!important}
body.view-profile-on .fab{display:none!important}

/* Clips teaser on Discover */
.ld-clips-teaser-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:8px 0 6px}
.ld-clips-cta{font-size:13px;font-weight:700;color:var(--accent);text-decoration:none}
.ld-clips-strip{display:flex;gap:10px;overflow-x:auto;padding:4px 0 10px;-webkit-overflow-scrolling:touch;scrollbar-width:none}
.ld-clips-strip::-webkit-scrollbar{display:none}
.ld-clip-card{flex:0 0 auto;width:112px;aspect-ratio:9/14;border-radius:14px;overflow:hidden;position:relative;background:#111;text-decoration:none;border:1px solid var(--line);box-shadow:0 4px 14px rgba(0,0,0,.25)}
.ld-clip-card img,.ld-clip-card video{width:100%;height:100%;object-fit:cover;display:block}
.ld-clip-card span{position:absolute;left:0;right:0;bottom:0;padding:8px 6px 6px;font-size:11px;color:#fff;background:linear-gradient(transparent,rgba(0,0,0,.8));line-height:1.2;max-height:42%;overflow:hidden}
.ld-clip-card .ld-clip-play{position:absolute;inset:0;display:grid;place-items:center;font-size:22px;color:#fff;text-shadow:0 2px 8px rgba(0,0,0,.6);pointer-events:none}
.ld-make-clip{display:flex;width:100%;margin:0 0 14px;justify-content:center;min-height:44px;font-weight:800}
/* polish-clips-2l: Clips yellow only when active; promo dot when inactive */
.tabbar a.ld-tab-clips{color:var(--text-3);position:relative}
.tabbar a.ld-tab-clips span{font-weight:inherit}
.tabbar a.ld-tab-clips[aria-current="page"]{color:var(--accent)}
.tabbar a.ld-tab-clips[aria-current="page"] span{font-weight:800}
.tabbar a.ld-tab-clips:not([aria-current="page"])::after{content:"";position:absolute;top:4px;right:calc(50% - 14px);width:6px;height:6px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 2px var(--bg,transparent)}


/* polish-clips-2: pixel fixes — header one row, FAB hide, chips solid, short tabs */
.topbar__inner{
  display:flex!important;flex-wrap:wrap!important;align-items:center;gap:6px 8px;
}
.topbar .brand{flex:1 1 auto;min-width:0;max-width:none;order:0}
.topbar .brand__tag{display:none!important}
.topbar .brand__name{font-size:16px}
.topbar .lang-selector{order:1;flex:0 0 auto}
.topbar .lang-selector select{min-height:32px;padding:0 4px;font-size:11px;max-width:52px}
.topbar #themeBtn,.topbar #ldAvatarBtn,.topbar #notifBtn{
  order:1;flex:0 0 36px!important;width:36px!important;height:36px!important;min-width:36px!important;
}
.topbar .search{order:3;flex:1 1 100%!important;max-width:none!important;margin:0!important;height:40px}
/* force icon cluster never wraps under brand: wrap only search */
@media (max-width:480px){
  .topbar__inner{flex-wrap:wrap}
  .topbar .brand{flex:1 1 calc(100% - 170px);max-width:calc(100% - 170px)}
}

/* Hide BOTH FABs on profile (⚡ is #quickActionsFab, not .fab) */
body.view-profile-on .fab,
body.view-profile-on #quickActionsFab,
#view-profile:not([hidden]) ~ #quickActionsFab,
body:has(#view-profile:not([hidden])) #quickActionsFab,
body:has(#view-profile:not([hidden])) .fab,
.fab.ld-fab-hide-profile,
#quickActionsFab.ld-fab-hide-profile{
  display:none!important;visibility:hidden!important;pointer-events:none!important;opacity:0!important;
}

/* Sticky chips with solid background so they don't sit on card text */
.chips-bar{
  position:sticky;top:calc(var(--header-h,64px) + env(safe-area-inset-top));
  z-index:35;
  background:var(--bg,#0a0e1a)!important;
  backdrop-filter:saturate(1.2) blur(10px);
  -webkit-backdrop-filter:saturate(1.2) blur(10px);
  padding:8px 0 10px;
  border-bottom:1px solid var(--line);
  margin:0;
}
html[data-theme="light"] .chips-bar{background:var(--bg,#fff)!important}

/* Tab labels: fit 7 items @390 */
.tabbar a{min-width:48px;flex:1 1 0;padding:0 2px}
.tabbar a span{font-size:9px;letter-spacing:-.01em;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tabbar svg{width:20px;height:20px}

/* Category placeholder when listing image fails / missing */
.card__ph{
  display:flex;align-items:center;justify-content:center;
  width:100%;aspect-ratio:16/10;background:linear-gradient(135deg,#e0a526,#92400e);
  color:#fff;font-size:42px;border-radius:12px 12px 0 0;
}
html[data-theme="light"] .card__ph{background:linear-gradient(135deg,#f6b73c,#c2410c);color:#fff}
.ld-clips-teaser-head{margin-top:4px}

/* polish-clips-2b: tools cluster never wraps; search always row 2 */
.topbar__inner{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:8px 12px}
.topbar .brand{flex:1 1 auto;min-width:0;order:0}
.topbar .brand__tag{display:none!important}
.topbar__tools{order:1;flex:0 0 auto;display:flex!important;flex-wrap:nowrap!important;align-items:center;gap:6px}
.topbar__tools .iconbtn{width:36px;height:36px;flex:0 0 36px}
.topbar__tools .lang-selector select{min-height:32px;font-size:11px;padding:0 4px;max-width:48px}
.topbar .search{order:2;flex:1 1 100%;width:100%;max-width:none;margin:0}

/* polish-clips-2c: clips teaser under Discover hero (above the fold) */
#ldHome > #ldClipsTeaser.ld-clips-teaser--in-home{margin:8px 12px 4px;padding:0;max-width:none}
#ldHome > #ldClipsTeaser.ld-clips-teaser--in-home .ld-clips-teaser-head{margin:0 0 4px}
#ldHome > #ldClipsTeaser.ld-clips-teaser--in-home .ld-clips-strip{padding:2px 0 8px}
#ldHome > #ldClipsTeaser.ld-clips-teaser--in-home .ld-clip-card{width:96px}
#ldHome > #ldClipsTeaser.ld-clips-teaser--in-home .ld-make-clip{margin:0 0 8px;min-height:40px}

/* polish-clips-2e: Uit uw kringen first on Kringen hub */
#ldcHomeFeed.ldc-homefeed{margin:4px 0 10px;padding:0 2px}
#ldcHomeFeed .ldc-feed-h{margin:4px 0 8px;font-size:16px}
#ldcHomeFeed .ldc-feed-list{max-height:42vh;overflow:auto;-webkit-overflow-scrolling:touch}

/* polish-clips-2g-fab: keep ⚡ from covering bottom content (tabbar + FAB clearance) */
.view{padding-bottom:calc(var(--tab-h,64px) + 72px + env(safe-area-inset-bottom,0px))!important}
body.view-profile-on .view{padding-bottom:calc(var(--tab-h,64px) + env(safe-area-inset-bottom,0px))!important}

/* t2698u avatar action sheet */
.ld-avsheet{position:fixed;inset:0;z-index:120000;display:flex;align-items:flex-end;justify-content:center}
.ld-avsheet__bg{position:absolute;inset:0;background:rgba(0,0,0,.45)}
.ld-avsheet__panel{position:relative;width:100%;max-width:440px;background:var(--surface,var(--card,#151929));color:var(--text,#f2f4f7);border-radius:18px 18px 0 0;padding:10px 14px calc(14px + env(safe-area-inset-bottom,0px));box-shadow:0 -8px 40px rgba(0,0,0,.35)}
.ld-avsheet__grab{width:40px;height:4px;border-radius:4px;background:rgba(127,127,127,.4);margin:2px auto 10px}
.ld-avsheet__h{margin:0 0 2px;font-size:18px}
.ld-avsheet__h small{font-weight:500;opacity:.7;font-size:12px}
.ld-avsheet__sub{margin:0 0 10px;opacity:.7;font-size:13px}
.ld-avsheet__acts{display:flex;flex-direction:column;gap:8px}
.ld-avsheet__acts button{min-height:48px;border-radius:12px;border:1px solid var(--line,rgba(127,127,127,.35));background:var(--surface-2,rgba(127,127,127,.12));color:inherit;font:600 15px/1.2 inherit;text-align:left;padding:0 14px;cursor:pointer}
.ld-avsheet__x{display:block;width:100%;margin-top:10px;min-height:44px;border:0;background:transparent;color:inherit;opacity:.8;font:600 14px inherit;cursor:pointer}

#view-groups #ldcHomeFeed,.ldc-homefeed{padding-right:64px;box-sizing:border-box}

.ld-avsheet-toast{position:fixed;left:50%;bottom:96px;transform:translateX(-50%);background:#111827;color:#fff;padding:10px 14px;border-radius:12px;z-index:130000;font:600 14px/1.3 inherit}
.sc-av-edit__presets{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 8px}
.sc-av-edit__presets button{width:40px;height:40px;border-radius:12px;border:1px solid var(--line,rgba(127,127,127,.35));background:var(--surface-2,rgba(127,127,127,.12));color:inherit;font-weight:800;cursor:pointer}
.sc-av-edit__preview{min-height:140px;display:grid;place-items:center;margin:0 0 8px}
.sc-av-edit__preview svg{width:120px;height:120px}

/* polish-clips-2n: themed avatar builder + pinned footer + light feed contrast */
.sc-av-edit__presets{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;margin:0 0 10px}
.sc-av-edit__presets .sc-av-preset{width:100%;aspect-ratio:1;height:auto;min-height:48px;padding:2px;border-radius:12px;border:2px solid var(--line,rgba(127,127,127,.35));background:var(--surface-2,rgba(127,127,127,.1));display:grid;place-items:center;cursor:pointer;overflow:hidden}
.sc-av-edit__presets .sc-av-preset svg{width:44px;height:44px;pointer-events:none}
.sc-av-edit__presets .sc-av-preset:focus-visible,.sc-av-edit__presets .sc-av-preset:hover{border-color:var(--accent,#7c3aed)}
.sc-av-chips{display:flex;flex-wrap:wrap;gap:6px}
.sc-av-chip{width:28px;height:28px;border-radius:50%;border:2px solid rgba(127,127,127,.35);background:var(--c,#ccc);cursor:pointer;padding:0}
.sc-av-chip.is-on{outline:2px solid var(--accent,#7c3aed);outline-offset:2px;border-color:transparent}
html[data-theme="dark"] .sc-av-edit__panel,html[data-theme="dark"] .sc-av-edit__acts{background:#151929;color:#f2f4f7}
html[data-theme="light"] .sc-av-edit__panel,html[data-theme="light"] .sc-av-edit__acts{background:#ffffff;color:#101828}
html[data-theme="light"] .sc-av-edit__panel>h3,html[data-theme="light"] .sc-av-edit label,html[data-theme="light"] .sc-av-edit__group,html[data-theme="light"] .sc-av-edit__group>span{color:#101828}

/* polish-clips-2v-tabbar: Android nav bar clearance + visible labels */
:root{--tab-h:58px}
.tabbar{
  height:calc(var(--tab-h) + env(safe-area-inset-bottom,0px) + 8px)!important;
  padding-bottom:calc(env(safe-area-inset-bottom,0px) + 8px)!important;
  padding-top:4px!important;
  align-items:flex-start!important;
}
.tabbar a{
  min-height:48px!important;
  padding-top:4px!important;
  gap:2px!important;
  flex:1 1 0!important;
}
.tabbar a span{
  display:block!important;
  font-size:10px!important;
  line-height:1.1!important;
  max-width:100%!important;
  overflow:visible!important;
  white-space:nowrap!important;
  text-overflow:clip!important;
}
.tabbar svg{width:22px!important;height:22px!important;flex:none}
body{padding-bottom:calc(var(--tab-h) + env(safe-area-inset-bottom,0px) + 12px)!important}

/* 2am: scene face() fills circular avatar slots */
#ldAvatarBtn .ld-face,#ldAvatarBtn .rt-av,#ldAvatarBtn img,#ldAvatarBtn svg,
#avatarEmoji .ld-face,#avatarEmoji .rt-av,#avatarEmoji img,#avatarEmoji svg{
  width:100%;height:100%;object-fit:cover;display:block;border-radius:50%;
}
#ldAvatarBtn .rt-av--scene svg,#avatarEmoji .rt-av--scene svg{width:100%;height:100%}
.ldprof-av .ld-face,.ldprof-av .rt-av,.ldprof-av img,.ldprof-av svg{width:100%;height:100%;object-fit:cover;display:block;border-radius:50%}
.wl-av.ld-face,.wl-av.rt-av,.mk-ava .ld-face,.mk-ava .rt-av{width:36px;height:36px;border-radius:50%;overflow:hidden;display:inline-block;vertical-align:middle}

/* 2an: Kring (and later Markt) pages get a solid subtle gradient so the drops wallpaper does not read as stains */
#view-groups:not([hidden]){
  position:relative;
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 92%, #E0A526 8%), var(--bg) 40%);
  isolation:isolate;
  min-height:100%;
}
body:has(#view-groups:not([hidden])) #ldWallpaper{
  opacity:0 !important; visibility:hidden !important;
}


/* 2au: solid navy/ochre glass topbar — no backdrop blur, so page titles cannot bleed through */
.topbar{
  background: color-mix(in srgb, var(--bg) 92%, var(--ld-ochre, #E0A526) 8%) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
html[data-theme="dark"] .topbar{
  background: color-mix(in srgb, #0a0e1a 92%, #E0A526 8%) !important;
}
html[data-theme="light"] .topbar{
  background: color-mix(in srgb, #f0f2f5 90%, #E0A526 10%) !important;
}
/* The static Circles/Kringen heading lives above #ldBubbles and sits under the sticky topbar after scrollIntoView */
#view-groups:has(#ldBubbles) > .wrap:has(.page-title){
  display:none;
}

/* 2ba (Job phone 11:40): no UA 8px body margin — header and strips run full width */
html,body{margin:0}
/* 2ba: header + Muur/Clips strip as semi-transparent navy/ochre glass (no grey), full width */
.topbar{
  background: linear-gradient(180deg, rgba(16,24,56,.72), rgba(16,24,56,.62)), rgba(224,165,38,.10) !important;
  backdrop-filter: saturate(1.2) blur(12px) !important;
  -webkit-backdrop-filter: saturate(1.2) blur(12px) !important;
  border-bottom: 1px solid rgba(224,165,38,.35) !important;
}
html[data-theme="dark"] .topbar{ background: linear-gradient(180deg, rgba(16,24,56,.72), rgba(16,24,56,.62)), rgba(224,165,38,.10) !important; }
html[data-theme="light"] .topbar{ background: linear-gradient(180deg, rgba(255,246,222,.74), rgba(255,240,205,.64)), rgba(224,165,38,.12) !important; }
.ld-feed-toggle{
  margin-left: calc(-1 * var(--s4, 16px)); margin-right: calc(-1 * var(--s4, 16px));
  padding: 10px 12px; top: var(--ld-top-h, 0px);
  background: rgba(16,24,56,.55) !important;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(224,165,38,.30);
}
html[data-theme="light"] .ld-feed-toggle{ background: rgba(255,240,205,.62) !important; }
.ld-feed-toggle .chip:not(.is-on){ background: rgba(224,165,38,.16); border: 1px solid rgba(224,165,38,.40); color: inherit; }

/* ui-cards-1 (15 Nov 2026): drop cards, member cards, fuel panel, circle search */
.ldm-card{display:flex;flex-direction:column;border-radius:18px;overflow:hidden;background:var(--card,#1d1238);border:1px solid var(--line,rgba(255,255,255,.12));margin:10px 0;box-shadow:0 4px 16px rgba(0,0,0,.18)}
.ldm-card.is-on{border-color:rgba(246,167,34,.55)}
.ldm-card__pic{position:relative;height:120px;background:linear-gradient(135deg,#7c3aed,#d9469f 55%,#f6a722);display:flex;align-items:center;justify-content:center;overflow:hidden}
.ldm-card__pic img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.ldm-card__pic img+.ldm-card__ic{position:absolute;left:12px;bottom:10px;font-size:26px;width:44px;height:44px;border-radius:12px;background:rgba(0,0,0,.45);display:flex;align-items:center;justify-content:center}
.ldm-card__ic{font-size:56px;filter:drop-shadow(0 4px 10px rgba(0,0,0,.3))}
.ldm-card .ldm-pill{position:absolute;top:10px;right:10px}
.ldm-pill{display:inline-block;background:rgba(10,8,22,.72);color:#7dffa0;font:700 12px system-ui,sans-serif;border-radius:999px;padding:5px 10px}
.ldm-pill--ok{position:static!important;background:#16a34a;color:#fff}
.ldm-card__b{padding:12px 14px 14px}
.ldm-card__t{display:block;font-size:17px;line-height:1.25}
.ldm-card__s{margin:5px 0 0;font-size:13.5px;opacity:.8;line-height:1.4}
.ldm-card__m{margin:6px 0 0;font-size:13px;opacity:.7}
.ldm-card__act{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.ldm-card__act .btn{flex:1;min-height:42px;justify-content:center;border-radius:12px}
.ldm-post{border-radius:18px}
.ldm-post .ldm-card{margin-top:8px}
/* members */
.ldc-mem{display:flex!important;align-items:center;gap:12px;width:100%;text-align:left;background:var(--card,#1d1238)!important;color:inherit!important;
  border:1px solid var(--line,rgba(255,255,255,.12))!important;border-radius:16px!important;padding:12px 14px!important;margin:10px 0 4px!important;
  font:500 14px/1.35 system-ui,sans-serif;box-shadow:none!important;flex-wrap:wrap}
.ldc-mem .ldc-av{width:44px;height:44px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font:700 18px system-ui,sans-serif;font-style:normal;
  background:linear-gradient(135deg,#7c3aed,#f6a722);color:#fff;flex:none}
.ldc-mem .ldc-av--on{box-shadow:0 0 0 3px #22c55e}
.ldc-mem strong{font-size:15.5px}
.ldc-mem + .btn,.ldc-mem + button:not(.ldc-mem){margin:0 0 6px 56px!important;border-radius:999px!important;min-height:36px}
/* fuel panel inside the Cheapest fuel circle */
#ldcFuel{background:linear-gradient(160deg,rgba(124,58,237,.16),rgba(22,163,74,.10));border:1px solid var(--line,rgba(255,255,255,.12));border-radius:20px;padding:14px;margin:12px 0}
#ldcFuel::before{content:"⛽ Cheapest fuel on your route";display:block;font:800 17px system-ui,sans-serif;margin:0 0 10px}
html[lang=es] #ldcFuel::before{content:"⛽ Gasolina más barata en su ruta"}
html[lang=nl] #ldcFuel::before{content:"⛽ Goedkoopste brandstof op uw route"}
#ldcFuel .input,#ldcFuel input,#ldcFuel select{border-radius:14px!important;min-height:48px}
#ldcFuel .route-summary{background:rgba(0,0,0,.18);border-radius:14px;padding:10px 12px;margin:10px 0}
#ldcFuel .route-poi{display:flex;align-items:center;gap:10px;background:var(--card,#1d1238);border-radius:14px;padding:10px 12px;margin:8px 0;border:1px solid var(--line,rgba(255,255,255,.1))}
#ldcFuel .route-poi__icon{font-size:22px;width:40px;height:40px;border-radius:12px;background:rgba(255,255,255,.08);display:flex;align-items:center;justify-content:center;flex:none}
#ldcFuel .route-poi__info{flex:1;min-width:0}
#ldcFuel .route-poi__name{font-weight:700}
#ldcFuel .route-poi__meta{font-size:12.5px;opacity:.75}
#ldcFuel .route-poi__price{background:#16a34a;color:#fff;font:800 14px system-ui,sans-serif;border-radius:999px;padding:6px 10px;flex:none}
#ldcFuel .route-poi:first-of-type .route-poi__price{box-shadow:0 0 0 3px rgba(34,197,94,.35)}
/* circle search in "Your Circle interests" */
.sp-isearch{margin-top:14px}
.sp-isearch .sp-look-in{width:100%}
.sp-hits{margin-top:10px}
.sp-hits .sp-int small{opacity:.7;margin-left:4px}
.sp-allc{display:block;width:100%;margin-top:10px;min-height:48px;border-radius:14px;border:1px dashed rgba(246,167,34,.7);background:transparent;color:inherit;font:700 15px system-ui,sans-serif;cursor:pointer}
/* pinbox-1 (LD-20261115-2300-APP-PINBOX, 15 Nov 2026): drop cards (e.g. the admin's "Free pin on the map") were navy with dark text
   in light mode, and drops listed under a circle's Info > Chat were bare text. Both now use the ochre card style. */
.ldm-card{background:#fff7e6;border-color:rgba(224,165,38,.55);color:#2b1d0b}
.ldm-card__pic{background:linear-gradient(135deg,#f6c453,#e0a526 55%,#c9731a)}
.ldm-card__t{color:#2b1d0b}
.ldm-card__s,.ldm-card__m{color:#5a4320;opacity:1}
[data-theme="dark"] .ldm-card{background:#2b1d0b;border-color:rgba(246,167,34,.45);color:#ffe9c2}
[data-theme="dark"] .ldm-card__t{color:#ffe9c2}
[data-theme="dark"] .ldm-card__s,[data-theme="dark"] .ldm-card__m{color:#ecd3a0}
.ldc-info-sec .ldc-post{background:var(--ld-ochre-glass,rgba(224,165,38,.22));border:1px solid var(--ld-ochre-border,rgba(224,165,38,.45));border-radius:14px;padding:12px 14px;margin:6px 0;overflow-wrap:anywhere;line-height:1.4}
.ldc-info-sec .ldc-post strong{color:#8a4b08}
[data-theme="dark"] .ldc-info-sec .ldc-post strong{color:#ffd24d}

/* LD-20261119-2218-APP-THEME-CONTRAST
   Modules that used the undefined --card token fell back to #fff, so in dark mode
   light inherited text sat on a white card. Aliases live in the theme blocks above.
   .ldm2 (merchant dashboard Booking / Reviews / Splash cards) follows the business
   overlay tokens when inside .ldb, otherwise the app theme. */
.ldm2{background:var(--b-card,var(--surface));color:var(--b-fg,var(--text));border:1px solid var(--b-bd,var(--line))}
.ldm2 textarea,.ldm2 input,.ldm2 select{background:var(--b-bg,var(--bg));color:var(--b-fg,var(--text));border-color:var(--b-bd,var(--line))}

/* Sales-rep desk (reps.js) hardcodes dark surfaces; map them onto theme tokens in light mode. */
html[data-theme="light"] .rp-pg{background:var(--bg);color:var(--text)}
html[data-theme="light"] .rp-top{background:var(--glass)}
html[data-theme="light"] .rp-sel,
html[data-theme="light"] .rp-st div,
html[data-theme="light"] .rp-row,
html[data-theme="light"] .rp-card,
html[data-theme="light"] .rp-kp div,
html[data-theme="light"] .rp-res button{background:var(--surface);color:var(--text);border-color:var(--line)}
html[data-theme="light"] .rp-card input,
html[data-theme="light"] .rp-sel{background:var(--bg);color:var(--text);border-color:var(--line)}
html[data-theme="light"] .rp-row .ph{background:var(--surface-2)}
html[data-theme="light"] .rp-tw th{color:var(--text-2)}
html[data-theme="light"] .rp-kp small{color:var(--text-2)}


/* flicker-layers-1 (29 Nov 2026, LD-20261129-2000-APP-FLICKER-LAYERS)
   Een drop openen gaf op de telefoon een scherm dat als een gek flikkert. Op de pagina
   stonden 205 elementen met backdrop-filter: 104 chips, 42 kaarten, 42 hartjes. Elk daarvan
   is een aparte laag die de telefoon opnieuw moet samenstellen zodra er iets achter beweegt
   of de lijst scrollt; op een Samsung A56 met 120 Hz is dat het flikkeren.
   Deze elementen hebben de vervaging niet nodig: .card ligt al op een verloop van 95 tot 98
   procent dekkend, .badge is helemaal dekkend en .chip heeft een volle kleur. De vervaging
   blijft staan waar hij wel zichtbaar is en maar een keer voorkomt: de topbalk, de chipsbalk,
   de zoeksuggesties, de kaartlabels en de assistent. */
.card, .card__fav, .badge, .chip, .ld-feed-toggle, .input, .ld-info-btn {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
.card__fav { background: rgba(0, 0, 0, .62) !important; }
.badge { background: var(--surface) !important; }


/* tabbar-fit-1 (29 Nov 2026, LD-20261129-2045-APP-TABBAR-FIT)
   Het scherm liep al dagen naar alle kanten: inhoud naar links geschoven, blauwe leegte rechts,
   de onderbalk half buiten beeld. Gemeten op 360 px met Nederlandse labels: de tabbalk is 366 px
   breed terwijl het scherm er 360 is, en daarmee wordt het hele document 366 px breed. De balk
   staat op position:fixed met left:0 en right:0, dus hij hoort 360 te zijn; de knoppen duwen hem
   op omdat hun inhoud (icoon plus woord) breder is dan hun flex-basis en min-width niet greep.
   Nu: de balk wordt aan het scherm vastgezet, elke knop mag krimpen tot nul en het label krijgt
   drie puntjes in plaats van de balk op te rekken. En de pagina zelf wordt afgekapt, zodat geen
   enkel element het scherm ooit nog opzij kan duwen. Gemeten na afloop: balk 360, document 360,
   vijf knoppen van precies 72 px. */
html, body { max-width: 100%; overflow-x: clip; }
.tabbar {
  width: 100% !important;
  max-width: 100vw !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
}
.tabbar > * { min-width: 0 !important; flex: 1 1 0 !important; }
.tabbar > * span, .tabbar > * small, .tabbar > * b {
  min-width: 0; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
