/* ============================================================
   ИСКРА — iOS 26 Liquid Glass
   Принципы: стекло только на «хроме» (бары, кнопки, шиты),
   контент непрозрачный; асимметричный rim-свет; saturate>150%;
   concentric radii; spring-анимации.
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

:root {
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --cst: var(--tg-content-safe-area-inset-top, 0px);

  --accent: #FF375F;
  --accent2: #FF9F0A;
  --grad-spark: linear-gradient(135deg, #FF375F 0%, #FF9F0A 100%);
  --grad-bolt: linear-gradient(135deg, #0A84FF 0%, #5E5CE6 100%);
  --blue: #0A84FF;
  --green: #30D158;

  --radius-xl: 28px;
  --radius-l: 20px;
  --radius-m: 14px;

  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);

  /* Светлая тема */
  --bg: #F2F2F7;
  --bg-card: #FFFFFF;
  --bg-card2: #FFFFFF;
  --text: #000000;
  --text-2: rgba(60, 60, 67, 0.62);
  --text-3: rgba(60, 60, 67, 0.35);
  --separator: rgba(60, 60, 67, 0.12);

  --glass-tint: rgba(255, 255, 255, 0.6);
  --glass-tint-strong: rgba(255, 255, 255, 0.78);
  --glass-rim-hi: rgba(255, 255, 255, 0.85);
  --glass-rim-lo: rgba(255, 255, 255, 0.25);
  --glass-border: linear-gradient(135deg, rgba(255,255,255,.85), rgba(255,255,255,.08) 45%, rgba(255,255,255,.4));
  --glass-shadow: 0 10px 34px rgba(20, 24, 40, 0.16);
  --glass-ink: #1c1c1e;

  --amb-a: rgba(255, 55, 95, 0.16);
  --amb-b: rgba(255, 159, 10, 0.14);
  --amb-c: rgba(10, 132, 255, 0.12);
}

.theme-dark {
  --bg: #000000;
  --bg-card: #1C1C1E;
  --bg-card2: #2C2C2E;
  --text: #FFFFFF;
  --text-2: rgba(235, 235, 245, 0.62);
  --text-3: rgba(235, 235, 245, 0.32);
  --separator: rgba(255, 255, 255, 0.1);

  --glass-tint: rgba(28, 28, 36, 0.55);
  --glass-tint-strong: rgba(30, 30, 40, 0.78);
  --glass-rim-hi: rgba(255, 255, 255, 0.28);
  --glass-rim-lo: rgba(255, 255, 255, 0.07);
  --glass-border: linear-gradient(135deg, rgba(255,255,255,.32), rgba(255,255,255,.04) 45%, rgba(255,255,255,.16));
  --glass-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  --glass-ink: #f4f4f8;

  --amb-a: rgba(255, 55, 95, 0.20);
  --amb-b: rgba(255, 159, 10, 0.13);
  --amb-c: rgba(94, 92, 230, 0.20);
}

html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
  overscroll-behavior: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-font-smoothing: antialiased;
}

/* Амбиентные пятна: стеклу нужно что-то преломлять, на плоском фоне оно мертво */
body::before {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(38% 30% at 18% 12%, var(--amb-a), transparent 70%),
    radial-gradient(34% 28% at 85% 20%, var(--amb-b), transparent 70%),
    radial-gradient(42% 34% at 70% 88%, var(--amb-c), transparent 70%);
}

#app { position: relative; z-index: 1; height: 100dvh; }

.hidden { display: none !important; }

.screen { position: absolute; inset: 0; display: flex; flex-direction: column; }

