/* Amura — дизайн-токены (роли, а не цвета) */
:root {
  --bg: #F6F5F2;
  --surface: #FFFFFF;
  --surface-2: #EFEDE8;
  --border: #E2DFD8;
  --border-input: #8A857B;
  --text: #1C1B19;
  --text-muted: #5E5A53;
  --accent: #0E7C74;
  --accent-strong: #0A615B;
  --accent-soft: #DDF1EE;
  --on-accent: #FFFFFF;
  --like: #D9433F;
  --like-soft: #FBE3E1;
  --premium: #8A5A00;
  --premium-bg: #FFF1D6;
  --danger: #B42318;
  --success: #1F7A45;
  --online: #22A35A;

  --r-sm: 10px; --r-md: 14px; --r-lg: 22px; --r-pill: 999px;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px;
  --shadow: 0 1px 2px rgb(0 0 0 / .06), 0 8px 24px rgb(0 0 0 / .08);
  --shadow-card: 0 2px 6px rgb(0 0 0 / .08), 0 18px 40px rgb(0 0 0 / .14);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --nav-h: 64px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121413; --surface: #1B1E1D; --surface-2: #252928; --border: #313735; --border-input: #7E8784;
    --text: #EEF1F0; --text-muted: #A3ABA8; --accent: #3CC0B2; --accent-strong: #63D3C7; --accent-soft: #173B37;
    --on-accent: #062522; --like: #FF6B66; --like-soft: #3A1E1D; --premium: #F5C266; --premium-bg: #3A2D12;
    --danger: #FF7B72; --success: #5DD39A;
    --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 8px 24px rgb(0 0 0 / .35);
    --shadow-card: 0 2px 6px rgb(0 0 0 / .4), 0 18px 40px rgb(0 0 0 / .5);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 500 16px/1.5 var(--font); }
img { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 var(--s3); letter-spacing: -0.01em; }
h1 { font-size: 28px; font-weight: 800; }
h2 { font-size: 20px; font-weight: 700; }
.h3 { font-size: 16px; font-weight: 700; margin-top: var(--s5); }
p { margin: 0 0 var(--s3); }
code { background: var(--surface-2); padding: 1px 6px; border-radius: 6px; font-size: .9em; }
.muted { color: var(--text-muted); }
.small { font-size: 14px; }
.center { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.row { display: flex; gap: var(--s2); flex-wrap: wrap; align-items: center; }
.stack > * + * { margin-top: var(--s4); }
.grow { flex: 1; min-width: 0; }
.ellipsis { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Каркас ---------- */
.main { max-width: 1080px; margin: 0 auto; padding: var(--s4) var(--s4) var(--s7); }
.has-nav .main { padding-bottom: calc(var(--nav-h) + var(--s6) + env(safe-area-inset-bottom)); }
.nav { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom); display: flex; background: var(--surface); border-top: 1px solid var(--border); }
.nav a { flex: 1; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--text-muted); text-decoration: none; font-size: 11px; font-weight: 600; }
.nav a.on { color: var(--accent); }
.nav-logo, .nav-premium { display: none !important; }
.nav-avatar { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.nav a.on .nav-avatar { box-shadow: 0 0 0 2px var(--accent); }
.count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--r-pill); background: var(--like); color: #fff;
  font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.nav .count { position: absolute; top: 6px; left: calc(50% + 6px); }
@media (min-width: 900px) {
  .has-nav .main { margin-left: 240px; padding: var(--s6) var(--s6) var(--s7); }
  .nav { top: 0; right: auto; width: 240px; height: 100vh; flex-direction: column; justify-content: flex-start; gap: var(--s1);
    padding: var(--s5) var(--s3); border-top: 0; border-right: 1px solid var(--border); }
  .nav a { flex: none; flex-direction: row; justify-content: flex-start; gap: var(--s3); padding: 10px var(--s3); border-radius: var(--r-md); font-size: 15px; }
  .nav a:hover { background: var(--surface-2); }
  .nav a.on { background: var(--accent-soft); }
  .nav .count { position: static; margin-left: auto; }
  .nav-logo { display: flex !important; color: var(--text) !important; font-size: 22px !important; font-weight: 800 !important; margin-bottom: var(--s4); }
  .nav-premium { display: flex !important; margin-top: auto; color: var(--premium) !important; background: var(--premium-bg); }
}

