/* ChatCharacter — 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;
}
.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::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); }
.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; 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; } }
