/*
 * Kihtide (z-index) skaala – hoia uued väärtused nendes vahemikes:
 *   1–3     kaardisisesed elemendid (märgid, nooled, sildid)
 *   20–40   kleepuvad lehesisesed ribad (profiili salvestusriba, kategooriamenüü, rippmenüüd, telefoni tegevusriba)
 *   50      ülemine päis · 60 telefoni alumine menüü
 *   110–120 alumised lehed / modaalaknad (taust + sisu)
 *   150     krüpteerimisvõtme avamise aken · 200 vanusekinnitus
 *   300     pildi suurendus (lightbox) · 350 teavitused (toast) · 400 graafikute vihjed
 * <dialog> aknad on brauseri top layer'is kõige peal; teavitused paigutatakse avatud akna sisse (vt toast()).
 */
:root {
  --bg: #0e0b13;
  --bg-2: #15111c;
  --card: #1a1523;
  --card-2: #221c2e;
  --line: #2d2539;
  --line-2: #3a3049;
  --text: #f4f0fa;
  --muted: #a99fba;
  --dim: #7d7290;
  --accent: #ff3d7f;
  --accent-2: #a855f7;
  --grad: linear-gradient(135deg, #ff3d7f 0%, #c13cf0 100%);
  --gold: #b98600;              /* graafikute jaoks valideeritud */
  --gold-grad: linear-gradient(135deg, #ffd56b 0%, #e9a800 55%, #c27b00 100%);
  --ok: #22c55e;
  --warn: #f59e0b;
  --err: #ef4444;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px -10px rgba(0, 0, 0, .6);
  --content: 1000px;
  --topbar-h: 64px;
  /* Teemast sõltuvad toonid (hele teema allpool) */
  --text-2: #ddd5ea;            /* pikem tekst (tutvustus, tingimused) */
  --ok-fg: #86efac;
  --warn-fg: #fcd34d;
  --err-fg: #fca5a5;
  --violet-fg: #d8b4fe;
  --accent-fg: #ff8fb5;
  --gold-fg: #ffd56b;
  --info-fg: #38bdf8;
  --glass: rgba(14, 11, 19, .82);       /* kleepuv päis */
  --glass-2: rgba(21, 17, 28, .94);     /* alumine riba, kleepuvad paneelid */
  --scrim: rgba(8, 6, 12, .8);          /* modaalide taust */
  --hover: rgba(255, 255, 255, .04);
  --text-gold-grad: var(--gold-grad);   /* kuldne tekst (pealkirjad) */
  color-scheme: dark;
}

/* Hele teema: süsteemi eelistus (kui kasutaja pole ise valinud) või käsitsi valik (data-theme) */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #faf7fc; --bg-2: #f3eef8; --card: #ffffff; --card-2: #f5f0fa; --line: #e7e0f0; --line-2: #d8cee6;
    --text: #1d1626; --muted: #6b5f7c; --dim: #8e839e; --accent: #db2a6b; --gold: #9a6f00;
    --shadow: 0 10px 30px -14px rgba(60, 30, 90, .22);
    --text-2: #3b3149; --ok-fg: #15803d; --warn-fg: #a15c07; --err-fg: #c81e1e; --violet-fg: #7e22ce; --accent-fg: #c2185b;
    --gold-fg: #8a5a00; --info-fg: #0284c7;
    --glass: rgba(255, 255, 255, .85); --glass-2: rgba(255, 255, 255, .94); --scrim: rgba(40, 28, 56, .45); --hover: rgba(40, 20, 70, .04);
    --text-gold-grad: linear-gradient(135deg, #c98a00 0%, #a86d00 60%, #8a5400 100%);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #faf7fc; --bg-2: #f3eef8; --card: #ffffff; --card-2: #f5f0fa; --line: #e7e0f0; --line-2: #d8cee6;
  --text: #1d1626; --muted: #6b5f7c; --dim: #8e839e; --accent: #db2a6b; --gold: #9a6f00;
  --shadow: 0 10px 30px -14px rgba(60, 30, 90, .22);
  --text-2: #3b3149; --ok-fg: #15803d; --warn-fg: #a15c07; --err-fg: #c81e1e; --violet-fg: #7e22ce; --accent-fg: #c2185b;
  --gold-fg: #8a5a00; --info-fg: #0284c7;
  --glass: rgba(255, 255, 255, .85); --glass-2: rgba(255, 255, 255, .94); --scrim: rgba(40, 28, 56, .45); --hover: rgba(40, 20, 70, .04);
  --text-gold-grad: linear-gradient(135deg, #c98a00 0%, #a86d00 60%, #8a5400 100%);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  background-image: radial-gradient(1200px 600px at 50% -200px, rgba(193, 60, 240, .14), transparent 70%);
  background-repeat: no-repeat;
  color: var(--text);
  font: 15px/1.55 "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; }
p a, .link { color: var(--accent); }
p a:hover, .link:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: 28px; font-weight: 800; }
h2 { font-size: 20px; font-weight: 700; }
h3 { font-size: 16px; font-weight: 700; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
[hidden] { display: none !important; }

.ic { width: 20px; height: 20px; flex: none; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--glass);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1352px;
  height: var(--topbar-h);
  margin: 0 auto; padding: 0 16px;
  display: flex; align-items: center; gap: 16px;
}
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 20px; letter-spacing: -.02em; margin-right: auto; }
.logo-mark { width: 26px; height: 26px; fill: var(--accent); stroke: none; filter: drop-shadow(0 0 10px rgba(255, 61, 127, .55)); }
.logo em { font-style: normal; font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 6px; background: var(--grad); }

.mainnav { display: flex; gap: 4px; }
.mainnav a {
  position: relative; display: flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: 14px;
  transition: background .15s, color .15s;
}
.mainnav a:hover { color: var(--text); background: var(--card); }
.mainnav a.active { color: var(--text); background: var(--card-2); }
.badge {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--accent); color: #fff; font-size: 11px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.mainnav .badge { position: absolute; top: 2px; left: 26px; }

.usermenu { position: relative; }
.usermenu summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; border: 1px solid var(--line); }
.usermenu summary::-webkit-details-marker { display: none; }
.usermenu summary:hover { border-color: var(--line-2); }
.um-nick { font-weight: 600; font-size: 14px; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.usermenu-pop {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 6px;
  box-shadow: var(--shadow);
}
.usermenu-pop a, .usermenu-pop button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 10px;
  font: inherit; font-size: 14px; color: var(--text); background: none; border: 0; cursor: pointer; text-align: left;
}
.usermenu-pop a:hover, .usermenu-pop button:hover { background: var(--card-2); }
.usermenu-pop .ic { width: 18px; height: 18px; color: var(--muted); }
.guestnav { display: flex; gap: 8px; }

/* Teema lüliti ja keelevalik (päise lõpus) */
.prefs { order: 10; display: flex; align-items: center; gap: 4px; }
.prefs .icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px; height: 36px; min-width: 36px; padding: 0 8px;
  border-radius: 999px; border: 1px solid var(--line); background: none; color: var(--muted); cursor: pointer; font: inherit; font-size: 12px; font-weight: 700;
  list-style: none; transition: color .15s, border-color .15s;
}
.prefs .icon-btn::-webkit-details-marker { display: none; }
.prefs .icon-btn:hover, .langmenu[open] > .icon-btn { color: var(--text); border-color: var(--line-2); }
.prefs .icon-btn .ic { width: 18px; height: 18px; }
.theme-toggle .ic-moon { display: none; }
:root[data-theme="light"] .theme-toggle .ic-sun { display: none; }
:root[data-theme="light"] .theme-toggle .ic-moon { display: block; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .theme-toggle .ic-sun { display: none; }
  :root:not([data-theme="dark"]) .theme-toggle .ic-moon { display: block; }
}
.langmenu { position: relative; }
.langmenu-pop {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 170px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 6px; box-shadow: var(--shadow);
}
.langmenu-pop a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; font-size: 14px; color: var(--text); }
.langmenu-pop a:hover { background: var(--card-2); }
.langmenu-pop a b { width: 22px; font-size: 11px; color: var(--muted); }
.langmenu-pop a[aria-current] { background: var(--card-2); font-weight: 700; }
.footer-langs { width: 100%; }
.footer-langs a[aria-current] { color: var(--text); font-weight: 700; }

/* ---------- Avatars ---------- */
.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.avatar-sm { width: 32px; height: 32px; }
.avatar-lg { width: 96px; height: 96px; }
.avatar-ph {
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, hsl(var(--h) 70% 45%), hsl(calc(var(--h) + 50) 70% 30%));
}
.avatar-sm.avatar-ph { font-size: 13px; }

/* ---------- Layout ---------- */
.shell {
  flex: 1; width: 100%;
  max-width: calc(var(--content) + 32px);
  margin: 0 auto; padding: 24px 16px 48px;
  display: grid; grid-template-columns: minmax(0, 1fr);
}
.content { min-width: 0; }

/* ---------- Buttons & forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap;
  transition: transform .1s, background .15s, border-color .15s, box-shadow .15s;
}
.btn:active { transform: scale(.97); }
.btn .ic { width: 18px; height: 18px; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 6px 20px -6px rgba(255, 61, 127, .6); }
.btn-primary:hover { box-shadow: 0 8px 26px -6px rgba(255, 61, 127, .8); }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { background: var(--card); }
.btn-soft { background: var(--card-2); color: var(--text); }
.btn-soft:hover { background: var(--line); }
.btn-danger { background: rgba(239, 68, 68, .14); color: var(--err-fg); }
.btn-danger:hover { background: rgba(239, 68, 68, .24); }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn.is-on { background: var(--grad); color: #fff; border-color: transparent; }
.btn-icon { padding: 10px; }

label { display: block; font-weight: 600; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=date], input[type=datetime-local], input[type=search], select, textarea {
  width: 100%; padding: 11px 14px; border-radius: var(--radius-sm);
  background: var(--bg-2); border: 1px solid var(--line); color: var(--text);
  font: inherit; font-size: 15px; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 61, 127, .18); }
textarea { resize: vertical; min-height: 110px; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a99fba' stroke-width='3'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.hint { font-size: 12px; color: var(--dim); margin-top: 4px; }
.err-text { color: var(--err-fg); font-size: 13px; margin-top: 4px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2);
  font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; transition: all .15s; user-select: none;
}
.chip input:checked + span { background: var(--grad); border-color: transparent; color: #fff; }
.chip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(255, 61, 127, .3); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: 14px; color: var(--text); cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--accent); width: 16px; height: 16px; }

/* ---------- Cards & panels ---------- */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.panel + .panel { margin-top: 16px; }
.panel-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.panel-title h2 { margin: 0; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h1 { margin: 0; }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty .ic { width: 40px; height: 40px; color: var(--line-2); margin: 0 auto 12px; display: block; }

.flash { padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; font-weight: 500; border: 1px solid; }
.flash-ok { background: rgba(34, 197, 94, .1); border-color: rgba(34, 197, 94, .3); color: var(--ok-fg); }
.flash-err { background: rgba(239, 68, 68, .1); border-color: rgba(239, 68, 68, .3); color: var(--err-fg); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 10px 14px; font-weight: 600; font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: flex; gap: 6px; align-items: center; }
.tabs a:hover { color: var(--text); }
.tabs a.active { color: var(--text); border-color: var(--accent); }

/* ---------- Profile cards grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
@media (max-width: 480px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.pcard {
  display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.pcard:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: var(--shadow); }
.pcard-img { position: relative; aspect-ratio: 4/5; background: var(--bg-2); }
.pcard-photo { width: 100%; height: 100%; object-fit: cover; }
.pcard-photo.avatar-ph { display: flex; font-size: 56px; border-radius: 0; }
.pcard-img::after { content: ""; position: absolute; inset: 60% 0 0; background: linear-gradient(transparent, rgba(0, 0, 0, .45)); pointer-events: none; }
.dot-online { position: absolute; top: 10px; right: 10px; width: 12px; height: 12px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(14, 11, 19, .8), 0 0 12px var(--ok); z-index: 1; }
.tag-new { position: absolute; top: 10px; left: 10px; padding: 2px 8px; border-radius: 6px; background: var(--grad); font-size: 11px; font-weight: 700; z-index: 1; }
.pcard-body { padding: 10px 12px 12px; }
.pcard-name { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard-meta { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard-extra { color: var(--dim); font-size: 12px; margin-top: 4px; }

/* ---------- Filters ---------- */
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; align-items: end; }
.filters .field { margin: 0; }
.filters-toggles { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; align-items: center; }
.filters-toggles .spacer { flex: 1; }
.results-meta { margin: 18px 0 12px; color: var(--muted); font-size: 14px; }
.pager { display: flex; gap: 12px; align-items: center; justify-content: center; margin-top: 24px; color: var(--muted); font-size: 14px; }
.pager a { padding: 8px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--text); font-weight: 600; }
.pager a:hover { border-color: var(--line-2); }