.page-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s4); flex-wrap: wrap; }
.page-head h1 { margin: 0; display: flex; align-items: center; gap: var(--s2); }
.narrow { max-width: 620px; }
.back { display: inline-flex; align-items: center; gap: var(--s1); color: var(--text-muted); text-decoration: none; font-weight: 600; margin-bottom: var(--s3); }

/* ---------- Кнопки и поля ---------- */
.btn { --b: var(--surface); --c: var(--text); display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 44px; padding: 10px 18px; border-radius: var(--r-pill); border: 1px solid transparent; background: var(--b); color: var(--c);
  font: 700 15px/1 var(--font); text-decoration: none; cursor: pointer; transition: transform .12s, background .15s; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .6; cursor: default; }
.btn .ic { width: 18px; height: 18px; }
.btn-primary { --b: var(--accent); --c: var(--on-accent); }
.btn-primary:hover { --b: var(--accent-strong); }
.btn-ghost { --b: transparent; border-color: var(--border); }
.btn-ghost:hover { --b: var(--surface-2); }
.btn-ghost.is-on { border-color: var(--text-muted); }
.btn-like { --b: var(--like); --c: #fff; }
.btn-premium { --b: var(--premium-bg); --c: var(--premium); border-color: color-mix(in srgb, var(--premium) 30%, transparent); }
.btn-danger { --b: transparent; --c: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.btn-lg { min-height: 52px; padding: 14px 26px; font-size: 16px; }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: 14px; }
.btn-xs { min-height: 28px; padding: 4px 10px; font-size: 12px; --b: rgb(255 255 255 / .92); --c: #1C1B19; }
.btn-xs.btn-danger { --b: rgb(255 255 255 / .92); --c: #B42318; }
.btn-block { width: 100%; }
.btn-icon { width: 48px; padding: 0; flex: none; }

.field { display: flex; flex-direction: column; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span, .field > legend { font-size: 14px; font-weight: 700; padding: 0; }
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]), select, textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--border-input); border-radius: var(--r-sm);
  background: var(--surface); color: var(--text); font: 500 16px/1.4 var(--font); }
textarea { resize: vertical; }
input[type=range] { width: 100%; accent-color: var(--accent); }
.check { display: flex; gap: var(--s2); align-items: flex-start; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.seg { display: flex; gap: var(--s2); flex-wrap: wrap; }
.seg label { flex: 1; min-width: 90px; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; text-align: center; padding: 11px; border: 1px solid var(--border-input); border-radius: var(--r-sm); cursor: pointer; font-weight: 600; }
.seg input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.cols { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s5); margin-bottom: var(--s4); }
.form-card > summary { cursor: pointer; font-weight: 700; }
.danger-zone > summary { color: var(--danger); }
.alert { background: var(--like-soft); color: var(--danger); padding: var(--s3) var(--s4); border-radius: var(--r-sm); font-weight: 600; }
.flash { background: var(--accent-soft); color: var(--text); padding: var(--s3) var(--s4); border-radius: var(--r-md); margin-bottom: var(--s4); font-weight: 600; }
.hint { background: var(--surface-2); padding: var(--s3); border-radius: var(--r-sm); }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--r-pill); background: var(--surface-2);
  font-size: 14px; font-weight: 700; text-decoration: none; color: var(--text); }
.pill .ic { width: 16px; height: 16px; }
.pill-ok { background: var(--accent-soft); color: var(--accent-strong); }
.pill-warn { background: var(--like-soft); color: var(--danger); }
.pill-accent { background: var(--like-soft); color: var(--like); }
.pill-premium { background: var(--premium-bg); color: var(--premium); }

.verified { display: inline-flex; color: var(--accent); vertical-align: -3px; }
.verified .ic { width: 20px; height: 20px; fill: var(--accent); stroke: var(--accent); }
.verified .ic .ic-tick { stroke: var(--on-accent); fill: none; }
.dot-online { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--online); box-shadow: 0 0 0 2px var(--surface); }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--s2); }
.chips li, .chips-pick span { padding: 6px 12px; border-radius: var(--r-pill); background: var(--surface-2); font-size: 14px; font-weight: 600; }
.chips-pick input { position: absolute; opacity: 0; }
.chips-pick span { display: inline-block; cursor: pointer; border: 1px solid transparent; }
.chips-pick input:checked + span { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-strong); }
.chips-pick input:focus-visible + span { outline: 2px solid var(--accent); }

