/* Вёрстка приложения. Цвета — ТОЛЬКО в theme.css. */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  font-family: 'Manrope', -apple-system, system-ui, sans-serif;
  background: var(--bg); color: var(--text);
  overscroll-behavior: none; user-select: none; -webkit-user-select: none;
}
img { pointer-events: none; }
button { font: inherit; border: 0; background: none; cursor: pointer; color: inherit; }
input, textarea, select {
  font: inherit; color: var(--text); width: 100%;
  background: var(--surface); border: 1.5px solid var(--line);
  border-radius: var(--radius-s); padding: 13px 15px; outline: none;
  transition: border-color .15s;
}
input:focus, textarea:focus { border-color: var(--primary); }

#app { max-width: 480px; margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column;
  position: relative; }
/* ауры — внутри приложения, единым слоем с контентом (не «отслаиваются») */
#app::before, #app::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%;
  filter: blur(90px); opacity: var(--aura-strength); pointer-events: none;
}
#app::before { width: 340px; height: 340px; background: var(--aura1); top: -120px; right: -80px; }
#app::after  { width: 300px; height: 300px; background: var(--aura2); top: 60dvh; left: -110px;
  opacity: calc(var(--aura-strength) * .8); }

/* ---------- загрузка ---------- */
.boot { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 80dvh; }
.boot-logo { font-size: 42px; font-weight: 800; letter-spacing: -1.5px;
  background: linear-gradient(120deg, var(--primary), var(--accent));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.boot-sub { color: var(--text-faint); font-size: 14px; margin-bottom: 18px; }
.spinner { width: 26px; height: 26px; border-radius: 50%;
  border: 3px solid var(--line); border-top-color: var(--primary); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- каркас ---------- */
.screen { flex: 1; display: flex; flex-direction: column; padding: 14px 16px calc(86px + env(safe-area-inset-bottom));
  animation: fadein .22s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.h1 { font-size: 26px; font-weight: 800; letter-spacing: -.6px; }
.h1-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.sub { color: var(--text-soft); font-size: 14px; line-height: 1.45; }

/* ---------- таб-бар ---------- */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; justify-content: space-around; align-items: flex-start;
  max-width: 480px; margin: 0 auto;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  padding: 8px 4px calc(8px + env(safe-area-inset-bottom)); }
.tab-pill { position: absolute; top: 8px; height: 50px; width: 64px; left: 0;
  border-radius: 999px; background: var(--primary-soft);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--primary) 15%, transparent),
              0 3px 12px color-mix(in srgb, var(--primary) 12%, transparent);
  transition: transform .38s cubic-bezier(.3, 1.35, .4, 1), width .38s;
  z-index: 0; pointer-events: none; will-change: transform; }
.tab { display: flex; flex-direction: column; align-items: center; gap: 3px;
  color: var(--text-faint); font-size: 10.5px; font-weight: 700; width: 64px; padding: 6px 0;
  border-radius: 999px; transition: color .2s, transform .12s; position: relative; z-index: 1; }
.tab svg { width: 24px; height: 24px; }
.tab.active { color: var(--primary); }
.tab:active { transform: scale(.9); }
.tab .dot { position: absolute; top: 2px; right: 14px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--primary); }

/* ---------- кнопки ---------- */
.btn { display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 15px; border-radius: var(--radius-s);
  background: linear-gradient(135deg, var(--primary), var(--primary-2, var(--primary)));
  color: #fff; font-weight: 800; font-size: 16px; letter-spacing: .2px;
  box-shadow: var(--glow); transition: transform .14s, filter .15s, box-shadow .2s; }
.btn:active { transform: scale(.97); filter: brightness(.92); }
.btn.ghost, .btn.blue, .btn.small.ghost { box-shadow: none; }
.btn.ghost { background: var(--surface); color: var(--text); }
.btn.blue { background: var(--accent); }
.btn.small { width: auto; padding: 9px 16px; font-size: 14px; border-radius: 12px; }
.btn:disabled { opacity: .5; }

/* чипсы выбора */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 9px 15px; border-radius: 999px; background: var(--surface);
  border: 1.5px solid var(--line); font-size: 14px; font-weight: 700; color: var(--text-soft);
  transition: all .13s; }
