/* Velora 2.1 Noir. Dark, quiet, one sand accent. Manrope. 8pt grid. App first on phones. */

@font-face { font-family: 'Manrope'; font-style: normal; font-display: swap; font-weight: 200 800; src: url(../fonts/manrope-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: 'Manrope'; font-style: normal; font-display: swap; font-weight: 200 800; src: url(../fonts/manrope-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 {
  --bg: #0B0B0C;
  --surface: #151517;
  --surface-2: #1C1C1F;
  --ink: #F3F2EF;
  --ink-2: #D6D5D1;
  --muted: #A3A3A8;
  --faint: #8C8C92;
  --line: #232327;
  --line-2: #2E2E33;
  --accent: #D8C3A0;
  --accent-ink: var(--accent);
  --accent-soft: #2A2419;
  --accent-soft-ink: #E8D7B8;
  --ok: #3FA66B;
  --ok-soft: #132A1D;
  --ok-ink: #8FD3A9;
  --info-soft: #16202E;
  --info-ink: #9DB9E6;
  --bad: #F0585C;
  --bad-soft: #2E1416;
  --warn-soft: #2B2112;
  --warn-ink: #E3C07F;
  --btn: var(--accent);
  --btn-ink: #0B0B0C;
  --tone: #2A2A2E;
  --tone-2: #1F1F23;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
  --shadow-lg: 0 24px 64px rgba(0,0,0,.6);
  --glass: rgba(11,11,12,.9);
  --rule: #1E1E22;
  --placeholder: #6F6F75;
  --ring: rgba(216,195,160,.22);
  --toast: #F3F2EF;
  --toast-ink: #0B0B0C;
  --tab-ink: #8E8E94;
  --ok-solid: #2E8B57;
  --bad-solid: #C93A3F;
  --balance-a: #24201A;
  --balance-b: #141416;
  --balance-ink: #F3F2EF;
  --balance-muted: #A49C8F;
  --vbar-line: #3A3226;
  --card-ring: var(--accent);
  --r: var(--radius, 16px);
  --r-sm: var(--radius-sm, 12px);
  --r-lg: var(--radius-lg, 20px);
  --serif: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --gut: 48px;
  --tab-h: 64px;
  --top-h: 72px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
@media (hover: hover) { a:hover { color: var(--accent-ink); } }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { flex: 0 0 auto; display: inline-block; vertical-align: middle; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.serif { font-family: var(--serif); font-weight: 700; letter-spacing: -.02em; }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.b { font-weight: 600; }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.hide { display: none !important; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack-lg { display: flex; flex-direction: column; gap: 24px; }
.grow { flex: 1; min-width: 0; }
.mt { margin-top: 16px; } .mt-lg { margin-top: 32px; } .mb { margin-bottom: 16px; }

.wrap { max-width: calc(1280px + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }
.wrap-md { max-width: calc(960px + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }
.wrap-sm { max-width: 620px; margin: 0 auto; padding: 0 20px; }
.page { padding-top: 40px; padding-bottom: 80px; }
.row.wrap { max-width: none; margin: 0; padding: 0; }
.dir > *, .feed-layout > *, .book-layout > *, .prof-main > *, .hero-grid > *, .cols > *, .shell > * { min-width: 0; }

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 40; height: var(--top-h);
  background: var(--glass); backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid var(--rule);
}
.top .wrap { height: 100%; display: flex; align-items: center; gap: 24px; }
.logo { font-family: var(--sans); font-size: 20px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; line-height: 1; color: var(--ink); }
.logo img { height: 30px; width: auto; }
.top-nav { display: flex; gap: 24px; font-size: 14px; font-weight: 600; }
.top-nav a { color: var(--muted); }
.top-nav a.on { color: var(--ink); box-shadow: 0 2px 0 var(--accent); }
.top-search { flex: 1; max-width: 380px; position: relative; }
.top-search input { width: 100%; height: 44px; border-radius: 22px; border: 1px solid var(--line-2); background: var(--surface); padding: 0 16px 0 42px; outline: none; font-size: 14px; }
.top-search input:focus { border-color: var(--accent); }
.top-search .ic { position: absolute; left: 16px; top: 13px; color: var(--muted); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.icon-btn { position: relative; width: 44px; height: 44px; border-radius: 22px; border: 0; background: transparent; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.dot { position: absolute; top: 8px; right: 8px; min-width: 17px; height: 17px; border-radius: 9px; padding: 0 5px; background: var(--accent); color: var(--btn-ink); font-size: 10.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 2px solid var(--bg); }
.wallet-chip { display: inline-flex; align-items: center; gap: 8px; height: 44px; border-radius: 22px !important; padding: 0 14px 0 12px; border-radius: 20px; border: 1px solid var(--line-2); background: var(--surface); font-size: 13.5px; font-weight: 600; margin: 0 6px; }
.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; border-radius: 22px; }
.menu > summary::-webkit-details-marker { display: none; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 8px; z-index: 50; }
.menu-pop a, .menu-pop button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 10px; border: 0; background: none; font-size: 14px; text-align: left; color: var(--ink); }
.menu-pop a:hover, .menu-pop button:hover { background: var(--surface-2); }
.menu-pop hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
.menu-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }

/* Mobile app bar */
.appbar { display: none; }

/* ---------- Buttons, chips, badges ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 24px;
  border-radius: 26px; border: 1px solid transparent; background: var(--btn); color: var(--btn-ink); font-weight: 700; font-size: 15px;
  transition: transform .08s ease, opacity .15s; white-space: nowrap; text-align: center;
}
.btn:hover { color: var(--btn-ink); opacity: .92; }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn-ghost { background: var(--surface-2); color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { color: var(--ink); background: var(--line-2); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-line:hover { color: var(--ink); border-color: var(--muted); }
.btn-accent { background: var(--accent); color: var(--btn-ink); }
.btn-accent:hover { color: var(--btn-ink); }
.btn-ok { background: var(--ok-solid); color: #fff; }
.btn-bad { background: var(--bad-solid); color: #fff; }
.btn-bad:hover, .btn-ok:hover { color: #fff; }
.btn-sm { height: 40px; padding: 0 16px; font-size: 13.5px; border-radius: 20px; }
.btn-lg { height: 52px; padding: 0 28px; font-size: 15px; border-radius: 26px; }
.btn-block { width: 100%; }
.btn-pill { border-radius: 999px; }
.link { color: var(--accent-ink); font-weight: 600; }
.link:hover { text-decoration: underline; }

.chip { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: 20px; border: 1px solid var(--line-2); background: var(--surface); font-size: 13.5px; font-weight: 500; white-space: nowrap; color: var(--ink); }
.chip:hover { border-color: var(--muted); color: var(--ink); }
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--btn-ink); font-weight: 700; }
.chip .n { opacity: .55; font-weight: 400; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gut)); padding: 0 var(--gut); }
.chips.scroll::-webkit-scrollbar { display: none; }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 8px; font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.badge.gold { background: var(--accent-soft); color: var(--accent-soft-ink); }
.badge.ok { background: var(--ok-soft); color: var(--ok-ink); }
.badge.info { background: var(--info-soft); color: var(--info-ink); }
.badge.warn { background: var(--warn-soft); color: var(--warn-ink); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.dark { background: var(--ink); color: var(--accent-soft); letter-spacing: .08em; font-size: 10.5px; }
.live-dot { width: 7px; height: 7px; border-radius: 4px; background: var(--ok); display: inline-block; }
.vbadge { color: var(--accent); flex: 0 0 auto; }
.ribbon { position: absolute; left: 10px; top: 10px; z-index: 2; font-size: 10.5px; font-weight: 600; letter-spacing: .09em; padding: 5px 9px; border-radius: 9px; }
.ribbon.spotlight { background: var(--accent); color: var(--btn-ink); }
.ribbon.premium { background: #fff; color: #15130F; }
.ribbon.featured { background: #F2E6CF; color: #6B4E22; }

/* ---------- Avatars ---------- */
.av { border-radius: 50%; object-fit: cover; background: var(--tone); flex: 0 0 auto; }
.av-txt { display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: hsl(var(--h) 35% 82%); background: hsl(var(--h) 14% 22%); letter-spacing: .02em; }
.ring { padding: 3px; border-radius: 50%; border: 2px solid var(--accent); display: inline-flex; }
.ring.seen { border-color: var(--line-2); }

/* ---------- Cards, panels ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.card-pad { padding: 24px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.panel h2, .panel h3 { font-size: 17px; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.section-head { margin-top: 8px; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 16px; }
.section-head h2 { font-family: var(--serif); font-weight: 700; font-size: 26px; letter-spacing: -.02em; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .16em; color: var(--accent-ink); text-transform: uppercase; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.empty { text-align: center; padding: 56px 20px; color: var(--muted); }
.empty .ic { color: var(--faint); margin: 0 auto 12px; display: block; }
.empty h3 { font-family: var(--serif); font-weight: 700; color: var(--ink); font-size: 22px; margin-bottom: 6px; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field > span, .label { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.hint { font-size: 12.5px; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; height: 52px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); padding: 0 16px; outline: none; font-size: 15px; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.textarea { height: auto; min-height: 120px; padding: 14px 16px; resize: vertical; line-height: 1.5; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23A3A3A8' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
.input::placeholder, .textarea::placeholder { color: var(--placeholder); }
.select option { background: var(--surface); color: var(--ink); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); flex: 0 0 auto; }
.switch { position: relative; width: 46px; height: 28px; flex: 0 0 auto; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; border-radius: 14px; background: var(--line-2); transition: background .2s; }
.switch span::after { content: ''; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 11px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.switch input:checked + span { background: var(--accent); }
.switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.switch input:checked + span::after { transform: translateX(18px); }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 26px; padding: 4px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 44px; border-radius: 22px; color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer; line-height: 1.15; }
.seg span small { font-size: 10.5px; color: var(--ok); font-weight: 600; }
.seg input:checked + span { background: var(--accent); color: var(--btn-ink); }
.seg input:checked + span small { color: var(--btn-ink); opacity: .7; }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.option { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; }
.option:has(input:checked) { border: 2px solid var(--accent); padding: 15px; background: color-mix(in srgb, var(--accent-soft) 60%, var(--surface)); }
.option input { margin-top: 2px; width: 20px; height: 20px; accent-color: var(--accent); }
.file-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 150px; border: 1.5px dashed var(--line-2); border-radius: var(--r); background: var(--surface); color: var(--muted); text-align: center; padding: 20px; cursor: pointer; }
.file-drop:hover { border-color: var(--accent); }
.file-drop input { display: none; }
.previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.previews img, .previews video { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 10px; background: var(--tone); }
.err { color: var(--bad); font-size: 13px; }

/* ---------- Toasts ---------- */
.toasts { position: fixed; z-index: 100; left: 50%; transform: translateX(-50%); top: 76px; display: flex; flex-direction: column; gap: 8px; width: min(440px, calc(100% - 32px)); pointer-events: none; }
.toast { pointer-events: auto; padding: 14px 16px; border-radius: 16px; background: var(--toast); color: var(--toast-ink); font-weight: 600; font-size: 14px; box-shadow: var(--shadow-lg); display: flex; gap: 10px; align-items: center; animation: toastIn .25s ease; }
.toast.error { background: var(--bad-solid); color: #fff; }
.toast.success .ic { color: var(--ok-solid); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- Home hero ---------- */
.hero { padding: 64px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(40px, 5vw, 64px); line-height: 1.04; letter-spacing: -.035em; margin: 14px 0 18px; }
.hero p.lead { font-size: 17px; color: var(--muted); max-width: 520px; line-height: 1.55; }
.hero-search { display: flex; align-items: stretch; background: var(--surface); border: 1px solid var(--line-2); border-radius: 40px; padding: 8px; margin-top: 28px; max-width: 640px; box-shadow: var(--shadow); }
.hero-search label { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 6px 18px; border-right: 1px solid var(--line); min-width: 0; }
.hero-search label:last-of-type { border-right: 0; }
.hero-search label b { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.hero-search select, .hero-search input { border: 0; outline: none; background: transparent; padding: 0; font-size: 15px; appearance: none; width: 100%; }
.hero-search .btn { height: 52px; border-radius: 26px; padding: 0 28px; }
.hero-art { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.hero-art .ph { aspect-ratio: 3/5; border-radius: 20px; background: var(--tone) center/cover no-repeat; }
.hero-art .ph:nth-child(1) { margin-top: 44px; }
.hero-art .ph:nth-child(3) { margin-top: 72px; }
.trust-row { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 22px; font-size: 13.5px; color: var(--muted); }
.trust-row span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Directory ---------- */
.dir { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 32px; align-items: start; }
.filters { position: sticky; top: calc(var(--top-h) + 24px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; display: flex; flex-direction: column; gap: 24px; }
.filters h3 { font-family: var(--serif); font-weight: 700; font-size: 22px; }
.filters .fgroup { display: flex; flex-direction: column; gap: 9px; }
.filters .fgroup > b { font-size: 13px; }
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 32px 16px; }
.tcard.lg { grid-column: span 2; }
.tcard.lg .ph { aspect-ratio: 8/5; }
.strip { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.strip::-webkit-scrollbar { display: none; }
.strip > * { scroll-snap-align: start; flex: 0 0 auto; }
.strip .tcard { width: 200px; }
.city-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.city-tile { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.city-tile:hover { border-color: var(--accent); }
.city-tile b { font-family: var(--serif); font-weight: 700; font-size: 20px; }
.dark-band { background: var(--surface); color: var(--ink); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dark-band .muted { color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.step { padding: 24px; border: 1px solid var(--line-2); border-radius: var(--r-lg); display: flex; flex-direction: column; gap: 10px; }
.step .n { font-family: var(--serif); font-weight: 700; font-size: 32px; color: var(--accent); }
.step h3 { font-size: 17px; }

/* ---------- Stories ---------- */
.stories { display: flex; gap: 16px; overflow-x: auto; scrollbar-width: none; padding: 4px 0 8px; }
.stories::-webkit-scrollbar { display: none; }
.story { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 72px; flex: 0 0 auto; font-size: 11.5px; color: var(--ink-2); }
.story span { max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.story-view { position: fixed; inset: 0; z-index: 90; background: #000; display: flex; align-items: center; justify-content: center; }
.story-view .frame { position: relative; width: min(100%, 460px); height: min(100%, 820px); background: #111; overflow: hidden; }
.story-view .frame img, .story-view .frame video { width: 100%; height: 100%; object-fit: cover; }
.story-view .bars { position: absolute; left: 10px; right: 10px; top: 10px; display: flex; gap: 4px; z-index: 3; }
.story-view .bars i { flex: 1; height: 2.5px; border-radius: 2px; background: rgba(255,255,255,.35); overflow: hidden; }
.story-view .bars i b { display: block; height: 100%; width: 0; background: #fff; }
.story-view .who { position: absolute; left: 14px; top: 24px; z-index: 3; color: #fff; display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; }
.story-view .x { position: absolute; right: 8px; top: 18px; z-index: 4; color: #fff; }
.story-view .tap { position: absolute; top: 0; bottom: 0; width: 40%; z-index: 2; background: transparent; border: 0; }
.story-view .tap.l { left: 0; } .story-view .tap.r { right: 0; }

/* ---------- Feed post ---------- */
.feed { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }
.feed-layout { display: grid; grid-template-columns: minmax(0, 560px) 320px; gap: 48px; justify-content: center; align-items: start; }
.feed-side { position: sticky; top: calc(var(--top-h) + 24px); display: flex; flex-direction: column; gap: 18px; }
.post { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.post-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.post-head .who { flex: 1; min-width: 0; }
.post-head .who b { display: flex; align-items: center; gap: 4px; font-size: 14px; }
.post-head .who small { color: var(--muted); font-size: 12px; }
.media { position: relative; background: var(--tone); }
.carousel { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.carousel::-webkit-scrollbar { display: none; }
.carousel > * { flex: 0 0 100%; scroll-snap-align: center; }
.media img, .media video { width: 100%; aspect-ratio: 4/5; object-fit: cover; background: var(--tone); }
.dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.5); transition: background .2s, width .2s; }
.dots i.on { background: #fff; width: 14px; }
.counter { position: absolute; right: 12px; top: 12px; background: rgba(21,19,15,.6); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 10px; }
.locked { position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--tone); }
.locked img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); }
.locked .over { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; text-align: center; color: #fff; background: linear-gradient(180deg, rgba(21,19,15,.15), rgba(21,19,15,.55)); }
.locked .over .lk { width: 56px; height: 56px; border-radius: 28px; background: rgba(255,255,255,.16); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; }
.locked .over p { font-size: 14px; opacity: .92; max-width: 280px; }
.locked .btn { background: #fff; color: #15130F; }
.heart-pop { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%) scale(0); color: #fff; pointer-events: none; filter: drop-shadow(0 4px 18px rgba(0,0,0,.35)); }
.heart-pop.go { animation: pop .8s ease; }
@keyframes pop { 15% { transform: translate(-50%,-50%) scale(1.15); opacity: 1; } 30% { transform: translate(-50%,-50%) scale(.95); } 80% { opacity: 1; } 100% { transform: translate(-50%,-50%) scale(1); opacity: 0; } }
.post-actions { display: flex; align-items: center; padding: 4px 6px; }
.post-actions .icon-btn.on { color: var(--bad); }
.post-actions .icon-btn.saved { color: var(--ink); }
.post-body { padding: 0 16px 16px; font-size: 14px; line-height: 1.5; }
.post-body .likes { font-weight: 600; }
.post-body .when { font-size: 11.5px; color: var(--faint); text-transform: uppercase; letter-spacing: .04em; margin-top: 6px; }
.comments { padding: 12px 16px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.comment-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); }
.comment-form input { flex: 1; border: 0; outline: none; background: transparent; font-size: 14px; }
.comment-form button { border: 0; background: none; color: var(--accent); font-weight: 700; min-height: 44px; }

/* ---------- Profile ---------- */
.prof { padding-top: 36px; }
.prof-av { grid-row: span 2; align-self: start; }
.prof-info { grid-column: 2; }
.prof-top { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 40px; align-items: center; }
.prof-av { width: 170px; height: 170px; }
.prof-av .av { width: 100% !important; height: 100% !important; }
.prof h1 { font-family: var(--serif); font-weight: 700; font-size: 38px; letter-spacing: -.02em; }
.prof .handle { color: var(--muted); font-size: 14px; }
.prof .stats { display: flex; gap: 28px; font-size: 15px; margin: 14px 0; flex-wrap: wrap; }
.prof .stats b { font-weight: 600; }
.prof .bio { font-size: 15px; line-height: 1.6; color: var(--ink-2); max-width: 640px; white-space: pre-line; }
.prof-actions { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.prof-main { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; padding-top: 28px; }
.prof-side { position: sticky; top: calc(var(--top-h) + 20px); display: flex; flex-direction: column; gap: 18px; }
.highlights { display: flex; gap: 20px; overflow-x: auto; scrollbar-width: none; padding: 20px 0 6px; }
.tabs { display: flex; justify-content: center; gap: 36px; border-top: 1px solid var(--line-2); margin-top: 18px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { display: inline-flex; align-items: center; gap: 7px; padding: 15px 0 13px; font-size: 12.5px; font-weight: 600; letter-spacing: .1em; color: var(--faint); text-transform: uppercase; border-top: 2px solid transparent; margin-top: -1px; white-space: nowrap; }
.tabs a.on { color: var(--ink); border-top-color: var(--accent); }
.pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.pgrid a { position: relative; aspect-ratio: 4/5; background: var(--tone); overflow: hidden; border-radius: 4px; display: block; }
.pgrid img { width: 100%; height: 100%; object-fit: cover; }
.pgrid .lockov { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: #fff; background: rgba(21,19,15,.38); font-size: 12px; font-weight: 600; text-align: center; padding: 6px; }
.pgrid .vid { position: absolute; right: 8px; top: 8px; color: #fff; filter: drop-shadow(0 1px 4px rgba(0,0,0,.4)); }
.pgrid .hover { position: absolute; inset: 0; background: rgba(21,19,15,.4); color: #fff; display: flex; align-items: center; justify-content: center; gap: 16px; font-weight: 600; opacity: 0; transition: opacity .15s; }
.pgrid a:hover .hover { opacity: 1; }
.rate-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.rate-grid div { padding: 16px; border-radius: 14px; background: var(--surface-2); font-size: 13px; display: flex; flex-direction: column; gap: 2px; }
.rate-grid b { font-size: 15px; }
.comp { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; font-size: 14px; }
.comp small { display: block; color: var(--muted); font-size: 12px; }
.review { padding: 16px 0; border-bottom: 1px solid var(--line); }
.review:last-child { border-bottom: 0; }
.stars { color: var(--accent); display: inline-flex; gap: 1px; }

/* ---------- Messages ---------- */
.chat-shell { display: grid; grid-template-columns: 340px minmax(0, 1fr); height: calc(100vh - var(--top-h)); border-left: 1px solid var(--line); border-right: 1px solid var(--line); background: var(--surface); }
.chat-list { border-right: 1px solid var(--line); overflow-y: auto; }
.chat-list h2 { font-size: 20px; padding: 20px 20px 12px; }
.convo { display: flex; gap: 12px; align-items: center; padding: 12px 20px; }
.convo:hover, .convo.on { background: var(--surface-2); }
.convo .grow b { display: flex; justify-content: space-between; font-size: 14px; }
.convo .grow small { display: block; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.convo.unread .grow small { color: var(--ink); font-weight: 600; }
.thread { display: flex; flex-direction: column; min-height: 0; }
.thread-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.msgs { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 8px; background: var(--bg); }
.msg { max-width: min(76%, 460px); padding: 10px 14px; border-radius: 18px; font-size: 14.5px; line-height: 1.45; white-space: pre-wrap; word-wrap: break-word; }
.msg.me { align-self: flex-end; background: var(--accent); color: var(--btn-ink); border-bottom-right-radius: 6px; }
.msg.them { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg-media { padding: 0; overflow: hidden; width: 240px; }
.msg-media img, .msg-media video { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.msg-media .cap { padding: 10px 12px; display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.msg-time { font-size: 11px; color: var(--faint); align-self: center; margin: 8px 0 2px; }
.safety-note { align-self: center; display: flex; gap: 8px; align-items: center; padding: 8px 12px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-soft-ink); font-size: 12.5px; max-width: 92%; }
.composer { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--surface); }
.composer textarea { flex: 1; min-height: 44px; max-height: 140px; border-radius: 22px; border: 1px solid var(--line-2); padding: 11px 16px; resize: none; outline: none; background: var(--surface); font-size: 14.5px; }
.composer .icon-btn { background: var(--surface-2); }
.composer .send { background: var(--accent); color: var(--btn-ink); }
.composer .send:hover { background: var(--accent); color: var(--btn-ink); opacity: .9; }
.attach-bar { display: flex; gap: 10px; align-items: center; padding: 8px 14px; background: var(--surface-2); font-size: 13px; }

/* ---------- Booking ---------- */
.book-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.summary { position: sticky; top: calc(var(--top-h) + 20px); }
.summary-row { display: flex; justify-content: space-between; font-size: 14px; padding: 6px 0; }
.summary-row.total { font-weight: 600; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; font-size: 15px; }
.timeline { display: flex; flex-direction: column; gap: 0; }
.tl { display: flex; gap: 14px; }
.tl .dotc { display: flex; flex-direction: column; align-items: center; }
.tl .dotc i { width: 22px; height: 22px; border-radius: 11px; border: 2px solid var(--line-2); background: var(--surface); display: flex; align-items: center; justify-content: center; color: var(--btn-ink); }
.tl.done .dotc i { background: var(--accent); border-color: var(--accent); }
.tl.now .dotc i { border-color: var(--accent); background: var(--bg); }
.tl .dotc s { flex: 1; width: 2px; background: var(--line-2); min-height: 18px; text-decoration: none; }
.tl:last-child .dotc s { display: none; }
.tl .tx { padding-bottom: 18px; font-size: 14px; }
.tl .tx small { display: block; color: var(--muted); font-size: 12.5px; }
.code-box { display: flex; justify-content: center; gap: 8px; margin: 10px 0; }
.code-box span { width: 46px; height: 58px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line-2); font-family: var(--serif); font-weight: 700; font-size: 30px; display: flex; align-items: center; justify-content: center; }
.otp-input { letter-spacing: .5em; text-align: center; font-size: 26px; font-family: var(--serif); height: 60px; }
.list-row { display: flex; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }

/* ---------- Wallet ---------- */
.balance-card { border-radius: var(--r-lg); padding: 24px; background: linear-gradient(150deg, var(--balance-a), var(--balance-b) 70%); border: 1px solid var(--line-2); color: var(--balance-ink); position: relative; overflow: hidden; }
.balance-card::after { content: ''; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; border: 1px solid rgba(230,207,163,.25); }
.balance-card .amt { font-family: var(--serif); font-weight: 700; font-size: 40px; letter-spacing: -.02em; margin: 6px 0 2px; }
.balance-card .muted { color: var(--balance-muted); }
.amount-pick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.amount-pick label { position: relative; }
.amount-pick input { position: absolute; opacity: 0; }
.amount-pick span { display: flex; align-items: center; justify-content: center; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); font-weight: 600; font-size: 14px; cursor: pointer; }
.amount-pick input:checked + span { border-color: var(--accent); background: var(--accent); color: var(--btn-ink); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .amt-in { color: var(--ok-ink); font-weight: 600; }
.table .amt-out { color: var(--ink); font-weight: 600; }

/* ---------- Dashboards (studio, admin) ---------- */
.shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: calc(100vh - var(--top-h)); }
.side { border-right: 1px solid var(--line); background: var(--surface); padding: 22px 14px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: var(--top-h); height: calc(100vh - var(--top-h)); overflow-y: auto; }
.side a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 12px; font-size: 14px; color: var(--muted); }
.side a:hover { background: var(--surface-2); color: var(--ink); }
.side a.on { background: var(--surface-2); color: var(--ink); font-weight: 700; box-shadow: inset 2px 0 0 var(--accent); }
.side a .cnt { margin-left: auto; font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 8px; background: var(--accent); color: var(--btn-ink); }
.side .grp { font-size: 11px; letter-spacing: .12em; color: var(--faint); font-weight: 600; padding: 16px 12px 6px; text-transform: uppercase; }
.admin .side { background: #15130F; border-color: #15130F; }
.admin .side a { color: #CFC8BC; }
.admin .side a:hover, .admin .side a.on { background: #2B2721; color: #fff; }
.admin .side .grp { color: #8E877C; }
.main { padding: 40px var(--gut) 64px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.main-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.main-head h1 { font-family: var(--serif); font-weight: 700; font-size: 32px; letter-spacing: -.02em; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.kpi small { color: var(--muted); font-size: 13px; }
.kpi b { font-family: var(--serif); font-weight: 700; font-size: 28px; letter-spacing: -.02em; }
.kpi .trend { font-size: 12.5px; color: var(--muted); }
.bars { display: flex; flex-direction: column; gap: 12px; }
.bar-row { display: grid; grid-template-columns: 120px 1fr 100px; gap: 12px; align-items: center; font-size: 13.5px; }
.bar-row i { height: 10px; border-radius: 5px; background: var(--surface-2); overflow: hidden; display: block; }
.bar-row i b { display: block; height: 100%; border-radius: 5px; background: var(--accent); }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 16px; align-items: start; }
.spark { display: flex; align-items: flex-end; gap: 4px; height: 180px; border-bottom: 1px solid var(--line); }
.spark i { flex: 1; background: var(--tone); border-radius: 3px 3px 0 0; position: relative; min-height: 2px; }
.spark i b { position: absolute; left: 0; right: 0; bottom: 0; background: var(--accent); border-radius: 3px 3px 0 0; }
.tabs-inline { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); margin-top: 64px; }
.foot .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 40px var(--gut); font-size: 13.5px; color: var(--muted); }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- Auth ---------- */
.auth { min-height: calc(100vh - var(--top-h)); display: grid; grid-template-columns: 1fr 1fr; }
.auth-art { background: var(--tone) center/cover no-repeat; position: relative; display: flex; align-items: flex-end; padding: 48px; color: #F3F2EF; }
.auth-art::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,11,12,.1), rgba(11,11,12,.8)); }
.auth-art div { position: relative; font-family: var(--serif); font-weight: 700; letter-spacing: -.02em; font-size: 32px; line-height: 1.15; max-width: 420px; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 48px var(--gut); }
.auth-form form { width: 100%; max-width: 400px; }
.auth-form h1 { font-family: var(--serif); font-weight: 700; font-size: 32px; letter-spacing: -.02em; margin-bottom: 8px; }

/* ---------- Dialog as sheet ---------- */
dialog.sheet { position: fixed; inset: 0; margin: auto; border: 0; padding: 0; background: var(--surface); color: var(--ink); border-radius: var(--r-lg); width: min(520px, calc(100% - 32px)); height: fit-content; max-height: calc(100vh - 64px); box-shadow: var(--shadow-lg); overflow: hidden; }
dialog.sheet:not([open]) { display: none; }
dialog.sheet::backdrop { background: rgba(0,0,0,.65); backdrop-filter: blur(2px); }
dialog.sheet[open] { animation: sheetIn .22s ease; }
@keyframes sheetIn { from { opacity: 0; transform: translateY(14px); } }
.sheet-body { padding: 24px; display: flex; flex-direction: column; gap: 16px; overflow-y: auto; max-height: calc(100vh - 64px); }
.sheet-grab { display: none; width: 40px; height: 5px; border-radius: 3px; background: var(--line-2); margin: 0 auto 4px; }
.sheet-head { display: flex; align-items: center; gap: 12px; }
.sheet-head h2 { font-family: var(--serif); font-weight: 700; font-size: 22px; letter-spacing: -.01em; flex: 1; }

/* ---------- Bottom tab bar (phones) ---------- */
.tabbar { display: none; }

/* ---------- Pager ---------- */
.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 28px; font-size: 14px; }

/* ---------- Prose pages ---------- */
.prose { font-size: 16px; line-height: 1.7; color: var(--ink-2); max-width: 720px; }
.prose h2 { font-family: var(--serif); font-weight: 700; font-size: 24px; margin: 32px 0 12px; color: var(--ink); }
.prose p { margin: 0 0 16px; }

/* =========================================================
   Phones: becomes an app. Top app bar, bottom tabs, sheets.
   ========================================================= */
@media (max-width: 860px) {
  :root { --top-h: 56px; --gut: 20px; --r-lg: 16px; }
  body { font-size: 15px; }
  body.has-tabs { padding-bottom: calc(var(--tab-h) + var(--safe-b)); }
  .wrap, .wrap-md { padding: 0 var(--gut); }
  .page { padding-top: 16px; padding-bottom: 40px; }
  .top { display: none; }
  .appbar {
    display: flex; position: sticky; top: 0; z-index: 40; height: calc(var(--top-h) + env(safe-area-inset-top, 0px)); padding: env(safe-area-inset-top, 0px) 12px 0;
    align-items: center; gap: 8px; background: var(--glass); backdrop-filter: saturate(1.4) blur(18px); -webkit-backdrop-filter: saturate(1.4) blur(18px);
    border-bottom: 1px solid transparent;
  }
  .appbar.scrolled { border-bottom-color: var(--line); }
  .appbar .title { flex: 1; font-weight: 700; font-size: 17px; padding: 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .appbar .logo { flex: 1; padding-left: 8px; font-size: 18px; }
  .appbar .icon-btn { background: var(--surface); }
  .appbar .btn-sm { height: 44px; }
  .tabbar {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    height: calc(var(--tab-h) + var(--safe-b)); padding-bottom: var(--safe-b);
    background: var(--glass); backdrop-filter: saturate(1.4) blur(18px); -webkit-backdrop-filter: saturate(1.4) blur(18px); border-top: 1px solid var(--rule); padding-left: 4px; padding-right: 4px;
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 11px; font-weight: 500; color: var(--tab-ink); position: relative; min-height: 44px; }
  .tabbar a.on { color: var(--accent); font-weight: 700; }
  .tabbar a .dot { top: 4px; right: calc(50% - 22px); }
  .tabbar .create { color: var(--ink); }
  .foot { display: none; }
  .toasts { top: calc(64px + env(safe-area-inset-top, 0px)); }

  .hero { padding: 8px 0 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-art { display: none; }
  .hero h1 { font-size: 30px; line-height: 1.12; letter-spacing: -.02em; margin: 8px 0 12px; }
  .hero p.lead { font-size: 15px; }
  .hero-search { flex-direction: column; border-radius: 20px; padding: 8px; gap: 4px; margin-top: 24px; }
  .hero-search label { border-right: 0; border-bottom: 1px solid var(--line); padding: 12px; min-height: 56px; }
  .hero-search label:last-of-type { border-bottom: 0; }
  .hero-search .btn { height: 52px; border-radius: 26px; }
  .chip { height: 44px; border-radius: 22px; }
  .btn-sm { min-height: 44px; border-radius: 22px; }
  .steps { grid-template-columns: 1fr; }
  .section-head h2 { font-size: 20px; }
  .section-head { margin-bottom: 12px; }

  .dir { grid-template-columns: 1fr; gap: 16px; }
  .filters { display: none; }
  .tgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .tcard.lg { grid-column: span 2; }
  .strip .tcard { width: 150px; }

  .feed-layout { grid-template-columns: 1fr; gap: 0; }
  .feed-side { display: none; }
  .feed { gap: 0; margin: 0 calc(-1 * var(--gut)); }
  .post { border-radius: 0; border-left: 0; border-right: 0; border-top: 0; }

  .prof { padding-top: 8px; }
  .prof-av { grid-row: auto; }
  .ribbon { font-size: 9.5px; padding: 4px 7px; left: 8px; top: 8px; }
  .prof-top { grid-template-columns: 86px minmax(0, 1fr); gap: 18px; }
  .prof-av { width: 86px; height: 86px; }
  .prof h1 { font-size: 24px; letter-spacing: -.02em; }
  .prof .stats { gap: 0; display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; margin: 0; font-size: 12.5px; color: var(--muted); }
  .prof .stats b { display: block; color: var(--ink); font-size: 17px; }
  .prof .stats .rt { display: none; }
  .prof-info { grid-column: 1 / -1; }
  .prof-top > div:nth-child(2) { align-self: center; }
  .prof-actions { display: grid; grid-template-columns: 1.4fr 1fr 1fr; }
  .prof-actions .btn { padding: 0 8px; font-size: 14px; min-height: 44px; }
  .prof-main { grid-template-columns: 1fr; gap: 32px; padding-top: 0; }
  .prof-side { position: static; order: 2; }
  .tabs { justify-content: space-around; gap: 0; margin: 16px calc(-1 * var(--gut)) 0; }
  .tabs a { flex: 1; justify-content: center; letter-spacing: 0; min-height: 48px; }
  .tabs a .lbl { display: none; }
  .pgrid { gap: 2px; margin: 0 calc(-1 * var(--gut)); }
  .pgrid a { border-radius: 0; }

  .chat-shell { grid-template-columns: 1fr; height: auto; border: 0; }
  .chat-shell.in-thread .chat-list { display: none; }
  .chat-shell:not(.in-thread) .thread { display: none; }
  .thread { height: calc(100dvh - var(--top-h) - env(safe-area-inset-top, 0px)); }
  .thread-head { display: none; }
  body.chat-open { padding-bottom: 0; }
  body.chat-open .tabbar { display: none; }

  .book-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .amount-pick { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; overflow-x: auto; padding: 12px var(--gut); gap: 8px; border-right: 0; border-bottom: 1px solid var(--line); scrollbar-width: none; }
  .side .grp, .side .side-brand { display: none; }
  .side a { white-space: nowrap; flex: 0 0 auto; min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 22px; font-size: 13.5px; }
  .admin .side a { border-color: #36312B; }
  .side a .ic { display: none; }
  .main { padding: 24px var(--gut) 48px; }
  .main-head h1 { font-size: 24px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .kpi { padding: 16px; }
  .kpi b { font-size: 22px; }
  .card-pad { padding: 20px; }
  .panel { padding: 20px; }
  .bar-row { grid-template-columns: 90px 1fr 80px; }

  .auth { grid-template-columns: 1fr; min-height: 0; }
  .auth-art { display: none; }
  .auth-form { padding: 16px var(--gut) 48px; align-items: flex-start; }
  .auth-form h1 { font-size: 28px; }

  dialog.sheet { position: fixed; inset: auto 0 0 0; width: 100%; max-width: 100%; margin: 0; border-radius: 24px 24px 0 0; border-top: 1px solid var(--line-2); max-height: 92vh; padding-bottom: var(--safe-b); }
  dialog.sheet[open] { animation: sheetUp .28s cubic-bezier(.2,.8,.2,1); }
  .sheet-grab { display: block; }
  .sheet-body { padding: 12px var(--gut) 24px; max-height: 92vh; }
  @keyframes sheetUp { from { transform: translateY(100%); } }

  .desk-only { display: none !important; }
}

/* =========================================================
   2.0 additions
   ========================================================= */
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 10px; }
.skip:focus { left: 8px; }
.top-nav a { padding: 6px 0; }
.loc-chip { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px 0 12px; border-radius: 20px; border: 1px solid var(--line-2); background: var(--surface); font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; max-width: 190px; }
.loc-chip span { overflow: hidden; text-overflow: ellipsis; }
.loc-chip:hover { border-color: var(--muted); }
.loc-chip .ic { color: var(--accent-ink); }
.tab-av { width: 26px !important; height: 26px !important; }
.tabbar a.on .tab-av { box-shadow: 0 0 0 2px var(--accent); }

/* Email activation bar */
.vbar { background: var(--accent-soft); color: var(--accent-soft-ink); font-size: 13.5px; border-bottom: 1px solid var(--vbar-line); }
.vbar .wrap { display: flex; align-items: center; gap: 12px; min-height: 48px; padding-top: 6px; padding-bottom: 6px; }
.vbar .vbar-btn { background: var(--accent); color: var(--btn-ink); height: 36px; }
.vbar .vbar-btn:hover { color: var(--btn-ink); }

/* Search with icon */
.search-in { position: relative; }
.search-in .ic { position: absolute; left: 16px; top: 17px; color: var(--muted); pointer-events: none; }
.search-in .input { padding-left: 46px; border-radius: 26px; }

/* Country list */
.clist { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.crow { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 16px; border: 0; border-bottom: 1px solid var(--line); background: var(--surface); text-align: left; font-size: 15px; color: var(--ink); width: 100%; }
.crow:last-child { border-bottom: 0; }
.crow:hover { background: var(--surface-2); }
.crow.on { background: var(--surface-2); font-weight: 600; }
.crow .cc { width: 34px; height: 24px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line-2); font-size: 11px; font-weight: 700; letter-spacing: .04em; display: flex; align-items: center; justify-content: center; color: var(--ink-2); }
#geo-sheet .clist { max-height: 46vh; overflow-y: auto; }

/* Location nudge */
.geo-nudge { position: fixed; z-index: 60; left: 50%; bottom: 24px; transform: translate(-50%, 140%); width: min(460px, calc(100% - 24px)); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 14px 14px 12px; display: flex; flex-direction: column; gap: 12px; transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .2s, visibility 0s .35s; opacity: 0; visibility: hidden; }
.geo-nudge.in { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .2s; }
.geo-nudge-in { display: flex; gap: 12px; align-items: flex-start; }
.geo-nudge .row { justify-content: flex-end; }
.geo-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-soft-ink); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }

/* Location page */
.geo-page { min-height: calc(100vh - var(--top-h)); display: flex; flex-direction: column; }
.geo-map { height: 300px; background: var(--surface-2); color: var(--ink); overflow: hidden; }
.geo-map svg { width: 100%; height: 100%; }
.geo-body { padding-top: 28px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 10px; }
.geo-body h1 { font-size: 36px; line-height: 1.05; }

/* Cards: location tag and Model label */
.tag-loc { position: absolute; left: 12px; top: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 4px; max-width: calc(100% - 20px); font-size: 11px; font-weight: 600; color: #fff; background: rgba(11,11,12,.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); padding: 4px 9px 4px 7px; border-radius: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tag-feat { position: absolute; right: 10px; top: 10px; z-index: 2; font-size: 10px; font-weight: 700; letter-spacing: .09em; background: #fff; color: #15130F; padding: 4px 8px; border-radius: 10px; }
.scard { position: relative; display: block; border-radius: var(--r-lg); overflow: hidden; background: var(--tone); aspect-ratio: 4/5.4; color: #fff; }
.scard img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.scard:hover img { transform: scale(1.03); }
.scard:hover { color: #fff; }
.scard .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 16px 14px; background: linear-gradient(180deg, rgba(11,11,12,0), rgba(11,11,12,.86)); display: flex; flex-direction: column; gap: 2px; }
.scard .cap b { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 5px; }
.scard .cap .vbadge { color: var(--accent); }
.scard .cap small { font-size: 12.5px; color: rgba(255,255,255,.88); }
.scard .label-model { color: #fff; font-weight: 600; letter-spacing: .02em; }
.spot-strip .scard { width: 200px; }

/* Home sections */
.home-head { padding-top: 32px; }
.home-sec { display: flex; flex-direction: column; gap: 16px; }
.home-sec + .home-sec { margin-top: 48px; }
.home-sec .section-head { margin: 0; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.cat-tile { position: relative; display: flex; align-items: flex-end; min-height: 112px; padding: 16px; border-radius: var(--r); overflow: hidden; background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); }
.cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.cat-tile.has-img { color: #fff; border: 0; }
.cat-tile.has-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,11,12,0) 30%, rgba(11,11,12,.8)); }
.cat-tile b { position: relative; z-index: 1; font-size: 14.5px; }
.cat-tile small { display: block; font-weight: 400; font-size: 12px; opacity: .85; }
.empty-geo { border: 1px dashed var(--line-2); border-radius: var(--r-lg); padding: 36px 20px; text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.empty-geo h3 { font-family: var(--serif); font-weight: 700; font-size: 24px; }

/* Explore */
.fbar { position: sticky; top: var(--top-h); z-index: 30; background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding: 12px 0; border-bottom: 1px solid var(--line); }
.fbar .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.fbar .chips::-webkit-scrollbar { display: none; }
.chip.loc { background: var(--accent); color: var(--btn-ink); border-color: var(--accent); font-weight: 700; }
.chip.loc:hover { color: var(--btn-ink); }
.chip select { border: 0; background: transparent; font: inherit; color: inherit; appearance: none; outline: none; cursor: pointer; padding-right: 2px; }
.feat-strip .scard { width: 300px; aspect-ratio: 16/10.5; }
.res-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13.5px; color: var(--muted); }

/* Profile 2.0 */
.ratecard { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); width: 100%; text-align: left; color: var(--ink); }
.ratecard b { font-size: 20px; }
.ratecard .small { color: var(--muted); }
.ratecard .link { white-space: nowrap; }
.pk-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.pk-row:last-child { border-bottom: 0; }
.pk-row small { display: block; font-size: 12.5px; color: var(--muted); }
.pk-row .r { text-align: right; }
.pk-row .r b { font-size: 16px; }
.prof-cta { display: none; }
.plan-opt { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 16px; border: 1px solid var(--line-2); cursor: pointer; }
.plan-opt:has(input:checked) { border: 2px solid var(--accent); padding: 15px; }
.plan-opt input { margin-top: 2px; width: 20px; height: 20px; accent-color: var(--accent); }
.plan-opt .unl { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.plan-opt .unl span { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 9px; background: var(--surface-2); color: var(--ink-2); }
.teaser { text-align: center; padding: 36px 20px; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.teaser .lk { width: 64px; height: 64px; border-radius: 32px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; }

/* Chat 2.0 */
.enc-pill { align-self: center; display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); padding: 5px 11px; border-radius: 14px; }
.shield-card { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); font-size: 12.5px; color: var(--ink-2); line-height: 1.45; }
.shield-card .ic { color: var(--accent-ink); }
.pin-booking { display: flex; align-items: center; gap: 12px; margin: 0 12px 10px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); font-size: 12.5px; }
.pin-booking b { font-size: 13px; }
.quick { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 8px 12px 0; background: var(--surface); }
.quick::-webkit-scrollbar { display: none; }
.quick button { flex: 0 0 auto; height: 40px; padding: 0 14px; border-radius: 20px; border: 1px solid var(--line-2); background: var(--surface); font-size: 12.5px; color: var(--ink); }
.quick button:hover { border-color: var(--muted); }
.msg .tick { display: inline-flex; vertical-align: -3px; margin-left: 4px; opacity: .7; }
.thread-sub { font-size: 12px; color: var(--muted); }
.composer .tipb { background: var(--accent-soft); color: var(--accent-soft-ink); }

/* Auth and verification */
.phone-in { display: flex; align-items: stretch; border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface); overflow: hidden; }
.phone-in:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
.phone-in b { display: flex; align-items: center; padding: 0 12px; font-weight: 600; font-size: 15px; border-right: 1px solid var(--line); background: var(--surface-2); }
.phone-in input { flex: 1; border: 0; outline: none; background: transparent; padding: 0 16px; height: 50px; font-size: 15px; min-width: 0; }
.role-seg span { height: 44px; }
.verify-card { max-width: 460px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; padding: 32px 20px 48px; }
.verify-card h1 { font-family: var(--serif); font-weight: 700; font-size: 30px; line-height: 1.1; letter-spacing: -.02em; }
.big-ic { width: 76px; height: 76px; border-radius: 24px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; color: var(--ink); }
.steps-list { border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: flex; flex-direction: column; gap: 14px; background: var(--surface); }
.steps-list div { display: flex; gap: 14px; align-items: flex-start; font-size: 14px; line-height: 1.4; }
.steps-list i { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 14px; background: var(--surface-2); font-style: normal; font-weight: 600; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.wait-row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); font-size: 13px; }
.spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--accent); animation: spin .9s linear infinite; flex: 0 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.code-chip { font-family: var(--serif); font-weight: 700; font-size: 30px; letter-spacing: .2em; text-align: center; padding: 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line-2); }

/* Form errors */
.field.invalid .input, .field.invalid .select, .field.invalid .textarea, .field.invalid .phone-in { border: 2px solid var(--bad); background: color-mix(in srgb, var(--bad-soft) 60%, var(--surface)); }
.check.invalid { color: var(--bad); }
.field-err { color: var(--bad); font-size: 12.5px; font-weight: 600; display: flex; gap: 6px; align-items: center; }
.grid-reg { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }

/* Settings rows */
.set-row { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.set-row:last-child { border-bottom: 0; }
.me-menu a { display: flex; align-items: center; gap: 16px; min-height: 56px; padding: 8px 4px; border-bottom: 1px solid var(--line); font-size: 15px; }
.me-menu a:last-child { border-bottom: 0; }
.me-menu a .ic:last-child { margin-left: auto; color: var(--faint); }

@media (max-width: 860px) {
  .geo-nudge { bottom: calc(var(--tab-h) + var(--safe-b) + 12px); }
  .spot-strip .scard { width: 158px; }
  .feat-strip .scard { width: 260px; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .home-sec + .home-sec { margin-top: 32px; }
  .cat-tile { min-height: 88px; padding: 12px; border-radius: 16px; }
  .cat-tile b { font-size: 13px; }
  .home-head { padding-top: 8px; }
  .fbar { top: calc(var(--top-h) + env(safe-area-inset-top, 0px)); margin: 0 calc(-1 * var(--gut)); padding: 12px var(--gut); }
  .prof-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: calc(var(--tab-h) + var(--safe-b)); z-index: 44; padding: 12px var(--gut); background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
  .prof-cta.one { grid-template-columns: 1fr; }
  body.has-cta { padding-bottom: calc(var(--tab-h) + var(--safe-b) + 70px); }
  .prof-side .side-cta { display: none; }
  .geo-map { height: 240px; }
  .vbar .wrap { padding: 8px var(--gut); }
  .loc-chip { height: 44px; border-radius: 22px; max-width: 140px; margin-right: 0; }
  .appbar .loc-chip + .icon-btn { margin-left: 0; }
  .verify-card { padding-top: 12px; }
  .grid-reg { grid-template-columns: 1fr; }
  .pin-booking { margin: 8px 12px; }
}

@media (min-width: 861px) {
  .mob-only { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.chip .ic { flex: 0 0 auto; }
.chip.on select { color: var(--btn-ink); }
.chip.on select option { color: var(--ink); }
.fbar .chip { height: 40px; }
.sheet .fgroup b, .sheet b.small { font-size: 13px; }
@media (max-width: 860px) { .grid-2.keep-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 861px) { .prof .ratecard { max-width: 520px; } }
/* Chat thread: Noir is dark already */
.chat-dark { background: var(--bg); color: var(--ink); }
body.chat-open .appbar { background: var(--bg); color: var(--ink); }
.chat-dark .thread-head { background: var(--surface); }
.msg-meta { display: inline-flex; align-items: center; gap: 2px; float: right; margin: 6px 0 -4px 10px; font-size: 10.5px; opacity: .6; }
.msg .tick { margin-left: 2px; }
.chat-dark .composer, .chat-dark .quick { background: var(--surface); }
.chat-dark .composer textarea { background: var(--surface-2); border-color: var(--surface-2); color: var(--ink); }
.composer-wrap { border-top: 1px solid var(--line); }
.composer-wrap .composer { border-top: 0; }
@media (max-width: 860px) {
  body.chat-open { background: var(--bg); }
  .thread { height: calc(100dvh - var(--top-h) - env(safe-area-inset-top, 0px)); }
}
.composer textarea { min-width: 0; width: 100%; } .composer > * { flex-shrink: 0; } .composer textarea { flex-shrink: 1; }

/* Admin login as banner */
.imp-bar{position:sticky;top:0;z-index:60;display:flex;align-items:center;justify-content:center;gap:12px;padding:8px 20px;background:var(--accent-soft);color:var(--accent-soft-ink);font-size:13px;flex-wrap:wrap}
.imp-bar .btn{background:var(--accent);color:var(--btn-ink)}
/* Scroll rows keep their visually hidden inputs inside, so phones never scroll sideways */
.chips, .fbar .chips, .strip, .stories, .quick { position: relative; }
.card-pad.row.wrap, .panel.row.wrap { padding: 24px; }
@media (max-width: 860px) { .card-pad.row.wrap, .panel.row.wrap { padding: 20px; } }
.appbar .logo { display: flex; align-items: center; min-height: 44px; }

.chat-shell { background: var(--bg); }
.chat-list { background: var(--surface); }
@media (max-width: 860px) { .chat-list { background: var(--bg); } }
@media (max-width: 860px) { .side a.on { background: var(--accent); color: var(--btn-ink); border-color: var(--accent); box-shadow: none; } }
@media (min-width: 861px) { .prof-top { align-items: start; row-gap: 12px; } .prof-top > div:nth-child(2) { padding-top: 16px; } }

/* 2.2 model card (Card B): text sits on the photo over a soft fade. Spotlight gets one clean ring. */
.tcard { display: block; position: relative; color: #fff; border-radius: var(--r-lg); }
.tcard:hover, .tcard:focus-visible { color: #fff; }
.tcard .ph { position: relative; aspect-ratio: 4/5; border-radius: var(--r-lg); overflow: hidden; background: var(--tone); }
.tcard .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
@media (hover: hover) { .tcard:hover .ph img { transform: scale(1.035); } }
.tcard.spotlight { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--card-ring); }
.tcard.lg .ph { aspect-ratio: 8/5; }
.tcard .tag-loc { left: 10px; top: 10px; max-width: calc(100% - 20px); }
.tcard .ph:has(.tag-feat) .tag-loc { max-width: calc(100% - 118px); }
.tag-loc .tl { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tcard .tag-feat { left: auto; right: 10px; top: 10px; bottom: auto; font-size: 9.5px; padding: 4px 8px; }
.tcard .tag-feat.spotlight { background: var(--accent); color: var(--btn-ink); }
.tcard .shade { position: absolute; inset: auto 0 0 0; height: 58%; z-index: 1; background: linear-gradient(180deg, rgba(11,11,12,0), rgba(11,11,12,.88)); pointer-events: none; }
.tcard .cap { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tcard .name { display: flex; align-items: center; gap: 5px; font-weight: 700; font-size: 15px; line-height: 1.25; min-width: 0; color: #fff; }
.tcard .name .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.tcard .name .vbadge, .tcard .name svg { flex: none; color: var(--accent); }
.tcard .sub { font-size: 12.5px; color: rgba(255,255,255,.82); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tcard .rate { display: flex; align-items: baseline; gap: 6px; margin-top: 4px; font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; }
.tcard .rate .per { font-weight: 500; font-size: 12px; color: rgba(255,255,255,.82); margin-left: -5px; }
.tcard .rate small { font-weight: 500; font-size: 11.5px; color: rgba(255,255,255,.72); overflow: hidden; text-overflow: ellipsis; }
.tcard .avd { width: 7px; height: 7px; border-radius: 50%; background: #5BC98A; flex: none; align-self: center; }
.tcard .fav { position: absolute; right: 8px; bottom: 8px; z-index: 3; width: 44px; height: 44px; border-radius: 22px; border: 0; background: rgba(11,11,12,.72); color: #fff; display: flex; align-items: center; justify-content: center; }
.tcard .fav.on { color: var(--bad); }
.strip { padding: 6px 6px 8px; margin-left: -6px; margin-right: -6px; }
.tgrid { padding: 5px; margin: -5px; }
@media (max-width: 860px) {
  .tcard, .tcard .ph { border-radius: var(--r); }
  .tcard .cap { left: 10px; right: 10px; bottom: 10px; }
  .tcard .name { font-size: 14px; }
  .tcard .sub { font-size: 12px; }
  .tcard .rate { font-size: 13px; }
  .tcard .rate small { display: none; }
  .tcard .tag-loc { font-size: 10.5px; left: 8px; top: 8px; }
  .tcard .tag-feat { right: 8px; top: 8px; font-size: 8.5px; padding: 3px 6px; letter-spacing: .06em; }
  .tcard .ph:has(.tag-feat) .tag-loc { max-width: calc(100% - 96px); }
}

/* 2.2: location and tier tags share one row so they never overlap. */
.tcard .tags { position: absolute; z-index: 2; left: 10px; right: 10px; top: 10px; display: flex; justify-content: space-between; align-items: flex-start; gap: 6px; pointer-events: none; }
.tcard .tags .tag-loc, .tcard .tags .tag-feat { position: static; max-width: none; inset: auto; }
.tcard .tags .tag-loc, .tcard .ph:has(.tag-feat) .tags .tag-loc { min-width: 0; flex: 0 1 auto; max-width: 100%; }
.tcard .tags .tag-feat { flex: none; }
@media (max-width: 720px) { .tcard .tags { left: 8px; right: 8px; top: 8px; gap: 4px; flex-direction: column; align-items: flex-start; } .tcard .ph:has(.tag-feat) .tags .tag-loc { max-width: 100%; } }
