:root {
  --ink: #14162e;
  --ink-2: #3b3f63;
  --muted: #7a7e9e;
  --line: #e7e8f2;
  --bg: #f5f5fb;
  --card: #ffffff;
  --brand: #5b3df5;
  --brand-2: #8a6bff;
  --brand-soft: #efebff;
  --like: #00c48c;
  --nope: #ff4d67;
  --super: #2f9bff;
  --gold: #ffb020;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(20, 22, 46, .10);
  --shadow-lg: 0 24px 60px rgba(20, 22, 46, .22);
  --nav-h: 68px;
  --top-h: 58px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink); background: #e9e8f4; -webkit-font-smoothing: antialiased; overscroll-behavior: none;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: var(--brand); text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.02em; }
p { margin: 0; }

/* ---------- App shell ---------- */
#app {
  position: relative; max-width: 480px; height: 100dvh; margin: 0 auto; background: var(--bg);
  display: flex; flex-direction: column; overflow: hidden;
}
@media (min-width: 560px) {
  body { display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 20% 10%, #d9d2ff, #e9e8f4 45%, #dff7ef); }
  #app { height: min(900px, 96dvh); width: 430px; border-radius: 36px; box-shadow: 0 40px 120px rgba(40, 30, 120, .28), 0 0 0 10px #14162e; }
}

.topbar {
  height: var(--top-h); flex: 0 0 auto; display: flex; align-items: center; gap: 10px; padding: 0 16px;
  background: var(--card); border-bottom: 1px solid var(--line); z-index: 5;
}
.topbar h1 { font-size: 18px; font-weight: 800; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .back { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; margin-left: -6px; }
.topbar .back:active { background: var(--bg); }
.icon-btn { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; background: var(--bg); position: relative; }
.icon-btn svg { width: 20px; height: 20px; }

.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 22px; letter-spacing: -.04em; flex: 1; }
.logo-mark { width: 32px; height: 32px; border-radius: 10px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); display: grid; place-items: center; box-shadow: 0 6px 14px rgba(91, 61, 245, .35); }
.logo-mark svg { width: 20px; height: 20px; }

main.view { flex: 1; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; position: relative; }
main.view.no-scroll { overflow: hidden; }
.pad { padding: 16px; }
.stack > * + * { margin-top: 12px; }