.chip.on { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); }
.chip.blue.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }

/* ---------- онбординг ---------- */
.ob-progress { display: flex; gap: 5px; margin-bottom: 22px; }
.ob-progress i { flex: 1; height: 4px; border-radius: 4px; background: var(--line); transition: background .3s; }
.ob-progress i.on { background: var(--primary); }
.ob-title { font-size: 25px; font-weight: 800; letter-spacing: -.5px; margin-bottom: 6px; }
.ob-hint { color: var(--text-soft); font-size: 14px; margin-bottom: 20px; line-height: 1.45; }
.ob-body { flex: 1; }
.ob-footer { padding-top: 16px; }
.big-choices { display: flex; flex-direction: column; gap: 10px; }
.big-choice { padding: 17px; border-radius: var(--radius-s); background: var(--surface);
  border: 1.5px solid var(--line); font-size: 16px; font-weight: 700; text-align: left;
  transition: all .13s; display: flex; align-items: center; gap: 10px; }
.big-choice.on { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }

/* загрузка фото */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.photo-slot { aspect-ratio: 3/4; border-radius: var(--radius-s); background: var(--surface);
  border: 1.5px dashed var(--line); display: flex; align-items: center; justify-content: center;
  color: var(--text-faint); font-size: 28px; overflow: hidden; position: relative; }
.photo-slot img { width: 100%; height: 100%; object-fit: cover; }
.photo-slot .del { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px;
  border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; font-size: 14px;
  display: flex; align-items: center; justify-content: center; }
.photo-slot.busy { border-style: solid; }

/* ---------- лента ---------- */
.feed-wrap { flex: 1; display: flex; flex-direction: column; }
.card-stage { flex: 1; position: relative; min-height: 430px; }
.person-card { position: absolute; inset: 0; border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow); overflow: hidden;
  display: flex; flex-direction: column; touch-action: none; }
.person-card.animate-in { animation: cardin .3s cubic-bezier(.2,.9,.3,1.2); }
@keyframes cardin { from { opacity: 0; transform: scale(.94) translateY(14px); } to { opacity: 1; transform: none; } }
.card-photo { flex: 1; position: relative; background: linear-gradient(150deg, var(--primary-soft), var(--accent-soft)); }
.card-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-nav { position: absolute; inset: 0; display: flex; }
.photo-nav div { flex: 1; }
.photo-dots { position: absolute; top: 10px; left: 12px; right: 12px; display: flex; gap: 5px; z-index: 3;
  pointer-events: none; }
.photo-dots i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.4); }
.photo-dots i.on { background: #fff; }
.card-grad { position: absolute; left: 0; right: 0; bottom: 0; height: 55%; z-index: 2;
  background: linear-gradient(to top, rgba(5,6,15,.78), transparent); pointer-events: none; }
.card-info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 16px; color: #fff;
  pointer-events: none; }