/* ---------- Landing ---------- */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; padding: 24px 0 40px; }
.hero h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.05; letter-spacing: -.03em; }
.hero h1 span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 17px; color: var(--muted); max-width: 520px; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin: 24px 0; }
.stats { display: flex; gap: 28px; flex-wrap: wrap; }
.stat strong { display: block; font-size: 26px; font-weight: 800; }
.stat span { color: var(--muted); font-size: 13px; }
.stat .live { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); margin-right: 6px; box-shadow: 0 0 10px var(--ok); }
.hero-art { position: relative; aspect-ratio: 1; }
.hero-art .bubble { position: absolute; border-radius: 28px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: var(--shadow); background: var(--card); }
.hero-art .b1 { inset: 0 30% 25% 0; transform: rotate(-4deg); }
.hero-art .b2 { inset: 30% 0 0 35%; transform: rotate(5deg); }
.hero-art .bubble .pcard-photo { width: 100%; height: 100%; object-fit: cover; font-size: 90px; }
.hero-art .chatpill { position: absolute; left: 6%; bottom: 8%; background: var(--card-2); border: 1px solid var(--line-2); padding: 10px 14px; border-radius: 16px 16px 16px 4px; font-size: 14px; box-shadow: var(--shadow); z-index: 2; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 16px 0 40px; }
.feature { padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.feature .ic { width: 28px; height: 28px; color: var(--accent); margin-bottom: 10px; }
.feature h3 { margin-bottom: 4px; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; margin: 8px 0 16px; }
@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; padding-top: 8px; }
  .hero-art { max-width: 360px; width: 100%; margin: 0 auto; }
}

/* ---------- Auth forms ---------- */
.auth { max-width: 520px; margin: 0 auto; }
.auth .panel { padding: 28px; }
.auth h1 { text-align: center; }
.auth .sub { text-align: center; color: var(--muted); margin: -6px 0 24px; }
.auth-foot { text-align: center; margin-top: 18px; color: var(--muted); font-size: 14px; }
.hp { position: absolute; left: -9999px; }