/* ============ СТЕКЛО ============ */
.glass {
  position: relative;
  background: var(--glass-tint);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  box-shadow:
    inset 0 1px 1px var(--glass-rim-hi),
    inset 0 -1px 1px var(--glass-rim-lo),
    var(--glass-shadow);
}
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--glass-border);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ============ ЗАГРУЗКА ============ */
#screen-loading { align-items: center; justify-content: center; }
.loading-logo {
  width: 96px; height: 96px; border-radius: 30px;
  background: var(--grad-spark);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 18px 50px rgba(255, 55, 95, .45);
  animation: pulse 1.4s var(--ease) infinite;
}
.loading-logo svg { width: 52px; height: 52px; color: #fff; }
@keyframes pulse { 0%,100% { transform: scale(1);} 50% { transform: scale(1.07);} }

/* ============ КНОПКИ ============ */
.btn-primary {
  display: block; width: 100%;
  padding: 16px 20px;
  border: 0; border-radius: 999px;
  background: var(--grad-spark);
  color: #fff; font-size: 17px; font-weight: 600; font-family: inherit;
  box-shadow: 0 10px 26px rgba(255, 55, 95, .38), inset 0 1px 1px rgba(255,255,255,.5);
  transition: transform .35s var(--spring), box-shadow .35s var(--spring), opacity .2s;
  cursor: pointer;
}
.btn-primary:active { transform: scale(.96); }
.btn-primary:disabled { opacity: .4; }
.btn-ghost {
  display: block; width: 100%;
  padding: 14px 20px;
  border: 0; border-radius: 999px;
  background: transparent;
  color: var(--text-2); font-size: 16px; font-weight: 500; font-family: inherit;
  cursor: pointer;
}
.btn-glass {
  border: 0; border-radius: 999px;
  padding: 12px 18px;
  background: var(--glass-tint);
  -webkit-backdrop-filter: blur(14px) saturate(170%);
  backdrop-filter: blur(14px) saturate(170%);
  box-shadow: inset 0 1px 1px var(--glass-rim-hi), inset 0 -1px 1px var(--glass-rim-lo), 0 6px 18px rgba(20,24,40,.14);
  color: var(--glass-ink); font-size: 15px; font-weight: 600; font-family: inherit;
  cursor: pointer;
  transition: transform .3s var(--spring);
}
.btn-glass:active { transform: scale(.95); }

/* ============ ОНБОРДИНГ ============ */
#screen-onboarding { padding: calc(var(--sat) + var(--cst) + 18px) 22px calc(var(--sab) + 18px); }
.ob-progress {
  height: 4px; border-radius: 2px; background: var(--separator);
  margin-bottom: 26px; overflow: hidden; flex-shrink: 0;
}
.ob-progress-fill {
  height: 100%; width: 0%;
  background: var(--grad-spark); border-radius: 2px;
  transition: width .5s var(--spring);
}
.ob-body { flex: 1; overflow-y: auto; display: flex; flex-direction: column; }
.ob-footer { display: flex; gap: 10px; padding-top: 14px; flex-shrink: 0; }
.ob-footer .btn-ghost { width: auto; padding-inline: 18px; }

.ob-title { font-size: 32px; font-weight: 700; letter-spacing: -.5px; line-height: 1.15; margin-bottom: 8px; }
.ob-sub { font-size: 16px; color: var(--text-2); margin-bottom: 24px; line-height: 1.4; }

.ob-input {
  width: 100%; padding: 16px 18px;
  font-size: 20px; font-family: inherit; color: var(--text);
  background: var(--bg-card); border: 1.5px solid var(--separator);
  border-radius: var(--radius-l);
  outline: none;
  transition: border-color .2s;
}
.ob-input:focus { border-color: var(--accent); }
textarea.ob-input { min-height: 120px; resize: none; font-size: 17px; line-height: 1.45; }

.ob-options { display: flex; flex-direction: column; gap: 10px; }
.ob-option {
  padding: 18px; border-radius: var(--radius-l);
  background: var(--bg-card); border: 1.5px solid var(--separator);
  font-size: 17px; font-weight: 500; color: var(--text); font-family: inherit;
  display: flex; align-items: center; gap: 12px;
  cursor: pointer; text-align: left;
  transition: transform .3s var(--spring), border-color .2s, background .2s;
}
.ob-option .emoji { font-size: 24px; }
.ob-option:active { transform: scale(.97); }
.ob-option.selected { border-color: var(--accent); background: rgba(255, 55, 95, .07); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 9px 15px; border-radius: 999px;
  background: var(--bg-card); border: 1.5px solid var(--separator);
  font-size: 15px; font-weight: 500; color: var(--text); font-family: inherit;
  cursor: pointer;
  transition: transform .25s var(--spring), border-color .2s, background .2s, color .2s;
}
.chip:active { transform: scale(.93); }
.chip.selected { border-color: transparent; background: var(--grad-spark); color: #fff; }

.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.photo-cell {
  aspect-ratio: 3/4; border-radius: var(--radius-m);
  background: var(--bg-card); border: 1.5px dashed var(--separator);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; color: var(--text-3);
  overflow: hidden; position: relative; cursor: pointer;
}
.photo-cell img { width: 100%; height: 100%; object-fit: cover; }
.photo-cell.filled { border-style: solid; }
.photo-del {
  position: absolute; top: 6px; right: 6px;
  width: 26px; height: 26px; border-radius: 50%; border: 0;
  background: rgba(0,0,0,.55); color: #fff; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  cursor: pointer;
}

.psy-q { font-size: 24px; font-weight: 700; letter-spacing: -.3px; margin-bottom: 20px; }
.prompt-pick { margin-bottom: 14px; }
.prompt-q {
  font-size: 14px; font-weight: 600; color: var(--accent);
  text-transform: none; margin-bottom: 6px;
}

/* ============ ТОП-БАР ============ */
.topbar {
  position: absolute;
  top: calc(var(--sat) + var(--cst) + 10px);
  left: 16px; right: 16px;
  height: 52px;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 8px 0 18px;
  z-index: 40;
}
.topbar-title { display: flex; align-items: center; gap: 8px; font-size: 19px; font-weight: 700; letter-spacing: -.3px; }
.topbar-flame { width: 22px; height: 22px; color: var(--accent); filter: drop-shadow(0 2px 6px rgba(255,55,95,.5)); }
.topbar-side { display: flex; align-items: center; gap: 6px; }
.pill {
  display: flex; align-items: center; gap: 5px;
  height: 36px; padding: 0 13px;
  border-radius: 999px; border: 0;
  background: transparent;
  font-size: 14px; font-weight: 600; color: var(--glass-ink); font-family: inherit;
  cursor: pointer;
}
.pill svg { width: 15px; height: 15px; }
.pill.spark { color: var(--accent); }
.pill.premium {
  background: var(--grad-spark); color: #fff;
  box-shadow: 0 4px 14px rgba(255,55,95,.4);
}

/* ============ ТАБ-БАР ============ */
.tabbar {
  position: absolute;
  left: 21px; right: 21px;
  bottom: calc(var(--sab) + 14px);
  height: 66px;
  border-radius: 999px;
  display: flex; align-items: stretch; justify-content: space-around;
  padding: 0 6px;
  z-index: 50;
}
.tabbtn {
  position: relative;
  flex: 1; border: 0; background: transparent;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--text-2); font-family: inherit;
  cursor: pointer;
  transition: color .25s;
}
.tabbtn svg { width: 24px; height: 24px; transition: transform .35s var(--spring); }
.tabbtn span { font-size: 11px; font-weight: 600; }
.tabbtn.active { color: var(--accent); }
.tabbtn.active svg { transform: translateY(-1px) scale(1.08); }
.tabbtn .dot {
  position: absolute; top: 10px; right: 24%;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 2.5px var(--bg);
}

/* ============ ДЕКА ============ */
.tab { position: absolute; inset: 0; }
#tab-deck { display: flex; align-items: stretch; justify-content: center; }

.deck {
  position: absolute;
  top: calc(var(--sat) + var(--cst) + 72px);
  bottom: calc(var(--sab) + 174px);
  left: 14px; right: 14px;
}
.card {
  position: absolute; inset: 0;
  border-radius: var(--radius-xl);
  background: var(--bg-card2);
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(10, 12, 30, .28);
  touch-action: none;
  will-change: transform;
  transition: transform .18s var(--ease), opacity .3s;
}
.card.under { transform: scale(.94) translateY(14px); opacity: .85; }
.card.under2 { transform: scale(.88) translateY(26px); opacity: .5; }
.card.fly { transition: transform .45s var(--ease), opacity .4s; }

.card-photo { position: absolute; inset: 0; background-size: cover; background-position: center; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; }

.card-dots {
  position: absolute; top: 12px; left: 14px; right: 14px;
  display: flex; gap: 5px; z-index: 3;
}
.card-dots i {
  flex: 1; height: 3.5px; border-radius: 2px;
  background: rgba(255,255,255,.35);
}
.card-dots i.on { background: rgba(255,255,255,.95); }

/* Скрим: текст на фото без подложки нечитаем */
.card-scrim {
  position: absolute; left: 0; right: 0; bottom: 0; height: 55%;
  background: linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.28) 55%, transparent 100%);
  pointer-events: none;
}