.bottomnav {
  flex: 0 0 auto; height: calc(var(--nav-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  display: grid; grid-template-columns: repeat(5, 1fr); background: var(--card); border-top: 1px solid var(--line); z-index: 5;
}
.bottomnav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font-size: 11px; font-weight: 600; position: relative; }
.bottomnav a svg { width: 24px; height: 24px; }
.bottomnav a.active { color: var(--brand); }
.bottomnav .badge { position: absolute; top: 9px; left: calc(50% + 6px); }
.badge { min-width: 18px; height: 18px; border-radius: 9px; background: var(--nope); color: #fff; font-size: 10.5px; font-weight: 800; display: inline-grid; place-items: center; padding: 0 5px; }

/* ---------- Generic UI ---------- */
.card { background: var(--card); border-radius: var(--radius); box-shadow: 0 1px 0 var(--line), 0 6px 18px rgba(20, 22, 46, .05); }
.card.pad { padding: 16px; }
.section-title { font-size: 13px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 22px 0 10px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.xs { font-size: 11.5px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.center { text-align: center; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hidden { display: none !important; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 22px; border-radius: 16px;
  font-weight: 700; font-size: 15.5px; background: var(--brand); color: #fff; width: 100%; transition: transform .08s, opacity .2s;
  box-shadow: 0 8px 20px rgba(91, 61, 245, .28);
}
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn.ghost { background: var(--brand-soft); color: var(--brand); box-shadow: none; }
.btn.light { background: #fff; color: var(--ink); box-shadow: 0 0 0 1px var(--line) inset; }
.btn.dark { background: var(--ink); box-shadow: 0 8px 20px rgba(20, 22, 46, .25); }
.btn.green { background: var(--like); box-shadow: 0 8px 20px rgba(0, 196, 140, .3); }
.btn.danger { background: #fff0f2; color: var(--nope); box-shadow: none; }
.btn.sm { height: 40px; font-size: 14px; border-radius: 12px; padding: 0 14px; width: auto; }
.btn.xs { height: 32px; font-size: 12.5px; border-radius: 10px; padding: 0 12px; width: auto; box-shadow: none; }
.link-btn { color: var(--brand); font-weight: 700; font-size: 14px; }

.field { display: block; margin-bottom: 12px; }
.field > span { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
.input, select.input, textarea.input {
  width: 100%; height: 50px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; padding: 0 14px; font-size: 15.5px; outline: none;
  transition: border-color .15s, box-shadow .15s; appearance: none;
}
textarea.input { height: auto; min-height: 90px; padding: 12px 14px; resize: vertical; }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(91, 61, 245, .12); }
select.input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237a7e9e' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.hint { font-size: 12px; color: var(--muted); margin-top: 5px; }

.chip { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border-radius: 99px; background: var(--bg); font-size: 12.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.chip.brand { background: var(--brand-soft); color: var(--brand); }
.chip.green { background: #e3faf2; color: #059669; }
.chip.gold { background: #fff5df; color: #b7791f; }
.chip.red { background: #fff0f2; color: var(--nope); }
.chip svg { width: 14px; height: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 16px; flex: 0 0 auto; position: relative; }
.avatar.lg { width: 88px; height: 88px; font-size: 34px; }
.avatar.sm { width: 32px; height: 32px; font-size: 13px; }
.avatar .vseal { position: absolute; right: -2px; bottom: -2px; width: 40%; height: 40%; min-width: 16px; min-height: 16px; }

.seal { display: inline-flex; align-items: center; gap: 4px; color: var(--brand); font-weight: 700; font-size: 12.5px; }
.seal svg { width: 16px; height: 16px; }
.stars { color: var(--gold); letter-spacing: 1px; }

.list-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #fff; }
.list-item + .list-item { border-top: 1px solid var(--line); }
.list-item .chev { color: var(--muted); }
.menu { border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 0 var(--line), 0 6px 18px rgba(20, 22, 46, .05); }
.menu .list-item { font-weight: 600; }
.menu .ic { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); font-size: 18px; }

.empty { text-align: center; padding: 48px 28px; color: var(--muted); }
.empty .big { font-size: 54px; margin-bottom: 12px; }
.empty h3 { color: var(--ink); font-size: 19px; margin-bottom: 6px; }

.toast {
  position: absolute; left: 50%; top: 14px; transform: translate(-50%, -140%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px;
  font-size: 14px; font-weight: 600; z-index: 100; transition: transform .3s cubic-bezier(.2, .9, .3, 1.2); max-width: 90%; text-align: center; box-shadow: var(--shadow-lg);
}
.toast.show { transform: translate(-50%, 0); }
.toast.err { background: var(--nope); }

/* Sheet / modal */
.sheet-bg { position: absolute; inset: 0; background: rgba(20, 22, 46, .45); z-index: 50; opacity: 0; transition: opacity .25s; backdrop-filter: blur(2px); }
.sheet-bg.show { opacity: 1; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 51; background: #fff; border-radius: 26px 26px 0 0; max-height: 92%; overflow-y: auto;
  transform: translateY(100%); transition: transform .32s cubic-bezier(.2, .9, .3, 1); padding: 10px 18px calc(22px + var(--safe-b));
}
.sheet.show { transform: translateY(0); }
.sheet .grab { width: 44px; height: 5px; background: var(--line); border-radius: 3px; margin: 0 auto 14px; }
.sheet h2 { font-size: 21px; margin-bottom: 6px; }

.spinner { width: 28px; height: 28px; border: 3px solid var(--brand-soft); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; margin: 40px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Welcome ---------- */
.welcome { height: 100%; display: flex; flex-direction: column; background: linear-gradient(170deg, #1a1440 0%, #3b22c7 55%, #7b5cff 100%); color: #fff; position: relative; overflow: hidden; }
.welcome .hero { flex: 1; position: relative; display: flex; align-items: center; justify-content: center; }
.welcome .stackpics { position: relative; width: 240px; height: 300px; }
.welcome .stackpics .pic { position: absolute; inset: 0; border-radius: 22px; background-size: cover; background-position: center; box-shadow: var(--shadow-lg); border: 4px solid rgba(255, 255, 255, .9); }
.welcome .stackpics .pic:nth-child(1) { transform: rotate(-10deg) translateX(-34px); opacity: .85; }
.welcome .stackpics .pic:nth-child(2) { transform: rotate(8deg) translateX(34px); opacity: .9; }
.welcome .stackpics .pic:nth-child(3) { animation: wobble 4s ease-in-out infinite; }
.welcome .stackpics .stamp { position: absolute; top: 22px; left: 18px; transform: rotate(-14deg); border: 4px solid var(--like); color: var(--like); font-weight: 900; font-size: 26px; padding: 2px 10px; border-radius: 10px; background: rgba(255, 255, 255, .85); }
@keyframes wobble { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(3deg) translateY(-6px); } }
.welcome .bottom { padding: 24px 22px calc(26px + var(--safe-b)); }
.welcome h1 { font-size: 30px; line-height: 1.12; font-weight: 800; }
.welcome p.lead { opacity: .82; margin: 10px 0 22px; font-size: 15.5px; line-height: 1.45; }
.welcome .btn.white { background: #fff; color: var(--brand); box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.welcome .btn.outline { background: rgba(255, 255, 255, .12); color: #fff; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .5) inset; }
.welcome .wlogo { position: absolute; top: 22px; left: 22px; display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 24px; }
.welcome .wlogo .logo-mark { background: rgba(255, 255, 255, .18); box-shadow: none; }

.auth-wrap { padding: 22px; }
.auth-wrap h2 { font-size: 26px; margin: 8px 0 4px; }

/* ---------- Deck ---------- */
.explore { height: 100%; display: flex; flex-direction: column; padding: 12px 12px 0; }
.deck { position: relative; flex: 1; min-height: 0; }
.swipe-card {
  position: absolute; inset: 0; border-radius: 24px; overflow: hidden; background: #222 center/cover no-repeat; box-shadow: var(--shadow-lg);
  touch-action: none; user-select: none; will-change: transform; transform-origin: 50% 100%;
}
.swipe-card.behind { transform: scale(.95) translateY(14px); filter: brightness(.9); transition: transform .3s, filter .3s; }
.swipe-card.behind2 { transform: scale(.9) translateY(28px); filter: brightness(.8); }
.swipe-card .photo { position: absolute; inset: 0; background-size: cover; background-position: center; transition: background-image .2s; }
.swipe-card .bars { position: absolute; top: 10px; left: 12px; right: 12px; display: flex; gap: 4px; z-index: 2; }
.swipe-card .bars i { flex: 1; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .4); }
.swipe-card .bars i.on { background: #fff; }
.swipe-card .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .25) 0%, rgba(0, 0, 0, 0) 22%, rgba(0, 0, 0, 0) 45%, rgba(8, 8, 25, .88) 100%); }
.swipe-card .info { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px; color: #fff; }
.swipe-card .info h2 { font-size: 26px; font-weight: 800; line-height: 1.1; }
.swipe-card .info h2 small { font-weight: 500; font-size: 20px; opacity: .85; }
.swipe-card .info .ver { opacity: .85; font-size: 14px; margin-top: 2px; }
.swipe-card .price { font-size: 22px; font-weight: 800; margin-top: 10px; }
.swipe-card .price small { font-size: 13px; font-weight: 600; opacity: .8; }
.swipe-card .meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.swipe-card .meta .chip { background: rgba(255, 255, 255, .18); color: #fff; backdrop-filter: blur(8px); }
.swipe-card .owner { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .18); }
.swipe-card .owner .avatar { width: 34px; height: 34px; font-size: 14px; border: 2px solid rgba(255, 255, 255, .7); }
.swipe-card .featured { position: absolute; top: 24px; left: 14px; z-index: 2; background: linear-gradient(135deg, #ffb020, #ff7a00); color: #fff; font-weight: 800; font-size: 11.5px; padding: 5px 10px; border-radius: 99px; letter-spacing: .04em; }
.swipe-card .infobtn { position: absolute; right: 16px; bottom: 18px; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .22); display: grid; place-items: center; color: #fff; backdrop-filter: blur(8px); z-index: 3; }
.swipe-card .tapzone { position: absolute; top: 0; bottom: 45%; width: 50%; z-index: 1; }
.swipe-card .tapzone.l { left: 0; } .swipe-card .tapzone.r { right: 0; }
.stamp { position: absolute; top: 46px; z-index: 4; font-weight: 900; font-size: 34px; padding: 4px 14px; border: 5px solid; border-radius: 12px; opacity: 0; letter-spacing: .04em; pointer-events: none; }
.stamp.like { left: 22px; color: var(--like); border-color: var(--like); transform: rotate(-16deg); }
.stamp.nope { right: 22px; color: var(--nope); border-color: var(--nope); transform: rotate(16deg); }
.stamp.super { left: 50%; top: auto; bottom: 200px; transform: translateX(-50%) rotate(-6deg); color: var(--super); border-color: var(--super); font-size: 28px; }

.swipe-card.ad { background: linear-gradient(160deg, #1d1b4b, #4a2fd8); }
.swipe-card.ad .adbody { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 30px; color: #fff; }
.swipe-card.ad .adicon { font-size: 76px; margin-bottom: 14px; }
.swipe-card.ad .adtag { position: absolute; top: 18px; left: 18px; font-size: 11px; font-weight: 800; letter-spacing: .08em; background: rgba(255, 255, 255, .15); padding: 5px 10px; border-radius: 99px; }
.swipe-card.ad h2 { font-size: 26px; }
.swipe-card.ad .offer { font-size: 20px; font-weight: 800; color: #ffd166; margin: 10px 0 18px; }

.actions { flex: 0 0 auto; display: flex; justify-content: center; align-items: center; gap: 18px; padding: 14px 0 14px; }
.act { width: 62px; height: 62px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 8px 22px rgba(20, 22, 46, .14); transition: transform .12s; }
.act:active { transform: scale(.9); }
.act svg { width: 28px; height: 28px; }
.act.sm { width: 48px; height: 48px; }
.act.sm svg { width: 22px; height: 22px; }
.act.nope { color: var(--nope); } .act.like { color: var(--like); } .act.super { color: var(--super); } .act.info { color: var(--brand); }

.deck-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px; }
.radar { width: 120px; height: 120px; border-radius: 50%; position: relative; display: grid; place-items: center; margin-bottom: 20px; }
.radar::before, .radar::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--brand); opacity: .2; animation: ping 2.2s infinite; }
.radar::after { animation-delay: 1.1s; }
.radar .core { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--brand-2)); display: grid; place-items: center; z-index: 1; box-shadow: var(--shadow); }
@keyframes ping { 0% { transform: scale(.5); opacity: .35; } 100% { transform: scale(1.4); opacity: 0; } }

/* Match overlay */
.match-overlay { position: absolute; inset: 0; z-index: 80; background: linear-gradient(170deg, rgba(26, 20, 64, .96), rgba(91, 61, 245, .96)); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px; color: #fff; text-align: center; animation: fadein .3s; }
.match-overlay h1 { font-size: 46px; font-weight: 900; font-style: italic; letter-spacing: -.03em; background: linear-gradient(90deg, #7fffd4, #fff, #ffd166); -webkit-background-clip: text; background-clip: text; color: transparent; animation: pop .6s cubic-bezier(.2, 1.6, .4, 1); }
.match-overlay .pair { display: flex; align-items: center; margin: 28px 0; }
.match-overlay .pair > * { width: 124px; height: 124px; border-radius: 50%; border: 5px solid #fff; background-size: cover; background-position: center; box-shadow: var(--shadow-lg); font-size: 46px; }
.match-overlay .pair > *:first-child { transform: rotate(-8deg) translateX(14px); z-index: 1; }
.match-overlay .pair > *:last-child { transform: rotate(8deg) translateX(-14px); }
.match-overlay .key { position: absolute; z-index: 2; width: 52px; height: 52px; border-radius: 50%; background: #fff; display: grid; place-items: center; left: 50%; transform: translateX(-50%); box-shadow: var(--shadow); }
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; width: 8px; height: 14px; top: -20px; animation: fall linear forwards; border-radius: 2px; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }
@keyframes pop { 0% { transform: scale(.3); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes fadein { from { opacity: 0; } }

/* Car detail */
.gallery { position: relative; height: 290px; background: #111; overflow: hidden; }
.gallery .track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery .track::-webkit-scrollbar { display: none; }
.gallery .track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; }
.gallery .count { position: absolute; right: 12px; bottom: 12px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 99px; }
.spec { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.spec div { background: var(--bg); border-radius: 14px; padding: 10px; }
.spec b { display: block; font-size: 14px; }
.spec span { font-size: 11.5px; color: var(--muted); }
.price-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.price-tiers div { border: 1.5px solid var(--line); border-radius: 14px; padding: 10px; text-align: center; }
.price-tiers b { display: block; font-size: 17px; }
.deposit-box { background: linear-gradient(135deg, #f3f0ff, #eafaf5); border-radius: 18px; padding: 16px; }
.deposit-box .val { font-size: 28px; font-weight: 800; color: var(--brand); }
.deposit-box ul { margin: 10px 0 0; padding-left: 18px; font-size: 13px; color: var(--ink-2); }
.deposit-box li + li { margin-top: 4px; }
.sticky-cta { position: sticky; bottom: 0; padding: 12px 16px calc(12px + var(--safe-b)); background: linear-gradient(0deg, var(--bg) 70%, rgba(245, 245, 251, 0)); display: flex; gap: 10px; }

/* Map */
#map { position: absolute; inset: 0; z-index: 1; }
.map-overlay { position: absolute; left: 12px; right: 12px; z-index: 5; }
.map-overlay.top { top: 12px; display: flex; gap: 8px; }
.map-overlay.bottom { bottom: 12px; }
.price-pin { background: #fff; color: var(--ink); font-weight: 800; font-size: 12.5px; padding: 5px 9px; border-radius: 99px; box-shadow: 0 4px 12px rgba(0, 0, 0, .2); white-space: nowrap; border: 2px solid #fff; transform: translate(-50%, -50%); display: inline-block; }
.price-pin.feat { background: var(--brand); color: #fff; }
.price-pin.locked { background: #dfe0ea; color: #8a8da8; }
.price-pin.mine { background: var(--like); color: #fff; }
.partner-pin { font-size: 20px; background: #fff; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 4px 12px rgba(0, 0, 0, .2); transform: translate(-50%, -50%); }
.me-pin { width: 18px; height: 18px; border-radius: 50%; background: var(--super); border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(47, 155, 255, .25); transform: translate(-50%, -50%); }
.leaflet-div-icon { background: none !important; border: 0 !important; }
.map-card { display: flex; gap: 12px; padding: 10px; align-items: center; }
.map-card img { width: 96px; height: 76px; border-radius: 12px; object-fit: cover; }

/* Matches */
.new-matches { display: flex; gap: 14px; overflow-x: auto; padding: 4px 16px 6px; scrollbar-width: none; }
.new-matches::-webkit-scrollbar { display: none; }
.nm { flex: 0 0 auto; width: 76px; text-align: center; font-size: 12.5px; font-weight: 700; }
.nm .ph { width: 76px; height: 96px; border-radius: 16px; background-size: cover; background-position: center; position: relative; margin-bottom: 6px; box-shadow: var(--shadow); }
.nm .ph .avatar { position: absolute; bottom: -8px; right: -6px; width: 30px; height: 30px; font-size: 12px; border: 2.5px solid #fff; }
.convo { display: flex; gap: 12px; padding: 12px 16px; align-items: center; background: #fff; }
.convo + .convo { border-top: 1px solid var(--line); }
.convo .thumb { width: 58px; height: 58px; border-radius: 16px; background-size: cover; background-position: center; position: relative; flex: 0 0 auto; }
.convo .thumb .avatar { position: absolute; right: -6px; bottom: -6px; width: 26px; height: 26px; font-size: 11px; border: 2px solid #fff; }
.convo h4 { font-size: 15.5px; }
.convo .last { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.convo.unread .last { color: var(--ink); font-weight: 700; }
.seg { display: flex; background: #ecebf5; border-radius: 14px; padding: 4px; margin: 0 16px; }
.seg button { flex: 1; height: 38px; border-radius: 11px; font-weight: 700; font-size: 14px; color: var(--muted); }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 2px 6px rgba(20, 22, 46, .08); }
.banner { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 18px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; }
.banner .bi { font-size: 26px; }

/* Chat */
.chat { display: flex; flex-direction: column; height: 100%; }
.chat-head { padding: 10px 14px; background: #fff; border-bottom: 1px solid var(--line); display: flex; gap: 10px; align-items: center; }
.chat-head .thumb { width: 42px; height: 42px; border-radius: 12px; background-size: cover; background-position: center; }
.chat-body { flex: 1; overflow-y: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 6px; position: relative; }
.msg { max-width: 80%; padding: 10px 14px; border-radius: 20px; font-size: 15px; line-height: 1.38; word-wrap: break-word; white-space: pre-wrap; animation: msgin .2s; }
@keyframes msgin { from { transform: translateY(6px); opacity: 0; } }
.msg.them { background: #fff; align-self: flex-start; border-bottom-left-radius: 6px; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.msg.me { background: var(--brand); color: #fff; align-self: flex-end; border-bottom-right-radius: 6px; }
.msg-time { font-size: 10.5px; color: var(--muted); margin: 0 6px 4px; }
.msg-time.me { align-self: flex-end; }
.sysmsg { align-self: center; text-align: center; font-size: 12.5px; color: var(--ink-2); background: #ebe9f7; padding: 7px 12px; border-radius: 12px; max-width: 90%; margin: 6px 0; }
.proposal { align-self: stretch; background: #fff; border-radius: 18px; padding: 14px; box-shadow: var(--shadow); border: 1.5px solid var(--brand-soft); margin: 4px 0; }
.proposal.me { margin-left: 28px; } .proposal.them { margin-right: 28px; }
.proposal .ptitle { font-weight: 800; font-size: 14px; color: var(--brand); display: flex; align-items: center; gap: 6px; }
.proposal .pgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; margin: 10px 0; font-size: 13.5px; }
.proposal .pgrid span { color: var(--muted); font-size: 11.5px; display: block; }
.proposal .ptotal { display: flex; justify-content: space-between; align-items: baseline; padding-top: 10px; border-top: 1px dashed var(--line); }
.proposal .ptotal b { font-size: 20px; }
.contract-msg { align-self: stretch; background: linear-gradient(135deg, #1d1b4b, #4a2fd8); color: #fff; border-radius: 18px; padding: 14px; margin: 4px 0; display: flex; gap: 12px; align-items: center; }
.contract-msg .ci { width: 46px; height: 46px; background: rgba(255, 255, 255, .15); border-radius: 14px; display: grid; place-items: center; font-size: 22px; }
.composer { display: flex; gap: 8px; padding: 10px 10px calc(10px + var(--safe-b)); background: #fff; border-top: 1px solid var(--line); align-items: flex-end; }
.composer textarea { flex: 1; border: 1.5px solid var(--line); border-radius: 22px; padding: 11px 16px; max-height: 120px; min-height: 46px; height: 46px; resize: none; outline: none; font-size: 15px; line-height: 1.35; }
.composer textarea:focus { border-color: var(--brand); }
.composer .send { width: 46px; height: 46px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; flex: 0 0 auto; }
.composer .prop { height: 46px; border-radius: 23px; background: var(--brand-soft); color: var(--brand); font-weight: 800; font-size: 13px; padding: 0 12px; flex: 0 0 auto; display: flex; align-items: center; gap: 4px; }
.lock-panel { position: absolute; inset: 0; display: flex; align-items: flex-end; background: linear-gradient(180deg, rgba(245, 245, 251, 0) 0%, rgba(245, 245, 251, .9) 30%, var(--bg) 55%); z-index: 3; padding: 16px; }
.blur-lines { filter: blur(5px); opacity: .6; pointer-events: none; }

/* Verify */
.steps { display: flex; gap: 6px; margin-bottom: 18px; }
.steps i { flex: 1; height: 5px; border-radius: 3px; background: var(--line); }
.steps i.on { background: var(--brand); }
.steps i.done { background: var(--like); }
.vcheck { display: flex; align-items: center; gap: 12px; padding: 14px; background: #fff; border-radius: 16px; }
.vcheck + .vcheck { margin-top: 8px; }
.vcheck .vi { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; font-size: 20px; background: var(--bg); flex: 0 0 auto; }
.vcheck.ok .vi { background: #e3faf2; }
.vcheck .st { font-size: 12px; font-weight: 800; }
.vcheck.ok .st { color: #059669; }
.upload-box { border: 2px dashed #cfd0e2; border-radius: 18px; padding: 22px; text-align: center; background: #fff; cursor: pointer; display: block; position: relative; overflow: hidden; }
.upload-box img { max-height: 160px; margin: 0 auto; border-radius: 10px; }
.upload-box input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.face-cam { width: 260px; height: 320px; margin: 0 auto; border-radius: 50% / 45%; overflow: hidden; position: relative; background: #1d1b4b; box-shadow: 0 0 0 6px var(--brand-soft), var(--shadow); }
.face-cam video, .face-cam img { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.face-cam .scan { position: absolute; left: 0; right: 0; height: 3px; background: var(--like); box-shadow: 0 0 18px 4px var(--like); top: 0; animation: scan 1.6s ease-in-out infinite alternate; }
@keyframes scan { to { top: 100%; } }
.face-cam .placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, .6); font-size: 80px; }
.gauge { width: 220px; height: 120px; margin: 10px auto 0; position: relative; }
.gauge svg { width: 100%; height: 100%; }
.gauge .gv { position: absolute; bottom: 4px; left: 0; right: 0; text-align: center; font-size: 36px; font-weight: 800; }
.verified-hero { text-align: center; padding: 26px 16px; border-radius: 22px; background: linear-gradient(160deg, #1d1b4b, #5b3df5); color: #fff; }
.verified-hero .big { font-size: 56px; }

/* Plans */
.plan { border-radius: 22px; padding: 20px; background: #fff; border: 2px solid var(--line); position: relative; }
.plan.hl { border-color: var(--brand); box-shadow: 0 14px 34px rgba(91, 61, 245, .18); }
.plan.dark { background: linear-gradient(160deg, #14162e, #2c2470); color: #fff; border-color: transparent; }
.plan .pname { font-weight: 800; font-size: 20px; }
.plan .pfor { font-size: 12.5px; font-weight: 700; opacity: .7; }
.plan .pprice { font-size: 32px; font-weight: 800; margin: 10px 0; }
.plan .pprice small { font-size: 14px; font-weight: 600; opacity: .7; }
.plan ul { list-style: none; padding: 0; margin: 0 0 16px; }
.plan li { padding: 5px 0 5px 26px; position: relative; font-size: 14px; }
.plan li::before { content: '✓'; position: absolute; left: 0; font-weight: 900; color: var(--like); }
.plan .tag { position: absolute; top: -12px; right: 18px; background: var(--gold); color: #fff; font-weight: 800; font-size: 11.5px; padding: 4px 10px; border-radius: 99px; }
.pix-qr { width: 180px; height: 180px; margin: 12px auto; background: #fff; padding: 10px; border-radius: 16px; box-shadow: 0 0 0 1px var(--line); }
.demo-note { background: #fff8e6; color: #8a5a00; font-size: 12.5px; padding: 10px 12px; border-radius: 12px; }

/* Garage & owner */
.gcar { overflow: hidden; }
.gcar .gimg { height: 150px; background-size: cover; background-position: center; position: relative; }
.gcar .gimg .chip { position: absolute; top: 10px; left: 10px; }
.gcar .stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.gcar .stats div { padding: 10px; text-align: center; }
.gcar .stats div + div { border-left: 1px solid var(--line); }
.gcar .stats b { display: block; font-size: 17px; }
.gcar .stats span { font-size: 11px; color: var(--muted); }
.photos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.photos-grid .ph { aspect-ratio: 1; border-radius: 12px; background-size: cover; background-position: center; position: relative; }
.photos-grid .ph button { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; background: rgba(0, 0, 0, .6); color: #fff; font-size: 14px; }
.photos-grid label { aspect-ratio: 1; border-radius: 12px; border: 2px dashed #cfd0e2; display: grid; place-items: center; font-size: 28px; color: var(--muted); cursor: pointer; position: relative; background: #fff; }
.photos-grid label input { position: absolute; inset: 0; opacity: 0; }
.toggle { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; }
.switch { width: 50px; height: 30px; border-radius: 15px; background: #d9dae8; position: relative; transition: background .2s; flex: 0 0 auto; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 2px 4px rgba(0, 0, 0, .2); }
.switch.on { background: var(--like); }
.switch.on::after { transform: translateX(20px); }

.renter-card { background: linear-gradient(170deg, #ffffff 0%, #f3f0ff 100%); display: flex; flex-direction: column; }
.renter-card .rc-top { padding: 26px 20px 10px; text-align: center; }
.renter-card .rc-body { padding: 0 18px 18px; flex: 1; overflow: hidden; display: flex; flex-direction: column; gap: 10px; }
.renter-card .intro { background: #fff; border-radius: 16px; padding: 12px 14px; font-size: 14px; box-shadow: 0 1px 0 var(--line); }
.renter-card .forcar { display: flex; gap: 10px; align-items: center; background: #fff; border-radius: 14px; padding: 8px; box-shadow: 0 1px 0 var(--line); }
.renter-card .forcar img { width: 64px; height: 46px; border-radius: 10px; object-fit: cover; }
.renter-card .superflag { position: absolute; top: 14px; right: 14px; }

/* Contract */
.sigpad { width: 100%; height: 170px; background: #fff; border: 2px dashed #cfd0e2; border-radius: 16px; touch-action: none; display: block; }
.sig-status { display: flex; gap: 10px; }
.sig-status > div { flex: 1; padding: 12px; border-radius: 14px; background: #fff; text-align: center; font-size: 13px; }
.sig-status .ok { color: #059669; font-weight: 800; }
.sig-status .wait { color: var(--gold); font-weight: 800; }
.kv { display: flex; justify-content: space-between; padding: 9px 0; font-size: 14px; }
.kv + .kv { border-top: 1px solid var(--line); }
.kv span { color: var(--muted); }
.kv b { text-align: right; }
.rate-stars { display: flex; justify-content: center; gap: 6px; font-size: 38px; }
.rate-stars button { color: #d6d7e6; transition: transform .1s; }
.rate-stars button.on { color: var(--gold); }
.rate-stars button:active { transform: scale(1.2); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--brand); flex: 0 0 auto; }

.partner { display: flex; gap: 12px; padding: 14px; align-items: center; }
.partner .pi { width: 52px; height: 52px; border-radius: 16px; background: var(--bg); display: grid; place-items: center; font-size: 26px; flex: 0 0 auto; }
.coupon { border: 2px dashed var(--brand); border-radius: 12px; padding: 8px 12px; font-weight: 800; color: var(--brand); letter-spacing: .06em; text-align: center; background: var(--brand-soft); }
.profile-head { text-align: center; padding: 24px 16px 8px; }
.profile-head h2 { font-size: 24px; margin-top: 12px; }
.plan-card { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 20px; background: linear-gradient(135deg, #14162e, #3b2bb5); color: #fff; }
.review { padding: 12px 0; }
.review + .review { border-top: 1px solid var(--line); }
.filters-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 10px; flex: 0 0 auto; }
.filters-row::-webkit-scrollbar { display: none; }
.filters-row .chip { height: 34px; padding: 0 12px; background: #fff; box-shadow: 0 1px 0 var(--line); cursor: pointer; }
.filters-row .chip.on { background: var(--ink); color: #fff; }