.empty { text-align: center; max-width: 440px; margin: var(--s7) auto; }
.empty .row { justify-content: center; }
.skeleton { background: linear-gradient(90deg, var(--surface-2), var(--surface), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Лендинг и вход ---------- */
.brand { display: inline-flex; align-items: center; gap: var(--s2); color: var(--text); text-decoration: none; font-weight: 800; font-size: 24px; letter-spacing: -0.02em; }
.landing { min-height: 100vh; display: flex; flex-direction: column; }
.landing-top { display: flex; justify-content: space-between; align-items: center; }
.landing-hero { flex: 1; display: grid; gap: var(--s6); align-items: center; padding: var(--s7) 0; }
@media (min-width: 900px) { .landing-hero { grid-template-columns: 1.3fr 1fr; } }
.landing h1 { font-size: clamp(34px, 6vw, 56px); letter-spacing: -0.03em; }
.eyebrow { color: var(--accent); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; }
.lead { font-size: 18px; color: var(--text-muted); max-width: 560px; }
.landing-cta { display: flex; gap: var(--s3); flex-wrap: wrap; margin: var(--s5) 0 var(--s3); }
.landing-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
.landing-steps li { display: flex; gap: var(--s4); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s5); }
.landing-steps b { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-strong); }
.landing-steps strong { display: block; }
.landing-steps span { color: var(--text-muted); }
.landing-steps strong { color: var(--text); }
.auth { max-width: 420px; margin: var(--s6) auto; }
.auth-wide { max-width: 520px; }
.auth h1 { margin-top: var(--s5); }

/* ---------- Встречи ---------- */
.enc { max-width: 460px; margin: 0 auto; }
.deck { position: relative; aspect-ratio: 3 / 4.2; max-height: calc(100vh - 260px); min-height: 380px; }
.card, .deck-loading, .deck-empty { position: absolute; inset: 0; }
.card-skeleton { width: 100%; height: 100%; border-radius: var(--r-lg); }
.deck-empty { position: static; margin: var(--s6) auto; }
.card { border-radius: var(--r-lg); overflow: hidden; background: var(--surface-2); box-shadow: var(--shadow-card); touch-action: pan-y; user-select: none;
  will-change: transform; transition: transform .3s cubic-bezier(.2,.8,.2,1), opacity .3s; }
