/* ═══════════ TEMA — Tanishuv ilovasi dizayn tizimi ═══════════ */
:root {
  color-scheme: light;
  --bg: #EBEEF4;
  --card: #FFFFFF;
  --border: #E4E8EF;
  --border2: #EEF2F7;
  --text: #172033;
  --muted: #788295;
  --muted2: #A6ADBB;
  --accent: #4776E6;
  --accent-dark: #345BC0;
  --accent2: #44B8A7;
  --accent2-dark: #1E7A6D;
  --accent-soft: #EAF1FD;
  --accent2-soft: #E4F5F2;
  --chip: #EEF2F7;
  --danger: #D9534F;
  --gold: #E9C36A;
  --shadow-sm: 0 2px 8px rgba(23,32,51,0.05);
  --shadow-md: 0 8px 20px rgba(23,32,51,0.06);
  --shadow-lg: 0 10px 24px rgba(23,32,51,0.08);
  --shadow-nav: 0 10px 24px rgba(23,32,51,0.08);
  --overlay: rgba(23,32,51,0.5);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #12141A;
  --card: #1B1E27;
  --border: #2A2E3A;
  --border2: #262A35;
  --text: #F1F3F7;
  --muted: #8B93A6;
  --muted2: #626A7D;
  --accent-soft: rgba(71,118,230,0.15);
  --accent2-soft: rgba(68,184,167,0.15);
  --chip: #242833;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.25);
  --shadow-md: 0 8px 20px rgba(0,0,0,0.3);
  --shadow-lg: 0 10px 24px rgba(0,0,0,0.35);
  --overlay: rgba(0,0,0,0.6);
}

* { box-sizing: border-box; margin: 0; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex; justify-content: center;
  overscroll-behavior: none;
  transition: background 0.3s ease, color 0.3s ease;
}
button, input, textarea { font-family: inherit; }
::-webkit-scrollbar { display: none; }

.serif { font-family: 'DM Serif Display', serif; }

#app-frame {
  width: 100%; max-width: 430px;
  height: 100vh; height: 100dvh;
  background: var(--bg);
  position: relative; overflow: hidden;
}
#app {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
}
.screen { display: flex; flex-direction: column; height: 100%; position: relative; }