/* ---------- Profile page ---------- */
.profile { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 760px) { .profile { grid-template-columns: 1fr; } }
.gallery-main { position: relative; aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; background: var(--card); border: 1px solid var(--line); }
.gallery-main img, .gallery-main .avatar-ph { width: 100%; height: 100%; object-fit: cover; border-radius: 0; font-size: 120px; display: flex; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; margin-top: 10px; }
.gallery-thumbs button { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: none; aspect-ratio: 4/5; position: relative; }
.gallery-thumbs button.active { border-color: var(--accent); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.locked { position: relative; aspect-ratio: 4/5; border-radius: 10px; overflow: hidden; background: var(--grad); opacity: .35; display: flex; align-items: center; justify-content: center; }
.locked-wrap { position: relative; }
.locked-wrap .ic { position: absolute; inset: 0; margin: auto; width: 22px; height: 22px; }
.p-head { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.p-head h1 { margin: 0; font-size: 30px; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.status.on::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.p-sub { color: var(--muted); display: flex; gap: 14px; flex-wrap: wrap; margin: 8px 0 4px; font-size: 14px; }
.p-sub span { display: inline-flex; gap: 6px; align-items: center; }
.p-sub .ic { width: 16px; height: 16px; }
.p-headline { font-size: 17px; font-weight: 600; margin: 14px 0 0; font-style: italic; }
.p-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 4px; }
.p-actions .btn-primary { flex: 1; min-width: 150px; }
.p-about { white-space: pre-line; color: var(--text-2); }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; font-size: 14px; margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }
.tagrow { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { padding: 5px 12px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.match-banner { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: 12px; background: linear-gradient(135deg, rgba(255, 61, 127, .18), rgba(168, 85, 247, .18)); border: 1px solid rgba(255, 61, 127, .35); font-weight: 600; margin-bottom: 14px; }
.match-banner .ic { color: var(--accent); fill: var(--accent); }
.minor-actions { display: flex; gap: 14px; margin-top: 12px; font-size: 13px; }
.minor-actions button { background: none; border: 0; color: var(--dim); font: inherit; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; padding: 0; }
.minor-actions button:hover { color: var(--text); }
.minor-actions .ic { width: 15px; height: 15px; }

/* ---------- Photo manager ---------- */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.photo-item { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.photo-item .pimg { position: relative; display: block; aspect-ratio: 4/5; }
.photo-item .pimg img { width: 100%; height: 100%; object-fit: cover; }
.photo-item .pflag { position: absolute; top: 8px; left: 8px; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 700; background: rgba(0, 0, 0, .65); display: inline-flex; gap: 4px; align-items: center; }
.photo-item .pflag.main { background: var(--grad); }
.photo-item .pflag .ic { width: 12px; height: 12px; }
.photo-item .pacts { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px; }
.photo-item .pacts form { display: contents; }
.photo-item .pacts button { flex: 1; padding: 6px 8px; font-size: 12px; }
.dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 28px; border: 2px dashed var(--line-2); border-radius: var(--radius); text-align: center; cursor: pointer; color: var(--muted); transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.over { border-color: var(--accent); background: rgba(255, 61, 127, .05); }
.dropzone .ic { width: 32px; height: 32px; color: var(--accent); }
.dropzone input { display: none; }

/* ---------- Lists (likes, visitors, conversations) ---------- */
.list { display: flex; flex-direction: column; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; transition: background .15s; }
.list-item:hover { background: var(--card-2); }
.list-item .li-main { flex: 1; min-width: 0; }
.list-item .li-title { font-weight: 700; display: flex; gap: 8px; align-items: center; }
.list-item .li-sub { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-item .li-time { color: var(--dim); font-size: 12px; white-space: nowrap; }
.list-item.unread .li-sub { color: var(--text); font-weight: 600; }
.av-wrap { position: relative; flex: none; }
.av-wrap .dot-online { top: auto; bottom: 0; right: 0; width: 11px; height: 11px; }

/* ---------- Messages ---------- */
.msg-layout {
  display: grid; grid-template-columns: 320px minmax(0, 1fr);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  height: calc(100vh - var(--topbar-h) - 120px); min-height: 480px;
}
.msg-side { border-right: 1px solid var(--line); overflow-y: auto; padding: 8px; }
.msg-side h2 { padding: 10px 10px 6px; font-size: 18px; }
.msg-side .list-item.active { background: var(--card-2); }
.thread { display: flex; flex-direction: column; min-height: 0; }
.thread-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.thread-head .back { display: none; }
.thread-body { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 6px; }
.thread-empty { margin: auto; text-align: center; color: var(--muted); }
.day-sep { align-self: center; font-size: 12px; color: var(--dim); margin: 10px 0; }
.bubble-msg { max-width: 75%; padding: 9px 14px; border-radius: 18px; background: var(--card-2); align-self: flex-start; white-space: pre-wrap; word-wrap: break-word; overflow-wrap: anywhere; border-bottom-left-radius: 6px; }
.bubble-msg.mine { align-self: flex-end; background: var(--grad); border-bottom-left-radius: 18px; border-bottom-right-radius: 6px; }
.bubble-msg time { display: block; font-size: 11px; opacity: .65; margin-top: 2px; text-align: right; }
.composer { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); align-items: flex-end; }
.composer textarea { min-height: 44px; max-height: 160px; resize: none; border-radius: 22px; padding: 11px 16px; }
.composer .btn { height: 44px; width: 44px; padding: 0; flex: none; }
.composer-err { color: var(--err-fg); font-size: 13px; padding: 0 16px 8px; }
@media (max-width: 760px) {
  .msg-layout { grid-template-columns: 1fr; height: calc(100dvh - var(--topbar-h) - 64px - 40px); border-radius: 12px; }
  .msg-layout.has-thread .msg-side { display: none; }
  .msg-layout:not(.has-thread) .thread { display: none; }
  .msg-side { border-right: 0; }
  .thread-head .back { display: inline-flex; }
}

/* ---------- Admin ---------- */
/* layout */
.shell.shell-wide { max-width: 1352px; grid-template-columns: minmax(0, 1fr); }
.admin { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
.admin-nav { position: sticky; top: calc(var(--topbar-h) + 24px); display: flex; flex-direction: column; gap: 2px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; }
.admin-nav-head { display: flex; gap: 10px; align-items: center; padding: 10px 10px 14px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.admin-nav-head .ic { width: 28px; height: 28px; color: var(--accent); }
.admin-nav-head strong { display: block; font-size: 14px; }
.admin-nav-head span { display: block; font-size: 12px; color: var(--muted); }
.admin-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: 14px; }
.admin-nav a:hover { background: var(--card-2); color: var(--text); }
.admin-nav a.active { background: var(--card-2); color: var(--text); box-shadow: inset 3px 0 0 var(--accent); }
.admin-nav a .ic { width: 18px; height: 18px; }
.admin-nav a .badge { margin-left: auto; }
.admin-main { min-width: 0; }
.admin-main .page-head h1 { font-size: 26px; }
.admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; align-items: start; }
.admin-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.admin-grid .panel + .panel { margin-top: 0; }
.admin-grid > div:not(.panel) { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.admin-grid .panel h3 { margin-bottom: 12px; }
.admin-grid .panel-title h3 { margin: 0; }
@media (max-width: 1100px) { .admin-grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .admin { grid-template-columns: 1fr; }
  .admin-nav { position: static; flex-direction: row; overflow-x: auto; padding: 6px; scrollbar-width: none; }
  .admin-nav-head { display: none; }
  .admin-nav a { white-space: nowrap; padding: 8px 12px; }
  .admin-nav a.active { box-shadow: inset 0 -3px 0 var(--accent); }
  .admin-grid { grid-template-columns: 1fr; }
}

/* KPIs */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { display: flex; flex-direction: column; gap: 2px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; transition: border-color .15s; }
a.kpi:hover { border-color: var(--line-2); }
.kpi > span { color: var(--muted); font-size: 13px; font-weight: 600; display: flex; gap: 6px; align-items: center; }
.kpi > span .ic { width: 16px; height: 16px; }
.kpi strong { font-size: 26px; font-weight: 800; line-height: 1.2; }
.kpi small { color: var(--dim); font-size: 12px; }
.kpi-alert { border-color: rgba(245, 158, 11, .45); background: linear-gradient(180deg, rgba(245, 158, 11, .08), var(--card)); }
.kpi-alert small { color: var(--warn-fg); }
.delta { font-weight: 700; color: var(--muted); }
.delta.up { color: var(--ok-fg); }
.delta.down { color: var(--err-fg); }

/* charts (single series, HTML/CSS) */
.chart { --c: var(--accent); }
.chart-plot { position: relative; height: 180px; margin-left: 40px; }
.chart-grid { position: absolute; left: 0; right: 0; border-top: 1px solid var(--line); }
.chart-grid span { position: absolute; right: calc(100% + 8px); top: -8px; font-size: 11px; color: var(--dim); font-variant-numeric: tabular-nums; white-space: nowrap; }
.chart-bars { position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 2px; }
.chart-col { flex: 1; height: 100%; display: flex; align-items: flex-end; border-radius: 4px 4px 0 0; outline: none; cursor: default; }
.chart-col:hover, .chart-col:focus-visible { background: var(--hover); }
.chart-bar { width: 100%; background: var(--c); border-radius: 4px 4px 0 0; min-height: 0; transition: filter .15s; }
.chart-col:hover .chart-bar, .chart-col:focus-visible .chart-bar { filter: brightness(1.2); }
.chart-x { display: flex; gap: 2px; margin: 6px 0 0 40px; }
.chart-x span { flex: 1; display: flex; justify-content: center; white-space: nowrap; font-size: 11px; color: var(--dim); overflow: visible; width: 0; }
.chart-table { margin-top: 10px; font-size: 13px; }
.chart-table summary { cursor: pointer; color: var(--muted); font-size: 12px; }
.chart-table table { margin-top: 8px; }
.chart-table .table td, .chart-table .table th { padding: 4px 8px; }
.hbars { --c: var(--accent); display: flex; flex-direction: column; gap: 8px; }
.hbar { display: grid; grid-template-columns: 96px 1fr 44px; gap: 10px; align-items: center; font-size: 13px; }
.hbar-label { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbar-track { height: 10px; background: var(--bg-2); border-radius: 0 4px 4px 0; }
.hbar-fill { display: block; height: 100%; background: var(--c); border-radius: 0 4px 4px 0; }
.hbar-val { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.tip { position: fixed; z-index: 400; pointer-events: none; background: var(--card-2); border: 1px solid var(--line-2); color: var(--text); font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 8px; box-shadow: var(--shadow); transform: translate(-50%, calc(-100% - 10px)); white-space: nowrap; }

/* misc admin components */
.ucell { display: inline-flex; gap: 10px; align-items: center; min-width: 0; }
.ucell strong { display: block; font-size: 14px; }
.ucell small { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; }
.ucell:hover strong { color: var(--accent); }
.pill-accent { background: rgba(255, 61, 127, .16); color: var(--accent-fg); }
.pill-info { background: rgba(168, 85, 247, .18); color: var(--violet-fg); }
form.inline { display: inline; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; padding: 12px; }
.toolbar input[type=search] { flex: 1; min-width: 200px; }
.toolbar select { width: auto; }
.pop { position: relative; display: inline-block; }
.pop > summary { list-style: none; }
.pop > summary::-webkit-details-marker { display: none; }
.pop-body { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; width: 280px; background: var(--card); border: 1px solid var(--line-2); border-radius: 14px; padding: 14px; box-shadow: var(--shadow); }
.pop-body .field { margin-bottom: 10px; }
.report-list { display: flex; flex-direction: column; gap: 12px; }
.report-list .panel + .panel { margin-top: 0; }
.report-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.report-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.report-reason { margin: 12px 0 6px; padding: 10px 14px; background: var(--bg-2); border-left: 3px solid var(--warn); border-radius: 0 10px 10px 0; }
.report-meta { margin-bottom: 12px; }
.notice { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 12px; background: var(--card-2); border: 1px solid var(--line-2); font-size: 14px; margin: 10px 0; }
.notice .ic { width: 18px; height: 18px; flex: none; }
.notice-err { background: rgba(239, 68, 68, .1); border-color: rgba(239, 68, 68, .3); color: var(--err-fg); }
.notice-warn { background: rgba(245, 158, 11, .1); border-color: rgba(245, 158, 11, .3); color: var(--warn-fg); }
.convo-legend { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.convo-view { max-height: 60vh; padding: 16px 0 0; }
.bubble-msg.reported { background: linear-gradient(135deg, #b4235a, #7c2bb5); }
.thumbs-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.thumbs-row a { position: relative; aspect-ratio: 4/5; border-radius: 10px; overflow: hidden; }
.thumbs-row img { width: 100%; height: 100%; object-fit: cover; }
.thumbs-row .pflag { position: absolute; top: 6px; left: 6px; padding: 2px 5px; border-radius: 6px; background: rgba(0, 0, 0, .65); display: flex; }
.thumbs-row .pflag .ic { width: 12px; height: 12px; }
.photo-owner { padding: 8px 10px 0; font-size: 13px; }
.photo-grid-sm { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
.loglist { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.loglist > div { padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.loglist > div:last-child { border-bottom: 0; padding-bottom: 0; }
.loglist .li-time { display: block; margin-top: 2px; }
.user-hero { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 16px; }
.user-hero-main { flex: 1; min-width: 0; }
.user-hero .p-head h1 { font-size: 26px; }
.role-form select { width: auto; padding: 6px 34px 6px 12px; font-size: 13px; }
.perms td:not(:first-child), .perms th:not(:first-child) { text-align: center; width: 60px; }
@media (max-width: 600px) { .user-hero { flex-direction: column; } }
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.table tr:hover td { background: var(--hover); }
.table .actions { display: flex; gap: 6px; flex-wrap: wrap; }
.table .actions form { display: inline; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 700; background: var(--card-2); }
.pill-ok { background: rgba(34, 197, 94, .15); color: var(--ok-fg); }
.pill-err { background: rgba(239, 68, 68, .15); color: var(--err-fg); }
.pill-warn { background: rgba(245, 158, 11, .15); color: var(--warn-fg); }
.banner-thumb { max-width: 120px; max-height: 60px; border-radius: 6px; }

/* ---------- Static pages ---------- */
.prose { max-width: 720px; }
.prose h2 { margin-top: 1.6em; }
.prose p, .prose li { color: var(--text-2); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); }
.footer-inner { max-width: calc(var(--content) + 32px); margin: 0 auto; padding: 24px 16px; display: flex; gap: 16px; justify-content: space-between; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
.footer a:hover { color: var(--text); }

/* ---------- Mobile ---------- */
.tabbar { display: none; }
@media (max-width: 900px) {
  .mainnav { display: none; }
  .um-nick { display: none; }
  .usermenu summary { padding: 3px; }
  .is-auth .footer { padding-bottom: 72px; }
  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--glass-2); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; font-weight: 600; color: var(--muted); position: relative; padding: 4px 0; }
  .tabbar a .ic { width: 22px; height: 22px; }
  .tabbar .badge { position: absolute; top: 0; left: calc(50% + 4px); }
  .is-auth .shell { padding-bottom: 88px; }
  .shell { padding-top: 16px; }
  h1 { font-size: 24px; }
  .panel { padding: 16px; }
  .guestnav .btn-ghost { display: none; }
  .topbar-inner { gap: 10px; }
  .prefs .icon-btn { height: 34px; min-width: 34px; padding: 0 6px; }
  .langmenu .icon-btn span { display: none; }
}

/* ---------- Rakendusena paigaldamine (telefon) ---------- */
.pwa-install {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 150;
  display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; border-radius: 18px;
  background: var(--card); border: 1px solid var(--line-2); box-shadow: 0 18px 50px -12px rgba(0, 0, 0, .55);
  animation: pwa-in .35s ease-out;
}
.is-auth .pwa-install { bottom: calc(80px + env(safe-area-inset-bottom)); }
.pwa-install img { border-radius: 12px; flex: none; }
.pwa-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pwa-text strong { font-size: 14px; }
.pwa-text span { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.pwa-share { display: inline-block; padding: 0 4px; border-radius: 4px; background: var(--card-2); color: var(--accent); font-weight: 700; }
.pwa-close { flex: none; width: 28px; height: 28px; border: 0; border-radius: 50%; background: var(--hover); color: var(--muted); cursor: pointer; font-size: 13px; }
@keyframes pwa-in { from { transform: translateY(20px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pwa-install { animation: none; } }

/* ---------- Age gate ---------- */
.agegate { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 16px; background: var(--scrim); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.agegate-box { max-width: 460px; text-align: center; background: var(--card); border: 1px solid var(--line-2); border-radius: 22px; padding: 32px 26px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8); }
.agegate-badge { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%; background: var(--grad); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 24px; box-shadow: 0 0 40px rgba(255, 61, 127, .5); }
.agegate p { color: var(--muted); }
.agegate-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%) translateY(20px); opacity: 0; background: var(--card-2); border: 1px solid var(--line-2); padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow); z-index: 350; transition: all .25s; font-weight: 600; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

dialog.modal { background: var(--card); color: var(--text); border: 1px solid var(--line-2); border-radius: 18px; padding: 22px; width: min(440px, calc(100vw - 32px)); box-shadow: var(--shadow); }
dialog.modal::backdrop { background: rgba(0, 0, 0, .6); backdrop-filter: blur(4px); }
dialog.modal .modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; }

/* ---------- Live chat ---------- */
.seen-mark { align-self: flex-end; font-size: 11px; color: var(--dim); margin-top: -2px; }
.typing-line { display: flex; align-items: center; gap: 8px; padding: 0 16px 6px; font-size: 13px; color: var(--muted); }
.typing-line .dots { display: inline-flex; gap: 3px; padding: 7px 10px; border-radius: 12px; background: var(--card-2); }
.typing-line .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: typing-dot 1.2s infinite ease-in-out; }
.typing-line .dots i:nth-child(2) { animation-delay: .15s; }
.typing-line .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes typing-dot { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }
.bubble-msg.fresh { animation: msg-in .2s ease-out; }
@keyframes msg-in { from { opacity: 0; transform: translateY(6px); } }
.toast a { color: inherit; }
.staff-table { table-layout: fixed; min-width: 760px; }

/* admin users: live search + sortable headers */
.search-field { position: relative; flex: 1; min-width: 200px; }
.search-field .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--dim); pointer-events: none; }
.search-field input { padding-left: 42px; }
.users-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.chip-link.on span { background: var(--grad); color: #fff; border-color: transparent; }
#users-results { transition: opacity .15s; }
#users-results.loading { opacity: .55; }
.th-sort { display: inline-flex; align-items: center; gap: 6px; color: inherit; white-space: nowrap; }
.th-sort:hover { color: var(--text); }
.th-sort.active { color: var(--text); }
.th-arrow { font-size: 10px; opacity: .45; }
.th-sort.active .th-arrow { opacity: 1; color: var(--accent); }

/* ---------- VIP ---------- */
.btn-gold { background: var(--gold-grad); color: #2a1a00; box-shadow: 0 6px 20px -8px rgba(233, 168, 0, .7); }
.btn-gold:hover { box-shadow: 0 8px 26px -6px rgba(233, 168, 0, .9); }
.vip-cta { margin-right: 4px; }
@media (max-width: 900px) { .vip-cta { padding: 6px 10px; font-size: 12px; } }
@media (max-width: 380px) { .vip-cta { display: none; } }
.vip-badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 800; letter-spacing: .04em; vertical-align: middle; white-space: nowrap; }
.vip-badge.vip-vip { background: var(--grad); color: #fff; }
.vip-badge.vip-gold { background: var(--gold-grad); color: #2a1a00; }
.vip-badge.vip-sm { padding: 1px 5px; font-size: 9px; }
.usermenu-pop .vip-badge { margin-left: auto; }
.pcard-gold { border-color: #c99100; box-shadow: 0 0 0 1px rgba(233, 168, 0, .35), 0 10px 30px -14px rgba(233, 168, 0, .5); }
.pcard-gold:hover { border-color: #e9a800; }

/* locked content for free users */
.pcard-locked .pcard-photo { filter: blur(16px) saturate(1.1); transform: scale(1.15); }
.pcard-locked .pcard-img { overflow: hidden; }
.pcard-locked .pcard-meta { color: var(--gold-fg); font-weight: 600; }
.lock-badge { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 1; }
.lock-badge .ic { width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; box-sizing: content-box; }
.vip-upsell { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 20px; margin-bottom: 16px; border-radius: var(--radius); border: 1px solid rgba(233, 168, 0, .45); background: linear-gradient(135deg, rgba(233, 168, 0, .14), rgba(193, 60, 240, .1)); }
.vip-upsell strong { font-size: 17px; }
.vip-upsell p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }

/* pricing page */
.vip-hero { text-align: center; padding: 16px 0 28px; }
.vip-hero-badge { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--gold-grad); color: #2a1a00; font-weight: 800; font-size: 13px; margin-bottom: 14px; }
.vip-hero h1 { font-size: clamp(28px, 4.5vw, 44px); letter-spacing: -.03em; }
.vip-hero h1 span { background: var(--text-gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.vip-hero .lead { color: var(--muted); max-width: 560px; margin: 0 auto; font-size: 16px; }
.vip-status { max-width: 640px; margin: 20px auto 0; padding: 14px 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line-2); text-align: left; font-size: 14px; }
.tiers { display: grid; grid-template-columns: .8fr 1fr 1fr; gap: 16px; align-items: start; margin-bottom: 20px; }
@media (max-width: 900px) { .tiers { grid-template-columns: 1fr; } .tier-free { order: 3; } }
.tier { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 24px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; }
.tier h2 { margin: 0; font-size: 22px; }
.tier p { margin: -6px 0 0; }
.tier-price strong { font-size: 32px; font-weight: 800; }
.tier-vip { border-color: rgba(255, 61, 127, .5); }
.tier-gold { border-color: rgba(233, 168, 0, .6); background: linear-gradient(180deg, rgba(233, 168, 0, .08), var(--card) 40%); box-shadow: 0 20px 50px -24px rgba(233, 168, 0, .45); }
.tier-gold h2 { background: var(--text-gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tier-ribbon { position: absolute; top: -12px; right: 20px; padding: 4px 12px; border-radius: 999px; background: var(--gold-grad); color: #2a1a00; font-size: 12px; font-weight: 800; }
.tier-feats { list-style: none; padding: 0; margin: 4px 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.tier-feats li { display: flex; gap: 8px; align-items: flex-start; }
.tier-feats .ic { width: 18px; height: 18px; color: var(--ok); flex: none; margin-top: 1px; }
.tier-feats .feat-all { font-weight: 700; }
.tier-current { margin-top: auto; text-align: center; padding: 10px; border-radius: 12px; background: var(--card-2); color: var(--muted); font-size: 13px; font-weight: 600; }
.durations { display: flex; flex-direction: column; gap: 8px; }
.duration { position: relative; display: block; margin: 0; cursor: pointer; }
.duration input { position: absolute; opacity: 0; pointer-events: none; }
.duration-box { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--bg-2); transition: border-color .15s, background .15s; }
.duration:hover .duration-box { border-color: var(--dim); }
.duration input:checked + .duration-box { border-color: var(--accent); background: rgba(255, 61, 127, .08); }
.tier-gold .duration input:checked + .duration-box { border-color: #e9a800; background: rgba(233, 168, 0, .1); }
.duration input:focus-visible + .duration-box { box-shadow: 0 0 0 3px rgba(255, 61, 127, .3); }
.duration-label { font-weight: 700; color: var(--text); font-size: 15px; }
.duration-label em { font-style: normal; font-size: 11px; font-weight: 800; padding: 1px 6px; border-radius: 5px; background: var(--grad); color: #fff; margin-left: 4px; }
.tier-gold .duration-label em { background: var(--gold-grad); color: #2a1a00; }
.duration-price { font-weight: 800; font-size: 17px; color: var(--text); text-align: right; }
.duration-sub { grid-column: 1 / -1; font-size: 12px; color: var(--muted); }
.duration-sub b { color: var(--ok-fg); font-weight: 700; }
.consent { font-size: 12px; color: var(--muted); }
.consent input { width: 14px; height: 14px; }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; width: 90px; }
.faq h3 { margin-top: 1.2em; }
.testpay h1 { margin-top: 12px; }

/* account + admin */
.incognito-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); margin-top: 12px; }
.vip-admin { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.vip-admin h3 { margin: 0 0 6px; }
.vip-admin p { margin: 2px 0; }
.vip-grant { display: inline-flex; gap: 6px; }
.vip-grant select { width: auto; padding: 6px 30px 6px 10px; font-size: 13px; background-position: right 10px center; }
.plans-table input[type=text], .plans-table input[type=number], .plans-table select { padding: 6px 10px; font-size: 14px; }
.plans-table select { padding-right: 30px; background-position: right 10px center; }
.plans-table input[type=number] { width: 100px; }
.plans-table input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--accent); }
.plans-table .new-row td { background: var(--hover); }
.faq.prose { max-width: none; }

/* ---------- Avasta (swipe) ---------- */
.swipe-wrap { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.deck { position: relative; isolation: isolate; width: min(420px, 100%); aspect-ratio: 3 / 4.2; max-height: calc(100dvh - var(--topbar-h) - 260px); min-height: 400px; }
.swipe-card { position: absolute; inset: 0; border-radius: 22px; overflow: hidden; background: var(--card); border: 1px solid var(--line-2); box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .8); touch-action: none; user-select: none; cursor: grab; transition: transform .25s ease, opacity .25s; --like: 0; --nope: 0; }
.swipe-card.dragging { transition: none; cursor: grabbing; }
.swipe-card.behind { transform: scale(.95) translateY(14px); pointer-events: none; }
.swipe-card.behind .sc-info, .swipe-card.behind .sc-more { opacity: 0; }
.swipe-card.hidden-card { opacity: 0; }
.swipe-card.fly-right { transform: translate(140%, -40px) rotate(24deg) !important; opacity: 0; pointer-events: none; transition: transform .32s ease-in, opacity .32s; }
.swipe-card.fly-left { transform: translate(-140%, -40px) rotate(-24deg) !important; opacity: 0; pointer-events: none; transition: transform .32s ease-in, opacity .32s; }
.swipe-card.sc-gold { border: 2px solid #e9a800; box-shadow: 0 24px 50px -24px rgba(233, 168, 0, .55); }
.sc-photo { position: absolute; inset: 0; }
.sc-photo img, .sc-photo .sc-ph { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.sc-photo .sc-ph { display: flex; font-size: 140px; border-radius: 0; }
.swipe-card::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(8, 6, 12, .92)); pointer-events: none; }
.sc-bars { position: absolute; top: 10px; left: 12px; right: 12px; display: flex; gap: 4px; z-index: 2; }
.sc-bars span { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .35); }
.sc-bars span.on { background: #fff; }
.sc-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 20px 22px; z-index: 2; pointer-events: none; transition: opacity .2s; color: #fff; } /* foto peal: alati hele tekst */
.sc-info h2 { margin: 0 0 6px; font-size: 26px; font-weight: 800; text-shadow: 0 2px 10px rgba(0, 0, 0, .5); }
.sc-meta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; color: #e6def2; font-size: 14px; }
.sc-meta span { display: inline-flex; gap: 5px; align-items: center; }
.sc-meta .ic { width: 15px; height: 15px; }
.sc-headline { margin: 8px 0; font-style: italic; color: #f1ecf8; font-size: 15px; }
.sc-info .tag { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .2); color: #fff; backdrop-filter: blur(6px); }
.sc-more { position: absolute; right: 14px; bottom: 22px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .16); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; transition: opacity .2s; }
.sc-more:hover { background: rgba(255, 255, 255, .28); }
.sc-more .ic { width: 18px; height: 18px; }
.stamp { position: absolute; top: 36px; z-index: 3; padding: 4px 14px; border: 4px solid; border-radius: 10px; font-size: 30px; font-weight: 900; letter-spacing: .06em; pointer-events: none; }
.stamp-like { left: 22px; color: #4ade80; transform: rotate(-16deg); opacity: var(--like); }
.stamp-nope { right: 22px; color: #f87171; transform: rotate(16deg); opacity: var(--nope); }
.deck-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; padding: 28px; border: 2px dashed var(--line-2); border-radius: 22px; }
.deck-empty > .ic { width: 44px; height: 44px; color: var(--accent); }
.swipe-actions { display: flex; gap: 28px; align-items: center; }
.sw-btn { width: 68px; height: 68px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; background: var(--card); border: 2px solid var(--line-2); transition: transform .12s, box-shadow .15s, background .15s; }
.sw-btn .ic { width: 30px; height: 30px; }
.sw-btn:hover { transform: scale(1.08); }
.sw-btn:active { transform: scale(.94); }
.sw-nope { color: var(--err-fg); border-color: rgba(248, 113, 113, .5); }
.sw-nope:hover { box-shadow: 0 0 24px -4px rgba(248, 113, 113, .6); }
.sw-like { width: 78px; height: 78px; color: #fff; background: var(--grad); border: 0; box-shadow: 0 10px 30px -8px rgba(255, 61, 127, .7); }
.sw-like .ic { width: 34px; height: 34px; fill: currentColor; }
.swipe-hint { text-align: center; max-width: 420px; margin: 0; }
@media (max-width: 900px) { .swipe-hint { display: none; } .page-swipe .shell { padding-bottom: 76px; } .swipe-wrap { gap: 12px; } .deck { max-height: calc(100dvh - var(--topbar-h) - 210px); min-height: 340px; } .sw-btn { width: 60px; height: 60px; } .sw-like { width: 68px; height: 68px; } }

.match-modal { text-align: center; }
.match-modal h2 { font-size: 28px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.match-hearts { display: flex; justify-content: center; margin: 6px 0 14px; }
.match-hearts .match-av, .match-hearts [data-match-av] > * { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; border: 3px solid var(--card); box-shadow: 0 0 0 3px var(--accent); font-size: 36px; display: inline-flex; }
.match-hearts [data-match-av] { margin-left: -18px; }
.match-modal .modal-actions { justify-content: center; flex-wrap: wrap; }

/* new matches strip in messages */
.new-matches { padding: 6px 4px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.nm-title { display: flex; gap: 8px; align-items: center; font-weight: 700; font-size: 14px; padding: 4px 8px 10px; }
.nm-row { display: flex; gap: 12px; overflow-x: auto; padding: 0 6px 4px; scrollbar-width: thin; }
.nm-item { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 64px; flex: none; }
.nm-av { padding: 3px; border-radius: 50%; background: var(--grad); }
.nm-av .avatar { width: 54px; height: 54px; border: 2px solid var(--card); display: flex; }
.nm-item.active .nm-av { background: var(--gold-grad); }
.nm-nick { font-size: 12px; font-weight: 600; max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* swipe extras: discovery settings, undo, photo nudge */
.photo-nudge { width: min(420px, 100%); margin: 0; text-decoration: none; }
.sw-undo { width: 50px; height: 50px; color: var(--warn-fg); border-color: rgba(251, 191, 36, .45); }
.sw-undo .ic { width: 22px; height: 22px; }
.sw-undo:disabled { opacity: .35; cursor: default; transform: none; }
.sw-undo.locked:not(:disabled) { opacity: .6; }

/* landing: steps + match pill */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 8px 0 16px; }
@media (max-width: 700px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 22px 20px 20px; border-radius: var(--radius); background: linear-gradient(160deg, rgba(255, 61, 127, .12), var(--card) 55%); border: 1px solid var(--line); }
.step span { display: inline-flex; width: 32px; height: 32px; border-radius: 50%; align-items: center; justify-content: center; background: var(--grad); font-weight: 800; margin-bottom: 10px; }
.step h3 { font-size: 20px; margin-bottom: 4px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }
.hero-art .matchpill { position: absolute; right: 2%; top: 6%; z-index: 2; display: flex; gap: 6px; align-items: center; padding: 8px 14px; border-radius: 999px; background: var(--grad); font-weight: 800; font-size: 14px; box-shadow: 0 10px 30px -8px rgba(255, 61, 127, .7); transform: rotate(6deg); }
.hero-art .matchpill .ic { width: 16px; height: 16px; fill: currentColor; }
.vip-price-from { margin-top: 14px; color: var(--muted); font-size: 14px; }

/* signup campaign promo */
.campaign-promo { display: flex; gap: 12px; align-items: center; padding: 12px 16px; margin: 0 0 18px; border-radius: 14px; border: 1px solid rgba(233, 168, 0, .5); background: linear-gradient(135deg, rgba(233, 168, 0, .16), rgba(255, 61, 127, .1)); }
.campaign-promo > .ic { width: 28px; height: 28px; color: var(--gold-fg); flex: none; }
.campaign-promo strong { display: block; font-size: 15px; }
.campaign-promo span { font-size: 14px; color: var(--text-2); }
.campaign-promo b { color: var(--gold-fg); }
.campaign-form { max-width: 640px; }

/* ---------- E2E chat: badge, images, consent, reporting, unlock ---------- */
.thread-head .e2e-badge { margin-left: auto; display: inline-flex; gap: 5px; align-items: center; font-size: 12px; font-weight: 600; color: var(--ok-fg); padding: 4px 10px; border-radius: 999px; background: rgba(34, 197, 94, .1); white-space: nowrap; }
.thread-head .e2e-badge .ic { width: 13px; height: 13px; }
.bubble-msg { position: relative; }
.bubble-msg.msg-fail .msg-text { opacity: .7; font-style: italic; }
.bubble-msg.bubble-img { padding: 4px; }
.bubble-msg.bubble-img img { display: block; max-width: min(280px, 60vw); max-height: 360px; border-radius: 14px; cursor: zoom-in; }
.bubble-msg.bubble-img time { padding: 0 8px 2px; }
.msg-flag { position: absolute; top: 50%; right: -34px; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--card); color: var(--muted); font-size: 13px; cursor: pointer; opacity: 0; transition: opacity .15s; }
.bubble-msg:hover .msg-flag, .bubble-msg.show-actions .msg-flag, .msg-flag:focus-visible { opacity: 1; }
.msg-flag:hover { color: var(--err-fg); border-color: rgba(239, 68, 68, .5); }
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(0, 0, 0, .88); display: flex; align-items: center; justify-content: center; padding: 16px; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 10px; }
.consent-bar { display: flex; align-items: center; gap: 10px; margin: 0 12px; padding: 8px 12px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.consent-bar > .ic { width: 16px; height: 16px; flex: none; }
.consent-bar .consent-text { flex: 1; }
.consent-bar.on { color: var(--ok-fg); border-color: rgba(34, 197, 94, .3); }
.consent-bar.ask { color: var(--warn-fg); border-color: rgba(245, 158, 11, .4); }
.composer .img-btn { height: 44px; width: 44px; padding: 0; flex: none; margin: 0; cursor: pointer; }
.composer .img-btn.disabled { opacity: .4; }
.composer .img-btn.busy { opacity: .5; pointer-events: none; animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .2; } }
.composer-note { display: flex; gap: 8px; align-items: center; padding: 14px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.composer-note .ic { width: 16px; height: 16px; flex: none; }
.scope-list { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); }
.scope-list .check input { accent-color: var(--accent); }
.e2e-unlock { position: fixed; inset: 0; z-index: 150; display: flex; align-items: center; justify-content: center; padding: 16px; background: var(--scrim); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.e2e-unlock form { max-width: 420px; text-align: center; }
.e2e-unlock .e2e-unlock-ic { width: 40px; height: 40px; color: var(--ok-fg); margin: 0 auto 8px; display: block; }
@media (max-width: 760px) { .msg-flag { right: auto; left: calc(100% + 6px); } .bubble-msg:not(.mine) { margin-right: 36px; } }
.convo-view .bubble-msg.anchor { outline: 2px solid var(--warn); outline-offset: 2px; }
.convo-view .bubble-msg.bubble-img img { max-width: 280px; border-radius: 12px; display: block; }
.ic-inline { width: 13px; height: 13px; vertical-align: -2px; }

/* Admin: seaded (accordion, makseteenused, lüliti) */
.acc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 16px; }
.acc > summary { display: flex; align-items: center; gap: 12px; padding: 16px 18px; cursor: pointer; list-style: none; }
.acc > summary::-webkit-details-marker { display: none; }
.acc > summary::after { content: ""; width: 8px; height: 8px; margin-left: 4px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .15s; flex: none; }
.acc[open] > summary::after { transform: rotate(-135deg); }
.acc > summary > .ic { width: 22px; height: 22px; color: var(--accent); flex: none; }
.acc > summary > div { flex: 1; min-width: 0; }
.acc > summary strong { display: block; font-size: 16px; }
.acc > summary span:not(.pill) { display: block; font-size: 13px; color: var(--muted); }
.acc > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: var(--radius); }
.acc-body { padding: 0 18px 18px; display: grid; gap: 14px; }
.acc-body > .notice { margin: 0; }
.pay-provider { border: 1px solid var(--line-2); border-radius: 14px; padding: 0; background: var(--card-2); }
.pay-provider.is-active { border-color: var(--ok); box-shadow: 0 0 0 1px var(--ok) inset; }
.pp-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px; cursor: pointer; list-style: none; border-radius: 14px; }
.pp-head::-webkit-details-marker { display: none; }
.pp-head > div { flex: 1; min-width: 0; }
.pp-head::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .15s; flex: none; margin: 0 4px 4px 0; }
.pay-provider[open] > .pp-head::after { transform: rotate(-135deg); margin: 4px 4px 0 0; }
.pp-head:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.pp-toggle { cursor: default; }
.pp-form { padding: 0 16px 16px; border-top: 1px solid var(--line-2); padding-top: 14px; }
.pp-head h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 4px; font-size: 17px; }
.pp-head p { margin: 0; }
.pp-form .actions { margin-top: 12px; }
.pp-form input[type=password], .pp-form input[type=text] { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.pp-webhook { margin-top: 4px; }
.pp-webhook label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 4px; }
.pp-webhook code { display: block; padding: 8px 10px; border-radius: 8px; background: var(--bg, #0e0b13); border: 1px solid var(--line); font-size: 12.5px; overflow-wrap: anywhere; user-select: all; }
.inline-check { display: inline-flex; margin-left: 8px; font-size: 12px; }
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; font-size: 14px; white-space: nowrap; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-track { position: relative; width: 42px; height: 24px; border-radius: 999px; background: var(--line-2); transition: background .15s; flex: none; }
.switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch input:checked + .switch-track { background: var(--ok); }
.switch input:checked + .switch-track::after { transform: translateX(18px); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--accent); outline-offset: 2px; }
.switch input:disabled ~ * { opacity: .45; cursor: not-allowed; }
@media (max-width: 560px) {
  .pp-head { flex-direction: column; }
  .acc > summary { flex-wrap: wrap; }
}
.pay-provider .pill:not([class*=pill-]) { background: var(--line-2); }

/* ---------- Avasta: arvutis 3 veergu (seis + filtrid | pakk | profiil), telefonis kompaktne ----------
   Veergudel pole oma kerimisriba: kõik mahub ühele ekraanile, madalal ekraanil keritakse tervet lehte. */
.sw-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr) 320px; grid-template-areas: "left deck right"; gap: 24px; align-items: start; }
.sw-left { grid-area: left; }
.sw-right { grid-area: right; }
.sw-layout > .swipe-wrap { grid-area: deck; }
.sw-side { display: grid; gap: 14px; }
.sw-panel { padding: 16px 18px; }
.sw-panel h2 { display: flex; align-items: center; gap: 8px; font-size: 15px; margin: 0 0 12px; }
.sw-panel h2 .ic { width: 17px; height: 17px; color: var(--accent); }
.sw-panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.sw-panel-head .badge { position: static; }
.sw-panel .field { margin-bottom: 14px; }
.sw-range { display: flex; gap: 8px; align-items: center; }
.sw-range input { padding: 8px 10px; }
.chips-sm { gap: 6px; }
.chips-sm .chip span { padding: 5px 11px; font-size: 13px; }
.sw-checks { display: grid; gap: 8px; }
.sw-stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.sw-stat-grid > * { background: var(--card-2); border-radius: 12px; padding: 10px 6px; text-align: center; color: inherit; }
.sw-stat-grid a:hover { background: var(--line); }
.sw-stat-grid strong { display: block; font-size: 19px; }
.sw-stat-grid span { display: block; font-size: 11px; color: var(--muted); line-height: 1.3; }
.sw-filter-sum .tagrow { gap: 6px; }
.sw-filter-sum .tag { padding: 3px 10px; font-size: 12px; color: var(--muted); }
.sw-filter-sum .tag-on { color: var(--text); border-color: rgba(255, 61, 127, .5); background: rgba(255, 61, 127, .1); }
.sw-remaining { margin: 10px 0 12px; }
.sw-filter-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.sw-filter-actions form { display: contents; }
.sw-social { display: grid; gap: 12px; }
.sw-social h2 { margin: 0; }
.sw-waiting { display: flex; gap: 12px; align-items: center; color: inherit; padding: 10px 12px; margin: -4px -6px 0; border-radius: 12px; background: rgba(255, 61, 127, .08); }
.sw-waiting:hover { background: rgba(255, 61, 127, .14); }
.sw-waiting strong { display: block; font-size: 13px; margin-bottom: 2px; }
.sw-waiting .small { font-size: 12px; }
.sw-waiting-avs { display: flex; flex: none; }
.sw-waiting-avs .avatar { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--card); object-fit: cover; display: inline-flex; font-size: 13px; }
.sw-waiting-avs .avatar + .avatar { margin-left: -12px; }
.sw-waiting-avs.blurred .avatar { filter: blur(5px); }
.sw-matches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 6px; }
.sw-matches a { display: flex; flex-direction: column; align-items: center; gap: 4px; color: inherit; min-width: 0; }
.sw-matches .nm-av .avatar { width: 46px; height: 46px; border: 2px solid var(--card); display: flex; border-radius: 50%; object-fit: cover; }
.sw-matches .nm-nick { max-width: 100%; font-size: 11px; }

.swipe-top { width: min(440px, 100%); display: flex; align-items: center; gap: 10px; }
.sw-summary { flex: 1; }
.sw-filter-btn .badge { position: static; margin-left: 2px; }
.sw-waiting-btn .ic { color: var(--accent); fill: currentColor; }
.page-swipe .deck { width: min(440px, 100%); }
.swipe-hint kbd { display: inline-block; padding: 1px 6px; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 5px; font: inherit; font-size: 12px; }

.sw-details [data-details-body] { display: grid; gap: 14px; }
.sd-head h2 { font-size: 21px; margin: 0 0 6px; display: block; }
.sd-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--muted); }
.sd-meta span { display: inline-flex; align-items: center; gap: 5px; }
.sd-meta .ic { width: 14px; height: 14px; }
.sd-likes { display: flex; gap: 8px; align-items: center; margin-top: 10px; padding: 8px 12px; border-radius: 10px; background: rgba(255, 61, 127, .12); color: var(--accent-fg); font-size: 13px; font-weight: 600; }
.sd-likes .ic { width: 16px; height: 16px; fill: currentColor; flex: none; }
.sd-headline { margin: 0; font-style: italic; color: var(--text); }
.sd-sec h3 { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 8px; }
.sd-about { margin: 0; font-size: 14px; line-height: 1.55; color: var(--text); overflow-wrap: anywhere; }
.sd-about.clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.sd-more { background: none; border: 0; padding: 4px 0 0; cursor: pointer; font: inherit; font-size: 13px; }
.sw-details .facts { gap: 6px 16px; font-size: 13px; }
.tag-common { border-color: rgba(34, 197, 94, .5); color: var(--ok-fg); }
.sw-details .tagrow .tag { padding: 4px 10px; font-size: 12px; }
.sd-thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.sd-thumbs button { padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; aspect-ratio: 1; cursor: pointer; background: var(--card-2); }
.sd-thumbs button.on { border-color: var(--accent); }
.sd-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sheet-close { display: none; }

/* Alumine leht / modaalaken (filtrid kõigil ekraanidel, profiili info telefonis) */
.sw-sheet { display: none; }
.sw-sheet.open, .sw-details.open { display: block; position: fixed; z-index: 120; overflow-y: auto; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); }
.sw-sheet.open { left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(520px, calc(100% - 32px)); max-height: 88dvh; border-radius: 22px; padding: 22px; animation: modal-in .18s ease-out; }
.sw-sheet .sheet-close, .sw-details.open .sheet-close { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--card-2); color: var(--text); cursor: pointer; }
.sheet-close .ic { width: 18px; height: 18px; }
.sw-sheet .sw-filter-actions { display: grid; grid-template-columns: 1fr auto; }
.sw-sheet .sw-remaining { text-align: center; margin: 10px 0 0; }
.sheet-backdrop { position: fixed; inset: 0; z-index: 110; background: rgba(8, 6, 12, .6); backdrop-filter: blur(3px); }
body.sheet-open { overflow: hidden; }
@keyframes modal-in { from { transform: translate(-50%, -46%); opacity: 0; } }
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } }

@media (min-width: 1181px) { .swipe-top { display: none; } .sc-more { display: none; } }
/* Keskmine ekraan: pakk vasakul, profiil + muu info paremal üksteise all */
@media (max-width: 1180px) {
  .sw-layout { grid-template-columns: minmax(0, 1fr) 320px; grid-template-areas: "deck right" "deck left"; row-gap: 14px; }
  .sw-filter-sum { display: none; }
}
@media (min-width: 901px) and (max-width: 1180px) { .sc-more { display: none; } .sw-waiting-btn { display: none; } }
/* Telefon: ainult pakk; filtrid ja profiil avanevad alumise lehena */
@media (max-width: 900px) {
  .sw-layout { display: block; }
  .sw-left { display: none; }
  .sw-right { display: contents; }
  .sw-details { display: none; }
  .sw-summary { text-align: right; }
  .sw-sheet.open, .sw-details.open {
    left: 0; right: 0; top: auto; bottom: 0; transform: none; width: 100%; max-height: 86dvh;
    border-radius: 22px 22px 0 0; padding: 20px 18px calc(20px + env(safe-area-inset-bottom)); animation: sheet-up .2s ease-out;
  }
  .sw-details > .sheet-close { position: absolute; top: 14px; right: 14px; }
  .page-swipe .deck { max-height: calc(100dvh - var(--topbar-h) - 250px); }
  .page-swipe .photo-nudge { padding: 8px 12px; font-size: 13px; margin: 0; width: min(440px, 100%); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
  .page-swipe .photo-nudge .ic { display: none; }
}

/* Meeldimised: uued meeldimised koos vastamisnuppudega */
.like-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 18px 14px; }
.like-item { display: flex; flex-direction: column; gap: 10px; transition: transform .28s ease-in, opacity .28s; }
.like-item .pcard { flex: 1; }
.like-actions { display: flex; justify-content: center; gap: 16px; }
.like-actions .sw-btn { width: 50px; height: 50px; }
.like-actions .sw-btn .ic { width: 22px; height: 22px; }
.like-actions .sw-like { width: 50px; height: 50px; }
.like-item.busy .like-actions { opacity: .5; pointer-events: none; }
.like-item.gone-like { transform: translateX(40px) rotate(6deg); opacity: 0; }
.like-item.gone-pass { transform: translateX(-40px) rotate(-6deg); opacity: 0; }
@media (max-width: 560px) {
  .like-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; }
  .like-actions { gap: 12px; }
  .like-actions .sw-btn, .like-actions .sw-like { width: 44px; height: 44px; }
}

/* Kahe otsaga vanuseliugur (kaks kattuvat range-sisendit) */
.range-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.range-head label { margin: 0; }
.range-head output { font-weight: 700; font-size: 14px; }
.range-slider { position: relative; height: 32px; }
.range-track { position: absolute; left: 11px; right: 11px; top: 50%; height: 6px; margin-top: -3px; border-radius: 3px; background: var(--line-2); }
.range-fill { position: absolute; top: 0; bottom: 0; border-radius: 3px; background: var(--grad); }
.range-slider input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; background: none; border: 0; pointer-events: none; -webkit-appearance: none; appearance: none; z-index: 2; }
.range-slider input[type=range]:focus { outline: none; box-shadow: none; }
.range-slider input[type=range]::-webkit-slider-runnable-track { background: none; border: 0; height: 32px; }
.range-slider input[type=range]::-moz-range-track { background: none; border: 0; }
.range-slider input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 22px; height: 22px; margin-top: 5px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); box-shadow: 0 2px 8px rgba(0, 0, 0, .4); cursor: grab; }
.range-slider input[type=range]::-moz-range-thumb { pointer-events: auto; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); box-shadow: 0 2px 8px rgba(0, 0, 0, .4); cursor: grab; }
.range-slider input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(255, 61, 127, .35); }
.range-slider input[type=range]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px rgba(255, 61, 127, .35); }