.card.dragging { transition: none; cursor: grabbing; }
.card:not(.top) { transform: scale(.95) translateY(14px); pointer-events: none; }
.card:nth-last-child(n+3):not(.top) { opacity: 0; }
.card-photos img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-bars { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; gap: 4px; z-index: 2; }
.card-bars i { flex: 1; height: 3px; border-radius: 2px; background: rgb(255 255 255 / .45); }
.card-bars i.on { background: #fff; }
.card-info { position: absolute; left: 0; right: 0; bottom: 0; padding: var(--s7) var(--s5) var(--s5); color: #fff; text-decoration: none;
  background: linear-gradient(transparent, rgb(0 0 0 / .78)); }
.card-info h2 { font-size: 28px; margin: 0 0 var(--s1); display: flex; align-items: center; gap: var(--s2); }
.card-info .verified .ic { fill: #fff; stroke: #fff; } .card-info .verified .ic .ic-tick { stroke: var(--accent); }
.card-meta { margin: 0 0 var(--s2); opacity: .9; font-weight: 600; }
.card-bio { margin: 0 0 var(--s3); opacity: .92; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-chips li { background: rgb(255 255 255 / .18); color: #fff; backdrop-filter: blur(6px); }
.stamp { position: absolute; top: 40px; z-index: 3; padding: 6px 14px; border: 4px solid; border-radius: 12px; font-size: 30px; font-weight: 800;
  letter-spacing: .06em; opacity: 0; transform: rotate(-12deg); }
.stamp-like { left: 24px; color: #4ADE80; } .stamp-pass { right: 24px; color: #FF6B66; transform: rotate(12deg); }
.deck-actions { display: flex; justify-content: center; align-items: center; gap: var(--s5); margin-top: var(--s5); }
.act { width: 64px; height: 64px; border-radius: 50%; border: 0; background: var(--surface); box-shadow: var(--shadow); display: grid; place-items: center; cursor: pointer; transition: transform .12s; }
.act:active { transform: scale(.92); }
.act .ic { width: 30px; height: 30px; stroke-width: 2.4; }
.act-pass { color: var(--text-muted); }
.act-like { width: 76px; height: 76px; background: var(--like); color: #fff; }
.act-like .ic { width: 36px; height: 36px; fill: #fff; }
.act-undo { width: 48px; height: 48px; color: var(--premium); }
.act-undo .ic { width: 22px; height: 22px; }
.keys-hint { margin-top: var(--s4); }
@media (hover: none) { .keys-hint { display: none; } }

.match { border: 0; border-radius: var(--r-lg); padding: 0; max-width: 380px; width: calc(100% - 32px); background: var(--surface); color: var(--text); }
.match::backdrop { background: rgb(0 0 0 / .6); backdrop-filter: blur(4px); }
.match-in { padding: var(--s6) var(--s5) var(--s5); text-align: center; }
.match-in > * + * { margin-top: var(--s3); }
.match-pics { display: flex; justify-content: center; margin-bottom: var(--s4); }
.match-pics img { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; border: 4px solid var(--surface); box-shadow: var(--shadow); }
.match-pics img + img { margin-left: -24px; }
.match h2 { font-size: 30px; color: var(--like); }

/* ---------- Сетки и списки ---------- */
.grid { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); } }
.tile { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: var(--r-md); overflow: hidden; background: var(--surface-2); color: #fff; text-decoration: none; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
a.tile:hover img { transform: scale(1.04); }
.tile-info { position: absolute; left: 0; right: 0; bottom: 0; padding: var(--s6) var(--s3) var(--s3); background: linear-gradient(transparent, rgb(0 0 0 / .75)); display: flex; flex-direction: column; }
.tile-name { font-weight: 800; display: flex; align-items: center; gap: 4px; }
.tile-name .verified .ic { width: 16px; height: 16px; fill: #fff; stroke: #fff; } .tile-name .verified .ic .ic-tick { stroke: var(--accent); }
.tile-meta { font-size: 13px; opacity: .9; display: flex; align-items: center; gap: 6px; }
.grid-locked .tile img { filter: blur(14px) saturate(.8); transform: scale(1.15); }
.upsell { text-align: center; max-width: 480px; margin: calc(-1 * var(--s7)) auto 0; position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: var(--s5); box-shadow: var(--shadow); }
.upsell .row { justify-content: center; }

.filters { margin-bottom: var(--s4); }
.filters summary { display: inline-flex; gap: var(--s2); align-items: center; cursor: pointer; font-weight: 700; padding: 8px 14px; border: 1px solid var(--border); border-radius: var(--r-pill); }
.filters-form { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); align-items: end; margin-top: var(--s3);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s4); }
.tabs { display: flex; gap: var(--s2); margin-bottom: var(--s4); border-bottom: 1px solid var(--border); }
.tabs a { padding: 10px 4px; margin-right: var(--s4); color: var(--text-muted); text-decoration: none; font-weight: 700; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs a.on { color: var(--text); border-color: var(--accent); }
.tabs b { color: var(--text-muted); font-weight: 600; margin-left: 4px; }

.list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.list li + li { border-top: 1px solid var(--border); }
.list-row { display: flex; gap: var(--s3); align-items: center; padding: var(--s3) var(--s4); color: var(--text); text-decoration: none; }
.list-row:hover { background: var(--surface-2); }
.list-row.unread b { color: var(--text); } .list-row.unread .ellipsis { color: var(--text); font-weight: 700; }
.list-end { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.ava { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; background: var(--surface-2); }
.ava-lg { width: 68px; height: 68px; box-shadow: 0 0 0 3px var(--accent); }
.ava-wrap { position: relative; flex: none; } .ava-wrap .dot-online { position: absolute; right: 2px; bottom: 2px; width: 12px; height: 12px; }
.strip { display: flex; gap: var(--s4); overflow-x: auto; padding: var(--s1) var(--s1) var(--s4); margin-bottom: var(--s3); }
.strip-item { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--text); text-decoration: none; font-size: 13px; font-weight: 700; }

/* ---------- Профиль ---------- */
.profile-grid { display: grid; gap: var(--s5); }
@media (min-width: 900px) { .profile-grid { grid-template-columns: 420px 1fr; align-items: start; } .gallery { position: sticky; top: var(--s6); } }
.gallery { position: relative; aspect-ratio: 3 / 4; border-radius: var(--r-lg); overflow: hidden; background: var(--surface-2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gal-prev, .gal-next { position: absolute; top: 0; bottom: 0; width: 40%; background: none; border: 0; cursor: pointer; }
.gal-prev { left: 0; } .gal-next { right: 0; }
.profile-body h1 { display: flex; align-items: center; gap: var(--s2); }
.profile-actions { margin: var(--s4) 0; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--s3); margin: var(--s4) 0 0; }
.facts div { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--s3); }
.facts dt { font-size: 13px; color: var(--text-muted); font-weight: 600; } .facts dd { margin: 0; font-weight: 700; }
.bio { white-space: pre-line; }
.safety { margin-top: var(--s6); border-top: 1px solid var(--border); padding-top: var(--s4); }
.safety summary { display: inline-flex; align-items: center; gap: var(--s2); cursor: pointer; color: var(--text-muted); font-weight: 700; }
.safety form { margin-top: var(--s4); }

/* ---------- Мой профиль ---------- */
.me-status { display: flex; gap: var(--s2); flex-wrap: wrap; margin-bottom: var(--s3); }
.photos { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); margin-bottom: var(--s5); }
.photo { position: relative; margin: 0; aspect-ratio: 3 / 4; border-radius: var(--r-md); overflow: hidden; background: var(--surface-2); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-main { position: absolute; top: 8px; left: 8px; background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: var(--r-pill); }
.photo-tools { position: absolute; left: 6px; right: 6px; bottom: 6px; display: flex; gap: 4px; flex-wrap: wrap; }
.photo-add label { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; cursor: pointer; border: 2px dashed var(--border-input);
  border-radius: var(--r-md); color: var(--text-muted); font-size: 34px; font-weight: 300; line-height: 1.1; }
.photo-add small { font-size: 12px; font-weight: 600; }
.photo-add input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.photo-add:focus-within label { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Чат ---------- */
.chat { display: flex; flex-direction: column; height: calc(100dvh - var(--nav-h) - var(--s5) - env(safe-area-inset-bottom)); max-width: 760px; }
@media (min-width: 900px) { .chat { height: calc(100dvh - var(--s6) * 2); } }
.chat-head { display: flex; align-items: center; gap: var(--s2); padding-bottom: var(--s3); border-bottom: 1px solid var(--border); }
.chat-head .back { margin: 0; padding: 6px; }
.chat-peer { display: flex; align-items: center; gap: var(--s3); color: var(--text); text-decoration: none; }
.chat-peer .ava { width: 44px; height: 44px; }
.chat-log { flex: 1; overflow-y: auto; padding: var(--s4) 0; display: flex; flex-direction: column; gap: 6px; }
.chat-empty { margin: auto; max-width: 340px; }
.bubble { max-width: 78%; padding: 9px 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); align-self: flex-start;
  white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble.mine { align-self: flex-end; background: var(--accent); color: var(--on-accent); border-color: transparent; }
.bubble time { display: block; font-size: 11px; opacity: .7; text-align: right; margin-top: 2px; }
.bubble.pending { opacity: .6; }
.day { align-self: center; font-size: 12px; color: var(--text-muted); font-weight: 700; margin: var(--s2) 0; }
.chat-form { display: flex; gap: var(--s2); align-items: flex-end; padding-top: var(--s3); border-top: 1px solid var(--border); }
.chat-form textarea { min-height: 48px; max-height: 160px; border-radius: 24px; padding: 12px 18px; }
.chat-locked { border-top: 1px solid var(--border); padding-top: var(--s4); text-align: center; }

/* ---------- Premium / верификация ---------- */
.premium .page-head h1 .ic { color: var(--premium); width: 28px; height: 28px; }
.perks { list-style: none; padding: 0; margin: 0 0 var(--s3); display: grid; gap: var(--s3); }
.perks li { display: flex; gap: var(--s3); align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--s4); }
.perks .ic { color: var(--premium); }
.perks b { display: block; }
.plans { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin: var(--s4) 0; }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s5) var(--s4); text-align: center; }
.plan-accent { border: 2px solid var(--premium); }
.plan h2 { font-size: 16px; } .price { font-size: 26px; font-weight: 800; margin: 0; }
.pose { font-size: 22px; font-weight: 800; color: var(--accent); }
.big-ok { display: grid; place-items: center; } .big-ok .ic { width: 72px; height: 72px; fill: var(--accent); stroke: var(--accent); } .big-ok .ic-tick { stroke: var(--on-accent); fill: none; }

.toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + var(--s4) + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 50;
  background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: var(--r-pill); font-weight: 700; box-shadow: var(--shadow); max-width: calc(100% - 32px); }
.toast a { color: inherit; }
@media (min-width: 900px) { .toast { bottom: var(--s6); left: calc(50% + 120px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