.card-name { font-size: 25px; font-weight: 800; letter-spacing: -.4px; display: flex; align-items: center; gap: 7px; }
.badge { font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 999px; letter-spacing: .2px; }
.badge.verified { background: var(--accent); color: #fff; }
.badge.premium { background: var(--star); color: #fff; }
.badge.offf { background: rgba(255,255,255,.22); color: #fff; }
.card-meta { font-size: 13.5px; opacity: .92; margin-top: 3px; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.card-tags span { font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px;
  background: rgba(255,255,255,.18); backdrop-filter: blur(6px); }
.card-bio { font-size: 13.5px; opacity: .95; margin-top: 9px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.stamp { position: absolute; top: 26px; z-index: 5; padding: 8px 18px; border-radius: 12px;
  font-size: 26px; font-weight: 800; letter-spacing: 1px; border: 3.5px solid;
  opacity: 0; transform: rotate(-14deg); }
.stamp.like { left: 18px; color: var(--success); border-color: var(--success); }
.stamp.nope { right: 18px; color: var(--danger); border-color: var(--danger); transform: rotate(14deg); }
.stamp.super { left: 50%; top: 40%; transform: translateX(-50%) rotate(-8deg); color: var(--star); border-color: var(--star); }

.feed-actions { display: flex; justify-content: center; align-items: center; gap: 16px; padding-top: 16px; }
.fab { width: 58px; height: 58px; border-radius: 50%; background: var(--bg);
  box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center;
  transition: transform .12s; }
.fab:active { transform: scale(.88); }
.fab svg { width: 26px; height: 26px; }
.fab.skip svg { stroke: var(--text-faint); }
.fab.like { width: 66px; height: 66px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2, var(--primary)));
  box-shadow: var(--glow); }
.fab.like svg { stroke: #fff; fill: #fff; width: 30px; height: 30px; }
.fab.super svg { stroke: var(--star); fill: var(--star); }
.fab.msg svg { stroke: var(--accent); }

.feed-empty { flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center; gap: 10px; padding: 30px 10px; }
.feed-empty .emoji { font-size: 52px; }

/* ---------- списки (симпатии, активности, найдись) ---------- */
.list { display: flex; flex-direction: column; gap: 12px; }
.item-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; box-shadow: 0 2px 12px rgba(16,18,35,.05); animation: fadein .25s ease; }
.like-row { display: flex; gap: 12px; align-items: center; }
.avatar { width: 62px; height: 62px; border-radius: 18px; object-fit: cover; flex: none;
  background: linear-gradient(150deg, var(--primary-soft), var(--accent-soft)); }
.avatar.round { border-radius: 50%; width: 46px; height: 46px; }
.like-body { flex: 1; min-width: 0; }
.like-name { font-weight: 800; font-size: 16px; display: flex; gap: 6px; align-items: center; }
.like-sub { color: var(--text-soft); font-size: 13px; margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.like-note { margin-top: 6px; font-size: 13px; background: var(--primary-soft); color: var(--primary-dark);
  border-radius: 10px; padding: 7px 10px; font-weight: 600; }
.pill { font-size: 11px; font-weight: 800; padding: 4px 9px; border-radius: 999px; flex: none; }
.pill.p { background: var(--primary-soft); color: var(--primary); }
.pill.b { background: var(--accent-soft); color: var(--accent); }
.pill.s { background: #FFF4E0; color: var(--star); }
.pill.g { background: #E9F9EF; color: var(--success); }

.act-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.act-emoji { width: 44px; height: 44px; border-radius: 14px; background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center; font-size: 22px; flex: none; }
.act-title { font-weight: 800; font-size: 15px; }
.act-sub { color: var(--text-faint); font-size: 12.5px; margin-top: 1px; }
.act-text { font-size: 14.5px; line-height: 1.45; margin: 4px 0 10px; }
.act-footer { display: flex; align-items: center; justify-content: space-between; }
.spot-photo { width: 100%; border-radius: 14px; margin: 8px 0 4px; max-height: 300px; object-fit: cover; }

.filter-row { display: flex; gap: 8px; margin-bottom: 14px; overflow-x: auto; scrollbar-width: none; }
.filter-row::-webkit-scrollbar { display: none; }

/* ---------- профиль ---------- */
.profile-head { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.profile-ava { width: 84px; height: 84px; border-radius: 26px; object-fit: cover;
  background: linear-gradient(150deg, var(--primary-soft), var(--accent-soft)); }
.profile-name { font-size: 22px; font-weight: 800; letter-spacing: -.4px; display: flex; gap: 8px; align-items: center; }
.menu { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.menu-item { display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 15px 16px; border-bottom: 1px solid var(--line); text-align: left; font-weight: 700; font-size: 15px; }
.menu-item:last-child { border-bottom: 0; }
.menu-item .mi-icon { width: 34px; height: 34px; border-radius: 10px; background: var(--surface);
  display: flex; align-items: center; justify-content: center; font-size: 17px; flex: none; }
.menu-item .mi-sub { font-size: 12px; color: var(--text-faint); font-weight: 600; margin-top: 1px; }
.menu-item .mi-right { margin-left: auto; color: var(--text-faint); font-size: 18px; }
.premium-banner { border-radius: var(--radius); padding: 18px; color: #fff; margin-bottom: 16px;
  background: linear-gradient(120deg, var(--primary), var(--accent)); box-shadow: var(--shadow); }
.premium-banner h3 { font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.premium-banner p { font-size: 13px; opacity: .92; line-height: 1.4; }

/* ---------- шторки (bottom sheet) ---------- */
.sheet-back { position: fixed; inset: 0; background: rgba(10,11,20,.45); z-index: 60;
  animation: fadebg .2s ease; }
@keyframes fadebg { from { opacity: 0; } to { opacity: 1; } }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; max-width: 480px; margin: 0 auto;
  background: var(--bg); border-radius: 24px 24px 0 0; padding: 10px 18px calc(20px + env(safe-area-inset-bottom));
  max-height: 88dvh; overflow-y: auto; animation: sheetup .28s cubic-bezier(.2,.9,.3,1); }
@keyframes sheetup { from { transform: translateY(100%); } to { transform: none; } }
.sheet-handle { width: 40px; height: 4px; border-radius: 4px; background: var(--line); margin: 4px auto 14px; }
.sheet h2 { font-size: 20px; font-weight: 800; letter-spacing: -.4px; margin-bottom: 4px; }
.sheet .sub { margin-bottom: 14px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 800; color: var(--text-soft); margin-bottom: 7px; }

/* матч-оверлей */
.match-overlay { position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px; color: #fff; text-align: center; padding: 24px;
  background: linear-gradient(150deg, color-mix(in srgb, var(--primary) 94%, black), color-mix(in srgb, var(--accent) 90%, black));
  animation: fadebg .3s ease; }
.match-title { font-size: 38px; font-weight: 800; letter-spacing: -1px; animation: pop .45s cubic-bezier(.2,.9,.3,1.4); }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.match-avas { display: flex; }
.match-avas img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 4px solid #fff; }
.match-avas img:last-child { margin-left: -18px; }
.match-overlay .btn { max-width: 300px; background: #fff; color: var(--primary); }
.match-overlay .later { color: rgba(255,255,255,.8); font-weight: 700; padding: 10px; }

/* тосты */
#toasts { position: fixed; top: 12px; left: 0; right: 0; z-index: 90;
  display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast { background: var(--text); color: #fff; font-size: 14px; font-weight: 700;
  padding: 11px 18px; border-radius: 999px; box-shadow: var(--shadow);
  animation: toastin .25s ease; max-width: 86%; text-align: center; }
.toast.err { background: var(--danger); }
@keyframes toastin { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }

/* скелетоны */
.skel { border-radius: var(--radius); background: linear-gradient(100deg, var(--surface) 40%, var(--line) 50%, var(--surface) 60%);
  background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* выключено / не из Telegram */
.gate { flex: 1; min-height: 80dvh; display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center; gap: 12px; padding: 30px; }
.gate .emoji { font-size: 60px; }
.gate h2 { font-size: 22px; font-weight: 800; }

/* ---------- сегменты (Движ | Найдись) ---------- */
.seg { display: flex; background: var(--surface); border-radius: 14px; padding: 4px; margin-bottom: 14px; }
.seg button { flex: 1; padding: 9px; border-radius: 11px; font-weight: 800; font-size: 14px;
  color: var(--text-soft); transition: all .15s; }
.seg button.on { background: var(--bg); color: var(--text); box-shadow: 0 2px 8px rgba(16,18,35,.08); }

/* ---------- чат ---------- */
.chat-top { display: flex; flex-direction: column; gap: 9px;
  padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.chat-top > div:first-child { min-width: 0; }
.chat-top .mi-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-btns { display: flex; gap: 8px; }
.chat-btns .btn { flex: 1; }
.chat-btns .btn:first-child:not(.blue) { flex: 0 0 auto; }
.chat-scroll { flex: 1; overflow-y: auto; display: flex; flex-direction: column;
  gap: 8px; padding: 12px 2px; min-height: 200px; }
.bubble { max-width: 78%; padding: 10px 13px; border-radius: 18px; font-size: 15px;
  line-height: 1.4; animation: fadein .18s ease; word-break: break-word; user-select: text; }
.bubble.them { align-self: flex-start; background: var(--surface); border-bottom-left-radius: 6px; }
.bubble.me { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: 6px; }
.bubble img { max-width: 100%; border-radius: 12px; display: block; margin-bottom: 4px; }
.bubble-media { font-size: 13px; opacity: .85; }
.chat-input { display: flex; align-items: center; gap: 8px; padding-top: 10px;
  border-top: 1px solid var(--line); }
.chat-input input[type="text"], .chat-input input:not([type]) { flex: 1; border-radius: 999px; }
.chat-attach, .chat-send { width: 44px; height: 44px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center; }
.chat-attach { background: var(--surface); color: var(--text-soft); }
.chat-attach svg, .chat-send svg { width: 21px; height: 21px; }
.chat-send { background: var(--primary); color: #fff; }
.chat-send:active { transform: scale(.9); }

/* ---------- суперлайк ---------- */
.super-note { position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  z-index: 4; background: var(--star); color: #fff; font-size: 12.5px; font-weight: 800;
  padding: 7px 14px; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 4px 14px rgba(255,176,32,.45); animation: pop .4s cubic-bezier(.2,.9,.3,1.4); }
.burst-star { position: absolute; z-index: 20; font-size: 22px; pointer-events: none;
  animation: burst .8s ease-out forwards; }
@keyframes burst {
  from { transform: translate(0,0) scale(.6); opacity: 1; }
  to { transform: translate(var(--dx), var(--dy)) scale(1.4) rotate(40deg); opacity: 0; }
}

/* ---------- админка ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat-cell { background: var(--bg); border: 1px solid var(--line); border-radius: 16px;
  padding: 12px 8px; text-align: center; box-shadow: 0 2px 10px rgba(16,18,35,.04); }
.stat-cell b { font-size: 20px; display: block; letter-spacing: -.4px; }
.stat-cell span { font-size: 11px; color: var(--text-faint); font-weight: 700; }
.switch { width: 48px; height: 28px; border-radius: 999px; background: var(--line);
  margin-left: auto; flex: none; position: relative; transition: background .18s; }
.switch i { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.2); transition: left .18s; }
.switch.on { background: var(--success); }
.switch.on i { left: 23px; }
.switch:disabled { opacity: .5; }

/* ---------- инструкция ---------- */
.guide { display: flex; flex-direction: column; gap: 11px; font-size: 14px;
  line-height: 1.45; color: var(--text-soft); }
.guide b { color: var(--text); }

/* ---------- 💎 золотая тема (премиум, тумблер в профиле) ---------- */
body.gold { --primary: #D4AF37; --primary-dark: #B8952B; --primary-soft: #FAF3DC;
  --accent: #B8860B; --accent-soft: #F7EFD8; --aura1: #E8C55F; --aura2: #D4AF37; }
body.gold .boot-logo { background: linear-gradient(120deg, #D4AF37, #F6D77C);
  -webkit-background-clip: text; background-clip: text; }

/* золотая рамка карточки премиум-пользователя в ленте */
.person-card.premium-frame { border: 2.5px solid transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(140deg, #F6D77C, #D4AF37 45%, #FBEBB4 80%, #D4AF37) border-box;
  box-shadow: 0 8px 30px rgba(212, 175, 55, .25); }

/* ---------- поиск (города, пользователи) ---------- */
.city-search { display: flex; align-items: center; gap: 9px; background: var(--surface);
  border: 1.5px solid var(--line); border-radius: var(--radius-s); padding: 0 14px; margin-bottom: 12px; }
.city-search input { border: 0; background: none; padding: 13px 0; border-radius: 0; }
.city-search span { font-size: 15px; }

/* крестик шторки */
.sheet { position: fixed; }
.sheet-x { position: absolute; top: 12px; right: 14px; width: 32px; height: 32px;
  border-radius: 50%; background: var(--surface); color: var(--text-soft); font-size: 13px;
  display: flex; align-items: center; justify-content: center; z-index: 2; }
input[type="color"] { border: 1px solid var(--line); background: none; border-radius: 8px; }

/* решение по входящему лайку */
.like-actions { display: flex; gap: 8px; align-items: center; flex: none; }
.like-actions .fab { box-shadow: 0 3px 12px rgba(16,18,35,.12); }
.like-actions .fab svg { width: 20px; height: 20px; }

/* ---------- 👑 бейдж администрации (цвета настраиваются в theme.css: --role1/--role2) ---------- */
.badge.role { color: #fff; background: linear-gradient(120deg, var(--role1, #7C3AED), var(--role2, #F59E0B));
  box-shadow: 0 2px 10px color-mix(in srgb, var(--role1, #7C3AED) 45%, transparent);
  animation: rolePulse 2.6s ease-in-out infinite; }
@keyframes rolePulse { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.25); } }

/* ---------- значки уведомлений на вкладках ---------- */
.tab-badge { position: absolute; top: 0; right: 10px; min-width: 17px; height: 17px;
  padding: 0 4px; border-radius: 999px; background: var(--primary); color: #fff;
  font-size: 10px; font-weight: 800; display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg); animation: pop .3s cubic-bezier(.2,.9,.3,1.4); }

/* ---------- плавные переходы экранов и шторок ---------- */
#screen.nav-fwd { animation: navFwd var(--screen-ms, .26s) cubic-bezier(.25,.8,.3,1); }
#screen.nav-back { animation: navBack var(--screen-ms, .26s) cubic-bezier(.25,.8,.3,1); }
@keyframes navFwd { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }
@keyframes navBack { from { opacity: 0; transform: translateX(-26px); } to { opacity: 1; transform: none; } }
#screen.screen-out { opacity: 0; transform: scale(.985); transition: opacity .13s ease, transform .13s ease; }
.sheet.sheet-out { transform: translateY(100%); transition: transform .22s ease-in; }
.tab.active svg { animation: tabBounce .3s cubic-bezier(.2,.9,.3,1.6); }
@keyframes tabBounce { 0% { transform: scale(.8); } 60% { transform: scale(1.15); } 100% { transform: none; } }
.toast { background: var(--toast-bg, #14162a); }


/* ════════════════ 🌙 ТЁМНАЯ ТЕМА (выбор пользователя, по умолчанию) ════════════════ */
html.dark {
  --bg: #0B0C14; --surface: #15172A; --line: #242741;
  --text: #F3F4FC; --text-soft: #A4A8C4; --text-faint: #6E7291;
  --primary: #FF3D77; --primary-2: #FF6E9C; --primary-soft: #2B1626;
  --primary-dark: #E02362;
  --accent: #8B72FF; --accent-soft: #221D3F;
  --glow: 0 8px 26px rgba(255, 61, 119, .22);
  --aura-strength: 0.30;
  --shadow: 0 12px 34px rgba(0, 0, 0, .55);
  --toast-bg: #242741;
}
html.dark .boot-logo { filter: drop-shadow(0 0 12px rgba(255, 61, 119, .32)); }
html.dark .tab-pill { background: color-mix(in srgb, var(--primary) 16%, transparent); }
html.dark .item-card { box-shadow: 0 2px 14px rgba(0, 0, 0, .35); }
html.dark input, html.dark textarea { border-color: var(--line); }
html.dark #screen.nav-fwd, html.dark #screen.nav-back { animation-name: zoomIn; }
@keyframes zoomIn { from { opacity: 0; transform: scale(.965); } to { opacity: 1; transform: none; } }

/* лёгкое свечение акцентов в обеих темах */
.premium-banner { box-shadow: var(--glow); }
.match-overlay .btn { box-shadow: 0 8px 30px rgba(0, 0, 0, .25); }
.badge.premium { box-shadow: 0 2px 8px rgba(255, 176, 32, .26); }
.tab-badge { box-shadow: 0 2px 8px color-mix(in srgb, var(--primary) 26%, transparent); }

/* 💎 золото — поверх любой темы */
body.gold { --primary: #D4AF37; --primary-2: #F0CE6B; --primary-dark: #B8952B;
  --primary-soft: #FAF3DC; --accent: #B8860B; --accent-soft: #F7EFD8;
  --aura1: #E8C55F; --aura2: #D4AF37;
  --glow: 0 8px 24px rgba(212, 175, 55, .22); }
html.dark body.gold { --primary-soft: #2E2712; --accent-soft: #262010; }