/* Profiiliandmed siltidena ja lisafiltrite rühmad */
.facts-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fact { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; }
.tag-more { color: var(--muted); }
.sd-common { color: var(--ok-fg); text-transform: none; letter-spacing: 0; }
.ff-groups { border-top: 1px solid var(--line); margin: 4px 0 14px; padding-top: 12px; }
.ff-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 6px; }
.ff-group { border-bottom: 1px solid var(--line); }
.ff-group > summary { display: flex; align-items: center; gap: 8px; padding: 11px 2px; cursor: pointer; list-style: none; font-weight: 600; font-size: 14px; }
.ff-group > summary::-webkit-details-marker { display: none; }
.ff-group > summary::after { content: ""; margin-left: auto; width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .15s; }
.ff-group[open] > summary::after { transform: rotate(-135deg); }
.ff-group > summary .badge { position: static; }
.ff-body { padding: 2px 2px 8px; }
.ff-body .field { margin-bottom: 12px; }
.ff-body .field > label { font-size: 13px; }
.ff-groups .hint { margin-top: 8px; }

.facts-group { margin: 18px 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.browse-more { margin: 4px 0 12px; }
.browse-more > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; padding: 6px 0; }
.browse-more > summary::-webkit-details-marker { display: none; }
.browse-more > summary .badge { position: static; }
.browse-more-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 24px; align-items: start; }
.tag-sm { padding: 2px 8px; font-size: 12px; margin-left: 4px; }
.profile .facts { grid-template-columns: 150px 1fr; }
.sw-sheet .sw-filter-actions { position: sticky; bottom: -22px; z-index: 2; margin: 0 -22px -22px; padding: 12px 22px 22px; background: var(--card); border-top: 1px solid var(--line); }
.sw-sheet .sw-remaining { order: 3; grid-column: 1 / -1; }
@media (max-width: 900px) { .sw-sheet .sw-filter-actions { bottom: calc(-20px - env(safe-area-inset-bottom)); margin: 0 -18px; padding: 12px 18px calc(16px + env(safe-area-inset-bottom)); } }