/* ═══ Animatsiyalar ═══ */
@keyframes rise { from { transform: translateY(12px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100% { opacity: 0.55; transform: scale(1); } 50% { opacity: 1; transform: scale(1.05); } }
@keyframes bounce { 0%,80%,100% { transform: translateY(0); } 40% { transform: translateY(-4px); } }
@keyframes glow { 0%,100% { opacity: 0.5; } 50% { opacity: 1; } }
@keyframes slideOut { from { transform: translateX(0); opacity: 1; } to { transform: translateX(-30px); opacity: 0; } }
@keyframes slideIn { from { transform: translateX(24px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.fade-in { animation: rise 0.25s cubic-bezier(.22,1,.36,1) both; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ═══ Umumiy tugmalar ═══ */
.icon-btn {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--card); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  cursor: pointer; transition: transform 0.12s;
}
.icon-btn:active { transform: scale(0.92); }
.icon-btn.overlay-btn { background: rgba(23,32,51,0.35); border: none; }
.icon-btn.overlay-btn svg { stroke: white; }

.primary-btn {
  width: 100%; height: 54px; border: none; border-radius: 16px;
  background: var(--accent); color: white;
  font-size: 15px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform 0.12s, opacity 0.15s;
}
.primary-btn:active { transform: scale(0.98); opacity: 0.92; }
.primary-btn:disabled { background: var(--chip); color: var(--muted2); }
.ghost-btn {
  width: 100%; padding: 13px; border-radius: 15px;
  border: 1.5px solid var(--border); background: var(--card);
  color: var(--text); font-size: 13.5px; font-weight: 700; cursor: pointer;
}
.ghost-btn:active { transform: scale(0.98); }
.text-btn {
  border: none; background: transparent; color: var(--accent);
  font-size: 13px; font-weight: 700; padding: 0; cursor: pointer;
}
.spinner {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.5); border-top-color: white;
  animation: spin 0.7s linear infinite; flex-shrink: 0;
}
.spinner.dark { border-color: rgba(23,32,51,0.2); border-top-color: var(--accent); }

/* ═══ Avatar ═══ */
.ava {
  border-radius: 50%; flex-shrink: 0; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  color: white; font-family: 'DM Serif Display', serif; font-weight: 700;
  background-size: cover; background-position: center;
}
.ava-dot {
  position: absolute; bottom: 2px; right: 2px; border-radius: 50%;
  background: var(--accent2); border: 2px solid var(--card);
}

/* ═══ Header umumiy ═══ */
.top-header {
  flex-shrink: 0; padding: 22px 20px 0 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.top-title { font-family: 'DM Serif Display', serif; font-size: 21px; }
.top-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.header-actions { display: flex; gap: 8px; }
.hbtn {
  width: 38px; height: 38px; border-radius: 12px;
  background: var(--card); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  position: relative;
}
.hbtn:active { transform: scale(0.94); }
.hbtn .dot { position: absolute; top: 6px; right: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); border: 1.5px solid var(--card); }

/* ═══ Bottom nav ═══ */
.bottom-nav-wrap { position: absolute; bottom: 16px; left: 16px; right: 16px; z-index: 8; }
.bottom-nav {
  background: var(--card); border: 1px solid var(--border); border-radius: 24px;
  padding: 10px 10px calc(env(safe-area-inset-bottom,0px)) 10px;
  display: flex; justify-content: space-around; box-shadow: var(--shadow-nav);
}
.nav-item {
  border: none; background: transparent; display: flex; flex-direction: column;
  align-items: center; gap: 3px; padding: 6px 12px; color: var(--muted2);
  cursor: pointer; position: relative;
}
.nav-item.active { color: var(--accent); }
.nav-item span { font-size: 10px; font-weight: 500; }
.nav-item.active span { font-weight: 700; }
.nav-item .dot { position: absolute; top: 3px; right: 14px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.content-scroll { flex: 1; overflow-y: auto; }
.nav-pad { height: 96px; flex-shrink: 0; }

/* ═══ Sheets / Modals ═══ */
.overlay-bg { position: absolute; inset: 0; background: var(--overlay); z-index: 30; }
.overlay-bg.center { display: flex; align-items: center; justify-content: center; padding: 30px; }
.sheet {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: var(--bg); border-radius: 24px 24px 0 0; z-index: 31;
  animation: rise 0.22s ease; display: flex; flex-direction: column; overflow: hidden;
}
.sheet-handle { width: 36px; height: 4px; border-radius: 2px; background: var(--border); margin: 0 auto 12px auto; flex-shrink: 0; }
.sheet-header { flex-shrink: 0; padding: 16px 20px 12px 20px; }
.sheet-title { font-size: 16px; font-weight: 800; }
.sheet-body { flex: 1; overflow-y: auto; padding: 0 20px 20px 20px; }
.confirm-card {
  background: var(--card); border-radius: 20px; padding: 22px 20px; width: 100%;
  animation: rise 0.2s ease;
}
.confirm-title { font-size: 15.5px; font-weight: 800; text-align: center; }
.confirm-desc { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 8px; line-height: 1.5; }
.confirm-row { display: flex; gap: 10px; margin-top: 18px; }
.confirm-row > * { flex: 1; padding: 12px; border-radius: 12px; font-size: 13px; font-weight: 700; cursor: pointer; }
.confirm-cancel { border: 1.5px solid var(--border); background: var(--card); color: var(--text); }
.confirm-ok { border: none; background: var(--accent); color: white; }
.confirm-danger { border: none; background: var(--danger); color: white; }

/* ═══ Chips / Pills ═══ */
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 14px; border-radius: 12px; border: 1.5px solid var(--border);
  background: var(--card); color: var(--text); font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.chip.active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-dark); }
.badge-match { display: inline-block; background: var(--accent2-soft); color: var(--accent2-dark); font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 9px; }
.badge-gold { background: linear-gradient(135deg,#E9C36A,#D4A85A); color: #172033; font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 11px; }
.badge-purpose { font-size: 9.5px; font-weight: 700; color: var(--muted); background: var(--chip); padding: 1px 6px; border-radius: 6px; }
.verified-badge { width: 13px; height: 13px; flex-shrink: 0; }

/* ═══ Toast (pastdan chiqadigan snackbar-modal) ═══ */
#toast-container {
  position: absolute; left: 0; right: 0; bottom: 108px; z-index: 6000;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  pointer-events: none; padding: 0 20px;
}
.toast {
  background: #20263a; color: white; padding: 12px 20px; border-radius: 16px;
  font-size: 13px; font-weight: 600; box-shadow: var(--shadow-lg);
  pointer-events: all; animation: toastIn 0.25s cubic-bezier(.22,1,.36,1) both;
  display: flex; align-items: center; gap: 10px; max-width: 100%; text-align: center;
}
@keyframes toastIn { from { opacity: 0; transform: translateY(16px) scale(0.96); } to { opacity: 1; transform: none; } }
.toast.removing { animation: toastOut 0.2s ease forwards; }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px) scale(0.96); } }
.toast.error { border: 1px solid var(--danger); }
.toast.success { border: 1px solid var(--accent2); }
.toast-action { color: #8FB3FF; font-weight: 700; background: none; border: none; font-size: 13px; cursor: pointer; }

/* ═══ Bildirishnoma banner (tepadan chiqib, sursa yo'qoladi) ═══ */
#notify-container {
  position: absolute; left: 0; right: 0; top: 0; z-index: 6100;
  display: flex; flex-direction: column; gap: 8px; padding: 14px 14px 0 14px;
  pointer-events: none;
}
.notify-banner {
  background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  border-radius: 16px; padding: 12px 14px; display: flex; align-items: center; gap: 10px;
  pointer-events: all; animation: notifyIn 0.3s cubic-bezier(.22,1,.36,1) both;
  touch-action: pan-y;
}
.notify-banner.removing { animation: notifyOut 0.25s ease forwards; }
@keyframes notifyIn { from { opacity: 0; transform: translateY(-120%); } to { opacity: 1; transform: none; } }
@keyframes notifyOut { to { opacity: 0; transform: translateY(-120%); } }
.notify-icon { width: 36px; height: 36px; border-radius: 11px; background: var(--accent-soft); color: var(--accent-dark); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.notify-text { font-size: 12.5px; font-weight: 600; color: var(--text); line-height: 1.4; flex: 1; min-width: 0; }

/* ═══════════ ONBOARDING ═══════════ */
.onb-wrap { padding: 18px 20px calc(env(safe-area-inset-bottom,0px) + 18px) 20px; display: flex; flex-direction: column; height: 100%; }
.onb-header { display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; }
.onb-progress-wrap { text-align: center; }
.onb-progress-label { font-size: 12.5px; font-weight: 700; color: var(--muted); margin-bottom: 5px; }
.onb-progress-track { width: 80px; height: 4px; border-radius: 2px; background: var(--border); overflow: hidden; }
.onb-progress-fill { height: 100%; background: var(--accent); border-radius: 2px; transition: width 0.2s; }
.onb-scroll { flex: 1; overflow-y: auto; padding: 18px 0 110px 0; }
.onb-h1 { font-family: 'DM Serif Display', serif; font-size: 22px; }
.onb-sub { font-size: 13px; color: var(--muted); margin-top: 6px; line-height: 1.45; }
.field-block { margin-top: 20px; }
.field-label { font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.field-hint { font-size: 11px; color: var(--muted); margin-top: 6px; line-height: 1.35; }
.field-input {
  width: 100%; height: 48px; padding: 0 14px; border-radius: 14px;
  background: var(--card); border: 1.5px solid var(--border);
  font-size: 14.5px; color: var(--text); font-family: 'Inter', sans-serif;
}
.field-input:focus { outline: none; border-color: var(--accent); }
.field-input.icon-pad { padding-left: 40px; }
.field-input-wrap { position: relative; }
.field-input-wrap svg.leading { position: absolute; left: 14px; top: 15px; pointer-events: none; }
textarea.field-input { height: auto; padding: 12px 14px; resize: none; font-family: inherit; }
.select-wrap { position: relative; }
select.field-input { width: 100%; appearance: none; -webkit-appearance: none; -moz-appearance: none; padding-right: 34px; cursor: pointer; }
select.field-input::-ms-expand { display: none; }
.select-wrap .select-chevron { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--muted); display: flex; }

.pick-row { display: flex; gap: 10px; }
.pick-btn {
  flex: 1; position: relative; display: flex; align-items: center; gap: 9px;
  padding: 13px 12px; border-radius: 14px; border: 1.5px solid var(--border);
  background: var(--card); cursor: pointer;
}
.pick-btn.active { border-color: var(--accent); background: var(--accent-soft); }
.pick-btn span.label { font-size: 13.5px; font-weight: 700; }
.pick-check {
  position: absolute; top: 8px; right: 8px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent); display: flex; align-items: center; justify-content: center;
}

.purpose-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.purpose-btn {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 8px; border-radius: 14px; border: 1.5px solid var(--border); background: var(--card);
  font-size: 13.5px; font-weight: 700; cursor: pointer;
}
.purpose-btn.active { border-color: var(--accent); background: var(--accent-soft); }
.purpose-btn.wide { grid-column: 1 / span 2; }

.range-slider { position: relative; height: 36px; margin-top: 4px; }
.range-track-bg { position: absolute; top: 16px; left: 0; right: 0; height: 4px; border-radius: 2px; background: var(--border); }
.range-track-fill { position: absolute; top: 16px; height: 4px; border-radius: 2px; background: var(--accent); }
.range-knob {
  position: absolute; top: 8px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--card); border: 3px solid var(--accent); box-shadow: 0 2px 6px rgba(23,32,51,0.2);
  transform: translateX(-50%); cursor: grab; touch-action: none;
}
.range-minmax { display: flex; justify-content: space-between; margin-top: 4px; font-size: 11px; color: var(--muted); font-weight: 600; }

