/* aSexCharacter — light dating-app design system */
:root {
  --bg: #f6f6fa;
  --bg-2: #efeff5;
  --card: #ffffff;
  --ink: #16141f;
  --ink-2: #545166;
  --ink-3: #9794a6;
  --line: #e9e8f0;
  --line-2: #dedcea;
  --brand: #fd2f6f;
  --brand-2: #ff6a3d;
  --grad: linear-gradient(135deg, #ff6a3d 0%, #fd2f6f 55%, #e8328f 100%);
  --grad-soft: linear-gradient(135deg, #fff1ec 0%, #ffe8f0 100%);
  --violet: #7b5cff;
  --violet-soft: #efeaff;
  --blue: #1ea7ff;
  --green: #1fc46b;
  --gold: #ffb020;
  --danger: #e5484d;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --sh-1: 0 1px 2px rgba(22, 20, 31, .05), 0 1px 1px rgba(22, 20, 31, .03);
  --sh-2: 0 6px 20px rgba(22, 20, 31, .07), 0 2px 6px rgba(22, 20, 31, .04);
  --sh-3: 0 24px 60px rgba(22, 20, 31, .14), 0 8px 20px rgba(22, 20, 31, .06);
  --sh-brand: 0 10px 26px rgba(253, 47, 111, .32);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --side-w: 248px;
  --rail-w: 320px;
  --top-h: 60px;
  --tab-h: 64px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 500 15px/1.5 var(--font); letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.025em; line-height: 1.15; font-weight: 800; }
h1 { font-size: clamp(26px, 3.4vw, 40px); }
h2 { font-size: 22px; }
h3 { font-size: 17px; }
p { margin: 0; }
.ic { flex: none; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.center { text-align: center; }
.row { display: flex; align-items: center; gap: 10px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.grow { flex: 1; min-width: 0; }
.nowrap { white-space: nowrap; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hide { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
:focus-visible { outline: 3px solid rgba(253, 47, 111, .35); outline-offset: 2px; border-radius: 8px; }

/* ---------- app shell ---------- */
.app { min-height: 100vh; min-height: 100dvh; }
.side {
  position: fixed; inset: 0 auto 0 0; width: var(--side-w); padding: 22px 16px;
  background: var(--card); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 6px; z-index: 30;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -.03em; padding: 4px 10px 18px; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 11px; background: var(--grad); display: grid; place-items: center;
  box-shadow: var(--sh-brand); color: #fff;
}
.logo-mark svg { width: 20px; height: 20px; }
.nav-item {
  display: flex; align-items: center; gap: 14px; padding: 11px 14px; border-radius: 14px;
  color: var(--ink-2); font-weight: 650; transition: background .15s, color .15s;
  position: relative;
}
.nav-item:hover { background: var(--bg); color: var(--ink); }
.nav-item.active { background: var(--grad-soft); color: var(--brand); }
.nav-item .count {
  margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px;
  background: var(--brand); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center;
}
.side-sep { height: 1px; background: var(--line); margin: 10px 6px; }
.side-bottom { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.credit-card {
  border-radius: var(--r); padding: 14px; background: var(--grad); color: #fff; box-shadow: var(--sh-brand);
  display: flex; align-items: center; gap: 12px;
}
.credit-card b { font-size: 20px; display: block; line-height: 1; }
.credit-card .small { opacity: .85; }
.credit-card .btn { margin-left: auto; background: rgba(255, 255, 255, .22); color: #fff; }
.me-chip { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 14px; }
.me-chip:hover { background: var(--bg); }

.main { margin-left: var(--side-w); min-height: 100vh; padding: 28px 32px 60px; }
.has-rail .main { margin-right: var(--rail-w); }
.rail {
  position: fixed; inset: 0 0 0 auto; width: var(--rail-w); padding: 24px 20px; overflow-y: auto;
  border-left: 1px solid var(--line); background: var(--card); display: none;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.has-rail .rail { display: block; }
.wrap { max-width: 1120px; margin: 0 auto; }
.wrap-narrow { max-width: 640px; margin: 0 auto; }

.topbar, .tabbar { display: none; }

@media (max-width: 1280px) {
  .has-rail .main { margin-right: 0; }
  .has-rail .rail { display: none; }
}
@media (max-width: 900px) {
  .side { display: none; }
  .main { margin-left: 0; padding: calc(var(--top-h) + 14px) 14px calc(var(--tab-h) + 24px + env(safe-area-inset-bottom)); }
  .topbar {
    display: flex; position: fixed; inset: 0 0 auto 0; height: var(--top-h); z-index: 40; align-items: center; gap: 8px;
    padding: 0 14px; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.6) blur(16px);
    -webkit-backdrop-filter: saturate(1.6) blur(16px); border-bottom: 1px solid var(--line);
  }
  .topbar .logo { padding: 0; font-size: 18px; margin-right: auto; }
  .topbar .logo-mark { width: 30px; height: 30px; border-radius: 10px; }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; inset: auto 0 0 0; z-index: 40;
    height: calc(var(--tab-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
    border-top: 1px solid var(--line);
  }
  .tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 700; color: var(--ink-3); position: relative; }
  .tab.active { color: var(--brand); }
  .tab .dot { position: absolute; top: 9px; left: calc(50% + 8px); width: 9px; height: 9px; border-radius: 50%; background: var(--brand); border: 2px solid #fff; }
  .immersive .topbar, .immersive .tabbar { display: none; }
  .immersive .main { padding: 0; }
}

/* ---------- buttons, chips, badges ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px;
  border-radius: 999px; font-weight: 750; font-size: 14.5px; white-space: nowrap; transition: transform .12s, box-shadow .15s, background .15s, opacity .15s;
  background: var(--bg-2); color: var(--ink);
}
.btn:hover { background: var(--line); }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--sh-brand); }
.btn-primary:hover { background: var(--grad); box-shadow: 0 14px 32px rgba(253, 47, 111, .4); }
.btn-outline { background: #fff; box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn-outline:hover { background: #fff; box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--bg-2); }
.btn-violet { background: var(--violet); color: #fff; }
.btn-violet:hover { background: #6a4aff; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 16px; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-icon { width: 42px; padding: 0; }
.btn-icon.btn-sm { width: 34px; }
.btn[disabled], .btn.is-loading { opacity: .55; pointer-events: none; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 13px; border-radius: 999px;
  background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line); font-size: 13px; font-weight: 650; color: var(--ink-2);
  transition: all .15s; white-space: nowrap;
}
button.chip:hover, a.chip:hover { box-shadow: inset 0 0 0 1.5px var(--ink-3); color: var(--ink); }
.chip.on { background: var(--ink); color: #fff; box-shadow: none; }
.chip-soft { background: var(--bg-2); box-shadow: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-scroll { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips-scroll::-webkit-scrollbar { display: none; }

.badge-ai {
  display: inline-flex; align-items: center; height: 19px; padding: 0 7px; border-radius: 6px; font-size: 10.5px; font-weight: 800;
  letter-spacing: .04em; background: var(--violet-soft); color: var(--violet); vertical-align: middle;
}
.badge-new { background: #e7f9ef; color: #0f9d53; }
.badge-live { background: var(--brand); color: #fff; }
.verified { color: var(--violet); display: inline-flex; vertical-align: -3px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px 0 8px; border-radius: 999px;
  background: var(--grad-soft); color: var(--brand); font-weight: 800; font-size: 14px;
}

/* ---------- avatars ---------- */
.av { position: relative; flex: none; border-radius: 50%; }
.av img, .av .initials { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.av .initials { display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 800; }
.av-28 { width: 28px; height: 28px; font-size: 11px; }
.av-36 { width: 36px; height: 36px; font-size: 13px; }
.av-44 { width: 44px; height: 44px; font-size: 15px; }
.av-52 { width: 52px; height: 52px; font-size: 17px; }
.av-64 { width: 64px; height: 64px; font-size: 20px; }
.av-96 { width: 96px; height: 96px; font-size: 30px; }
.av .on { position: absolute; right: 1px; bottom: 1px; width: 28%; height: 28%; min-width: 10px; min-height: 10px; border-radius: 50%; background: var(--green); border: 2.5px solid #fff; }
.ring { padding: 3px; background: var(--grad); border-radius: 50%; }
.ring > img { border: 3px solid #fff; border-radius: 50%; width: 100%; height: 100%; object-fit: cover; }

/* ---------- cards ---------- */
.card { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--sh-1); border: 1px solid var(--line); }
.card-pad { padding: 20px; }
.section { margin-top: 30px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head h2 { font-size: 20px; }
.section-head a { font-size: 14px; font-weight: 700; color: var(--brand); }

/* character card */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.grid-sm { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
@media (max-width: 600px) { .grid, .grid-sm { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.pcard {
  position: relative; display: block; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 3 / 4;
  background: var(--bg-2); box-shadow: var(--sh-2); isolation: isolate; transition: transform .25s, box-shadow .25s;
}
.pcard:hover { transform: translateY(-4px); box-shadow: var(--sh-3); }
.pcard img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.pcard:hover img { transform: scale(1.04); }
.pcard video, .live-card video, .scard video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; display: block; }
.scard video { pointer-events: none; }
.scard video[hidden] { display: none; }
.pcard::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(180deg, transparent, rgba(12, 8, 20, .78)); z-index: 1; }
.pcard .meta { position: absolute; left: 14px; right: 14px; bottom: 13px; z-index: 2; color: #fff; }
.pcard .name { font-size: 17px; font-weight: 800; letter-spacing: -.02em; display: flex; align-items: center; gap: 7px; }
.pcard .sub { font-size: 12.5px; opacity: .88; margin-top: 2px; font-weight: 550; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard .top { position: absolute; top: 10px; left: 10px; right: 10px; z-index: 2; display: flex; gap: 6px; align-items: center; }
.pcard .top .badge-ai { background: rgba(255, 255, 255, .92); }
.on-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 2.5px rgba(31, 196, 107, .3); flex: none; }
.pcard .glass {
  margin-left: auto; height: 26px; padding: 0 9px; border-radius: 99px; display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 750;
  background: rgba(255, 255, 255, .92); color: var(--ink);
}

/* stories */
.stories { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: none; }
.stories::-webkit-scrollbar { display: none; }
.story { display: flex; flex-direction: column; align-items: center; gap: 7px; width: 74px; flex: none; }
.story .ring { width: 70px; height: 70px; }
.story span { font-size: 12px; font-weight: 650; max-width: 74px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.story.add .plus { width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); color: var(--ink-2); border: 2px dashed var(--line-2); }

/* ---------- hero (guest home) ---------- */
.hero {
  position: relative; border-radius: var(--r-xl); overflow: hidden; padding: 56px 48px; background: #fff;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 30px; align-items: center; box-shadow: var(--sh-2); border: 1px solid var(--line);
}
.hero::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 70%; height: 140%; background: radial-gradient(closest-side, rgba(253, 47, 111, .12), transparent); pointer-events: none; }
.hero h1 { font-size: clamp(34px, 4.6vw, 58px); letter-spacing: -.04em; }
.hero p.lead { font-size: 18px; color: var(--ink-2); margin: 16px 0 26px; max-width: 520px; }
.hero .stats { display: flex; gap: 26px; margin-top: 28px; }
.hero .stats b { font-size: 22px; display: block; }
.hero-cards { position: relative; height: 440px; }
.hero-cards .hc {
  position: absolute; width: 58%; aspect-ratio: 3/4; border-radius: 26px; overflow: hidden; box-shadow: var(--sh-3); border: 5px solid #fff;
}
.hero-cards .hc img { width: 100%; height: 100%; object-fit: cover; }
.hero-cards .hc:nth-child(1) { left: 0; top: 40px; transform: rotate(-7deg); }
.hero-cards .hc:nth-child(2) { right: 0; top: 0; transform: rotate(6deg); }
.hero-cards .hc:nth-child(3) { left: 22%; top: 90px; z-index: 2; transform: rotate(-1deg); }
.hero-cards .bubble {
  position: absolute; z-index: 3; background: #fff; border-radius: 18px 18px 18px 6px; padding: 10px 14px; font-size: 14px; font-weight: 650;
  box-shadow: var(--sh-3); max-width: 230px;
}
.hero-cards .bubble.b1 { left: -10px; bottom: 34px; }
.hero-cards .bubble.b2 { right: -6px; top: 60px; border-radius: 18px 18px 6px 18px; background: var(--grad); color: #fff; }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 22px; }
.feature { padding: 20px; }
.feature .fi { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--grad-soft); color: var(--brand); margin-bottom: 12px; }
.feature p { color: var(--ink-2); font-size: 14px; margin-top: 4px; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 32px 22px; border-radius: var(--r-lg); }
  .hero-cards { height: 340px; }
  .features { grid-template-columns: 1fr 1fr; }
}

/* ---------- toolbar / filters ---------- */
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head .sub { color: var(--ink-2); margin-top: 4px; }
.search {
  display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px; border-radius: 999px; background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--line); min-width: 280px; color: var(--ink-3);
}
.search input { border: 0; outline: 0; background: none; flex: 1; font-weight: 600; color: var(--ink); min-width: 0; }
.search:focus-within { box-shadow: inset 0 0 0 1.5px var(--brand), 0 0 0 4px rgba(253, 47, 111, .1); }
@media (max-width: 600px) { .search { min-width: 0; width: 100%; } }

/* ---------- swipe ---------- */
.swipe-page { display: flex; flex-direction: column; align-items: center; }
.deck { position: relative; width: min(420px, 100%); aspect-ratio: 3 / 4.35; margin-top: 6px; }
.scard {
  position: absolute; inset: 0; border-radius: 28px; overflow: hidden; background: var(--bg-2); box-shadow: var(--sh-3);
  touch-action: none; user-select: none; -webkit-user-select: none; will-change: transform; cursor: grab;
}
.scard:active { cursor: grabbing; }
.scard img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.scard::after { content: ""; position: absolute; inset: 50% 0 0; background: linear-gradient(180deg, transparent, rgba(10, 6, 18, .85)); }
.scard .info { position: absolute; left: 20px; right: 20px; bottom: 20px; z-index: 2; color: #fff; }
.scard .info h2 { font-size: 30px; display: flex; align-items: center; gap: 10px; }
.scard .info h2 span { font-weight: 500; }
.scard .info .where { display: flex; align-items: center; gap: 6px; font-size: 14px; opacity: .9; margin-top: 4px; font-weight: 600; }
.scard .info .tag { margin-top: 10px; font-size: 14.5px; opacity: .95; line-height: 1.45; }
.scard .info .chips { margin-top: 12px; }
.scard .info .chip { background: rgba(255, 255, 255, .18); box-shadow: none; color: #fff; backdrop-filter: blur(8px); height: 28px; font-size: 12.5px; }
.scard .stamp {
  position: absolute; top: 34px; z-index: 3; padding: 6px 14px; border-radius: 12px; font-size: 30px; font-weight: 900;
  letter-spacing: .06em; border: 4px solid; opacity: 0; text-transform: uppercase; background: rgba(255, 255, 255, .12);
}
.scard .stamp.like { left: 22px; color: #3be38a; border-color: #3be38a; transform: rotate(-14deg); }
.scard .stamp.nope { right: 22px; color: #ff4d6a; border-color: #ff4d6a; transform: rotate(14deg); }
.scard .stamp.super { left: 50%; bottom: 150px; top: auto; color: var(--blue); border-color: var(--blue); transform: translateX(-50%) rotate(-6deg); }
.scard .photo-bars { position: absolute; top: 10px; left: 12px; right: 12px; display: flex; gap: 4px; z-index: 3; }
.scard .photo-bars i { flex: 1; height: 3.5px; border-radius: 3px; background: rgba(255, 255, 255, .4); }
.scard .photo-bars i.on { background: #fff; }
.swipe-actions { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 22px; }
.sbtn {
  width: 62px; height: 62px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: var(--sh-2);
  transition: transform .15s, box-shadow .15s;
}
.sbtn:hover { transform: scale(1.08); box-shadow: var(--sh-3); }
.sbtn:active { transform: scale(.94); }
.sbtn.small { width: 48px; height: 48px; }
.sbtn.nope { color: #ff4d6a; }
.sbtn.super { color: var(--blue); }
.sbtn.like { color: #fff; background: var(--grad); box-shadow: var(--sh-brand); width: 70px; height: 70px; }
.sbtn.undo { color: var(--gold); }
.deck-empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 30px; border-radius: 28px; background: #fff; border: 2px dashed var(--line-2); }

/* match overlay */
.match-overlay {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px;
  background: radial-gradient(circle at 50% 30%, rgba(253, 47, 111, .92), rgba(120, 40, 200, .94)); color: #fff; text-align: center;
  animation: fadeIn .3s ease;
}
.match-overlay h1 { font-size: clamp(40px, 8vw, 64px); font-weight: 900; letter-spacing: -.04em; font-style: italic; }
.match-pair { display: flex; justify-content: center; margin: 26px 0; }
.match-pair .av { width: 120px; height: 120px; border: 5px solid #fff; box-shadow: var(--sh-3); }
.match-pair .av:first-child { transform: rotate(-8deg) translateX(14px); }
.match-pair .av:last-child { transform: rotate(8deg) translateX(-14px); }
.match-overlay .btn { min-width: 260px; }
.match-overlay .btn-white { background: #fff; color: var(--brand); }
.match-overlay .btn-ghost { color: #fff; }

/* ---------- profile ---------- */
.profile { display: grid; grid-template-columns: minmax(0, 1fr) 380px; grid-template-areas: "gal info" "tabs info"; grid-template-rows: auto 1fr; gap: 0 26px; align-items: start; }
.p-gal { grid-area: gal; }
.p-tabs { grid-area: tabs; min-width: 0; }
.pinfo { grid-area: info; }
.gallery-main { position: relative; border-radius: var(--r-xl); overflow: hidden; background: var(--bg-2); aspect-ratio: 4 / 5; box-shadow: var(--sh-2); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main .nav { position: absolute; top: 0; bottom: 0; width: 40%; }
.gallery-main .nav.prev { left: 0; }
.gallery-main .nav.next { right: 0; }
.gallery-main .photo-bars { position: absolute; top: 12px; left: 14px; right: 14px; display: flex; gap: 5px; z-index: 2; }
.gallery-main .photo-bars i { flex: 1; height: 4px; border-radius: 3px; background: rgba(255, 255, 255, .45); }
.gallery-main .photo-bars i.on { background: #fff; }
.pinfo { position: sticky; top: 24px; }
.pinfo h1 { font-size: 32px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pinfo h1 .age { font-weight: 500; color: var(--ink-2); }
.pinfo .where { display: flex; align-items: center; gap: 6px; color: var(--ink-2); font-weight: 600; margin-top: 6px; flex-wrap: wrap; }
.pinfo .tagline { font-size: 16px; margin-top: 14px; color: var(--ink); line-height: 1.5; }
.pinfo .actions { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; margin-top: 20px; }
.pstats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 20px; text-align: center; padding: 14px 6px; }
.pstats b { display: block; font-size: 18px; }
.pstats span { font-size: 12px; color: var(--ink-3); font-weight: 650; }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 8px 12px; font-size: 14px; }
.kv dt { color: var(--ink-3); font-weight: 650; }
.kv dd { margin: 0; font-weight: 650; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin: 30px 0 18px; overflow-x: auto; scrollbar-width: none; }
.tab-btn { padding: 12px 16px; font-weight: 750; color: var(--ink-3); border-bottom: 2.5px solid transparent; margin-bottom: -1px; display: flex; gap: 8px; align-items: center; white-space: nowrap; }
.tab-btn.on { color: var(--ink); border-color: var(--brand); }
.tab-btn .n { font-size: 12px; background: var(--bg-2); padding: 1px 7px; border-radius: 99px; color: var(--ink-2); }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
@media (max-width: 600px) { .pgrid { grid-template-columns: repeat(3, 1fr); gap: 4px; } .pgrid .tile { border-radius: 8px; } }
.tile { position: relative; aspect-ratio: 3/4; border-radius: 16px; overflow: hidden; background: var(--bg-2); display: block; width: 100%; }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile.locked img { transform: scale(1.06); }
/* profile videos: short clips, portrait 9:16 */
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.vtile { position: relative; aspect-ratio: 9/16; border-radius: 16px; overflow: hidden; background: var(--bg-2); }
.vtile video, .vtile img { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.lock-veil {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  color: #fff; text-align: center; font-weight: 750; font-size: 13px; background: rgba(20, 10, 30, .18);
}
.lock-veil .lock-ic { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .25); backdrop-filter: blur(6px); }
.lock-veil .price { background: #fff; color: var(--brand); padding: 5px 12px; border-radius: 99px; font-size: 12.5px; display: inline-flex; gap: 5px; align-items: center; }
.more-tile { display: grid; place-items: center; background: var(--grad-soft); color: var(--brand); font-weight: 800; text-align: center; padding: 10px; }
@media (max-width: 1000px) {
  .profile { grid-template-columns: minmax(0, 1fr); grid-template-areas: "gal" "info" "tabs"; grid-template-rows: auto; gap: 16px; }
  .p-tabs .tabs { margin-top: 8px; }
  .pinfo { position: static; }
  .gallery-main { border-radius: var(--r-lg); aspect-ratio: 4/4.6; }
}

/* ---------- feed ---------- */
.feed { display: flex; flex-direction: column; gap: 18px; }
.post { overflow: hidden; }
.post-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.post-head .who { font-weight: 800; display: flex; align-items: center; gap: 6px; }
.post-head .when { font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.post-text { padding: 0 16px 12px; font-size: 15px; line-height: 1.55; white-space: pre-wrap; }
.post-media { background: var(--bg-2); position: relative; }
.post-media img { width: 100%; max-height: 640px; object-fit: cover; }
.post-actions { display: flex; align-items: center; gap: 4px; padding: 8px 10px; }
.act { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 12px; border-radius: 99px; font-weight: 750; color: var(--ink-2); font-size: 14px; }
.act:hover { background: var(--bg); }
.act.on { color: var(--brand); }
.act.on svg { fill: var(--brand); }
.act.pop svg { animation: pop .35s ease; }
.composer-card { padding: 14px 16px; display: flex; gap: 12px; align-items: flex-start; }
.composer-card textarea {
  flex: 1; border: 0; outline: 0; resize: none; background: var(--bg); border-radius: 16px; padding: 12px 14px; min-height: 46px; font-weight: 550;
}

/* ---------- chats ---------- */
.chat-shell {
  display: grid; grid-template-columns: 340px 1fr; height: calc(100vh - 56px); height: calc(100dvh - 56px); overflow: hidden;
  background: #fff; border-radius: var(--r-lg); border: 1px solid var(--line); box-shadow: var(--sh-1);
}
.chat-list { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.chat-list-head { padding: 18px 18px 10px; }
.matches-row { display: flex; gap: 12px; overflow-x: auto; padding: 6px 18px 14px; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.matches-row::-webkit-scrollbar { display: none; }
.matches-row a { display: flex; flex-direction: column; align-items: center; gap: 5px; width: 62px; flex: none; font-size: 11.5px; font-weight: 700; }
.matches-row .av { width: 58px; height: 58px; }
.conv-list { overflow-y: auto; flex: 1; padding: 6px; }
.conv { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; }
.conv:hover { background: var(--bg); }
.conv.active { background: var(--grad-soft); }
.conv .last { font-size: 13.5px; color: var(--ink-2); }
.conv.unread .last { color: var(--ink); font-weight: 750; }
.conv .time { font-size: 11.5px; color: var(--ink-3); font-weight: 650; }
.conv .unread-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }
.thread { display: flex; flex-direction: column; min-height: 0; min-width: 0; background: linear-gradient(180deg, #fff, #fbfbfd); }
.thread-head {
  display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .9); backdrop-filter: blur(10px);
}
.thread-head .status { font-size: 12.5px; color: var(--ink-3); font-weight: 650; }
.thread-head .status.online { color: var(--green); }
.msgs { flex: 1; overflow-y: auto; padding: 20px 18px 8px; display: flex; flex-direction: column; gap: 4px; overscroll-behavior: contain; }
.day-sep { align-self: center; font-size: 11.5px; font-weight: 750; color: var(--ink-3); background: var(--bg); padding: 4px 12px; border-radius: 99px; margin: 12px 0; }
.msg { display: flex; gap: 8px; align-items: flex-end; max-width: min(78%, 560px); animation: rise .22s ease; }
.msg.me { align-self: flex-end; flex-direction: row-reverse; }
.msg .av { width: 30px; height: 30px; }
.msg.me .av, .msg.cont .av { visibility: hidden; }
.bubble { padding: 10px 14px; border-radius: 20px; font-size: 15px; line-height: 1.45; white-space: pre-wrap; word-wrap: break-word; overflow-wrap: anywhere; }
.msg.her .bubble { background: var(--bg-2); border-bottom-left-radius: 6px; }
.msg.me .bubble { background: var(--grad); color: #fff; border-bottom-right-radius: 6px; }
.msg .bubble-col { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.msg.me .bubble-col { align-items: flex-end; }
.msg .t { font-size: 10.5px; color: var(--ink-3); font-weight: 650; padding: 0 6px; }
.msg-photo { width: 240px; max-width: 100%; border-radius: 18px; overflow: hidden; position: relative; aspect-ratio: 3/4; background: var(--bg-2); display: block; }
.msg-photo img { width: 100%; height: 100%; object-fit: cover; }
.msg-photo.locked img { transform: scale(1.06); }
.typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }
.composer { display: flex; align-items: flex-end; gap: 8px; padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; }
.composer textarea {
  flex: 1; resize: none; border: 0; outline: 0; background: var(--bg); border-radius: 22px; padding: 11px 16px; max-height: 140px; min-height: 44px;
  font-weight: 550; line-height: 1.45;
}
.composer .send { width: 44px; height: 44px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; box-shadow: var(--sh-brand); flex: none; }
.composer .send[disabled] { opacity: .45; box-shadow: none; }
.quick { display: flex; gap: 8px; overflow-x: auto; padding: 4px 14px 0; scrollbar-width: none; background: #fff; }
.quick::-webkit-scrollbar { display: none; }
.quota { font-size: 12px; color: var(--ink-3); font-weight: 650; padding: 6px 16px 0; background: #fff; }
.chat-empty { display: grid; place-items: center; text-align: center; padding: 40px; color: var(--ink-2); }
@media (max-width: 900px) {
  .chat-shell { grid-template-columns: 1fr; height: auto; min-height: calc(100dvh - var(--top-h) - var(--tab-h) - 40px); border-radius: var(--r); }
  .chat-shell.in-thread { position: fixed; inset: 0; z-index: 50; border-radius: 0; height: 100dvh; border: 0; }
  .chat-shell.in-thread .chat-list { display: none; }
  .chat-shell:not(.in-thread) .thread { display: none; }
  .chat-list { border-right: 0; }
  .msg { max-width: 86%; }
}

/* ---------- forms ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; background: #fff; }
.auth-art { position: relative; overflow: hidden; background: var(--grad); }
.auth-art .mosaic { position: absolute; inset: -40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; transform: rotate(-8deg) scale(1.15); opacity: .95; }
.auth-art .mosaic img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 20px; }
.auth-art .over { position: absolute; inset: auto 0 0 0; padding: 40px; color: #fff; background: linear-gradient(180deg, transparent, rgba(20, 5, 30, .8)); }
.auth-art .over h2 { font-size: 34px; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-form form { width: min(420px, 100%); }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth-art { display: none; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label, .label { font-size: 13px; font-weight: 750; color: var(--ink-2); }
.input, .select, .textarea {
  width: 100%; height: 48px; padding: 0 16px; border-radius: 14px; border: 0; outline: 0; background: var(--bg);
  box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 600; transition: box-shadow .15s, background .15s;
}
.textarea { height: auto; min-height: 100px; padding: 12px 16px; resize: vertical; line-height: 1.5; }
.input:focus, .select:focus, .textarea:focus { background: #fff; box-shadow: inset 0 0 0 1.5px var(--brand), 0 0 0 4px rgba(253, 47, 111, .1); }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; background: var(--bg); padding: 5px; border-radius: 14px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { text-align: center; padding: 10px 6px; border-radius: 10px; font-weight: 750; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.seg input:checked + label { background: #fff; color: var(--ink); box-shadow: var(--sh-1); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); font-weight: 550; margin: 6px 0 16px; }
.check input { width: 20px; height: 20px; accent-color: var(--brand); flex: none; margin-top: 1px; }
.alert { padding: 12px 14px; border-radius: 14px; font-weight: 650; font-size: 14px; margin-bottom: 14px; }
.alert-error { background: #fff0f1; color: #c4283d; }
.alert-ok { background: #eafaf1; color: #0f8a4a; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: 12px; font-weight: 700; margin: 18px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- modal / toast ---------- */
.modal-back {
  position: fixed; inset: 0; z-index: 90; background: rgba(22, 14, 34, .5); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 18px;
  animation: fadeIn .2s ease;
}
.modal { width: min(440px, 100%); background: #fff; border-radius: var(--r-xl); padding: 30px 26px; box-shadow: var(--sh-3); animation: rise .25s ease; }
.modal .big-ic { width: 64px; height: 64px; border-radius: 20px; background: var(--grad); color: #fff; display: grid; place-items: center; margin: 0 auto 16px; box-shadow: var(--sh-brand); }
.modal h2 { text-align: center; }
.modal p { text-align: center; color: var(--ink-2); margin: 10px 0 22px; }
.lightbox { position: fixed; inset: 0; z-index: 95; background: rgba(10, 6, 16, .92); display: grid; place-items: center; animation: fadeIn .2s; }
.lightbox img { max-width: 94vw; max-height: 90vh; border-radius: 16px; }
.lightbox .close { position: absolute; top: 16px; right: 16px; color: #fff; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .14); display: grid; place-items: center; }
.toasts { position: fixed; left: 50%; bottom: calc(var(--tab-h) + 20px); transform: translateX(-50%); z-index: 120; display: flex; flex-direction: column; gap: 8px; align-items: center; }
@media (min-width: 901px) { .toasts { bottom: 28px; } }
.toast { background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 650; font-size: 14px; box-shadow: var(--sh-3); animation: rise .25s ease; }

/* ---------- rail ---------- */
.rail h3 { font-size: 15px; margin: 4px 0 12px; }
.rail-list { display: flex; flex-direction: column; gap: 4px; margin-bottom: 24px; }
.rail-item { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 14px; }
.rail-item:hover { background: var(--bg); }
.rail-item .n { font-weight: 750; font-size: 14px; }
.rail-item .s { font-size: 12.5px; color: var(--ink-3); }
.promo { border-radius: var(--r-lg); padding: 18px; background: var(--grad-soft); margin-bottom: 20px; }
.promo h3 { margin: 0 0 6px; }
.promo p { font-size: 13.5px; color: var(--ink-2); margin-bottom: 12px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--ink-3); font-weight: 600; }
.foot-links a:hover { color: var(--ink); }

/* ---------- live ---------- */
.live-card { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16/10; box-shadow: var(--sh-2); display: block; background: var(--bg-2); }
.live-card img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; transition: transform .6s; }
.live-card:hover img { transform: scale(1.04); }
.live-card::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(180deg, transparent, rgba(10, 6, 18, .8)); }
.live-card .top { position: absolute; top: 12px; left: 12px; right: 12px; z-index: 2; display: flex; justify-content: space-between; }
.live-card .bottom { position: absolute; left: 14px; bottom: 12px; right: 14px; z-index: 2; color: #fff; display: flex; align-items: center; gap: 10px; }
.live-badge { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 8px; background: var(--brand); color: #fff; font-weight: 800; font-size: 11.5px; letter-spacing: .05em; }
.live-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: blink 1.4s infinite; }
.viewers { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 9px; border-radius: 8px; background: rgba(0, 0, 0, .45); color: #fff; font-weight: 750; font-size: 12px; }
.grid-live { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }

/* ---------- misc ---------- */
.empty { text-align: center; padding: 50px 20px; }
.empty .ei { width: 72px; height: 72px; border-radius: 24px; margin: 0 auto 16px; display: grid; place-items: center; background: var(--grad-soft); color: var(--brand); }
.empty p { color: var(--ink-2); margin: 8px 0 18px; }
.skel { background: linear-gradient(90deg, var(--bg-2) 0%, #f6f6fa 50%, var(--bg-2) 100%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 12px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; color: var(--ink-3); font-weight: 750; text-transform: uppercase; letter-spacing: .04em; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.kpi { padding: 16px 18px; }
.kpi b { font-size: 26px; display: block; letter-spacing: -.03em; }
.kpi span { font-size: 12.5px; color: var(--ink-3); font-weight: 700; }
.age-gate .modal { text-align: center; }
.legal { max-width: 760px; }
.legal h1 { margin-bottom: 14px; }
.legal h2 { font-size: 18px; margin: 24px 0 8px; }
.legal p, .legal li { color: var(--ink-2); line-height: 1.65; }
.notif { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; }
.notif.unread { background: var(--grad-soft); }
.wallet-hero { padding: 26px; border-radius: var(--r-xl); background: var(--grad); color: #fff; box-shadow: var(--sh-brand); }
.wallet-hero b { font-size: 46px; letter-spacing: -.04em; line-height: 1; }
.packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.pack { padding: 18px; text-align: center; position: relative; }
.pack b { font-size: 26px; display: block; }
.pack .best { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); background: var(--violet); color: #fff; font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 99px; white-space: nowrap; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes blink { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* feed: replies under her posts, big text posts, suggestions, reply quote in chat */
.post-text.big { font-size: 20px; line-height: 1.4; font-weight: 700; letter-spacing: -.015em; margin: 0 16px 12px; padding: 26px 22px; border-radius: 18px; background: var(--grad-soft); color: var(--ink); }
.post-reply { display: flex; align-items: center; gap: 8px; padding: 4px 12px 14px; }
.post-reply input { flex: 1; min-width: 0; height: 42px; border: 0; outline: 0; border-radius: 999px; padding: 0 16px; background: var(--bg); font-weight: 600; box-shadow: inset 0 0 0 1.5px var(--line); }
.post-reply input:focus { background: #fff; box-shadow: inset 0 0 0 1.5px var(--brand), 0 0 0 4px rgba(253, 47, 111, .1); }
.post-reply button { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--brand); background: var(--grad-soft); flex: none; }
.suggest-row { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.suggest-row::-webkit-scrollbar { display: none; }
.suggest-card { position: relative; flex: none; width: 128px; aspect-ratio: 3/4; border-radius: 16px; overflow: hidden; background: var(--bg-2); }
.suggest-card img { width: 100%; height: 100%; object-fit: cover; }
.suggest-card::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(180deg, transparent, rgba(12, 8, 20, .75)); }
.suggest-card .n { position: absolute; left: 10px; right: 8px; bottom: 8px; z-index: 1; color: #fff; font-weight: 800; font-size: 13px; display: flex; align-items: center; gap: 6px; }
.reply-card { display: flex; align-items: center; gap: 10px; margin: 6px 14px 0; padding: 8px 8px 8px 12px; border-radius: 14px; background: var(--grad-soft); color: var(--brand); }
.reply-card .rc-text { color: var(--ink); font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reply-quote { font-size: 12.5px; color: var(--ink-2); padding: 6px 10px; border-left: 3px solid var(--brand); background: var(--bg); border-radius: 8px; max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* swipe: filters on the left, the deck beside them; on phones the filters are a sheet */
.swipe-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 28px; align-items: start; }
@media (min-width: 1001px) { .swipe-layout { margin: -8px 0 0 -12px; } }
.swipe-filters { position: sticky; top: 20px; max-height: calc(100vh - 40px); overflow-y: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); padding: 16px 16px 20px; scrollbar-width: thin; }
.swipe-filters .fhead { margin-bottom: 10px; }
.swipe-filters h2 { font-size: 18px; }
.swipe-filters .fclose { display: none; }
.fgroup { padding: 14px 0 4px; border-top: 1px solid var(--line); margin-top: 12px; }
.flabel { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); margin-bottom: 10px; }
.flabel b { font-size: 14px; color: var(--ink); text-transform: none; letter-spacing: 0; }
.fchips { display: flex; flex-wrap: wrap; gap: 6px; }
.fchip { position: relative; cursor: pointer; }
.fchip input { position: absolute; opacity: 0; pointer-events: none; }
.fchip span { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 11px; border-radius: 999px; font-size: 13px; font-weight: 650; color: var(--ink-2); background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--line); transition: all .15s; white-space: nowrap; }
.fchip span i { font-style: normal; font-size: 11px; color: var(--ink-3); font-weight: 700; }
.fchip:hover span { box-shadow: inset 0 0 0 1.5px var(--ink-3); color: var(--ink); }
.fchip input:checked + span { background: var(--grad); color: #fff; box-shadow: none; }
.fchip input:checked + span i { color: rgba(255, 255, 255, .8); }
.fchip input:focus-visible + span { outline: 3px solid rgba(253, 47, 111, .35); outline-offset: 2px; }
.fswitch { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 700; font-size: 14px; }
.fswitch input { position: absolute; opacity: 0; }
.fswitch .track { width: 40px; height: 24px; border-radius: 99px; background: var(--line-2); position: relative; transition: background .15s; flex: none; }
.fswitch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: var(--sh-1); transition: transform .15s; }
.fswitch input:checked + .track { background: var(--green); }
.fswitch input:checked + .track::after { transform: translateX(16px); }
.fswitch > span:last-child { display: inline-flex; align-items: center; gap: 7px; }
.frange { position: relative; height: 28px; }
.frange input { position: absolute; left: 0; right: 0; top: 6px; width: 100%; margin: 0; pointer-events: none; -webkit-appearance: none; appearance: none; background: transparent; height: 16px; }
.frange input::-webkit-slider-thumb { pointer-events: auto; -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--brand), var(--sh-2); cursor: pointer; margin-top: -8px; }
.frange input::-moz-range-thumb { pointer-events: auto; width: 20px; height: 20px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--brand), var(--sh-2); cursor: pointer; }
.frange input::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: transparent; }
.frange::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 6px; border-radius: 3px; background: var(--line); }
.frange .fill { position: absolute; top: 11px; height: 6px; border-radius: 3px; background: var(--grad); }
.filter-toggle { display: none; margin-bottom: 12px; }
.fcount { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 800; display: inline-grid; place-items: center; }
@media (max-width: 1000px) {
  .swipe-layout { grid-template-columns: minmax(0, 1fr); }
  .filter-toggle { display: inline-flex; }
  .swipe-filters { position: fixed; inset: auto 0 0 0; top: auto; z-index: 80; max-height: 82vh; max-height: 82dvh; border-radius: 24px 24px 0 0; transform: translateY(105%); transition: transform .25s ease; box-shadow: var(--sh-3); padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
  .swipe-filters.open { transform: none; }
  .swipe-filters .fclose { display: inline-flex; }
  .filters-back { position: fixed; inset: 0; z-index: 79; background: rgba(22, 14, 34, .45); }
}

/* ===== chat, Telegram-style ===== */
.chat-list-head { padding: 16px 16px 8px; }
.chat-search { display: flex; align-items: center; gap: 8px; height: 38px; margin-top: 10px; padding: 0 12px; border-radius: 999px; background: var(--bg); color: var(--ink-3); }
.chat-search input { border: 0; outline: 0; background: none; flex: 1; min-width: 0; font-weight: 600; color: var(--ink); }
.conv .you { color: var(--brand); font-weight: 700; }
.conv .badge-n { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 99px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; flex: none; }
.conv.active { background: var(--grad); color: #fff; }
.conv.active .last, .conv.active .time, .conv.active .you { color: rgba(255, 255, 255, .88); }
.thread { position: relative; background-color: #f4f1f8;
  background-image: radial-gradient(circle at 20% 15%, rgba(253, 47, 111, .07) 0 2px, transparent 3px), radial-gradient(circle at 70% 60%, rgba(123, 92, 255, .07) 0 2px, transparent 3px), radial-gradient(circle at 40% 85%, rgba(255, 106, 61, .07) 0 2px, transparent 3px), linear-gradient(160deg, #fbf3f6 0%, #f3f0fb 55%, #eef3fb 100%);
  background-size: 64px 64px, 88px 88px, 110px 110px, 100% 100%; }
.thread-head { background: rgba(255, 255, 255, .94); z-index: 3; }
.thread-head .status.typing { color: var(--brand); }
.head-menu { position: relative; }
.menu, .ctx-menu { background: #fff; border-radius: 14px; box-shadow: var(--sh-3); border: 1px solid var(--line); padding: 6px; min-width: 200px; z-index: 60; }
.menu { position: absolute; right: 0; top: 46px; }
.menu a, .menu button, .ctx-menu > button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 10px; font-weight: 650; font-size: 14px; text-align: left; color: var(--ink); }
.menu a:hover, .menu button:hover, .ctx-menu > button:hover { background: var(--bg); }
.menu .danger, .ctx-menu .danger { color: var(--danger); }
.ctx-menu { position: fixed; animation: rise .14s ease; }
.ctx-reacts { display: flex; gap: 2px; padding: 4px 4px 8px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.ctx-reacts button { width: 38px; height: 38px; border-radius: 50%; font-size: 22px; display: grid; place-items: center; transition: transform .12s; }
.ctx-reacts button:hover { transform: scale(1.22); background: var(--bg); }
.ctx-reacts button.on { background: var(--grad-soft); }
.msgs { padding: 14px 16px 10px; gap: 2px; }
.day-sep { background: none; padding: 0; margin: 10px 0; position: sticky; top: 4px; z-index: 2; }
.day-sep span { display: inline-block; font-size: 12.5px; font-weight: 750; color: #fff; background: rgba(60, 40, 80, .35); padding: 4px 12px; border-radius: 99px; backdrop-filter: blur(6px); }
.msg { position: relative; max-width: min(80%, 540px); margin-top: 6px; animation: rise .18s ease; }
.msg.cont { margin-top: 2px; }
.msg .av { width: 34px; height: 34px; align-self: flex-end; }
.msg.her.cont .av { visibility: hidden; }
.msg .bwrap { display: flex; flex-direction: column; min-width: 0; }
.msg.me .bwrap { align-items: flex-end; }
.msg .bubble { position: relative; padding: 7px 11px 7px 12px; border-radius: 18px; font-size: 15px; line-height: 1.42; box-shadow: 0 1px 1px rgba(22, 20, 31, .08); max-width: 100%; }
.msg.her .bubble { background: #fff; color: var(--ink); border-bottom-left-radius: 18px; }
.msg.me .bubble { background: var(--grad); color: #fff; border-bottom-right-radius: 18px; }
.msg.her:not(.cont) .bubble { border-top-left-radius: 6px; }
.msg.me:not(.cont) .bubble { border-top-right-radius: 6px; }
.btext { white-space: pre-wrap; word-wrap: break-word; overflow-wrap: anywhere; }
.meta-space { display: inline-block; width: 62px; height: 1px; }
.meta { position: absolute; right: 10px; bottom: 5px; display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; line-height: 1; opacity: .75; white-space: nowrap; }
.msg.her .meta { color: var(--ink-3); opacity: 1; }
.msg.me .meta { color: rgba(255, 255, 255, .92); }
.ticks { display: inline-flex; }
.ticks .clock { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid currentColor; display: inline-block; }
.bubble.has-photo { padding: 4px; }
.bubble.has-photo .btext { display: inline-block; padding: 4px 8px 2px; }
.bubble.photo-only { padding: 3px; background: transparent !important; box-shadow: none; }
.bubble.photo-only .meta { right: 12px; bottom: 10px; background: rgba(0, 0, 0, .42); color: #fff !important; padding: 3px 7px; border-radius: 99px; opacity: 1; }
.bphoto { position: relative; display: block; width: 260px; max-width: 100%; max-height: 380px; border-radius: 14px; overflow: hidden; background: var(--bg-2); }
.bphoto img { width: 100%; height: 100%; object-fit: cover; }
.bphoto.locked img { transform: scale(1.06); }
.rq { display: flex; flex-direction: column; gap: 1px; padding: 4px 9px; margin: 2px 0 5px; border-left: 3px solid var(--brand); background: rgba(253, 47, 111, .07); border-radius: 6px 10px 10px 6px; font-size: 13px; line-height: 1.3; max-width: 320px; cursor: pointer; }
.rq b { color: var(--brand); font-weight: 750; font-size: 12.5px; }
.rq span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.msg.me .rq { border-left-color: #fff; background: rgba(255, 255, 255, .18); }
.msg.me .rq b, .msg.me .rq span { color: #fff; }
.bubble.has-photo .rq { margin: 4px 4px 6px; }
.reacts { display: flex; gap: 4px; margin-top: 3px; }
.reacts:empty { display: none; }
.react { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 8px; border-radius: 99px; font-size: 14px; background: #fff; box-shadow: 0 1px 2px rgba(22, 20, 31, .12); }
.react.mine { background: var(--grad-soft); box-shadow: inset 0 0 0 1.5px rgba(253, 47, 111, .35); cursor: pointer; }
.react.hers img { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; }
.react.pop { animation: pop .4s ease; }
.msg.ctx .bubble { filter: brightness(.94); }
.msg.flash .bubble { animation: flash 1.2s ease; }
@keyframes flash { 0%, 100% { box-shadow: 0 1px 1px rgba(22, 20, 31, .08); } 30% { box-shadow: 0 0 0 4px rgba(253, 47, 111, .35); } }
.msg.failed .ticks { color: var(--danger); }
.msg.failed .bubble { opacity: .7; }
.swipe-reply { position: absolute; right: -40px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .25); color: #fff; opacity: 0; transition: opacity .15s; }
.msg.swiping .swipe-reply { opacity: 1; }
.typing { padding: 12px 14px !important; }
.to-bottom { position: absolute; right: 18px; bottom: 150px; z-index: 5; width: 44px; height: 44px; border-radius: 50%; background: #fff; box-shadow: var(--sh-2); display: grid; place-items: center; color: var(--ink-2); }
.to-bottom svg { transform: rotate(-90deg); }
.to-bottom .n { position: absolute; top: -6px; right: -4px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.reply-card, .attach-card { display: flex; align-items: center; gap: 10px; margin: 0; padding: 8px 10px 8px 14px; background: #fff; border-top: 1px solid var(--line); color: var(--ink); border-radius: 0; }
.reply-card .rc-bar { width: 3px; align-self: stretch; border-radius: 3px; background: var(--brand); }
.rc-who { font-size: 12.5px; font-weight: 750; color: var(--brand); }
.rc-text { font-size: 13.5px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attach-card img { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; }
.quick { background: transparent; padding-top: 6px; }
.quota { background: transparent; padding-bottom: 2px; }
.composer { position: relative; align-items: flex-end; gap: 6px; background: #fff; }
.cbtn { width: 40px; height: 44px; display: grid; place-items: center; color: var(--ink-3); border-radius: 12px; flex: none; }
.cbtn:hover { color: var(--brand); }
.cfield { flex: 1; display: flex; align-items: flex-end; background: var(--bg); border-radius: 22px; min-width: 0; }
.cfield textarea { flex: 1; resize: none; border: 0; outline: 0; background: transparent; padding: 11px 4px 11px 16px; max-height: 140px; min-height: 44px; font-weight: 550; line-height: 1.45; min-width: 0; }
.emoji-btn { font-size: 20px; width: 40px; }
.emoji-panel { position: absolute; right: 60px; bottom: 62px; width: 300px; max-width: calc(100vw - 30px); display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; padding: 8px; background: #fff; border-radius: 16px; box-shadow: var(--sh-3); border: 1px solid var(--line); z-index: 20; }
.emoji-panel button { font-size: 22px; height: 34px; border-radius: 8px; }
.emoji-panel button:hover { background: var(--bg); }
.drop-veil { position: absolute; inset: 0; z-index: 30; display: grid; place-items: center; background: rgba(253, 47, 111, .12); border: 3px dashed var(--brand); border-radius: inherit; color: var(--brand); text-align: center; pointer-events: none; }
.drop-veil b { display: block; margin-top: 8px; }
@media (max-width: 900px) {
  .msg { max-width: 88%; }
  .emoji-panel { right: 10px; }
  .to-bottom { bottom: 130px; }
}

/* chat v2: no sideways scroll, hover bar under a message (actions left, reactions right), pin bar, edited */
.chat-shell, .thread, .msgs { overflow-x: hidden; }
.msgs { padding-bottom: 54px; }
.msg .bwrap { position: relative; }
.hbar { position: absolute; top: 100%; z-index: 6; display: flex; align-items: center; gap: 6px; padding-top: 4px; visibility: hidden; opacity: 0; transform: translateY(-3px); transition: opacity .12s, transform .12s, visibility 0s .12s; pointer-events: none; }
.msg.her .hbar { left: 0; }
.msg.me .hbar { right: 0; }
.hb-acts, .hb-reacts { display: flex; align-items: center; gap: 1px; padding: 3px; background: #fff; border-radius: 999px; box-shadow: 0 4px 16px rgba(22, 20, 31, .14), 0 0 0 1px var(--line); }
.hb-act { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); }
.hb-act:hover { background: var(--bg); color: var(--brand); }
.hb-act[data-a="delete"]:hover { color: var(--danger); }
.hb-reacts button { width: 32px; height: 32px; border-radius: 50%; font-size: 19px; line-height: 1; display: grid; place-items: center; transition: transform .12s; }
.hb-reacts button:hover { transform: scale(1.25); background: var(--bg); }
.hb-reacts button.on { background: var(--grad-soft); }
.msg.show-bar .hbar { visibility: visible; opacity: 1; transform: none; transition: opacity .12s, transform .12s; pointer-events: auto; }
@media (hover: hover) and (pointer: fine) {
  .msg:hover .hbar { visibility: visible; opacity: 1; transform: none; transition: opacity .12s .12s, transform .12s .12s; pointer-events: auto; }
  .msg:hover { z-index: 7; }
}
.msg.show-bar { z-index: 7; }
.msg.ctx .hbar, .msg.swiping .hbar { display: none; }
.meta em { font-style: normal; margin-right: 3px; }
.meta-space.wide { width: 104px; }
.pin-bar { display: flex; align-items: center; gap: 10px; padding: 6px 10px 6px 16px; background: rgba(255, 255, 255, .94); border-bottom: 1px solid var(--line); cursor: pointer; z-index: 3; }
.pin-bar:hover { background: #fff; }
.pin-line { width: 3px; align-self: stretch; border-radius: 3px; background: var(--brand); }
@media (max-width: 900px) {
  .hbar { flex-direction: column; align-items: flex-start; gap: 4px; }
  .msg.me .hbar { align-items: flex-end; }
  .hb-act, .hb-reacts button { width: 36px; height: 36px; }
}

/* chat v3: dates in the flow, the page never scrolls (only the messages do), reaction picker, emoji panel with tabs */
.day-sep { position: static; display: flex; justify-content: center; margin: 12px 0 8px; }
.day-sep span { color: var(--ink-2); background: rgba(255, 255, 255, .85); box-shadow: 0 1px 2px rgba(22, 20, 31, .08); backdrop-filter: none; }
@media (min-width: 901px) {
  .chat-page { overflow: hidden; }
  .chat-page .main { height: 100vh; height: 100dvh; min-height: 0; padding: 20px 24px; box-sizing: border-box; display: flex; flex-direction: column; }
  .chat-page .chat-shell { height: auto; flex: 1; min-height: 0; }
}
@media (max-width: 900px) {
  .chat-page .chat-shell.in-thread { height: 100dvh; }
  .chat-page:has(.chat-shell.in-thread) { overflow: hidden; }
}
.thread { min-height: 0; }
.hb-more { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-3); }
.hb-more:hover { background: var(--bg); color: var(--brand); }
.ctx-reacts .hb-more { width: 38px; height: 38px; }
.react-picker { position: fixed; z-index: 70; width: 316px; max-width: calc(100vw - 16px); padding: 8px; background: #fff; border-radius: 18px; box-shadow: var(--sh-3); border: 1px solid var(--line); animation: rise .14s ease; }
.rp-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; max-height: 260px; overflow-y: auto; }
.rp-grid button { height: 36px; border-radius: 10px; font-size: 22px; line-height: 1; display: grid; place-items: center; transition: transform .1s; }
.rp-grid button:hover { background: var(--bg); transform: scale(1.18); }
.rp-grid button.on { background: var(--grad-soft); }
.emoji-btn { color: var(--ink-3); font-size: 0; }
.emoji-btn:hover, .emoji-btn.on { color: var(--brand); }
.emoji-panel { display: flex; flex-direction: column; width: 352px; height: 360px; padding: 0; grid-template-columns: none; overflow: hidden; right: 58px; bottom: 60px; }
.emoji-panel.hide { display: none !important; }
.ep-head { padding: 10px 12px 4px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.ep-grid { flex: 1; overflow-y: auto; display: grid; grid-template-columns: repeat(8, 1fr); align-content: start; gap: 2px; padding: 4px 8px 8px; }
.ep-grid button { height: 38px; border-radius: 10px; font-size: 24px; line-height: 1; display: grid; place-items: center; }
.ep-grid button:hover { background: var(--bg); }
.ep-tabs { display: flex; justify-content: space-between; padding: 6px 8px; border-top: 1px solid var(--line); background: #fafafc; }
.ep-tabs button { width: 36px; height: 34px; border-radius: 10px; font-size: 19px; filter: grayscale(1); opacity: .6; }
.ep-tabs button.on, .ep-tabs button:hover { filter: none; opacity: 1; background: #fff; box-shadow: var(--sh-1); }
@media (max-width: 900px) {
  .emoji-panel { left: 8px; right: 8px; width: auto; height: 320px; }
  .ep-grid, .rp-grid { grid-template-columns: repeat(8, 1fr); }
}

/* pinned: the tilted pin in brand colour; roomier time stamp so "edited 12:18 PM ✓✓" never touches the text */
.hb-act.is-pinned, .ctx-menu .is-pinned { color: var(--brand); }
.meta-space { width: 78px; }
.meta-space.wide { width: 124px; }
.msg.her .meta-space { width: 58px; }
.msg.her .meta-space.wide { width: 104px; }

/* USDT checkout */
.usdt-badge { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 99px; background: #e7f7f1; color: #0f8a62; font-size: 12.5px; font-weight: 800; }
.usdt-badge b { width: 18px; height: 18px; border-radius: 50%; background: #26a17b; color: #fff; display: grid; place-items: center; font-size: 11px; }
.usdt-card { padding: 24px; }
.usdt-timer { font-weight: 800; font-variant-numeric: tabular-nums; padding: 4px 10px; border-radius: 99px; background: var(--bg); }
.usdt-timer.late { color: var(--danger); background: #fff0f1; }
.usdt-qr { width: 190px; height: 190px; margin: 20px auto 6px; padding: 8px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); }
.usdt-qr svg { width: 100%; height: 100%; display: block; }
.usdt-f { margin-top: 16px; }
.usdt-f label { display: block; font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
.usdt-val { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 14px; border-radius: 14px; background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--line); }
.usdt-val code { flex: 1; min-width: 0; font: 600 14px/1.3 ui-monospace, "SF Mono", Menlo, Consolas, monospace; overflow-wrap: anywhere; }
.usdt-val.big code { font-size: 20px; font-weight: 800; color: var(--ink); }
.usdt-warn { margin: 18px 0 0; padding: 12px 14px 12px 30px; border-radius: 14px; background: #fff8e8; color: #7a5a00; font-size: 13px; line-height: 1.5; }
.usdt-warn li + li { margin-top: 4px; }
.usdt-status { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding: 12px 14px; border-radius: 14px; background: var(--grad-soft); color: var(--ink); font-weight: 650; font-size: 14px; }
.usdt-status .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); flex: none; animation: blink 1.4s infinite; }
.usdt-status.ok { background: #eafaf1; color: #0f8a4a; }
.usdt-status.ok .dot { background: var(--green); animation: none; }
.usdt-status.expired { background: var(--bg); color: var(--ink-2); }
.usdt-status.expired .dot { background: var(--ink-3); animation: none; }
.pack-link { display: block; transition: transform .15s, box-shadow .15s; }
.pack-link:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }

/* ===== stories ===== */
.story.seen .ring { background: var(--line-2); }
.story .ring { transition: transform .15s; }
.story:hover .ring { transform: scale(1.05); }
.story-chip { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; margin-bottom: 14px; border-radius: 999px; background: var(--grad-soft); }
.story-chip .ring { width: 46px; height: 46px; }
.story-chip b { display: block; font-size: 14px; }
.story-chip.seen .ring { background: var(--line-2); }
body.sv-open { overflow: hidden; }
.sv { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; gap: 18px; animation: fadeIn .2s ease; }
.sv-backdrop { position: absolute; inset: 0; background: #120b1a center/cover no-repeat; }
.sv-backdrop::after { content: ""; position: absolute; inset: 0; background: rgba(18, 11, 26, .72); backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px); }
.sv-frame { position: relative; z-index: 1; width: min(420px, calc(100vh * 9 / 16)); aspect-ratio: 9 / 16; max-height: 94vh; border-radius: 18px; overflow: hidden; background: #1b1024; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); transition: transform .2s; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.sv-bars { position: absolute; top: 10px; left: 10px; right: 10px; z-index: 4; display: flex; gap: 4px; }
.sv-bars i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .35); overflow: hidden; }
.sv-bars b { display: block; height: 100%; width: 0; background: #fff; }
.sv-head { position: absolute; top: 20px; left: 12px; right: 8px; z-index: 5; display: flex; align-items: center; justify-content: space-between; color: #fff; }
.sv-who { display: flex; align-items: center; gap: 9px; font-size: 14px; text-shadow: 0 1px 3px rgba(0, 0, 0, .4); }
.sv-who .av { box-shadow: 0 0 0 2px rgba(255, 255, 255, .9); }
.sv-who .badge-ai { background: rgba(255, 255, 255, .9); margin-left: 4px; }
.sv-ago { opacity: .85; font-weight: 600; }
.sv-tools { display: flex; gap: 2px; }
.sv-tools button { width: 36px; height: 36px; border-radius: 50%; color: #fff; font-size: 15px; display: grid; place-items: center; text-shadow: 0 1px 3px rgba(0, 0, 0, .4); }
.sv-tools button:hover { background: rgba(255, 255, 255, .15); }
.sv-body { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.sv-body.photo img { width: 100%; height: 100%; object-fit: cover; }
.sv-body.photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, transparent 18%, transparent 62%, rgba(0, 0, 0, .6) 100%); }
.sv-caption { position: absolute; left: 18px; right: 18px; bottom: 86px; z-index: 2; color: #fff; font-size: 17px; font-weight: 700; line-height: 1.4; text-align: center; text-shadow: 0 2px 8px rgba(0, 0, 0, .5); }
.sv-body.text { padding: 70px 30px 100px; text-align: center; color: #fff; }
.sv-text { font-size: clamp(20px, 3.4vh, 27px); font-weight: 800; line-height: 1.35; letter-spacing: -.01em; text-shadow: 0 2px 10px rgba(0, 0, 0, .15); white-space: pre-wrap; }
.sv-mood { margin-top: 18px; display: inline-block; padding: 6px 14px; border-radius: 99px; background: rgba(255, 255, 255, .22); font-weight: 750; font-size: 14px; }
.sbg-0 { background: linear-gradient(160deg, #ff6a3d, #fd2f6f 60%, #c8228a); }
.sbg-1 { background: linear-gradient(160deg, #7b5cff, #b44cff 60%, #fd2f6f); }
.sbg-2 { background: linear-gradient(160deg, #11c5b0, #1e8fff); }
.sbg-3 { background: linear-gradient(160deg, #ffb020, #ff6a3d); }
.sbg-4 { background: linear-gradient(160deg, #2b1a4a, #5b2a86 55%, #b0306e); }
.sbg-5 { background: linear-gradient(160deg, #ff8fb1, #ffb3c7 45%, #c8a2ff); color: #3a1830; }
.sbg-6 { background: linear-gradient(160deg, #0f2027, #203a43 50%, #2c5364); }
.sbg-7 { background: linear-gradient(160deg, #56ab2f, #a8e063); }
.sbg-5 .sv-text { text-shadow: none; }
.sbg-5 .sv-mood { background: rgba(255, 255, 255, .5); }
.sv-tap { position: absolute; top: 70px; bottom: 76px; z-index: 3; width: 38%; background: transparent; }
.sv-tap-l { left: 0; }
.sv-tap-r { right: 0; width: 62%; }
.sv-reply { position: absolute; left: 10px; right: 10px; bottom: 12px; z-index: 6; display: flex; align-items: center; gap: 6px; }
.sv-reply input { flex: 1; min-width: 0; height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .6); background: rgba(0, 0, 0, .18); color: #fff; outline: 0; font-weight: 600; backdrop-filter: blur(6px); }
.sv-reply input::placeholder { color: rgba(255, 255, 255, .85); }
.sv-reply input:focus { border-color: #fff; background: rgba(0, 0, 0, .3); }
.sv-reply button { width: 44px; height: 44px; border-radius: 50%; color: #fff; display: grid; place-items: center; font-size: 20px; flex: none; }
.sv-like.on { color: #ff3d6e; }
.sv-like.on svg { fill: #ff3d6e; }
.sv-like.pop svg { animation: pop .4s ease; }
.sv-nav { position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .9); color: var(--ink); font-size: 28px; line-height: 1; display: grid; place-items: center; box-shadow: var(--sh-2); }
.sv-nav:hover { background: #fff; }
@media (max-width: 600px) {
  .sv { gap: 0; }
  .sv-nav { display: none; }
  .sv-frame { width: 100vw; height: 100dvh; max-height: none; aspect-ratio: auto; border-radius: 0; }
}

/* age filter: two selects + presets instead of the double slider */
.fage { display: flex; align-items: center; gap: 8px; }
.fage label { flex: 1; display: flex; flex-direction: column; gap: 4px; font-size: 11.5px; font-weight: 700; color: var(--ink-3); }
.fage select { height: 40px; padding: 0 10px; border-radius: 12px; border: 0; background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 700; font-size: 14px; color: var(--ink); cursor: pointer; }
.fage select:focus { outline: 0; box-shadow: inset 0 0 0 1.5px var(--brand); }
.fage-dash { margin-top: 18px; color: var(--ink-3); font-weight: 800; }
.fage-presets { margin-top: 10px; }
.fchip-btn { height: 32px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 650; color: var(--ink-2); background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--line); }
.fchip-btn:hover { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.fchip-btn.on { background: var(--grad); color: #fff; box-shadow: none; }

/* ===== photo viewer ===== */
body.gv-open { overflow: hidden; }
.gv { position: fixed; inset: 0; z-index: 210; background: #0b0710; display: flex; flex-direction: column; animation: fadeIn .18s ease; user-select: none; -webkit-user-select: none; }
.gv-top { position: relative; z-index: 3; display: flex; align-items: center; gap: 8px; padding: 12px 14px; color: #fff; }
.gv-count { font-weight: 800; font-size: 14px; letter-spacing: .02em; opacity: .9; font-variant-numeric: tabular-nums; }
.gv-spacer { flex: 1; }
.gv-btn { height: 40px; min-width: 40px; padding: 0 10px; border-radius: 99px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: #fff; background: rgba(255, 255, 255, .1); font-weight: 750; font-size: 14px; }
.gv-btn:hover { background: rgba(255, 255, 255, .2); }
.gv-msg { background: var(--grad); padding: 0 14px; }
.gv-msg:hover { background: var(--grad); filter: brightness(1.08); }
.gv-zoom { font-size: 20px; }
.gv-stage { position: relative; flex: 1; min-height: 0; overflow: hidden; touch-action: none; cursor: grab; }
.gv.zoomed .gv-stage { cursor: move; }
.gv-track { display: flex; height: 100%; will-change: transform; }
.gv-slide { flex: 0 0 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 6px 70px; box-sizing: border-box; }
.gv-img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; transform-origin: center center; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.gv-locked { position: relative; width: min(420px, 90%); aspect-ratio: 3/4; border-radius: 16px; overflow: hidden; }
.gv-locked img { width: 100%; height: 100%; object-fit: cover; }
.gv-locked > div { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: #fff; text-align: center; background: rgba(20, 10, 30, .35); padding: 20px; }
.gv-arrow { position: absolute; top: 50%; z-index: 3; width: 52px; height: 52px; margin-top: -26px; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 34px; line-height: 1; display: grid; place-items: center; transition: background .15s, opacity .15s; }
.gv-arrow:hover { background: rgba(255, 255, 255, .25); }
.gv-arrow.off { opacity: .15; pointer-events: none; }
.gv-prev { left: 14px; }
.gv-next { right: 14px; }
.gv.zoomed .gv-arrow { opacity: 0; pointer-events: none; }
.gv-thumbs { display: flex; gap: 6px; padding: 10px 14px 14px; overflow-x: auto; scrollbar-width: thin; flex: none; }
.gv-thumbs button { flex: none; width: 54px; height: 72px; border-radius: 8px; overflow: hidden; opacity: .45; transition: opacity .15s, box-shadow .15s; }
.gv-thumbs button:hover { opacity: .8; }
.gv-thumbs button.on { opacity: 1; box-shadow: 0 0 0 2px #fff; }
.gv-thumbs button.locked img { filter: blur(3px); }
.gv-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.grid-more { text-align: center; padding: 22px 0 8px; }
@media (max-width: 700px) {
  .gv-slide { padding: 0; }
  .gv-img { border-radius: 0; box-shadow: none; }
  .gv-arrow { display: none; }
  .gv-thumbs { display: none; }
  .gv-msg span { display: none; }
  .gv-top { padding: 10px 10px calc(10px); background: linear-gradient(180deg, rgba(0,0,0,.45), transparent); position: absolute; left: 0; right: 0; top: 0; }
}

/* faces stay in frame: crop from the top, not the middle */
.pcard img, .scard img, .gallery-main img, .suggest-card img, .live-card img { object-position: 50% 18%; }
/* swipe-up menu */
.swipe-sheet p { text-align: center; }
.swipe-sheet .av img { object-position: 50% 15%; }
@media (max-width: 900px) {
  .sheet-back { align-items: end; padding: 0; }
  .sheet-back .modal { width: 100%; border-radius: 26px 26px 0 0; padding-bottom: calc(24px + env(safe-area-inset-bottom)); animation: sheetUp .22s ease; }
}
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }

/* photo viewer on phones: controls in a bottom bar like the site tab bar; the top bar is desktop only */
.gv-bar { display: none; }
@media (max-width: 700px) {
  .gv { height: 100vh; height: 100dvh; }
  .gv-top { display: none !important; }
  .gv-stage { padding-bottom: 0; }
  .gv-bar { display: grid; grid-template-columns: repeat(5, 1fr); flex: none; height: calc(64px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line); z-index: 4; }
  .gv-tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 700; color: var(--ink-3); background: none; }
  .gv-tab b { font-size: 30px; line-height: 22px; font-weight: 600; color: var(--ink-2); }
  .gv-tab.off { opacity: .3; pointer-events: none; }
  .gv-tab-count b { font-size: 14px; line-height: 22px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
  .gv-tab-msg { color: var(--brand); }
}

/* replying to her photo: a thumbnail in the reply card and in the quote */
.reply-card .rc-thumb { width: 44px; height: 54px; border-radius: 8px; object-fit: cover; object-position: 50% 20%; flex: none; }
.rq-photo { flex-direction: row; align-items: center; gap: 9px; padding: 4px 10px 4px 4px; cursor: default; }
.rq-photo img { width: 38px; height: 46px; border-radius: 6px; object-fit: cover; object-position: 50% 20%; flex: none; }
.rq-photo > span { display: flex; flex-direction: column; min-width: 0; }
.rq-photo > span > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* viewer icons */
.gv-arrow { font-size: 0; }
.gv-arrow svg, .gv-btn svg, .gv-tab svg { display: block; }
.gv-x { width: 40px; padding: 0; }
.gv-tab { color: var(--ink-2); }
.gv-tab span { color: var(--ink-3); }
.gv-tab-msg, .gv-tab-msg span { color: var(--brand); }

/* profile actions fit a 360px phone: the main button shrinks (ellipsis), tighter padding on narrow screens */
.pinfo .actions { grid-template-columns: minmax(0, 1fr) auto auto; }
.pinfo .actions .btn { min-width: 0; }
.pinfo .actions .btn-primary { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 420px) {
  .pinfo .actions { gap: 8px; }
  .pinfo .actions .btn-lg { height: 48px; padding: 0 14px; font-size: 15px; }
  .pinfo .actions .btn-icon { width: 48px !important; padding: 0; }
}

/* Character profile, 2026-10-06: photos and clips in one grid; posts in the side card. */
.gal-head { display: flex; align-items: baseline; gap: 12px; margin: 4px 0 12px; flex-wrap: wrap; }
.gal-head h2 { font-size: 18px; display: flex; align-items: center; gap: 8px; }
.tile.vclip { cursor: pointer; }
.tile.vclip video { width: 100%; height: 100%; object-fit: cover; display: block; background: var(--bg-2); }
.tile .vbadge { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; display: flex; align-items: center; justify-content: center; pointer-events: none; transition: opacity .2s; z-index: 2; }
.tile.vclip.playing .vbadge { opacity: 0; }
.side-tabs .tabs { display: flex; gap: 6px; }
.side-feed .post { margin-left: 0; margin-right: 0; box-shadow: none; border: 1px solid var(--line, #eee); }
.side-feed { display: grid; gap: 12px; max-height: 70vh; overflow: auto; }

/* A clip opened full screen shows whole, fitted to the screen height (tiles crop with object-fit: cover). 2026-10-07 */
video:fullscreen { object-fit: contain !important; object-position: center !important; background: #000; width: 100%; height: 100%; }
video:-webkit-full-screen { object-fit: contain !important; object-position: center !important; background: #000; width: 100%; height: 100%; }