/* ---------- Profiili muutmine: kategooriad ---------- */
.pf-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; align-items: start; }
.pf-nav { position: sticky; top: calc(var(--topbar-h) + 20px); display: grid; gap: 12px; }
.pf-progress { display: grid; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.pf-progress strong { font-size: 14px; }
.pf-bar { height: 8px; border-radius: 4px; background: var(--card-2); overflow: hidden; }
.pf-bar span { display: block; height: 100%; border-radius: 4px; background: var(--grad); }
.pf-photo-cta { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 10px; background: rgba(245, 158, 11, .1); color: var(--warn-fg); font-size: 13px; font-weight: 600; }
.pf-photo-cta .ic { width: 16px; height: 16px; flex: none; }
.pf-menu { display: flex; flex-direction: column; gap: 2px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; }
.pf-menu a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: 14px; scroll-margin: 8px; }
.pf-menu a:hover { background: var(--card-2); color: var(--text); }
.pf-menu a.active { background: var(--card-2); color: var(--text); box-shadow: inset 3px 0 0 var(--accent); }
.pf-menu a .ic { width: 17px; height: 17px; flex: none; }
.pf-menu em { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 700; color: var(--muted); background: var(--card-2); border-radius: 999px; padding: 2px 7px; }
.pf-menu em.done { color: var(--ok-fg); background: rgba(34, 197, 94, .14); }
.pf-form { display: grid; gap: 16px; min-width: 0; }
.pf-section { scroll-margin-top: calc(var(--topbar-h) + 16px); }
.pf-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 18px; }
.pf-head h2 { font-size: 18px; margin: 0 0 2px; }
.pf-head p { margin: 0; font-size: 13px; color: var(--muted); }
.pf-ic { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: rgba(255, 61, 127, .12); color: var(--accent); flex: none; }
.pf-ic .ic { width: 19px; height: 19px; }
.pf-section .field:last-child { margin-bottom: 0; }
.pf-section .field > label .muted { font-weight: 500; }
.pf-hint { margin: -2px 0 8px; }
.pf-narrow { grid-template-columns: repeat(2, minmax(0, 180px)); }
.pf-savebar { position: sticky; bottom: 16px; z-index: 20; display: flex; align-items: center; justify-content: flex-end; gap: 14px; padding: 12px 14px; border-radius: 16px;
  background: var(--glass-2); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line-2); box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .6); }