.card-info {
  position: absolute; left: 18px; right: 18px; bottom: 16px;
  color: #fff; z-index: 3;
}
.card-name { font-size: 30px; font-weight: 700; letter-spacing: -.4px; display: flex; align-items: center; gap: 8px; }
.card-name .vbadge { width: 22px; height: 22px; color: var(--blue); filter: drop-shadow(0 1px 3px rgba(0,0,0,.4)); }
.card-name .online { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.card-meta { font-size: 15px; font-weight: 500; opacity: .88; margin-top: 3px; display: flex; align-items: center; gap: 6px; }
.card-meta svg { width: 14px; height: 14px; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag {
  padding: 5.5px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: #fff;
  background: rgba(255,255,255,.16);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  backdrop-filter: blur(10px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3);
}
.tag.goal { background: rgba(255,55,95,.35); }

.compat-ring {
  position: absolute; right: 16px; bottom: 100px; z-index: 3;
  width: 54px; height: 54px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(20,20,28,.35);
  -webkit-backdrop-filter: blur(12px) saturate(170%);
  backdrop-filter: blur(12px) saturate(170%);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.35), 0 6px 16px rgba(0,0,0,.3);
  color: #fff; font-size: 13px; font-weight: 700;
}
.compat-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.compat-ring circle { fill: none; stroke-width: 3.5; }
.compat-ring .bg { stroke: rgba(255,255,255,.2); }
.compat-ring .fg { stroke: url(#gradSpark); stroke-linecap: round; }

.card-expand {
  position: absolute; right: 16px; bottom: 40px; z-index: 4;
  width: 44px; height: 44px; border-radius: 50%;
  border: 0; cursor: pointer;
  background: rgba(255,255,255,.18);
  -webkit-backdrop-filter: blur(12px) saturate(170%);
  backdrop-filter: blur(12px) saturate(170%);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.4), 0 4px 14px rgba(0,0,0,.25);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.card-expand svg { width: 20px; height: 20px; }

.stamp {
  position: absolute; top: 48px; z-index: 5;
  padding: 10px 22px; border-radius: 14px;
  font-size: 30px; font-weight: 800; letter-spacing: 2px;
  border: 3.5px solid; transform: rotate(-14deg);
  opacity: 0; text-transform: uppercase;
  pointer-events: none;
}
.stamp.like { left: 22px; color: var(--green); border-color: var(--green); }
.stamp.nope { right: 22px; color: #FF453A; border-color: #FF453A; transform: rotate(14deg); }
.stamp.super { left: 50%; top: auto; bottom: 130px; transform: translateX(-50%) rotate(-6deg); color: var(--blue); border-color: var(--blue); }

.deck-empty {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 30px; gap: 8px;
}
.deck-empty .big { font-size: 56px; }
.deck-empty h2 { font-size: 22px; font-weight: 700; letter-spacing: -.3px; }
.deck-empty p { font-size: 15px; color: var(--text-2); line-height: 1.45; max-width: 260px; }
.deck-empty .btn-glass { margin-top: 12px; }

/* ============ ЭКШН-БАР ============ */
.actionbar {
  position: absolute;
  left: 50%; transform: translateX(-50%);
  bottom: calc(var(--sab) + 92px);
  height: 72px; border-radius: 999px;
  display: flex; align-items: center; gap: 10px;
  padding: 0 12px;
  z-index: 45;
}
.act {
  border: 0; border-radius: 50%;
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  background: transparent;
  color: var(--glass-ink);
  transition: transform .35s var(--spring);
}
.act:active { transform: scale(.86); }
.act svg { width: 26px; height: 26px; }
.act-undo { width: 44px; height: 44px; color: var(--text-2); }
.act-undo svg { width: 21px; height: 21px; }
.act-msg { width: 44px; height: 44px; color: var(--text-2); }
.act-msg svg { width: 21px; height: 21px; }
.act-nope { color: #FF453A; }
.act-super { color: var(--blue); }
.act-like {
  width: 62px; height: 62px;
  background: var(--grad-spark); color: #fff;
  box-shadow: 0 10px 26px rgba(255,55,95,.45), inset 0 1px 1px rgba(255,255,255,.5);
}
.act-like svg { width: 30px; height: 30px; }

/* ============ СПИСКИ (лайки/мэтчи) ============ */
.tab-scroll {
  position: absolute; inset: 0;
  overflow-y: auto;
  padding: calc(var(--sat) + var(--cst) + 76px) 16px calc(var(--sab) + 100px);
  -webkit-overflow-scrolling: touch;
}
.section-title { font-size: 28px; font-weight: 700; letter-spacing: -.4px; margin: 6px 2px 4px; }
.section-sub { font-size: 15px; color: var(--text-2); margin: 0 2px 16px; }

.likes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.like-card {
  position: relative; border-radius: var(--radius-l);
  aspect-ratio: 3/4.1; overflow: hidden;
  background: var(--bg-card2);
  box-shadow: 0 8px 22px rgba(10,12,30,.14);
  cursor: pointer;
}
.like-card img { width: 100%; height: 100%; object-fit: cover; }
.like-card .lc-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.62), transparent 55%);
}
.like-card .lc-name {
  position: absolute; left: 12px; bottom: 10px; right: 12px;
  color: #fff; font-size: 16px; font-weight: 700;
  display: flex; align-items: center; gap: 6px;
}
.like-card .lc-name svg { width: 16px; height: 16px; color: var(--blue); }
.like-card .lc-kind {
  position: absolute; top: 10px; right: 10px;
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad-bolt); color: #fff;
  box-shadow: 0 4px 12px rgba(10,132,255,.5);
}
.like-card .lc-kind svg { width: 16px; height: 16px; }
.like-card .lc-msg {
  position: absolute; left: 10px; right: 10px; bottom: 38px;
  padding: 7px 10px; border-radius: 12px 12px 12px 4px;
  background: rgba(255,255,255,.2);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  backdrop-filter: blur(12px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
  color: #fff; font-size: 12.5px; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.like-card .lc-lock {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px;
}

.match-row {
  display: flex; align-items: center; gap: 13px;
  padding: 11px 12px; margin-bottom: 8px;
  border-radius: var(--radius-l);
  background: var(--bg-card);
  box-shadow: 0 4px 14px rgba(10,12,30,.08);
  cursor: pointer;
}
.match-row .ava {
  width: 58px; height: 58px; border-radius: 50%;
  background-size: cover; background-position: center;
  flex-shrink: 0; position: relative;
}
.match-row .ava.new::after {
  content: ""; position: absolute; inset: -3px;
  border-radius: 50%; border: 2.5px solid var(--accent);
}
.match-row .mr-body { flex: 1; min-width: 0; }
.match-row .mr-name { font-size: 17px; font-weight: 650; display: flex; align-items: center; gap: 6px; }
.match-row .mr-name svg { width: 16px; height: 16px; color: var(--blue); flex-shrink: 0; }
.match-row .mr-sub { font-size: 14px; color: var(--text-2); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.match-row .mr-chat {
  border: 0; border-radius: 999px; padding: 9px 16px;
  background: var(--grad-spark); color: #fff;
  font-size: 14px; font-weight: 600; font-family: inherit;
  box-shadow: 0 5px 14px rgba(255,55,95,.35);
  cursor: pointer; flex-shrink: 0;
}
.newbadge {
  font-size: 11px; font-weight: 700; color: #fff;
  background: var(--accent); border-radius: 999px; padding: 2.5px 8px;
}

.empty-state {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 60px 30px 30px; gap: 8px;
}
.empty-state .big { font-size: 52px; }
.empty-state h3 { font-size: 20px; font-weight: 700; }
.empty-state p { font-size: 15px; color: var(--text-2); line-height: 1.45; max-width: 260px; }

/* Премиум-баннер */
.premium-banner {
  position: relative;
  border-radius: var(--radius-l);
  padding: 18px;
  margin-bottom: 16px;
  background: var(--grad-spark);
  color: #fff;
  box-shadow: 0 12px 30px rgba(255,55,95,.35);
  overflow: hidden;
  cursor: pointer;
}
.premium-banner::after {
  content: ""; position: absolute; top: -40%; right: -10%;
  width: 60%; height: 180%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
  transform: rotate(10deg);
}
.premium-banner h3 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.premium-banner p { font-size: 13.5px; opacity: .92; line-height: 1.35; }

/* ============ ПРОФИЛЬ ============ */
.profile-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.profile-ava {
  width: 86px; height: 86px; border-radius: 50%;
  background: var(--bg-card2) center/cover;
  position: relative; flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(10,12,30,.18);
}
.profile-ava .ring {
  position: absolute; inset: -4px; border-radius: 50%;
  border: 3px solid transparent;
  background: var(--grad-spark) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.profile-name { font-size: 24px; font-weight: 700; letter-spacing: -.3px; display: flex; align-items: center; gap: 7px; }
.profile-name svg { width: 20px; height: 20px; color: var(--blue); }
.profile-city { font-size: 15px; color: var(--text-2); margin-top: 2px; }

.stat-row { display: flex; gap: 10px; margin-bottom: 16px; }
.stat {
  flex: 1; text-align: center;
  background: var(--bg-card); border-radius: var(--radius-l);
  padding: 13px 6px;
  box-shadow: 0 4px 14px rgba(10,12,30,.07);
}
.stat b { display: block; font-size: 20px; font-weight: 700; }
.stat span { font-size: 12.5px; color: var(--text-2); font-weight: 500; }

.list-group {
  background: var(--bg-card); border-radius: var(--radius-l);
  margin-bottom: 16px; overflow: hidden;
  box-shadow: 0 4px 14px rgba(10,12,30,.07);
}
.list-item {
  display: flex; align-items: center; gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border: 0; background: transparent; font-family: inherit; text-align: left;
  font-size: 16px; font-weight: 500; color: var(--text);
  cursor: pointer;
  border-bottom: .5px solid var(--separator);
}
.list-item:last-child { border-bottom: 0; }
.list-item .li-icon { font-size: 20px; width: 28px; text-align: center; }
.list-item .li-label { flex: 1; }
.list-item .li-value { font-size: 15px; color: var(--text-2); }
.list-item .li-chev { color: var(--text-3); font-size: 17px; }

/* iOS-переключатель */
.switch { position: relative; width: 50px; height: 30px; flex-shrink: 0; }
.switch input { display: none; }
.switch i {
  position: absolute; inset: 0; border-radius: 999px;
  background: var(--separator); transition: background .25s;
}
.switch i::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 26px; height: 26px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.25);
  transition: transform .3s var(--spring);
}
.switch input:checked + i { background: var(--green); }
.switch input:checked + i::after { transform: translateX(20px); }

/* ============ ОВЕРЛЕЙ МЭТЧА ============ */
.overlay {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  background: rgba(12, 10, 24, .5);
  -webkit-backdrop-filter: blur(26px) saturate(160%);
  backdrop-filter: blur(26px) saturate(160%);
}
.match-stage { text-align: center; padding: 30px; width: 100%; max-width: 380px; animation: rise .55s var(--spring); }
@keyframes rise { from { transform: translateY(40px) scale(.92); opacity: 0; } }
.match-photos { display: flex; align-items: center; justify-content: center; margin-bottom: 26px; }
.match-ava {
  width: 116px; height: 116px; border-radius: 50%;
  background: var(--bg-card2) center/cover;
  border: 4px solid rgba(255,255,255,.9);
  box-shadow: 0 14px 40px rgba(0,0,0,.4);
}
.match-ava:first-child { transform: rotate(-8deg) translateX(12px); }
.match-ava:last-child { transform: rotate(8deg) translateX(-12px); }
.match-spark {
  position: relative; z-index: 2;
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--grad-spark);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(255,55,95,.6);
  margin: 0 -14px;
  animation: pulse 1.2s var(--ease) infinite;
}
.match-spark svg { width: 32px; height: 32px; color: #fff; }
.match-stage h1 { color: #fff; font-size: 34px; font-weight: 800; letter-spacing: -.5px; margin-bottom: 6px; }
.match-stage p { color: rgba(255,255,255,.75); font-size: 16px; margin-bottom: 26px; }
.match-stage .btn-primary { margin-bottom: 6px; }
.match-stage .btn-ghost { color: rgba(255,255,255,.7); }

/* ============ ШИТЫ ============ */
.sheet-wrap { position: fixed; inset: 0; z-index: 90; }
.sheet-backdrop {
  position: absolute; inset: 0;
  background: rgba(10, 10, 20, .42);
  opacity: 0; transition: opacity .3s;
}
.sheet-wrap.open .sheet-backdrop { opacity: 1; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0;
  max-height: 86dvh;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  background: var(--bg);
  box-shadow: 0 -12px 50px rgba(0,0,0,.3);
  transform: translateY(105%);
  transition: transform .45s var(--spring);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.sheet-wrap.open .sheet { transform: translateY(0); }
.sheet-grabber {
  width: 40px; height: 5px; border-radius: 3px;
  background: var(--separator);
  margin: 10px auto 4px; flex-shrink: 0;
}
.sheet-content { overflow-y: auto; padding: 12px 20px calc(var(--sab) + 24px); -webkit-overflow-scrolling: touch; }
.sheet-title { font-size: 22px; font-weight: 700; letter-spacing: -.3px; margin-bottom: 4px; }
.sheet-sub { font-size: 14.5px; color: var(--text-2); margin-bottom: 16px; line-height: 1.4; }

/* Детали анкеты в шите */
.det-photos { display: flex; gap: 8px; overflow-x: auto; margin: 0 -20px 16px; padding: 0 20px; }
.det-photos img {
  width: 78%; max-width: 300px; aspect-ratio: 3/4; object-fit: cover;
  border-radius: var(--radius-l); flex-shrink: 0;
}
.det-section { margin-bottom: 16px; }
.det-label { font-size: 13px; font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: .4px; margin-bottom: 7px; }
.det-bio { font-size: 16px; line-height: 1.5; }
.prompt-card {
  background: var(--bg-card); border-radius: var(--radius-l);
  padding: 14px 16px; margin-bottom: 10px;
  box-shadow: 0 4px 14px rgba(10,12,30,.07);
  position: relative;
}
.prompt-card .pq { font-size: 13px; font-weight: 600; color: var(--accent); margin-bottom: 5px; }
.prompt-card .pa { font-size: 16.5px; line-height: 1.45; font-weight: 500; padding-right: 40px; }
.prompt-like {
  position: absolute; right: 10px; bottom: 10px;
  width: 36px; height: 36px; border-radius: 50%; border: 0;
  background: rgba(255,55,95,.1); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.prompt-like svg { width: 18px; height: 18px; }

/* Товары премиума */
.product-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg-card); border-radius: var(--radius-l);
  padding: 15px 16px; margin-bottom: 10px;
  box-shadow: 0 4px 14px rgba(10,12,30,.07);
}
.product-card .pc-emoji {
  width: 46px; height: 46px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; flex-shrink: 0;
  background: rgba(255,55,95,.1);
}
.product-card .pc-body { flex: 1; }
.product-card .pc-title { font-size: 16px; font-weight: 650; }
.product-card .pc-desc { font-size: 13px; color: var(--text-2); line-height: 1.35; margin-top: 2px; }
.product-card .pc-buy {
  border: 0; border-radius: 999px; padding: 9px 14px;
  background: var(--grad-spark); color: #fff;
  font-size: 14px; font-weight: 700; font-family: inherit;
  box-shadow: 0 5px 14px rgba(255,55,95,.35);
  cursor: pointer; flex-shrink: 0; white-space: nowrap;
}
.feature-list { margin: 4px 0 16px; }
.feature-list li {
  list-style: none; display: flex; gap: 10px; align-items: flex-start;
  font-size: 15.5px; padding: 7px 0; line-height: 1.35;
}
.feature-list .fi { flex-shrink: 0; }

/* ============ ТОСТЫ ============ */
#toast-host {
  position: fixed; left: 0; right: 0;
  top: calc(var(--sat) + var(--cst) + 8px);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  z-index: 200; pointer-events: none;
}
.toast {
  max-width: 86%;
  padding: 12px 20px; border-radius: 999px;
  background: var(--glass-tint-strong);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow: inset 0 1px 1px var(--glass-rim-hi), 0 10px 30px rgba(10,12,30,.25);
  color: var(--text); font-size: 15px; font-weight: 550; text-align: center;
  animation: toastIn .45s var(--spring);
}
.toast.out { opacity: 0; transform: translateY(-12px); transition: all .3s; }
@keyframes toastIn { from { transform: translateY(-16px) scale(.9); opacity: 0; } }

/* Разное */
.range-wrap { display: flex; align-items: center; gap: 12px; padding: 4px 0 8px; }
.range-wrap input[type=range] { flex: 1; accent-color: var(--accent); }
.range-val { font-size: 15px; font-weight: 600; min-width: 56px; text-align: center; }

.spin {
  width: 26px; height: 26px;
  border: 3px solid var(--separator); border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  margin: 30px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (min-width: 520px) {
  .deck, .topbar { max-width: 480px; margin-inline: auto; left: 50%; right: auto; transform: translateX(-50%); width: calc(100% - 28px); }
  .tabbar { max-width: 440px; left: 50%; transform: translateX(-50%); width: calc(100% - 42px); }
  .tab-scroll { max-width: 520px; margin-inline: auto; }
}