.interest-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.interest-chip {
  padding: 9px 13px; border-radius: 12px; border: 1.5px solid var(--border);
  background: var(--card); color: var(--text); font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.interest-chip.active { border-color: var(--accent); background: var(--accent-soft); }

.photo-row { display: flex; align-items: center; gap: 14px; }
.photo-circle-wrap { position: relative; flex-shrink: 0; }
.photo-circle { width: 88px; height: 88px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; overflow: hidden; background-size: cover; background-position: center; }
.photo-edit-btn {
  position: absolute; bottom: -2px; right: -2px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--card); border: 2px solid var(--bg); box-shadow: 0 2px 6px rgba(23,32,51,0.15);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.photo-btn-col { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.photo-action-btn { padding: 10px 12px; border-radius: 12px; border: none; background: var(--accent); color: white; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.photo-action-btn.secondary { background: var(--card); border: 1.5px solid var(--border); color: var(--text); }

.onb-sticky-bottom {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 14px 20px calc(env(safe-area-inset-bottom,0px) + 16px) 20px;
  background: linear-gradient(to top, var(--bg) 70%, transparent);
}

.city-sheet-search { padding: 16px 20px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.city-search-input { width: 100%; padding: 11px 14px; border-radius: 12px; background: var(--chip); border: 1px solid var(--border); font-size: 14px; color: var(--text); }
.city-list-item { width: 100%; text-align: left; padding: 12px; border-radius: 12px; border: none; background: transparent; font-size: 14px; font-weight: 600; color: var(--text); cursor: pointer; }
.city-list-item.active { background: var(--chip); }

/* Welcome & success visuals */
.hero-visual { flex-shrink: 0; height: 230px; position: relative; margin-top: 8px; border-radius: 26px; overflow: hidden; background: linear-gradient(150deg,#EAF1FD 0%,#E4F5F2 100%); }
.hero-orb { position: absolute; border-radius: 50%; border: 3px solid var(--card); box-shadow: 0 6px 14px rgba(23,32,51,0.14); display: flex; align-items: center; justify-content: center; color: white; font-family: 'DM Serif Display', serif; font-weight: 700; }
.trust-row { display: flex; justify-content: space-between; gap: 8px; margin-top: 22px; flex-shrink: 0; }
.trust-item { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 9px; }
.trust-icon-badge { width: 52px; height: 52px; border-radius: 16px; background: var(--accent-soft); color: var(--accent-dark); display: flex; align-items: center; justify-content: center; }
.trust-item span { font-size: 11px; color: var(--muted); font-weight: 600; line-height: 1.3; }
.age-check-row { display: flex; align-items: center; gap: 10px; background: none; border: none; padding: 0; cursor: pointer; text-align: left; flex-shrink: 0; }
.age-checkbox { width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--border); background: var(--card); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.age-checkbox.checked { border-color: var(--accent); background: var(--accent); }

.summary-card { width: 100%; background: var(--card); border-radius: 18px; border: 1px solid var(--border); padding: 6px 16px; margin-top: 22px; }
.summary-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; font-size: 12.5px; }
.summary-row + .summary-row { border-top: 1px solid var(--border2); }
.summary-row .k { color: var(--muted); display: flex; align-items: center; gap: 8px; }
.summary-row .v { font-weight: 700; }

/* Onboarding success visual */
.success-visual { position: relative; width: 160px; height: 160px; flex-shrink: 0; margin: 0 auto; }
.success-dot { position: absolute; border-radius: 50%; animation: pulse 2.4s ease-in-out infinite; }
.success-ava-ring { position: absolute; inset: 18px; border-radius: 50%; padding: 4px; background: linear-gradient(135deg,#4776E6,#44B8A7); display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 26px rgba(71,118,230,0.28); }
.success-ava-ring .ava { border: 3px solid var(--card); }
.success-badge { position: absolute; right: 12px; bottom: 12px; width: 34px; height: 34px; border-radius: 50%; background: var(--accent2); color: white; display: flex; align-items: center; justify-content: center; border: 3px solid var(--bg); }

/* ═══════════ HOME ═══════════ */
.match-card {
  margin: 14px 20px 0 20px; border-radius: 22px; padding: 18px; position: relative; overflow: hidden;
  background: linear-gradient(135deg,#EAF1FD 0%,#E4F5F2 100%); border: 1px solid var(--border);
}
:root[data-theme="dark"] .match-card { background: linear-gradient(135deg, rgba(71,118,230,0.12), rgba(68,184,167,0.12)); }
.match-card-title { font-size: 16.5px; font-weight: 700; }
.match-card-sub { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.match-card-actions { display: flex; gap: 8px; margin-top: 14px; }
.match-find-btn {
  flex: 1; padding: 13px; border-radius: 14px; border: none; cursor: pointer;
  background: linear-gradient(135deg,#4776E6,#44B8A7); color: white; font-size: 14.5px; font-weight: 700;
  box-shadow: 0 6px 14px rgba(71,118,230,0.3);
}
.filter-sq-btn { width: 46px; height: 46px; flex-shrink: 0; border-radius: 14px; border: 1px solid var(--border); background: var(--card); display: flex; align-items: center; justify-content: center; cursor: pointer; }

.section-row { display: flex; align-items: center; justify-content: space-between; padding: 0 20px; margin-bottom: 12px; }
.section-title { font-size: 15.5px; font-weight: 700; }

.rec-card {
  width: calc(100% - 40px); margin: 0 20px 10px 20px; display: flex; align-items: center; gap: 12px;
  padding: 13px; border-radius: 18px; background: var(--card); border: 1px solid var(--border);
  text-align: left; cursor: pointer; min-height: 105px;
}
.rec-card:active { transform: scale(0.99); }
.rec-name-row { display: flex; align-items: center; gap: 5px; }
.rec-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.rec-interests { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.rec-chat-btn { width: 44px; height: 44px; border-radius: 50%; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; flex-shrink: 0; cursor: pointer; }

/* ═══════════ DISCOVER (swipe cards) ═══════════ */
.discover-filter-row { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding: 0 20px; }
.discover-filter-chip { display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 12px; background: var(--accent-soft); border: none; color: var(--accent-dark); font-size: 12px; font-weight: 700; cursor: pointer; }
.online-toggle { display: flex; align-items: center; gap: 6px; border: none; background: transparent; padding: 0; cursor: pointer; }
.online-toggle span.lbl { font-size: 12px; font-weight: 600; color: var(--muted); }
.switch-track { width: 32px; height: 19px; border-radius: 10px; position: relative; transition: background 0.15s; }
.switch-knob { position: absolute; top: 2px; width: 15px; height: 15px; border-radius: 50%; background: white; box-shadow: 0 1px 3px rgba(23,32,51,0.25); transition: left 0.15s; }
.switch-track.big { width: 44px; height: 26px; }
.switch-track.big .switch-knob { width: 20px; height: 20px; top: 3px; }

.deck-wrap { flex: 1; padding: 16px 20px 0 20px; min-height: 0; display: flex; }
.deck-card { width: 100%; background: var(--card); border-radius: 24px; border: 1px solid var(--border); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-md); }
.deck-photo { position: relative; height: 236px; flex-shrink: 0; background-size: cover; background-position: center; }
.deck-photo-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(23,32,51,0.72) 0%, rgba(23,32,51,0.05) 45%, transparent 60%); }
.deck-info { flex: 1; padding: 14px 16px 12px 16px; overflow-y: auto; min-height: 0; }
.deck-bio { font-size: 12.5px; color: var(--muted); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.deck-section-label { font-size: 11.5px; font-weight: 700; color: var(--muted); margin-top: 12px; margin-bottom: 7px; }
.reason-row { display: flex; align-items: center; gap: 6px; }
.reason-row span { font-size: 11.5px; color: var(--text); font-weight: 600; }
.deck-footer { flex-shrink: 0; padding: 12px 16px calc(env(safe-area-inset-bottom,0px) + 12px) 16px; border-top: 1px solid var(--border2); }
.deck-actions { display: flex; align-items: center; gap: 10px; }
.round-btn { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--border); background: var(--card); display: flex; align-items: center; justify-content: center; flex-shrink: 0; cursor: pointer; }
.round-btn.saved { border-color: var(--accent); background: var(--accent-soft); }
.send-request-btn { flex: 1; height: 50px; border-radius: 16px; border: none; background: var(--accent); color: white; font-size: 14.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; }
.deck-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px; text-align: center; }

/* ═══════════ QUICK MATCH ═══════════ */
.qm-radar { position: relative; width: 220px; height: 220px; flex-shrink: 0; margin: 4px auto 0 auto; }
.qm-ring { position: absolute; inset: 0; border-radius: 50%; }
.qm-orbit-dot { position: absolute; border-radius: 50%; border: 2px solid var(--card); animation: pulse 2.2s ease-in-out infinite; }
.qm-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 76px; height: 76px; border-radius: 50%; background: linear-gradient(150deg,#4776E6,#3F5FC4); border: 3px solid var(--card); box-shadow: 0 8px 20px rgba(71,118,230,0.3); z-index: 2; }
.qm-status-pill { display: flex; align-items: center; gap: 7px; margin: 14px auto 0 auto; width: fit-content; background: var(--card); border-radius: 12px; padding: 8px 14px; border: 1px solid var(--border); }
.qm-req-card { width: 100%; background: var(--card); border-radius: 16px; border: 1px solid var(--border); padding: 13px 14px; margin-top: 18px; }
.qm-tip-card { width: 100%; background: var(--accent-soft); border-radius: 14px; padding: 12px 14px; margin-top: 12px; }
.qm-found-card { width: 100%; background: var(--card); border-radius: 20px; border: 1px solid var(--border); padding: 16px; margin-top: 16px; box-shadow: var(--shadow-md); }
.qm-timer-row { display: flex; align-items: center; gap: 10px; margin-top: 16px; width: 100%; background: var(--accent-soft); border-radius: 14px; padding: 11px 14px; }
.qm-timer-num { width: 38px; height: 38px; border-radius: 50%; background: var(--card); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 12px; font-weight: 800; color: var(--accent-dark); }

/* ═══════════ CHATS ═══════════ */
.tabs-2 { display: flex; background: var(--chip); border-radius: 14px; padding: 4px; }
.tab-2-btn { flex: 1; padding: 9px; border-radius: 11px; border: none; background: transparent; color: var(--muted); font-size: 13px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; }
.tab-2-btn.active { background: var(--card); color: var(--text); }
.tab-badge { width: 18px; height: 18px; border-radius: 50%; background: var(--accent); color: white; font-size: 10.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; }

.continue-row { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 2px; }
.continue-item { border: none; background: transparent; display: flex; flex-direction: column; align-items: center; gap: 6px; flex-shrink: 0; cursor: pointer; }
.continue-ring { width: 58px; height: 58px; border-radius: 50%; padding: 2px; }
.continue-ava { width: 100%; height: 100%; border-radius: 50%; border: 2px solid var(--card); }
.continue-item span { font-size: 11.5px; font-weight: 600; }

.conv-list { background: var(--card); border-radius: 18px; border: 1px solid var(--border); overflow: hidden; }
.conv-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 13px 14px; border: none; background: var(--card); text-align: left; cursor: pointer; }
.conv-row + .conv-row { border-top: 1px solid var(--border2); }
.conv-name-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.conv-preview-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 2px; }
.conv-preview-text { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }
.unread-badge { width: 18px; height: 18px; border-radius: 50%; background: var(--accent); color: white; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

.req-card { background: var(--card); border-radius: 18px; border: 1px solid var(--border); padding: 14px; margin-bottom: 20px; position: relative; }
.req-card-actions { display: flex; gap: 8px; margin-top: 12px; }
.req-accept-btn { flex: 1; height: 42px; border-radius: 12px; border: none; background: var(--accent); color: white; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; }
.req-decline-btn { flex: 1; height: 42px; border-radius: 12px; border: 1.5px solid var(--border); background: var(--card); color: var(--text); font-size: 13px; font-weight: 700; cursor: pointer; }
.sent-card { display: flex; align-items: center; gap: 11px; background: var(--chip); border-radius: 16px; padding: 11px; border: 1px solid var(--border); }
.empty-block { text-align: center; padding: 26px 10px; background: var(--card); border-radius: 18px; border: 1px solid var(--border); }
.info-banner { display: flex; align-items: flex-start; gap: 8px; background: var(--accent-soft); border-radius: 14px; padding: 11px 13px; margin-bottom: 18px; }
.info-banner span { font-size: 11.5px; color: var(--accent-dark); line-height: 1.4; }

.dots-menu { position: absolute; background: var(--card); border-radius: 12px; border: 1px solid var(--border); box-shadow: var(--shadow-lg); z-index: 20; width: 180px; overflow: hidden; }
.dots-menu button { width: 100%; text-align: left; padding: 11px 13px; border: none; background: var(--card); font-size: 12.5px; font-weight: 600; color: var(--text); cursor: pointer; }
.dots-menu button + button { border-top: 1px solid var(--border2); }
.dots-menu button.danger { color: var(--danger); }

/* ═══════════ CHAT ACTIVE (Telegram uslubi) ═══════════ */
.tg-chat {
  --tg-bg: #D6E3EE;
  --tg-in: #FFFFFF;
  --tg-out: #EFFDDE;
  --tg-out-time: #5DA05C;
  --tg-in-time: #A0ACB6;
  --tg-quote: #3390EC;
  --tg-date: rgba(64, 90, 110, 0.55);
}
:root[data-theme="dark"] .tg-chat {
  --tg-bg: #0E1621;
  --tg-in: #182533;
  --tg-out: #2B5278;
  --tg-out-time: #7DA7D0;
  --tg-in-time: #6D7F8F;
  --tg-quote: #5EB5F7;
  --tg-date: rgba(0, 0, 0, 0.45);
}
.chat-header-bar { flex-shrink: 0; background: var(--card); box-shadow: 0 1px 0 var(--border), 0 2px 8px rgba(0,0,0,0.05); position: relative; z-index: 6; }
.chat-header-top { display: flex; align-items: center; gap: 6px; padding: 8px 8px 8px 4px; }
.chat-peer-btn { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; border: none; background: transparent; text-align: left; cursor: pointer; padding: 2px 0; }
.chat-peer-name { font-size: 15.5px; font-weight: 700; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-peer-status { font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.chat-peer-status.on { color: var(--tg-quote); }
.chat-strip-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 16px; border: none; background: transparent; border-top: 1px solid var(--border2); cursor: pointer; }
.chat-strip-btn span.lbl { font-size: 11.5px; color: var(--muted); font-weight: 600; }

.chat-bg { position: relative; flex: 1; min-height: 0; overflow: hidden; background: var(--tg-bg); }
.chat-bg::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.35;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.7) 0 2px, transparent 3px),
    radial-gradient(circle at 70% 60%, rgba(255,255,255,0.6) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 45% 85%, rgba(255,255,255,0.5) 0 1.5px, transparent 2.5px);
  background-size: 90px 90px, 130px 130px, 70px 70px;
}
:root[data-theme="dark"] .chat-bg::before { opacity: 0.12; }
.chat-scroll { position: relative; height: 100%; overflow-y: auto; display: flex; flex-direction: column; padding: 10px 10px 8px 10px; z-index: 1; overscroll-behavior: contain; }
.day-divider { text-align: center; margin: 6px 0 10px 0; }
.day-divider span { display: inline-block; background: var(--tg-date); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 11px; border-radius: 12px; }

.msg-row { position: relative; display: flex; align-items: flex-end; margin-bottom: 2px; transition: transform 0.18s ease, background 0.6s; touch-action: pan-y; }
.msg-row.tail { margin-top: 6px; }
.msg-row.swiping { transition: none; }
.msg-row.flash { background: rgba(51,144,236,0.18); border-radius: 10px; }
.msg-row.mine { justify-content: flex-end; }
.msg-row.theirs { justify-content: flex-start; }
.swipe-reply-icon {
  position: absolute; left: -34px; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%;
  background: rgba(0,0,0,0.25); color: #fff; display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(0.6); transition: opacity 0.15s, transform 0.15s; pointer-events: none;
}
.msg-row.swiping .swipe-reply-icon { opacity: 0.7; transform: scale(0.85); }
.msg-row.swipe-ready .swipe-reply-icon { opacity: 1; transform: scale(1); background: var(--tg-quote); }
.bubble {
  position: relative; max-width: 80%; min-width: 56px; padding: 6px 8px 6px 10px; border-radius: 14px;
  background: var(--tg-in); color: var(--text); box-shadow: 0 1px 1px rgba(0,0,0,0.12); cursor: pointer;
  -webkit-user-select: none; user-select: none;
}
.msg-row.theirs.tail .bubble { border-bottom-left-radius: 4px; }
.msg-row.mine .bubble { background: var(--tg-out); }
.msg-row.mine.tail .bubble { border-bottom-right-radius: 4px; }
.msg-row.tail .bubble::after {
  content: ""; position: absolute; bottom: 0; width: 10px; height: 14px;
  background: var(--tg-in);
}
.msg-row.theirs.tail .bubble::after { left: -6px; clip-path: path("M10 0 L10 14 L0 14 Q8 12 10 0 Z"); }
.msg-row.mine.tail .bubble::after { right: -6px; background: var(--tg-out); clip-path: path("M0 0 L0 14 L10 14 Q2 12 0 0 Z"); }
.bubble-text { font-size: 15px; line-height: 1.35; white-space: pre-wrap; word-break: break-word; }
.bubble-time-spacer { display: inline-block; width: 44px; height: 1px; }
.bubble-time { position: absolute; right: 8px; bottom: 4px; font-size: 11px; color: var(--tg-in-time); line-height: 1; }
.msg-row.mine .bubble-time { color: var(--tg-out-time); }
.bubble-time.on-img { right: 10px; bottom: 8px; color: #fff; background: rgba(0,0,0,0.45); padding: 2px 6px; border-radius: 8px; }
.bubble-img { display: block; max-width: 240px; width: 100%; border-radius: 10px; margin: -2px -4px 2px -6px; cursor: pointer; }
.bubble-text + .bubble-time { }

.reply-quote {
  display: block; margin: 2px 0 5px 0; padding: 3px 8px 4px 8px; border-left: 3px solid var(--tg-quote);
  background: rgba(51,144,236,0.10); border-radius: 6px; cursor: pointer; min-width: 0; max-width: 100%;
}
.msg-row.mine .reply-quote { border-left-color: #4FAE4E; background: rgba(79,174,78,0.14); }
:root[data-theme="dark"] .msg-row.mine .reply-quote { border-left-color: var(--tg-quote); background: rgba(94,181,247,0.14); }
.reply-name { font-size: 12.5px; font-weight: 700; color: var(--tg-quote); line-height: 1.25; }
.msg-row.mine .reply-name { color: #3E9E3D; }
:root[data-theme="dark"] .msg-row.mine .reply-name { color: var(--tg-quote); }
.reply-text { font-size: 13px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0.85; }

.msg-menu button { display: flex; align-items: center; gap: 8px; }
.emoji-row { display: flex; gap: 2px; padding: 6px 6px 4px 6px; border-bottom: 1px solid var(--border2); }
.emoji-row .emoji-btn { width: 34px; height: 34px; border-radius: 50%; border: none; background: transparent; font-size: 20px; line-height: 1; padding: 0; cursor: pointer; transition: transform 0.12s, background 0.12s; }
.emoji-row .emoji-btn:hover, .emoji-row .emoji-btn.active { background: var(--chip); transform: scale(1.18); }
.reactions { display: flex; flex-wrap: wrap; gap: 4px; }
.reactions:not(:empty) { margin: 4px 0 2px 0; padding-right: 40px; }
.reaction-chip {
  display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px 0 6px; border-radius: 12px; border: none;
  background: rgba(51,144,236,0.14); color: var(--tg-quote); font-size: 13px; font-weight: 700; cursor: pointer; line-height: 1;
}
.reaction-chip.mine { background: var(--tg-quote); color: #fff; }
.msg-row.mine .reaction-chip { background: rgba(62,158,61,0.16); color: #3E9E3D; }
.msg-row.mine .reaction-chip.mine { background: #4FAE4E; color: #fff; }
:root[data-theme="dark"] .msg-row.mine .reaction-chip { background: rgba(94,181,247,0.16); color: var(--tg-quote); }
:root[data-theme="dark"] .msg-row.mine .reaction-chip.mine { background: var(--tg-quote); color: #fff; }

.typing-row { display: flex; align-items: center; margin-top: 4px; }
.typing-dots { background: var(--tg-in); border-radius: 14px; padding: 9px 12px; display: flex; align-items: center; gap: 4px; box-shadow: 0 1px 1px rgba(0,0,0,0.12); }
.typing-dots span { width: 5px; height: 5px; border-radius: 50%; background: var(--muted2); animation: bounce 1.2s infinite ease-in-out; }
.typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.typing-dots span:nth-child(3) { animation-delay: 0.3s; }

.starter-list { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.starter-btn { text-align: left; padding: 11px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--border); font-size: 12.5px; font-weight: 600; color: var(--text); line-height: 1.4; cursor: pointer; }

.composer-float { position: relative; flex-shrink: 0; background: var(--card); border-top: 1px solid var(--border); padding: 6px 8px calc(env(safe-area-inset-bottom,0px) + 6px) 8px; }
.emoji-picker { position: absolute; left: 8px; right: 8px; bottom: 100%; margin-bottom: 8px; background: var(--card); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 10px; max-height: 220px; overflow-y: auto; }
.emoji-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; }
.emoji-btn { background: none; border: none; cursor: pointer; padding: 6px 0; border-radius: 8px; font-size: 20px; line-height: 1; }
.emoji-btn:active { background: var(--chip); }
.reply-bar { display: flex; align-items: center; gap: 8px; padding: 4px 4px 6px 10px; color: var(--tg-quote); }
.reply-bar-body { flex: 1; min-width: 0; border-left: 2px solid var(--tg-quote); padding-left: 8px; }
.reply-bar .reply-text { color: var(--text); }
.composer-inner { display: flex; align-items: flex-end; gap: 4px; }
.composer-round-btn { width: 40px; height: 40px; border-radius: 50%; background: transparent; border: none; display: flex; align-items: center; justify-content: center; flex-shrink: 0; cursor: pointer; color: var(--muted); }
.composer-textarea { flex: 1; max-height: 120px; min-height: 40px; padding: 10px 14px; border: none; border-radius: 20px; background: var(--chip); font-size: 15px; line-height: 1.3; color: var(--text); font-family: inherit; resize: none; }
.composer-textarea:focus { outline: none; }
.send-round-btn { width: 40px; height: 40px; border-radius: 50%; border: none; background: var(--tg-quote); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; cursor: pointer; }
.send-round-btn svg { margin-left: 2px; }

.idea-cat-row { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 16px; }
.idea-cat-chip { padding: 8px 13px; border-radius: 12px; border: 1.5px solid var(--border); background: var(--card); color: var(--text); font-size: 12px; font-weight: 600; cursor: pointer; }
.idea-cat-chip.active { border-color: var(--accent); background: var(--accent-soft); }
.idea-q-row { background: var(--card); border-radius: 14px; border: 1px solid var(--border); padding: 12px 13px; margin-bottom: 9px; display: flex; align-items: center; gap: 10px; }
.idea-q-row span { font-size: 12.5px; color: var(--text); font-weight: 600; flex: 1; line-height: 1.4; }
.idea-add-btn { flex-shrink: 0; border: none; background: var(--accent-soft); color: var(--accent-dark); font-size: 11.5px; font-weight: 700; padding: 7px 11px; border-radius: 10px; white-space: nowrap; cursor: pointer; }

/* ═══════════ PROFILE ═══════════ */
.profile-summary-card { background: var(--card); border-radius: 20px; border: 1px solid var(--border); padding: 16px; }
.profile-top-row { display: flex; align-items: center; gap: 12px; }
.profile-action-row { display: flex; gap: 8px; margin-top: 14px; }
.profile-view-btn { flex: 1; padding: 11px; border-radius: 13px; border: 1.5px solid var(--accent); background: var(--card); color: var(--accent); font-size: 13px; font-weight: 700; cursor: pointer; }
.profile-edit-sq { width: 42px; height: 42px; border-radius: 13px; border: 1px solid var(--border); background: var(--chip); display: flex; align-items: center; justify-content: center; flex-shrink: 0; cursor: pointer; }
.completion-block { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border2); }
.completion-bar-track { height: 6px; border-radius: 3px; background: var(--chip); overflow: hidden; }
.completion-bar-fill { height: 100%; background: linear-gradient(90deg,#4776E6,#44B8A7); border-radius: 3px; transition: width 0.3s; }

.toggle-row { width: 100%; display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: 16px; border: 1px solid var(--border); padding: 13px 14px; margin-top: 14px; text-align: left; cursor: pointer; }
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.quick-card { position: relative; background: var(--card); border-radius: 16px; border: 1px solid var(--border); padding: 14px; text-align: left; cursor: pointer; }
.quick-card div.lbl { font-size: 12.5px; font-weight: 700; margin-top: 9px; }
.quick-count { position: absolute; top: 12px; right: 14px; font-size: 15px; font-weight: 800; color: var(--accent); }

.settings-list { background: var(--card); border-radius: 18px; border: 1px solid var(--border); margin-top: 16px; overflow: hidden; }
.adm-bot { border-radius: 12px; padding: 10px 12px; font-size: 12.5px; font-weight: 600; border: 1px solid var(--border); background: var(--card); }
.adm-bot.off { color: var(--danger); }
.adm-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.adm-stat { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 10px 8px; text-align: center; }
.adm-stat-val { font-size: 18px; font-weight: 800; }
.adm-stat-lbl { font-size: 10.5px; color: var(--muted); margin-top: 2px; line-height: 1.2; }
.adm-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 13px 14px; margin-bottom: 10px; }
.adm-params { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.adm-param { display: flex; flex-direction: column; gap: 3px; font-size: 11px; color: var(--muted); flex: 1; min-width: 110px; }
.adm-num { height: 34px; font-size: 13px; padding: 0 10px; }
.adm-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.adm-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border2); font-size: 12.5px; }
.adm-actions { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; }
.adm-actions .text-btn { font-size: 12px; }
.adm-mod-row { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; padding: 8px 0; border-bottom: 1px solid var(--border2); }
.adm-msg { padding: 8px 10px; border-radius: 12px; background: var(--chip); margin-bottom: 6px; border: 1px solid var(--border); }
.adm-msg.target { border-color: var(--danger); }
.settings-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 13px 14px; border: none; background: var(--card); text-align: left; cursor: pointer; }
.settings-row + .settings-row { border-top: 1px solid var(--border2); }
.settings-icon { width: 32px; height: 32px; border-radius: 10px; background: var(--chip); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.settings-label { font-size: 13px; font-weight: 600; flex: 1; min-width: 0; }
.settings-value { font-size: 12px; color: var(--muted); flex-shrink: 0; }

.pro-card { margin-top: 16px; border-radius: 18px; padding: 16px; position: relative; overflow: hidden; background: linear-gradient(135deg,#1E2A4A,#2E4A7A); }
.pro-title { font-size: 15px; font-weight: 800; color: white; }
.pro-feature { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.pro-feature span { font-size: 12px; color: rgba(255,255,255,0.9); }
.pro-btn { margin-top: 12px; background: var(--gold); color: #1E2A4A; border: none; font-size: 12.5px; font-weight: 800; padding: 9px 16px; border-radius: 11px; cursor: pointer; }

/* ═══════════ FULL PROFILE ═══════════ */
.fp-photo { position: relative; height: 312px; flex-shrink: 0; border-radius: 0 0 26px 26px; overflow: hidden; background-size: cover; background-position: center; }
.fp-photo-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(23,32,51,0.72) 0%, rgba(23,32,51,0.05) 42%, transparent 58%); }
.fp-top-bar { position: absolute; top: 16px; left: 16px; right: 16px; display: flex; align-items: center; justify-content: space-between; z-index: 2; }
.fp-name-block { position: absolute; left: 18px; bottom: 16px; right: 18px; z-index: 2; }
.fp-info-table { background: var(--card); border-radius: 16px; border: 1px solid var(--border); padding: 4px 14px; }
.fp-info-row { display: flex; justify-content: space-between; padding: 11px 0; }
.fp-info-row + .fp-info-row { border-top: 1px solid var(--border2); }
.fp-sticky-bottom { position: absolute; bottom: 0; left: 0; right: 0; padding: 14px 20px calc(env(safe-area-inset-bottom,0px) + 16px) 20px; background: linear-gradient(to top, var(--bg) 75%, transparent); }

/* ═══ Empty note ═══ */
.empty-note { color: var(--muted); text-align: center; padding: 60px 24px; font-size: 14px; line-height: 1.7; }
.empty-note .big { font-size: 40px; margin-bottom: 10px; }