.pf-savebar [data-pf-dirty] { visibility: hidden; color: var(--warn-fg); }
.pf-savebar.dirty [data-pf-dirty] { visibility: visible; }
.pf-savebar.dirty { border-color: rgba(255, 61, 127, .5); }
@media (max-width: 860px) {
  .pf-layout { display: block; }
  .pf-nav { position: sticky; top: var(--topbar-h); z-index: 30; margin: 0 -16px 14px; padding: 8px 16px; gap: 8px; background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
  .pf-progress { padding: 0; border: 0; background: none; grid-template-columns: auto 1fr; align-items: center; gap: 4px 10px; }
  .pf-progress > .muted, .pf-photo-cta { display: none; }
  .pf-progress strong { font-size: 12px; }
  .pf-menu { flex-direction: row; overflow-x: auto; padding: 0; border: 0; background: none; scrollbar-width: none; }
  .pf-menu::-webkit-scrollbar { display: none; }
  .pf-menu a { white-space: nowrap; padding: 6px 10px; font-size: 13px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; }
  .pf-menu a.active { box-shadow: none; border-color: var(--accent); }
  .pf-menu a .ic { display: none; }
  .pf-section { scroll-margin-top: calc(var(--topbar-h) + 96px); }
  .pf-savebar { bottom: 80px; justify-content: space-between; }
}

/* Otsinguga valikunupud (keeled, huvid) */
.picker { display: grid; gap: 10px; }
.picker-search { display: flex; gap: 8px; align-items: center; position: relative; }
.picker-search > .ic { position: absolute; left: 12px; width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.picker-search input { padding-left: 36px; flex: 1; min-width: 0; }
.picker-search .btn { flex: none; max-width: 55%; overflow: hidden; text-overflow: ellipsis; }
.picker-list .chip span small { margin-left: 6px; font-size: 11px; font-weight: 700; opacity: .65; }
.picker-list .chip-new span { border-style: dashed; }
.picker-more, .picker-empty { margin-top: -2px; }
.admin-search { display: flex; gap: 8px; margin: 0 0 14px; max-width: 520px; }
.admin-search input { flex: 1; min-width: 0; }
.confirm-modal { max-width: 440px; }
.confirm-modal h2 { margin-top: 0; font-size: 20px; }
.confirm-modal .modal-actions { justify-content: flex-end; }

/* Suletud vestlus (eemaldatud sobivus / blokeering) */
.chat-closed { display: flex; gap: 12px; align-items: center; margin: 10px 14px 14px; padding: 12px 14px; border-radius: 14px; background: var(--card-2); border: 1px solid var(--line-2); }
.chat-closed > .ic { width: 22px; height: 22px; flex: none; color: var(--muted); }
.chat-closed > div { flex: 1; min-width: 0; display: grid; gap: 2px; }
.chat-closed strong { font-size: 14px; }
.li-closed { display: inline-flex; margin-left: 6px; color: var(--muted); }
.li-closed .ic { width: 13px; height: 13px; }

/* Ülevaatus */
.review-queue { margin-bottom: 22px; }
.review-queue h2 { display: flex; align-items: center; gap: 8px; font-size: 17px; margin: 0 0 4px; }
.review-queue h2 .ic { width: 19px; height: 19px; color: var(--warn-fg); }
.review-queue h2 .badge { position: static; }
.report-review { border-color: rgba(245, 158, 11, .4); }
.review-page .panel { max-width: 560px; }
.review-icon { width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: rgba(245, 158, 11, .12); color: var(--warn-fg); margin-bottom: 12px; }
.review-icon .ic { width: 28px; height: 28px; }
.review-reason { padding: 14px 16px; border-radius: 14px; background: rgba(245, 158, 11, .08); border: 1px solid rgba(245, 158, 11, .3); margin: 16px 0; }
.review-reason p { margin: 6px 0 0; }
.review-page h2 { font-size: 16px; margin: 18px 0 8px; }
.review-list { margin: 0 0 14px; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; color: var(--muted); }

/* Vestlustaotlus */
.chat-request { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 10px 14px 14px; padding: 14px; border-radius: 14px; background: rgba(255, 61, 127, .08); border: 1px solid rgba(255, 61, 127, .35); }
.chat-request > .ic { width: 22px; height: 22px; flex: none; color: var(--accent); fill: currentColor; }
.chat-request > div:not(.chat-request-actions) { flex: 1 1 240px; min-width: 0; display: grid; gap: 2px; }
.chat-request strong { font-size: 14px; }
.chat-request-actions { display: flex; gap: 8px; margin-left: auto; }
.chat-pending > .ic { color: var(--accent); }
.li-req { margin-left: 6px; font-size: 10.5px; padding: 1px 6px; }
.msg-layout.loading .thread { opacity: .55; transition: opacity .15s; pointer-events: none; }

/* Sõnumi olek: saadetud ✓ · kohale toimetatud ✓✓ · loetud ✓✓ (sinine) */
.msg-st { display: inline-flex; line-height: 0; }
.msg-st svg { height: 11px; width: auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.msg-st.st-sent svg { width: 13px; }
.msg-st.st-delivered svg, .msg-st.st-read svg { width: 17px; }
.msg-meta { display: flex; align-items: center; gap: 5px; align-self: flex-start; margin: -3px 6px 4px; font-size: 11px; color: var(--dim); line-height: 1; }
.msg-meta.mine { align-self: flex-end; }
.msg-st.st-sent, .msg-st.st-delivered { color: var(--muted); }
.msg-st.st-read { color: var(--info-fg); }
.msg-st.st-read svg { stroke-width: 2.1; }

/* Vestluste nimekiri: otsing ja vahelehed */
.convo-tools { display: grid; gap: 8px; padding: 0 6px 8px; }
.convo-search { position: relative; display: block; }
.convo-search .ic { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--muted); pointer-events: none; }
.convo-search input { padding: 8px 12px 8px 34px; font-size: 14px; }
.convo-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding-top: 4px; }
.convo-tabs button { position: relative; padding: 7px 2px; border-radius: 999px; border: 1px solid var(--line-2); background: none; color: var(--muted); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.convo-tabs button:hover { color: var(--text); }
.convo-tabs button.on { background: var(--grad); border-color: transparent; color: #fff; }
.convo-tabs .badge { position: absolute; top: -6px; right: -2px; min-width: 16px; height: 16px; font-size: 10px; padding: 0 4px; box-shadow: 0 0 0 2px var(--card); }
.convo-filter-empty { padding: 24px 12px; font-size: 14px; }
.list-item[hidden] { display: none; }

/* Süsteemiteated ja vestluse seaded */
.sys-msg { align-self: center; max-width: 85%; margin: 6px 0; padding: 6px 12px; border-radius: 12px; background: var(--card-2); border: 1px dashed var(--line-2); color: var(--muted); font-size: 12.5px; text-align: center; line-height: 1.45; }
.sys-msg time { margin-left: 6px; font-size: 11px; color: var(--dim); white-space: nowrap; }
.sys-msg.fresh { animation: msg-in .2s ease-out; }
.retention-chip { font-size: 12px; font-weight: 600; color: var(--muted); padding: 4px 9px; border-radius: 999px; background: var(--card-2); white-space: nowrap; }
.chat-settings h2 { margin-top: 0; }
@media (max-width: 760px) { .retention-chip { display: none; } }

/* ---------- Profiilileht (uus kujundus) ---------- */
.profile2 { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 24px; align-items: start; max-width: 1060px; margin: 0 auto; }
.pf2-media { position: sticky; top: calc(var(--topbar-h) + 20px); }
.pf2-gallery .gallery-main { aspect-ratio: 4 / 5; }
.gal-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; display: flex; align-items: center; justify-content: center; background: rgba(8, 6, 12, .55); color: #fff; cursor: pointer; opacity: 0; transition: opacity .15s; backdrop-filter: blur(6px); }
.gal-nav .ic { width: 20px; height: 20px; }
.gal-nav.prev { left: 10px; }
.gal-nav.next { right: 10px; }
.gal-nav.next .ic { transform: scaleX(-1); }
.gallery-main:hover .gal-nav, .gal-nav:focus-visible { opacity: 1; }
.gal-count, .gal-online { position: absolute; top: 12px; padding: 3px 9px; border-radius: 999px; background: rgba(8, 6, 12, .6); color: #fff; font-size: 12px; font-weight: 600; backdrop-filter: blur(6px); }
.gal-count { right: 12px; }
.gal-online { left: 12px; color: #86efac; } /* foto peal */
.pf2-locked-note { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.pf2-main { display: grid; gap: 14px; min-width: 0; }
.pf2-head { padding: 22px; }
.pf2-head .match-banner { margin-bottom: 14px; }
.pf2-self { background: rgba(168, 85, 247, .14); color: var(--violet-fg); }
.pf2-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pf2-title h1 { margin: 0; font-size: 32px; line-height: 1.1; }
.pf2-title h1 span { font-weight: 500; color: var(--muted); }
.pf2-more { margin-left: auto; }
.pf2-more > summary { font-size: 20px; line-height: 1; letter-spacing: 1px; }
.pf2-more .pop-body { left: auto; right: 0; width: 200px; padding: 6px; }
.pf2-menu button, .pf2-menu a { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 8px; background: none; color: var(--text); font: inherit; font-size: 14px; cursor: pointer; text-align: left; }
.pf2-menu button:hover, .pf2-menu a:hover { background: var(--card-2); }
.pf2-menu .ic { width: 16px; height: 16px; color: var(--muted); }
.pf2-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; color: var(--muted); font-size: 14px; }
.pf2-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.pf2-meta .ic { width: 15px; height: 15px; }
.pf2-headline { margin: 14px 0 0; font-size: 17px; font-weight: 600; font-style: italic; }
.pf2-actions { margin: 18px 0 0; }
.pf2-card { padding: 18px 20px; }
.pf2-card h3 { margin: 0 0 12px; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.pf2-card h3.pf2-sub { margin-top: 18px; }
.pf2-about { white-space: pre-line; line-height: 1.6; }
.pf2-about.clamp { display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.pf2-common { padding: 16px 18px; border-radius: var(--radius); background: linear-gradient(135deg, rgba(255, 61, 127, .12), rgba(168, 85, 247, .12)); border: 1px solid rgba(255, 61, 127, .3); }
.pf2-common h3 { margin: 0 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-fg); }
.pf2-common-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.pf2-common-item { display: flex; gap: 10px; align-items: flex-start; }
.pf2-common-item .ic { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 1px; }
.pf2-common-item strong { display: block; font-size: 14px; }
.pf2-common-item span { display: block; font-size: 12.5px; color: var(--muted); }
.pf2-all > summary { display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; }
.pf2-all > summary::-webkit-details-marker { display: none; }
.pf2-all > summary h3 { margin: 0; }
.pf2-all > summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .15s; }
.pf2-all[open] > summary::after { transform: rotate(-135deg); }
.pf2-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 16px; }
.pf2-group { background: var(--card-2); border-radius: 12px; padding: 12px 14px; }
.pf2-group h4 { margin: 0 0 8px; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.pf2-group dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0; font-size: 13.5px; }
.pf2-group dt { color: var(--muted); }
.pf2-group dd { margin: 0; font-weight: 600; text-align: right; }
.pf2-joined { margin: 12px 0 0; }
/* Tahvel: kaks veergu kitsama pildiga */
@media (max-width: 1060px) and (min-width: 701px) {
  .profile2 { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 18px; }
  .pf2-title h1 { font-size: 26px; }
}
@media (max-width: 860px) and (min-width: 701px) {
  .pf2-head .pf2-actions { flex-wrap: wrap; }
}
@media (max-width: 700px) {
  .profile2 { grid-template-columns: 1fr; gap: 14px; }
  .pf2-media { position: static; }
  .pf2-gallery .gallery-main { aspect-ratio: auto; height: min(68vh, 125vw); }
  .pf2-title h1 { font-size: 26px; }
  .gal-nav { opacity: .85; }
  /* Telefonis on peamised tegevused alati käeulatuses ekraani allservas */
  .profile2:not(.is-self) .pf2-actions { position: fixed; left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 40; margin: 0; padding: 8px; border-radius: 999px; background: var(--glass-2); border: 1px solid var(--line-2); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .7); }
  .profile2:not(.is-self) { padding-bottom: 70px; }
}

/* Uute vestluste loendur (Otsi) */
.contacts-left { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.contacts-left > .ic { width: 20px; height: 20px; color: var(--accent); flex: none; }
.contacts-left strong { display: block; font-size: 17px; line-height: 1.1; }
.contacts-left span { display: block; font-size: 12px; color: var(--muted); }
.contacts-left.empty { border-color: rgba(245, 158, 11, .4); background: rgba(245, 158, 11, .08); }
.contacts-left.empty > .ic { color: var(--warn-fg); }

/* Lisavestlused (VIP-leht) */
.credits-box { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; align-items: center; margin-bottom: 20px; scroll-margin-top: calc(var(--topbar-h) + 16px); }
.credits-info { display: flex; gap: 16px; align-items: flex-start; }
.credits-info h2 { margin: 0 0 6px; }
.credits-info p { margin: 0 0 8px; }
.credits-ic { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: rgba(255, 61, 127, .12); color: var(--accent); flex: none; }
.credits-ic .ic { width: 24px; height: 24px; }
.credits-balance strong { color: var(--text); font-size: 17px; }
.credits-buy { display: grid; gap: 10px; padding: 16px; border-radius: 14px; background: var(--card-2); }
.credits-buy > label { font-weight: 600; font-size: 13px; }
.credits-row { display: flex; gap: 12px; align-items: center; }
.credits-row select { flex: 1; }
.credits-total { text-align: right; flex: none; }
.credits-total span { display: block; font-size: 12px; color: var(--muted); }
.credits-total strong { font-size: 22px; }
.credits-buy .muted.small { margin: -4px 0 0; }
@media (max-width: 760px) { .credits-box { grid-template-columns: 1fr; } }

/* VIP olek: aktiivne tase + ootel VIP */
.vip-state { display: grid; gap: 8px; }
.vs-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--card-2); }
.vs-main strong { display: block; font-size: 14px; }
.vs-main span { display: block; font-size: 12.5px; color: var(--muted); }
.vs-time { padding: 5px 10px; border-radius: 999px; background: rgba(233, 168, 0, .14); color: var(--warn-fg); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.vs-time b { font-weight: 800; }
.vs-paused { background: rgba(168, 85, 247, .1); border: 1px solid rgba(168, 85, 247, .28); }
.vs-badge-paused { padding: 3px 8px; border-radius: 6px; background: rgba(168, 85, 247, .25); color: var(--violet-fg); font-size: 11px; font-weight: 800; white-space: nowrap; }
.vs-frozen { background: rgba(168, 85, 247, .18); color: var(--violet-fg); }
@media (max-width: 560px) {
  .vs-row { grid-template-columns: auto minmax(0, 1fr); }
  .vs-time { grid-column: 2; justify-self: start; }
}
.tier-note { margin: 4px 0 12px; padding: 8px 12px; border-radius: 10px; background: rgba(168, 85, 247, .12); color: var(--violet-fg); font-size: 13px; }
.vip-status > .muted.small { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--line); text-align: center; }

/* VIP lõpu meeldetuletus (viimased 24 h) */
.vip-reminder { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; padding: 12px 14px; border-radius: 14px; background: linear-gradient(135deg, rgba(233, 168, 0, .16), rgba(255, 61, 127, .1)); border: 1px solid rgba(233, 168, 0, .45); }
.vr-ic { font-size: 22px; line-height: 1; flex: none; }
.vr-text { flex: 1; min-width: 0; font-size: 14px; }
.vr-text strong { color: var(--warn-fg); }
.vr-text span { color: var(--muted); }
.vr-close { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--hover); color: var(--muted); cursor: pointer; font-size: 13px; }
.vr-close:hover { background: rgba(255, 255, 255, .12); color: var(--text); }
@media (max-width: 560px) {
  .vip-reminder { flex-wrap: wrap; }
  .vr-text { flex-basis: calc(100% - 80px); }
  .vip-reminder .btn { margin-left: 34px; }
}

/* VIP kingitus */
.gift-target { display: flex; gap: 16px; align-items: center; max-width: 640px; margin: 20px auto 0; padding: 16px 18px; border-radius: 16px; background: linear-gradient(135deg, rgba(233, 168, 0, .14), rgba(255, 61, 127, .12)); border: 1px solid rgba(233, 168, 0, .45); text-align: left; }
.gift-target .avatar-lg { width: 72px; height: 72px; flex: none; }
.gift-target h2 { margin: 2px 0 4px; font-size: 20px; }
.gift-target p { margin: 0 0 6px; }
.gift-label { display: inline-block; padding: 2px 8px; border-radius: 6px; background: var(--gold-grad); color: #2a1a00; font-size: 11px; font-weight: 800; }
.tiers-gift { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); max-width: 900px; margin-left: auto; margin-right: auto; }
.pf2-gift { font-size: 18px; }

/* Kahe-etapiline sisselogimine */
.twofa-box { text-align: left; }
.twofa-ic, .twofa-status > .ic { flex: none; }
.twofa-ic { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: rgba(34, 197, 94, .12); color: var(--ok-fg); margin-bottom: 12px; }
.twofa-ic .ic { width: 26px; height: 26px; }
.twofa-input { font-size: 22px; letter-spacing: .2em; text-align: center; font-variant-numeric: tabular-nums; }
.twofa-panel { max-width: 820px; }
.twofa-panel h2 { margin-top: 0; }
.twofa-steps { padding-left: 20px; display: grid; gap: 6px; color: var(--muted); }
.twofa-steps strong { color: var(--text); }
.twofa-setup { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; margin-top: 14px; }
.twofa-qr { padding: 10px; background: #fff; border-radius: 14px; line-height: 0; }
.twofa-qr svg { width: 220px; height: 220px; }
.twofa-manual { flex: 1; min-width: 240px; display: grid; gap: 10px; justify-items: start; }
.twofa-manual p { margin: 0; }
.twofa-key { display: block; padding: 10px 12px; border-radius: 10px; background: var(--card-2); border: 1px solid var(--line-2); font-size: 15px; letter-spacing: .08em; word-break: break-all; user-select: all; }
.twofa-confirm { display: grid; gap: 6px; width: 100%; }
.twofa-confirm label { font-weight: 600; font-size: 13px; }
.twofa-row { display: flex; gap: 8px; align-items: center; }
.twofa-row input { flex: 1; min-width: 0; }
.twofa-row-2 input { min-width: 110px; }
.twofa-status { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 14px; background: var(--card-2); margin-bottom: 14px; }
.twofa-status > .ic { width: 24px; height: 24px; color: var(--muted); }
.twofa-status.on { background: rgba(34, 197, 94, .1); border: 1px solid rgba(34, 197, 94, .35); }
.twofa-status.on > .ic { color: var(--ok-fg); }
.twofa-status strong { display: block; }
.twofa-status span { display: block; font-size: 13px; color: var(--muted); }
.twofa-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.panel-sub { padding: 14px; border-radius: 14px; background: var(--card-2); }
.panel-sub h3 { margin: 0 0 4px; font-size: 15px; }
.panel-sub p { margin: 0 0 10px; }
.recovery-codes { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.recovery-codes code { padding: 10px; border-radius: 10px; background: var(--card-2); border: 1px dashed var(--line-2); text-align: center; font-size: 16px; letter-spacing: .06em; }
.twofa-teaser { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.twofa-teaser h2 { margin: 0 0 4px; }
.twofa-teaser p { margin: 0; }
@media (max-width: 560px) { .twofa-row-2 { flex-wrap: wrap; } .twofa-qr svg { width: 200px; height: 200px; } }
button.link { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); cursor: pointer; }
